/*
Theme Name: ConnectHeart
Description: Thème WordPress premium pour site de rencontres de niche. Design moderne et élégant avec animations fluides.
Author: ConnectHeart Team
Version: 1.0.0
License: GPL v2 or later
Text Domain: connectheart
*/

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B6B;
    --primary-hover: #ff5252;
    --accent-color: #F7EFE5;
    --text-dark: #222;
    --text-gray: #666;
    --text-light: #888;
    --bg-light: #F9F9F9;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Règle générale pour la mise en couleur des mots */
.highlight {
    color: var(--primary-color);
}

/* Utilitaires */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    /* MODIFIÉ : Transition plus douce et spécifique */
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background-color 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    position: relative; /* Nécessaire pour le pseudo-élément */
    overflow: hidden;   /* Cache la brillance quand elle est en dehors */
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    /* MODIFIÉ : Effet de survol plus prononcé */
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: var(--shadow);
    transition-duration: 0.1s; /* Le clic doit être rapide et réactif */
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* --- Effet de brillance au survol --- */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%; /* Commence bien à gauche, caché */
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary:hover::after {
    left: 150%; /* Fait traverser la brillance sur toute la largeur */
}


/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* CORRECTION : Le header est la couche n°2 */
    z-index: 1000; 
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    padding: 1.5rem 0;
    color: var(--white);
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    color: var(--text-dark);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header-left, .header-right {
    flex: 1;
}

.header-right {
    display: flex;
    justify-content: flex-end;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.site-logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: inherit;
    text-decoration: none;
    font-family: var(--font-heading);
    transition: color 0.3s ease;
}

.site-logo img {
    max-height: 40px;
    width: auto;
}

/* Menu Desktop */
.main-nav { /* J'ai ajouté cette règle pour la clarté */
    display: flex;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Menu Mobile */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
}

.mobile-nav-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    /* CORRECTION : Le panneau est la couche n°1 (en dessous du header) */
    z-index: 999; 
    padding: 6rem 2rem 2rem;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    visibility: hidden;
}

.mobile-nav-panel.is-open {
    transform: translateX(0);
    visibility: visible;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav ul li {
    margin-bottom: 1.5rem;
}

.mobile-nav a {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
}

/* --- Style du bouton Hamburger/Croix --- */
.mobile-menu-toggle {
    position: relative; /* Nécessaire pour que z-index fonctionne */
    width: 24px;
    height: 24px;
    /* CORRECTION : Le bouton est la couche n°3 (TOUT EN HAUT) */
    z-index: 1001; 
}

.mobile-menu-toggle .icon-open,
.mobile-menu-toggle .icon-close {
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-toggle .icon-close {
    opacity: 0;
    transform: rotate(-90deg);
}

/* Quand le menu est ouvert */
.mobile-menu-toggle.is-active .icon-open {
    opacity: 0;
    transform: rotate(90deg);
}

.mobile-menu-toggle.is-active .icon-close {
    opacity: 1;
    transform: rotate(0);
    color: var(--text-dark);
}

/* --- NOUVEAU : Style pour le contenu du panneau mobile (Aligné à gauche) --- */
.mobile-nav-panel {
    display: flex;
    flex-direction: column;
    /* On retire le text-align: center; d'ici */
}

.mobile-nav {
    flex-grow: 1; /* Pousse le footer vers le bas */
    overflow-y: auto; /* Permet de scroller si le menu est très long */
}

.mobile-nav ul {
    /* On revient à une disposition verticale classique */
    display: block;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav ul li {
    margin-bottom: 1.5rem;
}

.mobile-nav a {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
}

.mobile-panel-footer {
    padding: 2rem 0; /* On ajuste le padding */
    margin-top: 2rem; /* Espace entre le menu et le footer */
    border-top: 1px solid #e5e5e5; /* Séparateur visuel */
    flex-shrink: 0;
}

.mobile-panel-cta {
    margin-bottom: 2rem;
}

.mobile-panel-cta .btn {
    /* On s'assure que le bouton prend toute la largeur */
    display: block;
    text-align: center;
    width: 100%;
}

.mobile-panel-socials {
    display: flex;
    justify-content: center; /* On centre les icônes entre elles */
    gap: 1.5rem;
}

.mobile-panel-socials a {
    color: var(--text-gray);
    transition: var(--transition);
}

.mobile-panel-socials a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Styles responsives pour le header */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
}

/* --- Style du bouton Profil --- */
.btn-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;  /* Taille standard pour une bonne zone de clic */
    height: 44px;
    border-radius: 50%; /* Pour le rendre parfaitement rond */
    background-color: transparent;
    
    /* État initial (sur le Héro) */
    border: 2px solid var(--white);
    color: var(--white); /* La couleur de l'icône SVG */
    
    transition: all 0.3s ease;
}

.btn-profile:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* LA PARTIE IMPORTANTE : Style quand le header est scrollé */
.site-header.scrolled .btn-profile {
    border-color: var(--text-dark);
    color: var(--text-dark);
}

/* On s'assure que le survol reste le même même en scrollant */
.site-header.scrolled .btn-profile:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Hero Section */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* NOUVEAU : Styles pour l'image de fond */
    background-size: cover;
    background-position: center top;
    background-color: #4a4a4a; /* Couleur de secours */
    color: #fff;
    padding-top: 100px; /* Ajustez cette valeur si besoin */
    box-sizing: border-box;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* MODIFIÉ : Overlay plus simple et sombre */
    background-color: rgba(40, 40, 40, 0.4);
    z-index: 1; /* Changé de -1 à 1 */
}

