:root {
    /* Palette nature : vert forêt + brun chaud */
    --forest: #2f5d4e;
    --forest-dark: #1e3d33;
    --forest-light: #e9f1ec;
    --brown: #8a5a3c;
    --brown-dark: #6d4529;
    --white: #ffffff;
    --gray-50: #f7f6f2;
    --gray-100: #eeece5;
    --gray-200: #e0ddd3;
    --gray-300: #c9c5b8;
    --gray-400: #9a978c;
    --gray-500: #6f6c62;
    --gray-600: #55534b;
    --gray-700: #3a3934;
    --gray-800: #26251f;
    --gray-900: #14140f;
    --primary: var(--forest);
    --primary-dark: var(--forest-dark);
    --primary-light: var(--forest-light);
    --accent: var(--brown);
    --text: var(--gray-800);
    --border: var(--gray-200);
    --nav-height: 72px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s var(--ease);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --white: #14170f;
    --gray-50: #1d211a;
    --gray-100: #2b3128;
    --gray-200: #3d4438;
    --gray-300: #5a6152;
    --gray-400: #8c9384;
    --gray-500: #b6bcae;
    --gray-600: #d6dace;
    --gray-700: #e9ece3;
    --gray-800: #f4f6ef;
    --gray-900: #ffffff;
    --primary: #6ba58c;
    --primary-dark: #4e8770;
    --primary-light: rgba(107, 165, 140, 0.16);
    --accent: #c69063;
    --text: #e9ece3;
    --border: #3d4438;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Plus Jakarta Sans', -apple-system, sans-serif; background: var(--white); color: var(--text); line-height: 1.6; min-height: 100vh; overflow-x: hidden; transition: background 0.3s ease, color 0.3s ease; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

.navbar { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); z-index: 1000; transition: var(--transition); }
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.08); }
.nav-container { max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); white-space: nowrap; }
.nav-logo span { color: var(--primary); }
.nav-menu { display: flex; align-items: center; gap: 0.1rem; }
.nav-link { font-size: 0.85rem; font-weight: 500; color: var(--gray-600); padding: 0.55rem 0.7rem; border-radius: 8px; white-space: nowrap; transition: var(--transition); }
.nav-link:hover { color: var(--primary); background: var(--primary-light); }
.nav-link.active { color: var(--white); background: var(--primary); font-weight: 600; }
.nav-lang { display: flex; gap: 0.25rem; margin-left: 1rem; padding-left: 1rem; border-left: 1px solid var(--border); }
.lang-btn { font-family: inherit; font-size: 0.8rem; font-weight: 600; padding: 0.4rem 0.7rem; border: 1px solid var(--border); background: transparent; color: var(--gray-500); border-radius: 6px; cursor: pointer; transition: var(--transition); }
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-btn.active { background: var(--primary); border-color: var(--primary); color: white; }

/* Nav Buttons - FR, EN, Theme */
.nav-buttons { display: flex; gap: 0.25rem; margin-left: 0.5rem; padding-left: 0.6rem; border-left: 1px solid var(--border); }
.nav-btn { 
    font-family: inherit; 
    font-size: 0.8rem; 
    font-weight: 600; 
    width: 40px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border); 
    background: transparent; 
    color: var(--gray-500); 
    border-radius: 6px; 
    cursor: pointer; 
    transition: var(--transition); 
}
.nav-btn:hover { border-color: var(--primary); color: var(--primary); }
.nav-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.nav-btn svg { width: 14px; height: 14px; }

/* Theme Toggle - Single button */
.theme-btn .icon-light { display: none; }
.theme-btn .icon-dark { display: flex; }

/* Dark mode: show sun, hide moon */
[data-theme="dark"] .theme-btn .icon-light { display: flex; }
[data-theme="dark"] .theme-btn .icon-dark { display: none; }
[data-theme="dark"] .theme-btn { background: var(--primary); border-color: var(--primary); color: white; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 1100px) {
    .nav-toggle { display: flex; }
    .nav-menu { position: fixed; top: var(--nav-height); left: 0; right: 0; background: var(--white); flex-direction: column; padding: 1.5rem; gap: 0.5rem; border-bottom: 1px solid var(--border); transform: translateY(-100%); opacity: 0; pointer-events: none; transition: var(--transition); }
    .nav-menu.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-lang { margin-left: 0; padding-left: 0; border-left: none; margin-top: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--border); justify-content: center; }
}

