@import url('color-vars.php?v=1');

/**
 * styles.css — Feuille de styles principale Gift & Smile (partagée entre toutes les pages)
 *
 * Palette de couleurs :
 *   var(--cp)  — Rose principal (boutons CTA, liens actifs, accents)
 *   var(--cs)  — Rose foncé (hover, gradients)
 *   var(--cd)  — Bordeaux profond (titres footer, headings)
 *   #2d1a24  — Brun très foncé (texte courant, h1-h6)
 *   #9ca3af  — Gris neutre (liens inactifs, icônes, placeholders)
 *   #6b7280  — Gris moyen (texte secondaire)
 *
 * Typographie :
 *   'Poppins' (sans-serif) — corps, navigation, boutons
 *   'Playfair Display' (serif) — titres h1-h6, noms produits
 *
 * Sections (ordre dans ce fichier) :
 *   1.  Barre de tri catalogue (.gs-filter-bar)
 *   2.  Carrousels d'images automatiques (.carrousel / .carrousel2 / .carrousel3)
 *   3.  Footer de base (.specia9) et styles globaux (body, h1-h6)
 *   4.  Header sticky (.specia10, .head1, .logo, #devise)
 *   5.  Navigation active + badge panier + icône mobile
 *   6.  Menus de navigation (.range1, .dropdown, .dropdown2, .sidenav)
 *   7.  Burger menu / sidenav avec overlay et animation ☰→✕
 *   8.  Sous-menus header (.dropdown-content, .dropdown2-content2)
 *   9.  Zones de contenu (.texte, .texte2, .opta, .ref) et formulaires
 *  10.  Barre de recherche (#search, .search-wrapper, .admin-search-bar)
 *  11.  Formulaires génériques (#contact)
 *  12.  Hero & catégories — ACCUEIL (.hero-accueil, .categorie-card)
 *  13.  Bande de réassurance (.reassurance-bar)
 *  14.  Pages détail produit (.produit-detail, .produit-image-wrap, .btn-commander)
 *  15.  Bouton WhatsApp flottant (.whatsapp-float)
 *  16.  Carousel produits catalogue (.carousel-track, .carousel-slide)
 *  17.  Cartes produits catalogue (.product-card, .btn-acheter)
 *  18.  Sections ACCUEIL (comment ça marche, pourquoi nous, témoignages)
 *  19.  Footer amélioré (.footer-content, .footer-brand, .footer-social)
 *  20.  Interfaces admin (tables, formulaires, badges statut, filtres commandes)
 *  21.  Media queries responsive (1199px, 988px, 772px, 564px, 480px, 412px)
 *  22.  Boîtes de dialogue personnalisées (.gs-modal-overlay, .gs-modal-box)
 *  23.  Page loader overlay (.gs-page-loader, .gs-loader-spinner)
 */

/* ── 1. Barre de tri catalogue ──────────────────────────────────────────────
   Boutons radio-style pour filtrer les produits par critère (Prix ↑/↓, Nom…)
   sur les pages achats*.php. La classe .gs-active marque le tri actif.
   ─────────────────────────────────────────────────────────────────────────── */
.gs-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 4px 14px;
    font-family: 'Poppins', sans-serif;
}
.gs-filter-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #888;
    margin-right: 4px;
}
.gs-filter-label:hover{
    
    color: #888;
    text-decoration: none;
   
}

.gs-filter-btn {
    padding: 5px 14px;
    border-radius: 20px;
    border: 1.5px solid #e0d0d8;
    background: #fff;
    color: var(--cd);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
    font-family: 'Poppins', sans-serif;
}
.gs-filter-btn:hover { background: #fdf0f5; border-color: var(--cp); color: var(--cp); }
.gs-filter-btn.gs-active { background: linear-gradient(135deg,var(--cp),var(--cs)); color: #fff; border-color: transparent; }

/* ── 2. Carrousels d'images automatiques ────────────────────────────────────
   Trois carrousels indépendants (.carrousel / .carrousel2 / .carrousel3),
   chacun géré par setInterval dans java script.js (sections 1 du JS).
   Les slides sont superposées en position:absolute ; la transition opacity:1s
   assure le fondu enchaîné. Hauteur 385px desktop, réduite en responsive.
   ─────────────────────────────────────────────────────────────────────────── */
.carrousel {
    width: 50%;
    height: 385px;
    overflow: hidden;
    position: relative;
    background-color: white;
    border: 1px solid white;
    display: flex;
    border-radius: 5px;
    margin-top: 2px;
    margin-bottom: 10px;
    margin-right: 10px;

}

.carrousel2 {

    width: 50%;
    height: 385px;
    overflow: hidden;
    position: relative;
    background-color: white;
    border: 1px solid white;
    display: flex;
    border-radius: 5px;
    margin-top: 2px;
    margin-bottom: 10px;
    margin-right: 10px;
}

.carrousel3 {

    width: 50%;
    height: 385px;
    overflow: hidden;
    position: relative;
    background-color: white;
    border: 1px solid white;
    display: flex;
    border-radius: 5px;
    margin-top: 2px;
    margin-bottom: 10px;
}

.carrousels-container {
    display: flex;
    justify-content: space-between;
    /* Ajoute de l'espace entre les carrousels */
   

}

.carrousel .slide {
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0;
    transition: opacity 1s;
}

.carrousel .slide.active {
    opacity: 1;
}

.carrousel .slide img {
    width: 100%;
    height: 100%;
    object-fit: fill;


}




.carrousel2 .slide2 {
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0;
    transition: opacity 1s;
}

.carrousel2 .slide2.active2 {
    opacity: 1;
}

.carrousel2 .slide2 img {
    width: 100%;
    height: 100%;
    object-fit: fill;


}




.carrousel3 .slide3 {
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0;
    transition: opacity 1s;
}

.carrousel3 .slide3.active3 {
    opacity: 1;
}

.carrousel3 .slide3 img {
    width: 100%;
    height: 100%;
    object-fit: fill;


}

/* ── 3. Footer de base et styles globaux ────────────────────────────────────
   .specia9 est le wrapper du footer sur toutes les pages ; il hérite du
   dégradé rose clair (fff5f8 → fce8f0). Les icônes réseaux sociaux (.fa)
   sont dimensionnées ici. a:hover applique la couleur aqua globalement,
   surchargée plus bas pour les liens de nav et footer.
   body, h1-h6 définissent la typographie de base (Poppins + Playfair).
   ─────────────────────────────────────────────────────────────────────────── */
.specia9 {
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(135deg, #fff5f8 0%, #fce8f0 100%);
    border-top: 1px solid #e8e8ec;
    color: #2d1a24;
    text-align: center;
    padding: 10px 0;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
}

.specia9 a {
    color: var(--cp);
    text-decoration: none;
}

.fa {
    padding: 20px;
    font-size: 15px;
    width: 50px;
    text-align: center;
    text-decoration: none;
}

a:hover {
    color: aqua;
}

.line:hover {
    text-decoration: underline;
    color: aqua;
}

footer {
    margin: 20px;
    text-align: center;
}



body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f7f7f7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #2d1a24;
}

.container {
    background-color:white;
}

/* ── 4. Header sticky ───────────────────────────────────────────────────────
   .specia10 = conteneur header sticky (top:0, z-index:1200) avec ombre
   et ligne rose (::before gradient) signalant la marque.
   .head1 = rangée logo + slogan centré.
   .head2 = rangée de navigation séparée par une bordure fine.
   #devise = slogan animé (keyframes moveText, oscillation gauche/droite).
   .specia10.no-nav = hauteur minimale quand il n'y a pas de .head2 (pages
   de connexion, ajouter*.php…) pour éviter un header trop court.
   ─────────────────────────────────────────────────────────────────────────── */
.head1 {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    color: white;
    padding: 5px 0 5px;
    min-height: 50px;
}
.head1 .logo-link {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
}

.logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e8e8ec;
    transition: transform 0.2s, border-color 0.2s;
}
.logo-link {
    display: inline-block;
    text-decoration: none;
    line-height: 0;
    margin-left: 18px;
}
.logo-nav {
    margin-left: 8px;
    margin-right: 4px;
    flex-shrink: 0;
}
.logo-link:hover .logo {
    transform: scale(1.05);
    border-color: rgba(255,255,255,0.95);
}

#devise {
    font-size: 15px;
    font-family: 'Playfair Display', serif;
    color: #6b7280;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 1.5px;
    margin: 0;
    animation-duration: 4s;
    animation-name: moveText;
    animation-iteration-count: infinite;
    animation-direction: alternate; /* Inverse automatiquement à chaque cycle (aller-retour) */
}

/* Animation du slogan : oscillation gauche/droite avec marge-left qui varie */
@keyframes moveText {
    from {
        margin-left: 25%; /* Position décalée à droite */
        width: 50%;
    }

    to {
        margin-left: 0%;  /* Position centrée ; alternate inverse le sens à chaque cycle */
        width: 50%;
    }
}

