/* --- 1. GENERAL OVERRIDES & BACKGROUND --- */

/* Permet de voir la vidéo derrière le wrapper Massively */
#wrapper > .bg {
    background-image: none !important;
    background-color: rgba(27, 31, 34, 0.15); /* Gris foncé transparent */
}

/* Container vidéo background */
.bg-video-wrapper {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -5;
    overflow: hidden;
}
#bg-video {
    width: 100%; height: 100%; object-fit: cover;
}
/* Calque noir léger sur la vidéo pour contraste texte */
.video-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.35); /* Noir semi-transparent */
}

/* --- CORRECTIF SWITCH LANGUE (POSITION) --- */
#top-bar {
    position: fixed;
    top: 15px;
    right: 20px; /* Position par défaut sur Desktop */
    z-index: 10005; /* Au dessus de tout */
}

/* Sur mobile, on le décale pour ne pas toucher le bouton Menu */
@media screen and (max-width: 980px) {
    #top-bar {
        right: 90px; /* On le pousse à gauche du bouton menu (qui fait ~60px) */
        top: 10px;
    }
    .lang-switch {
        padding: 5px 10px;
        font-size: 0.7rem; /* Un peu plus petit sur mobile */
    }
}
/* Le Switch de langue */
.lang-switch {
    /* Positionnement */
    margin-top: 0; /* On laisse le conteneur parent gérer la position */
    
    /* Apparence */
    cursor: pointer;
    padding: 5px 15px; /* Un peu plus d'espace */
    border-radius: 30px;
    transition: all 0.3s ease;
    
    /* LA CORRECTION DE VISIBILITÉ ICI */
    background: rgba(0, 0, 0, 0.4); /* Fond noir semi-transparent (au lieu de blanc) */
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5); /* Petite ombre portée sur le texte */
    border: 1px solid rgba(255,255,255,0.2); /* Bordure fine pour définir la forme */
    backdrop-filter: blur(5px); /* Effet flou derrière (très classe) */
}

.lang-switch:hover { 
    background: #ffffff; 
    color: #1166dd; 
    text-shadow: none; /* On enlève l'ombre au survol car le fond devient blanc */
}
/* --- CORRECTIF INTRO PLEIN ÉCRAN --- */
#intro {
    min-height: 100vh; /* Force la hauteur de l'écran complet */
    height: 100vh;     /* Sécurité supplémentaire */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre le contenu verticalement */
    align-items: center;
    padding-bottom: 2rem; /* Laisse de la place pour la flèche en bas */
    background: transparent;
    position: relative; /* Pour positionner la flèche en absolu si besoin */
    margin-bottom: 0; /* Évite les marges fantômes */
    z-index: 1;
}

/* Logo intro */
.intro-logo {
    max-width: 300px; 
    width: 80%; 
    height: auto; 
    margin-bottom: 2rem;
    
    /* LA LIGNE QUI CORRIGE LE CENTRAGE : */
    margin-top: auto; 
}

/* --- CSS POUR FORMULAIRE BREVO (Signup Section) --- */
.brevo-wrapper {
    width: 100%;
    max-width: 500px; /* Largeur idéale */
    margin: 2rem auto 0; /* Centré avec espace au-dessus */
    
    /* LE FIX EST ICI : */
    background: transparent; /* On enlève le fond blanc moche */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Une petite bordure subtile à la place */
    border-radius: 12px; /* Arrondi */
    
    overflow: hidden;
    position: relative;
    
    /* On s'assure que l'iframe remplit tout */
    display: flex;
    justify-content: center;
}

.brevo-wrapper iframe {
    width: 100%;
    /* On laisse le HTML décider de la hauteur, ou on fixe ici si besoin */
    min-height: 160px; 
}

/* --- CORRECTIF LOGO SECTION --- */
.logo-section {
    position: relative;
    z-index: 2; /* Passe au dessus de la vidéo */
    background: #fafafa;
    padding-top: 4rem !important; /* Espace pour respirer */
    margin-top: 0; /* Collé à l'intro */
}
.logo-title {
    text-transform: uppercase; font-size: 0.7rem; letter-spacing: 2px; color: #aaa; margin-bottom: 1.5rem;
}
.logo-grid {
    display: flex; justify-content: center; align-items: center; gap: 30px; flex-wrap: wrap;
}
.logo-grid a {
    border-bottom: none !important;
}

/* ÉTAT PAR DÉFAUT (GRIS) */
.logo-grid img {
    height: 60px; /* Taille augmentée comme demandé */
    width: auto;
    filter: grayscale(100%) !important; /* Force le gris */
    opacity: 0.3 !important; /* Très pâle par défaut */
    transition: all 0.5s ease-out; /* Transition fluide */
    transform: scale(1);
}

