/* ===== 1. RESET & BASE ===== */
* {
    user-select: none;
    box-sizing: border-box;
}

:root {
    --color-primary: #000;
    --color-secondary: #fff;
    --color-dark-grey: #333;
    --color-light-grey: #e3e3e3;
}

html,
body {
    background-image: url('../Images/bckg2.png'); /* Remplacez par le nom de votre fichier */
    background-size: cover;      /* L'image couvre tout l'écran */
    background-position: center; /* Centre l'image */
    background-repeat: no-repeat;
    background-attachment: fixed; /* L'image ne bouge pas au scroll */
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--color-dark-grey);
    /* Couleur de base pour le contenu hors bannière */
    overflow-x: hidden;
}

/* Empêche le défilement du corps lorsque le menu/sidebar est ouvert */
.modal-open {
    overflow-y: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== 2. HERO BANNER & HEADER (Section principale en haut) ===== */

.hero-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* CHANGEMENT CLÉ: Décaler la bannière vers le bas (Desktop: ~64px) */
    padding-top: 64px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    /* Assombrissement */
    display: flex;
    flex-direction: column;

    /* CHANGEMENT CLÉ: Centrer le contenu (car le header est sorti) */
    justify-content: center;
    align-items: center;
    /* SUPPRIMÉ: justify-content: space-between; */

    z-index: 1;
    color: var(--color-secondary);
    /* CHANGEMENT CLÉ: Décaler l'overlay vers le bas (Desktop: ~64px) */
    padding-top: 64px;
}


/* --- Header --- */
.hero-header {
    /* CHANGEMENT CLÉ: Le header est maintenant fixe */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* S'assurer qu'il prend toute la largeur */
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    /* Padding de base pour Desktop */
    transition: background-color 0.4s ease, color 0.4s ease;
    color: var(--color-light-grey);
}

/* Style au scroll (la classe sera ajoutée/retirée par JavaScript) */
.hero-header.scrolled {
    background: var(--color-secondary);
    color: var(--color-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-header.scrolled svg {
    fill: var(--color-primary);
}

.hero-header.scrolled a {
    color: var(--color-primary);
}

/* Style au survol (s'applique même si scrolled n'est pas actif) */
.hero-header:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-header  svg {
    fill: var(--color-primary);
}

.hero-header  a {
    color: var(--color-primary);
}


/*.hero-header  {*/
/*    background: var(--color-secondary);*/
/*    color: var(--color-primary);*/
/*    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);*/
/*}*/

.hero-header  svg {
    fill: var(--color-primary);
}

.hero-header  a {
    color: var(--color-primary);
}


/* Hero Left: Menu et Recherche */
.hero-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    /* La zone de recherche est cliquable (l'élément <a> dans l'HTML) */
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    /* Pour centrer l'icône */
    align-items: center;
}

.menu-btn svg,
.hero-left svg {
    /* fill: var(--color-light-grey); */
}

.hero-header .menu-btn svg,
.hero-header .hero-left svg {
    /* fill: var(--color-primary); */
}


/* Hero Center: Logo/Titre */
.hero-center .logo {
    font-size: 20px;
    letter-spacing: 5px;
    font-weight: 600;
    margin: 0;
}

/* Hero Right: Icônes et Contact */
.hero-right {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 15px;
}

.hero-right .icon {
    cursor: pointer;
    display: flex;
    /* Pour centrer l'icône */
    align-items: center;
}

.hero-right svg {
    /* fill: var(--color-light-grey); */
    width: 24px;
    height: 24px;
}

/* Le lien 'Contactez-nous' sera masqué sur mobile */
.hero-right a {
    /* color: var(--color-light-grey); */
    text-decoration: none;
    letter-spacing: 0.5px;
}

/* --- Hero Content --- */
.hero-content {
    z-index: 2;
    text-align: center;
    /* CHANGEMENT: Marge réduite/supprimée car le contenu est centré par flexbox */
    margin-bottom: 0;
}

.hero-subtitle {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
}


/*.hero-header {*/
/*    transition: background-color .25s ease, padding .25s ease, box-shadow .25s ease;*/
/*    padding: 18px 16px;*/
/*}*/

.hero-header.scrolled {
    padding: 15px 17px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}


.logo-img {
    height: 40px;
    /* ajuste la hauteur */
    width: auto;
    /* background-color: #fefdfd42; */
}

/* CTA */
.hero-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 10px;
    background:  #0066cc0e;
    color: #fff;
    text-decoration: none;
    transform: translateY(0);
    transition: transform .18s ease, box-shadow .18s ease;
}

