:root {
    /* === BACKGROUNDS (LIGHT THEME) === */
    --bg-primary:       #FAF8F5;   /* Crème clair — fond principal */
    --bg-secondary:     #F2EFE9;   /* Crème soutenu — sections alternées */
    --bg-card:          #FFFFFF;   /* Cartes blanches */
    --bg-deep:          #EAE5DA;   /* Sections contrastées */

    /* === OR & ACCENT === */
    --gold-primary:     #C9A84C;
    --gold-light:       #E8C56D;
    --gold-dark:        #8B6914;
    --gold-glow:        rgba(201, 168, 76, 0.3);

    /* === TEXTES (BLEU NAVY POUR THEME CLAIR) === */
    --text-primary:     #0A1628;   /* Bleu navy très foncé (remplace le blanc) */
    --text-secondary:   #3A4B66;   /* Bleu-gris pour les paragraphes */
    --text-muted:       #7A8B9E;   /* Gris-bleu doux pour les labels */

    /* === GLASSMORPHISME (LIGHT) === */
    --glass-bg:         rgba(255, 255, 255, 0.65);
    --glass-bg-strong:  rgba(255, 255, 255, 0.95);
    --glass-border:     rgba(10, 22, 40, 0.06);
    --glass-blur:       blur(16px);

    /* === DÉGRADÉS === */
    --grad-gold:        linear-gradient(135deg, #C9A84C 0%, #E8C56D 50%, #C9A84C 100%);
    --grad-text:        linear-gradient(90deg, #C9A84C, #E8C56D, #C9A84C);

    /* === EFFETS === */
    --shadow-card:      0 8px 32px rgba(10, 22, 40, 0.05);
    --shadow-gold:      0 0 30px rgba(201, 168, 76, 0.20);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Exo 2', sans-serif;
    overflow-x: hidden;
}

/* TYPOGRAPHY COMPONENTS */
.text-display {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.02em;
}
.text-hero-sub {
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(0.85rem, 1.2vw, 1.1rem);
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold-dark);
}
.text-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 1.1;
}
.text-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-weight: 600;
}
.text-body {
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-secondary);
}
.text-label {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold-primary);
}

/* GLASSMORPHISM */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    background: var(--glass-bg-strong);
    border-color: rgba(201, 168, 76, 0.40);
    box-shadow: var(--shadow-gold), 0 12px 40px rgba(10, 22, 40, 0.08);
    transform: translateY(-5px);
}

.navbar-glass {
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(10, 22, 40, 0.05);
    transition: all 0.3s ease;
}

/* BUTTONS */
.btn-primary {
    background: var(--grad-gold);
    color: #050A14;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover {
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.4);
    transform: translateY(-2px);
    color: #050A14;
}

.btn-secondary {
    background: transparent;
    color: var(--gold-dark);
    border: 1px solid var(--gold-primary);
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-secondary:hover {
    background: rgba(201, 168, 76, 0.10);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.15);
    transform: translateY(-2px);
    color: var(--gold-dark);
}

.btn-text {
    color: var(--gold-dark);
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}
.btn-text:hover { gap: 0.9rem; color: var(--gold-primary); }
.btn-text i { transition: transform 0.3s ease; }
.btn-text:hover i { transform: translateX(4px); }

/* SPECIAL EFFECTS */
.text-gold-gradient {
    background: var(--grad-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

.photo-glow {
    position: relative;
}
.photo-glow::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center, rgba(201,168,76,0.3) 0%, transparent 60%);
    border-radius: 50%;
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}

.gold-divider {
    width: 60px;
    height: 2px;
    background: var(--grad-gold);
    margin: 1.5rem auto;
    border-radius: 2px;
    position: relative;
}
.gold-divider.left { margin-left: 0; margin-right: auto; }
.gold-divider::before, .gold-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--gold-dark);
    border-radius: 50%;
}
.gold-divider::before { left: -8px; }
.gold-divider::after { right: -8px; }

.section-noise {
    position: relative;
}
.section-noise::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.3; /* Plus subtil en mode clair */
}

/* HERO PHOTO FRAME — coins décoratifs */
.hero-frame {
    position: absolute;
    inset: -14px;
    z-index: 2;
    pointer-events: none;
    border-radius: 22px;
}
.frame-corner {
    position: absolute;
    width: 36px;
    height: 36px;
    border-color: var(--gold-primary);
    border-style: solid;
    opacity: 0.9;
}
.frame-tl { top: 0; left: 0; border-width: 2px 0 0 2px; border-top-left-radius: 8px; }
.frame-tr { top: 0; right: 0; border-width: 2px 2px 0 0; border-top-right-radius: 8px; }
.frame-bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; border-bottom-left-radius: 8px; }
.frame-br { bottom: 0; right: 0; border-width: 0 2px 2px 0; border-bottom-right-radius: 8px; }

/* Anneau décoratif externe */
.hero-ring {
    position: absolute;
    inset: -28px;
    border: 1px dashed rgba(201, 168, 76, 0.2);
    border-radius: 28px;
    pointer-events: none;
    z-index: 1;
}

/* STAT CARDS — cartes flottantes premium */
.stat-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(201, 168, 76, 0.28);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(10, 22, 40, 0.10), 0 0 0 1px rgba(201, 168, 76, 0.08);
    padding: 0.6rem 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 95px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}