/* ÉTAT "ACTIVE" (QUAND LE SCRIPT DÉTECTE LE SCROLL) */
.logo-grid img.is-visible {
    filter: grayscale(0) !important; /* Couleur */
    opacity: 1 !important; /* Pleine visibilité */
    transform: scale(1.1); /* Petit effet de zoom */
}

/* AJUSTEMENT MOBILE */
@media screen and (max-width: 736px) {
    .logo-grid { gap: 20px; }
    .logo-grid img { height: 40px; } /* Taille mobile adaptée */
}

/* --- 3. TESTIMONIAL & EARLY BIRD --- */
.highlight-section {
    background: #181818 !important; /* Fond sombre pour contraste */
    color: #fff;
    border-top: none !important;
}
.txt-green { color: #00D666; }

.testimonial-box {
    display: flex; align-items: center; justify-content: center; gap: 20px;
    background: rgba(255,255,255,0.05); border: 1px dashed rgba(255,255,255,0.2);
    padding: 20px; border-radius: 10px; max-width: 700px; margin: 2rem auto 0;
    text-align: left;
}
.testimonial-img img {
    width: 250px; height: 250px; border-radius: 50%; object-fit: cover;
    border: 2px solid #FFD700;
}
.testimonial-text blockquote {
    border-left: none; padding: 0; margin: 0; font-style: italic; font-size: 1.1rem; color: #eee;
}
.testimonial-text cite {
    display: block; margin-top: 10px; font-weight: bold; color: #FFD700; font-style: normal; font-size: 0.8rem;
}
.testimonial-text cite span {
    background: #00D666; color: #000; padding: 2px 6px; border-radius: 4px; margin-left: 5px;
}

/* --- 4. GLASS CARDS SECTION (CORRIGÉE) --- */
@media screen and (max-width: 736px) {
    .image.fit {
        margin: 0 !important;
    }
}
.hotspot-container {
    position: relative;
    max-width: 100%;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden; 
}

/* CONTAINER IMAGE */
.image-wrapper {
    position: relative;
    background: #000; /* Noir sur Desktop pour l'effet sombre */
    line-height: 0; /* ÉVITE LES ESPACES VIDES EN BAS DE L'IMAGE */
}

.darkened-image {
    display: block;
    width: 100%;
    filter: brightness(0.5) contrast(1.1); 
    border-radius: 12px;
    margin: 0; /* Force 0 marge */
}

/* STYLE DES CARTES VERRE */
.glass-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    color: #fff;
    width: 220px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transform: translate(-50%, -50%);
    text-align: left;
    transition: transform 0.3s ease;
    z-index: 10;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -55%);
}

