/* styles.css */

/* Réinitialisation et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* En-tête */
header {
    background-color: #000000;
    color: white;
    padding: 1rem;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-right {
    display: flex;
    gap: 15px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
}

nav a:hover {
    background-color: #34495e;
    border-radius: 5px;
}

/* Conteneur principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Style global de la bannière */
.banner {
    position: relative;
    width: 100%;
    height: 30vh;
    overflow: hidden;
}

.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-background img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.banner-background img.active {
    opacity: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    width: 60%;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
}

.banner-content h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.banner-content .btn {
    background: #e74c3c;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.banner-content .btn:hover {
    background: #c0392b;
}

/* Boutons génériques */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 5px;
}

.btn:hover {
    background-color: #c0392b;
}

.btn-back,
.btn-remove {
    background-color: #7f8c8d;
}

.btn-back:hover,
.btn-remove:hover {
    background-color: #95a5a6;
}

/* Boutons de quantité */
.btn-quantity {
    background-color: #f0f0f0;
    color: black !important;
    border: 1px solid #ccc;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
}

.btn-quantity:hover {
    background-color: #e0e0e0;
}

/* Section Intro */
.intro {
    text-align: center;
    margin-bottom: 40px;
}

.intro h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 50px;
}

.intro p {
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.5;
}

/* Catégories (Accueil) */
.categories {
    display: flex !important;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.category-card {
    width: 300px; /* Largeur fixe pour chaque carte */
    text-align: center;
    background-color: #fff; /* Fond blanc pour un look propre */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Ombre légère */
    padding: 15px;
    transition: transform 0.3s ease;
	flex-shrink: 0;
}

.category-card img:not(.logo) {
    width: 100%;
    height: 200px;
    object-fit: contain; /* Affiche l'image entière */
    border-radius: 8px;
}

.category-card img {
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.category-card h3 {
    font-size: 50px;
    margin: 10px 0;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.category-card .logo {
    width: 200px;
}

/* Produits (Accueil, Catégorie) */
.products {
    margin: 40px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}

.product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    width: 250px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.product-card:hover {
    transform: scale(1.03);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.product-card a img {
    transition: filter 0.3s ease;
}

.product-card a img:hover {
    filter: brightness(90%);
    cursor: pointer;
}

.product-card h3 {
    font-size: 18px;
    margin: 10px 0;
    color: #2c3e50;
}

.product-card p {
    font-size: 16px;
    color: #e74c3c;
    font-weight: bold;
    margin: 10px 0;
}

.product-options {
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.product-options label {
    font-size: 14px;
    color: #2c3e50;
}

.product-options select,
.product-options input {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.product-options input[type="number"] {
    width: 60px;
    text-align: center;
}

/* Page Produit */
.product-details {
    display: flex;
    gap: 40px;
    margin: 40px 0;
}

.product-images {
    flex: 1;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
}

.gallery {
    display: block;
    gap: 10px;
    margin-top: 10px;
}

.gallery img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
}

.gallery img:hover {
    border-color: #e74c3c;
}

.product-info {
    flex: 1;
}

.product-info h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.price {
    color: #e74c3c;
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0;
}

.options {
    margin: 20px 0;
}

select {
    padding: 8px;
    margin-right: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* Reviews */
.reviews {
    margin: 40px 0;
}

.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.review-card {
    border: 1px solid #ddd;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.stars {
    font-size: 20px;
    color: #ffcc00;
    margin-bottom: 10px;
}

p {
    font-size: 16px;
    font-style: italic;
    color: #555;
}

/* Page Panier */
.cart, .checkout {
    margin: 40px 0;
}

.cart h1, .checkout h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.cart-empty {
    text-align: center;
    padding: 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.cart-items {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img, .cart-item-image {
    width: 100px;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 20px;
}

.item-details {
    flex-grow: 1;
}

.item-details h3 {
    color: #2c3e50;
    margin: 0 0 10px;
    font-size: 1.2em;
}

.item-details p {
    margin: 5px 0;
}

.item-details span.quantity {
    margin: 0 10px;
    font-weight: bold;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-summary {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: right;
    background-color: #f9f9f9;
}

.cart-summary p {
    margin: 10px 0;
}

.cart-summary .total {
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
}

/* Pages Checkout */
.checkout {
    display: flex;
    gap: 40px;
}

.shipping-form, .payment-form {
    flex: 2;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group input[readonly] {
    background-color: #f9f9f9;
}

.payment-methods img {
    width: 60px;
    height: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.buttons {
    margin-top: 20px;
    text-align: right;
}

/* Page Confirmation */
.confirmation {
    margin: 40px 0;
    text-align: center;
}

.confirmation h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.confirmation p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.order-details {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

.order-details h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.order-item:last-child {
    border-bottom: none;
}

.order-summary {
    text-align: right;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Pied de page */
footer {
    background-color: #000000;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

footer a {
    color: #ecf0f1;
    margin: 0 10px;
    text-decoration: none;
}

/* Style des boutons de navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 3;
    border-radius: 5px;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Conteneur du dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 180px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
    border-radius: 5px;
    overflow: hidden;
}

.dropdown-content a {
    color: black;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-btn {
    cursor: pointer;
    padding: 10px;
    display: block;
}

.flag-icon {
    width: 20px;
    height: auto;
    margin-right: 10px;
}

/* Fonts personnalisées */
@font-face {
    font-family: 'font-italy';
    src: url('fonts/Italianno-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'font-chinese';
    src: url('fonts/Japan Daisuki.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'font-japanese';
    src: url('fonts/YOZAKURA-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

.font-italy,
.font-chinese,
.font-japanese {
    font-family: 'font-italy', 'font-chinese', 'font-japanese', sans-serif;
    text-decoration: none;
}

.intro h1.japanese {
    font-family: 'font-japanese';
}

.intro h1.chinese {
    font-family: 'font-chinese';
}

/* Logo */
.logo {
    width: 50px;
    height: auto;
    display: block;
    margin: 0 auto;
}
.logo-icon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.15);
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-bar input {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 150px; /* Ajuste selon ton design */
}

.search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
}

.search-bar button:hover {
    color: #ff6347; /* Une couleur qui peut matcher ton thème */
}

#categoriesSection, #productsSection {
    transition: opacity 0.3s ease;
}

#categoriesSection[style*="display: none"],
#productsSection[style*="display: none"] {
    opacity: 0;
}

#categoriesSection[style*="display: block"],
#productsSection[style*="display: block"] {
    opacity: 1;
}

.newsletter-section {
    text-align: center;
    margin-bottom: 20px;
}

.newsletter-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.newsletter-form input[type="email"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 200px;
	text-align: center;
	margin-top: 5px;
    margin-bottom: 5px;
}

.newsletter-form button {
    padding: 8px 16px;
    background-color: #ff6347; /* Ajuste selon ton thème */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
	margin-top: 5px;
}
}

.newsletter-form button:hover {
    background-color: #e5533d;
}

.faq {
    padding: 40px 0;
    text-align: center;
}

.faq h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}

.faq-item {
    margin-bottom: 20px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item h3 {
    font-size: 20px;
    color: #ff6347; /* Ajuste selon ton thème */
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

#categoriesSection[style*="display: none"] {
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
	
	
