/* -- Styles de base (Mobile First) -- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f9f9f9;
    color: #333;
    overflow-x: hidden;
}

.conteneur {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto; /* Centre le contenu */
}

/* -- En-tête avec le logo -- */
.header {
    text-align: center;
    padding: 20px 0;
}

.logo {
    max-width: 250px; /* Le logo ne dépassera jamais cette taille */
    height: auto;   /* La hauteur s'ajuste pour garder les proportions */
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

/* -- Catalogue de produits responsive -- */
.catalogue {
    display: flex;        /* Active le mode Flexbox : la magie du responsive */
    flex-wrap: wrap;      /* Permet aux éléments d'aller à la ligne si pas de place */
    justify-content: center; /* Centre les produits sur la ligne */
    gap: 25px;            /* Crée un espace uniforme entre les produits */
}

.produit {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: center;
    padding: 20px;
    width: 50%;
    /* C'est la ligne clé pour le responsive ! */
    flex: 1 1 300px; 
    
    display: flex;
    flex-direction: column; /* Aligne les éléments à l'intérieur de la carte verticalement */
}

.produit img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
    background-image: linear-gradient(50deg, rgba(146, 146, 146, 0.02) 0%, rgba(146, 146, 146, 0.02) 25%, rgba(82, 82, 82, 0.02) 25%, rgba(82, 82, 82, 0.02) 50%, rgba(217, 217, 217, 0.02) 50%, rgba(217, 217, 217, 0.02) 75%, rgba(41, 41, 41, 0.02) 75%, rgba(41, 41, 41, 0.02) 100%), linear-gradient(252deg, rgba(126, 126, 126, 0.01) 0%, rgba(126, 126, 126, 0.01) 25%, rgba(117, 117, 117, 0.01) 25%, rgba(117, 117, 117, 0.01) 50%, rgba(219, 219, 219, 0.01) 50%, rgba(219, 219, 219, 0.01) 75%, rgba(41, 41, 41, 0.01) 75%, rgba(41, 41, 41, 0.01) 100%), linear-gradient(272deg, rgba(166, 166, 166, 0.01) 0%, rgba(166, 166, 166, 0.01) 20%, rgba(187, 187, 187, 0.01) 20%, rgba(187, 187, 187, 0.01) 40%, rgba(238, 238, 238, 0.01) 40%, rgba(238, 238, 238, 0.01) 60%, rgba(204, 204, 204, 0.01) 60%, rgba(204, 204, 204, 0.01) 80%, rgba(5, 5, 5, 0.01) 80%, rgba(5, 5, 5, 0.01) 100%), linear-gradient(86deg, rgba(143, 143, 143, 0.02) 0%, rgba(143, 143, 143, 0.02) 12.5%, rgba(36, 36, 36, 0.02) 12.5%, rgba(36, 36, 36, 0.02) 25%, rgba(23, 23, 23, 0.02) 25%, rgba(23, 23, 23, 0.02) 37.5%, rgba(223, 223, 223, 0.02) 37.5%, rgba(223, 223, 223, 0.02) 50%, rgba(101, 101, 101, 0.02) 50%, rgba(101, 101, 101, 0.02) 62.5%, rgba(94, 94, 94, 0.02) 62.5%, rgba(94, 94, 94, 0.02) 75%, rgba(148, 148, 148, 0.02) 75%, rgba(148, 148, 148, 0.02) 87.5%, rgba(107, 107, 107, 0.02) 87.5%, rgba(107, 107, 107, 0.02) 100%), linear-gradient(25deg, rgba(2, 2, 2, 0.02) 0%, rgba(2, 2, 2, 0.02) 16.667%, rgba(51, 51, 51, 0.02) 16.667%, rgba(51, 51, 51, 0.02) 33.334%, rgba(26, 26, 26, 0.02) 33.334%, rgba(26, 26, 26, 0.02) 50.001%, rgba(238, 238, 238, 0.02) 50.001%, rgba(238, 238, 238, 0.02) 66.668%, rgba(128, 128, 128, 0.02) 66.668%, rgba(128, 128, 128, 0.02) 83.335%, rgba(21, 21, 21, 0.02) 83.335%, rgba(21, 21, 21, 0.02) 100.002%), linear-gradient(325deg, rgba(95, 95, 95, 0.03) 0%, rgba(95, 95, 95, 0.03) 14.286%, rgba(68, 68, 68, 0.03) 14.286%, rgba(68, 68, 68, 0.03) 28.572%, rgba(194, 194, 194, 0.03) 28.572%, rgba(194, 194, 194, 0.03) 42.858%, rgba(51, 51, 51, 0.03) 42.858%, rgba(51, 51, 51, 0.03) 57.144%, rgba(110, 110, 110, 0.03) 57.144%, rgba(110, 110, 110, 0.03) 71.43%, rgba(64, 64, 64, 0.03) 71.43%, rgba(64, 64, 64, 0.03) 85.716%, rgba(31, 31, 31, 0.03) 85.716%, rgba(31, 31, 31, 0.03) 100.002%), linear-gradient(90deg, hsl(80, 0%, 14%), hsl(80, 0%, 14%));
}

.produit h2 {
    font-size: 1.2em;
    margin: 0 0 10px 0;
}

.produit p {
    margin: 0 0 15px 0;
    flex-grow: 1; /* Permet à la description de pousser le pied de page vers le bas */
}

