/* ========================================================= */
/* 1. VARIABLES (Couleurs, Polices, Espacements) */
/* ========================================================= */

:root {
    /* Palette premium */
    --creme: #fff8ef;
    --noir: #000000;
    --vert-profond: #283618;
    --olive: #6C6C38;
    --cuivre: #BC6C25;
    --blanc: #ffffff;

    /* Polices */
    --font-h1: 'Abril Fatface', serif;
    --font-h2: 'Josefin Slab', serif;
    --font-body: 'Roboto Slab', serif;

    /* Layout */
    --section-padding: 100px 20px;
    --container-width: 1100px;
}

/* ========================================================= */
/* 2. RESET + BASE */
/* ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--creme);
    color: var(--noir);
    font-family: var(--font-body);
    line-height: 1.7;
}

/* Containers */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================================= */
/* 3. TYPOGRAPHIE */
/* ========================================================= */

h1 {
    font-family: var(--font-h1);
    font-size: 3rem;
    color: var(--vert-profond);
    margin-bottom: 20px;
}

h2 {
    font-family: var(--font-h2);
    font-size: 2.2rem;
    font-style: italic;
    color: var(--vert-profond);
    margin-bottom: 20px;
}

h3 {
    font-family: var(--font-h2);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--olive);
    margin-bottom: 10px;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: var(--noir);
}

/* --- 2. LE CADRE DU QUIZ --- */
#quiz-container {
    background: var(--blanc);
    border-radius: 15px;
    padding: 20px;
    color: var(--noir);
    text-align: left;
}

/* --- ANIMATION APPARITION QUIZ --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* --- EN-TÊTE DU QUIZ & BOUTON PRÉCÉDENT --- */
.header-quiz {
    position: relative;
    display: flex;
    justify-content: center; /* Centre le titre "Question X" */
    align-items: center;
    margin-bottom: 20px;
}

.header-quiz h2 {
    margin-bottom: 0; /* Annule la marge par défaut pour un alignement parfait */
}

#btn-precedent {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%); /* Centrage vertical par rapport au titre */
    background: none;
    border: none;
    color: #a0a0a0; /* Gris clair discret */
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.3s;
    font-family: var(--font-body);
    padding: 5px;
}

#btn-precedent:hover {
    color: var(--cuivre);
    text-decoration: underline;
}

/* --- BARRE DE PROGRESSION QUIZ --- */
.progress-container {
    width: 100%;
    background-color: #f0f0f0;
    border-radius: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    height: 8px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); /* Donne un léger effet de profondeur */
}

.progress-bar {
    height: 100%;
    background-color: var(--cuivre);
    transition: width 0.5s ease-in-out; /* Animation fluide lors du changement de question */
    border-radius: 10px;
}

/* ========================================================= */
/* 4. HEADER / NAVIGATION */
/* ========================================================= */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: var(--blanc);
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all 0.3s ease;
}

header.header-scrolled {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-bottom-color: transparent;
    padding: 5px 40px;
}

.brand-container {
    display: flex;
    flex-direction: row; /* Aligne le logo à gauche du texte */
    align-items: center; /* Centre verticalement */
    gap: 15px; /* Espace entre le logo et le texte */
    transition: gap 0.3s ease;
}

header.header-scrolled .brand-container {
    gap: 0;
}

.brand-text {
    display: flex;
    flex-direction: row; /* Met Save et Humaine sur la même ligne */
    align-items: baseline; /* Aligne le bas des lettres visuellement */
    gap: 10px; /* Espace entre les deux mots */
}

.logo-image {
    height: 3.5rem; /* Ajuste la hauteur pour correspondre à celle du texte */
    width: auto;
    max-width: 150px;
    opacity: 1;
    overflow: hidden; /* Empêche tout débordement pendant la transition */
    transform: scale(1);
    transform-origin: left center;
    transition: all 0.3s ease;
}

header.header-scrolled .logo-image {
    height: 0 !important;
    width: 0 !important;
    max-width: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: scale(0) !important;
}

.logo-save {
    font-family: var(--font-h1);
    font-size: 2.5rem;
    color: black;
    line-height: normal; /* Remis à la normale puisqu'ils sont sur la même ligne */
    transition: font-size 0.3s ease;
}