.specia10 {
    background: #ffffff;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1200;
    border-bottom: 1px solid #e8e8ec;
}
/* Ligne rose fine en haut du header */
.specia10::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--cp), var(--cs));
}
/* Séparateur entre slogan (head1) et nav (head2) */
.head2 {
    border-top: 1px solid #e8e8ec;
}
/* Pages sans head2 (ex : livreur) : ligne de séparation sous head1 */
.specia10:not(:has(.head2)) .head1 {
    border-bottom: 1px solid #e8e8ec;
}
/* Header sans menu : même hauteur que header avec menu */
.specia10.no-nav .head1 {
    min-height: 98px;
    border-bottom: 1px solid #e8e8ec;
}
/* Badge nom utilisateur */
.specia10 .ads:empty {
    display: none;
}
.specia10 .ads:not(:empty) {
    position: absolute;
    top: 12px;
    right: 20px;
    color: var(--cp) !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    background: rgb(var(--cp-rgb) / 0.08);
    border-radius: 20px;
    padding: 3px 14px;
    margin: 0;
}
/* Indicateur de page active */
a.nav-active.line2,
a.nav-active.line5 {
    border-bottom: 2px solid var(--cp);
    padding-bottom: 2px;
    color: var(--cp) !important;
    text-decoration: none !important;
}
.sidenav a.nav-active {
    color: var(--cp) !important;
    background-color: rgb(var(--cp-rgb) / 0.08);
    border-left: 3px solid var(--cp);
    font-weight: 700;
}
/* Badge compteur panier */
.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cp);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.72rem;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    padding: 0 5px;
    margin-left: 3px;
    vertical-align: middle;
    animation: cartPop 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
span.cart-badge:hover {
    color: #ffffff;
    text-decoration: none;
}
/* Animation d'apparition du badge panier : montée rapide avec léger dépassement puis retour */
@keyframes cartPop {
    0%   { transform: scale(0); opacity: 0; }  /* Badge invisible */
    70%  { transform: scale(1.3); }              /* Dépassement (effet rebond) */
    100% { transform: scale(1);   opacity: 1; } /* Taille finale normale */
}


/* Icône panier mobile */
.mobile-cart-icon {
    display: none;
    color: #9ca3af;
    text-decoration: none;
    font-size: 1.5rem;
    position: relative;
    padding: 4px 6px;
    border-radius: 8px;
    transition: background 0.2s;
    align-items: center;
    flex-shrink: 0;
}
.mobile-cart-icon:hover {
    background: rgb(var(--cp-rgb) / 0.08);
    color: var(--cp);
    text-decoration: none;
    transition: color 0.2s;
}
.mobile-cart-icon .cart-badge {
    position: absolute;
    top: -4px;
    right: 0px;
    font-size: 0.6rem;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    animation: none;
}

/* Icônes dans la navigation — override du margin-right global */
.sidenav a i,
.dropdown-content a i,
.dropdown2-content2 a i,
.range1 a i,
a.line2 i, a.line3 i, a.line4 i, a.line5 i {
    margin-right: 8px !important;
    font-size: 0.88rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    color: #9ca3af;
    transition: color 0.2s;
}
a.line2:hover i, a.line3:hover i, a.line4:hover i, a.line5:hover i,
.dropdown2-content2 a:hover i, .range1 a:hover i {
    color: var(--cp);
}

/* ── 6. Navigation principale (.range1, .line2, .line5) ─────────────────────
   .range1 = liste flex du menu horizontal desktop (masquée < 1199px).
   .line2 / .line5 = liens directs ; .line4 = liens dans les sous-menus.
   .burger-icon = icône ☰ visible uniquement sur mobile, pilotée par le JS.
   ─────────────────────────────────────────────────────────────────────────── */
.head2 nav .range1 {
    display: flex;
    list-style-type: none;
    padding: 8px 2px 10px;
    margin: 4px 10px;
    align-items: center;
    gap: 4px;
}

#range2 {
    display: block;
    width: auto;
    margin-left: auto;

}


.burger-icon {
    width: auto;
    margin-top: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    transition: opacity 0.2s;
}
.burger-icon:hover span {
    background-color: var(--cp);
}

.head2 nav ul li {
    margin-right: 18px;
    /* Ajouter de l'espace entre les éléments */
}

.fa-solid {
    margin-right: 20px;
}

.line2 {
    text-decoration: none;
    color: #6b7280;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    margin-left: 5px;
    white-space: nowrap;
}

.line2:hover {
    color: var(--cp);
    text-decoration: none;
    transition: color 0.2s;
}

.line2:active {
    color: var(--cp);
}

.line5 {
    text-decoration: none;
    color: #6b7280;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    white-space: nowrap;
}

.line5:hover {
    color: var(--cp);
    text-decoration: none;
    transition: color 0.2s;
}




.summary-total-label:hover {
    color: #6b7280;
    text-decoration: none;
}
.summary-total-amount:hover {
    color: var(--cp);
    text-decoration: none;
}

/* ── 7. Burger menu / sidenav ───────────────────────────────────────────────
   .sidenav = panneau latéral glissant (left:-300px → left:0 en .active).
   .sidenav-overlay = fond semi-transparent injecté par JS ; clic = fermeture.
   .sidenav::before = bandeau d'en-tête « Gift & Smile » intégré dans le panneau
   (position:fixed synchronisée avec la transition left).
   .burger-icon span = 3 traits animés → ✕ quand .open est ajouté par le JS :
     span:nth-child(1) → rotation +45°, span:nth-child(2) → opacity 0,
     span:nth-child(3) → rotation -45°.
   ─────────────────────────────────────────────────────────────────────────── */
/* Overlay sidenav : fond noir semi-transparent bloquant les clics sur le contenu */
.sidenav-overlay {
    position: fixed;
    inset: 0;                  /* Recouvre tout l'écran */
    background: rgba(0,0,0,0.45);
    z-index: 1050;             /* Sous la sidenav (1100) mais au-dessus du contenu */
    opacity: 0;
    pointer-events: none;      /* Transparent aux clics tant qu'inactif */
    transition: opacity 0.25s ease;
}
.sidenav-overlay.active {
    opacity: 1;
    pointer-events: auto; /* Clic sur l'overlay = fermeture de la sidenav (JS) */
}

/* Sidenav menu — z-index 99999, au-dessus du flash banner (99998) et du header sticky (1200) */
.sidenav {
    height: 100%;
    width: 285px;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: -300px;    /* Caché hors-écran ; passe à left:0 quand .active est ajouté */
    background: #fff;
    padding-top: 72px; /* Réserve l'espace pour le bandeau ::before fixe (height:72px) */
    /* cubic-bezier(0.4,0,0.2,1) = courbe Material Design (ease-in-out accentué) */
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 6px 0 32px rgba(0,0,0,0.16);
    overflow-y: auto;
}

