/* =============================== */
/* Style global et variables       */
/* =============================== */

:root {
    /* 1. VALEURS PAR DÉFAUT (Si le JS ne charge pas) */
    --theme-light-bg: #f4f6f8;       /* Couleur de fond du thème choisi */
    --theme-light-card: #ffffff;     /* Couleur des cartes du thème choisi */
    --theme-light-text: #333333;     /* Couleur du texte du thème choisi */
    --theme-primary: #d1a3a4;        /* Couleur principale (Boutons, Prix) */

    /* 2. MODE CLAIR (Utilise les variables du thème) */
    --background-color: var(--theme-light-bg);
    --card-bg-color: var(--theme-light-card);
    --text-color: var(--theme-light-text);
    --accent-color: var(--theme-primary);
    
    --header-bg-color: #333;
    --header-text-color: #f0f0f0;
    
    --card-border-color: #e1e4e8;
    --input-bg-color: #ffffff;
    --input-border-color: #ccc;
    
    --btn-main-bg: var(--theme-primary);
    --btn-main-text: #fff;
    --btn-secondary-bg: transparent;
    --btn-secondary-border: var(--input-border-color);
    --btn-secondary-text: var(--text-color);
}

/* 3. MODE SOMBRE (Écrase les couleurs de fond, mais GARDE la couleur principale) */
html.dark-mode {
    --background-color: #121212 !important;  /* Noir profond */
    --card-bg-color: #1e1e1e !important;     /* Gris foncé */
    --text-color: #e0e0e0 !important;        /* Blanc cassé */
    
    /* On garde l'accent color du thème (ex: Orange pour Resto) ou on le force */
    /* --accent-color: var(--theme-primary); <--- Si vous voulez garder la couleur du thème */
    
    --header-bg-color: #000000;
    --header-text-color: #f0f0f0;
    
    --card-border-color: #333333;
    --input-bg-color: #2c2c2c;
    --input-border-color: #444444;
    
    --btn-main-text: #121212; /* Texte noir sur bouton coloré */
    --btn-secondary-text: #f0f0f0;
}

/* =============================== */
/* Reset et Comportements Globaux  */
/* =============================== */
/* 1. Supprime le flash bleu au clic sur MOBILE (Tap Highlight) */
* {
    -webkit-tap-highlight-color: transparent;
}

/* 2. Supprime le contour bleu/noir au clic sur ORDI (Focus Outline) */
*:focus {
    outline: none;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
a, button, input, textarea, select, .like-btn, .thumbnail-images img { -webkit-tap-highlight-color: transparent; outline: none; }
body { font-family: 'Poppins', sans-serif; margin: 0; background-color: var(--background-color); color: var(--text-color); display: flex; flex-direction: column; min-height: 100vh; transition: background-color 0.3s, color 0.3s; }
main { flex-grow: 1; }

/* =============================== */
/* Header et Navigation (FINAL)    */
/* =============================== */
header {
    background-color: var(--header-bg-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.header-main {
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo { font-size: 1.5rem; font-weight: bold; text-decoration: none; color: var(--header-text-color); flex-shrink: 0; }
.nav-desktop { flex-grow: 1; }
.nav-desktop ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 1.5rem; }
.nav-desktop a { text-decoration: none; color: var(--header-text-color); font-weight: 500; white-space: nowrap; transition: color 0.3s; }
.nav-desktop a:hover, .nav-desktop a.active { color: var(--accent-color); }
.header-right { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.theme-toggle-btn { background: none; border: none; cursor: pointer; color: var(--header-text-color); padding: 0.5rem; border-radius: 50%; display: flex; }
.theme-toggle-btn #sun-icon { display: none; }
.theme-toggle-btn #moon-icon { display: block; }
html.dark-mode .theme-toggle-btn #sun-icon { display: block; }
html.dark-mode .theme-toggle-btn #moon-icon { display: none; }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; color: var(--header-text-color); padding: 0.5rem; }

/* Menu Mobile */
.nav-mobile { display: none; background-color: var(--header-bg-color); box-shadow: 0 4px 8px rgba(0,0,0,0.2); border-top: 1px solid var(--card-border-color); }
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; padding: 0; margin: 0; }
.nav-mobile li a { display: block; padding: 1.2rem 2rem; text-align: center; color: var(--header-text-color); text-decoration: none; border-bottom: 1px solid var(--card-border-color); }
.nav-mobile li:last-child a { border-bottom: none; }
.nav-mobile li a:hover, .nav-mobile li a.active { color: var(--accent-color); }

/* =============================== */
/* Bannière page d'accueil         */
/* =============================== */
.banner-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; gap: 3rem; padding-top: 4rem; padding-bottom: 4rem; }
.banner-text { text-align: left; }
.banner-text h1 { font-size: 3.5rem; margin-top: 0; margin-bottom: 1rem; line-height: 1.1; color: var(--text-color); }
.banner-text p { font-size: 1.1rem; color: var(--text-color); opacity: 0.8; margin-bottom: 2rem; }
.banner-image img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
html.dark-mode .banner-image img { box-shadow: 0 10px 30px rgba(0,0,0,0.4); }

/* =============================== */
/* Sections et Contenu Principal   */
/* =============================== */
.container { max-width: 1200px; margin: 2rem auto; padding: 0 2rem; }
h2 { text-align: center; margin-bottom: 2rem; font-size: 2rem; color: var(--accent-color); }

/* =============================== */
/* Section Stories                 */
/* =============================== */
.stories-section { padding: 1rem 0; border-top: 1px solid var(--card-border-color); border-bottom: 1px solid var(--card-border-color); }
.stories-container { display: flex; gap: 1.5rem; overflow-x: auto; padding: 1rem 0; -ms-overflow-style: none; scrollbar-width: none; }
.stories-container::-webkit-scrollbar { display: none; }
.story-item { cursor: pointer; }
.story-circle { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--accent-color); padding: 3px; position: relative; overflow: hidden; }
.story-circle img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; transition: transform 0.3s; }
.story-item:hover .story-circle img { transform: scale(1.1); }
.story-circle span { position: absolute; bottom: 0; left: 0; width: 100%; padding: 1rem 0.2rem 0.4rem; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); color: white; font-size: 0.8rem; font-weight: bold; text-align: center; line-height: 1.1; }