.produit .prix {
    font-size: 1.2em;
    font-weight: bold;
    color: #2a8a2a;
    margin-bottom: 15px;
}

.produit button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s;
}

.produit button:hover {
    background-color: #218838;
}

/* -- Style du Panier Flottant -- */
.lien-panier {
    position: fixed;
    top: 15%;
    right: 30px;
    font-size: 24px;
    text-decoration: none;
    color: #333;
    background-color: white;
    padding: 10px 15px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 101; /* <-- On ajoute cette ligne ! */
}

#compteur-panier {
    background-color: #dc3545;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 6px;
    position: absolute;
    top: -5px;
    right: -5px;
}

/* -- Styles pour la page Panier -- */
.page-panier {
    width: 90%;
    max-width: 800px;
    margin: 30px auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.article-panier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.article-panier:last-child {
    border-bottom: none;
}

.panier-vide {
    text-align: center;
    font-size: 1.2em;
    color: #777;
    padding: 40px 0;
}

.total-panier {
    text-align: right;
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #333;
}

.bouton-paiement {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 30px auto 0;
    padding: 15px;
    background-color: #28a745;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
}

.bouton-paiement:hover {
    background-color: #218838;
}

/* -- Styles pour la page de paiement (checkout) -- */
.page-checkout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.checkout-form, .order-summary {
    flex: 1 1 400px; /* Chaque colonne essaie d'avoir 400px */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Important pour que le padding n'augmente pas la largeur */
}

.order-summary {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}
/* -- Styles pour la Page Produit "Waouh" -- */

/* Importation d'une police moderne depuis Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

.page-produit-conteneur {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding: 50px 20px;
    background: #ffffff;
    max-width: 1200px;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.produit-image-wrapper {
    flex: 1 1 400px; /* Le conteneur de l'image prendra au moins 400px */
    text-align: center;
}

.produit-image-waouh {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    background-image: linear-gradient(50deg, rgba(146, 146, 146, 0.02) 0%,
    rgba(146, 146, 146, 0.02) 25%, rgba(82, 82, 82, 0.02) 25%,
     rgba(82, 82, 82, 0.02) 50%, rgba(217, 217, 217, 0.02) 50%, rgba(217, 217, 217, 0.02) 75%, rgba(41, 41, 41, 0.02) 75%,
      rgba(41, 41, 41, 0.02) 100%), linear-gradient(252deg, rgba(126, 126, 126, 0.01) 0%, rgba(126, 126, 126, 0.01) 25%, rgba(117, 117, 117, 0.01) 25%,
       rgba(117, 117, 117, 0.01) 50%, rgba(219, 219, 219, 0.01) 50%, rgba(219, 219, 219, 0.01) 75%, rgba(41, 41, 41, 0.01) 75%,
        rgba(41, 41, 41, 0.01) 100%), linear-gradient(272deg, rgba(166, 166, 166, 0.01) 0%, rgba(166, 166, 166, 0.01) 20%, rgba(187, 187, 187, 0.01) 20%,
         rgba(187, 187, 187, 0.01) 40%, rgba(238, 238, 238, 0.01) 40%, rgba(238, 238, 238, 0.01) 60%, rgba(204, 204, 204, 0.01) 60%, rgba(204, 204, 204, 0.01) 80%,
          rgba(5, 5, 5, 0.01) 80%, rgba(5, 5, 5, 0.01) 100%), linear-gradient(86deg, rgba(143, 143, 143, 0.02) 0%, rgba(143, 143, 143, 0.02) 12.5%, rgba(36, 36, 36, 0.02) 12.5%,
           rgba(36, 36, 36, 0.02) 25%, rgba(23, 23, 23, 0.02) 25%, rgba(23, 23, 23, 0.02) 37.5%, rgba(223, 223, 223, 0.02) 37.5%, rgba(223, 223, 223, 0.02) 50%,
            rgba(101, 101, 101, 0.02) 50%, rgba(101, 101, 101, 0.02) 62.5%, rgba(94, 94, 94, 0.02) 62.5%, rgba(94, 94, 94, 0.02) 75%, rgba(148, 148, 148, 0.02) 75%,
             rgba(148, 148, 148, 0.02) 87.5%, rgba(107, 107, 107, 0.02) 87.5%, rgba(107, 107, 107, 0.02) 100%), linear-gradient(25deg, rgba(2, 2, 2, 0.02) 0%,
              rgba(2, 2, 2, 0.02) 16.667%, rgba(51, 51, 51, 0.02) 16.667%, rgba(51, 51, 51, 0.02) 33.334%, rgba(26, 26, 26, 0.02) 33.334%, rgba(26, 26, 26, 0.02) 50.001%,
               rgba(238, 238, 238, 0.02) 50.001%, rgba(238, 238, 238, 0.02) 66.668%, rgba(128, 128, 128, 0.02) 66.668%, rgba(128, 128, 128, 0.02) 83.335%, 
               rgba(21, 21, 21, 0.02) 83.335%, rgba(21, 21, 21, 0.02) 100.002%), linear-gradient(325deg, rgba(95, 95, 95, 0.03) 0%, rgba(95, 95, 95, 0.03) 14.286%,
                rgba(68, 68, 68, 0.03) 14.286%, rgba(68, 68, 68, 0.03) 28.572%, rgba(194, 194, 194, 0.03) 28.572%, rgba(194, 194, 194, 0.03) 42.858%, 
                rgba(51, 51, 51, 0.03) 42.858%, rgba(51, 51, 51, 0.03) 57.144%, rgba(110, 110, 110, 0.03) 57.144%, rgba(110, 110, 110, 0.03) 71.43%, rgba(64, 64, 64, 0.03) 71.43%,
                 rgba(64, 64, 64, 0.03) 85.716%, rgba(31, 31, 31, 0.03) 85.716%, rgba(31, 31, 31, 0.03) 100.002%), linear-gradient(90deg, hsl(80, 0%, 14%), hsl(80, 0%, 14%));
}