.hero-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}


.hero-btn:hover {
    border-radius: 5px;
    text-decoration: none;
    color: var(--color-secondary);
    border: 1px solid var(--color-secondary);
    padding: 10px 20px;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
}


/* ===== 3. SECTION PRODUITS (Après la bannière) ===== */

/* Styles généraux pour le conteneur de la section */
.product-selection-section {
    padding: 3px 0;
    /* Plus de padding vertical */
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 colonnes */
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

/* Style du titre de la section */
.section-title {
    font-family: serif;
    font-size: 28px;
    margin-bottom: 40px;
    font-weight: 300;
    /* Plus léger */
    color: var(--color-dark-grey);
    padding: 0 20px;
}

.product-grid-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    /* margin-bottom: 40px; */
    justify-content: center;
}

/* Conteneur pour la grille de produits (Flexbox & Responsive Scroll) */
.product-grid {
    display: flex;
    justify-content: flex-start;
    /* Alignement à gauche sur mobile pour le scroll */
    gap: 20px;
    overflow-x: auto;
    
    -webkit-overflow-scrolling: touch;
    /* Améliore le défilement sur iOS */
}

/* Style de chaque carte produit */
.product-card {
    flex: 0 0 auto;
    /* Empêche le redimensionnement et force une seule ligne */
    /*width: 250px;*/
    /*max-width: 40vw;*/
    /* Limite la largeur sur les très petits écrans */
    text-align: center;
    cursor: pointer;
    transition: opacity 0.3s;
}

.product-card:hover {
    opacity: 0.85;
}

.card-image-container {
    width: 100%;
    padding-top: 90%;
    /* Ratio 10:9 approximatif */
    position: relative;
    background-color: var(--color-light-grey);
    margin-bottom: 10px;
    overflow: hidden;
    /* Assure que l'image est contenue */
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Style du libellé du produit */
.product-label {
    font-family: sans-serif;
    font-size: 14px;
    color: var(--color-dark-grey);
    text-transform: none;
    margin: 5px 0 0;
    line-height: 1.2;
}


/* ===== 4. MODALS (Overlay, Menu Mobile, Sidebar) ===== */

/* Overlay */
.overlay {

    pointer-events: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    z-index: 150;
}


.overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

contact-sidebar {
    opacity: 0;
    transform: translateX(100%);
}

.contact-sidebar.active {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease;
}

/* Menu Latéral Mobile */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: var(--color-secondary);
    color: var(--color-primary);
    transition: left 0.4s ease;
    z-index: 200;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    font-weight: 500;
}

.mobile-menu header button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-primary);
    padding: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 20px 30px;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.mobile-menu li {
    margin: 15px 0;
    padding-bottom: 1.5rem;
}

.mobile-menu a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    transition: color 0.3s;
    display: block;
}

.mobile-menu a:hover {
    color: #777;
}

.mobile-menu .footer {
    border-top: 1px solid #ddd;
    padding: 20px 30px;
    font-size: 14px;
    text-align: center;
}

/* Contact Sidebar */
.contact-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: var(--color-secondary);
    color: var(--color-primary);
    transition: right 0.4s ease;
    z-index: 200;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.contact-sidebar.active {
    right: 0;
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    min-height: 70px;
}

.contact-title {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    color: var(--color-primary);
}

.contact-body {
    flex-grow: 1;
    padding: 20px 30px;
    overflow-y: auto;
}

.contact-intro {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-options li {
    margin-bottom: 25px;
}

.contact-options a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s;
}

.contact-options a:hover {
    color: #4a4a4a;
}

.contact-options svg,
.contact-options i {
    fill: var(--color-dark-grey);
    margin-right: 15px;
    width: 24px;
    height: 24px;
}

.contact-options span {
    flex-grow: 1; 
}

.status-available {
    font-size: 12px;
    color: green;
    font-weight: 600;
    margin-left: 10px;
}

.disabled-option a {
    opacity: 0.5;
    pointer-events: none;
}

.disabled-option .disabled-message {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    margin-left: 39px;
}

.contact-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    text-align: center;
}

.help-link {
    font-weight: 500;
    transition: opacity 0.3s;
}

.help-link:hover {
    opacity: 0.7;
}