/* STYLE DES ICÔNES */
.glass-card .icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}
/* Couleurs spécifiques par position (Facultatif mais sympa) */
.position-1 .icon i { color: #ff6b6b; } /* Rouge pour danger */
.position-2 .icon i { color: #51cf66; } /* Vert pour arbre */
.position-3 .icon i { color: #339af0; } /* Bleu pour plastique */

.glass-card strong {
    display: block; font-size: 1rem; color: #fff; margin-bottom: 2px;
}
.glass-card p {
    font-size: 0.8rem; margin: 0; line-height: 1.3; opacity: 0.9;
}

/* POSITIONS DES CARTES (Desktop) */
.position-1 { top: 60%; left: 25%; }
.position-2 { top: 30%; left: 50%; }
.position-3 { top: 70%; left: 75%; }

/* Style pour les citations de sources */
.glass-card .citation {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    opacity: 0.6;
    font-weight: 600;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 5px;
}

/* Ajustement couleur sur mobile (fond blanc) */
@media screen and (max-width: 736px) {
    .glass-card .citation {
        color: #999;
        border-top-color: #eee;
    }
    /* On force un peu le gras sur les chiffres clés pour que ça ressorte */
    .glass-card p b {
        color: #222;
        font-weight: 800;
    }
}
/* --- RESPONSIVE MOBILE (CORRECTION BUG) --- */
@media screen and (max-width: 736px) {
    
    .hotspot-container {
        display: flex;
        flex-direction: column;
        background: transparent;
        overflow: visible; /* Laisse dépasser si besoin */
    }
    
    /* Correction du bug de la barre noire */
    .image-wrapper {
        background: transparent !important; /* Plus de fond noir */
        margin-bottom: 15px;
    }
    
    .darkened-image {
        filter: none; /* Image claire sur mobile */
        border-radius: 12px;
    }

    /* Cartes en liste sous l'image */
    .glass-card {
        position: static;
        transform: none;
        width: 100%;
        margin-bottom: 10px;
        background: #fff; /* Fond blanc propre */
        color: #333;
        backdrop-filter: none;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        border: 1px solid #eee;
        
        /* Flex pour aligner icône à gauche du texte */
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .glass-card:hover { transform: none; background: #fff; }

    .glass-card strong { color: #333; margin-bottom: 0; }
    .glass-card p { color: #666; font-size: 0.85rem; }
    
    /* Icône plus grosse à gauche */
    .glass-card .icon { 
        margin-bottom: 0; 
        font-size: 1.8rem;
        min-width: 40px;
        text-align: center;
    }
}

/* --- 5. VIDEO & SPLIT SCREEN --- */
.video-wrapper-vertical video {
    width: 100%; max-width: 320px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: block; margin: 0 auto;
}
.iframe-container {
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
    border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.iframe-container iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* --- 6. ROADMAP MIROIR (CORRIGÉE & NETTOYÉE) --- */

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
    width: 100%;
}

/* La ligne centrale */
.timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background: #eee;
    border-radius: 2px;
    z-index: 0;
}

/* L'Élément (Ligne horizontale) */
.timeline-item {
    display: flex;
    flex-direction: row; /* Force la ligne horizontale */
    justify-content: space-between; /* Ecarte les éléments au max */
    align-items: center; /* Centre verticalement */
    margin-bottom: 5rem;
    position: relative;
    width: 100% !important; /* On force la largeur totale */
    box-sizing: border-box;
}

/* Les Blocs (Texte et Image) */
.timeline-content,
.timeline-image {
    width: 46%; /* On utilise presque toute la moitié dispo */
    position: relative;
    z-index: 1;
}

/* Pour empêcher l'image de s'écraser */
.timeline-image {
    flex-shrink: 0; 
    display: flex;
}

/* --- LOGIQUE D'ALTERNANCE --- */

/* CAS 1 : NORMAL (Texte à GAUCHE | Image à DROITE) */
/* C'est le cas par défaut sans classe reverse */
.timeline-item .timeline-content {
    order: 1; 
    text-align: right; /* Texte collé à la ligne */
    padding-right: 40px;
}
.timeline-item .timeline-dot {
    order: 2; /* Point au milieu */
    position: absolute; left: 50%; transform: translateX(-50%);
}
.timeline-item .timeline-image {
    order: 3;
    justify-content: flex-start; /* Image collée à la ligne */
    padding-left: 40px;
}

/* CAS 2 : INVERSÉ (Image à GAUCHE | Texte à DROITE) */
/* Quand on ajoute la classe 'reverse' */
.timeline-item.reverse .timeline-image {
    order: 1; /* Image passe à gauche */
    justify-content: flex-end; /* Image collée à la ligne */
    padding-left: 0; padding-right: 40px;
}
.timeline-item.reverse .timeline-content {
    order: 3; /* Texte passe à droite */
    text-align: left; /* Texte collé à la ligne */
    padding-right: 0; padding-left: 40px;
}


/* --- DESIGN DES ÉLÉMENTS --- */

.timeline-dot {
    width: 20px; height: 20px;
    background: white; border: 4px solid #ccc;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 5px #fff; /* Halo blanc */
}
.timeline-dot.highlight { border-color: #00D666; background: #00D666; box-shadow: 0 0 0 5px #fff, 0 0 15px rgba(0, 214, 102, 0.5); }
.timeline-dot.future { border-style: dashed; border-color: #333; background: #fff; }

.timeline-content .date {
    display: inline-block; font-size: 0.8rem; font-weight: bold; color: #999; 
    text-transform: uppercase; margin-bottom: 5px; letter-spacing: 1px;
}

/* Image propre qui ne s'écrase pas */
.timeline-image img {
    width: 100%; 
    height: 250px; /* Hauteur fixe pour alignement propre */
    object-fit: cover; /* Remplit le cadre sans déformation */
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: block;
}


/* --- RESPONSIVE MOBILE --- */
@media screen and (max-width: 768px) {
    .timeline::before { left: 20px; transform: none; }
    
    .timeline-item, .timeline-item.reverse {
        flex-direction: column; /* Empile tout verticalement */
        align-items: flex-start;
        margin-bottom: 3rem;
    }
    
    .timeline-dot { left: 20px; transform: translateX(-50%); top: 0; }

    /* On remet l'ordre naturel : Texte puis Image */
    .timeline-item .timeline-content,
    .timeline-item.reverse .timeline-content {
        order: 1; width: 100%; padding: 0 0 0 50px; text-align: left;
    }
    
    .timeline-item .timeline-image,
    .timeline-item.reverse .timeline-image {
        order: 2; width: 100%; padding: 20px 0 0 50px; justify-content: flex-start;
    }
    
    .timeline-image img { height: auto; max-height: 250px; }
}
/* --- 7. RESPONSIVE TWEAKS --- */
@media screen and (max-width: 736px) {
    .testimonial-box { flex-direction: column; text-align: center; }
    .logo-grid { gap: 15px; }
    .logo-grid img { height: 25px; }
    
    /* Sur mobile, on affiche les tooltips sous l'image au lieu du hover */
    .hotspot .tooltip {
        display: none; /* Trop petit pour afficher sur l'image */
    }
    .reverse-on-mobile {
        flex-direction: column-reverse; /* Texte d'abord, image ensuite */
    }
}


/* Optionnel : Si tu trouves que le bloc blanc "As seen in" est trop collé au menu */
#main {
    padding-top: 0 !important; 
    border-top: none !important; /* Enlève la petite ligne grise par défaut si elle gêne */

}

/* Supprime le soulignement pointillé sous les logos */
.logo-grid a {
    border-bottom: none !important;
}

/* Optionnel : Si tu veux aussi réduire l'espace vide au-dessus du titre "AS SEEN IN" */
.logo-section {
    padding-top: 2rem; /* Tu peux réduire ce chiffre si tu veux que ce soit plus compact */
}

/* --- CORRECTIF FINAL FLÈCHE INTRO --- */

/* 1. Le Conteneur (.actions) */
/* On utilise Flexbox pour centrer le bouton horizontalement */
/* On utilise margin-top: auto pour le pousser tout en bas du Hero */
#intro .actions {
    display: flex;
    justify-content: center; /* Centre le bouton horizontalement */
    margin-top: auto;        /* Pousse le bloc vers le bas du conteneur Flex #intro */
    margin-bottom: 6rem;     /* Marge de sécurité du bas */
    margin-left: 0;          /* Annule la marge négative par défaut de Massively */
    padding-left: 0;
    width: 100%;
}

/* 2. Le Bouton (.button) */
/* On force le cercle parfait */
#intro .button.solo {
   
    align-items: center;     /* Centre verticalement */
    justify-content: center; /* Centre horizontalement */
    width: 4rem;
    height: 4rem;
    border-radius: 50%;      /* Rond parfait */
    padding: 0;              /* Pas de padding interne */
    text-indent: 0;          /* Pas de retrait de texte */
}

/* 3. L'Icône (:before) */
/* On s'assure qu'elle ne bouge pas */
#intro .button.solo:before {
    font-size: 1.5rem;
             /* Réinitialise la hauteur de ligne */
    margin: 0;               /* Enlève toute marge parasite */
    position: static;        /* Pas d'absolute, on reste dans le flux flex */
}

/* Force l'affichage des sauts de ligne dans l'intro sur mobile */
@media screen and (max-width: 980px) {
    #intro p br {
        display: inline !important;
    }
}

/* Force le texte en gras à prendre la même couleur que le texte normal autour */
/* (Règle le problème du gris foncé sur les fonds sombres) */
strong, b {
    color: inherit !important;
}

.image.fit {
    display: block;
    margin: 0 auto;
    width: 100%;
}

/* --- STYLE DES BADGES VIDÉO --- */
.video-wrapper-vertical.with-badge {
    position: relative;
}

.video-badge {
    position: absolute;
    top: 15px;
    left: 15px; /* Ou right: 15px selon ta préférence */
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
}

/* Badge "Vieux" (Gris/Orange) */
.video-badge.archive {
    background: rgba(50, 50, 50, 0.8);
    color: #ffd700; /* Jaune/Or vieilli */
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Badge "Nouveau" (Vert/Clean) */
.video-badge.final {
    background: rgba(255, 255, 255, 0.9);
    color: #00D666; /* Vert Portalo */
    border: 1px solid #00D666;
}

.video-caption {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    margin-top: 10px;
    font-style: italic;
}

/* --- STYLE DU BLOC ÉVOLUTION --- */
.evolution-block {
    background: #fdfdfd; /* Fond très léger pour détacher le bloc */
    padding: 3rem 2rem;
    border-radius: 15px;
    border: 1px dashed #ddd; /* Effet "Work in progress" subtil */
    margin: 2rem 0;
    text-align: center;
}

.evolution-block .small-text {
    font-size: 0.9rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Petit effet au survol de l'image des protos */
.box-shadow-hover img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.box-shadow-hover:hover img {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* --- FEATURE CARDS (SECTION SOLUTION) --- */

.feature-card {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 1.8rem;
    margin-right: 20px;
    min-width: 50px; /* Pour aligner verticalement si le texte fait 2 lignes */
    text-align: center;
}

.feature-text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 3px;
    color: #333;
}

.feature-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.3;
}

/* --- SPÉCIAL CARTE MAGNÉTIQUE (AVEC IMAGE DE FOND) --- */
.magnetic-card {
    position: relative;
    /* L'image est définie dans le HTML via style="background-image:..." */
    background-size: cover;
    background-position: center;
    border: none; /* Pas de bordure sur celle-ci */
    overflow: hidden; /* Pour contenir le filtre sombre */
    background-color: #333; /* Fallback si pas d'image */
}

/* Le filtre sombre par dessus l'image */
.magnetic-card .dark-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Ajuste le 0.6 pour plus ou moins sombre */
    z-index: 1;
}

/* Le contenu doit passer au dessus du filtre */
.magnetic-card .feature-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Le texte et l'icône deviennent blancs */
.magnetic-card .feature-icon,
.magnetic-card .feature-text strong,
.magnetic-card .feature-text p {
    color: #fff !important;
}
.magnetic-card .feature-text p {
    opacity: 0.9;
}

/* Petite animation sympa sur l'aimant au survol */
.feature-card:hover .fa-spin-hover {
    animation: fa-spin 2s infinite linear;
}

/* --- APPLE STYLE BLOG TYPOGRAPHY --- */

/* Le titre principal de l'article (H1) */
.post header.major h1 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 700; /* Gras mais pas "Black" */
    letter-spacing: -0.02em; /* Kerning serré moderne */
    text-transform: none; /* Adieu les MAJUSCULES forcées */
    line-height: 1.1;
    color: #111; /* Pas noir pur (#000), trop agressif */
    margin-bottom: 0.5em;
    font-size: 3rem; /* Grand mais fin */
}

/* Le chapeau (Description) */
.post header.major p {
    font-family: "Merriweather", serif; /* Une serif élégante pour l'intro */
    font-weight: 300;
    font-style: italic;
    color: #666;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-top: 0;
}

/* Le corps du texte */
.blog-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 19px; /* Taille de lecture optimale (comme Medium) */
    line-height: 1.6; /* Hauteur de ligne aérée */
    color: #2c2c2c; /* Gris très foncé, plus doux que le noir */
    font-weight: 400; /* Normal */
    max-width: 740px; /* Largeur optimale pour l'œil */
    margin: 0 auto;
}

/* Les intertitres (H2) */
.blog-content h2 {
    font-weight: 600;
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    color: #000;
    border-bottom: none; /* On enlève la ligne, c'est plus clean */
}

/* Les citations */
.blog-content blockquote {
    border-left: 2px solid #00D666;
    padding-left: 20px;
    margin: 2.5rem 0;
    font-size: 1.4rem;
    font-weight: 500;
    color: #111;
    background: transparent; /* Pas de fond gris, juste le texte */
    font-style: normal;
    line-height: 1.4;
}

/* --- DYNAMIC ISLAND 5.0 (No Layout Shift) --- */
.floating-nav {
    position: fixed;
    top: 30px; /* Position fixe */
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 10000;
    
    display: flex;
    align-items: center;
    gap: 30px;
    
    /* ÉTAT SCROLL (Pillule sombre) */
    background: rgba(20, 20, 20, 0.35);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    
    padding: 10px 25px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    
    /* On définit une largeur max stable */
    width: auto; 
    max-width: 95%;

    /* Transition UNIQUEMENT sur l'apparence, pas la position */
    transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease, transform 0.5s ease, opacity 0.5s ease;
}

/* ÉTAT TRANSPARENT (Haut de page) */
.floating-nav.is-transparent {
    background: rgba(0, 0, 0, 0); /* Juste la couleur qui part */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: transparent; /* Bordure disparaît */
    box-shadow: none; /* Ombre disparaît */
    /* ON NE TOUCHE PAS A LA POSITION NI A LA LARGEUR ICI */
}


/* Liens navigation */
.floating-nav a {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #ffffff; /* Blanc pur */
    text-transform: capitalize;
    letter-spacing: 0.5px;
    border: none !important;
    transition: opacity 0.3s ease;
}
.floating-nav a:hover { opacity: 0.7; }

/* Switch Langue */
.nav-lang {
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff !important;
    opacity: 1;
    padding: 0 10px;
    border-left: 1px solid rgba(255,255,255,0.3); /* Séparateur visible */
    line-height: 1;
    display: flex; align-items: center;
    transition: border-color 0.5s ease;
}
/* Quand la barre est transparente, on garde le séparateur discret */
.floating-nav.is-transparent .nav-lang {
    border-left-color: rgba(255,255,255,0.2);
}

.nav-logo { font-size: 1.1rem; display: flex; align-items: center; }

.floating-nav .nav-cta {
    background: #fff;
    color: #000 !important;
    border-radius: 20px;
    padding: 0 20px;
    height: 36px;
    line-height: 36px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- STYLE DU DROPDOWN LANGUE (VERSION "BLEND-IN") --- */

.lang-dropdown {
    position: relative;
    display: inline-flex; /* Aligne bien verticalement */
    align-items: center;
    cursor: pointer;
    margin-left: 0; /* On gère l'espace via le gap du parent */
}

/* Le bouton visible (Drapeau actuel) - MODIFIÉ POUR SE FONDRE */
.current-lang {
    padding: 6px 10px;
    border-radius: 20px; /* Pillule très douce */
    border: none; /* PLUS DE BORDURE */
    background: transparent; /* Fond transparent */
    color: #fff;
    opacity: 0.8;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px; /* Espace entre drapeau et flèche */
}

.current-lang i {
    font-size: 0.7em;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

/* Effet au survol : Légère surbrillance */
.lang-dropdown:hover .current-lang {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

/* Petite animation de la flèche au survol */
.lang-dropdown:hover .current-lang i {
    transform: rotate(180deg); /* La flèche se retourne */
    opacity: 1;
}

/* Le menu caché (La liste déroulante) */
.lang-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 140%; /* Un peu plus bas pour ne pas coller */
    right: -10px; /* Légèrement décalé pour s'aligner */
    min-width: 140px;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* La petite flèche blanche du menu (optionnel mais chic) */
.lang-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px; height: 12px;
    background: white;
    transform: rotate(45deg);
    border-radius: 2px;
}

/* Liens dans le menu */
.lang-menu a {
    color: #333 !important;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    border-radius: 8px;
    opacity: 1; /* Reset de l'opacité du nav */
    text-align: left;
}

.lang-menu a:hover {
    background-color: #f5f5f7; /* Gris très clair Apple */
    color: #000 !important;
}

/* L'AFFICHAGE MAGIQUE */
.lang-dropdown:hover .lang-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
/* --- ESPACEMENT DES LIENS (Desktop) --- */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.8em; /* C'est ICI qu'on règle l'espace entre les mots ! */
}
/* MOBILE FORCE */
@media screen and (max-width: 768px) {
    .floating-nav {
        width: 95%;
        padding: 8px 15px; /* On garde petit sur mobile */
        gap: 8px; /* On garde serré */
        justify-content: space-between;
    }
    
    
    /* Sur mobile, le dropdown doit être plus simple */
    .lang-dropdown { margin-left: 0; }
    .current-lang { padding: 4px; }
    .current-lang i { display: none; /* On cache la flèche sur mobile pour gagner de la place */ }
    
    .lang-menu {
        right: -5px;
        min-width: 110px;
        top: 120%;
    }
}

/* SÉCURITÉ : Cache le vieux menu burger si jamais il ose apparaître */
#navPanelToggle, #navPanel { display: none !important; }


/* --- FOOTER COMPACT & CLEAN --- */

#footer {
    background-color: #1b1f22;
    padding: 3rem 2rem 2rem 2rem; /* Marges réduites */
    color: rgba(255,255,255,0.6);
    position: relative;
    z-index: 10;
}

/* SECTION NEWSLETTER COMPACTÉE */
.footer-newsletter {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem; /* Réduit au minimum */
    margin-bottom: 2rem;
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Titre */
.footer-newsletter h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem; /* Colle le titre au formulaire */
    letter-spacing: 1px;
    line-height: 1.2;
}

/* Wrapper du formulaire */
.form-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* FORCE LE CONTENU VERS LE HAUT */
    overflow: hidden;
    border-radius: 12px;
    background: transparent;
    margin-top: 0; /* Pas de marge haute */
}