.hero { min-height: auto; padding: calc(var(--nav-height) + 4rem) 2rem 4rem; display: flex; align-items: center; background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 50%, var(--primary-light) 100%); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 80%; height: 150%; background: radial-gradient(circle, rgba(47,93,78,0.06) 0%, transparent 70%); pointer-events: none; }
.hero-container { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 400px; gap: 5rem; align-items: center; position: relative; z-index: 1; }
.hero-content { max-width: 600px; }
.hero-tag { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--primary); background: var(--primary-light); padding: 0.5rem 1rem; border-radius: 50px; margin-bottom: 1.5rem; }
.hero-tag svg { width: 16px; height: 16px; }
.hero-title { font-size: 3.5rem; font-weight: 800; color: var(--gray-900); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.25rem; font-weight: 500; color: var(--primary); margin-bottom: 1.5rem; }
.hero-description { font-size: 1.1rem; color: var(--gray-600); line-height: 1.8; margin-bottom: 2.5rem; }
.hero-line { margin: 0 0 0.4rem 0; }
.hero-line:last-child { margin-bottom: 0; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-family: inherit; font-size: 0.95rem; font-weight: 600; padding: 0.9rem 1.75rem; border-radius: 10px; border: none; cursor: pointer; transition: var(--transition); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(47,93,78,0.3); }
.btn-secondary { background: white; color: var(--gray-700); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.hero-image { position: relative; }
.hero-image img { width: 100%; height: 500px; object-fit: cover; border-radius: 20px; box-shadow: 0 25px 60px rgba(0,0,0,0.15); }
.hero-image::before { content: ''; position: absolute; top: -20px; left: -20px; right: 20px; bottom: 20px; border: 3px solid var(--primary); border-radius: 20px; opacity: 0.3; z-index: -1; }

@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero-image { max-width: 350px; margin: 0 auto; order: -1; }
    .hero-title { font-size: 2.5rem; }
}

.page-header { padding: calc(var(--nav-height) + 4rem) 2rem 4rem; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; text-align: center; }
.page-header h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.page-header p { font-size: 1.1rem; opacity: 0.9; }

.section { padding: 5rem 2rem; overflow-x: clip; }
.section-alt { background: var(--gray-50); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-size: 2rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.75rem; }
.section-header p { font-size: 1.05rem; color: var(--gray-500); }
.container { max-width: 1280px; margin: 0 auto; }
.container-sm { max-width: 900px; margin: 0 auto; }