header.header-scrolled .logo-save {
    font-size: 1.5rem;
}

.logo-humaine {
    font-family: var(--font-h1);
    font-size: 2.5rem;
    color: black;
    line-height: normal; /* Remis à la normale puisqu'ils sont sur la même ligne */
    margin-left: 0; /* L'espacement est maintenant géré par le "gap" au dessus */
    transition: font-size 0.3s ease;
}

header.header-scrolled .logo-humaine {
    font-size: 1.5rem;
}

.brand-link {
    text-decoration: none; /* Enlève le soulignement du logo cliquable */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: block !important;
    min-height: 2rem;
}

header nav {
    display: flex;
    gap: 30px;
}

header nav a {
    text-decoration: none;
    font-weight: 500;
    color: var(--noir);
    transition: 0.3s;
}

header nav a:hover {
    color: var(--cuivre);
}

/* Menu burger caché sur PC */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1000;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--vert-profond);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ========================================================= */
/* 5. SECTIONS */
/* ========================================================= */

.section {
    padding: var(--section-padding);
}

.section-alt {
    padding: var(--section-padding);
    background: var(--blanc);
}

/* ========================================================= */
/* 6. HERO PREMIUM */
/* ========================================================= */

.section-hero {
    position: relative;
    height: 80vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligne le contenu à gauche */
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(85%);
    filter: brightness(70%); /* Image légèrement plus sombre pour un contraste parfait */
    z-index: 1;
    /*transition: background-image 0.5s ease-in-out;  */
    background-image: url('../img/hero.png');
    
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(40, 54, 24, 0.4),
        rgba(188, 108, 37, 0.4)
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: left; /* Aligne le texte à gauche */
    max-width: 600px;
    max-width: 800px; /* Élargi pour éviter que le grand titre ne soit scindé */
    padding: 20px;
    margin-left: 10%; /* Décolle le texte du bord gauche */
}

.hero-content h1 {
    color: var(--blanc);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px; /* Écarte les lettres du grand titre */
}

.hero-subtitle {
    font-family: var(--font-h2);
    font-style: italic;
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--blanc);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    letter-spacing: 1px; /* Écarte légèrement les lettres du sous-titre */
}

/* --- STYLES DES BOUTONS REPONSES DU QUIZ --- */
.btn-reponse {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    background: var(--creme);
    border: 2px solid var(--olive);
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    text-align: left;
    line-height: 1.5;
    white-space: normal; /* Force le texte trop long à revenir à la ligne */
    height: auto;
    transition: 0.3s;
}
.btn-reponse:hover {
    background: var(--olive);
    color: var(--blanc);
}
/* ========================================================= */
/* 7. BOUTONS */
/* ========================================================= */

.btn-primary {
    display: inline-block;
    padding: 14px 35px;
    background: var(--vert-profond);
    color: var(--blanc);
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary:hover {
    background: var(--cuivre);
}

.btn-link {
    color: var(--cuivre);
    font-weight: bold;
    text-decoration: none;
}

.btn-link:hover {
    color: var(--vert-profond);
}

/* ========================================================= */
/* 7.5. LES 4 CASES MÉTRIQUES (GLASSMORPHISM & OVERLAP) */
/* ========================================================= */

.stats-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -80px; /* Effet Overlapping en remontant sur le Hero */
    padding: 0 20px;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.7); /* Fond blanc semi-transparent */
    backdrop-filter: blur(12px); /* Effet Glassmorphism (Flou) */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5); /* Bordure blanche subtile */
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: var(--noir);
    border-bottom: 4px solid var(--olive);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.stat-link:hover {
    border-color: var(--cuivre);
}

.stat-number, .stat-icon {
    font-family: var(--font-h1);
    font-size: 2.5rem;
    color: var(--vert-profond);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--olive);
}

/* ========================================================= */
/* 8. ACTUALITÉS */
/* ========================================================= */

.actus-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.card-large {
    background: var(--blanc);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.card-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 25px;
}

.tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--cuivre);
    font-weight: bold;
}

/* ========================================================= */
/* 9. PROFILS */
/* ========================================================= */

.profils-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes pour lire confortablement le texte */
    gap: 30px;
}