.produit-image-waouh:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 25px 40px rgba(40, 167, 69, 0.2);
}

.produit-details-wrapper {
    flex: 1 1 500px; /* Le conteneur des détails prendra au moins 500px */
    padding-left: 30px;
}

.produit-nom-waouh {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
    color: #1a1a1a;
}

.produit-description-waouh {
    font-size: 1.1em;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

.produit-prix-waouh {
    font-size: 2.5em;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 30px;
    /* Effet de dégradé subtil dans le texte */
    background: linear-gradient(45deg, #28a745, #218838);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bouton-achat-waouh {
    display: inline-block;
    background: linear-gradient(45deg, #28a745, #218838);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bouton-achat-waouh:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.produit-non-trouve {
    text-align: center;
    padding: 80px;
    font-size: 1.5em;
    color: #777;
}


/* 2. Section d'informations "Accordéon" */
.produit-infos-accordeon {
    margin-top: 50px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.accordeon-item {
    border-bottom: 1px solid #eee;
}

.accordeon-titre {
    padding: 20px 10px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    user-select: none; /* Empêche la sélection du texte au clic */
}

.accordeon-titre::after {
    content: '+';
    position: absolute;
    right: 15px;
    font-size: 1.5em;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.accordeon-item.active .accordeon-titre::after {
    transform: rotate(45deg);
}

.accordeon-contenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), padding 0.5s ease;
    padding: 0 15px;
    line-height: 1.7;
    color: #444;
}

.accordeon-item.active .accordeon-contenu {
    max-height: 1000px; /* Assez grand pour tout contenu */
    padding: 10px 15px 25px;
    transition: max-height 1s ease-in-out, padding 0.5s ease;
}

/* 3. Ajout d'une icône au bouton d'achat */
.bouton-achat-waouh svg {
    margin-left: 10px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.bouton-achat-waouh:hover svg {
    transform: translateX(5px);
}

/* ======================================= */
/* ===   NOUVEAU HEADER PROFESSIONNEL    === */
/* ======================================= */

.site-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 0 25px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    max-width: 1400px;
    margin: 0 auto;
}

.header-logo {
    font-size: 1.5em;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

.header-nav-desktop ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 30px;
}

.header-nav-desktop a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}
.header-nav-desktop a:hover { color: #28a745; }
.header-nav-desktop a svg { width: 16px; height: 16px; }

/* Menu déroulant */
.has-dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    min-width: 200px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 8px;
    list-style: none;
    opacity: 0;
    transition: all 0.2s ease-in-out;
}
.has-dropdown:hover .dropdown-menu {
    display: block;
    top: 100%;
    opacity: 1;
}
.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.action-icon { color: #333; }
.hamburger-btn { display: none; background: none; border: none; cursor: pointer; }

/* --- Menu Mobile "Tiroir" --- */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: #fff;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1002;
    padding: 25px;
}
.mobile-menu-drawer.is-open {
    transform: translateX(0);
}

.close-menu-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5em;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 60px;
}
.mobile-nav a {
    color: #333;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 600;
    padding: 10px;
    border-radius: 5px;
}
.mobile-nav a:hover { background-color: #f0f0f0; }

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}
.menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}


/* === Responsive === */
@media (max-width: 992px) {
    .header-nav-desktop { display: none; }
    .hamburger-btn { display: block; }
}


.site-content {
    padding: 20px 0;
}

.site-footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 50px 0 20px 0;
    margin-top: 50px;
}

.footer-conteneur {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-section {
    flex: 1 1 250px;
}

.footer-section h4 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.footer-section p {
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    margin-bottom: 8px;
}

.footer-section ul a:hover {
    color: #28a745;
}

.social-links a {
    color: #aaa;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #28a745;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.9em;
}

/* -- Styles pour le menu déroulant -- */

.header-nav li {
    position: relative;
}

/* Cache les menus par défaut de manière plus robuste */
.dropdown-menu, .submenu {
    display: block; /* On laisse le display, mais on joue sur l'opacité et la visibilité */
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 220px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    border-radius: 0 0 5px 5px;
}

/* Affiche le premier niveau de dropdown au survol de .has-dropdown */
li.has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 1em;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
    color: #28a745;
}

.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    border-radius: 0 5px 5px 5px;
}

/* Affiche le sous-menu au survol de .has-submenu */
li.has-submenu:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* -- Styles pour le menu responsive -- */