/* Assurez-vous que le contenu est au-dessus de l'overlay */
.hero-section .container {
    position: relative;
    z-index: 2;
}

/* NOUVEAU : Style pour la vidéo de fond */
.hero-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: 100%;
    z-index: -1; /* Place la vidéo derrière tout le reste */
    object-fit: cover; /* Assure que la vidéo couvre tout l'espace sans se déformer */
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-text .highlight {
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* --- STYLES AMÉLIORÉS POUR LE MOCKUP TÉLÉPHONE (Version épurée) --- */
.hero-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    animation: float-light 6s ease-in-out infinite;
}

@keyframes float-light {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.dynamic-screen {
    width: 300px;
    height: 620px;
    border-radius: 40px;
    overflow: hidden;
    background-color: #1a1a1a; /* Fond de secours si l'image ne charge pas */
    box-shadow: var(--shadow-xl);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-mockup:hover .dynamic-screen {
    transform: rotateY(0) rotateX(0) scale(1.02);
}

.phone-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    position: relative;
}

.phone-header {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
}

.pagination-dots {
    display: flex;
    gap: 4px;
    background: rgba(0,0,0,0.3);
    padding: 4px 8px;
    border-radius: 20px;
}
.pagination-dots span {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
}
.pagination-dots span:first-child {
    background: var(--white);
}

.profile-badge {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e040fb; /* Violet */
}
.profile-badge svg {
    width: 24px;
    height: 24px;
}

.phone-footer {
    margin-top: auto; /* Pousse le contenu en bas */
    padding: 1.5rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 20%, rgba(0,0,0,0) 100%);
    color: var(--white);
    z-index: 2;
}