/* iframe */
.form-wrapper iframe {
    width: 100%;
    /* On force une marge négative en haut si Brevo ajoute du vide par défaut */
    margin-top: -10px; 
}

/* --- GRILLE FOOTER --- */
.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    gap: 40px;
    text-align: left;
}

.footer-col { flex: 1; min-width: 160px; }
.brand-col { flex: 1.5; padding-right: 20px; }

/* Logo blanc */
.footer-logo {
    max-width: 200px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.tagline {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1rem;
    font-style: italic;
}

/* Titres Colonnes */
.links-col h4 {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border-bottom: none;
}

/* Liens */
.links-col ul { list-style: none; padding: 0; margin: 0; }
.links-col ul li { margin-bottom: 0.5rem; padding: 0; border: none; }
.links-col ul li a {
    color: rgba(255,255,255,0.6);
    border-bottom: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}
.links-col ul li a:hover { color: #00D666; }

/* Icones */
.brand-col .icons { justify-content: flex-start; margin-top: 0.5rem; }
.brand-col .icons li { padding-left: 0; padding-right: 1rem; }

/* Mobile */
@media screen and (max-width: 768px) {
    #footer { padding: 2rem 1.5rem; }
    .footer-grid { flex-direction: column; gap: 30px; text-align: center; }
    .brand-col { padding-right: 0; align-items: center; display: flex; flex-direction: column; }
    .brand-col .icons { justify-content: center; }
}
/* --- BLOG HERO SECTION (En-tête sombre) --- */
#blog-hero {
    color: #fff;
    text-align: center;
    padding: 8rem 2rem 6rem; /* Beaucoup d'espace en haut pour le menu flottant */
    margin-bottom: 0;
    position: relative;
}

/* Le contenu du hero */
#blog-hero .content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out; /* Petite animation d'arrivée */
    
}