/* =============================== */
/* Visionneuse de Story            */
/* =============================== */
.story-viewer { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); z-index: 3000; display: none; align-items: center; justify-content: center; }
.story-viewer.show { display: flex; }
.close-story { position: absolute; top: 20px; right: 30px; font-size: 3rem; color: white; background: none; border: none; cursor: pointer; }
.story-content { position: relative; max-width: 400px; width: 90%; max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.story-content img, .story-content video { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 8px; }
.story-content .btn { background-color: var(--background-color); color: var(--text-color); font-weight: bold; }

/* =============================== */
/* Grille de produits et Cartes    */
/* =============================== */
.product-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 2rem; 
    transition: opacity 0.3s ease-in-out; 
}

.product-grid.is-loading { opacity: 0; }

.product-card { 
    border: 1px solid var(--card-border-color); 
    background-color: var(--card-bg-color); 
    border-radius: 8px; 
    overflow: hidden; 
    text-align: center; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
    transition: all 0.3s; 
    position: relative;
    
    /* MODIFICATION ICI : On force 0 padding sur les côtés pour l'image */
    padding: 0; 
    padding-bottom: 1rem; /* On garde de l'espace en bas pour les boutons */
}

.product-card .product-link { text-decoration: none; color: inherit; }

.product-card:hover { transform: translateY(-5px); }

/* CORRECTION IMAGE PRODUIT PC */
.product-card img {
    width: 100%;        /* L'image prend toute la largeur */
    height: 250px;      /* Hauteur fixe */
    object-fit: cover;  /* Remplissage intelligent */
    display: block;     
    border-bottom: 1px solid var(--card-border-color);
}

.product-card h3 { 
    font-size: 1.2rem; 
    margin: 1rem 0 0.5rem; 
    color: var(--text-color); 
    padding: 0 10px; /* Petit espacement pour le texte pour qu'il ne touche pas le bord */
}

.product-price { 
    color: var(--accent-color); 
    font-weight: bold; 
    font-size: 1.1rem; 
}

.product-actions { 
    display: flex; 
    justify-content: space-around; 
    align-items: center; 
    padding: 1rem; 
}