/* Bandeau haut du sidenav */
.sidenav::before {
    content: 'Gift & Smile';
    position: fixed;
    top: 0;
    left: -300px;
    width: 285px;
    height: 72px;
    display: flex;
    align-items: center;
    background: #ffffff;
    color: var(--cp);
    font-weight: 800;
    font-size: 1.1rem;
    padding: 0 24px;
    letter-spacing: 0.4px;
    font-family: 'Poppins', sans-serif;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    border-bottom: 1px solid #e8e8ec;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.sidenav.active::before { left: 0; }

/* Sidenav menu links */
.sidenav a {
    padding: 13px 24px;
    text-decoration: none;
    font-size: 0.93rem;
    color: #9ca3af;
    display: block;
    transition: background 0.2s, color 0.2s, border-left-color 0.2s;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.sidenav a:hover {
    color: var(--cp);
    background: rgb(var(--cp-rgb) / 0.06);
    border-left-color: var(--cp);
    text-decoration: none;
}

.sidenav ul {
    list-style-type: none;
    padding: 10px 0;
    margin: 0;
}

.sidenav ul li {
    border-bottom: 1px solid #f5f5f5;
}

/* Active class */
.sidenav.active {
    left: 0;
}

/* Close btn */
.sidenav .close {
    position: fixed;
    top: 18px;
    left: -300px;
    width: 285px;
    display: flex;
    justify-content: flex-end;
    padding-right: 18px;
    font-size: 26px;
    color: #b0b0b0;
    line-height: 1;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
    z-index: 11;
    border-left: none;
    background: transparent;
}
.sidenav.active .close { left: 0; }

.sidenav .close:hover {
    background: transparent;
    color: var(--cp);
    border-left-color: transparent;
}

/* Icône burger — 3 traits animés */
.burger-icon span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: #9ca3af;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

/* Animation burger → X */
.burger-icon.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger-icon.open span:nth-child(2) { opacity: 0; width: 0; }
.burger-icon.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Sous-menus header (dropdown) ──────────────────── */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Chevron animé sur les liens parents */
.dropdown > a.line5::after {
    content: ' ▾';
    font-size: 0.72rem;
    opacity: 0.8;
    display: inline-block;
    transition: transform 0.22s ease;
    margin-left: 2px;
}
.dropdown:hover > a.line5::after {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;    /* S'affiche juste en-dessous de l'élément parent */
    left: 0;
    min-width: 240px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e8e8e8;
    padding: 8px 0 6px;
    z-index: 999;
    /* Technique visibility+opacity : visibility:hidden au lieu de display:none
       permet les transitions CSS (display:none ne peut pas être animé) */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;   /* Désactive les clics quand invisible */
    transform: translateY(-8px); /* Décalé vers le haut ; descend à 0 à l'ouverture */
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: calc(100vh - 130px); /* Empêche le menu de dépasser le bas de l'écran */
}
.dropdown-content::-webkit-scrollbar { width: 4px; }
.dropdown-content::-webkit-scrollbar-track { background: transparent; }
.dropdown-content::-webkit-scrollbar-thumb { background: rgb(var(--cp-rgb) / 0.3); border-radius: 4px; }
.dropdown-content::-webkit-scrollbar-thumb:hover { background: rgb(var(--cp-rgb) / 0.6); }

/* Triangle pointeur — carré blanc pivoté 45° qui simule une flèche pointant vers le lien parent */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -7px;         /* Dépasse légèrement au-dessus du menu */
    left: 22px;
    width: 13px;
    height: 13px;
    background: #fff;
    border-left: 1px solid #e8e8e8;
    border-top: 1px solid #e8e8e8;
    transform: rotate(45deg); /* Rotation 45° : les bords gauche/haut forment le triangle visible */
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Liens dans le sous-menu */
.dropdown-content a.line4 {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s, padding-left 0.15s;
    border-left: 3px solid transparent;
    white-space: nowrap;
}
.dropdown-content a.line4:hover {
    background: rgb(var(--cp-rgb) / 0.06);
    color: var(--cp);
    border-left-color: var(--cp);
    text-decoration: none;
}

/* Séparateur entre liens */
.dropdown-content a.line4 + a.line4 {
    border-top: 1px solid #f5f5f5;
}

/* Cacher les <br> dans le dropdown */
.dropdown-content br { display: none; }

.line4 {
    text-decoration: none;
    color: #6b7280;
}
.line4:hover {
    color: var(--cp);
    text-decoration: none;
}

.dropdown2 {
    position: relative;
    display: inline-block;
}

.dropdown2-content2 {
    display: none;
    position: absolute;
    width: max-content;
    min-width: unset;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    padding: 4px 0;
    z-index: 1;
    background-color: white;
    font-family: 'Poppins', sans-serif;
}

.dropdown2:hover .dropdown2-content2 {
    display: block;
}

.dropdown2-content2 a.line4 {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    white-space: nowrap;
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
}
.dropdown2-content2 a.line4:hover {
    background: rgb(var(--cp-rgb) / 0.06);
    color: var(--cp);
}

/* Dropdown dans la sidenav : toujours visible et indentée */
.sidenav .dropdown2 { display: block; }
.sidenav .dropdown2-content2 {
    display: block !important;
    position: static !important;
    min-width: unset !important;
    box-shadow: none !important;
    padding: 0 0 6px 0;
    background: transparent !important;
    border: none;
    z-index: auto;
}
.sidenav .dropdown2-content2 a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.84rem;
    color: #9ca3af;
    padding: 8px 24px 8px 36px;
    border-left: 3px solid transparent;
    font-weight: 400;
}
.sidenav .dropdown2-content2 a:hover {
    background: rgb(var(--cp-rgb) / 0.06);
    color: var(--cp);
    border-left-color: var(--cp);
}

/* Annule span:hover global pour les liens du nav */
.sidenav a span:hover,
.dropdown-content a span:hover,
.dropdown2-content2 a span:hover {
    color: inherit;
    text-decoration: none;
}

/* Badge compteur nav */
.nav-badge {
    margin-left: auto;
    flex-shrink: 0;
    background: #e9ecef;
    color: #6b7280;
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
}
.dropdown-content a.line4:hover .nav-badge,
.dropdown2-content2 a.line4:hover .nav-badge,
.sidenav .dropdown2-content2 a:hover .nav-badge {
    background: var(--cp);
    color: #fff;
}

/* ── 9. Zones de contenu et utilitaires généraux ────────────────────────────
   .texte / .texte2 = bandeaux d'en-tête de section (fond rose clair,
   bordure gauche rose var(--cp)). .texte2.spaced ajoute une marge supérieure.
   .opta / .opta2 / .opta3 = conteneurs d'images ou blocs fixes.
   .ref = carte à bords arrondis (produit ou section à mettre en valeur).
   .zoomable-image = conteneur image avec zoom scale(1.2) au survol.
   ─────────────────────────────────────────────────────────────────────────── */
.texte {
    border: none;
    margin: 1px;
    padding: 10px;
    border-radius: 8px;
    margin-top: 2px;
    background: linear-gradient(135deg, #fff5f8 0%, #fce8f0 100%);
    color: var(--cd);
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
    border-left: 4px solid var(--cp);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.texte h1, .texte h2, .texte h3, .texte h4, .texte h5, .texte h6 {
    color: var(--cd);
}

.texte2 {
    border: none;
    margin: 1px;
    padding: 10px;
    border-radius: 8px;
    margin-top: 8px;
    background: linear-gradient(135deg, #fff5f8 0%, #fce8f0 100%);
    color: var(--cd);
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
    border-left: 4px solid var(--cp);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.texte2.spaced {
    margin-top: 8px;
}


/* personnalisation du contenu principale*/
.opta {
    width: 100%;
    height: 300px;
    background-color: white;
    border: 1px solid white;
    border-radius: 5px;
    margin-top: 2px;
    margin-bottom: 10px;

}

.opta2 {
    width: 100%;
    height: 100%;
    background-color: white;
    border: 1px solid white;
    border-radius: 5px;
    margin-top: 2px;
    margin-bottom: 10px;

}

.container2 .row {
    display: flex;
}

.container2 .row .col-12 .col-md-6 .col-lg-3 {
    flex: 1;
    /* Prend la moitié de l'espace disponible */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.container2 .row .col-12 .col-md-6 .col-lg-3 img {
    width: 100%;
    height: 300px;

}

p {
    /* Styles pour le texte */
    text-align: center;

}

.ref2 {
    text-align: justify;
    font-family: 'Poppins', sans-serif;
}

.ref {
    border: 5px solid white;
    border-radius: 10px;
    margin-top: 20px;
    background-color: #fafafa;
    padding: 10px;
    margin-bottom: 5px;
    margin-left: 2px;
    margin-right: 2px;


}

/*personnalisation de l'ancre  */
.scroll-to-top {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 10px;

}

.prix {
    font-family: 'Poppins', sans-serif;
    font-weight: bold;

}

/*personnalisation de l'ancre scroll-to-top */
.scroll-to-top {
    display: none;
}

/* ── 10. Barre de recherche ─────────────────────────────────────────────────
   Deux contextes :
   • Pages client : .search-wrapper + #search (transition width 20px→14.5%)
     le champ s'élargit au focus, contour rose apparaît.
   • Pages admin  : .admin-search-bar (champ toujours visible, filtre le DOM
     en temps réel via filterTable() dans chaque page admin*.php).
   ─────────────────────────────────────────────────────────────────────────── */
.search-wrapper {
    border: 1.5px solid #e8e8ec;
    transition: box-shadow 0.25s, border-color 0.25s;
}
.search-wrapper:focus-within {
    border-color: var(--cp);
    box-shadow: 0 0 0 3px rgb(var(--cp-rgb) / 0.12);
}
/* Icône loupe + bouton effacer : gris par défaut, rose au focus */
.search-wrapper i,
.search-wrapper #clearSearch {
    color: #9ca3af !important;
    transition: color 0.2s;
}
.search-wrapper:focus-within i,
.search-wrapper:focus-within #clearSearch {
    color: var(--cp) !important;
}

#search {
    width: 20px;
    height: 20px;
    border: none;
    padding: 5px;
    box-sizing: border-box;
    color: #6b7280;
    transition: width 0.4s ease-in-out;
}

#search:focus {
    width: 14.5%;
    color: #2d1a24;
}

#search::placeholder {
    color: #c4c8cd;
    opacity: 1;
}

/* Barre de recherche admin */
.admin-search-bar {
    transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-search-bar:focus-within {
    border-color: var(--cp) !important;
    box-shadow: 0 0 0 3px rgb(var(--cp-rgb) / 0.12);
}
.admin-search-bar i {
    color: #9ca3af !important;
    transition: color 0.2s;
}
.admin-search-bar #clearSearch {
    color: #9ca3af !important;
    transition: color 0.2s;
}
.admin-search-bar:focus-within i,
.admin-search-bar:focus-within #clearSearch {
    color: var(--cp) !important;
}
.admin-search-bar input {
    color: #6b7280 !important;
    transition: color 0.2s;
}
.admin-search-bar:focus-within input {
    color: #2d1a24 !important;
}

.apropos {
    text-align: justify;
    width: 100%;
    height: 100%;
    padding: 10px;
    font-family: 'Poppins', sans-serif;


}

.effet:hover {
    opacity: 0.9;
}