#blog-hero .content p{
    text-align:center;
}

/* Le Logo dans le header */
#blog-hero .blog-logo {
    width: 140px; /* Taille idéale */
    height: auto;
    filter: brightness(0) invert(1); /* Force le logo en BLANC pur */
    margin-bottom: 2rem;
    margin-top: 2rem;
    opacity: 0.9;
}

/* Typographie du Hero */
#blog-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: -1px;
}

#blog-hero p {
    font-family: "Merriweather", serif;
    font-size: 1.2rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
    
}

/* Ajustement Mobile */
@media screen and (max-width: 736px) {
    #blog-hero {
        padding: 6rem 1.5rem 4rem;
    }
    #blog-hero h1 { font-size: 2rem; }
    #blog-hero .blog-logo { width: 100px; }
}

/* Petite animation d'apparition simple */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- STYLE JOURNAL / MAGAZINE (Liste propre) --- */

.clean-blog-list {
    display: flex;
    flex-direction: column;
    gap: 3rem; /* Espace entre les articles */
    max-width: 900px;
    margin: 0 auto;
}

/* La Carte Article (Conteneur Flex) */
.blog-card {
    display: flex;
    align-items: center; /* Alignement vertical centré ou flex-start */
    gap: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 3rem;
    background: transparent !important;
    border-top: none !important; /* Enlève les bordures par défaut du thème */
    margin: 0 !important;
}