.profil-card {
    background: var(--blanc);
    border-radius: 20px; /* Plus arrondi pour coller au nouveau style */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); /* Ombre plus douce */
    border: 1px solid rgba(0,0,0,0.05);
    text-align: left;
    display: flex;
    flex-direction: row; /* L'image passe à gauche, le texte à droite */
    align-items: stretch;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.profil-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-color: var(--olive);
}

.profil-img {
    width: 220px; /* Largeur fixe */
    flex-shrink: 0; /* Empêche l'image de s'écraser */
    background-size: cover;
    background-position: center;
}

.profil-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre le texte verticalement */
}

.profil-content h3 {
    margin-top: 0;
    color: var(--vert-profond);
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.profil-subtitle {
    color: var(--cuivre);
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 15px;
}

.profil-text {
    font-size: 0.95rem;
    color: var(--noir);
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1; /* Pousse les détails vers le bas pour que les cartes aient la même hauteur */
}

.profil-details {
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ========================================================= */
/* 9.5. LABORATOIRE DES ALLIANCES */
/* ========================================================= */

.synergy-lab {
    background: var(--creme); 
    padding: 60px 40px; 
    margin: 80px auto 0;
    border-radius: 30px; 
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    border: 1px solid rgba(188, 108, 37, 0.15); 
    max-width: 1100px;
}

.synergy-selects { 
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 20px; 
    margin: 30px 0; 
    flex-wrap: wrap; 
}

.synergy-selects select { 
    appearance: none;
    -webkit-appearance: none;
    padding: 15px 25px; 
    padding-right: 50px; /* Espace pour la flèche personnalisée */
    border-radius: 50px; 
    border: 2px solid rgba(108, 108, 56, 0.3); 
    font-family: var(--font-body); 
    font-weight: bold; 
    color: var(--vert-profond); 
    background-color: white; 
    /* Remplacement par une jolie flèche couleur olive */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236C6C38'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 24px;
    outline: none;
    cursor: pointer; 
    transition: 0.3s; 
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.synergy-selects select:hover, .synergy-selects select:focus {
    border-color: var(--olive);
    box-shadow: 0 8px 20px rgba(108, 108, 56, 0.1);
}

.synergy-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--blanc);
    border: 2px solid var(--cuivre);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--cuivre);
    box-shadow: 0 5px 15px rgba(188, 108, 37, 0.1);
}

#synergy-result {
    max-width: 800px;
    margin: 30px auto 0;
    padding: 30px;
    background: var(--blanc);
    border-radius: 20px;
    min-height: 120px;
    transition: all 0.5s ease;
    border: 1px dashed rgba(0,0,0,0.15); /* Look pointillé avant résultat */
    box-shadow: none;
    font-style: italic; 
    color: #888;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#synergy-result.active {
    border: 2px solid var(--olive);
    box-shadow: 0 15px 40px rgba(108, 108, 56, 0.12);
    font-style: normal;
}

/* ========================================================= */
/* 9.75. FLUX THERMODYNAMIQUE (Index Premium) */
/* ========================================================= */

.flux-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.flux-card {
    background: var(--blanc);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    border-top: 6px solid #ccc;
    cursor: pointer; /* Indique à l'utilisateur que c'est interactif */
}

.flux-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.flux-card.pression { border-top-color: var(--cuivre); }
.flux-card.mouvement { border-top-color: var(--vert-profond); }
.flux-card.regulation { border-top-color: var(--olive); }

.flux-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1;
}

.flux-card h3 {
    font-family: var(--font-h2);
    color: var(--vert-profond);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-style: italic;
}

.flux-tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--creme);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--cuivre);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.flux-profiles {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--olive);
    margin-bottom: 0; /* On retire la marge par défaut pour compacter la carte */
    transition: margin-bottom 0.4s ease;
}

/* On rajoute la marge uniquement quand on survole la carte */
.flux-card:hover .flux-profiles {
    margin-bottom: 20px;
}

.flux-text {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
    color: var(--noir);
    max-height: 0; /* Le texte est écrasé à 0 pixel de hauteur */
    opacity: 0; /* Le texte est invisible */
    overflow: hidden; /* Empêche le texte de déborder */
    transition: max-height 0.5s ease, opacity 0.5s ease; /* Animation fluide */
}

/* Au survol de la carte, le texte se déploie et apparaît */
.flux-card:hover .flux-text {
    max-height: 400px; /* On autorise le texte à prendre de la place */
    opacity: 1;
}