.card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 2rem; transition: var(--transition); }
.card:hover { border-color: var(--primary); box-shadow: 0 15px 40px rgba(0,0,0,0.08); transform: translateY(-4px); }
.card-icon { width: 50px; height: 50px; background: var(--primary-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.card-icon svg { width: 24px; height: 24px; color: var(--primary); }
.card h3 { font-size: 1.15rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; color: var(--gray-500); line-height: 1.7; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--primary), var(--gray-300)); }
.timeline-category { margin-bottom: 3rem; }
.timeline-category h3 { display: flex; align-items: center; gap: 0.75rem; font-size: 1.25rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1.5rem; padding-left: 1rem; }
.timeline-category h3 svg { width: 24px; height: 24px; color: var(--primary); }
.timeline-item { position: relative; background: white; border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem 1.5rem; margin-bottom: 1rem; margin-left: 1.5rem; transition: var(--transition); }
.timeline-item::before { content: ''; position: absolute; left: -2.15rem; top: 1.25rem; width: 10px; height: 10px; background: var(--primary); border-radius: 50%; border: 3px solid white; box-shadow: 0 0 0 2px var(--primary); }
.timeline-item:hover { border-color: var(--primary); transform: translateX(8px); }
.timeline-item h4 { font-size: 1rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.25rem; }
.timeline-item p { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 0.25rem; }
.timeline-item .org { font-size: 0.9rem; font-weight: 500; color: var(--primary); margin-bottom: 0.25rem; }
.timeline-item .date { font-size: 0.85rem; color: var(--gray-400); }
.timeline-date { font-size: 0.85rem; color: var(--gray-400); font-weight: 500; display: block; margin-top: 0.5rem; }
.timeline-icon { position: absolute; left: -3rem; top: 1rem; width: 36px; height: 36px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.timeline-icon svg { width: 18px; height: 18px; color: white; }
.timeline-content { padding-left: 0.5rem; }

.pub-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; transition: var(--transition); position: relative; overflow: hidden; }
.pub-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--primary); transform: scaleY(0); transition: var(--transition); }
.pub-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.pub-card:hover::before { transform: scaleY(1); }
.pub-badge { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.7rem; font-weight: 700; padding: 0.3rem 0.65rem; background: var(--primary-light); color: var(--primary); border-radius: 4px; text-transform: uppercase; margin-bottom: 0.75rem; }
.pub-badge svg { width: 12px; height: 12px; }
.pub-badge.book { background: rgba(0,128,0,0.1); color: #0a6c0a; }
.pub-badge.chapter { background: rgba(200,16,46,0.1); color: var(--accent); }
.pub-year { font-size: 0.8rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.pub-card h4 { font-size: 1rem; font-weight: 600; color: var(--gray-900); line-height: 1.4; margin-bottom: 0.5rem; }
.pub-authors { font-size: 0.85rem; color: var(--gray-400); margin-bottom: 0.25rem; }
.pub-journal { font-size: 0.85rem; color: var(--gray-500); font-style: italic; }

.tabs { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.tab-btn { font-family: inherit; font-size: 0.9rem; font-weight: 600; padding: 0.75rem 1.5rem; background: white; border: 1px solid var(--border); border-radius: 8px; color: var(--gray-600); cursor: pointer; transition: var(--transition); }
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.tab-panel { display: none; animation: fadeIn 0.4s var(--ease); }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.media-card { display: flex; gap: 1.5rem; background: white; border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; transition: var(--transition); }
.media-card:hover { border-color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.media-icon { width: 56px; height: 56px; background: var(--primary-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.media-icon svg { width: 26px; height: 26px; color: var(--primary); }
.media-content h4 { font-size: 1.1rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.25rem; }
.media-content .outlet { font-size: 0.9rem; font-weight: 500; color: var(--primary); margin-bottom: 0.5rem; }
.media-content p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.6; }

.cause-card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 2rem; text-align: center; transition: var(--transition); }
.cause-card:hover { border-color: var(--primary); transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.cause-icon { width: 70px; height: 70px; margin: 0 auto 1.5rem; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cause-icon svg { width: 32px; height: 32px; color: var(--primary); }
.cause-card h4 { font-size: 1.15rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.75rem; }
.cause-card p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.7; }

.bio-card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 2rem; transition: var(--transition); }
.bio-card:hover { border-color: var(--primary); box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.bio-card h3 { display: flex; align-items: center; gap: 0.75rem; font-size: 1.15rem; font-weight: 600; color: var(--gray-900); margin-bottom: 1rem; }
.bio-card h3 svg { width: 22px; height: 22px; color: var(--primary); }
.bio-card p { font-size: 0.95rem; color: var(--gray-600); line-height: 1.9; }

.keywords { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 2.5rem; }
.keyword { font-size: 0.85rem; font-weight: 500; padding: 0.5rem 1rem; background: white; border: 1px solid var(--border); border-radius: 50px; color: var(--gray-600); transition: var(--transition); }
.keyword:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

.footer { background: var(--gray-900); color: white; padding: 3rem 2rem; }
.footer-content { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo { font-size: 1.2rem; font-weight: 700; }
.footer-logo span { color: var(--primary); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.9rem; color: var(--gray-400); transition: var(--transition); }
.footer-links a:hover { color: white; }
.footer-copy { font-size: 0.85rem; color: var(--gray-500); }
@media (max-width: 768px) { .footer-content { flex-direction: column; text-align: center; } .media-card { flex-direction: column; text-align: center; } .media-icon { margin: 0 auto; } }

/* ===================================
   SCROLL ANIMATIONS
   =================================== */

/* Base animation states */
.animate { opacity: 0; transform: translateY(40px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.animate.visible { opacity: 1; transform: translateY(0); }

.animate-left { opacity: 0; transform: translateX(-60px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.animate-left.visible { opacity: 1; transform: translateX(0); }

.animate-right { opacity: 0; transform: translateX(60px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.animate-right.visible { opacity: 1; transform: translateX(0); }

.animate-scale { opacity: 0; transform: scale(0.8); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.animate-scale.visible { opacity: 1; transform: scale(1); }

/* Collapsible sections */
.collapsible-header { cursor: pointer; user-select: none; display: flex; align-items: center; justify-content: space-between; }
.collapsible-header .chevron-toggle { transition: transform 0.3s ease; width: 20px; height: 20px; color: var(--gray-400); flex-shrink: 0; }
.collapsible-header:hover .chevron-toggle { color: var(--primary); }
.collapsible-header.collapsed .chevron-toggle { transform: rotate(-90deg); }
.collapsible-body { overflow: hidden; transition: max-height 0.4s ease, opacity 0.3s ease; opacity: 1; }
.collapsible-body.collapsed { max-height: 0 !important; opacity: 0; margin-bottom: 0 !important; }

.animate-rotate { opacity: 0; transform: rotate(-10deg) translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.animate-rotate.visible { opacity: 1; transform: rotate(0) translateY(0); }

/* ===================================
   BIO - EDITORIAL STYLE
   =================================== */

/* Left-aligned section header */
.section-header-left {
    text-align: left;
}

.about-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.about-tag svg {
    width: 14px;
    height: 14px;
}

.bio-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.bio-editorial {
    margin-bottom: 3rem;
}

.bio-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.bio-main {
    padding-right: 2rem;
    border-right: 1px solid var(--gray-200);
}

.bio-lead {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--gray-800);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.bio-body {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.85;
}

/* Awards sidebar */
.bio-awards {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid var(--gray-100);
}

.bio-awards-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}

.bio-awards-header svg {
    width: 16px;
    height: 16px;
}

.bio-awards-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bio-awards-list li {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--gray-50);
}

.bio-awards-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.award-year {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    min-width: 40px;
    text-align: center;
}

.award-name {
    font-size: 0.9rem;
    color: var(--gray-700);
    font-weight: 500;
}

@media (max-width: 768px) {
    .bio-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .bio-main {
        padding-right: 0;
        border-right: none;
        padding-bottom: 2rem;
        border-bottom: 1px solid var(--gray-200);
    }
    .bio-lead {
        font-size: 1.15rem;
    }
}

/* ===================================
   STATS SECTION - NEW LAYOUT
   =================================== */

.stats-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-info .stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* Quote Card */
.stats-right {
    display: flex;
    align-items: stretch;
}

.quote-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    padding: 2.5rem;
    color: white;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.quote-icon {
    width: 32px;
    height: 32px;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.quote-card blockquote {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.7;
    margin: 0 0 1rem 0;
    flex-grow: 1;
}

.quote-card cite {
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: normal;
}

.quote-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    width: fit-content;
}

.quote-link:hover {
    background: rgba(255,255,255,0.25);
    transform: translateX(4px);
}

.quote-link svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .stats-layout {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   PROFILES SECTION - NEW LAYOUT
   =================================== */

.profiles-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.profiles-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}
.profiles-grid .profile-card {
    flex: 0 1 280px;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
    text-decoration: none;
}

.profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.profile-card:hover .profile-arrow {
    opacity: 1;
    transform: translateX(0);
}

.profile-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.profile-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.profile-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.profile-desc {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.15rem;
}

.profile-arrow {
    width: 16px;
    height: 16px;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.3s ease;
}

/* Contact Card */
.profiles-right {
    display: flex;
    align-items: stretch;
}

.contact-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 2px dashed var(--gray-200);
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--primary);
    border-style: solid;
}

.contact-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.contact-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.contact-card p {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.contact-btn svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .profiles-layout {
        grid-template-columns: 1fr;
    }
    .profiles-grid {
        flex-direction: column;
    }
    .profiles-grid .profile-card {
        flex: 1 1 100%;
    }
}

/* ===================================
   ROLE CARDS (Leadership)
   =================================== */

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.role-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.role-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.role-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.role-icon svg {
    width: 30px;
    height: 30px;
    color: var(--primary);
    stroke-width: 1.75;
}

.role-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.35rem;
}

.role-content .org {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.role-content p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.role-content .dates {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.role-content .dates svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 768px) {
    .timeline-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   FEATURED PUBLICATIONS
   =================================== */

.publications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pub-featured {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
    text-decoration: none;
}

.pub-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.pub-cover {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--gray-100) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pub-cover-placeholder {
    width: 80px;
    height: 100px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pub-cover-placeholder svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.pub-details {
    padding: 1.25rem;
}

.pub-year {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.pub-details h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0.75rem 0 0.5rem;
    line-height: 1.4;
}

.pub-authors {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.pub-publisher {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-style: italic;
}

.pub-type {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .publications-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   NEWS / ACTUALITÉS
   =================================== */

.news-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.news-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: 0.5rem;
    background: var(--primary-light);
    border-radius: 8px;
}

.news-day {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.news-month {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
}

.news-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.news-content p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* PhD CTA Card */
.news-right {
    display: flex;
    align-items: stretch;
}

.cta-phd {
    background: linear-gradient(135deg, #1e3a8a 0%, var(--primary) 100%);
    border-radius: 16px;
    padding: 2.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.cta-icon {
    width: 48px;
    height: 48px;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.cta-phd h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cta-phd p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.cta-phd .contact-btn {
    background: rgba(255,255,255,0.15);
    width: fit-content;
}

.cta-phd .contact-btn:hover {
    background: rgba(255,255,255,0.25);
}

@media (max-width: 768px) {
    .news-layout {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   PARTNER LOGOS
   =================================== */

.partners-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.partner-logo {
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.partner-logo:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.partner-logo span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
}

.partner-logo:hover span {
    color: var(--primary);
}

/* Professional profiles & affiliations (two-column list) */
.links-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
    max-width: 900px;
    margin: 0 auto;
}
.links-col-title {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gray-400);
    margin-bottom: 1.1rem;
}
.links-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.link-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.1rem;
    min-height: 56px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
a.link-row:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    transform: translateY(-1px);
}
.link-row-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 9px;
    color: var(--primary);
}
.link-row-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.9;
}
.link-row-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    flex: 1;
    line-height: 1.3;
}
.link-row-arrow {
    width: 16px;
    height: 16px;
    color: var(--gray-300);
    transition: color 0.25s ease, transform 0.25s ease;
}
a.link-row:hover .link-row-arrow {
    color: var(--primary);
    transform: translate(2px, -2px);
}
@media (max-width: 768px) {
    .links-columns { grid-template-columns: 1fr; gap: 2rem; }
}

/* Expertise Tags */
.expertise-tag {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 1.25rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    color: var(--gray-700);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease, opacity 0.7s var(--ease), transform 0.7s var(--ease);
    cursor: default;
}

.expertise-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: scale(1.05) !important;
}

/* Staggered animation delays for expertise tags */
.expertise-tags .expertise-tag:nth-child(1) { transition-delay: 0ms; }
.expertise-tags .expertise-tag:nth-child(2) { transition-delay: 80ms; }
.expertise-tags .expertise-tag:nth-child(3) { transition-delay: 160ms; }
.expertise-tags .expertise-tag:nth-child(4) { transition-delay: 240ms; }
.expertise-tags .expertise-tag:nth-child(5) { transition-delay: 320ms; }
.expertise-tags .expertise-tag:nth-child(6) { transition-delay: 400ms; }
.expertise-tags .expertise-tag:nth-child(7) { transition-delay: 480ms; }
.expertise-tags .expertise-tag:nth-child(8) { transition-delay: 560ms; }


/* Enhanced card hover with 3D effect */
.card, .pub-card, .media-card, .award-card {
    transition: all 0.4s var(--ease);
    transform-style: preserve-3d;
}

/* Navbar hide/show animation */
.navbar {
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

/* Section headers with parallax-ready transform */
.section-header {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* Hero - JS controls the parallax directly */
#heroImage, #heroContent {
    will-change: transform, opacity;
    transition: none !important;
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation delays for grids */
.grid-2 > *:nth-child(1) { transition-delay: 0ms; }
.grid-2 > *:nth-child(2) { transition-delay: 100ms; }

.grid-3 > *:nth-child(1) { transition-delay: 0ms; }
.grid-3 > *:nth-child(2) { transition-delay: 80ms; }
.grid-3 > *:nth-child(3) { transition-delay: 160ms; }

.grid-4 > *:nth-child(1) { transition-delay: 0ms; }
.grid-4 > *:nth-child(2) { transition-delay: 60ms; }
.grid-4 > *:nth-child(3) { transition-delay: 120ms; }
.grid-4 > *:nth-child(4) { transition-delay: 180ms; }

/* Timeline staggered animations */
.timeline > *:nth-child(1) { transition-delay: 0ms; }
.timeline > *:nth-child(2) { transition-delay: 100ms; }
.timeline > *:nth-child(3) { transition-delay: 200ms; }
.timeline > *:nth-child(4) { transition-delay: 300ms; }
.timeline > *:nth-child(5) { transition-delay: 400ms; }

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating { animation: float 3s ease-in-out infinite; }

/* Pulse animation for highlights */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.pulse { animation: pulse 2s ease-in-out infinite; }

/* Shimmer effect for loading states */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Glow effect on scroll */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px var(--primary); }
    50% { box-shadow: 0 0 20px var(--primary), 0 0 30px var(--primary); }
}

/* Reveal animation for text */
@keyframes revealText {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

.reveal-text {
    animation: revealText 1s var(--ease) forwards;
}

/* Hero entrance animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hover animations */
@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

.wiggle-hover:hover {
    animation: wiggle 0.3s ease-in-out;
}

/* Button hover effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Card icon bounce on hover */
.card:hover .card-icon,
.award-card:hover .award-icon {
    animation: bounceIn 0.5s ease-out;
}

/* Link underline animation */
.footer-links a {
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* ===================================
   DARK MODE OVERRIDES
   =================================== */

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95);
}

[data-theme="dark"] .hero {
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 50%, rgba(47, 93, 78, 0.14) 100%);
}

[data-theme="dark"] .card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .profile-card,
[data-theme="dark"] .bio-awards,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .about-tag {
    background: var(--gray-50);
    border-color: var(--gray-100);
}

[data-theme="dark"] .hero-image img {
    box-shadow: 0 25px 80px rgba(0,0,0,0.5) !important;
}

[data-theme="dark"] .quote-card {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

[data-theme="dark"] .footer {
    background: var(--gray-50);
    border-color: var(--gray-100);
}

[data-theme="dark"] .section-alt {
    background: var(--gray-50);
}

[data-theme="dark"] .expertise-tag {
    background: var(--gray-50);
    border-color: var(--gray-100);
}

[data-theme="dark"] .contact-card {
    border-color: var(--gray-200);
}

[data-theme="dark"] .pub-featured,
[data-theme="dark"] .news-item,
[data-theme="dark"] .partner-logo {
    background: var(--gray-50);
    border-color: var(--gray-100);
}

[data-theme="dark"] .role-card {
    background: var(--gray-50);
    border-color: var(--gray-100);
}

[data-theme="dark"] .pub-cover {
    background: linear-gradient(135deg, rgba(47,93,78,0.18) 0%, var(--gray-100) 100%);
}

[data-theme="dark"] .pub-cover-placeholder {
    background: var(--gray-50);
}

/* Dark mode — Media page (videos, podcast, press, radio, gallery) */
[data-theme="dark"] .media-hero { background-color: var(--gray-50); }
[data-theme="dark"] .media-hero::before { background: linear-gradient(180deg, rgba(0,0,0,0) 55%, var(--gray-50) 100%); }
[data-theme="dark"] .media-hero h1 { color: var(--gray-900); }

[data-theme="dark"] .video-card,
[data-theme="dark"] .article-item,
[data-theme="dark"] .outlet-card,
[data-theme="dark"] .expertise-card,
[data-theme="dark"] .media-stat,
[data-theme="dark"] .podcast-episode,
[data-theme="dark"] .episodes-master,
[data-theme="dark"] .photo-thumb,
[data-theme="dark"] .conference-card,
[data-theme="dark"] .radio-cta-card {
    background: var(--gray-50) !important;
    border-color: var(--gray-100) !important;
}

[data-theme="dark"] .video-card .video-info h3,
[data-theme="dark"] .article-info h3,
[data-theme="dark"] .episodes-master-title,
[data-theme="dark"] .year-badge,
[data-theme="dark"] .article-outlet,
[data-theme="dark"] .video-card .video-channel { color: var(--gray-900); }

[data-theme="dark"] .article-outlet,
[data-theme="dark"] .video-card .video-channel,
[data-theme="dark"] .year-badge { background: rgba(107,165,140,0.22); }

[data-theme="dark"] .article-link,
[data-theme="dark"] .episode-chevron,
[data-theme="dark"] .episode-spotify-link,
[data-theme="dark"] .episodes-master-chevron { background: var(--gray-100); color: var(--gray-500); }

[data-theme="dark"] .search-box input { background: var(--gray-50); color: var(--gray-900); border-color: var(--gray-100); }
[data-theme="dark"] .search-box input::placeholder { color: var(--gray-400); }
[data-theme="dark"] .filter-pill { background: var(--gray-50); border-color: var(--gray-100); color: var(--gray-600); }
[data-theme="dark"] .filter-pill.active { background: var(--primary); border-color: var(--primary); color: white; }
[data-theme="dark"] .article-item.search-highlight { background: rgba(107,165,140,0.16); border-left-color: #7bbd9f; }

[data-theme="dark"] .section[style*="background: var(--gray-50)"],
[data-theme="dark"] section[style*="background: var(--gray-50)"] { background: var(--white) !important; }

/* Dark mode — Contact page */
[data-theme="dark"] .contact-section { background: var(--white); }
[data-theme="dark"] .contact-card { background: var(--gray-50); border-color: var(--gray-100); }
[data-theme="dark"] .contact-info h3 { color: var(--gray-500); }
[data-theme="dark"] .contact-info .value { color: var(--gray-900); }

/* Dark mode — Publications page */
[data-theme="dark"] .pub-category,
[data-theme="dark"] .pub-item {
    background: var(--gray-50) !important;
    border-color: var(--gray-100) !important;
}
[data-theme="dark"] .pub-category .collapsible-header,
[data-theme="dark"] .pub-item h3,
[data-theme="dark"] .pub-info h3,
[data-theme="dark"] .pub-year { color: var(--gray-900); }
[data-theme="dark"] .pub-item .authors,
[data-theme="dark"] .pub-item .meta,
[data-theme="dark"] .pub-info .authors,
[data-theme="dark"] .pub-info .meta,
[data-theme="dark"] .pub-category .collapsible-header .pub-count { color: var(--gray-500); }
[data-theme="dark"] .pub-badge { background: rgba(107,165,140,0.22); color: var(--gray-900); }
[data-theme="dark"] .pub-item.search-highlight { background: rgba(107,165,140,0.16) !important; border-left-color: #7bbd9f; }

/* Dark mode — Lightbox stays dark, no change needed */

/* Dark mode — Universal catch-all for any remaining white backgrounds and text */
[data-theme="dark"] .engage-stat,
[data-theme="dark"] .supervision-card,
[data-theme="dark"] .grant-card,
[data-theme="dark"] .conference-card,
[data-theme="dark"] .role-card,
[data-theme="dark"] .media-card,
[data-theme="dark"] .bio-card,
[data-theme="dark"] .cause-card,
[data-theme="dark"] .keyword,
[data-theme="dark"] .btn-secondary,
[data-theme="dark"] .timeline-item,
[data-theme="dark"] .pub-card,
[data-theme="dark"] .pub-stat,
[data-theme="dark"] .pub-tab,
[data-theme="dark"] .tab-btn,
[data-theme="dark"] .lang-btn {
    background: var(--gray-50) !important;
    border-color: var(--gray-100) !important;
    color: var(--gray-700);
}

/* Headings & body text inside cards/sections in dark mode */
[data-theme="dark"] .conference-card h4,
[data-theme="dark"] .conference-info h4,
[data-theme="dark"] .conference-info h4 a,
[data-theme="dark"] .conference-year,
[data-theme="dark"] .role-card h3,
[data-theme="dark"] .role-card h4,
[data-theme="dark"] .supervision-card h3,
[data-theme="dark"] .supervision-card h4,
[data-theme="dark"] .grant-card h3,
[data-theme="dark"] .grant-card h4,
[data-theme="dark"] .media-card h3,
[data-theme="dark"] .bio-card h3,
[data-theme="dark"] .cause-card h3,
[data-theme="dark"] .timeline-item h3,
[data-theme="dark"] .timeline-item h4,
[data-theme="dark"] .timeline-category h3,
[data-theme="dark"] .pub-card h3,
[data-theme="dark"] .pub-card h4,
[data-theme="dark"] .pub-stat .pub-stat-number,
[data-theme="dark"] .media-stat-number,
[data-theme="dark"] .engage-stat-number,
[data-theme="dark"] .section-header h2,
[data-theme="dark"] .section-header h3 { color: var(--gray-900); }

[data-theme="dark"] .conference-card p,
[data-theme="dark"] .conference-info p,
[data-theme="dark"] .conference-info .location,
[data-theme="dark"] .role-card p,
[data-theme="dark"] .supervision-card p,
[data-theme="dark"] .grant-card p,
[data-theme="dark"] .media-card p,
[data-theme="dark"] .bio-card p,
[data-theme="dark"] .cause-card p,
[data-theme="dark"] .timeline-item p,
[data-theme="dark"] .pub-card p,
[data-theme="dark"] .pub-journal,
[data-theme="dark"] .media-stat-label,
[data-theme="dark"] .engage-stat-label,
[data-theme="dark"] .section-header p { color: var(--gray-500); }

/* CV page cards */
[data-theme="dark"] .cv-section,
[data-theme="dark"] .cv-card,
[data-theme="dark"] .education-card,
[data-theme="dark"] .award-card,
[data-theme="dark"] .position-card,
[data-theme="dark"] .skill-card {
    background: var(--gray-50) !important;
    border-color: var(--gray-100) !important;
}
[data-theme="dark"] .cv-section h2,
[data-theme="dark"] .cv-section h3,
[data-theme="dark"] .cv-card h3,
[data-theme="dark"] .cv-card h4,
[data-theme="dark"] .education-card h3,
[data-theme="dark"] .award-card h3,
[data-theme="dark"] .position-card h3 { color: var(--gray-900); }
[data-theme="dark"] .cv-card p,
[data-theme="dark"] .cv-card .meta,
[data-theme="dark"] .education-card p,
[data-theme="dark"] .award-card p,
[data-theme="dark"] .position-card p { color: var(--gray-500); }

/* Inline-style white backgrounds (HTML <div style="background: white">) */
[data-theme="dark"] [style*="background: white"],
[data-theme="dark"] [style*="background:#fff"],
[data-theme="dark"] [style*="background: #fff"] {
    background: var(--gray-50) !important;
}

/* Inputs/textareas/selects in dark mode */
[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: var(--gray-50);
    color: var(--gray-900);
    border-color: var(--gray-100);
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder { color: var(--gray-400); }

/* Generic catch-all: any remaining bright text on dark or vice versa */
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 { color: var(--gray-900); }

/* Dark mode — CV page specific */
[data-theme="dark"] .cv-download,
[data-theme="dark"] .cv-nav,
[data-theme="dark"] .cv-timeline-content,
[data-theme="dark"] .award-item,
[data-theme="dark"] .cv-tag {
    background: var(--gray-50) !important;
    border-color: var(--gray-100) !important;
}
[data-theme="dark"] .cv-timeline-content:hover,
[data-theme="dark"] .award-item:hover { border-color: var(--primary) !important; }
[data-theme="dark"] .cv-timeline-title,
[data-theme="dark"] .cv-nav-title { color: var(--gray-900); }
[data-theme="dark"] .cv-timeline-org,
[data-theme="dark"] .cv-tag { color: var(--gray-600); }
[data-theme="dark"] .cv-nav-link { color: var(--gray-600); }
[data-theme="dark"] .cv-nav-link:hover,
[data-theme="dark"] .cv-nav-link.active { background: rgba(107,165,140,0.22); color: #8fc3ad; }
[data-theme="dark"] .cv-timeline::before { background: var(--gray-100); }
[data-theme="dark"] .cv-timeline-dot { background: var(--gray-50); }
[data-theme="dark"] .cv-timeline-date { background: rgba(107,165,140,0.22); color: #8fc3ad; }


/* Hide dynamic blocks until content-loader has applied JSON content (prevents flash of stale hardcoded fallback) */
html:not(.content-ready) #press-section .article-list,
html:not(.content-ready) #radio-section .article-list,
html:not(.content-ready) #video-section .video-grid,
html:not(.content-ready) #podcast-episodes,
html:not(.content-ready) .publications-grid,
html:not(.content-ready) .pub-list { visibility: hidden; }

/* Radio-Canada OHdio CTA card */
.radio-cta-wrapper { max-width: 800px; margin: 3rem auto 0; }
.radio-cta-card {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; border-radius: 16px; text-decoration: none;
  box-shadow: 0 8px 24px rgba(47,93,78,0.25);
  transition: transform .25s ease, box-shadow .25s ease;
}
.radio-cta-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(47,93,78,0.35); }
.radio-cta-icon {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
}
.radio-cta-icon svg { width: 26px; height: 26px; stroke: #fff; }
.radio-cta-text { flex: 1; min-width: 0; }
.radio-cta-text h3 { color: #fff; margin: 0 0 .25rem; font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.radio-cta-text p { color: rgba(255,255,255,0.85); margin: 0; font-size: .9rem; }
.radio-cta-arrow { flex-shrink: 0; opacity: .85; transition: transform .25s ease; }
.radio-cta-arrow svg { width: 24px; height: 24px; stroke: #fff; }
.radio-cta-card:hover .radio-cta-arrow { transform: translate(4px, -4px); opacity: 1; }
@media (max-width: 520px) {
  .radio-cta-card { padding: 1.25rem; gap: 1rem; }
  .radio-cta-text h3 { font-size: .95rem; }
  .radio-cta-text p { font-size: .825rem; }
}

/* ===================================
   RESPONSIVE REFINEMENTS
   =================================== */

/* Tablet adjustments */
@media (max-width: 1024px) {
    .hero { padding: calc(var(--nav-height) + 2.5rem) 1.5rem 3rem; }
    .hero-image img { height: 400px; }
    .section { padding: 3.5rem 1.5rem; }
    .section-header { margin-bottom: 2.5rem; }
    .section-header h2 { font-size: 1.75rem; }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero { padding: calc(var(--nav-height) + 2rem) 1.25rem 2.5rem; }
    .hero-image { max-width: 280px; }
    .hero-image img { height: 360px; }
    .hero-image::before { left: -12px; right: 12px; top: -12px; bottom: 12px; }
    .hero-title { font-size: 2.25rem; }
    .hero-description { font-size: 1rem; margin-bottom: 1.5rem; }
    .hero-buttons .btn { font-size: 0.85rem; padding: 0.75rem 1.25rem; }
    .section { padding: 3rem 1.25rem; }
    .section-header { margin-bottom: 2rem; }
    .section-header h2 { font-size: 1.5rem; }
    .bio-lead { font-size: 1.1rem !important; }
    .bio-body { font-size: 0.95rem !important; line-height: 1.75 !important; }
    .bio-title { font-size: 2rem; }
    .footer-links { flex-wrap: wrap; gap: 1rem; justify-content: center; }
    .footer-links a { font-size: 0.82rem; }
    .role-card { padding: 1.25rem; gap: 1rem; }
    .role-icon { width: 40px; height: 40px; min-width: 40px; }
    .role-icon svg { width: 22px; height: 22px; }
    .role-content h3 { font-size: 1rem; }
    .role-content p { font-size: 0.85rem; }
    .nav-container { padding: 0 1.25rem; }
}

/* Small phones */
@media (max-width: 480px) {
    .hero { padding: calc(var(--nav-height) + 1.5rem) 1rem 2rem; }
    .hero-image { max-width: 240px; }
    .hero-image img { height: 300px; }
    .hero-image::before { left: -10px; right: 10px; top: -10px; bottom: 10px; border-width: 2px; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-description { font-size: 0.9rem; }
    .hero-buttons { gap: 0.5rem; }
    .hero-buttons .btn { font-size: 0.8rem; padding: 0.65rem 1rem; }
    .section { padding: 2.5rem 1rem; }
    .section-header h2 { font-size: 1.35rem; }
    .section-header p { font-size: 0.9rem; }
    .nav-container { padding: 0 1rem; }
    .footer { padding: 2rem 1rem; }
    .footer-links { flex-direction: column; align-items: center; gap: 0.5rem; }
    .link-row { padding: 0.7rem 0.85rem; min-height: 48px; }
    .link-row-label { font-size: 0.88rem; }
    .about-tag { font-size: 0.7rem; padding: 0.35rem 0.85rem; }
    .stat-card { padding: 1rem 1.15rem; }
    .stat-info .stat-number { font-size: 1.4rem; }
    .stat-label { font-size: 0.8rem; }
    .quote-card { padding: 1.75rem; }
    .quote-card blockquote { font-size: 1rem; }
}