/* =============================== */
/* Styles des boutons              */
/* =============================== */
.btn, .like-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.6rem 1.2rem; border-radius: 5px; font-family: 'Poppins', sans-serif; font-weight: 500; cursor: pointer; text-decoration: none; transition: all 0.2s ease; }
.btn { background-color: var(--btn-main-bg); color: var(--btn-main-text); border: none; }
.btn:hover { background-color: #555; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
html:not(.dark-mode) .btn:hover { background-color: #555; }
html.dark-mode .btn:hover { background-color: #b08d8e; }
.btn-secondary { background-color: var(--btn-secondary-bg); color: var(--btn-secondary-text); border: 1px solid var(--btn-secondary-border); }
.btn-secondary:hover { background-color: var(--card-border-color); }
.like-btn { background: none; border: 1px solid var(--input-border-color); color: var(--text-color); gap: 0.5rem; }
.like-btn.liked { color: red; border-color: red; }

/* =============================== */
/* Page de Détail Produit          */
/* =============================== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.product-gallery { display: flex; flex-direction: column; gap: 1rem; }
.main-image img { width: 100%; border-radius: 8px; border: 1px solid var(--card-border-color); aspect-ratio: 1/1; object-fit: cover; }
.thumbnail-images { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.thumbnail-images img { width: 100%; border-radius: 4px; cursor: pointer; border: 2px solid transparent; transition: border-color 0.3s; aspect-ratio: 1/1; object-fit: cover; }
.thumbnail-images img.active, .thumbnail-images img:hover { border-color: var(--accent-color); }
.product-info h1 { font-size: 2.5rem; margin-top: 0; margin-bottom: 1rem; color: var(--text-color); }
.product-info .product-price { font-size: 1.8rem; font-weight: bold; color: var(--accent-color); margin-bottom: 2rem; }
.product-info .product-description { line-height: 1.6; margin-bottom: 2rem; }
.product-info .btn { padding: 0.8rem 1.5rem; font-size: 1.1rem; }

/* =============================== */
/* Filtres et Formulaires          */
/* =============================== */
.filters { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
#search-input, #category-filter, #sort-by { padding: 0.7rem; border: 1px solid var(--input-border-color); background-color: var(--input-bg-color); color: var(--text-color); border-radius: 5px; }
#search-input { width: 250px; }
form { max-width: 600px; margin: 2rem auto; display: flex; flex-direction: column; gap: 1rem; }
form label { font-weight: 500; margin-bottom: -0.5rem; }
form input, form textarea { padding: 0.8rem; font-family: 'Poppins', sans-serif; border: 1px solid var(--input-border-color); background-color: var(--input-bg-color); color: var(--text-color); border-radius: 5px; }
form button { background-color: var(--accent-color); color: white; border: none; cursor: pointer; padding: 0.8rem; font-family: 'Poppins', sans-serif; border-radius: 5px; }

/* =============================== */
/* Page Panier                     */
/* =============================== */
.cart-items { width: 100%; border-collapse: collapse; }
.cart-items th, .cart-items td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--card-border-color); }
.cart-total { text-align: right; margin-top: 2rem; font-size: 1.5rem; font-weight: bold; }
.cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.cart-header h2 { margin: 0; }
.empty-grid-message { grid-column: 1 / -1; text-align: center; padding: 2rem 0; }

/* =============================== */
/* Section des Produits Recommandés*/
/* =============================== */
#recommendations-section { border-top: 1px solid var(--card-border-color); padding-top: 2rem; margin-top: 3rem; }
#recommendations-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* =============================== */
/* Squelettes de Chargement        */
/* =============================== */
.product-card.skeleton { border-color: var(--card-border-color); box-shadow: none; cursor: progress; }
.skeleton .skeleton-img, .skeleton .skeleton-text { background-color: var(--card-border-color); border-radius: 4px; animation: skeleton-pulse 1.5s infinite ease-in-out; }
.skeleton .skeleton-img { width: 100%; height: 250px; margin-bottom: 1rem; }
.skeleton .skeleton-text { height: 1.2rem; margin: 0.5rem auto; }
.skeleton .skeleton-text.short { width: 60%; }
.skeleton .skeleton-text.long { width: 85%; }
@keyframes skeleton-pulse { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } }

/* =============================== */
/* Styles pour la Gestion du Stock */
/* =============================== */
.product-card.out-of-stock::before { content: 'Épuisé'; position: absolute; top: 10px; left: 10px; background-color: rgba(0, 0, 0, 0.7); color: white; padding: 0.3rem 0.6rem; border-radius: 5px; font-size: 0.8rem; font-weight: bold; z-index: 2; }
.product-card.out-of-stock { opacity: 0.7; }
.btn.out-of-stock-btn { background-color: #aaa; color: #fff; cursor: not-allowed; pointer-events: none; }

/* =============================== */
/* Styles pour les Promotions      */
/* =============================== */
.sale-badge { position: absolute; top: 10px; right: 10px; background-color: #e74c3c; color: white; padding: 0.3rem 0.6rem; border-radius: 5px; font-size: 0.8rem; font-weight: bold; z-index: 2; }
.price-container { display: flex; justify-content: center; align-items: center; gap: 0.75rem; height: 1.5em; }
.original-price { text-decoration: line-through; color: #aaa; font-size: 0.9rem; }
.sale-price { color: var(--accent-color); font-weight: bold; font-size: 1.1rem; }
.product-info .price-container .sale-price { font-size: 1.8rem; }
.product-info .price-container .original-price { font-size: 1.2rem; }

/* =============================== */
/* Style du Footer (Pied de page)  */
/* =============================== */
.footer { background-color: var(--header-bg-color); color: var(--header-text-color); padding: 1.5rem 2rem; margin-top: auto; font-size: 0.9rem; border-top: 3px solid var(--accent-color); position: relative; z-index: 1; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.footer-separator { color: var(--accent-color); }
.footer a { color: var(--header-text-color); text-decoration: none; transition: text-decoration 0.3s; }
.footer a:hover { text-decoration: underline; }


/* =============================== */
/* Style de la Notification Toast  */
/* =============================== */
.toast { position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); background-color: var(--header-bg-color); color: var(--header-text-color); padding: 1rem 1.5rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); z-index: 2000; transition: bottom 0.5s ease; font-weight: 500; }
.toast.show { bottom: 90px; }

/* ==================================== */
/* Style de l'icône de panier dynamique */
/* ==================================== */
.nav-cart-link { position: relative; display: flex; align-items: center; gap: 0.5rem; }
.cart-count { background-color: var(--accent-color); color: #1a1a1a; font-size: 0.75rem; font-weight: bold; padding: 0.1rem 0.4rem; border-radius: 50%; min-width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; line-height: 1; transition: transform 0.2s ease, opacity 0.2s ease; transform: scale(0); opacity: 0; }
.cart-count.visible { transform: scale(1); opacity: 1; }

/* ==================================== */
/* Modal de Confirmation Personnalisé   */
/* ==================================== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); z-index: 4000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-content { background-color: var(--card-bg-color); color: var(--text-color); padding: 2rem; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.3); width: 90%; max-width: 400px; text-align: center; transform: scale(0.9); transition: transform 0.3s ease; }
.modal-overlay.show .modal-content { transform: scale(1); }
.modal-content p { margin-top: 0; margin-bottom: 1.5rem; font-size: 1.1rem; line-height: 1.5; }
.modal-actions { display: flex; justify-content: space-around; gap: 1rem; }

/* =============================== */
/* Design Responsive (FINAL)       */
/* =============================== */
@media (max-width: 992px) {
    .nav-desktop { display: none; }
    .mobile-menu-btn { display: block; }
}

@media (max-width: 768px) {
    .header-main { padding: 1rem; }
    .banner-container { grid-template-columns: 1fr; text-align: center; }
    .banner-text { text-align: center; order: 1; margin-bottom: 2rem; }
    .banner-image { order: 2; }
    .banner-text h1 { font-size: 2.5rem; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
    .container { padding: 0 1rem; }
    .filters { flex-direction: column; align-items: stretch; }
    #search-input { width: 100%; }
    .product-detail { grid-template-columns: 1fr; }
    .footer-container { flex-direction: column; justify-content: center; text-align: center; gap: 1rem; }
    .btn, .like-btn {
    padding: 0.8rem 1.5rem; /* Plus de rembourrage pour grossir le bouton */
    min-height: 48px;       /* Hauteur minimale confortable pour le pouce */
    font-size: 1rem;        /* Texte un peu plus lisible */
}

.product-actions {
    gap: 1rem; /* Sépare bien le bouton "Panier" du bouton "Cœur" */
}

/* Optionnel : Rendre le bouton "Ajouter au panier" plus large sur mobile */
.product-card .btn {
    width: 100%; /* Le bouton prend toute la largeur disponible */
    margin-bottom: 0.5rem;
}

.product-actions {
    flex-direction: column; /* Empile les boutons Panier et Coeur l'un sur l'autre sur mobile */
}

    /* PANIER RESPONSIVE */
    .cart-items thead { border: none; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
    .cart-items tr { display: block; margin-bottom: 1.5rem; border: 1px solid var(--card-border-color); border-radius: 8px; padding: 1rem; }
    .cart-items td { display: flex; justify-content: space-between; align-items: center; text-align: right; padding: 0.75rem 0.5rem; border-bottom: none; }
    .cart-items td:not(:first-child) { border-top: 1px solid var(--card-border-color); }
    .cart-items td::before { content: attr(data-label); font-weight: bold; text-align: left; margin-right: 1rem; }
    .cart-items td:nth-of-type(1)::before { content: 'Produit'; }
    .cart-items td:nth-of-type(2)::before { content: 'Prix'; }
    .cart-items td:nth-of-type(3)::before { content: 'Quantité'; }
    .cart-items td:nth-of-type(4)::before { content: 'Total'; }
    .cart-items td:nth-of-type(5)::before { content: 'Actions'; }
    .cart-items td:nth-of-type(1) { font-size: 1.1rem; font-weight: 500; justify-content: center; padding-bottom: 0.75rem; }
    .cart-items td:nth-of-type(1)::before, .cart-items td:nth-of-type(5)::before { display: none; }
    .cart-items td:nth-of-type(5) { justify-content: center; }
    .cart-items td:nth-of-type(5) .btn-secondary { flex-grow: 1; }
    .cart-total { text-align: center; font-size: 1.6rem; }
}
/* =============================== */
/* NOUVEAU : Boutons WhatsApp & Partage */
/* =============================== */

/* Le gros bouton "Commander sur WhatsApp" */
.btn-whatsapp-order {
    background-color: #25D366;
    color: white;
    font-weight: bold;
    width: 100%; /* Prend toute la largeur */
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
}
.btn-whatsapp-order:hover {
    background-color: #128C7E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}

/* La section de partage */
.share-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--card-border-color);
}
.share-section p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    opacity: 0.8;
}
.share-buttons {
    display: flex;
    gap: 10px;
}
.btn-share {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s;
}
.share-wa {
    background-color: #25D366;
    color: white;
}
.share-fb {
    background-color: #1877F2;
    color: white;
}
.btn-share:hover { opacity: 0.9; }

/* Page 404 */
.error-page {
    text-align: center;
    padding: 4rem 1rem;
}
.error-page h1 { font-size: 4rem; margin: 0; color: var(--accent-color); }
.error-page p { font-size: 1.2rem; margin-bottom: 2rem; }
/* =============================== */
/* NOUVEAU : Animations & Stock    */
/* =============================== */

/* Animation "Pulse" pour le stock faible */
@keyframes pulse-red {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}
.stock-alert {
    color: #e74c3c; /* Rouge */
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 5px;
    display: inline-block;
    animation: pulse-red 2s infinite;
}

/* Style des Témoignages (Page d'accueil) */
.testimonials-section {
    margin-top: 4rem;
    margin-bottom: 4rem;
    text-align: center;
}
.testimonials-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}
.testimonial-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--card-border-color);
    padding: 1.5rem;
    border-radius: 10px;
    max-width: 320px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
}
.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: serif;
}
.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}
.testimonial-author {
    color: var(--accent-color);
    font-weight: bold;
    display: block;
}
/* =============================== */
/* Bannière de Cookies (Custom)    */
/* =============================== */
#cookie-banner {
    position: fixed;
    bottom: -100%; /* Caché par défaut */
    left: 20px;
    right: 20px;
    max-width: 500px; /* Pas trop large sur ordi */
    background-color: var(--card-bg-color);
    color: var(--text-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border: 1px solid var(--card-border-color);
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#cookie-banner.show {
    bottom: 20px; /* Apparaît en bas à gauche */
}