.menu-toggle {
    display: none; /* Caché par défaut sur grand écran */
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle svg {
    width: 28px;
    height: 28px;
    color: #333;
}

/* On utilise une "media query" : ces styles ne s'appliqueront
   que sur les écrans dont la largeur est inférieure à 768px.
*/
@media (max-width: 768px) {
    .header-nav {
        display: none; /* On cache le menu horizontal */
        position: absolute;
        top: 100%; /* Juste en dessous du header */
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .header-nav.active {
        display: block; /* La classe .active (ajoutée par JS) le rend visible */
    }

    .header-nav ul {
        flex-direction: column; /* On affiche les liens verticalement */
        padding: 10px 0;
        gap: 0;
    }
    
    .header-nav li {
        text-align: center;
    }

    .header-nav a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    .header-nav a::after {
        display: none; /* On enlève la barre de surlignage sur mobile */
    }

    .menu-toggle {
        display: block; /* On affiche le bouton hamburger */
    }

    /* On cache les menus déroulants par défaut sur mobile (plus simple) */
    .dropdown-menu {
        display: none !important;
    }
    .submenu-toggle {
        display: block; /* On affiche le bouton '+' sur mobile */
        position: absolute;
        right: 0;
        top: 0;
        padding: 15px;
        cursor: pointer;
        z-index: 2; /* Pour être sûr qu'il est cliquable */
        font-size: 1.5em;
        line-height: 1;
    }
    
    .header-nav li.has-submenu > a {
        padding-right: 45px; /* On fait de la place pour le bouton '+' */
    }
    
    /* Sur mobile, on ne veut plus de menu au survol */
    li.has-dropdown:hover > .dropdown-menu,
    li.has-submenu:hover > .submenu {
        display: none;
    }
    
    /* La logique d'affichage sur mobile se fait via une classe .open (gérée par JS) */
    .header-nav .dropdown-menu, .header-nav .submenu {
        position: static;
        display: none;
        box-shadow: none;
        border-radius: 0;
        min-width: 100%;
        border-top: 1px solid #f0f0f0;
        padding-left: 20px; /* On indente les sous-menus */
    }
    
    .header-nav li.open > .dropdown-menu,
    .header-nav li.open > .submenu {
        display: block;
    }
}

@media (max-width: 992px) {
    .header-nav {
        display: none;
        position: fixed; /* On le fixe sur l'écran */
        top: 0;
        left: 0;
        width: 80%; /* Prend 80% de la largeur */
        max-width: 300px;
        height: 100%;
        background: #fff;
        box-shadow: 5px 0 20px rgba(0,0,0,0.1);
        transform: translateX(-100%); /* Caché sur la gauche */
        transition: transform 0.4s ease;
        overflow-y: auto; /* Permet de scroller si le menu est long */
    }
    
    .header-nav.active {
        display: block;
        transform: translateX(0); /* Apparaît en glissant */
    }

    .header-nav ul {
        flex-direction: column;
        padding: 80px 0 20px 0; /* Marge en haut pour ne pas être sous le header */
        gap: 0;
        align-items: flex-start; /* Aligne les textes à gauche */
    }
    
    .header-nav li {
        width: 100%;
        text-align: left;
    }

    .header-nav a {
        display: block;
        padding: 15px 30px;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        box-sizing: border-box;
    }

    .header-nav a::after {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    /* Logique d'ouverture des sous-menus sur mobile */
    .submenu-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 0;
        padding: 15px 20px;
        cursor: pointer;
        z-index: 2;
        font-size: 1.5em;
        line-height: 1;
    }
    .header-nav li.has-submenu > a {
        padding-right: 50px;
    }

    .dropdown-menu, .submenu {
        position: static;
        display: none; /* Reste caché par défaut */
        box-shadow: none;
        border-radius: 0;
        min-width: 100%;
        border-top: 1px solid #f0f0f0;
        padding-left: 20px;
        opacity: 1; /* On remet les valeurs par défaut */
        visibility: visible;
        transform: none;
    }
    
    .header-nav li.open > .dropdown-menu,
    .header-nav li.open > .submenu {
        display: block;
    }
}

/* --- NOUVEAUX STYLES POUR LA PAGE D'ACCUEIL --- */

.section-title {
    text-align: center;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 50px;
    color: #1a1a1a;
}

/* -- Section Héros -- */
.hero-section {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    /* On remplace le fond par votre nouveau dégradé */
    background-image: linear-gradient(45deg, rgb(20, 222, 124) 0%, rgb(20, 222, 124) 21%,rgb(25, 190, 119) 21%, rgb(25, 190, 119) 37%,rgb(30, 158, 113) 37%, rgb(30, 158, 113) 46%,rgb(35, 126, 108) 46%, rgb(35, 126, 108) 53%,rgb(39, 94, 103) 53%, rgb(39, 94, 103) 59%,rgb(44, 62, 97) 59%, rgb(44, 62, 97) 77%,rgb(49, 30, 92) 77%, rgb(49, 30, 92) 100%);
    padding: 20px;
}
/* Note: vous devez trouver une image de fond et la nommer 'hero-background.jpg' dans votre dossier /images */

.hero-title {
    font-size: 3.5em;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
    animation: fadeInDown 1s ease-out;
    color: white;
}

.hero-subtitle {
    font-size: 1.3em;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 30px auto;
    animation: fadeInUp 1s ease-out 0.5s;
    animation-fill-mode: both;
}

.hero-button {
    background: #28a745;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: fadeInUp 1s ease-out 1s;
    animation-fill-mode: both;
}
.hero-button:hover {
    background-color: #218838;
    transform: translateY(-3px);
}

/* -- Section Engagements -- */
.engagements-section {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    padding: 80px 0;
}

.engagement-item {
    flex-basis: 300px;
    padding: 20px;
}
.engagement-item svg {
    width: 48px;
    height: 48px;
    color: #28a745;
    margin-bottom: 15px;
}
.engagement-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* -- Section Produits Phares -- */
.produits-phares-section {
    background-color: #f9f9f9;
    padding: 80px 0;
}

/* -- Section Catégories -- */
.categories-section {
    padding: 80px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.categorie-carte {
    height: 400px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}
.categorie-carte:hover {
    transform: scale(1.03);
}

.categorie-carte-overlay {
    position: absolute;
    top: 143px;
    left: -7%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 50%);
    display: flex;
    align-items: center;
    padding: 30px;
}

.categorie-carte h3 {
    color: white;
    font-size: 20px;
    background: darkgreen;
    margin: 0;
    padding: 10px;
    border-radius: 30px;
}

/* -- Animations -- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- AJOUTS ET CORRECTIONS FINALES POUR LE STYLE --- */

/* Style pour le nouveau logo textuel dans le header */
.topnav-logo-text {
    font-weight: 700;
    font-size: 1.5em; /* Taille du texte du logo */
    color: #1a1a1a;
    letter-spacing: -1px;
}
.header-logo-link {
    padding: 10px 16px 10px 0 !important;
}

/* On supprime l'ancien style pour le logo image qui n'est plus utilisé */
.topnav-logo {
   display: none;
}

/* Style pour le logo dans la section Héros */
.hero-logo {
    width: 20%;
    margin-bottom: 25px; /* Espace entre le logo et le titre */
}

/* === VOS CORRECTIONS INTÉGRÉES POUR LES CARTES CATÉGORIES === */
.categorie-carte-overlay {
    position: absolute;
    top: 143px;
    left: -7%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 50%);
    display: flex;
    align-items: center;
    padding: 30px;
}

.categorie-carte h3 {
    color: white;
    font-size: 20px;
    background: darkgreen;
    margin: 0;
    padding: 10px;
    border-radius: 30px;
}

/* -- Styles pour la gestion de la galerie -- */
.form-container {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-delete-gallery {
    position: absolute;
    top: 5px;
    right: 5px;
    color: white;
    background: rgba(220, 53, 69, 0.8);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.btn-delete-gallery:hover {
    background: rgba(220, 53, 69, 1);
}
.btn-delete-gallery svg {
    width: 16px;
    height: 16px;
}
/* -- Section Partenaires (Version Animation CSS Conditionnelle) -- */

.partenaires-section {
    padding: 60px 0;
    background: #fff;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.marquee-content {
    display: flex;
    width: fit-content; /* S'adapte au contenu par défaut */
}

/* On applique l'animation SEULEMENT si la classe .is-animated est présente */
.marquee-content.is-animated {
    animation: marquee-scroll 40s linear infinite;
}

/* On centre les logos SEULEMENT si l'animation n'est pas active */
.marquee-content.is-centered {
    width: 100%;
    justify-content: center;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    from { transform: translateX(0%); }
    to { transform: translateX(-50%); }
}

.marquee-item {
    flex-shrink: 0;
    width: 200px;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.marquee-item img {
    max-width: 100%;
    max-height: 100px;
    transition: transform 0.3s ease;
}

.marquee-item img:hover {
    transform: scale(1.1);
}

/* -- Styles pour les Pages Statiques -- */
.page-statique {
    max-width: 800px; /* On réduit la largeur pour une meilleure lisibilité */
    margin-bottom: 50px;
}
.page-statique h1 {
    text-align: left;
    margin-bottom: 20px;
}
.intro-page {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 40px;
}

/* Style pour le formulaire de contact */
.formulaire-contact .form-group {
    margin-bottom: 25px;
}
.formulaire-contact label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.formulaire-contact input,
.formulaire-contact textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}
.formulaire-contact button {
    width: auto;
    padding: 15px 35px;
}

/* -- Nouveaux Styles pour le Tableau de Bord -- */

/* Conteneur pour les cartes de statistiques */
.stat-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    flex: 1 1 200px; /* Flexible et taille de base de 200px */
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.stat-card .stat-value {
    font-size: 2.5em;
    font-weight: 700;
    color: #28a745;
}

.stat-card .stat-label {
    font-size: 1.1em;
    color: #555;
    margin-top: 5px;
}

/* Conteneur pour les deux colonnes */
.dashboard-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-widget {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    flex: 1 1 300px; /* Chaque colonne prendra au moins 300px */
}

.dashboard-widget h2 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* Style des liens rapides */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f4f7f6;
    padding: 15px 20px;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    flex: 1 1 200px; /* Flexible */
    transition: background-color 0.2s, color 0.2s;
}

.quick-link:hover {
    background: #28a745;
    color: #fff;
}

.quick-link svg {
    width: 20px;
    height: 20px;
}

/* Style de la liste des produits récents */
.recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.recent-list li:last-child {
    border-bottom: none;
}

.recent-list a {
    text-decoration: none;
    color: #333;
}
.recent-list a:hover {
    color: #28a745;
}

/* -- Style pour la grille des produits sur l'accueil -- */
.catalogue-accueil {
    display: grid;
    /* On crée des colonnes qui font au minimum 300px, mais peuvent grandir */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* On s'assure que la carte produit se comporte bien dans la grille */
.catalogue-accueil .produit {
    width: auto; /* On annule toute largeur fixe potentielle */
    flex: none; /* On annule les propriétés flex */
}

/* -- Styles pour la page Saph'ia -- */
.saphia-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

#saphia-canvas-container {
    border-radius: 8px;
    background: rgb(249, 249, 249); /* Votre nouvelle couleur de fond */
}

.saphia-chat-container {
    flex: 1 1 400px;
}

/* -- Styles pour les messages du chat Saph'ia -- */
.saphia-message-user {
    margin-left: auto; /* Aligne le message de l'utilisateur à droite */
    text-align: right;
}
.saphia-message-user p {
    background: #28a745; /* Fond vert pour l'utilisateur */
    color: white;
    border-bottom-right-radius: 5px;
}

/* -- STYLES POUR LA PAGE SAPH'IA (VERSION ERGONOMIQUE ET RESPONSIVE) -- */

/* On change la disposition du conteneur principal */
.saphia-container {
    display: flex;
    flex-direction: column; /* Les éléments seront l'un en dessous de l'autre */
    align-items: center; /* On centre le tout horizontalement */
    gap: 30px;
}

/* Le nouveau style "portrait circulaire" pour le canvas 3D */
#saphia-canvas-container {
    width: 30%;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: rgb(249, 249, 249);
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    cursor: grab;
}
#saphia-canvas-container:active {
    cursor: grabbing;
}