textarea {
    width: 100%;
    /* Prend toute la largeur disponible */
    padding: 10px;
    /* Ajoute un espace intérieur au textarea */
    border: 1px solid #ccc;
    /* Ajoute une bordure légère */
    border-radius: 5px;
    /* Arrondit les coins */
    font-family: 'Poppins', sans-serif;
    /* Police de caractères */
    font-size: 14px;
    /* Taille de police */
    resize: vertical;
    /* Permet de redimensionner verticalement */
    margin-top: 3px;
}

.opta3 {
    width: 100%;
    height: 380px;
    background-color: white;
    border: 1px solid white;
    border-radius: 5px;
    margin-top: 2px;
    margin-bottom: 10px;

}



.zoomable-image {

    overflow: hidden;
    /* Cache le contenu qui dépasse */

}

.zoomable-image img {
    width: 100%;
    /* Prend toute la largeur disponible */
    height: 380px;
    /* Hauteur automatique pour conserver les proportions */
    transition: transform 0.3s ease;
    /* Animation de transition */
}

.zoomable-image:hover img {
    transform: scale(1.2);
    /* Zoom de 20% au survol */

}


/* ── 11. Formulaires génériques (#contact) ───────────────────────────────────
   #contact est l'id du formulaire sur toutes les pages ajouter*.php et
   modifier*.php (ajout / modification de produit). Les styles admin spécialisés
   (form#contact) plus bas surchargent ce bloc pour le design de la carte modale.
   ─────────────────────────────────────────────────────────────────────────── */
#contact {
    background: white;
    padding: 25px;
    margin: 2px;
    box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.1);

}





fieldset {
    border: medium none !important;
    margin: 0 0 10px;
    min-width: 100%;
    padding: 0;
    width: 100%;
}

#contact input[type="text"],
#contact input[type="email"],
#contact input[type="tel"],
#contact input[type="url"],
#contact textarea {
    width: 100%;
    border: 1px solid #ccc;
    background: #FFF;
    margin: 0 0 5px;
    padding: 10px;
}



#contact textarea {
    height: 100px;
    max-width: 100%;
    resize: none;
}

#contact button[type="submit"] {
    cursor: pointer;
    width: 100%;
    border: none;
    background: #4CAF50;
    color: #FFF;
    margin: 0 0 5px;
    padding: 10px;
    font-size: 15px;
}

#contact button[type="submit"]:hover {
    background: #43A047;
    -webkit-transition: background 0.3s ease-in-out;
    -moz-transition: background 0.3s ease-in-out;
    transition: background-color 0.3s ease-in-out;
}

#contact button[type="submit"]:active {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.copyright {
    text-align: center;
}

#contact input:focus,
#contact textarea:focus {
    outline: 0;
    border: 1px solid #aaa;
}

::-webkit-input-placeholder {
    color: #888;
}

:-moz-placeholder {
    color: #888;
}

::-moz-placeholder {
    color: #888;
}

:-ms-input-placeholder {
    color: #888;
}

.help-inline {
    color: red;
}

.help-inline:hover {
    color: red;
    text-decoration: none;

}

.val {
    color: #04AA6D;
}
.specia40 {
    border: 1px solid #e0e0e0;
}



/* ===== Hero & Catégories — ACCUEIL ===== */
.hero-accueil {
    background: linear-gradient(135deg, #fff5f8 0%, #fce8f0 100%);
    border: 2px solid #e8e8ec;
    border-radius: 18px;
    padding: 56px 30px 50px;
    text-align: center;
    margin: 8px 0 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}
.hero-badge {
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 10px;
    color: var(--cp);
}
.hero-title {
    font-size: 2.1rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    margin-bottom: 14px;
    line-height: 1.25;
    color: #2d1a24;
}
.hero-sub {
    font-size: 1rem;
    color: #6b7280;
    max-width: 520px;
    margin: 0 auto 30px;
}
.hero-cta {
    display: inline-block;
    background: var(--cp);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 13px 36px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgb(var(--cp-rgb) / 0.35);
    transition: transform .2s, background .2s;
}
.hero-cta:hover {
    transform: scale(1.05);
    background: var(--cs);
    color: #fff;
}
.categories-dashboard {
    margin: 32px 0 10px;
}
.categories-titre {
    text-align: center;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin-bottom: 22px;
    color: #374151;
}
.categories-titre::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--cp);
    margin: 8px auto 0;
    border-radius: 2px;
}
.categorie-lien {
    text-decoration: none;
}
.categorie-card {
    background: #fff;
    border: 1.5px solid #e8e8ec;
    border-radius: 18px;
    padding: 34px 10px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all .22s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.categorie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgb(var(--cp-rgb) / 0.15);
    border-color: var(--cp);
}
.categorie-icon {
    color: var(--cp);
    font-size: 2.4rem;
    margin: 0 auto 14px;
    display: block;
    text-align: center;
}
.categorie-label {
    font-weight: 600;
    color: #9ca3af;
    font-size: 0.9rem;
}
span.categorie-label:hover {
    color: #6b7280;
    text-decoration: none;
}
span.temoignage-nom:hover {
    color: #6b7280;
    text-decoration: none;
}

/* ===== Bande de réassurance ===== */
.reassurance-bar {
    background: #f5f5f7;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    padding: 10px 20px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    font-weight: 600;
    color: #4b5563;
}
.reassurance-bar span {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}
.reassurance-bar i {
    margin-right: 0;
    font-size: 1rem;
    color: var(--cp);
}
.reassurance-bar span:hover {
    color: #3D0F26;
    text-decoration: none;
}
.reassurance-bar .reassurance-slogan {
    display: none;
}

/* ===== Pages détail produit (achats + voir) ===== */

/* Breadcrumb */
.breadcrumb-bar { padding: 10px 0 6px; font-size: 0.82rem; color: #888; }
.breadcrumb-bar a { color: #9ca3af; text-decoration: none; transition: color 0.2s; }
.breadcrumb-bar a:hover { color: var(--cp); }
.breadcrumb-bar a:hover { text-decoration: underline; }
.breadcrumb-bar span { color: #bbb; margin: 0 6px; }

/* Produit layout */
.produit-detail {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 32px rgba(0,0,0,0.08);
    overflow: hidden;
    margin: 16px 0 28px;
}

/* Image zoom overlay */
.produit-image-wrap {
    background: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    min-height: 340px;
    position: relative;
}
/* Bulle "Zoom" : visible uniquement au survol de l'image (opacity 0→1) */
.zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.62);
    color: #fff;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none; /* N'intercepte pas les clics sur l'image */
    opacity: 0;           /* Caché par défaut */
    transition: opacity 0.2s;
}
.produit-image-wrap:hover .zoom-hint {
    opacity: 1; /* Apparaît quand le parent est survolé */
}
.produit-image-wrap img {
    width: 100%;
    max-width: 380px;
    height: 320px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.10);
    transition: transform 0.35s ease;
    cursor: zoom-in;
}
.produit-image-wrap img:hover { transform: scale(1.04); }

/* Infos produit */
.produit-infos {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f5f5f7;
    color: var(--cp);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid #e8e8ec;
    margin-bottom: 14px;
    width: fit-content;
}
.produit-nom {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #2d1a24;
    margin-bottom: 14px;
    line-height: 1.3;
}
.produit-prix {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--cp);
    margin-bottom: 20px;
}
.produit-prix small { font-size: 0.95rem; color: #888; font-weight: 400; }
.info-divider { border: none; border-top: 1px solid #e8e8ec; margin: 20px 0; }

/* Prix promotionnel — ancien prix en haut (barré), nouveau prix en-dessous */
del.prix-original,
.prix-original {
    text-decoration: line-through !important;
    color: #aaa !important;
    font-size: 0.82em !important;
    font-weight: 400 !important;
    margin-right: 4px;
    display: inline;
}
/* Ligne supérieure : ancien prix barré + badge Solde */
.gs-prix-avant {
    display: block;
    font-size: 0.8em;
    font-weight: 400;
    color: #aaa;
    line-height: 1.3;
    margin-bottom: 1px;
    white-space: nowrap;
}
/* Ligne inférieure : nouveau prix */
.gs-prix-apres {
    display: block;
    line-height: 1.2;
}
/* Taille réduite dans les fiches détail */
.produit-prix .gs-prix-avant { font-size: 0.55em; margin-bottom: 2px; }
.produit-prix .gs-prix-apres { font-size: 1em; }
.prix-promo-val { color: var(--cp) !important; font-weight: 800; }
.badge-solde {
    display: inline-block; background: #FFD6E7; color: var(--cp) !important;
    font-size: 0.68rem; font-weight: 700; padding: 2px 8px;
    border-radius: 10px; margin-left: 6px; vertical-align: middle; letter-spacing: .3px;
}
.product-card-price .badge-solde { font-size: 0.62rem; }

/* Trust list */
.trust-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 8px; }
.trust-list li { font-size: 0.85rem; color: #6b7280; display: flex; align-items: center; gap: 8px; }
.trust-list li i { color: var(--cp); width: 16px; flex-shrink: 0; }

/* Bouton commander */
.btn-commander {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--cp) 0%, var(--cs) 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgb(var(--cp-rgb) / 0.38);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 12px;
}
.btn-commander:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgb(var(--cp-rgb) / 0.5);
    color: #fff;
    text-decoration: none;
}