.stat-card:hover {
    border-color: rgba(201, 168, 76, 0.55);
    box-shadow: 0 16px 48px rgba(10, 22, 40, 0.12), 0 0 24px rgba(201, 168, 76, 0.18);
    transform: translateY(-6px) scale(1.04) !important;
}
.stat-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(232,197,109,0.28));
    border: 1px solid rgba(201, 168, 76, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--gold-primary);
}
.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    background: var(--grad-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
    margin-bottom: 0.2rem;
}
.stat-label {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ANIMATIONS KEYFRAMES */
@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}
@keyframes loaderPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.02); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}
.animate-float-slow   { animation: float 6s ease-in-out infinite; }
.animate-float-medium { animation: float 7s ease-in-out infinite reverse; }
.animate-float-fast   { animation: float 5s ease-in-out infinite; }

/* CUSTOM PARTICLES CONTAINER */
#particles-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* LOADER */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}
.loader-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 6rem;
    font-weight: 700;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: loaderPulse 1.2s ease-in-out infinite;
}

/* =============================================
   NAVY + GOLD — MARIAGE CHROMATIQUE
   ============================================= */

/* 1. Badge label navy/gold — overlines de section */
.label-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--navy-800, #0A1628);
    color: var(--gold-light, #E8C56D);
    font-family: 'Exo 2', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    border: 1px solid rgba(201, 168, 76, 0.25);
    margin-bottom: 1rem;
}
.label-badge::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold-primary);
    flex-shrink: 0;
}

/* 2. Accent barre navy + point gold sous les titres */
.title-accent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.2rem auto 0;
    width: fit-content;
}
.title-accent.left { margin-left: 0; }
.title-accent-bar {
    width: 48px;
    height: 2px;
    background: #0A1628;
    border-radius: 2px;
}
.title-accent-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-primary);
    flex-shrink: 0;
}
.title-accent-bar-short {
    width: 20px;
    height: 2px;
    background: rgba(201, 168, 76, 0.5);
    border-radius: 2px;
}

/* 3. Section Impact — fond navy foncé */
.section-navy {
    background: linear-gradient(135deg, #050A14 0%, #0A1628 60%, #0D1F3C 100%);
    position: relative;
}
.section-navy::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.08) 0%, transparent 65%);
    pointer-events: none;
}
.section-navy .text-navy-900,
.section-navy .text-navy-800,
.section-navy .text-navy-700 {
    color: #F2EFE9 !important;
}
.section-navy .text-text-muted,
.section-navy [class*="text-muted"] {
    color: rgba(201, 168, 76, 0.55) !important;
}
.section-navy .border-navy-900\/10 {
    border-color: rgba(255,255,255,0.07) !important;
}

/* Counter box navy */
.counter-box {
    border-right: 1px solid rgba(255,255,255,0.07);
    position: relative;
}
.counter-box:last-child { border-right: none; }
.counter-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--gold-primary);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s;
}
.counter-box:hover::after { opacity: 1; }

/* 4. Glass card — bordure navy au hover */
.glass-card {
    border-left: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-left-color 0.3s ease;
}
.glass-card:hover {
    border-left-color: #0A1628;
}

/* =============================================
   HARMONISATION TYPOGRAPHIQUE GLOBALE
   ============================================= */

/* Paragraphes de section */
section p.text-body,
section p.text-sm,
section .text-body {
    font-size: clamp(0.92rem, 1.1vw, 1rem);
    line-height: 1.85;
}

/* Cards description text */
.glass-card p,
article p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

/* Labels / overlines */
.text-label,
[class*="tracking-widest"][class*="uppercase"][class*="text-xs"],
[class*="tracking-widest"][class*="uppercase"][class*="text-sm"] {
    font-size: 0.72rem;
    letter-spacing: 0.38em;
}

/* Blockquote hero identity */
blockquote p {
    font-size: clamp(1.7rem, 3.5vw, 3.2rem) !important;
    line-height: 1.25;
}

/* Footer liens */
footer a, footer p, footer li, footer address {
    font-size: 0.875rem;
    line-height: 1.7;
}

/* Navbar links */
nav a[href] {
    font-size: 0.78rem;
}

/* Section counters label */
section .text-lg {
    font-size: 1rem;
    font-weight: 600;
}
section .text-sm.text-text-muted,
section .text-sm[class*="text-muted"] {
    font-size: 0.8rem;
}

/* =============================================
   PAGES SECONDAIRES — HARMONISATION
   ============================================= */

/* Titres h3 dans les cards (reason, testi, news, way) */
.reason-card h3,
.testi-card .font-display,
.news-featured h3,
.news-card h3,
.way-card h3,
.speech-card p.font-display,
.igf-quote p.font-display {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem) !important;
    line-height: 1.4;
}

/* Citations italiques dans toutes les cards */
section p.font-display.italic,
section div.font-display.italic {
    font-size: clamp(0.98rem, 1.4vw, 1.1rem) !important;
    line-height: 1.65;
}

/* Titres h3 generiques dans les pages secondaires */
section h3.font-display.text-xl,
section h3.font-display.text-2xl {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    font-weight: 700;
    line-height: 1.3;
}

/* Surcharge text-xl dans les sections (hors elements decoratifs) */
section p.font-display.text-xl,
section p.font-display.italic.text-xl {
    font-size: clamp(0.98rem, 1.4vw, 1.1rem) !important;
}