/* 1. L'Image (Gauche) */
.card-image {
    flex: 0 0 35%; /* Prend 35% de la largeur */
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-bottom: none !important;
}

.card-image img {
    width: 100%;
    height: 220px; /* Hauteur fixe pour uniformité */
    object-fit: cover; /* Recadre l'image proprement */
    display: block;
    transition: transform 0.3s ease;
}

.card-image:hover img {
    transform: scale(1.05); /* Zoom doux au survol */
}

/* 2. Le Texte (Droite) */
.card-content {
    flex: 1; /* Prend le reste de la place */
}

.card-content header h2 {
    font-size: 1.6rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card-content header h2 a {
    color: #222;
    border-bottom: none;
    transition: color 0.2s ease;
}
.card-content header h2 a:hover {
    color: #00D666;
}

.card-content p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Date */
.card-content .date {
    font-size: 0.8rem;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- PAGINATION --- */
.pagination-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 4rem;
}
.pagination-footer .page-number {
    color: #aaa;
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- RESPONSIVE MOBILE --- */
@media screen and (max-width: 768px) {
    .blog-card {
        flex-direction: column; /* On empile image et texte */
        align-items: flex-start;
        gap: 1.5rem;
        padding-bottom: 2rem;
    }
    
    .card-image {
        flex: 0 0 100%; /* Image prend toute la largeur */
        width: 100%;
    }
    
    .card-image img {
        height: 200px; /* Un peu moins haut sur mobile */
    }
    
    .card-content header h2 {
        font-size: 1.4rem;
    }
}

/* --- POST HERO (Header Article) --- */
#post-hero {
    background-color: #1b1f22;
    color: #fff;
    text-align: center;
    padding: 8rem 2rem 4rem; /* Espace pour le menu flottant */
    margin-bottom: 0;
}

#post-hero .content {
    max-width: 800px;
    margin: 0 auto;
}