/* ==================================== */
/* 3. SECTION PUBLICITÉ / MARKETING */
/* ==================================== */

.pubmarketing-section {
    /* Hauteur de la section comme demandé */
    height: 550px;
    /* S'assurer que la section prend toute la largeur */
    width: 100%;
    /* Aide à positionner l'image si besoin, bien que non nécessaire ici */
    position: relative;
    /* Empêche le contenu de déborder */
    overflow: hidden;
    /* Optionnel: Ajoutez de l'espace au-dessus et en dessous de cette section si vous le souhaitez */
    margin: 40px 0;
}

.pub-image {
    /* L'image prend toute la largeur de sa section parente */
    width: 100%;
    /* L'image prend toute la hauteur de sa section parente */
    height: 100%;
    /* Assure que l'image couvre toute la zone sans être étirée. 
        Les parties en surplus de l'image seront coupées (cropping) 
        si les proportions de l'image ne correspondent pas exactement à 550px de hauteur.
    */
    object-fit: cover;
    /* Assure un rendu net */
    display: block;
}


    /* états */
    .hidden {
        opacity: 0;
        pointer-events: none;
    }
    
    .visible {
        opacity: 1;
    }

.not-logged {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* espace entre le texte et le bouton */
    margin-top: auto;
}

.contact-sidebar .contact-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* s'assure que le contenu prend toute la hauteur de la modale */
}

.cart-footer,
.not-logged {
    margin-top: auto;
    /* pousse le footer/bouton complètement en bas */
}

/* --- Styles des Formulaires de Connexion/Inscription (loginSidebar) --- */

/* Styles uniformes pour les inputs */
.contact-body input[type="email"],
.contact-body input[type="password"],
.contact-body input[type="text"],
.contact-body input[type="tel"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    /* Assurez-vous que les styles inline dans le HTML ne le surchargent pas */
}

/* Boutons primaires (M'identifier / S'inscrire) */
.contact-body .auth-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 30px;
    background: var(--color-primary);
    /* Noir par défaut */
    color: var(--color-secondary);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s;
}

.contact-body .auth-btn:hover {
    background: #444;
}

/* Boutons secondaires (Créer mon compte / M'identifier - en bas) */
.contact-body .secondary-btn {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-primary);
    border-radius: 30px;
    background: var(--color-secondary);
    color: var(--color-primary);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-body .secondary-btn:hover {
    background: var(--color-light-grey);
}

/* Séparateur pour les sections */
.contact-body .separator {
    margin: 4px 0;
    border: none;
    border-top: 1px solid #eee;
}

/* Gestion de l'affichage des Vues Connexion/Inscription */
.auth-view {
    display: none;
    /* Cache toutes les vues par défaut */
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.auth-view.active {
    display: block;
    /* Affiche la vue active */
    opacity: 1;
}

/* Styles pour le bouton Google (pour supprimer les styles inline du HTML) */
.google-login-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    /* Bordure plus douce */
    border-radius: 30px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.google-login-btn:hover {
    background: #f7f7f7;
}

.forgot-password-link a {
    margin-bottom: 25px;
}


/* Styles pour les champs spécifiques */
.password-toggle svg {
    fill: #777;
    transition: fill 0.3s;
}

.password-toggle:hover svg {
    fill: var(--color-primary);
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
}

/* --- MODALES CENTRÉES (Cart et Wishlist) --- */

#wishlistSidebar,
#cartSidebar {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    max-width: 800px;
    height: 80%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* État actif (quand la modale est ouverte) */
#wishlistSidebar.active,
#cartSidebar.active {
    opacity: 1;
    visibility: visible;
    /* transform: translate(-50%, -50%) scale(1); */
}

/* Contenu de la modale */
#wishlistSidebar .contact-header,
#cartSidebar .contact-header {
    background: #2cd7ead9;
    color: #130707;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

#wishlistSidebar .contact-body,
#cartSidebar .contact-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

/* Bouton de fermeture */
#closeWishlistSidebar,
#closeCartSidebar {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

/* Footer (pour le panier par ex) */
#cartSidebar .cart-footer {
    padding: 1rem 2rem;
    border-top: 1px solid #eee;
    background: #f8f8f8;
}

/* Conteneur autour du panier pour positionner correctement le badge */
.icon {
    position: relative;
    /* nécessaire pour que le badge se positionne par rapport à l'icône */
    display: inline-block;
    cursor: pointer;
}