/* On ajuste la largeur du conteneur de chat */
.saphia-chat-container {
    width: 100%;
    max-width: 600px; /* Le chat peut être un peu plus large */
    height: auto; /* La hauteur s'adapte au contenu */
    min-height: 400px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

/* Le reste des styles du chat (bulles, input) ne change pas */
.saphia-chat-box {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.saphia-message {
    display: flex;
    max-width: 80%;
}
.saphia-message p {
    margin: 0;
    padding: 12px 18px;
    border-radius: 20px;
    line-height: 1.5;
    word-wrap: break-word;
}
.saphia-message-bot {
    align-self: flex-start;
}
.saphia-message-bot p {
    background: #f0f0f0;
    color: #000;
    border-bottom-left-radius: 4px;
}
.saphia-message-user {
    align-self: flex-end;
}
.saphia-message-user p {
    background: linear-gradient(45deg, #28a745, #218838);
    color: white;
    border-bottom-right-radius: 4px;
}
.saphia-input-container {
    display: flex;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background: #f9f9f9;
    justify-content: space-around;
    align-items: center; /* Aligne verticalement les boutons avec l'input */
}
#user-prompt {
    flex-grow: 1;
    border: 1px solid transparent;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 1em;
    background: #f0f0f0;
    transition: background 0.3s, border-color 0.3s;
}
#user-prompt:focus {
    outline: none;
    background: #fff;
    border-color: #28a745;
}
#send-button {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #28a745;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: background 0.3s;
}
#send-prompt-btn:hover {
    background: #218838;
}