.flux-text strong {
    color: var(--vert-profond);
    font-size: 1rem;
}

/* ========================================================= */
/* 9.80. RÉALISATION, RAYONNEMENT & MAINTENANCE */
/* ========================================================= */

.poles-container, .ray-container {
    display: flex;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pole-box, .ray-box {
    flex: 1;
    min-width: min(100%, 320px);
    background: var(--blanc);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pole-box:hover, .ray-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.pole-box { border-top: 6px solid; }
.pole-box.vision { border-top-color: var(--vert-profond); }
.pole-box.execution { border-top-color: var(--cuivre); }

.ray-box { border-left: 8px solid; }
.ray-box.externe { border-left-color: var(--cuivre); }
.ray-box.interne { border-left-color: var(--vert-profond); }

.pole-header, .ray-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.pole-number {
    font-family: var(--font-h1);
    font-size: 2rem;
    color: #e0e0e0;
    line-height: 1;
}

.ray-icon { font-size: 2rem; }

.pole-box h3, .ray-box h3 {
    font-family: var(--font-h2);
    margin: 0;
    font-size: 1.6rem;
    color: var(--vert-profond);
    font-style: italic;
}

.pole-subtitle, .ray-subtitle {
    font-weight: bold;
    color: var(--olive);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.pole-desc, .ray-desc {
    font-style: italic;
    color: #666;
    margin-bottom: 25px;
}

.ray-profiles {
    color: var(--cuivre);
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.pole-list, .ray-list { list-style: none; padding: 0; }
.pole-list li, .ray-list li { margin-bottom: 15px; padding-left: 20px; position: relative; font-size: 0.95rem; }
.pole-list li::before, .ray-list li::before { content: "•"; position: absolute; left: 0; color: var(--olive); font-weight: bold; }

.pole-list li.danger, .ray-list li.danger {
    background: #fff5f5;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #ff7675;
    margin-top: 20px;
}
.pole-list li.danger::before, .ray-list li.danger::before { content: ""; }

/* --- MAINTENANCE --- */
.maintenance-box {
    margin: 60px 0;
    padding: 50px;
    background: var(--blanc);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}

.maintenance-box h3 { font-family: var(--font-h2); font-size: 2rem; color: var(--vert-profond); margin-bottom: 20px; font-style: italic; }
.maintenance-grid { display: flex; gap: 30px; margin: 40px 0; flex-wrap: wrap; }
.m-item { flex: 1; min-width: min(100%, 280px); background: var(--creme); padding: 30px; border-radius: 15px; font-size: 1rem; line-height: 1.6; border-left: 5px solid var(--olive); text-align: left; }
.m-item strong { color: var(--vert-profond); }
.maintenance-conclusion { border-top: 1px solid #eee; padding-top: 30px; text-align: left; font-size: 1.05rem; line-height: 1.8; }
.maintenance-conclusion strong { color: var(--cuivre); }

/* ========================================================= */
/* 10. MANIFESTE */
/* ========================================================= */

.manifeste {
    background: var(--blanc);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.signature {
    margin-top: 30px;
    font-family: var(--font-h1);
    color: var(--vert-profond);
    text-align: right;
}

/* ========================================================= */
/* 11. CONTACT */
/* ========================================================= */

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

label {
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
    font-family: var(--font-h2);
    font-style: italic;
}

input, textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: #fcfcfc;
    transition: 0.3s;
}

input:focus, textarea:focus {
    border-color: var(--vert-profond);
    outline: none;
}

/* ========================================================= */
/* 12. FOOTER */
/* ========================================================= */

.footer-premium {
    background-color: var(--vert-profond);
    color: var(--creme);
    padding: 60px 20px 20px;
    margin-top: 80px;
    font-family: var(--font-body);
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-logo {
    height: 6rem;
    width: auto;
    filter: invert(1); /* Inverse les couleurs : logo blanc, fond noir */
    mix-blend-mode: screen; /* Rend le fond noir 100% transparent ! */
}

.footer-brand .logo-text {
    font-family: var(--font-h1);
    font-size: 2.2rem;
    color: var(--creme);
    margin-bottom: 0;
}

.footer-brand p {
    color: #d1d5db; /* Vert-gris très clair */
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-title {
    font-family: var(--font-h2);
    font-size: 1.5rem;
    color: var(--cuivre);
    margin-bottom: 20px;
    font-style: italic;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--cuivre);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #9ca3af;
    font-size: 0.85rem;
}

/* ========================================================= */
/* 13. PAGE ARTICLES (Filtres & Grille) */
/* ========================================================= */

.articles-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.articles-sidebar {
    flex: 0 0 260px;
    position: sticky;
    top: 100px; /* Reste visible au scroll, sous le header */
    z-index: 10;
}

.articles-main {
    flex: 1;
    min-width: 0;
}

.filter-group {
    display: flex;
    flex-direction: column; /* Liste verticale */
    gap: 10px;
    background: var(--blanc);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
}

.chip { position: relative; cursor: pointer; user-select: none; display: block; }
.chip input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }

.checkmark {
    display: block;
    text-align: center;
    padding: 12px 20px;
    border: 2px solid rgba(108, 108, 56, 0.3);
    border-radius: 12px; /* Angles un peu plus carrés pour une colonne */
    color: var(--olive);
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    background: var(--blanc);
}

.chip input:checked ~ .checkmark {
    background-color: var(--vert-profond);
    color: var(--blanc);
    border-color: var(--vert-profond);
    box-shadow: 0 5px 15px rgba(40, 54, 24, 0.2);
}

.chip:hover .checkmark {
    border-color: var(--olive);
}

.clear-filters {
    margin-top: 20px;
    background: none;
    border: none;
    color: var(--cuivre);
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.95rem;
    transition: 0.3s;
}

.clear-filters:hover {
    color: var(--vert-profond);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.article-card {
    background: var(--blanc);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--noir);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.article-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.article-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--cuivre);
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.article-card h3 {
    font-family: var(--font-h2);
    color: var(--vert-profond);
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    font-style: italic;
}

.article-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.article-link {
    color: var(--vert-profond);
    font-weight: bold;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.article-card:hover .article-link {
    color: var(--cuivre);
}

.article-card.hidden { display: none; }

/* ========================================================= */
/* 13. RESPONSIVE */
/* ========================================================= */

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
    }

    .articles-layout {
        flex-direction: column;
    }

    .articles-sidebar {
        flex: none;
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }

    .filter-group {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .checkmark {
        border-radius: 50px; /* Redevient une "pilule" sur mobile */
    }

    .actus-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        margin-left: 5%; /* Laisse moins d'espace sur tablette/mobile */
        max-width: 90%;
    }

    .stats-wrapper {
        margin-top: -40px; /* Réduit l'overlap sur petit écran */
    }

    .profils-grid {
        grid-template-columns: 1fr; /* 1 seule colonne sur tablette/mobile */
    }

    .synergy-selects {
        flex-direction: column;
        align-items: stretch;
    }

    .flux-grid {
        grid-template-columns: 1fr;
    }

    .synergy-selects select {
        width: 100%;
    }

    h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }

    .section, .section-alt {
        padding: 60px 20px; /* Moins d'espace vide sur mobile */
    }

    .stats-grid {
        grid-template-columns: 1fr; /* 1 seule colonne sur mobile */
    }

    #quiz-wrapper {
        padding: 20px !important; /* Réduit le padding interne du quiz */
    }

    .brand-link {
        position: static;
        transform: none;
        order: 1; /* Place le logo à gauche */
    }

    .profil-card {
        flex-direction: column; /* Sur mobile, l'image repasse au-dessus */
    }
    
    .profil-img {
        width: 100%;
        height: 200px;
    }

    .profils-grid {
        grid-template-columns: 1fr;
    }

    header {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        gap: 0;
    }

    .burger-menu {
        display: flex;
        order: 2; /* Place le bouton burger à droite */
    }

    header nav {
        display: none; /* Caché par défaut */
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding-top: 15px;
        text-align: center;
        order: 3; /* Les liens descendent sous le logo/burger */
    }

    header.menu-open nav {
        display: flex; /* S'affiche quand le menu est ouvert */
    }

    header nav a {
        margin: 0;
        padding: 12px;
        background: #f9f9f9; /* Donne un effet de gros bouton tactile */
        border-radius: 8px;
        display: inline-block;
    }

    /* --- Animation de la croix du Menu Burger --- */
    .burger-menu.open span:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }
    .burger-menu.open span:nth-child(2) {
        opacity: 0; /* La barre du milieu disparaît */
    }
    .burger-menu.open span:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }

    .maintenance-box {
        padding: 30px 20px; /* Gain d'espace pour l'encadré de texte */
    }
}