/* Bouton retour */
.btn-retour {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--cp);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    padding: 10px;
    border-radius: 50px;
    border: 2px solid var(--cp);
    transition: background 0.2s, border-color 0.2s;
}
.btn-retour:hover {
    background: var(--cs);
    border-color: var(--cs);
    color: #fff;
    text-decoration: none;
}
.btn-retour-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    padding: 10px;
    border-radius: 50px;
    border: 2px solid #e8e8ec;
    transition: background 0.2s, border-color 0.2s;
}
.btn-retour-ghost:hover {
    background: #f5f5f7;
    border-color: #c0c0c8;
    color: #374151;
    text-decoration: none;
}

/* ── Bouton Favoris ── */
.btn-favori {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px;
    border-radius: 50px;
    border: 2px solid #e8e8ec;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    margin-bottom: 10px;
    font-family: inherit;
}
.btn-favori:hover {
    background: #fdf2f6;
    border-color: var(--cp);
    color: var(--cp);
}

/* ── Bouton WhatsApp flottant ── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 22px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    /* Le label invisible (opacity: 0) reste dans la mise en page flex et occuperait
       une zone cliquable fantôme à gauche du bouton ; on désactive les clics sur tout
       le lien puis on les réactive uniquement sur le cercle visible (.wa-btn). */
    pointer-events: none;
}
.whatsapp-float .wa-btn {
    pointer-events: auto;
    width: 46px;
    height: 46px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(37,211,102,0.45);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: wa-pulse 2.8s infinite;
}
.whatsapp-float .wa-btn i {
    color: #fff;
    font-size: 1.4rem;
}
.whatsapp-float:hover .wa-btn {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,0.6);
    animation: none;
}
.whatsapp-float .wa-label {
    background: #fff;
    color: #128C7E;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.22s, transform 0.22s;
    pointer-events: none;
}
.whatsapp-float:hover .wa-label {
    opacity: 1;
    transform: translateX(0);
}
/* Animation de pulsation : l'ombre grossit au milieu pour simuler un battement */
@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 4px 18px rgba(37,211,102,0.45); }
    50%       { box-shadow: 0 4px 28px rgba(37,211,102,0.75); }
}

@media (max-width: 767px) {
    .produit-image-wrap { min-height: 240px; padding: 20px 16px; }
    .produit-image-wrap img { height: 220px; }
    .produit-infos { padding: 20px 18px; }
    .produit-nom { font-size: 1.3rem; }
    .produit-prix { font-size: 1.5rem; }
}

/* Sélecteur de quantité */
.qty-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.qty-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
}
.qty-controls {
    display: flex;
    align-items: center;
    border: 2px solid #e8e8ec;
    border-radius: 30px;
    overflow: hidden;
}
.qty-btn {
    background: none;
    border: none;
    color: var(--cp);
    font-size: 1.1rem;
    font-weight: 700;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.qty-btn:hover { background: #f5f5f7; }
.qty-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2d1a24;
    min-width: 32px;
    text-align: center;
}

/* Bouton WhatsApp */
.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(37,211,102,0.30);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 12px;
}
.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,211,102,0.45);
    text-decoration: none;
    color: #fff !important;
}

/* Cartes suggérées */
.related-card .product-card-name,
.related-card:hover .product-card-name {
    color: #2d1a24 !important;
}
.related-card .product-card-price,
.related-card:hover .product-card-price {
    color: var(--cp) !important;
}
.related-card .product-card-img:hover,
.related-card a.product-card-img:hover {
    color: inherit !important;
}

/* Section produits suggérés */
.related-section {
    margin: 10px 0 28px;
}
.related-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--cp);
    display: inline-block;
    cursor: default;
}
.related-title:hover {
    color: #374151 !important;
}
.related-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}
.related-track-container {
    overflow: hidden;
    flex: 1;
}
.related-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    transition: transform 0.35s ease;
}
.related-grid .related-card {
    flex-shrink: 0;
    min-width: 0;
}
.carousel-nav-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--cp);
    background: #fff;
    color: var(--cp);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
}
.carousel-nav-btn:hover {
    background: var(--cp);
    color: #fff;
}
.carousel-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}
@media (max-width: 576px) {
    .related-grid .related-card { flex: 0 0 calc((100% - 16px) / 2); }
    .qty-btn { width: 30px; height: 30px; }
    .carousel-nav-btn { width: 32px; height: 32px; font-size: 1.1rem; }
}

/* ===== Carousel produits ===== */
.products-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 24px;
}
.carousel-viewport {
    overflow: hidden;
    flex: 1;
}
.carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slide {
    flex: 0 0 calc(25% - 12px);
    min-width: calc(25% - 12px);
}
.carousel-nav-btn {
    background: #fff;
    border: 2px solid #e8e8ec;
    color: var(--cp);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
    transition: all 0.2s;
    font-size: 1rem;
    z-index: 2;
}
.carousel-nav-btn:hover {
    background: var(--cp);
    color: #fff;
    border-color: var(--cp);
    box-shadow: 0 6px 18px rgb(var(--cp-rgb) / 0.30);
}
.carousel-nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}
/* Mobile et tablette : 2 produits par ligne */
@media (max-width: 1024px) {
    .carousel-slide {
        flex: 0 0 calc(50% - 8px);
        min-width: calc(50% - 8px);
    }
}
@media (max-width: 767px) {
    .carousel-nav-btn { width: 36px; height: 36px; font-size: 0.85rem; }
}

/* ===== Cartes produits catalogue ===== */
.product-card-wrap {
    padding: 8px;
}
.product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.22s, box-shadow 0.22s;
    border: 1px solid #ebebeb;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}
.product-card-img {
    width: 100%;
    height: 210px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-bottom: 1px solid #f3f3f3;
    border-radius: 12px 12px 0 0;
}
.product-card-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    transition: transform 0.3s ease;
}
.product-card:hover .product-card-img img {
    transform: scale(1.08);
}
.product-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-card-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #2d1a24;
    margin-bottom: 8px;
    /* Technique CSS pour tronquer le texte à 2 lignes avec "…" */
    display: -webkit-box;
    -webkit-line-clamp: 2;   /* Nombre de lignes visibles */
    line-clamp: 2;           /* Propriété standard non-préfixée (futur) */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    flex: 1;                 /* S'étire pour aligner les prix sur toutes les cartes */
}
.product-card-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--cp);
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
}
.btn-acheter {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--cp) 0%, var(--cs) 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 10px 0;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgb(var(--cp-rgb) / 0.30);
    transition: box-shadow 0.2s, transform 0.2s;
}
.btn-acheter:hover {
    box-shadow: 0 6px 20px rgb(var(--cp-rgb) / 0.50);
    transform: translateY(-1px);
    text-decoration: none;
    color: #fff !important;
}
@media (max-width: 576px) {
    .product-card-img { height: 150px; padding: 10px; }
    .product-card-name { font-size: 0.8rem; }
    .product-card-price { font-size: 0.95rem; }
}

/* ===== Barre titre de page (#slideup) ===== */
#slideup {
    color: var(--cd);
}

/* ===== Titres de sections ===== */
.section-titre {
    text-align: center;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin-bottom: 28px;
    color: #374151;
}
.section-titre::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--cp);
    margin: 8px auto 0;
    border-radius: 2px;
}

/* ===== Comment ça marche ===== */
.comment-ca-marche {
    padding: 38px 0 24px;
    border-top: 1px solid #ebebeb;
    margin-top: 26px;
}
.etape-card {
    background: #fff;
    border: 1.5px solid #e8e8ec;
    border-radius: 16px;
    padding: 32px 18px 24px;
    text-align: center;
    position: relative;
    transition: all .22s;
    height: 100%;
}
.etape-card h6 {
    color: #6b7280;
    font-weight: 600;
}
.etape-card p {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.6;
}
.etape-card:hover {
    border-color: var(--cp);
    box-shadow: 0 8px 24px rgb(var(--cp-rgb) / 0.15);
    transform: translateY(-4px);
}
.etape-numero {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cp);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.etape-icon {
    color: var(--cp);
    font-size: 2rem;
    display: block;
    margin: 0 auto 12px;
    text-align: center;
}

/* ===== Pourquoi nous choisir ===== */
.pourquoi-section {
    padding: 38px 0 24px;
    border-top: 1px solid #ebebeb;
    margin-top: 10px;
}
.pourquoi-card {
    background: #fff;
    border: 1.5px solid #e8e8ec;
    border-radius: 14px;
    padding: 26px 14px;
    text-align: center;
    height: 100%;
    transition: all .22s;
}
.pourquoi-card h6 {
    color: #6b7280;
    font-weight: 600;
}
.pourquoi-card p {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.6;
}
.pourquoi-card:hover {
    border-color: var(--cp);
    box-shadow: 0 6px 20px rgb(var(--cp-rgb) / 0.15);
    transform: translateY(-3px);
}
.pourquoi-icon {
    color: var(--cp);
    font-size: 2rem;
    display: block;
    margin: 0 auto 12px;
    text-align: center;
}