/* Badge du panier */
.cart-badge {
    position: absolute;
    top: -6px;
    /* légèrement au-dessus du coin */
    right: -6px;
    /* légèrement à droite du coin */
    background-color: #0000004d;
    color: #fff;
    /* texte blanc pour contraste */
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    /* léger relief */
    z-index: 10;
    transition: transform 0.2s ease;
    /* animation pour ajout d'articles */
}

/* Effet "pop" quand le badge change */
.cart-badge.update {
    transform: scale(1.3);
}

/* Assurer la visibilité sur hover */
.icon:hover .cart-badge {
    background-color: #20d7f3e2;
    color: #fff;
}






.product-selection-section {
    padding: 2rem 1rem;
    text-align: center;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

 

.product-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(74, 203, 246, 0.525);
}

.card-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-label {
    font-weight: 500;
    padding: 1rem;
    color: #333;
}


 

/* =========================================================
   2. HEADER DU PANIER
========================================================= */
.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    background: #111;
    color: #fff;
}

.contact-header .contact-title {
    font-size: 20px;
    font-weight: 600;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    transition: transform .2s;
}

.close-btn:hover {
    transform: rotate(90deg);
}

/* =========================================================
   3. CORPS DU PANIER (contenu + état vide)
========================================================= */
.contact-body {
    padding: 18px;
    overflow-y: auto;
    flex: 1;
}

.not-logged,
.empty-cart {
    text-align: center;
    padding: 50px 10px;
}

.auth-btn {
    margin-top: 10px;
    padding: 10px 18px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: .3s;
}

.auth-btn:hover {
    background: #333;
}

/* =========================================================
   4. ITEM DU PANIER
========================================================= */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #f8f8f8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.07);
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
}

.cart-item-price {
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
}

/* =========================================================
   5. BOUTONS QUANTITÉ
========================================================= */
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    background: #111;
    color: #fff;
    border-radius: 6px;
    border: none;
    font-size: 17px;
    cursor: pointer;
    transition: .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #333;
}

.quantity {
    font-size: 16px;
    font-weight: 600;
}

/* =========================================================
   6. FOOTER DU PANIER
========================================================= */
.cart-footer {
    border-top: 1px solid #eee;
    padding: 18px;
    background: #fff;
}

.cart-total {
    font-size: 17px;
    margin-bottom: 14px;
}

.view-cart-btn,
.checkout-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 10px;
    transition: .25s;
}

.view-cart-btn {
    background: #f0f0f0;
    color: #111;
}

.view-cart-btn:hover {
    background: #e0e0e0;
}

.checkout-btn {
    background: #111;
    color: #fff;
}

.checkout-btn:hover {
    background: #333;
}


/* footer style */
.footer {
    padding: 20px 0px;
    background: #fff;
    font-family: Arial, sans-serif;
    border-top: 1px solid #e5e5e5;
}

.footer-logo h2 {
    text-align: center;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.footer-accordion {
    max-width: 1000px;
    margin: auto;
}

.accordion-item {
    border-bottom: 1px solid #e5e5e5;
    padding: 10px 0;
}

.accordion-btn {
    width: 100%;
    background: none;
    border: none;
    font-size: 16px;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
}

.accordion-btn .icon {
    transition: transform 0.3s;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease;
}

.accordion-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.accordion-content ul li {
    margin-bottom: 8px;
}

.accordion-content a {
    text-decoration: none;
    color: black;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
    flex-wrap: wrap;
    font-size: 14px;
}

.footer-bottom a {
    text-decoration: none;
    color: black;
}

.footer-country {
    text-align: center;
    margin-top: 20px;
}



/* === Animation card modern === */

.product-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 10px;
    transition: all .4s ease;
}

/* BACKGROUND IMAGE SURVOL */
.product-card:hover {
    background-image: url('/Images/logohBalbineSTORE.png');
    /* change par ton image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Icône + bouton */
.card-action {
    margin-top: 10px;
    position: relative;
    height: 40px;
}

/* Icône par défaut */
.card-icon {
    font-size: 20px;
    color: #1ad6e7;
    transition: opacity .3s ease, transform .3s ease;
}

/* Bouton read more (caché) */
.read-more-btn {
    position: absolute;
    left: 50%;
    top: 0;
    /* transform: translateX(-50%); */
    padding: 8px 15px;
    background: #1ad6e7;
    color: #fff;
    border-radius: 7px;
    text-decoration: none;
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
    pointer-events: none;
}

.rotate-diagonal {
    display: inline-block;
    transform: rotate(-45deg); /* ou 45deg selon la direction que tu veux */
}

/* Transition au survol */
.product-card:hover .card-icon {
    opacity: 0;
    transform: translateY(-10px);
}

.product-card:hover .read-more-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
    pointer-events: all;
}