/* Style pour le bouton Stop Voix */
.saphia-stop-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: #c43c3c;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 8px 15px;
    margin: 0 auto 15px auto; /* Centré, avec une marge en bas */
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}
.saphia-stop-btn:hover {
    background: #c43c3c;
    color: #fff;
}
.saphia-stop-btn svg {
    width: 16px;
    height: 16px;
}

/* -- Styles pour les cartes produits dans le chat Saph'ia -- */
.saphia-products-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto; /* Permet de scroller horizontalement si trop de produits */
}

.saphia-product-card {
    display: block;
    flex-shrink: 0;
    width: 120px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    background: #fff;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.saphia-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.saphia-product-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.saphia-product-card span {
    display: block;
    padding: 8px;
    font-size: 0.9em;
    font-weight: 600;
}

.saphia-message-bot
 {
    flex-direction: column;
}

/* -- Styles pour les formulaires d'authentification client -- */
.form-auth-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}
.form-auth-container h2 {
    text-align: center;
    margin-top: 0;
    font-size: 2em;
}
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}
.auth-switch {
    text-align: center;
    margin-top: 20px;
}
.auth-switch a {
    color: #28a745;
    font-weight: 600;
}

/* -- Styles pour la page Mon Compte -- */
.mon-compte-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 50px auto;
}
.mon-compte-sidebar {
    flex: 1 1 250px;
}
.mon-compte-sidebar h2 {
    font-size: 1.5em;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}
.mon-compte-sidebar nav a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    border-radius: 5px;
    margin-bottom: 5px;
}
.mon-compte-sidebar nav a:hover {
    background-color: #f5f5f5;
}
.mon-compte-sidebar nav a.active {
    background-color: #28a745;
    color: white;
}
.mon-compte-content {
    flex: 1 1 500px;
}
.data-table-client {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.data-table-client th, .data-table-client td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.data-table-client th {
    font-weight: 600;
}

/* --- STYLES POUR LE BLOG (ACTUALITÉS) --- */

/* Grille des articles sur actualites.php */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.article-carte {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-carte:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.article-carte-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.article-carte-contenu {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-carte-date {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 10px;
}

.article-carte-titre {
    font-size: 1.4em;
    font-weight: 600;
    margin: 0;
}

.article-carte-extrait {
    margin: 15px 0;
    flex-grow: 1; /* Pousse le lien "Lire la suite" vers le bas */
}

.article-carte-lien {
    font-weight: 600;
    color: #28a745;
}

/* Page d'un article seul (article.php) */
.article-seul {
    max-width: 750px;
    margin: 0 auto;
}

.article-image-principale {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
}

.article-titre-seul {
    font-size: 2.8em;
    margin-bottom: 10px;
    text-align: left;
}

.article-date-seul {
    color: #777;
    margin-bottom: 30px;
    font-style: italic;
}

.article-contenu-seul {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
}

.lien-retour {
    display: inline-block;
    margin-top: 40px;
    font-weight: 600;
    color: #28a745;
    text-decoration: none;
}

/* -- Styles pour la Bannière Promotionnelle -- */

.promo-banner-section {
    padding: 60px 0;
}

.promo-banner {
    display: flex;
    flex-wrap: wrap; /* Permet de passer en colonne sur mobile */
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    color: #fff;
    border-radius: 16px;
    padding: 40px;
    text-decoration: none;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* L'EFFET GLOW */
.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(40, 167, 69, 0.4), transparent 40%);
    animation: glow-rotate 20s linear infinite;
    z-index: 0;
}

@keyframes glow-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.promo-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.3);
}