/* ===== Témoignages ===== */
.temoignages-section {
    padding: 38px 0 30px;
    border-top: 1px solid #ebebeb;
    margin-top: 20px;
}
.temoignage-card {
    background: #fff;
    border: 1.5px solid #e8e8ec;
    border-radius: 14px;
    padding: 26px 20px;
    text-align: center;
    height: 100%;
}
.temoignage-card p {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.6;
}
.etoiles {
    color: #D4AF6A;
    font-size: 1.3rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}
.temoignage-nom {
    display: block;
    font-weight: 600;
    color: #9ca3af;
    font-size: 0.88rem;
    margin-top: 14px;
}

/* ===== Footer amélioré ===== */
.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 40px 30px 24px;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 960px;
    margin: 0 auto;
}
.footer-brand {
    text-align: center;
    flex: 1;
    min-width: 180px;
}
.footer-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #e8e8ec;
}
.footer-tagline {
    font-style: italic;
    font-size: 0.85rem;
    margin-bottom: 16px;
    color: var(--cd);
    opacity: 1;
}
.footer-social {
    display: flex;
    gap: 14px;
    justify-content: center;
}
.footer-social a {
    color: var(--cd);
    font-size: 1.4rem;
    transition: transform 0.2s, color 0.2s;
    text-decoration: none;
    padding: 0;
    margin-right: 0;
}
.footer-social a:hover {
    transform: scale(1.2);
    color: var(--cp);
    text-decoration: none;
}
.footer-nav,
.footer-info {
    flex: 1;
    min-width: 150px;
    text-align: left;
}
.footer-heading {
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cd);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgb(var(--cp-rgb) / 0.2);
}
.footer-nav ul,
.footer-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-nav ul li,
.footer-info ul li {
    margin-bottom: 9px;
}
.footer-nav ul li a,
.footer-info ul li a {
    color: var(--cd);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}
.footer-nav ul li a:hover,
.footer-info ul li a:hover {
    color: var(--cp);
    text-decoration: none;
}
.footer-bottom {
    border-top: 1px solid #e8e8ec;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-bottom p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--cd);
}
.scroll-to-top-btn i {
    margin-right: 0;
}
.scroll-to-top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgb(var(--cp-rgb) / 0.12);
    color: var(--cp);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 99999;
}
.scroll-to-top-btn:hover {
    background: rgb(var(--cp-rgb) / 0.2);
    color: var(--cp);
    transform: translateY(-3px);
    text-decoration: none;
}

/* ── 20. Interfaces admin ────────────────────────────────────────────────────
   Utilisé par admin*.php, ajouter*.php, modifier*.php, commande.php, etc.
   .specia1 .table thead = en-tête gradient rose (override Bootstrap).
   ul.voir = rangée de boutons Voir/Modifier/Supprimer dans chaque ligne.
   form#contact = carte formulaire admin (max-width 540px, ombre légère).
   .badge-statut / .badge-* = pills colorés selon le statut de commande :
     prise_en_charge (jaune) | en_cours (bleu) | prêt/livré (vert) | annulé (rouge).
   .filter-bar = barre de filtres commandes (statut, livreur, recherche texte).
   .btn-bulk-delete = bouton corbeille pour la suppression groupée.
   ─────────────────────────────────────────────────────────────────────────── */
/* Table headers */
.specia1 .table thead th {
    background: linear-gradient(135deg, var(--cp) 0%, var(--cs) 100%);
    color: white !important;
    border-color: rgba(255,255,255,0.2);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 12px;
    white-space: nowrap;
}
.specia1 .table tbody tr:hover {
    background: rgb(var(--cp-rgb) / 0.04);
}
.specia1 .table tbody td {
    vertical-align: middle;
    font-size: 0.9rem;
}

/* Action buttons dans les tables (override inline styles) */
ul.voir {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}
ul.voir a {
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s;
}
ul.voir a:nth-child(1) i { color: var(--cd) !important; }
ul.voir a:nth-child(2) i { color: #2563EB !important; }
ul.voir a:nth-child(3) i { color: var(--cp) !important; }
ul.voir a:nth-child(1):hover { background: rgb(var(--cd-rgb) / 0.08); text-decoration: none; }
ul.voir a:nth-child(2):hover { background: rgba(37,99,235,0.08); text-decoration: none; }
ul.voir a:nth-child(3):hover { background: rgb(var(--cp-rgb) / 0.08); text-decoration: none; }

/* Icône "Ajouter" dans la barre .texte2 (override inline color:white) */
.texte2 a i.fa-calendar-plus { color: var(--cp) !important; }
.texte2 a:hover i.fa-calendar-plus { color: var(--cp) !important; }
.texte2 a { text-decoration: none; margin-left: 10px; display: inline-block; margin-top: 10px; margin-bottom: 10px; }

/* Formulaires admin (ajouter / modifier) */
form#contact {
    background: white;
    border-radius: 16px;
    padding: 32px 36px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    border: 1px solid #e8e8ec;
    max-width: 540px;
    margin: 24px auto;
}
form#contact fieldset {
    border: none;
    padding: 0;
    margin-bottom: 18px;
}
form#contact .form-control,
form#contact input[type="text"],
form#contact input[type="number"],
form#contact textarea {
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 0.95rem;
    width: 100%;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
form#contact .form-control:focus,
form#contact input[type="text"]:focus,
form#contact input[type="number"]:focus,
form#contact textarea:focus {
    border-color: var(--cp);
    box-shadow: 0 0 0 3px rgb(var(--cp-rgb) / 0.12);
    background: #fff;
}
form#contact input[type="file"] {
    font-size: 0.88rem;
    color: #666;
}
form#contact .help-inline {
    color: #e53935;
    font-size: 0.76rem;
    margin-top: 4px;
    display: block;
}
#contact-submit {
    background: linear-gradient(135deg, var(--cp) 0%, var(--cs) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 4px;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 4px 14px rgb(var(--cp-rgb) / 0.3);
    letter-spacing: 0.02em;
}
#contact-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Bouton suppression groupée */
.btn-danger {
    background: #dc3545;
    border-color: #dc3545;
}

/* Admin bulk select checkbox — accent-color change la couleur native de la case à cocher */
.bulk-checkbox { cursor: pointer; width: 16px; height: 16px; accent-color: var(--cp); }