/* ========================================================= */
/* 14. STYLES SUR-MESURE POUR LES ARTICLES WORDPRESS */
/* ========================================================= */

/* -- A. Réparation des colonnes natives WordPress -- */
.reader-body .wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
}
.reader-body .wp-block-column {
    flex: 1;
    min-width: 180px; /* Réduit pour forcer 3 colonnes sur PC */
}

/* -- B. La boîte dégradée pour les 3 lois (Classe: sh-boite-loi) -- */
.reader-body .sh-boite-loi {
    background: linear-gradient(to bottom, var(--creme), var(--blanc));
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(188, 108, 37, 0.1); /* Subtile bordure cuivrée */
}
.reader-body .sh-boite-loi h2,
.reader-body .sh-boite-loi h3 {
    margin-top: 0; /* Évite les décalages inesthétiques en haut de la boîte */
}

/* -- C. Les colonnes "Pistes concrètes" (Classe: sh-piste) -- */
.reader-body .sh-piste {
    background: var(--blanc);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid var(--olive);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    height: 100%;
    box-sizing: border-box;
}

/* -- D. Les cartes "Personnes Inspirantes" (Classe: sh-inspirant) -- */
.reader-body .sh-inspirant {
    background: var(--blanc);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

/* WP ajoute souvent une balise <figure> autour des images */
.reader-body .sh-inspirant figure {
    margin: 0 0 20px 0;
    display: flex;
    justify-content: center;
}

/* Style automatique de l'image dans la carte inspirante */
.reader-body .sh-inspirant img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%; /* Image ronde pour les personnes, très élégant ! */
    margin: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.reader-body .sh-inspirant p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
}