.cookie-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
/* --- Looks / Inspirations --- */
.looks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 1rem; }
.look-card { background: var(--card-bg-color); border-radius: 10px; overflow: hidden; border: 1px solid var(--card-border-color); }
.look-card img { width: 100%; height: 250px; object-fit: cover; }
.look-info { padding: 1rem; }
.tag { display: inline-block; background: var(--background-color); padding: 3px 8px; font-size: 0.8rem; border-radius: 20px; margin-right: 5px; border: 1px solid #ccc; }

/* --- FAQ --- */
.faq-item { margin-bottom: 10px; border-bottom: 1px solid var(--card-border-color); }
.faq-item summary { padding: 15px; cursor: pointer; font-weight: bold; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; }
.faq-item[open] summary::after { content: '-'; }
.faq-item p { padding: 0 15px 15px; color: var(--text-color); opacity: 0.8; line-height: 1.6; }

/* --- Popup VIP --- */
.vip-popup { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 2000; display: flex; justify-content: center; align-items: center; animation: fadeIn 0.5s; }
.vip-content { background: var(--card-bg-color); padding: 2rem; border-radius: 15px; text-align: center; max-width: 400px; position: relative; width: 90%; border: 2px solid var(--accent-color); }
.vip-close { position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-color); }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* --- SÉLECTEUR DE DEVISE --- */
.currency-select {
    background: transparent;
    border: 1px solid var(--card-border-color);
    color: var(--header-text-color);
    padding: 5px;
    border-radius: 5px;
    font-size: 0.8rem;
    cursor: pointer;
}
.currency-select option { color: #333; } /* Pour que les options soient lisibles */

/* --- ZOOM IMAGE --- */
.main-image-container {
    overflow: hidden; /* Important pour ne pas que l'image sorte du cadre */
    border-radius: 8px;
    border: 1px solid var(--card-border-color);
    cursor: crosshair; /* Curseur loupe */
}
.zoom-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease-out; /* Fluidité du zoom */
}