#post-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
    color: #fff;
    line-height: 1.2;
}

#post-hero .date-hero {
    font-family: "Merriweather", serif;
    font-style: italic;
    color: #9ab5ff; /* Touche de vert Portalo */
    font-size: 0.9rem;
}

/* Intro du Post (Sous-titre) */
#post-hero .intro {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    margin-top: 1rem;
    line-height: 1.6;
    
    /* LE FIX EST ICI : */
    text-align: center !important; /* Force le centrage contre la volonté du thème */
    display: block;                /* Assure que ça prend toute la largeur */
    width: 100%;                   
    margin-left: auto;             
    margin-right: auto;
}

/* On assure aussi que le titre est bien centré */
#post-hero h1 {
    text-align: center !important;
}

/* --- PAGINATION NUMÉROTÉE --- */
.page-numbers {
    display: flex;
    gap: 10px;
    align-items: center;
}

.page-number {
    display: inline-block;
    width: 35px; height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    color: #666;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: none !important;
}

.page-number:hover {
    background: #eee;
    color: #333;
}

.page-number.active {
    background: #1b1f22; /* Noir */
    color: #fff;
    transform: scale(1.1);
}

/* Mobile responsive hero */
@media screen and (max-width: 768px) {
    #post-hero h1 { font-size: 1.8rem; }
    #post-hero { padding-top: 6rem; }
}