/* -- E. Boîtes d'action (Quiz & Alliance) -- */
/* Conteneur pour forcer l'affichage côte à côte */
.reader-body .sh-boites-duo {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}
@media (max-width: 768px) {
    .reader-body .sh-boites-duo {
        grid-template-columns: 1fr;
    }
}

.reader-body .sh-cta-quiz,
.reader-body .sh-cta-alliance {
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}
.reader-body .sh-cta-quiz:hover,
.reader-body .sh-cta-alliance:hover {
    transform: translateY(-5px);
}

/* Design Boîte Quiz (Sombre) */
.reader-body .sh-cta-quiz {
    background: var(--vert-profond);
    color: var(--blanc);
}
.reader-body .sh-cta-quiz h2,
.reader-body .sh-cta-quiz h3 {
    color: var(--creme);
    margin-top: 0;
    border-bottom: none; /* Enlève la ligne s'il y en avait une */
}
.reader-body .sh-cta-quiz p {
    color: #e0e0e0;
}
.reader-body .sh-cta-quiz .wp-block-button__link {
    background: var(--cuivre) !important;
    color: var(--blanc) !important;
}

/* Design Boîte Alliance (Claire) */
.reader-body .sh-cta-alliance {
    background: var(--creme);
    border: 2px solid var(--cuivre);
}
.reader-body .sh-cta-alliance h2,
.reader-body .sh-cta-alliance h3 {
    color: var(--cuivre);
    margin-top: 0;
}
.reader-body .sh-cta-alliance .wp-block-button__link {
    background: var(--vert-profond) !important;
    color: var(--blanc) !important;
}

/* Boutons communs aux deux boîtes */
.reader-body .sh-cta-quiz .wp-block-button__link,
.reader-body .sh-cta-alliance .wp-block-button__link {
    border-radius: 30px !important;
    text-decoration: none;
    padding: 12px 25px;
    font-family: var(--font-body);
    font-weight: bold;
    margin-top: auto; /* Pousse le bouton toujours tout en bas de la boîte */
    transition: opacity 0.3s;
}
.reader-body .sh-cta-quiz .wp-block-button__link:hover,
.reader-body .sh-cta-alliance .wp-block-button__link:hover {
    opacity: 0.8;
}