.promo-banner-content, .promo-banner-image {
    flex: 1 1 300px; /* Chaque colonne prend au moins 300px */
    position: relative; /* Pour passer au-dessus de l'effet glow */
    z-index: 1;
}

.promo-banner-content {
    padding-right: 30px;
}

.promo-banner-title {
    font-size: 2.5em;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.promo-banner-description {
    font-size: 1.2em;
    color: #ccc;
    margin-bottom: 25px;
}

.promo-banner-cta {
    background: #28a745;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.promo-banner:hover .promo-banner-cta {
    background: #fff;
    color: #1a1a1a;
}

.promo-banner-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.4));
}

/* On applique le flex-direction: column sur mobile */
@media (max-width: 768px) {
    .promo-banner {
        flex-direction: column;
        padding: 30px;
        text-align: center;
    }
    .promo-banner-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    .promo-banner-image {
        order: -1; /* Place l'image en premier sur mobile */
    }
}

/* -- Styles pour la Section Avis Clients -- */

.avis-section {
    padding: 80px 0;
    background-color: #f9f9f9; /* Un fond légèrement différent pour la démarquer */
}

.avis-widget-container {
    max-width: 1000px;
    margin: 0 auto;
    /* Le widget que vous choisirez s'adaptera à l'intérieur de ce conteneur */
}

/* Style pour les nouveaux boutons de contrôle (Mute et Micro) */
.saphia-control-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.saphia-control-btn:hover {
    background: #f0f0f0;
    color: #000;
}

/* Style spécifique pour le micro quand il écoute */
#mic-btn.is-listening {
    background: #c43c3c;
    color: white;
    border-color: #c43c3c;
}

/* Style pour les boutons de contrôle (Mute et Micro) */
.saphia-control-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.saphia-control-btn:hover {
    background: #f0f0f0;
    color: #000;
}

.div_input{
    display: flex;
}

/* -- Styles pour la Modale des Conversations -- */

.lien-conversations {
    position: fixed;
    bottom: 20px; /* Positionné en bas */
    right: 30px;
    font-size: 24px;
    color: #fff;
    background-color: #28a745;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 101;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
.lien-conversations:hover {
    transform: scale(1.1);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}
.modal-header h2 {
    margin: 0;
    font-size: 1.5em;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: #888;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

#conversations-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

#conversations-list li {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}
#conversations-list li:hover {
    background-color: #f9f9f9;
}
#conversations-list li.active-conversation {
    background-color: #e9f5eb;
    color: #28a745;
}

/* -- Styles pour la liste des discussions dans Mon Compte -- */
.liste-discussions {
    margin-top: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}
.discussion-item {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}
.discussion-item:last-child {
    border-bottom: none;
}
.discussion-item:hover {
    background-color: #f9f9f9;
}
.discussion-titre {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}
.discussion-date {
    font-size: 0.9em;
    color: #777;
}

.produit-commande-image{
    width: 50%;
}

/* ======================================= */
/* ===    NOUVEAUX STYLES PAGE BOUTIQUE   === */
/* ======================================= */

.boutique-section {
    margin-bottom: 80px;
}
.section-title-boutique {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
}
/* Section présentation des catégories */
.categories-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.categorie-showcase-card {
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.categorie-showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.categorie-showcase-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.categorie-showcase-content {
    padding: 25px;
}
.categorie-showcase-content h3 {
    margin: 0 0 10px 0;
}
.categorie-showcase-content p {
    color: #555;
    margin-bottom: 20px;
}
.categorie-showcase-content span {
    font-weight: 600;
    color: #28a745;
    display: flex;
    align-items: center;
}
.categorie-showcase-content span svg {
    margin-left: 5px;
    width: 18px;
}
/* ======================================= */
/* ===    STYLE DU SELECT POUR FILTRES   === */
/* ======================================= */

/* Conteneur principal des filtres */
.filtres-container {
    display: flex;
    justify-content: center; /* Centre le menu déroulant */
    margin-bottom: 40px;
}

/* Wrapper pour styliser la flèche */
.select-stylise-wrapper {
    position: relative;
    width: 300px; /* Largeur du menu déroulant */
}

/* Le menu déroulant lui-même */
.filtre-select {
    /* On retire l'apparence par défaut du navigateur */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* Style personnalisé */
    width: 100%;
    padding: 12px 40px 12px 20px; /* Espace pour le texte et la flèche */
    font-size: 1em;
    font-weight: 600;
    color: #333;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 50px;
    cursor: pointer;
}

/* La flèche personnalisée */
.select-stylise-wrapper::after {
    content: '▼';
    font-size: 12px;
    color: #555;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Pour pouvoir cliquer à travers l'icône */
}
/* On s'assure que le catalogue se met bien à jour */
.catalogue .produit.hidden {
    display: none;
}

/* ======================================= */
/* === AMÉLIORATIONS VISUELLES BOUTIQUE  === */
/* ======================================= */

/* Style pour la nouvelle phrase descriptive */
.section-subtitle-boutique {
    text-align: center;
    font-size: 1.1em;
    color: #555;
    max-width: 700px;
    margin: -20px auto 40px auto; /* Marge négative pour remonter un peu */
}

/* Ajout d'un accent de couleur sous les titres de section */
.section-title-boutique {
    display: inline-block; /* Nécessaire pour que la bordure ne prenne pas toute la largeur */
    padding-bottom: 10px;
    border-bottom: 3px solid #28a745;
}

/* Amélioration du menu déroulant des filtres */
.filtre-select:focus {
    border-color: #28a745; /* Bordure verte quand on clique dessus */
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2); /* Effet de halo léger */
    outline: none; /* On retire l'outline moche par défaut */
}