/* --- BOUTONS TAILLES --- */
.product-sizes { margin-bottom: 1rem; }
.product-sizes label { font-weight: bold; display: block; margin-bottom: 0.5rem; }
.size-options { display: flex; gap: 10px; flex-wrap: wrap; }
.size-options input[type="radio"] { display: none; } /* Cache le rond moche */

.size-box {
    border: 1px solid var(--input-border-color);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--input-bg-color);
    color: var(--text-color);
    min-width: 40px;
    text-align: center;
}

/* Style quand sélectionné */
.size-options input[type="radio"]:checked + .size-box {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: scale(1.05);
}
/* =============================== */
/* CORRECTION RECOMMANDATIONS      */
/* =============================== */

/* Force la couleur du texte et enlève le soulignement */
#recommendations-grid .product-link {
    color: var(--text-color) !important;
    text-decoration: none !important;
    display: block;
}

#recommendations-grid h3 {
    color: var(--text-color) !important;
    font-size: 1rem;
    margin-top: 0.5rem;
}

#recommendations-grid .product-price {
    color: var(--accent-color) !important;
    font-weight: bold;
}

/* S'assure que l'image ne dépasse pas */
#recommendations-grid img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}
.product-card.star-product {
    border: 2px solid #FFD700; /* Bordure Dorée */
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}
.star-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #FFD700;
    color: #000;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 10;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* =============================== */