/* Style Auteur dans le Hero */
.author-separator {
    opacity: 0.5;
    margin: 0 10px;
}
.author-name {
    font-weight: 700; /* On met Karim en gras */
    color: #fff;
    /* text-transform: uppercase; */
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* --- AJOUTS : PAGE PRODUIT E-COMMERCE --- */

/* 1. Reset du conteneur pour style blanc propre */
.product-window {
    background-color: #ffffff !important;
    padding: 4rem 2rem !important;
    max-width: 1200px !important; /* Plus large que le blog standard */
    margin: 0 auto !important;
    border-radius: 4px;
}

/* 2. Grille Produit (Gauche / Droite) */
.product-grid-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Image un peu plus large */
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: start; /* Aligner en haut */
}

/* 3. Galerie (Gauche) */
.product-gallery-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-gallery-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    border: 1px solid #eee;
}

.thumbnails-row {
    display: flex;
    gap: 10px;
}

.thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
    border: 2px solid transparent;
}
.thumb:hover, .thumb.active {
    opacity: 1;
    border-color: #00D666;
}

/* 4. Infos (Droite) */
.product-info-col {
    text-align: left; /* Force l'alignement gauche style Shopify */
}

.badges-row {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}
.badge-pill {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
}
.badge-pill.green { background: #e6f4ea; color: #1e7e34; }
.badge-pill.yellow { background: #fff3cd; color: #856404; }

.product-heading {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    color: #1b1b1b;
    text-transform: none; /* Annule le style Massively */
}

.price-block {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 1.5rem;
}
.price-current { font-size: 2rem; font-weight: 700; color: #1b1b1b; }
.price-old { font-size: 1.2rem; text-decoration: line-through; color: #999; }
.price-save { color: #d32f2f; font-weight: 700; background: #ffebeb; padding: 2px 8px; border-radius: 4px; font-size: 0.9rem;}

.product-short-desc {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* 5. Buy Box (Capture) */
.buy-box-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 1.5rem;
    border-radius: 12px;
}

/* Barre de stock */
.stock-bar {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}
.stock-progress {
    height: 100%;
    background: #d32f2f; /* Rouge urgence */
    border-radius: 3px;
}
.stock-text {
    font-size: 0.8rem;
    color: #d32f2f;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Réassurance icônes */
.guarantee-lines {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
    font-size: 0.75rem;
    color: #666;
}
.guarantee-lines span { display: flex; align-items: center; gap: 5px; font-weight: 600; }

/* 6. Grille Features simple */
.features-grid-custom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 2rem;
}

/* RESPONSIVE */
@media screen and (max-width: 980px) {
    .product-grid-layout {
        grid-template-columns: 1fr; /* Une seule colonne */
        gap: 2rem;
    }
    .features-grid-custom {
        grid-template-columns: 1fr;
    }
    .guarantee-lines {
        flex-direction: column;
        gap: 10px;
    }
}

.youtube-facade:hover .ytp-large-play-button-bg {
        fill: #f00; /* Le bouton devient rouge au survol comme sur YouTube */
        fill-opacity: 1;
        transition: fill 0.1s cubic-bezier(0.0,0.0,0.2,1);
    }

 /* --- COOKIE BANNER STYLE (DYNAMIC ISLAND STYLE) --- */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column; /* Stack texte et boutons par défaut */
    align-items: center;
    gap: 15px;
    
    background: rgba(20, 20, 20, 0.55); /* Un peu plus sombre pour lisibilité */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    
    padding: 15px 25px;
    border-radius: 30px; /* Plus arrondi pour le texte */
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    width: auto; 
    max-width: 95%;
    color: #fff;
    transition: all 0.5s ease;
}

.cookie-content p {
    margin: 0;
    text-align: center;
    font-weight: 400;
    font-size: 0.75rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 5px;
    margin-bottom:15px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.cookie-actions .button.small {
    height: 2.2rem;
    line-height: 2.2rem;
    padding: 0 1.2rem;
    border-radius: 30px;
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#accept-cookies {
    background: #ffffff !important;
    color: #000 !important;
    font-weight: 700;
}

#decline-cookies {
    background: rgba(255,255,255,0.1);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.2);
}

/* RESPONSIVE : IDENTIQUE À LA NAV */
@media screen and (max-width: 768px) {
    .cookie-banner {
        bottom: 20px;
        padding: 12px 20px;
        gap: 10px;
        width: 90%; /* Prend plus de place sur mobile */
    }
    
    .cookie-content p {
        font-size: 0.7rem;
        margin-bottom: 5px;
    }

    .cookie-actions .button.small {
        padding: 0 1rem;
        height: 2rem;
        line-height: 2rem;
    }
}

.image-caption {
    display: block;
    font-size: 0.8rem; /* Plus petit que le texte normal */
    color: #666; /* Un gris discret */
    font-style: italic;
    margin-top: 8px;
    line-height: 1.2;
    text-align: center; /* Ou left selon ton goût */
}

.card-image-container {
    margin-bottom: 15px; /* Espace avant le contenu de la carte */
}