/* Badges statut commandes */
.badge-statut {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.badge-prise   { background: #fff3cd; color: #856404; }
.badge-cours   { background: #cfe2ff; color: #084298; }
.badge-pret    { background: #d1e7dd; color: #0a3622; }
.badge-livre   { background: #d1e7dd; color: #0a3622; }
.badge-annule  { background: #f8d7da; color: #842029; }
.badge-prise:hover  { color: #856404 !important; }
.badge-cours:hover  { color: #084298 !important; }
.badge-pret:hover   { color: #0a3622 !important; }
.badge-livre:hover  { color: #0a3622 !important; }
.badge-annule:hover { color: #842029 !important; }

/* Barre de filtres commandes */
.filter-bar {
    background: #f7f7f8;
    border: 1px solid #e8e8ec;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}
.filter-bar label { font-size: 0.8rem; color: #4b5563; font-weight: 600; margin-bottom: 4px; display: block; }
.filter-bar .form-control,
.filter-bar .form-select {
    border: 1.5px solid #e8e8ec;
    border-radius: 8px;
    font-size: 0.85rem;
    padding: 6px 10px;
}
.filter-bar .form-control:focus,
.filter-bar .form-select:focus {
    border-color: var(--cp);
    box-shadow: 0 0 0 3px rgb(var(--cp-rgb) / 0.12);
}
.filter-bar .btn-outline-secondary {
    border-color: var(--cp);
    color: var(--cp);
    font-size: 0.82rem;
    border-radius: 8px;
}
.filter-bar .btn-outline-secondary:hover {
    background: var(--cp);
    color: white;
}

/* Onglets de filtre commandes */
.cmd-filter-tabs { display:flex; gap:8px; margin-bottom:14px; flex-wrap:wrap; }
.cmd-tab {
    padding:7px 18px; border-radius:20px; font-size:0.82rem; font-weight:600;
    border:1.5px solid #e0d0d8; color:var(--cd); background:#fff;
    cursor:pointer; transition:all 0.18s;
}
.cmd-tab:hover { background:#fdf0f5; }
.cmd-tab.active { background:linear-gradient(135deg,var(--cp),var(--cs)); color:#fff; border-color:transparent; }
.cmd-tab-count {
    display:inline-block; background:rgba(0,0,0,0.12); color:inherit;
    border-radius:10px; padding:1px 7px; font-size:0.75rem; margin-left:5px;
}
.cmd-tab.active .cmd-tab-count { background:rgba(255,255,255,0.25); }

/* Lien retour admin */
.admin-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    margin: 12px 0 18px;
    padding: 7px 16px;
    border-radius: 8px;
    border: 1.5px solid #e8e8ec;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.admin-back-link:hover {
    background: rgb(var(--cp-rgb) / 0.06);
    color: var(--cp);
    border-color: var(--cp);
    text-decoration: none;
}


/* Bouton suppression multiple (icône corbeille) */
.btn-bulk-delete {
    background: none;
    border: none;
    padding: 0;
    color: var(--cp);
    font-size: 20px;
    cursor: pointer;
}

/* ── 21. Media queries responsive ────────────────────────────────────────────
   Points de rupture du site :
   • ≤ 1199px : menu horizontal masqué → burger + icône panier mobile visibles.
   • ≤  988px : .opta passe de 300px à 200px de hauteur.
   • ≤  772px : reassurance bar réduite à un seul slogan ; #devise masqué.
   • ≤  564px : footer en colonne ; carrousels pleine largeur 190px.
   • ≤  480px : .opta réduit à 150px ; tables admin en police 0.72rem.
   • ≤  412px : hero très compact ; carrousels 130px.
   ─────────────────────────────────────────────────────────────────────────── */
@media only screen and (max-width: 1199px) {

    .line2 {
        display: none;
    }

    #range2 {
        display: none;
    }

    .dropdown {
        display: none;
    }

    .head2 nav .range1 > div:not(.search-wrapper) {
        flex: 1 !important;
        width: auto !important;
        justify-content: center;
        margin: 0;
    }

    .search-wrapper {
        flex: 0 0 210px !important;
        width: 210px !important;
    }


    .mobile-cart-icon {
        display: inline-flex;
        margin-left: 4px;
        margin-right: 2px;
        font-size: 1.6rem;
    }

    .hero-accueil {
        padding: 44px 24px 40px;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .categorie-card {
        padding: 28px 8px;
    }


    #search {
        width: 20px;
        height: 20px;
        border: none;
        padding: 5px;
        box-sizing: border-box;
        transition: width 0.4s ease-in-out;

    }

    #search:focus {
        width: 40%;
    }

    .carrousel {
        width: 50%;
        height: 250px;
        overflow: hidden;
        position: relative;
        background-color: white;
        border: 1px solid white;
        display: flex;
        border-radius: 5px;
        margin-top: 2px;
        margin-bottom: 10px;
        margin-right: 10px;

    }

    .carrousel2 {

        width: 50%;
        height: 250px;
        overflow: hidden;
        position: relative;
        background-color: white;
        border: 1px solid white;
        display: flex;
        border-radius: 5px;
        margin-top: 2px;
        margin-bottom: 10px;
        margin-right: 10px;
    }

    .carrousel3 {

        width: 50%;
        height: 250px;
        overflow: hidden;
        position: relative;
        background-color: white;
        border: 1px solid white;
        display: flex;
        border-radius: 5px;
        margin-top: 2px;
        margin-bottom: 10px;
    }
}

/* taille 772 */

@media only screen and (max-width: 772px) {
    .reassurance-bar {
        display: flex;
        justify-content: center;
        padding: 10px 20px;
    }
    .reassurance-bar > span:not(.reassurance-slogan) {
        display: none;
    }
    .reassurance-slogan {
        display: flex;
        align-items: center;
        gap: 7px;
        font-size: 0.85rem;
        font-style: italic;
    }

    #devise {
        display: none;
    }
    .specia10 .ads:not(:empty) {
        position: absolute;
        top: 16px;
        right: 16px;
        font-size: 0.68rem !important;
        padding: 2px 10px;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .logo-link {
        margin-left: 4px;
    }

    .head1 {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding-left: 0;
        min-height: 50px;
    }

    .hero-accueil {
        padding: 36px 20px 32px;
        border-radius: 14px;
        margin: 18px 0 14px;
    }
    .hero-title {
        font-size: 1.5rem;
    }
    .hero-sub {
        font-size: 0.93rem;
    }
    .hero-cta {
        padding: 11px 28px;
        font-size: 0.95rem;
    }
    .categorie-card {
        padding: 22px 8px;
        border-radius: 14px;
    }
    .categorie-icon {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    .categorie-label {
        font-size: 0.82rem;
    }


    #search {
        width: 20px;
        height: 20px;
        border: none;
        padding: 5px;
        box-sizing: border-box;
        transition: width 0.4s ease-in-out;

        display: flex;


    }

    #search:focus {
        width: 100%;

    }

    .carrousel {
        width: 100%;
        height: 190px;
        overflow: hidden;
        position: relative;
        background-color: white;
        border: 1px solid white;
        display: flex;
        border-radius: 5px;
        margin-top: 2px;
        margin-bottom: 10px;
        margin-right: 10px;

    }

    .carrousel2 {

        width: 100%;
        height: 190px;
        overflow: hidden;
        position: relative;
        background-color: white;
        border: 1px solid white;
        display: flex;
        border-radius: 5px;
        margin-top: 2px;
        margin-bottom: 10px;
        margin-right: 10px;
    }

    .carrousel3 {

        width: 100%;
        height: 190px;
        overflow: hidden;
        position: relative;
        background-color: white;
        border: 1px solid white;
        display: flex;
        border-radius: 5px;
        margin-top: 2px;
        margin-bottom: 10px;
    }

}


/* taille 564 */
@media only screen and (max-width: 564px) {

    #devise {
        display: none;
    }

    .head1 {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding-left: 8px;
        min-height: 50px;
    }

    .hero-accueil {
        padding: 28px 16px 24px;
        border-radius: 12px;
        margin: 14px 0 12px;
        border-width: 2px;
    }
    .hero-title {
        font-size: 1.3rem;
    }
    .hero-sub {
        font-size: 0.88rem;
        margin-bottom: 22px;
    }
    .hero-cta {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    .categorie-card {
        padding: 18px 6px;
        border-radius: 12px;
    }
    .categorie-icon {
        font-size: 1.55rem;
        margin-bottom: 8px;
    }
    .categorie-label {
        font-size: 0.78rem;
    }
    .categories-dashboard {
        margin: 20px 0 8px;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
        padding: 28px 20px 16px;
        gap: 20px;
    }
    .footer-nav,
    .footer-info {
        text-align: center;
        min-width: unset;
        width: 100%;
    }
    .footer-heading {
        text-align: center;
    }


    #search {
        width: 20px;
        height: 20px;
        border: none;
        padding: 5px;
        box-sizing: border-box;
        transition: width 0.4s ease-in-out;

        display: flex;


    }

    #search:focus {
        width: 100%;

    }




    .carrousel {
        width: 100%;
        height: 170px;
        overflow: hidden;
        position: relative;
        background-color: white;
        border: 1px solid white;
        display: flex;
        border-radius: 5px;
        margin-top: 2px;
        margin-bottom: 10px;
        margin-right: 10px;

    }

    .carrousel2 {
        width: 100%;
        height: 170px;
        overflow: hidden;
        position: relative;
        background-color: white;
        border: 1px solid white;
        display: flex;
        border-radius: 5px;
        margin-top: 2px;
        margin-bottom: 10px;
        margin-left: 1px;

    }

    .carrousel3 {
        width: 100%;
        height: 170px;
        overflow: hidden;
        position: relative;
        background-color: white;
        border: 1px solid white;
        display: flex;
        border-radius: 5px;
        margin-top: 2px;
        margin-bottom: 10px;
        margin-left: 1px;

    }


}


/* taille 412 */
@media only screen and (max-width: 412px) {



    #devise {
        display: none;
    }
    

    .head1 {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding-left: 8px;
        min-height: 50px;
    }

    .hero-accueil {
        padding: 24px 12px 20px;
        border-radius: 10px;
        margin: 10px 0 10px;
        border-width: 2px;
    }
    .hero-badge {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    .hero-title {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }
    .hero-sub {
        font-size: 0.82rem;
        margin-bottom: 18px;
    }
    .hero-cta {
        padding: 9px 20px;
        font-size: 0.85rem;
    }
    .categorie-card {
        padding: 14px 4px;
        border-radius: 10px;
    }
    .categorie-icon {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }
    .categorie-label {
        font-size: 0.72rem;
    }
    .categories-dashboard {
        margin: 14px 0 6px;
    }
    .categories-titre {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }


    #search {
        width: 20px;
        height: 20px;
        border: none;
        padding: 5px;
        box-sizing: border-box;
        transition: width 0.4s ease-in-out;

        display: flex;


    }

    #search:focus {
        width: 100%;

    }




    .carrousel {
        width: 100%;
        height: 130px;
        overflow: hidden;
        position: relative;
        background-color: white;
        border: 1px solid white;
        display: flex;
        border-radius: 5px;
        margin-top: 2px;
        margin-bottom: 10px;
        margin-right: 10px;

    }

    .carrousel2 {
        width: 100%;
        height: 130px;
        overflow: hidden;
        position: relative;
        background-color: white;
        border: 1px solid white;
        display: flex;
        border-radius: 5px;
        margin-top: 2px;
        margin-bottom: 10px;
        margin-left: 1px;

    }

    .carrousel3 {
        width: 100%;
        height: 130px;
        overflow: hidden;
        position: relative;
        background-color: white;
        border: 1px solid white;
        display: flex;
        border-radius: 5px;
        margin-top: 2px;
        margin-bottom: 10px;
        margin-left: 1px;

    }


}


/* taille 988 */

@media only screen and (max-width: 988px) {
    .opta {

        height: 200px;
    }

}

/* taille 480 */
@media only screen and (max-width: 480px) {
    .opta {

        height: 150px;
    }

}

/* ── 22. Boîtes de dialogue personnalisées ──────────────────────────────────
   .gs-modal-overlay : fond semi-transparent avec flou (backdrop-filter).
   .gs-modal-box : carte centrée avec animation scale + translateY (ressort).
   La classe .gs-modal-open est ajoutée par JS pour déclencher la transition.
   ─────────────────────────────────────────────────────────────────────────── */
.gs-modal-overlay {
    position: fixed;
    inset: 0;             /* Raccourci pour top/right/bottom/left: 0 */
    background: rgba(0, 0, 0, 0.45);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.22s ease;
    backdrop-filter: blur(2px); /* Flou de verre sur le contenu derrière la modale */
}
.gs-modal-overlay.gs-modal-open {
    opacity: 1; /* JS ajoute cette classe pour faire apparaître l'overlay */
}
.gs-modal-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
    max-width: 400px;
    width: 100%;
    overflow: hidden;
    transform: scale(0.88) translateY(24px); /* État initial : réduit et décalé vers le bas */
    /* cubic-bezier(0.34,1.56,…) = courbe ressort avec léger dépassement */
    transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gs-modal-overlay.gs-modal-open .gs-modal-box {
    transform: scale(1) translateY(0); /* Retour taille normale avec effet rebond */
}
.gs-modal-header {
    background: #f5f5f7;
    border-bottom: 1px solid #e8e8ec;
    padding: 18px 22px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.gs-modal-icon {
    width: 36px;
    height: 36px;
    background: rgb(var(--cp-rgb) / 0.10);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cp);
    font-size: 1rem;
    flex-shrink: 0;
}
.gs-modal-title {
    color: #2d1a24;
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    letter-spacing: 0.02em;
}
.gs-modal-body {
    padding: 22px 24px 16px;
    color: #4b5563;
    font-size: 0.93rem;
    line-height: 1.6;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}
.gs-modal-actions {
    padding: 4px 24px 22px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.gs-modal-btn {
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.18s;
    letter-spacing: 0.02em;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}
.gs-modal-btn-ok {
    background: var(--cp);
    color: #fff;
    box-shadow: 0 4px 14px rgb(var(--cp-rgb) / 0.28);
}
.gs-modal-btn-ok:hover {
    background: var(--cs);
    box-shadow: 0 6px 20px rgb(var(--cp-rgb) / 0.42);
    transform: translateY(-1px);
}
.gs-modal-btn-ok:active { transform: translateY(0); }
.gs-modal-btn-cancel {
    background: #ffffff;
    color: #6b7280;
    border: 1.5px solid #e8e8ec;
}
.gs-modal-btn-cancel:hover {
    background: #f5f5f7;
    color: #2d1a24;
    border-color: #d1d5db;
}

/* ===== Responsive admin tables ===== */
@media (max-width: 767px) {
    .table-responsive .table th,
    .table-responsive .table td {
        font-size: 0.78rem;
        padding: 6px 8px;
    }
    .filter-bar { padding: 10px 12px; gap: 8px; }
    .filter-bar label { font-size: 0.75rem; }
    .filter-bar .form-control,
    .filter-bar .form-select { font-size: 0.78rem; padding: 5px 8px; }
    .texte2 { padding: 8px 10px 6px 14px; }
    .texte2 h5 { font-size: 1rem; }
    .container2 { padding: 0 4px; }
}
@media (max-width: 480px) {
    .table-responsive .table th,
    .table-responsive .table td {
        font-size: 0.72rem;
        padding: 5px 6px;
    }
    #contact input, #contact select, #contact textarea,
    fieldset input, fieldset select, fieldset textarea { font-size: 0.9rem; }
    .admin-back-link { font-size: 0.78rem; padding: 6px 12px; }
}

/* ── 23. Page loader overlay ────────────────────────────────────────────────
   Overlay blanc translucide affiché lors des soumissions de formulaires lents.
   JS ajoute la classe .active sur form submit ; le spinner tourne en continu.
   ─────────────────────────────────────────────────────────────────────────── */
.gs-page-loader {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(3px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}
.gs-page-loader.active {
    display: flex;
}
.gs-loader-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid #f3d6e4;
    border-top-color: var(--cp);
    border-radius: 50%;
    animation: gsSpinAnim 0.7s linear infinite;
}
@keyframes gsSpinAnim {
    to { transform: rotate(360deg); }
}
.gs-loader-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--cd);
    letter-spacing: 0.02em;
}

/* ── Transitions de navigation premium ──────────────────────────────────────
   Entrée  : body::before — blanc pur s'efface à chaque chargement de page.
   Sortie  : #gs-exit-ov  — overlay blanc luxe + logo + anneaux roses au clic.
   Le splash screen (z-index:999999) reste au-dessus → aucun conflit.
   ─────────────────────────────────────────────────────────────────────────── */

/* Couverture d'entrée — blanc s'efface dès le premier pixel peint */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 99997;
    background: #fff;
    animation: gs-reveal .1s cubic-bezier(.4, 0, .2, 1) both;
    pointer-events: none;
}
@keyframes gs-reveal {
    0%   { opacity: 1; }
    100% { opacity: 0; }
}

/* Overlay de sortie — fond blanc premium avec gradient rose subtil */
#gs-exit-ov {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: radial-gradient(ellipse 90% 90% at 50% 50%, #ffffff 35%, #fce8f3 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .08s ease;
}
#gs-exit-ov::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(233,30,140,.035) 50%, transparent 70%);
    background-size: 250% 250%;
    animation: gs-shimmer-bg 2.2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes gs-shimmer-bg {
    0%, 100% { background-position: 120% 120%; }
    50%       { background-position: -20% -20%; }
}
#gs-exit-ov.show { opacity: 1; pointer-events: all; }

/* Conteneur logo + anneaux */
.gs-exit-logo-wrap {
    position: relative;
    width: 84px;
    height: 84px;
    flex-shrink: 0;
}

/* Anneaux pulsants roses */
.gs-exit-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1.5px solid var(--cp, #e8417a);
    opacity: 0;
    transform: scale(.85);
    animation: gs-ring-expand 2s ease-out infinite;
}
.gs-exit-ring:nth-child(2) { animation-delay: .65s; }
.gs-exit-ring:nth-child(3) { animation-delay: 1.3s; }
@keyframes gs-ring-expand {
    0%   { transform: scale(.85); opacity: .55; }
    100% { transform: scale(1.85); opacity: 0; }
}

/* Logo */
#gs-exit-ov img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    display: block;
    opacity: 0;
    transform: scale(.82);
    transition: opacity .28s ease .12s, transform .42s cubic-bezier(.34, 1.56, .64, 1) .12s;
    box-shadow:
        0 0 0 3px rgba(233, 30, 140, .12),
        0 6px 28px rgba(233, 30, 140, .18),
        0 2px 8px rgba(0, 0, 0, .08);
}
#gs-exit-ov.show img { opacity: 1; transform: scale(1); }

/* Nom de marque sous le logo */
.gs-exit-brand {
    font-family: 'Playfair Display', serif;
    font-size: .95rem;
    font-weight: 700;
    color: var(--cp, #e8417a);
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .28s ease .22s, transform .35s ease .22s;
}
#gs-exit-ov.show .gs-exit-brand { opacity: 1; transform: translateY(0); }

/* Tagline */
.gs-exit-tagline {
    font-family: 'Poppins', sans-serif;
    font-size: .6rem;
    font-weight: 400;
    color: #c49ab4;
    letter-spacing: .22em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity .28s ease .3s;
}
#gs-exit-ov.show .gs-exit-tagline { opacity: 1; }

/* ── 24. Dashboard livreur — barre titre + nav responsive ───────────────────
   .lv-header-row  : conteneur flex (titre gauche, boutons droite)
   .lv-topnav      : groupe de boutons (flex + wrap)
   .lv-nav-btn     : chaque bouton de navigation
   .lv-nav-label   : texte du bouton (masqué sur mobile)
   .lv-nav-logout  : variante rose plein pour Déconnexion
   ─────────────────────────────────────────────────────────────────────────── */
.lv-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.lv-header-row h5 { margin: 0; }
.lv-topnav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.lv-nav-btn {
    margin: 0;
    padding: 6px 14px;
    font-size: 0.82rem;
}
.lv-nav-logout {
    background: var(--cp);
    color: #fff !important;
    border-color: var(--cp);
}
.lv-nav-logout:hover {
    background: var(--cs);
    border-color: var(--cs);
}

/* Tablette (≤ 768px) : boutons un peu plus compacts */
@media (max-width: 768px) {
    .lv-nav-btn {
        padding: 6px 10px;
        font-size: 0.78rem;
    }
}

/* Mobile (≤ 480px) : masquer les labels, icônes seules */
@media (max-width: 480px) {
    .lv-nav-label { display: none; }
    .lv-nav-btn {
        padding: 8px 11px;
        font-size: 1rem;
    }
    .lv-header-row h5 { font-size: 1rem; }
}