/* Ajout d'une bordure de couleur au survol des cartes catégorie */
.categorie-showcase-card {
    border: 1px solid #f0f0f0; /* Bordure par défaut */
}
.categorie-showcase-card:hover {
    border-color: #28a745; /* Bordure verte au survol */
}

/* ======================================= */
/* ===   STYLE POUR DESCRIPTION CATÉGORIE === */
/* ======================================= */

.categorie-description-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #333;
    font-size: 1.1em;
    min-height: 50px; /* Pour éviter que la page ne "saute" quand le texte apparaît/disparaît */
}

.categorie-description-container p {
    margin: 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Animation d'apparition en fondu */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================================= */
/* ===    STYLES PAGE PANIER (V2 PRO)    === */
/* ======================================= */

.panier-page-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 15px;
}

.panier-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}
/* ... (le style de .panier-table, th, td, etc. peut rester le même qu'avant) ... */

.panier-summary-pro {
    width: 100%;
    max-width: 450px;
    margin-left: auto; /* Aligne le bloc à droite */
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.summary-details .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    color: #555;
}

.summary-details .summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0 0 0;
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.panier-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 15px;
}

.panier-vide {
    text-align: center;
    padding: 50px;
    border: 2px dashed #ddd;
    border-radius: 8px;
}

/* ======================================= */
/* === CORRECTIF AFFICHAGE PAGE PANIER === */
/* ======================================= */

.panier-page-container {
    width: 100%; /* Force le conteneur à prendre toute la largeur de son parent */
    max-width: 900px; /* On garde une largeur maximale pour la lisibilité */
    margin: 40px auto; /* Centre le bloc horizontalement */
    padding: 0 15px;
    box-sizing: border-box;
}

/* ======================================= */
/* === CORRECTIF GLOBAL DE MISE EN PAGE === */
/* ======================================= */

.site-content {
    width: 100%;
    display: block !important; /* On force l'affichage en bloc normal */
    box-sizing: border-box;
}

.checkout-layout { display: flex; flex-wrap: wrap; gap: 40px; }
.checkout-form-container { flex: 2 1 500px; }
.checkout-summary-container { flex: 1 1 300px; }
.checkout-section { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.choix-livraison { display: flex; flex-direction: column; gap: 15px; }
.choix-livraison label { font-size: 1.1em; }
.choix-magasin { display: flex; align-items: flex-start; gap: 10px; padding: 15px; border: 1px solid #ddd; border-radius: 5px; margin-bottom: 10px; cursor: pointer; transition: all 0.2s ease; }
.choix-magasin:has(input:checked) { border-color: #28a745; background: #f8fef9; box-shadow: 0 0 0 2px #28a745; }
#liste-magasins-disponibles .loading-text { color: #888; }
.hrcat{width: 100%;height: 1vh;}

.produit-commande-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.produit-commande-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}
.produit-commande-info {
    flex-grow: 1;
}
.produit-commande-prix {
    font-weight: bold;
}
.commande-info-adresse {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}
.commande-summary-client {
    text-align: right;
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
}

/* ======================================= */
/* === STYLE BOUTON FACTURE (CLIENT)   === */
/* ======================================= */

.commande-actions-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.bouton-secondaire {
    display: inline-flex; /* Permet d'aligner l'icône et le texte */
    align-items: center;
    gap: 8px; /* Espace entre l'icône et le texte */
}

.bouton-secondaire svg {
    width: 18px;
    height: 18px;
}

.panier-flex-container { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
.promo-code-container { flex: 1 1 300px; }
.promo-input-wrapper { display: flex; }
#promo-code-input { flex-grow: 1; border-right: none; border-radius: 5px 0 0 5px; }
#apply-promo-btn { border-radius: 0 5px 5px 0; }
#promo-message { margin-top: 10px; font-weight: 600; }
.promo-message-succes { color: #28a745; }
.promo-message-erreur { color: #dc3545; }
.summary-row.remise { color: #28a745; font-weight: bold; }
/* STYLE POUR L'IMAGE DANS LE PANIER */
.panier-produit-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.panier-produit-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #eee;
}

.checkbox-group-gdpr {
    flex-direction: column;
    display: flex;
    align-items: CENTER;
    justify-content: center;
    gap: 10px;
}

.checkbox-group-gdpr input { flex-shrink: 0; margin-top: 5px; }