/* BADGE RÉSEAU EM AREA            */
/* =============================== */
.network-badge {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1); /* Ligne discrète */
    text-align: center;
    font-size: 0.9rem;
}

.network-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    color: var(--header-text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.network-link:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.network-icon {
    font-size: 1.2rem;
}
/* =============================== */
/* NOTIFICATIONS & ANIMATIONS      */
/* =============================== */

/* 1. La Notification (Toast) */
.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333; /* Fond sombre */
    color: #fff;
    text-align: center;
    border-radius: 50px; /* Bords ronds modernes */
    padding: 16px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px; /* Petit effet de remontée */
}

/* 2. Animation du Panier (Rebond) */
@keyframes bounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

.cart-bump {
    animation: bounce 0.3s ease-in-out;
    background-color: #27ae60 !important; /* Devient vert brièvement */
    color: white !important;
}
/* =============================== */
/* GESTION DES PROMOS (Prix Barré) */
/* =============================== */

.price-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Ancien prix (Gris et Barré) */
.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    font-weight: normal;
}

/* Nouveau prix (Rouge et Animé si promo) */
.promo-price {
    color: #e74c3c; /* Rouge Promo */
    font-weight: 800;
    font-size: 1.2rem;
    animation: popPrice 1.5s infinite; /* Ça pompe ! */
}

/* Animation "Battement de coeur" */
@keyframes popPrice {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Ajustement pour la fiche produit (plus gros) */
.product-info .price-container {
    justify-content: flex-start; /* Aligné à gauche sur PC */
}
.product-info .promo-price {
    font-size: 1.5rem;
}
/* --- BOUTON GÉNÉRATEUR D'AFFICHE --- */
.btn-poster {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
    color: white;
    font-weight: bold;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.btn-poster:hover {
    transform: scale(1.02);
}

.btn-poster svg {
    width: 20px;
    height: 20px;
}