/* Logo en filigrane dans un coin */
.product-card::after {
    content: "";
    position: absolute;
    bottom: 10px;   /* bas */
    right: 10px;    /* droite */
    width: 60px;    /* taille du logo */
    height: 60px;
    background-image: url('/Images/logoBalbineSTORE.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;         /* invisible au repos */
    transition: opacity .4s ease;
}

/* Apparition nette au survol */
.product-card:hover::after {
    opacity: 0.9;       /* logo visible */
}




/* ========================================================= */
/* SECTION : PRODUITS – VERSION PROPRE ET RESPONSIVE         */
/* ========================================================= */

/* --- Grille produits --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 10px;
}

/* --- Carte produit --- */
.product-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    /*padding: 10px;*/
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* --- Image produit --- */
.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* carré */
    overflow: hidden;
    border-radius: 12px;
}

.product-image-wrapper img {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    object-fit: cover;
}

/* --- Badge personnalisable --- */
.custom-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #FF8A00;
    color: #fff;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

/* --- Infos produit --- */
.product-info {
    margin-top: 10px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.product-price {
    font-size: 15px;
    font-weight: bold;
    color: #222;
    margin: 4px 0 0 0;
}


/* =====  RESPONSIVE MEDIA QUERIES ===== */

@media (max-width: 768px) {
    /* HEADER */
    .hero-header {
        display: grid;
        grid-template-areas: "left center right";
        grid-template-columns: 1fr auto 1fr;
        padding: 15px 10px;
        background: rgba(255, 255, 255, 0.9);
        color: var(--color-primary);
    }

    .hero-left {
        grid-area: left;
        justify-content: flex-start;
        align-items: center;
        gap: 15px;
    }

    .hero-left .search-text {
        display: none;
    }

    .hero-center {
        grid-area: center;
        text-align: center;
    }

    .hero-center .logo {
        font-size: 18px;
        letter-spacing: 3px;
    }

    .hero-right {
        grid-area: right;
        justify-content: flex-end;
        gap: 10px;
    }

    .hero-right a:first-child,
    .hero-right .icon:nth-child(2),
    .hero-right .icon:nth-child(3) {
        /*display: none;*/
    }

    /* Bannière */
    .hero-banner,
    .hero-overlay {
        height: 75vh;
        padding-top: 50px;
    }

    .hero-content {
        margin-top: 50px;
        margin-bottom: 40px;
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    /* Grille produits */
    .product-selection-section {
        padding: 2rem 0.5rem;
    }

    .product-grid-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-grid {
        justify-content: flex-start;
    }

    .product-card {
        /*width: 180px;*/
        /*max-width: 45vw;*/
    }

    .section-title {
        font-size: 24px;
    }

    /* Menu mobile */
    .mobile-menu {
        width: 100%;
        max-width: none;
    }

    #wishlistSidebar,
    #cartSidebar {
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .pubmarketing-section {
        height: 300px;
        margin: 20px 0;
    }
}
/* Mode Desktop : affichage des colonnes */
@media (min-width: 900px) {
    .footer-accordion {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .accordion-btn .icon {
        display: none;
    }

    .accordion-content {
        max-height: none !important;
        overflow: visible;
    }

    .accordion-btn {
        cursor: default;
    }
}


@media (max-width: 1024px) {
    .hero-header {
        padding: 15px 30px;
        font-size: 15px;
    }

    .hero-center .logo {
        font-size: 18px;
        letter-spacing: 3px;
    }

    .hero-right {
        gap: 15px;
    }

    .hero-banner {
        height: 80vh;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 10px;
    }
}

/* --- Très Petits Écrans (jusqu'à 480px) --- */
@media (max-width: 400px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }

    .product-card {
        border-radius: 10px;
    }

    .product-name {
        font-size: 14px;
    }

    .product-price {
        font-size: 14px;
    }
        .cart-sidebar {
        display: grid;
        grid-template-areas: "left center right";
        grid-template-columns: 1fr auto 1fr;
        padding: 12px 15px;
        background: rgba(255, 255, 255, 0.9);
        color: var(--color-primary);
    }

    .hero-header {
        padding: 10px 8px;
    }

    .hero-center .logo {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .hero-banner {
        height: 60vh;
    }

    .hero-btn {
        font-size: 12px;
        padding: 8px 16px;
    }

    .product-grid-categories {
                /* passer à 1 seule colonne */
                /* grid-template-columns: 1fr; */
                gap: 10px;
            }

    .product-card {
        width: 90%;
    }

    .section-title {
        font-size: 20px;
    }
    .hero-header {
        padding: 15px 5px;
    }

    .hero-left {
        font-size: 12px;
        gap: 5px;
    }

    .hero-left svg {
        width: 20px;
        height: 20px;
    }

    .hero-right {
        gap: 5px;
    }

    .hero-right svg {
        width: 20px;
        height: 20px;
    }
}

/* --- Desktop (min 769px) --- */
@media (min-width: 769px) {
    .hero-header {
        padding: 20px 60px;
        /* Rétablir le padding de bureau */
    }

    /* CHANGEMENT CLÉ: Rétablir le padding desktop après le mobile */
    .hero-banner,
    .hero-overlay {
        padding-top: 64px;
    }

    /* Rétablir l'affichage des éléments de bureau */
    .hero-right a:first-child,
    .hero-right .icon:nth-child(2),
    .hero-right .icon:nth-child(3) {
        display: block;
    }

    .hero-right .icon {
        display: inline-flex;
    }

    .product-grid {
        justify-content: center;
        /* Centrer sur desktop */
        overflow-x: hidden;
        padding-left: 0;
        padding-right: 0;
    }

    .product-card {
        /*width: 250px;*/
        /* Rétablir la largeur du desktop */
        max-width: none;
    }
}
/* === GRANDS ÉCRANS (au-delà de 1400px) === */
@media (min-width: 1400px) {
    .hero-banner {
        height: 95vh;
    }

    .hero-header {
        padding: 25px 80px;
    }

    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap:  10px;
    }
}


@media (max-width: 400px) {

    /* ==== HEADER ==== */
    .hero-header {
        padding: 10px 12px;
        display: grid;
        grid-template-areas: "left center right";
        grid-template-columns: 1fr auto 1fr;
        background: rgba(255, 255, 255, 0.95);
    }

    .hero-center .logo {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .hero-right a,
    .hero-right .icon {
        /* display: none; masque les éléments trop larges */
    }

    /* ==== BANNIÈRE ==== */
    .hero-banner {
        height: 58vh;
        padding-top: 40px;
    }

    .hero-content {
        padding: 0 10px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-btn {
        font-size: 13px;
        padding: 8px 14px;
    }

    /* ==== PRODUITS ==== */
    .product-selection-section {
        padding: 1.5rem 0.6rem;
    }

    
    .product-grid-categories {
                /* passer à 1 seule colonne */
                /* grid-template-columns: 1fr; */
                gap: 10px;
            }
    .product-grid{
        
        grid-template-columns: repeat(2, 2fr) !important; /* 1 produit par ligne */
        gap: 1rem;
    }
    .product-card {
        width: 100%;
        /*max-width: 350px;*/
        margin: auto;
    }

    .product-card::after {
        width: 45px;   /* logo plus petit en filigrane */
        height: 45px;
        bottom: 6px;
        right: 6px;
    }

    /* ==== PANIER ==== */
    .cart-sidebar {
        width: 100%;
        max-width: none;
        padding: 14px;
    }

    .cart-item {
        padding: 10px;
        gap: 10px;
    }

    .cart-item-img {
        width: 60px;
        height: 60px;
    }

    /* ==== TITRES ==== */
    .section-title {
        font-size: 20px;
        text-align: center;
    }
}

/* === Smartphones moyens (481px à 767px) === */
@media (max-width: 767px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === Tablettes (768px à 1024px) === */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .product-card {
        border-radius: 9px;
    }

    .product-info {
        padding: 14px;
    }
}

/* === Écrans larges (plus de 1024px) === */
@media (min-width: 1025px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* --- Tablettes --- */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
}

/* --- Smartphones --- */
@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .product-name {
        font-size: 13px;
    }

    .product-price {
        font-size: 14px;
    }

}

/* ===== End__RESPONSIVE MEDIA QUERIES ===== */