.profile-main-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.profile-name {
    font-size: 1.75rem;
    font-weight: 700;
}
.profile-status {
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.status-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71; /* Vert */
    border-radius: 50%;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.profile-tags .tag {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.profile-tags .tag svg {
    width: 14px;
    height: 14px;
}

.profile-actions {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 1rem;
}
.action-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: #666;
}
.action-btn:hover {
    transform: scale(1.1);
}
.action-btn.is-large {
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.action-btn.dislike { color: #666; }
.action-btn.like { color: var(--primary-color); }
.action-btn.info {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
}
.action-btn svg {
    width: 28px;
    height: 28px;
}
.action-btn.is-large svg {
    width: 32px;
    height: 32px;
}
.action-btn.info svg {
    width: 24px;
    height: 24px;
}

/* --- Badges des App Stores --- */
.app-store-badges {
    margin-top: 1.5rem; /* Espace entre le bouton et les badges */
    display: flex;
    justify-content: center; /* Centre les badges sous le bouton si le texte du héro est centré */
    align-items: center;
    gap: 1rem; /* Espace entre les deux badges */
    flex-wrap: wrap; /* Permet aux badges de passer à la ligne sur mobile */
}

.app-store-badges a {
    display: inline-block;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.app-store-badges a:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.app-store-badges img {
    /* TAILLE : C'est ici que vous contrôlez la taille */
    height: 40px; /* Hauteur standard pour ces badges. Ajustez si besoin. */
    width: auto; /* La largeur s'ajustera automatiquement pour garder les proportions */
    display: block; /* Évite les espaces indésirables sous l'image */
}

/* Si le texte du héro n'est pas centré, vous pouvez forcer l'alignement à gauche */
@media (min-width: 769px) {
    .hero-text {
        text-align: left;
    }
    .app-store-badges {
        justify-content: flex-start; /* Aligne les badges à gauche sur desktop */
    }
}

/* 1. Définition de l'animation "pulse" */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-lg);
    }
    50% {
        transform: scale(1.03);
        box-shadow: var(--shadow-xl);
    }
}

/* 2. Application de l'animation au bouton du Héro */

.hero-text .btn-primary {
    /* On augmente la taille de la police et le padding */
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    font-weight: 700; /* On le rend un peu plus gras */
    letter-spacing: 0.5px; /* Un peu plus d'espace entre les lettres pour un look premium */
    animation: pulse 2.5s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

/* 3. On s'assure que l'effet de survol prend le dessus sur l'animation */
.hero-text .btn-primary:hover {
    animation-play-state: paused; /* Met l'animation en pause au survol */
    transform: translateY(-4px) scale(1.1); /* On le fait grossir un peu plus au survol */
}

/* --- Style de l'animation des mots du Héro --- */
.highlight-container {
    display: inline-block;
    position: relative;
    vertical-align: bottom;
    min-width: 50px;
    transition: width 0.3s ease;
    /* Par défaut, le texte est aligné à gauche sur desktop */
    text-align: left;
}

.highlight-container span {
    color: var(--primary-color);
    position: absolute;
    left: 0; /* Alignement à gauche par défaut */
    top: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.highlight-container span.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================== */
/* CORRECTION : Styles spécifiques pour les mobiles */
/* ================================================== */
@media (max-width: 768px) {
    .highlight-container {
        /* On centre le conteneur lui-même par rapport au texte qui le précède */
        text-align: center;
    }

    .highlight-container span {
        /* On centre chaque mot à l'intérieur du conteneur */
        left: 50%;
        transform: translate(-50%, 20px); /* Position initiale centrée et en bas */
    }

    .highlight-container span.is-visible {
        /* Position finale centrée et à sa place */
        transform: translate(-50%, 0);
    }
}

/* Social Proof */
.social-proof {
    background: var(--white);
    padding: 3rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.social-proof-content {
    text-align: center;
}

.social-proof h3 {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.media-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.media-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    transition: var(--transition);
    cursor: pointer;
}

.media-logo:hover {
    color: var(--primary-color);
}/* Social Proof */
.social-proof {
    background: var(--white);
    padding: 3rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.social-proof-content {
    text-align: center;
}

.social-proof h3 {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.media-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3.5rem;
    flex-wrap: wrap;
}

.media-logo img {
    max-height: 35px; /* Contrôle la hauteur maximale des logos */
    width: auto;
    filter: grayscale(100%); /* Effet sobre en noir et blanc */
    opacity: 0.6;
    transition: var(--transition);
}

.media-logo a:hover img {
    filter: grayscale(0%); /* Affiche les couleurs au survol */
    opacity: 1;
    transform: scale(1.1);
}

/* Counters */
.counters-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

/* APRÈS */
.counter-item {
    background: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e5e5;
    transition: var(--transition);
    /* Par défaut (avec .no-js), c'est visible et il n'y a pas de transition */
    opacity: 1;
    transform: translateY(0);
}

/* On cache l'élément SEULEMENT si le JS est activé, pour préparer l'animation */
.js .counter-item {
    opacity: 0;
    transform: translateY(30px);
}

.counter-item:hover {
    /* On s'assure que le hover fonctionne bien avec la nouvelle logique */
    transform: translateY(-10px) !important; /* !important pour outrepasser le transform initial */
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

/* L'état final de l'animation reste le même */
.js .counter-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.counter-value {
    display: flex;
    justify-content: center;
    align-items: baseline;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

/* NOUVEAU : Style pour le préfixe (+) */
.counter-prefix {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-right: 0.25rem; /* Espace à droite du préfixe */
}

/* MODIFIÉ : Le suffixe (%) garde le même style mais avec un espace à gauche */
.counter-suffix {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-left: 0.25rem; /* Espace à gauche du suffixe */
}

.counter-label {
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* Features */
.features-section {
    padding: 5rem 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Members Showcase */
.members-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.members-carousel {
    position: relative;
    /* CORRECTION N°1 : On ajoute overflow:hidden ici pour cacher les cartes qui dépassent. */
    overflow: hidden;
}

.members-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease;
    padding: 1rem 0;
}

.member-card {
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    min-width: 280px;
    transition: var(--transition);
    overflow: hidden;
    padding: 0;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.member-image-wrapper {
    position: relative;
}

.member-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    margin-bottom: 0;
    border-radius: 0;
}

.member-info {
    padding: 1.5rem;
}

.member-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.member-age {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.member-status {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.member-status::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: #2ecc71;
    border-radius: 50%;
}

.member-verification {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.member-verification svg {
    color: var(--primary-color);
}

.member-verification-placeholder {
    height: 24px;
}

.carousel-nav {
    position: absolute;
    top: 140px;
    transform: translateY(-50%);
    background: var(--white);
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    color: var(--text-dark);
}

.carousel-nav:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-50%) scale(1.1);
}

/* CORRECTION N°2 : On positionne les flèches À L'INTÉRIEUR du carrousel. */
.carousel-prev { 
    left: 1rem; 
}
.carousel-next { 
    right: 1rem; 
}


/* --- Testimonials Section --- */
.testimonials-section {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.testimonials-section .section-header {
    margin-bottom: 3rem;
}

.testimonials-section .section-header h2 {
    color: var(--white);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden; /* Garde la "fenêtre" qui cache les autres slides */
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-slide {
    /* LA CORRECTION EST ICI. C'est la manière la plus robuste de le faire. */
    flex: 0 0 100%; /* Raccourci pour : flex-grow: 0, flex-shrink: 0, flex-basis: 100% */
    
    box-sizing: border-box;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.author-details {
    text-align: left;
}

.author-details cite {
    font-weight: 700;
    font-style: normal;
    display: block;
}

.author-details span {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Style des flèches de navigation */
.testimonial-slider .slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.testimonial-slider .slider-nav:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.testimonial-slider .slider-nav.prev {
    /* CORRECTION : On place la flèche à l'intérieur */
    left: 1rem;
}

.testimonial-slider .slider-nav.next {
    /* CORRECTION : On place la flèche à l'intérieur */
    right: 1rem;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 6rem 0;
    background: var(--white); /* Fond clair pour contraster */
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid #e5e5e5;
}

.faq-item {
    border-bottom: 1px solid #e5e5e5;
}

.faq-question {
    /* Reset du style de bouton */
    background: none;
    border: none;
    width: 100%;
    padding: 1.5rem 0;
    text-align: left;
    cursor: pointer;

    /* Layout */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-question span {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.faq-icon {
    color: var(--primary-color);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0; /* Empêche l'icône de rétrécir */
}

.faq-answer {
    /* La magie de l'accordéon */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* Style de l'état "ouvert" */
.faq-item.active .faq-question span {
    color: var(--primary-color);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    /* Valeur assez grande pour contenir n'importe quelle réponse */
    max-height: 500px; 
}

/* Final CTA */
.final-cta {
    padding: 6rem 0;
    background-color: var(--accent-color);
    text-align: center;
}

.final-cta h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.final-cta h2 .highlight {
    color: var(--primary-color);
}

.final-cta p {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-with-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    /* CORRECTION : On ajoute de l'espace à droite pour le badge */
    padding-right: 5.5rem; 
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-badge {
    position: absolute;
    top: 50%;
    /* CORRECTION : On positionne le badge dans le nouvel espace */
    right: 1.25rem; 
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    color: var(--white);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.final-cta .cta-note {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 1.5rem;
    letter-spacing: 0.5px;
}

/* Footer */
.site-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 2rem;
    text-align: center;
    color: #ccc;
}

/* --- Style du logo dans le Footer --- */
.footer-branding .footer-logo {
    margin-bottom: 1.5rem;
}

/* Style pour le logo (image PNG/JPG ou SVG) */
.footer-logo .custom-logo-link img,
.footer-logo .custom-logo-link svg {
    max-height: 40px; /* Ajustez la taille si besoin */
    width: auto;
}

/* LA PARTIE IMPORTANTE : Force le logo SVG à être blanc */
.footer-logo .custom-logo-link svg path {
    fill: var(--white);
}

/* Style pour le texte de secours (nom du site) si aucun logo n'est téléversé */
.footer-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--white);
    text-decoration: none;
}

/* Staggered Content */
.staggered-section {
    padding: 5rem 0;
    background: var(--white);
}

.staggered-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.staggered-block:last-child {
    margin-bottom: 0;
}

.staggered-block.reverse {
    direction: rtl;
}

.staggered-block.reverse > * {
    direction: ltr;
}

.staggered-image {
    position: relative;
}

.staggered-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.staggered-badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
}

.staggered-text h3 {
    margin-bottom: 1.5rem;
}

.staggered-text p {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.feature-list .check-icon {
    color: var(--primary-color);
    flex-shrink: 0;
}

.section-cta {
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .main-nav {
        display: none;
    }
    
    .staggered-block {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .staggered-block.reverse {
        direction: ltr;
    }
    
    .counters-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Sticky CTA Bar --- */
.sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
    z-index: 998; /* Juste en dessous du header */

    /* Caché par défaut, apparaît au scroll */
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    visibility: hidden;
}

.sticky-cta-bar.is-visible {
    transform: translateY(0);
    visibility: visible;
}

.sticky-cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sticky-cta-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-dark);
}

/* --- Style pour les deux logos PNG --- */
.site-logo img {
    max-height: 40px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo-dark {
    display: none; /* Le logo sombre est caché par défaut */
}

.site-header.scrolled .logo-light {
    display: none; /* On cache le logo clair au scroll */
}

.site-header.scrolled .logo-dark {
    display: block; /* On affiche le logo sombre au scroll */
}

/* --- Styles pour les Templates de Contenu (Single, Page, Archive) --- */

/* Layout Principal */
.main-content-area {
    display: flex;
    gap: 3rem;
    padding-top: 120px; /* Espace pour le header sticky */
    padding-bottom: 4rem;
}

.site-main {
    flex: 2; /* Le contenu principal prend 2/3 de l'espace */
    min-width: 0; /* Correction pour flexbox */
}

.sidebar-cta {
    flex: 1; /* La sidebar prend 1/3 de l'espace */
    position: sticky;
    top: 120px; /* Colle la sidebar sous le header */
}

/* Style des Articles (single.php) */
.entry-header {
    margin-bottom: 2rem;
}
.entry-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}
.entry-category a {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}
.entry-reading-time {
    font-size: 0.8rem;
    color: var(--text-gray);
    align-self: center;
}
.entry-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-color);
}
.entry-author-meta {
    color: var(--text-gray);
    font-size: 0.9rem;
}
.entry-thumbnail {
    margin-bottom: 2rem;
    border-radius: 1.5rem;
    overflow: hidden;
}
.entry-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}
.entry-content h2, .entry-content h3 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-top: 2.5rem;
}
.entry-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* --- Style des images dans le contenu --- */
.entry-content img {
    border-radius: 1.5rem; /* Utilise le même radius que les autres cartes */
    max-width: 100%; /* S'assure que les images ne dépassent pas */
    height: auto; /* Garde les proportions */
    margin: 2rem 0; /* Ajoute de l'espace vertical */
}

/* --- Style de la Sidebar CTA (Version finale) --- */
.sidebar-cta-widget {
    background: var(--white);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.widget-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.widget-title .highlight {
    color: var(--primary-color);
}

.cta-form .form-group {
    margin-bottom: 1rem;
}

.cta-form label {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.cta-form select,
.cta-form input[type="text"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    border: 1px solid #e0e0e0;
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-form select:focus,
.cta-form input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.cta-form select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23666666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

.btn-full-width {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--primary-color);
}

.btn-full-width:hover {
    background-color: var(--primary-hover);
}

.sidebar-image {
    border-radius: 1.5rem;
    overflow: hidden;
}

.sidebar-image img {
    width: 100%;
    display: block;
}

/* Responsive pour les templates de contenu */
@media (max-width: 992px) {
    .main-content-area {
        flex-direction: column;
    }
    .sidebar-cta {
        position: static; /* La sidebar n'est plus sticky */
    }
}

/* --- Content Hero Section (Single, Page, Archive) --- */
.content-hero {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 120px 0 4rem 0; /* Espace en haut pour le header + en bas */
}

.content-hero-inner {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-text-content {
    flex: 1;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Forme décorative derrière l'image */
.hero-image-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 1.5rem;
    transform: rotate(-5deg);
    z-index: 1;
}

.hero-image-wrapper img {
    position: relative;
    z-index: 2;
    border-radius: 1.5rem;
    width: 100%;
    height: auto;
    max-width: 450px;
    box-shadow: var(--shadow-xl);
}

/* Styles du texte dans le hero */
.content-hero .entry-title,
.content-hero .page-title {
    color: var(--white); /* Titre en blanc */
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.content-hero .entry-meta {
    color: rgba(255, 255, 255, 0.8);
}

.content-hero .entry-category a {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.content-hero .entry-author-meta {
    color: rgba(255, 255, 255, 0.6);
}

/* On retire le padding-top du contenu principal qui suit */
.main-content-area {
    padding-top: 4rem;
}

/* --- Blog Promo Section --- */
.blog-promo-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.blog-promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-promo-card {
    display: block;
    position: relative;
    min-height: 450px;
    border-radius: 1.5rem;
    overflow: hidden;
    padding: 2rem;
    color: var(--white);
    text-decoration: none;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-promo-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-xl);
}

.promo-card-overlay {
    position: absolute;
    inset: 0; /* Raccourci pour top: 0; right: 0; bottom: 0; left: 0; */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.blog-promo-card:hover .promo-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
}

.promo-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.promo-card-content h3 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 0.5rem;
    color: var(--white);
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.promo-card-content p {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* --- MODIFIÉ : Liens des réseaux sociaux dans le Footer --- */
.footer-socials {
    margin-top: 1.5rem;
}

.footer-social-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
    color: var(--white);
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-social-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-social-links svg {
    width: 24px;
    height: 24px;
}

/* --- Archive & Category Pages --- */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden; /* Très important pour les coins arrondis de l'image */
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.post-card-image-wrapper {
    display: block;
    height: 200px; /* Hauteur fixe pour des cartes uniformes */
}

.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assure que l'image remplit l'espace sans se déformer */
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image {
    transform: scale(1.05);
}

.post-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Permet au contenu de prendre l'espace restant */
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
}

.post-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.post-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    line-height: 1.3;
}

/* CORRECTION : Style du lien du titre (plus de bleu !) */
.post-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card-title a:hover {
    color: var(--primary-color);
}

.post-card-date {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    margin-top: auto; /* Pousse la date vers le bas avant le bouton */
    padding-top: 1rem;
}

.btn-read-more {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.post-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1; /* Pousse la date et le bouton vers le bas */
}

.post-card-date {
    margin-top: 0; /* On annule le margin-top: auto précédent */
    padding-top: 0; /* On annule le padding-top précédent */
}

/* Responsive pour le Content Hero */
@media (max-width: 992px) {
    .content-hero-inner {
        flex-direction: column-reverse; /* L'image passe au-dessus du texte */
    }
    .hero-text-content {
        text-align: center;
    }
    .content-hero .entry-meta,
    .content-hero .entry-author-meta {
        justify-content: center;
    }
}

/* Cacher le texte sur les petits écrans */
@media (max-width: 768px) {
    .sticky-cta-text {
        display: none;
    }
    .sticky-cta-content {
        justify-content: center;
    }
}

/* --- AJOUT : Adaptation du Hero sur mobile (Option 2: Recommandée) --- */
@media (max-width: 768px) {
    .hero-section {
        /* On s'assure que l'image est bien centrée verticalement et horizontalement */
        background-position: center center; 
        
        /* On réduit la hauteur pour un meilleur aperçu et moins de scroll */
        padding-top: 80px;
        padding-bottom: 4rem;
        min-height: 80vh; /* Occupe 80% de la hauteur de l'écran */
    }

    .hero-content {
        /* On s'assure que le contenu ne prend pas toute la hauteur pour bien voir l'image */
        align-items: center; 
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* APRÈS */
.animate-on-scroll {
    /* Par défaut (avec .no-js), c'est visible */
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

/* On cache l'élément SEULEMENT si le JS est activé, pour préparer l'animation */
.js .animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

/* L'état final de l'animation reste le même */
.js .animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================== */
/* --- Style des Citations (Blockquotes) --- */
/* ================================================== */

.entry-content blockquote {
    margin: 2.5rem 0; /* Espace vertical avant et après la citation */
    padding: 2rem; /* Espace intérieur généreux */
    
    /* L'élément de design principal : la bordure gauche */
    border-left: 5px solid var(--primary-color);
    
    /* Fond et forme, cohérents avec le reste du thème */
    background-color: var(--accent-color);
    border-radius: 1rem; /* Mêmes coins arrondis que les autres cartes */
    box-shadow: var(--shadow);

    /* Style du texte de la citation */
    font-family: var(--font-heading); /* On utilise la police des titres */
    font-size: 1.3rem; /* Un peu plus grand que le texte normal */
    font-style: italic;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Gère les paragraphes à l'intérieur de la citation */
.entry-content blockquote p {
    margin-bottom: 1rem;
}

/* Très important : supprime la marge du dernier paragraphe pour un espacement parfait */
.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Style pour l'auteur de la citation (la balise <cite>) */
.entry-content blockquote cite {
    display: block; /* Pour qu'il prenne toute la largeur */
    margin-top: 1.5rem; /* Espace entre la citation et l'auteur */
    font-family: var(--font-body); /* On revient à la police du corps de texte */
    font-size: 0.9rem;
    font-style: normal; /* On annule l'italique par défaut de <cite> */
    font-weight: 600;
    color: var(--text-gray);
    text-align: right; /* Aligne l'auteur à droite */
}

/* Ajoute un tiret élégant avant le nom de l'auteur */
.entry-content blockquote cite::before {
    content: '— ';
}

/* --- NOUVEAU : Style du Sommaire Dynamique --- */
.toc-container {
    background: var(--accent-color);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.toc-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

.toc-toggle {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    padding: 0.3rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.toc-toggle:hover {
    background: var(--primary-color);
    color: var(--white);
}

.toc-list {
    list-style: decimal;
    padding-left: 20px;
    margin-top: 1rem;
    
    /* Caché par défaut */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.toc-container.is-open .toc-list {
    max-height: 1000px; /* Assez grand pour contenir le sommaire */
    opacity: 1;
    visibility: visible;
}

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-list a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
}

.toc-list a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Style pour les sous-éléments (h3) */
.toc-list ul {
    list-style: disc; /* Affiche des puces rondes */
    margin-top: 0.75rem;
    padding-left: 20px;
}


/* --- Améliorations du carrousel des membres pour le tactile --- */

/* Style du curseur pour indiquer qu'on peut "attraper" le carrousel */
.members-track {
    cursor: grab;
}

.members-track.is-grabbing {
    cursor: grabbing;
}

/* On cache les flèches sur les appareils tactiles / petits écrans */
@media (max-width: 992px) {
    .members-carousel .carousel-nav {
        display: none;
    }
}