/*  Variables globales  */
:root {
    --primary: #2596be;
    --accent: #db5d46;
    --dark: #305c72;
    --light: #f8fafc;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    --section-padding: 2rem;

    /* Theme palette */
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-strong: #f3f4f6;
    --text-primary: var(--gray-800);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-500);
    --text-inverted: var(--white);
    --border-default: rgba(15, 23, 42, 0.08);
    --shadow-ring: rgba(37, 150, 190, 0.14);
    --color-scheme: light;
}

[data-theme="dark"] {
    /* Palette sombre (v2, validée) */
    --bg: #111827;
    --surface: #1f2937;
    --surface-soft: #111827;
    --surface-strong: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-inverted: #ffffff;
    --border-default: #334155;
    --shadow-ring: rgba(0, 0, 0, 0.35);
    --color-scheme: dark;

    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --accent: #f97316;
    --accent-hover: #fb923c;

    --success: #22c55e;
    --error: #ef4444;

    --header-footer-dark-bg: #2c5d87;
    --footer-dark-bg: #2a567c;
}
@media (max-width: 768px) {
    :root { --section-padding: 2rem; }
}
@media (max-width: 480px) {
    :root { --section-padding: 1.5rem; }
}

/*  Reset & Base  */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    color-scheme: var(--color-scheme, light);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.site-content {
    width: 100%;
    max-width: 100%;
    position: relative;
}

/*  Typography  */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.2;
    color: var(--text-primary);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); font-weight: 600; }

p {
    text-align: justify;
}

/*  Container  */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/*  Page Loader  */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}
.loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/*  Animations de base  */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%      { transform: translateY(-20px); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(37, 150, 190, 0.3); }
    50%      { box-shadow: 0 0 40px rgba(37, 150, 190, 0.6); }
}

/* Classes d'animation utilitaires */
.animate-fade-in-up    { animation: fadeInUp 0.8s ease forwards; opacity: 0; }
.animate-fade-in-left  { animation: fadeInLeft 0.8s ease forwards; opacity: 0; }
.animate-fade-in-right { animation: fadeInRight 0.8s ease forwards; opacity: 0; }
.animate-scale-in      { animation: scaleIn 0.6s ease forwards; opacity: 0; }

/* Délais */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/*  Sections  */
.section {
    padding: var(--section-padding) 0;
}
.section-header {
    text-align: center;
    padding-bottom: 2rem;

}
.section-header p {
    text-align: center;
}

.section-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(37, 150, 190, 0.08);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    margin-top: 25px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 2px;
    margin: 1rem auto;
}


/*  Stats Counter  */
.stats-section {
    padding: var(--section-padding) 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.stat-item {
    padding: 1.5rem;
}
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    display: block;
}
.stat-plus {
    color: var(--accent);
    font-size: 2rem;
}
.stat-label {
    color: var(--gray-600);
    font-weight: 500;
    margin-top: 0.5rem;
}

/*  Cards  */
.card {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-smooth);
    border: 1px solid var(--gray-200);
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}
.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}
.card-icon.blue { background: rgba(37, 150, 190, 0.1); color: var(--primary); }
.card-icon.red  { background: rgba(219, 93, 70, 0.1);  color: var(--accent); }
.card-icon.dark { background: rgba(48, 92, 114, 0.1);  color: var(--dark); }


/*  Boutons globaux  */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(37, 150, 190, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 150, 190, 0.4);
    background: var(--dark);
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: transparent;
    color: var(--gray-800);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--gray-300);
    transition: all var(--transition-smooth);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/*  Bouton Don (CTA)  */
.btn-donation {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(219, 93, 70, 0.3);
    position: relative;
    overflow: hidden;
}
.btn-donation::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}
.btn-donation:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(219, 93, 70, 0.4);
}
.btn-donation:hover::before {
    left: 100%;
}

/* Footer */
.footer {
    background: #2c5d87;
    color: #2c5d87;
    padding: 2rem 0 1rem;
}
[data-theme="dark"] .footer {
    background: var(--footer-dark-bg, #2a567c);
}
/* Logo coloré (teal/orange) illisible sur fond bleu : on le passe en blanc plein, quel que soit le thème */
.footer-logo-img {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}
.footer-desc,
.footer-links li,
.footer-links a {
    color: #cbd5e1;
}
.footer-links a:hover {
    color: #fff;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem 3.5rem;
    margin-bottom: 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.footer-grid > *:first-child {
    flex: 0 1 260px;
}
.footer-grid > *:not(:first-child) {
    flex: 0 0 auto;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 0.4rem;
    display: block;
}

.footer-desc {
    line-height: 1.5;
    font-size: 0.75rem;
    text-align: justify;
    margin: 0;
    max-width: 200px;
}

.footer-title {
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

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

.footer-links li {
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
}
.footer-links li svg {
    flex-shrink: 0;
}
.footer-links li,
.footer-links li a {
    white-space: nowrap;
    overflow-wrap: normal;
}
.footer-links a {
    text-decoration: none;
    font-size: 0.8rem;
    transition: color var(--transition-fast);
}

.footer-links a i.fa-brands {
    margin-right: 0.35rem;
}

.footer-contact-practical-row {
    display: flex;
    gap: 2.5rem 3.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 0.75rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.7rem;
}
.footer-bottom p {
    text-align: center;
}

.footer-bottom-sep {
    margin: 0 0.4rem;
    opacity: 0.5;
}

.footer-desc {
    margin-bottom: 1.5rem; 
}

.footer-grid {
    row-gap: 2.5rem; 
}

@media (max-width: 768px) {
    .footer-links {
        margin-bottom: 0.5rem;
    }

    /* Logo pleine largeur, puis "Accès rapide" / "Contact" côte à côte,
       puis les liens légaux pleine largeur en dessous, sur 2 colonnes. */
    .footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
    }

    .footer-grid > *:nth-child(1) {
        grid-column: 1 / -1;
    }

    .footer-grid > *:nth-child(2) {
        grid-column: 1;
    }

    /* Ce conteneur ne sert plus qu'à grouper le HTML : ses deux enfants
       (Contact et liens légaux) deviennent des cellules de la grille du footer. */
    .footer-contact-practical-row {
        display: contents;
    }

    .footer-contact-practical-row > div:first-child {
        grid-column: 2;
    }

    .footer-contact-practical-row > div:first-child .footer-links li,
    .footer-contact-practical-row > div:first-child .footer-links a {
        white-space: nowrap;
        word-break: normal;
        overflow-wrap: normal;
    }

    .footer-contact-practical-row > div:last-child {
        grid-column: 1 / -1;
        margin-top: 1rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        text-align: center;
    }

    .footer-contact-practical-row > div:last-child .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem 1rem;
        justify-items: center;
    }

    .footer-contact-practical-row > div:last-child .footer-links li,
    .footer-contact-practical-row > div:last-child .footer-links a {
        white-space: normal;
        word-break: normal;
        overflow-wrap: normal;
    }

    .footer-desc {
        max-width: 100%;
        font-size: 0.85rem;
    }

    .footer-links a,
    .footer-links li {
        white-space: normal;
        word-break: break-word;
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .footer-title {
        font-size: 0.85rem;
    }
}

/*  Modal  */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    transform: translateY(40px);
    transition: all var(--transition-smooth);
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}





/* 
   STATS TICKER (défilement infini)
    */
.stats-ticker {
    background: var(--white);
    overflow: hidden;
    padding: 2.5rem 0;
    position: relative;
}
.stats-ticker::before,
.stats-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.stats-ticker::before {
    left: 0;
    background: linear-gradient(to right, var(--white) 0%, transparent 100%);
}
.stats-ticker::after {
    right: 0;
    background: linear-gradient(to left, var(--white) 0%, transparent 100%);
}

.stats-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    padding: 0 1rem;
    animation: statsTickerScroll 20s linear infinite;
    --stats-repeats: 6;
}

.stats-track:hover {
    animation-play-state: paused;
}

@keyframes statsTickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-100% / var(--stats-repeats, 6))); }
}

.stat-chip {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.5rem 1rem;
}
.stat-chip-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.stat-chip-plus {
    font-size: 2.8rem;
    color: var(--accent);
    font-weight: 700;
}
.stat-chip-label {
    font-size: 0.95rem;
    color: var(--gray-600);
    font-weight: 500;
    margin-left: 0.5rem;
}

/* MISSION TILES (modèle 3) */

.mtl-section {
    position: relative;
    background: var(--white);
    padding: calc(var(--section-padding) * 0.5) 0 var(--section-padding);
}

.mtl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.mtl-tile {
    position: relative;
    min-height: 340px;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 10px 30px rgba(0,0,0,0.14);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease;
}

.mtl-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(0,0,0,0.22);
}
.mtl-tile:active {
    transform: scale(0.97);
    transition: transform 0.15s ease;
}

.mtl-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.mtl-tile:hover .mtl-bg {
    transform: scale(1.08);
}

.mtl-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(37, 150, 190, 0.15) 0%, rgba(13, 20, 28, 0.35) 45%, rgba(8, 12, 18, 0.94) 100%);
}
.mtl-tile:nth-child(2) .mtl-overlay {
    background: linear-gradient(180deg, rgba(219, 93, 70, 0.18) 0%, rgba(13, 20, 28, 0.35) 45%, rgba(8, 12, 18, 0.94) 100%);
}

.mtl-content {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 1.75rem 1.5rem;
    color: #fff;
}

.mtl-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 1.2rem;
}

.mtl-index {
    position: absolute;
    z-index: 1;
    top: 1.25rem;
    right: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 3.25rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.32);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.mtl-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
    line-height: 1.3;
}
.mtl-tile:nth-child(1) .mtl-content h3 { color: #5ec8ea; }
.mtl-tile:nth-child(2) .mtl-content h3 { color: #ff8b70; }
.mtl-tile:nth-child(3) .mtl-content h3 { color: #9fc4d8; }

.mtl-content p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    text-align: justify;
}

@media (max-width: 900px) {
    .mtl-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
    .mtl-tile {
        min-height: 260px;
    }
}

@media (max-width: 768px) {
    .mtl-grid {
        padding: 0 1rem;
        gap: 1.25rem;
    }
    .mtl-content {
        padding: 1.4rem 1.25rem;
    }
    .mtl-content h3 {
        font-size: 1.25rem;
    }
    .mtl-content p {
        font-size: 0.9rem;
    }
    .mtl-index {
        top: 1rem;
        right: 1.25rem;
        font-size: 2.5rem;
    }
}

/*
   REVEAL ANIMATIONS
    */
.reveal-fade-up,
.reveal-scale {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-fade-up {
    transform: translateY(50px);
}
.reveal-scale {
    transform: scale(0.85);
}
.reveal-fade-up.visible,
.reveal-scale.visible {
    opacity: 1;
}
.reveal-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

[data-delay="0"]   { transition-delay: 0s; }
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }



/* 
   WP Cards améliorées
    */
.wp-badge {
    display: inline-block;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}
.wp-meta {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.8rem;
    color: var(--gray-500);
}
.section-footer {
    text-align: center;
    margin-top: 3rem;
}
.news-date {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
}

/* 
   DONATION CTA
    */
.donation-cta {
    background: #ffffff;
    color: var(--gray-800);
    text-align: center;
}
.donation-cta h2 {
    color: var(--gray-800);
}
.donation-cta p {
    text-align: center;
    max-width: 600px;
    margin: 1.5rem auto;
    color: rgba(0,0,0,0.75);
}

/* Mode sombre : même comportement que la newsletter (palette sombre, pas de noir pur) */
[data-theme="dark"] .donation-cta {
    background: var(--surface);
    color: var(--text-primary);
}
[data-theme="dark"] .donation-cta h2 {
    color: var(--text-primary);
}
[data-theme="dark"] .donation-cta p {
    color: var(--text-secondary);
}



.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 100%;
}

.rx-page { background: #fff; }

.rx-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.rx-reveal.is-visible { opacity: 1; transform: none; }
.rx-reveal[data-d="1"] { transition-delay: .12s; }
.rx-reveal[data-d="2"] { transition-delay: .24s; }
.rx-reveal[data-d="3"] { transition-delay: .36s; }

.rx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: 'Inter', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--primary);
}
.rx-eyebrow::before {
    content: '';
    width: 26px; height: 2px;
    background: var(--accent);
}


.rx-hero {
    position: relative;
    margin-top: var(--header-h, 82px);
    min-height: 58vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--dark);
}
.rx-hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: rxHeroZoom 18s ease-in-out infinite alternate;
}
@keyframes rxHeroZoom { to { transform: scale(1.14); } }
.rx-hero-veil {
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(20,40,55,.30) 0%,
        rgba(20,40,55,.55) 55%,
        rgba(20,40,55,.88) 100%);
}
.rx-hero-inner {
    position: relative;
    z-index: 2;
    padding: 0 0 3.5rem;
    max-width: 880px;
}
.rx-hero .rx-eyebrow { color: #8fd3e8; }
.rx-hero .rx-eyebrow::before { background: #8fd3e8; }
.rx-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    line-height: 1.12;
    margin: 1.2rem 0 1rem;
    text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.rx-hero h1 em {
    font-style: italic;
    color: #f4a08e;
}
.rx-hero-lead {
    color: rgba(255,255,255,.86);
    font-size: 1.08rem;
    line-height: 1.7;
    max-width: 640px;
}
.rx-hero-rule {
    width: 64px; height: 3px;
    background: var(--accent);
    margin-top: 1.6rem;
    border-radius: 2px;
}

/* ---------- CONTEXTE ---------- */

.rx-context { padding: var(--section-padding) 0; }

.rx-context-head {
    max-width: 100%;      
    margin-bottom: 3.5rem;
}
.rx-context-head h2 {
    font-size: clamp(1.5rem, 2.8vw, 2.3rem); 
    color: var(--dark);
    margin: 1rem 0 0;
    line-height: 1.25;
    white-space: nowrap;  
}
.rx-context-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start; 
}

.rx-context-text {
    display: flex;
    flex-direction: column;
    justify-content: center; 
}
.rx-context-text p {
    color: var(--gray-600);
    line-height: 1.85;
    margin-bottom: 1.2rem;
    text-align: justify;
}
.rx-context-text p:last-child { margin-bottom: 0; }

.rx-context-aside {
    background: linear-gradient(160deg, #f3f9fb 0%, #eef5f8 100%);
    border: 1px solid rgba(37,150,190,.12);
    border-radius: 24px;
    padding: 1.8rem 2rem; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    gap: 0; 
}

.rx-fact {
    display: flex;
    gap: 1rem;
    padding: 0.85rem 0; 
    border-bottom: 1px solid rgba(37,150,190,.12);
}
.rx-fact:first-child { padding-top: 0; }
.rx-fact:last-child { border-bottom: none; padding-bottom: 0; }
.rx-fact-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    min-width: 88px;
    position: relative;
}

.rx-fact-num .rx-fact-plus {
    color: var(--accent);
    font-size: 1em;       
    position: absolute;
    left: -0.6em;         
    top: 0;
}
.rx-fact-num span:not(.rx-fact-plus) {
    color: var(--primary);
    font-size: 1em;
}
.rx-fact-txt { font-size: .92rem; color: var(--gray-600); line-height: 1.55; }
.rx-fact-txt strong { display: block; color: var(--dark); font-size: 1rem; margin-bottom: .15rem; }

.rx-program {
    padding: var(--section-padding) 0;
    background: #f8fafc;
}
.rx-program-head {
    max-width: 720px;
    margin: 0 auto 3.5rem;
    text-align: center;
}
.rx-program-head h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    color: var(--dark);
    margin: 1rem 0 .8rem;
}
.rx-program-head p { text-align: center; color: var(--gray-600); line-height: 1.75; }
.rx-program-head .rx-eyebrow { justify-content: center; }

.rx-wp {
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(20,40,55,.05);
    margin-bottom: 2rem;
    transition: box-shadow .4s ease, transform .4s ease;
}
.rx-wp:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(20,40,55,.12);
}
.rx-wp:last-child { margin-bottom: 0; }

/* Rail gauche */
.rx-wp-rail {
    position: relative;
    padding: 2.6rem 2rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
.rx-wp1 .rx-wp-rail { background: linear-gradient(160deg, var(--primary), #1c6f88); }
.rx-wp2 .rx-wp-rail { background: linear-gradient(160deg, var(--accent), #b4452f); }
.rx-wp3 .rx-wp-rail { background: linear-gradient(160deg, var(--dark), #1f3f52); }
.rx-wp-rail::after {
    content: '';
    position: absolute;
    right: -40px; bottom: -40px;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
}
.rx-wp-code {
    font-family: 'Inter', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: .85;
}
.rx-wp-num {
    font-family: 'Playfair Display', serif;
    font-size: 4.6rem;
    font-weight: 800;
    line-height: .9;
    margin: .4rem 0;
}
.rx-wp-rail h3 {
    color: #fff;
    font-size: 1.35rem;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}
.rx-wp-status {
    margin-top: 1.4rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    align-self: flex-start;
    background: rgba(255,255,255,.18);
    padding: .35rem .9rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    position: relative; z-index: 1;
}
.rx-wp-status .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #7CFFB2;
    box-shadow: 0 0 0 3px rgba(124,255,178,.25);
}

/* Corps droit */
.rx-wp-body { padding: 2.6rem 2.6rem 2.2rem; }
.rx-wp-lead {
    font-size: 1.02rem;
    color: var(--gray-700);
    line-height: 1.75;
    margin-bottom: 1.6rem;
}
.rx-wp-sub {
    font-family: 'Inter', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: .9rem;
}
.rx-wp-objs { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.rx-wp-objs li {
    position: relative;
    padding: .55rem 0 .55rem 1.8rem;
    color: var(--gray-700);
    font-size: .95rem;
    line-height: 1.55;
    border-bottom: 1px solid var(--gray-100);
}
.rx-wp-objs li:last-child { border-bottom: none; }
.rx-wp-objs li::before {
    content: '';
    position: absolute;
    left: 0; top: 1.05rem;
    width: 8px; height: 8px;
    border-radius: 2px;
    transform: rotate(45deg);
}
.rx-wp1 .rx-wp-objs li::before { background: var(--primary); }
.rx-wp2 .rx-wp-objs li::before { background: var(--accent); }
.rx-wp3 .rx-wp-objs li::before { background: var(--dark); }

.rx-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.rx-tag {
    font-size: .74rem;
    font-weight: 600;
    padding: .35rem .85rem;
    border-radius: 50px;
    background: var(--gray-100);
    color: var(--gray-600);
}
.rx-wp1 .rx-tag { background: rgba(37,150,190,.1); color: var(--primary); }
.rx-wp2 .rx-tag { background: rgba(219,93,70,.1); color: var(--accent); }
.rx-wp3 .rx-tag { background: rgba(48,92,114,.1); color: var(--dark); }

/* ---------- APPROCHE MÉTHODOLOGIQUE ---------- */
.rx-method { padding: var(--section-padding) 0; }
.rx-method-head { text-align: center; max-width: 760px; margin: 0 auto 3.5rem; }
.rx-method-head .rx-eyebrow { justify-content: center; }
.rx-method-head h2 { font-size: clamp(1.7rem,3vw,2.3rem); color: var(--dark); margin: 1rem 0 .7rem; }
.rx-method-head p { text-align: center; color: var(--gray-600); line-height: 1.7; }

.rx-method-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    counter-reset: rxm;
}
.rx-method-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 2rem 1.6rem;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.rx-method-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(20,40,55,.08);
    border-color: rgba(37,150,190,.25);
}
.rx-method-card::before {
    counter-increment: rxm;
    content: '0' counter(rxm);
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    position: absolute;
    top: 1.3rem; right: 1.5rem;
}
.rx-method-card:nth-child(1)::before { color: var(--primary); }
.rx-method-card:nth-child(2)::before { color: var(--accent); }
.rx-method-card:nth-child(3)::before { color: var(--dark); }
.rx-method-card:nth-child(4)::before { color: var(--primary); }
.rx-method-head-row {
    display: contents;
}
.rx-method-ic {
    width: 52px; height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    margin-bottom: 1.2rem;
}
.rx-method-card:nth-child(1) .rx-method-ic { background: var(--primary); }
.rx-method-card:nth-child(2) .rx-method-ic { background: var(--accent); }
.rx-method-card:nth-child(3) .rx-method-ic { background: var(--dark); }
.rx-method-card:nth-child(4) .rx-method-ic { background: var(--primary); }
.rx-method-ic svg { width: 24px; height: 24px; }
.rx-method-card h3 { font-size: 1.12rem; color: var(--dark); margin-bottom: .5rem; }
.rx-method-card p { font-size: .88rem; color: var(--gray-600); line-height: 1.6; margin: 0; }

/* ---------- BANDEAU IMPACT ---------- */
.rx-impact {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--dark), var(--primary));
    color: #fff;
}
.rx-impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.rx-impact-num {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}
.rx-impact-num span { color: #f4a08e; }
.rx-impact-label {
    margin-top: .6rem;
    font-size: .92rem;
    color: rgba(255,255,255,.82);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {

    .rx-context-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .rx-method-grid { grid-template-columns: repeat(2, 1fr); }
    .rx-impact-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}

@media (max-width: 768px) {
    .rx-hero { min-height: 50vh; margin-top: 70px; }
    .rx-hero-inner { padding-bottom: 2.5rem; }
    .rx-context-head h2 { white-space: normal; font-size: clamp(1.4rem, 5vw, 1.8rem);}
    .rx-wp { grid-template-columns: 1fr; }
    .rx-wp-rail { flex-direction: row; align-items: center; justify-content: space-between; padding: 1.6rem 1.8rem; }
    .rx-wp-num { font-size: 3rem; margin: 0; }
    .rx-wp-rail h3 { font-size: 1.1rem; }
    .rx-wp-status { margin-top: 0; }
    .rx-wp-body { padding: 1.8rem 1.6rem; }

    /* Icône + titre sur la même ligne ; numéro masqué en mobile */
    .rx-method-card::before {
        display: none;
    }
    .rx-method-head-row {
        display: flex;
        align-items: center;
        gap: .9rem;
        margin-bottom: .7rem;
    }
    .rx-method-ic { margin-bottom: 0; }
    .rx-method-card h3 { margin-bottom: 0; }
}
@media (max-width: 560px) {
    .rx-method-grid { grid-template-columns: 1fr; }
    .rx-impact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .rx-wp-rail { flex-direction: column; align-items: flex-start; gap: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
    .rx-reveal { transition: none; opacity: 1; transform: none; }
    .rx-hero-bg { animation: none; }
}

/* 
   NEWS SECTION
    */
.news-section {
    padding: var(--section-padding) 0;
    background: var(--white);
    padding-bottom: 5px;
}

/* Header */
.news-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.news-eyebrow {
    display: inline-block;
    padding: 0.35rem 1.4rem;
    background: rgba(219, 93, 70, 0.1);
    color: var(--accent);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    border: 1px solid rgba(219, 93, 70, 0.2);
}
.news-head-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #1a2b3c;
    margin: 0;
}

/* Grille */
.news-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

/* Carte */
.news-card-new {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}
.news-card-new:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

/* Image */
.news-card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.news-card-new:hover .news-card-img img {
    transform: scale(1.06);
}

/* Contenu */
.news-card-content {
    padding: 1.4rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-card-date {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}
.news-card-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2b3c;
    margin-bottom: 0.6rem;
    line-height: 1.35;
    flex: 1;
}
.news-card-content p {
    font-size: 0.88rem;
    color: #5a6b7c;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
    margin-top: auto;
}
.news-card-link:hover {
    gap: 0.7rem;
    color: var(--dark);
}

/* Footer */
.news-footer {
    text-align: center;
}
.news-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.8rem;
    background: var(--white);
    color: #1a2b3c;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1.5px solid #dce3ea;
    transition: all 0.3s ease;
}
.news-footer-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(219, 93, 70, 0.03);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .news-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Badge type */
.news-card-type {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    background: var(--primary);
    z-index: 2;
}
.type-recherche   { background: var(--primary); }
.type-partenariat { background: var(--accent); }
.type-innovation  { background: var(--dark); }

.news-date-icon {
    flex-shrink: 0;
    margin-right: 0.3rem;
}

.news-search {
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    display: flex;
    align-items: center;
}

.news-search svg {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
}

.news-search input {
    height: auto !important;
    min-height: 0 !important;
    flex: 1;
}

@media (max-width: 768px) {
    .news-search {
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
    }
}
/* 
   NOS AXES DE RECHERCHE
    */
.research-axes-section {
    padding: var(--section-padding) 0;
    background: #f8fafc;
}

.research-axes-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.research-axis-card {
    width: 100%;
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-axis-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.08);
}

.research-axis-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.research-axis-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(37,150,190,0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.research-axis-status {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: var(--primary);
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
}

.research-axis-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a2b3c;
    margin-bottom: 0.8rem;
}

.research-axis-card p {
    font-size: 0.95rem;
    color: #4a5b6b;
    line-height: 1.7;
    text-align: justify;
}
.news-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: var(--header-h, 82px);
    background: var(--dark);
}

.news-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.news-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: newsHeroPan 14s ease-in-out infinite;
}

@keyframes newsHeroPan {
    0%   { transform: scale(1);    object-position: center top; }
    20%  { transform: scale(1.08); object-position: center bottom; }
    40%  { transform: scale(1);    object-position: center center; }
    60%  { transform: scale(1.05); object-position: center top; }
    80%  { transform: scale(1);    object-position: center center; }
    100% { transform: scale(1);    object-position: center top; }
}
.news-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.45);
}

.news-hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 60%;
    height: 180%;
    background: radial-gradient(
        ellipse,
        rgba(255, 255, 255, 0.04) 0%,
        transparent 65%
    );
    z-index: 1;
    pointer-events: none;
}
.news-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 30px 20px;
    width: 100%;
}

.news-hero-eyebrow {
    display: inline-block;
    background: #1f82a8;
    border: 1px #1f82a8 solid;
    color: var(--white);
    padding: 5px 18px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
    backdrop-filter: blur(4px);
}

.news-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 4px 30px rgba(56, 43, 252, 0.3);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}
.news-hero-subtitle {
    text-align: center;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 2px 18px rgba(0, 0, 0, 0.45);
}
.news-hero-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.news-hero-ctas .btn-primary {
    position: relative;
    display: inline-block;
    text-align: center;
    padding: 0.6rem 1.5rem;
    background: var(--pub-blue);
    color: #fff;
    text-decoration: none;
    border-radius: var(--pub-r-pill);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 150, 190, 0.3);
    transition: all 0.25s;
}
/* Icône posée dans le padding existant (pas d'espace ajouté) : le texte reste
   centré sur la largeur réelle du bouton, symétrique des deux côtés. */
.news-hero-ctas .btn-primary .icon-md {
    position: absolute;
    left: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
}

.news-hero-ctas .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 150, 190, 0.4);
}

.news-hero-ctas .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-smooth);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
}

.news-hero-ctas .btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
    text-decoration: none;
}

.news-hero-ctas .icon-md {
    width: 18px;
    height: 18px;
}
@media (max-width: 1024px) {
    .news-hero {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .news-hero {
        min-height: 240px;
        margin-top: 70px;
    }

    .news-hero-content {
        padding: 20px 16px;
    }

    .news-hero-eyebrow {
        font-size: 0.6rem;
        padding: 4px 14px;
        margin-bottom: 10px;
    }

    .news-hero-title {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
        letter-spacing: 0;
        margin-bottom: 8px;
    }

    .news-hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 16px;
        max-width: 100%;
    }

    .news-hero-ctas {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .news-hero-ctas .btn-primary,
    .news-hero-ctas .btn-secondary {
        width: auto;
        max-width: 280px;
        justify-content: center;
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .news-hero {
        min-height: 200px;
    }

    .news-hero-content {
        padding: 16px 12px;
    }

    .news-hero-eyebrow {
        font-size: 0.55rem;
        padding: 3px 12px;
        letter-spacing: 1px;
        margin-bottom: 8px;
    }

    .news-hero-title {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .news-hero-subtitle {
        font-size: 0.7rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .news-hero-ctas {
        gap: 8px;
    }

    .news-hero-ctas .btn-primary,
    .news-hero-ctas .btn-secondary {
        max-width: 220px;
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
    }

    .news-hero-ctas .icon-md {
        width: 14px;
        height: 14px;
    }
}
/* 
   PAGE ACTUALITÉS – LISTE
    */

#newsResultsWrapper { transition: opacity .2s ease; }
#newsResultsWrapper.is-loading { opacity: .45; pointer-events: none; }

.news-list-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.news-section-head {
    margin-bottom: 2rem;
}

.news-section-head h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    color: var(--dark);
}

/* Filtres */
.news-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eceff1;
}

.news-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #f3f5f7;
    border-radius: var(--pub-r-pill, 50px);
    padding: 0.6rem 1.1rem;
    flex: 1 1 260px;
    max-width: 360px;
    color: #7a8288;
}

.news-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.9rem;
    width: 100%;
    color: var(--dark);
}

.news-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.filter-tag {
    border: 1px solid #dfe3e6;
    background: var(--white);
    color: #5c6570;
    padding: 0.5rem 1.2rem;
    border-radius: var(--pub-r-pill, 50px);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    border-color: var(--pub-blue);
    color: var(--pub-blue);
}

.filter-tag.active {
    background: var(--pub-blue);
    border-color: var(--pub-blue);
    color: #fff;
}

.news-empty-state {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
    color: #8a9099;
    font-size: 0.95rem;
}

/* Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-btn {
    border: 1px solid #dfe3e6;
    background: var(--white);
    color: #5c6570;
    min-width: 40px;
    height: 40px;
    padding: 0 0.9rem;
    border-radius: var(--pub-r-pill, 50px);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--pub-blue);
    color: var(--pub-blue);
}

.page-btn.active {
    background: var(--pub-blue);
    border-color: var(--pub-blue);
    color: #fff;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .news-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .news-search {
        max-width: 100%;
    }

    .page-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 0.7rem;
    }
}
.news-list-section {
    --pg-primary: var(--primary, #1F6F78);
    --pg-primary-dark: var(--dark, #12202B);
    --pg-ink: var(--dark, #12202B);
    --pg-slate: #6B7780;
    --pg-line: #E1E6E8;
    --pg-surface: #FFFFFF;
    --pg-surface-hover: #F3F6F6;
}
 
/* ── Tags de filtre ── */
.news-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
 
.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--pg-line);
    background: var(--pg-surface);
    color: var(--pg-slate);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
 
.filter-tag:hover {
    border-color: var(--pg-primary);
    color: var(--pg-primary-dark);
    background: var(--pg-surface-hover);
    text-decoration: none;
}
 
.filter-tag:focus-visible {
    outline: 2px solid var(--pg-primary);
    outline-offset: 2px;
}
 
.filter-tag.active {
    background: var(--pg-primary);
    border-color: var(--pg-primary);
    color: #fff;
}
 
.filter-tag.active:hover {
    background: var(--pg-primary);
    color: #fff;
    transform: none;
}
 
/* ── Pagination ── */
.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 48px;
}
 
.page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}
 
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--pg-line);
    background: var(--pg-surface);
    color: var(--pg-ink);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    line-height: 1;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
 
a.page-btn:hover {
    border-color: var(--pg-primary);
    background: var(--pg-surface-hover);
    color: var(--pg-primary-dark);
    text-decoration: none;
}
 
a.page-btn:focus-visible {
    outline: 2px solid var(--pg-primary);
    outline-offset: 2px;
}
 
.page-btn--active {
    background: var(--pg-primary);
    border-color: var(--pg-primary);
    color: #fff;
}
 
.page-nav {
    padding: 0 16px;
    color: var(--pg-slate);
}
 
.page-nav--disabled {
    opacity: 0.4;
    pointer-events: none;
}
 
.page-dots {
    border: none;
    background: transparent;
    color: var(--pg-slate);
    min-width: auto;
    padding: 0 4px;
}
 
/* ── Responsive ── */
@media (max-width: 768px) {
    .news-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
        padding-bottom: 1rem;
    }

    .news-search {
        max-width: 100%;
        padding: 0.5rem 1rem;
        background: #f3f5f7;
        border-radius: 50px;
        border: 1px solid #e2e8f0;
    }

    .news-search input {
        font-size: 0.85rem;
        padding: 0.3rem 0;
    }

    .news-filter-tags {
        justify-content: center;
        gap: 0.5rem;
    }

    .filter-tag {
        padding: 0.4rem 0.9rem;
        font-size: 0.75rem;
    }
    
  .news-pagination {
        gap: 6px;
    }

    .page-nav span,
    .page-nav {
        padding: 0 12px;
    }

    .page-numbers {
        gap: 4px;
    }

    .page-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 0.85rem;
    }
}

/* 
   NEWSLETTER
    */
.newsletter-section {
    padding: var(--section-padding) 0;
    background: #ffffff;
    color: var(--gray-800);
    text-align: center;
    transition: background 0.3s ease, color 0.3s ease;
}
.newsletter-box {
    max-width: 650px;
    margin: 0 auto;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}
.newsletter-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.6rem;
}
.newsletter-content p {
    text-align: center;
    color: rgba(0,0,0,0.75);
    margin-bottom: 1.5rem;
}

.newsletter-input-row {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--gray-300);
    background: var(--gray-50);
    color: var(--gray-800);
    font-size: 0.95rem;
    min-width: 260px;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}
.newsletter-form input[type="email"]::placeholder {
    color: var(--gray-400);
}
.newsletter-form input[type="email"]:focus {
    border-color: var(--primary);
    background: #ffffff;
}

.newsletter-form button {
    position: relative;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 14px rgba(219, 93, 70, 0.3);
}
.newsletter-form button:hover {
    background: #c94e3a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(219, 93, 70, 0.45);
}
.newsletter-form button:disabled {
    cursor: not-allowed;
    opacity: 0.85;
    transform: none;
}

.newsletter-form .btn-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: newsletter-spin 0.6s linear infinite;
}
.newsletter-form button.is-loading .btn-label { visibility: hidden; }
.newsletter-form button.is-loading .btn-spinner {
    display: inline-block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
@keyframes newsletter-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.newsletter-message {
    margin-top: 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}
.newsletter-message.visible {
    opacity: 1;
    max-height: 60px;
}
.newsletter-message.success {
    color: #1a7f37;
}
.newsletter-message.error {
    color: #c0392b;
}

/* Mode sombre : palette sobre (fond principal, pas de noir pur) */
[data-theme="dark"] .newsletter-section {
    background: var(--surface);
    color: var(--text-primary);
}
[data-theme="dark"] .newsletter-content h2 {
    color: var(--text-primary);
}
[data-theme="dark"] .newsletter-content p {
    color: var(--text-secondary);
}
[data-theme="dark"] .newsletter-form input[type="email"] {
    border: 1px solid #64748b;
    background: var(--bg);
    color: var(--text-primary);
}
[data-theme="dark"] .newsletter-form input[type="email"]::placeholder {
    color: var(--text-muted);
}
[data-theme="dark"] .newsletter-form input[type="email"]:focus {
    border-color: var(--primary);
    background: var(--bg);
}
[data-theme="dark"] .newsletter-message.success {
    color: var(--success);
}
[data-theme="dark"] .newsletter-message.error {
    color: var(--error);
}
[data-theme="dark"] .newsletter-form button:hover {
    background: var(--accent-hover);
}

/* Responsive */
@media (max-width: 768px) {
    .newsletter-content h2 {
        font-size: 1.5rem;
    }
    .newsletter-input-row {
        flex-direction: column;
        align-items: center;
    }
    .newsletter-form input[type="email"] {
        min-width: 100%;
    }
    .newsletter-form button {
        width: 100%;
        justify-content: center;
        display: flex;
    }
}

/* Hero Contact */
.contact-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: var(--header-h, 82px);
    background: var(--dark);
}

.contact-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.contact-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: contactHeroPan 14s ease-in-out infinite;
}

@keyframes contactHeroPan {
    0%   { transform: scale(1);    object-position: center top; }
    20%  { transform: scale(1.08); object-position: center bottom; }
    40%  { transform: scale(1);    object-position: center center; }
    60%  { transform: scale(1.05); object-position: center top; }
    80%  { transform: scale(1);    object-position: center center; }
    100% { transform: scale(1);    object-position: center top; }
}

/* Overlay */
.contact-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.45);
}

.contact-hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 60%;
    height: 180%;
    background: radial-gradient(
        ellipse,
        rgba(255, 255, 255, 0.04) 0%,
        transparent 65%
    );
    z-index: 1;
    pointer-events: none;
}

/* Contenu */
.contact-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 30px 20px;
    width: 100%;
}

/* Badge */
.contact-hero-eyebrow {
    display: inline-block;
    background: #1f82a8;
    border: 1px #1f82a8 solid;
    color: var(--white);
    padding: 5px 18px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
    backdrop-filter: blur(4px);
}

/* Titre */
.contact-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 4px 30px rgba(56, 43, 252, 0.3);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

/* Sous-titre */
.contact-hero-subtitle {
    text-align: center;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 2px 18px rgba(0, 0, 0, 0.45);
}

/* Boutons CTA */
.contact-hero-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-hero-ctas .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    padding: 0.6rem 1.5rem;
    background: var(--pub-blue);
    color: #fff;
    text-decoration: none;
    border-radius: var(--pub-r-pill);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 150, 190, 0.3);
    transition: all 0.25s;
}

.contact-hero-ctas .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 150, 190, 0.4);
}

.contact-hero-ctas .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-smooth);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
}

.contact-hero-ctas .btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
    text-decoration: none;
}

.contact-hero-ctas .icon-md {
    width: 18px;
    height: 18px;
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-hero {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        min-height: 240px;
        margin-top: 70px;
    }

    .contact-hero-content {
        padding: 20px 16px;
    }

    .contact-hero-eyebrow {
        font-size: 0.6rem;
        padding: 4px 14px;
        margin-bottom: 10px;
    }

    .contact-hero-title {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
        letter-spacing: 0;
        margin-bottom: 8px;
    }

    .contact-hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 16px;
        max-width: 100%;
    }

    .contact-hero-ctas {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .contact-hero-ctas .btn-primary,
    .contact-hero-ctas .btn-secondary {
        width: auto;
        max-width: 280px;
        justify-content: center;
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        min-height: 200px;
    }

    .contact-hero-content {
        padding: 16px 12px;
    }

    .contact-hero-eyebrow {
        font-size: 0.55rem;
        padding: 3px 12px;
        letter-spacing: 1px;
        margin-bottom: 8px;
    }

    .contact-hero-title {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .contact-hero-subtitle {
        font-size: 0.7rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .contact-hero-ctas {
        gap: 8px;
    }

    .contact-hero-ctas .btn-primary,
    .contact-hero-ctas .btn-secondary {
        max-width: 220px;
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
    }

    .contact-hero-ctas .icon-md {
        width: 14px;
        height: 14px;
    }
}
/*
   PAGE CONTACT – SECTION
    */
.contact-section {
    padding: var(--section-padding) 0;
    background: #f8fafc;
}

/* Titres de section */
.contact-info-title,
.contact-form-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a2b3c;
    margin: 0 0 1.5rem;
    text-align: center;
}

/* Ligne principale */
.contact-row {
    display: flex;
    gap: 3rem;
    align-items: stretch;
}

/* Colonne informations */
.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Cartes d'information */
.contact-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Cartes d'information */
.contact-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 1rem;
    border: 1px solid #f0f0f0;
}
.contact-card:last-child {
    margin-bottom: 0;
}
.contact-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(37, 150, 190, 0.1);
    color: var(--primary, #2596be);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
}
.contact-card-body h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a2b3c;
    margin-bottom: 0.3rem;
}
.contact-card-body p {
    font-size: 0.9rem;
    color: #4a5b6b;
    line-height: 1.6;
    margin: 0;
}
.contact-card-sub {
    font-size: 0.82rem;
    color: #7a8ea0;
    margin-top: 0.2rem;
}

/* Colonne formulaire */
.contact-form-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Conteneur blanc avec ombre */
.form-container {
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    padding: 2.5rem 2rem;
    border: 1px solid #f0f0f0;
}

/* Formulaire */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Groupe label + input */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a2b3c;
    margin: 0;
}

/* Inputs, select, textarea */
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.85rem 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-size: 0.95rem;
    color: #1a2b3c;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    font-family: 'Inter', sans-serif;
    resize: vertical;
}

.form-field input::placeholder,
.form-field select::placeholder,
.form-field textarea::placeholder {
    color: #a0b0c0;
    opacity: 1;
}

/* Focus */
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--primary, #2596be);
    box-shadow: 0 0 0 3px rgba(37, 150, 190, 0.1);
}

/* Select flèche personnalisée */
.form-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%234a5b6b' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    padding-right: 2.5rem;
}

/* Textarea */
.form-field textarea {
    min-height: 130px;
}

/* Bouton */
.btn-send {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.95rem;
    background: #2596be;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.2);
    margin-top: 0.5rem;
}
.btn-send svg {
    flex-shrink: 0;
}
.btn-send:hover {
    background: #db5d46;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.35);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-row {
        flex-direction: column;
        gap: 2rem;
    }
}
/* PAGE FHU – HERO */
.fhu-hero {
    position: relative;
    height: 25vh;
    min-height: 180px;
    max-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--header-h, 82px);
    overflow: hidden;
}
.fhu-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    animation: fhuHeroPan 14s ease-in-out infinite;
}
@keyframes fhuHeroPan {
    0%   { transform: scale(1);    background-position: center top; }
    20%  { transform: scale(1.08); background-position: center bottom; }
    40%  { transform: scale(1);    background-position: center center; }
    60%  { transform: scale(1.05); background-position: center top; }
    80%  { transform: scale(1);    background-position: center center; }
    100% { transform: scale(1);    background-position: center top; }
}
.fhu-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.5) 100%);
    z-index: 1;
}
.fhu-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}
.fhu-hero-eyebrow {
    display: inline-block;
    padding: 0.35rem 1.4rem;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease 0.2s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}
.fhu-hero-eyebrow.visible {
    opacity: 1;
    transform: translateY(0);
}

.fhu-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
    margin-bottom: 0.8rem;
    padding: 0 1rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease 0.4s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.fhu-hero-title.visible {
    opacity: 1;
    transform: translateY(0);
}
.fhu-hero-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease 0.6s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}
.fhu-hero-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 
   PAGE FHU – SECTIONS COMMUNES
    */
.fhu-section {
    padding: var(--section-padding) 0;
}
.fhu-history-section,
.fhu-perimeter-section,
.fhu-governance-section {
    padding: var(--section-padding) 0;
}

.fhu-history-section,
.fhu-perimeter-section {
    background: #f8fafcf5;
}

/* INTRO*/
.fhu-intro p {
    font-size: 1.05rem;
    color: #4a5b6b;
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: justify;
}
/* ── Wrapper ── */
.fhu-objectives {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}
 
.fhu-objectives::before {
    content: '';
    position: absolute;
    top: -150px; right: -150px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,150,190,.04) 0%, transparent 70%);
    pointer-events: none;
}
 
/* ── En-tête ── */
.fhu-obj-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
 
.fhu-obj-tag {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2596be;
    background: rgba(37,150,190,.1);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}
 
.fhu-obj-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    color: #1a2b3c;
    margin: 0;
    line-height: 1.2;
}
 
.fhu-obj-sep {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #2596be, #db5d46);
    border-radius: 2px;
    margin: 0.9rem auto 0.75rem;
}
 
.fhu-obj-subtitle {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #64748b;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.65;
}
 
/* ── Grille 3 cartes ── */
.fhu-obj-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-bottom: 1.8rem;
}
 
.fhu-obj-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.8rem 1.5rem 1.5rem;
    border: 1px solid rgba(0,0,0,.05);
    box-shadow: 0 4px 18px rgba(0,0,0,.04);
    position: relative;
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease;
}
 
/* Barre colorée en haut */
.fhu-obj-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 0;
    transition: height .35s ease;
}
.fhu-obj-card--blue::before  { background: #2596be; }
.fhu-obj-card--coral::before { background: #db5d46; }
.fhu-obj-card--dark::before  { background: #305c72; }
 
.fhu-obj-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,.09);
}
.fhu-obj-card:hover::before { height: 5px; }
 
/* .fhu-obj-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: rgba(0,0,0,.06);
    line-height: 1;
    margin-bottom: 0.4rem;
} */

.fhu-obj-num {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: rgba(0,0,0,.06);
    line-height: 1;
    margin: 0;
}
.fhu-obj-card--blue  .fhu-obj-num { color: rgba(37,150,190,.4); }
.fhu-obj-card--coral .fhu-obj-num { color: rgba(219,93,70,.4); }
.fhu-obj-card--dark  .fhu-obj-num { color: rgba(48,92,114,.4); }
 
.fhu-obj-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    transition: transform .35s ease;
}
.fhu-obj-card:hover .fhu-obj-icon { transform: scale(1.08) rotate(-4deg); }
 
.fhu-obj-card--blue  .fhu-obj-icon { background: rgba(37,150,190,.1);  color: #2596be; }
.fhu-obj-card--coral .fhu-obj-icon { background: rgba(219,93,70,.1);   color: #db5d46; }
.fhu-obj-card--dark  .fhu-obj-icon { background: rgba(48,92,114,.1);   color: #305c72; }
 
.fhu-obj-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a2b3c;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}
.fhu-obj-card--blue  h3 { color: #2596be; }
.fhu-obj-card--coral h3 { color: #db5d46; }
.fhu-obj-card--dark  h3 { color: #305c72; }

.fhu-obj-card p {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}
.fhu-obj-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,.05);
}
.fhu-obj-img-col {
    position: relative;
    overflow: hidden;
    min-height: 320px;
}
 
.fhu-obj-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .6s ease;
}
 
.fhu-obj-detail:hover .fhu-obj-img-col img {
    transform: scale(1.04);
}
.fhu-obj-img-col::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 55%, rgba(255,255,255,.95) 100%);
    pointer-events: none;
}
.fhu-obj-items-col {
    padding: 2rem 2rem 2rem 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}
.fhu-obj-item {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.fhu-obj-item:first-child { padding-top: 0; }
.fhu-obj-item:last-child  { border-bottom: none; padding-bottom: 0; }
.fhu-obj-item-bar {
    width: 3px;
    min-height: 100%;
    border-radius: 2px;
    flex-shrink: 0;
    align-self: stretch;
}
.fhu-obj-item--blue  .fhu-obj-item-bar { background: #2596be; }
.fhu-obj-item--coral .fhu-obj-item-bar { background: #db5d46; }
.fhu-obj-item--dark  .fhu-obj-item-bar { background: #305c72; }
 
.fhu-obj-item-body h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a2b3c;
    margin: 0 0 0.3rem;
    line-height: 1.3;
}
.fhu-obj-item--blue  .fhu-obj-item-body h4 { color: #2596be; }
.fhu-obj-item--coral .fhu-obj-item-body h4 { color: #db5d46; }
.fhu-obj-item--dark  .fhu-obj-item-body h4 { color: #305c72; }

.fhu-obj-item-body p {
    font-family: 'Inter', sans-serif;
    font-size: 0.83rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}
 
/* ── Responsive ── */
@media (max-width: 1024px) {
    .fhu-obj-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .fhu-obj-detail { grid-template-columns: 1fr 1fr; }
}
 
@media (max-width: 768px) {
 
    .fhu-obj-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto 1.5rem;
    }
 
    .fhu-obj-detail {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }
 
    .fhu-obj-img-col {
        min-height: 220px;
    }
 
    .fhu-obj-img-col::after {
        background: linear-gradient(to bottom, transparent 60%, rgba(255,255,255,.95) 100%);
    }
 
    .fhu-obj-items-col {
        padding: 1.5rem 1.2rem;
    }
}
 
@media (max-width: 480px) {
    .fhu-obj-header h2 { font-size: 1.6rem; }
    .fhu-obj-card { padding: 1.4rem 1.2rem 1.2rem; border-radius: 16px; }
    .fhu-obj-img-col { min-height: 180px; }
}

/* HISTORIQUE */
.fhu-history-section {
    position: relative;
    overflow: hidden;
    padding: var(--section-padding) 0;
}
.fhu-history-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}
.fhu-history-bg-mobile {
    display: none;
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.fhu-history-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}
.fhu-history-content {
    position: relative;
    z-index: 2;
}

/* Header */
.fhu-history-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.fhu-history-eyebrow {
    display: inline-block;
    padding: 0.35rem 1.4rem;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
}

.fhu-history-sep {
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.fhu-history-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 4px 14px rgba(0,0,0,0.5);
    margin-bottom: 0.5rem;
}

.fhu-history-header p {
    color: #ffffff;
    font-size: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    font-weight: 500;
}

/* Timeline moderne */
.fhu-timeline-new {
    display: flex;
    gap: 1.5rem;
    max-width: 950px;
    margin: 0 auto;
}

.fhu-timeline-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.8rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.6);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    position: relative;
    overflow: hidden;
}

/* Carte du milieu différente */
.fhu-timeline-card:nth-child(2) {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(37, 150, 190, 0.25);
    box-shadow: 0 8px 30px rgba(37, 150, 190, 0.1);
}
.fhu-timeline-card:nth-child(2):hover {
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(37, 150, 190, 0.18);
}

.fhu-timeline-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    background: rgba(255, 255, 255, 0.95);
}

.fhu-timeline-card-year {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.8rem;
    text-align: center;
}

.fhu-timeline-card-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a2b3c;
    margin-bottom: 0.6rem;
    line-height: 1.3;
    text-align: center;
}

.fhu-timeline-card-body p {
    font-size: 0.88rem;
    color: #4a5b6b;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

/* Responsive */
@media (max-width: 768px) {

    .fhu-history-bg {
        display: none;
    }
    .fhu-history-bg-mobile {
        display: block;
        background-attachment: fixed;
    }
    .fhu-timeline-new {
        flex-direction: column;
    }
    .fhu-history-header h2 {
        font-size: 1.8rem;
    }
}

.fhu-perimeter-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.fhu-perimeter-grid {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.fhu-perimeter-text {
    flex: 1;
}

.fhu-perimeter-visual {
    flex: 1;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.fhu-perimeter-visual img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.fhu-perimeter-visual:hover img {
    transform: scale(1.04);
}

/* Carte interactive du reseau FHU, meme gabarit que l'illustration qu'elle remplace */
.fhu-perimeter-map {
    width: 100%;
    aspect-ratio: 1375 / 1494;
}

.fhu-map-popup {
    font-size: 0.9rem;
    line-height: 1.5;
}

.fhu-map-popup hr {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 900px) {
    .fhu-perimeter-grid {
        flex-direction: column;
    }
}

/*
   GOUVERNANCE
*/
.fhu-governance-section {
    background:#FFFFFF;
    padding: var(--section-padding) 0;
}

.fhu-governance-section .container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.fhu-governance-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 5vw, 1.9rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    padding: 0 0.5rem;
}

.fhu-governance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.fhu-governance-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fhu-governance-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.08);
}

.fhu-governance-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2596be;
    margin-bottom: 1rem;
}

.fhu-governance-card p {
    font-size: 0.95rem;
    color: #4a5b6b;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    text-align: justify;
}

.fhu-governance-card ul {
    list-style: disc;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    color: #4a5b6b;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    text-align: justify;
}

.fhu-governance-img {
    margin-top: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.fhu-governance-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.fhu-governance-img:hover img {
    transform: scale(1.03);
}


/* Tablette */
@media (max-width: 768px) {
    
    .fhu-perimeter-grid {
        flex-direction: column;
        gap: 2rem;
    }
    
    .fhu-perimeter-text h2 {
        font-size: 1.4rem;
        text-align: center;
    }
    
    .fhu-perimeter-text p {
        text-align: justify;
    }
    
    
    .fhu-governance-section .container {
        padding: 0 1rem;
    }
    
    .fhu-governance-section h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .fhu-gov-spacer {
        font-size: 0.4rem;
    }

    .fhu-governance-grid {
        gap: 1.2rem;
    }
    
    .fhu-governance-card {
        padding: 1.5rem;
    }
    
    .fhu-governance-card h3 {
        text-align: center;
        font-size: 1.2rem;
    }
    
    .fhu-governance-card p,
    .fhu-governance-card ul {
        font-size: 0.85rem;
    }
    
    .fhu-details-grid {
        flex-direction: column;
    }
    .fhu-timeline-item {
        flex-direction: column;
    }
    .fhu-timeline-marker {
        width: 50px;
        height: 50px;
        font-size: 0.9rem;
    }
}

/* Très petit mobile */
@media (max-width: 480px) {
    .fhu-perimeter-text h2 {
        font-size: 1.3rem;
    }
    
    .fhu-governance-section .container {
        padding: 0 0.75rem;
    }
    
    .fhu-governance-section h2 {
        font-size: 1.4rem;
    }
    
    .fhu-governance-card {
        padding: 1.2rem;
    }
    
    .fhu-governance-card h3 {
        font-size: 1.1rem;
    }
    
    .fhu-governance-card p,
    .fhu-governance-card ul {
        font-size: 0.8rem;
    }
}


/* 
   26 FHU
*/

.fhu-all-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    position: relative;
}

.fhu-all-section .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.fhu-all-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.fhu-all-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(37,150,190,0.1), rgba(219,93,70,0.1));
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.fhu-all-badge svg { 
    width: 16px; 
    height: 16px; 
    color: var(--primary); 
}

.fhu-all-badge span { 
    color: var(--primary); 
    font-size: 0.75rem; 
    font-weight: 600; 
}

.fhu-all-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 6vw, 2.5rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.8rem;
    line-height: 1.2;
    word-break: break-word;
    padding: 0 0.25rem;
}

.fhu-all-sep {
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 0 auto 1rem;
    border-radius: 3px;
}

.fhu-all-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: clamp(0.8rem, 3vw, 0.95rem);
    max-width: 600px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

/* Légende */
.fhu-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding: 0.8rem 1.5rem;
    background: white;
    border-radius: 50px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    flex-wrap: wrap;
}

.fhu-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--gray-700);
}

.fhu-legend-item svg { 
    width: 16px; 
    height: 16px; 
    color: var(--primary); 
}

/* Grille */
.fhu-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin-bottom: 2rem;
}

/* Carte */
.fhu-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
}

.fhu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: rgba(37,150,190,0.2);
}

/* Suppression des règles qui ajoutaient un fond aux PNG/JPG */
.fhu-card-logo-link img[src*="png"],
.fhu-card-logo-link img[src*="jpg"],
.fhu-card-logo-link img[src*="jpeg"] {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

/* Bascule logo clair / logo sombre selon le thème */
.fhu-card-logo-link img.fhu-card-logo--dark {
    display: none;
}
[data-theme="dark"] .fhu-card-logo-link img.fhu-card-logo--light {
    display: none;
}
[data-theme="dark"] .fhu-card-logo-link img.fhu-card-logo--dark {
    display: block;
}

/* Contenu : colonne flex pour que les liens (site web / LinkedIn) se
   comportent comme un pied de carte, aligné en bas quel que soit le
   nombre de lignes du contenu au-dessus (coordinateurs, manager...) */
.fhu-card-content {
    padding: 1.2rem 1.5rem 1.5rem;
    background: white;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.fhu-card-acronym {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.2rem 0;
}

.fhu-card-title {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--gray-100);
}

/* Infos */
.fhu-card-info {
    margin-bottom: 1rem;
}

.fhu-info-line {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--gray-700);
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.fhu-info-line svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.fhu-info-line small {
    font-size: 0.7rem;
    color: var(--gray-500);
}

/* Liens */
.fhu-card-links {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    flex-wrap: wrap;
}

.fhu-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.9rem;
    background: var(--gray-100);
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s ease;
}

.fhu-link svg { 
    width: 12px; 
    height: 12px; 
}

.fhu-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.fhu-link.linkedin:hover { 
    background: #0077b5; 
}

.fhu-link.disabled { 
    opacity: 0.4; 
    cursor: not-allowed; 
}

.fhu-link.disabled:hover { 
    transform: none; 
    background: var(--gray-100); 
}

/* Tags */
.fhu-card-tags {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.fhu-card-tags svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 3px;
}

.fhu-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.fhu-tag {
    font-size: 0.65rem;
    padding: 0.2rem 0.7rem;
    background: rgba(219,93,70,0.1);
    border-radius: 20px;
    color: var(--accent);
}

.fhu-tag.more {
    background: var(--gray-200);
    color: var(--gray-600);
}

/* Pagination */
.fhu-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1rem;
}

.fhu-pagination-btn:first-child { justify-self: start; }
.fhu-pagination-btn:last-child { justify-self: end; }
.fhu-pagination-pages { justify-self: center; }

.fhu-pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 40px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fhu-pagination-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: transparent;
}

.fhu-pagination-btn:disabled { 
    opacity: 0.4; 
    cursor: not-allowed; 
}

.fhu-pagination-pages { 
    display: flex; 
    gap: 0.5rem; 
}

.fhu-page-btn {
    width: 38px;
    height: 38px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fhu-page-btn:hover {
    background: rgba(37,150,190,0.1);
    border-color: var(--primary);
}

.fhu-page-btn.active {
    background: var(--primary);
    border-color: transparent;
    color: white;
}

.fhu-counter {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-500);
    padding: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .fhu-cards-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 1.5rem; 
    }
}

@media (max-width: 768px) {
    
    .fhu-all-section .container {
        padding: 0 1rem;
    }
    
    .fhu-cards-grid { 
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .fhu-legend { 
        display: none; 
    }
    
    .fhu-pagination-btn span { 
        display: none; 
    }
    
    .fhu-pagination-btn { 
        padding: 0.5rem; 
    }
    
    .fhu-page-btn { 
        width: 35px; 
        height: 35px; 
    }
    
    .fhu-card-logo-link img { 
        max-height: 70px; 
    }
    
    .fhu-card-content { 
        padding: 1rem 1rem 1.2rem; 
    }
    
    .fhu-card-logo-link {
        padding: 1.2rem 1.2rem 0.8rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .fhu-all-section .container {
        padding: 0 0.75rem;
    }
    
    .fhu-all-header h2 {
        font-size: 1.3rem;
        padding: 0;
    }
    
    .fhu-cards-grid {
        gap: 1rem;
    }
    
    .fhu-card-content {
        padding: 0.8rem 0.8rem 1rem;
    }
}


/* PAGE RECHERCHE – HERO*/
.research-page-hero {
    position: relative;
    height: 25vh;
    min-height: 180px;
    max-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--header-h, 82px);
    overflow: hidden;
    background: #e8f0f5;
}
.research-page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    animation: researchHeroPan 14s ease-in-out infinite;
}
@keyframes researchHeroPan {
    0%   { transform: scale(1);    background-position: center top; }
    20%  { transform: scale(1.08); background-position: center bottom; }
    40%  { transform: scale(1);    background-position: center center; }
    60%  { transform: scale(1.05); background-position: center top; }
    80%  { transform: scale(1);    background-position: center center; }
    100% { transform: scale(1);    background-position: center top; }
}
.research-page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.25), rgba(255,255,255,0.5));
    z-index: 1;
}
.research-page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}
.research-page-hero-eyebrow {
    display: inline-block;
    padding: 0.35rem 1.4rem;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.5rem;
    margin-bottom: 1.2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease 0.2s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}
.research-page-hero-eyebrow.visible {
    opacity: 1;
    transform: translateY(0);
}

.research-page-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.3;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease 0.4s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.research-page-hero-title.visible {
    opacity: 1;
    transform: translateY(0);
}
.research-page-hero::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.08) 0%, transparent 50%);
    animation: lightSweep 8s ease-in-out infinite;
    z-index: 3;
    pointer-events: none;
}

/* STATS CAROUSEL */
.research-stats-section {
    padding: var(--section-padding) 0;
    background: #ffffff;
    overflow: hidden;
}

.research-stats-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    height: 300px;
}

.research-stats-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.research-stat-card {
    position: absolute;
    width: 320px;
    background: #fff;
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0.4;
    filter: blur(1px);
    z-index: 1;
    pointer-events: none;
}

.research-stat-card.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    filter: blur(0);
    z-index: 10;
    pointer-events: all;
    box-shadow: 0 20px 50px rgba(37, 150, 190, 0.12);
    border-color: rgba(37, 150, 190, 0.2);
}

.research-stat-card.prev {
    transform: translate(calc(-50% - 280px), -50%) scale(0.85);
    opacity: 0.8;
    filter: blur(0);
    z-index: 2;
}

.research-stat-card.next {
    transform: translate(calc(-50% + 280px), -50%) scale(0.85);
    opacity: 0.8;
    filter: blur(0);
    z-index: 2;
}

.research-stat-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.research-stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), #1e7f9a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: all 0.5s ease;
}

.research-stat-card.active .research-stat-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
}

.research-stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a2b3c;
    line-height: 1;
    transition: all 0.5s ease;
}

.research-stat-card.active .research-stat-number {
    font-size: 3.5rem;
}

.research-stat-label {
    font-size: 0.9rem;
    color: #5a6b7c;
    font-weight: 500;
}

/* Dots mobile */
.research-stats-dots {
    display: none;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.research-stats-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dce3ea;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.research-stats-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}
.rx-wp-reverse {
    display: flex !important;
    flex-direction: row-reverse !important;
}

.rx-wp-reverse .rx-wp-rail {
    margin-right: 0;
    margin-left: 2rem;
}

.rx-wp-reverse .rx-wp-body {
    margin-left: 0;
    margin-right: 2rem;
}

@media (max-width: 768px) {
    .rx-wp-reverse {
        flex-direction: column !important;
    }
    .rx-wp-reverse .rx-wp-rail,
    .rx-wp-reverse .rx-wp-body {
        margin: 0;
    }
}
/* Responsive */
@media (max-width: 768px) {
    
    .fhu-hero {
        height: 30vh;
        min-height: 200px;
        margin-top: 70px;
    }
    .fhu-hero-title {
        font-size: 1.3rem;
        padding: 0 1.5rem;
        text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    }

    .research-stats-section {
        padding-bottom: 4rem;
    }

    .research-stats-section .section-tag {
        margin-top: 4rem;
    }

    .research-stats-carousel {
        height: 220px;

    }

    .research-stat-card {
        width: 50vw;
        max-width: 190px;
        padding: -1rem 0.1rem;
    }

    .research-stat-card.prev {
        transform: translate(calc(-50% - 125px), -50%) scale(0.7);
        opacity: 0.5;
        z-index: 5;
    }

    .research-stat-card.next {
        transform: translate(calc(-50% + 125px), -50%) scale(0.7);
        opacity: 0.5;
        z-index: 5;
    }

    .research-stat-card.active {
        z-index: 10;
    }

    .research-stat-card.active .research-stat-number {
        font-size: 2rem;
    }

    .research-stat-card.active .research-stat-icon {
        width: 50px;
        height: 50px;
    }

    .research-stat-label {
        font-size: 0.78rem;
    }

    .research-stats-dots {
        display: flex;
    }
}

/* 
   MÉTHODOLOGIE DE RECHERCHE
    */
.methodology-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}
.methodology-wrapper {
    display: flex;
    gap: 3rem;
    align-items: stretch;
    background: #fff;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
}
.methodology-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Titre principal centré, en couleur */
.methodology-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1rem;
}

/* Sous-titre justifié */
.methodology-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    text-align: justify;
}

/* Grille */
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
}

/* Item avec icône */
.methodology-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

/* Icône ronde colorée */
.methodology-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    margin-top: 2px;
}
.methodology-item:nth-child(1) .methodology-icon { background: var(--primary); }
.methodology-item:nth-child(2) .methodology-icon { background: var(--accent); }
.methodology-item:nth-child(3) .methodology-icon { background: var(--dark); }
.methodology-item:nth-child(4) .methodology-icon { background: var(--primary); }

.methodology-icon svg {
    width: 20px;
    height: 20px;
}

/* Titre en couleur */
.methodology-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.methodology-item:nth-child(1) h3 { color: var(--primary); }
.methodology-item:nth-child(2) h3 { color: var(--accent); }
.methodology-item:nth-child(3) h3 { color: var(--dark); }
.methodology-item:nth-child(4) h3 { color: var(--primary); }

/* Texte justifié */
.methodology-item p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
    text-align: justify;
}

/* Image */
.methodology-visual {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}
.methodology-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.methodology-visual:hover img {
    transform: scale(1.03);
}

/* Responsive */
@media (max-width: 768px) {
    .methodology-wrapper {
        flex-direction: column;
        padding: 2rem 1.5rem;
    }
    .methodology-grid {
        grid-template-columns: 1fr;
    }
    .methodology-visual {
        aspect-ratio: 16/9;
    }
}

/* Grille 4 colonnes */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: start;
    margin-top: -30px;
}

/* 
   CARTE DE BASE
   Structure : texte en haut → photo en bas
 */
.team-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.team-card:hover {
    transform: translateY(-6px);
}

/* Bloc texte supérieur */
.team-card-top {
    text-align: center;
    padding: 1.5rem 1rem 1rem;
    background: var(--white);
}

/* Bloc texte inférieur (cartes inversées) */
.team-card-bottom {
    text-align: center;
    padding: 1rem 1rem 1.5rem;
    background: var(--white);
}

/* Nom */
.team-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.35rem;
}

/* Séparateur point bleu */
.team-dot {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    margin: 0.3rem auto 0.4rem;
}

/* Rôle */
.team-role {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 0.8rem;
}

/* Méta (cours / étudiants) */
.team-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.team-meta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-fast);
}

.team-meta-link:hover {
    color: var(--dark);
}

/* 
   ZONE PHOTO
 */
.team-card-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 10px;
}

/* Photo en haut pour les cartes inversées */
.team-card-photo--top {
    border-radius: 10px 10px 0 0;
}

.team-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.6s ease;
}

.team-card:hover .team-card-photo img {
    transform: scale(1.04);
}

/* 
   ICÔNES SOCIALES (superposées sur la photo)
 */
.team-socials {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.team-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    color: var(--gray-700);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all var(--transition-smooth);
}

.team-social-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(37,150,190,0.35);
}

/* 
   CARTE INVERSÉE (image en haut, texte en bas)
   Carte 2 et 4 – décalage vers le bas
 */
.team-card--elevated {
    margin-top: 2.5rem;
}

/* 
   RESPONSIVE
 */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .team-card--elevated {
        margin-top: 0;
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .team-card--elevated {
        margin-top: 0;
    }
}

/* ===== TUTELLES / PARTENAIRES ===== */
.tutelles-section {
    position: relative;
    padding: var(--section-padding) 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.06), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(20, 184, 166, 0.06), transparent 45%),
        #f8fafc;
    overflow: hidden;
}

.tutelles-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
}

.tutelles-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: #0f172a;
    margin: 12px 0;
    letter-spacing: -0.02em;
}

.tutelles-intro {
    text-align: center;
    color: #64748b;
    font-size: 17px;
    line-height: 1.6;
}

/* ---- Bandeau tutelles officielles ---- */
.tutelles-showcase {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 24px;
    padding: 36px 40px;
    margin-bottom: 56px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.showcase-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2563eb;
    background: #eff6ff;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 28px;
}

.showcase-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

.showcase-logo {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.showcase-logo img {
    display: block;
    max-height: 100%;
    max-width: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.showcase-logo:hover img {
    transform: scale(1.08);
}

/* ---- Filtres ---- */
.logos-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 48px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.filter-pill:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
    transform: translateY(-1px);
}

.filter-pill.active {
    background: linear-gradient(135deg, #2563eb, #0891b2);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.5);
}

.filter-count {
    font-size: 12px;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.06);
    color: inherit;
    padding: 2px 8px;
    border-radius: 999px;
    min-width: 20px;
    text-align: center;
}

.filter-pill.active .filter-count {
    background: rgba(255, 255, 255, 0.25);
}

/* ---- Grille ---- */
.logos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 1020px;
    margin: 0 auto;
    justify-items: center;
}

/* ---- Carte unifiée : même gabarit pour un logo réel ou des initiales ----
   Accent unique (couleur principale du site) pour toutes les catégories :
   pas de code couleur par type, la catégorie est lisible via le badge texte. */
.logo-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 20px 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    width: 100%;
    max-width: 190px;
}
.logo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px -10px rgba(15, 23, 42, 0.14);
    border-color: rgba(37, 99, 235, 0.25);
}

/* ---- Avatar : le logo reste libre (pas de cadre) ; les initiales, elles,
   ont besoin d'un fond puisqu'il n'y a pas de logo réel à afficher ---- */
.logo-card-avatar {
    width: 100%;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.logo-card-avatar img {
    max-width: 140px;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.logo-card-avatar--text {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #2563eb;
    background: #eef2ff;
}
.logo-card:hover .logo-card-avatar {
    transform: scale(1.06);
}

/* ---- Infos ---- */
.logo-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.logo-card-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
}

.logo-card-cat {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 999px;
}

/* Animation de filtrage */
.logo-card.is-hidden {
    display: none;
}

.logo-card.is-entering {
    animation: logoIn 0.4s ease both;
}

@keyframes logoIn {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.logos-empty {
    text-align: center;
    color: #94a3b8;
    font-size: 15px;
    padding: 40px 0;
}

/* ---- Ancrage international : crédit individuel (ex. ERS), traité comme sa
   propre sous-section — pas un logo dans le grid des tutelles, pour ne pas
   laisser croire à un partenariat institutionnel formel qui n'existe pas. ---- */
.credential-section {
    position: relative;
    padding: var(--section-padding) 0;
    background:
        radial-gradient(circle at 82% 15%, rgba(8, 145, 178, 0.08), transparent 45%),
        radial-gradient(circle at 12% 85%, rgba(37, 99, 235, 0.06), transparent 45%),
        #ffffff;
    overflow: hidden;
}

.credential-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}

.credential-section-title {
    font-size: clamp(26px, 3.6vw, 38px);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.015em;
    line-height: 1.28;
    margin-top: 14px;
}

/* Composition éditoriale large : photo + fiche côte à côte, plutôt que la
   petite carte centrée d'origine — pense à mettre à jour les sélecteurs
   [data-theme="dark"] ci-dessous si ces classes sont renommées. */
.network-feature {
    display: grid;
    grid-template-columns: minmax(200px, 320px) 1fr;
    align-items: center;
    gap: clamp(36px, 6vw, 88px);
    max-width: 1000px;
    margin: 0 auto;
}

.network-feature-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.network-feature-photo-ring {
    position: relative;
    width: clamp(200px, 22vw, 280px);
    height: clamp(200px, 22vw, 280px);
    border-radius: 50%;
    padding: 9px;
    background: conic-gradient(from 140deg, rgba(8, 145, 178, 0.4), rgba(37, 99, 235, 0.12), transparent 65%);
}

.network-feature-photo-ring::before {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px dashed rgba(8, 145, 178, 0.25);
}

.network-feature-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #eef2ff;
    border: 4px solid #ffffff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.network-feature-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.network-feature-visual:hover .network-feature-photo {
    transform: scale(1.045);
}

.network-feature-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary, #2596be);
    box-shadow: 0 0 0 5px rgba(37, 150, 190, 0.14);
}

.network-feature-dot--1 {
    top: 4%;
    right: 6%;
}

.network-feature-dot--2 {
    bottom: 8%;
    left: 2%;
    background: var(--accent, #2563eb);
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}

.network-feature-content {
    text-align: left;
}

.network-feature-name {
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}

.network-feature-role {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary, #2596be);
    background: rgba(37, 150, 190, 0.09);
    padding: 5px 14px;
    border-radius: 999px;
    margin: 0 0 18px;
}

.network-feature-text {
    color: var(--text-secondary, #475569);
    font-size: 15.5px;
    line-height: 1.75;
    max-width: 46em;
    margin: 0 0 24px;
}

.network-feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px 9px 10px;
    border-radius: 999px;
    background: var(--surface, #ffffff);
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.network-feature-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary, #2596be), var(--accent, #2563eb));
    color: #ffffff;
}

.network-feature-badge-label {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-primary, #0f172a);
}

@media (max-width: 860px) {
    .network-feature {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 32px;
    }

    .network-feature-content {
        text-align: center;
    }

    .network-feature-text {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 640px) {
    .network-feature-photo-ring {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .logos-filters {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .filter-pill {
        justify-content: center;
        width: 100%;
    }

    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        max-width: 460px;
    }

    .logo-card {
        max-width: 100%;
        padding: 16px 10px 12px;
        border-radius: 14px;
    }

    .logo-card-avatar {
        height: 52px;
    }

    .logo-card-avatar img {
        max-width: 110px;
    }

    .logo-card-avatar--text {
        width: 52px;
        height: 52px;
    }

    .logo-card-name {
        font-size: 0.8rem;
    }

    .logo-card-cat {
        font-size: 0.66rem;
    }
}

@media (max-width: 480px) {
    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-width: 320px;
    }
    
    .logo-card {
        padding: 12px 8px 10px;
        border-radius: 12px;
    }

    .logo-card-avatar {
        height: 44px;
    }

    .logo-card-avatar img {
        max-width: 90px;
    }

    .logo-card-avatar--text {
        width: 44px;
        height: 44px;
        border-radius: 11px;
    }

    .logo-card-name {
        font-size: 0.7rem;
    }

    .logo-card-cat {
        font-size: 0.58rem;
        padding: 3px 8px;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
        border-radius: 8px;
    }
}

.join-network {
    padding: var(--section-padding) 0;
    background: #f8fafc;
}

.join-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 300px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 41, 77, .14);
}

/* ── CÔTÉ GAUCHE (contenu) ── */

.join-content {
    background: linear-gradient(145deg, #00294d 0%, #00527c 100%);
    padding: 36px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Cercles décoratifs en arrière-plan */
.join-content::before,
.join-content::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.join-content::before {
    width: 320px;
    height: 320px;
    top: -80px;
    right: -80px;
    background: rgba(143, 211, 255, .07);
    border: 1px solid rgba(143, 211, 255, .1);
}
.join-content::after {
    width: 180px;
    height: 180px;
    bottom: -40px;
    left: -40px;
    background: rgba(143, 211, 255, .05);
    border: 1px solid rgba(143, 211, 255, .08);
}


/* Badge */
.join-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 16px;
    background: rgba(143, 211, 255, .12);
    border: 1px solid rgba(143, 211, 255, .25);
    border-radius: 40px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: #8fd3ff;
    margin-bottom: 24px;
}

.join-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8fd3ff;
    flex-shrink: 0;
}


/* Titre */
.join-content h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.18;
    color: #ffffff;
    margin: 0 0 20px;
    font-weight: 700;
}

.join-content h2 strong {
    color: #8fd3ff;
    font-weight: 700;
}


/* Description */
.join-content p {
    font-size: 1rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, .78);
    margin: 0 0 32px;
    max-width: 420px;
}


/* Liste des avantages */
.join-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 40px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .88rem;
    color: rgba(255, 255, 255, .88);
    line-height: 1.5;
}

.feature .icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    background: rgba(143, 211, 255, .15);
    border: 1px solid rgba(143, 211, 255, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: 700;
    color: #8fd3ff;
    margin-top: 1px;
}


/* Bouton CTA */
.join-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 16px 36px;
    background: #ffffff;
    color: #00294d;
    border-radius: 50px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: all .3s ease;
    position: relative;
    z-index: 1;
}

.join-btn svg {
    width: 16px;
    height: 16px;
    transition: transform .3s ease;
}

.join-btn:hover {
    transform: translateY(-3px);
    background: #e8f4ff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
}

.join-btn:hover svg {
    transform: translateX(4px);
}


/* ── CÔTÉ DROIT (image) ── */

.join-image {
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.join-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

.join-card:hover .join-image img {
    transform: scale(1.04);
}

/* Overlay image */
.join-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #00294d 0%, rgba(0, 41, 77, .2) 55%, transparent 100%);
    z-index: 1;
}

/* Barre de stats flottante */
.join-stats {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 10px;
    white-space: nowrap;
}

.join-stat {
    background: rgba(0, 20, 50, .72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(143, 211, 255, .18);
    border-radius: 14px;
    padding: 12px 20px;
    text-align: center;
    color: #fff;
}

.join-stat-num {
    display: block;
    font-family: "Playfair Display", serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #8fd3ff;
    line-height: 1;
    margin-bottom: 4px;
}

.join-stat-lbl {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .6);
}


/* ── RESPONSIVE ── */

@media (max-width: 900px) {
    .join-card {
        grid-template-columns: 1fr;
    }

    .join-image {
        min-height: 300px;
        order: -1;
    }

    .join-image::before {
        background: linear-gradient(to top, #00294d 0%, transparent 60%);
    }

    .join-content {
        padding: 44px 32px;
    }

    .join-features {
        grid-template-columns: 1fr;
    }

    .join-btn {
        align-self: center;
    }
}

@media (max-width: 520px) {
    .join-content {
        padding: 36px 24px;
    }

    .join-stats {
        flex-direction: column;
        left: 24px;
        right: 24px;
        transform: none;
    }
}

.reveal-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .join-network-box {
        padding: 2.5rem 2rem;
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .join-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .join-network-benefits {
        align-items: center;
    }

    .join-benefit {
        animation: benefitSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    @keyframes benefitSlideIn {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .join-glow {
        display: none;
    }

    .join-network-box::before {
        display: none;
    }

    .join-network-action {
        width: 100%;
    }

    .join-network-btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.8rem;
    }
}

@media (max-width: 768px) {
    .join-network-box {
        padding: 2rem 1.5rem;
        border-radius: 24px;
        gap: 1.5rem;
    }

    .join-title-gradient {
        font-size: 1.6rem;
    }

    .join-description {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    .join-network-benefits {
        gap: 0.5rem;
        width: 100%;
    }

    .join-benefit {
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
    }

    .join-network-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .join-network-box {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }

    .join-network-box:hover {
        transform: translateY(-3px) scale(1.005);
    }

    .join-title-gradient {
        font-size: 1.3rem;
    }

    .join-description {
        font-size: 0.82rem;
        margin-bottom: 1rem;
    }

    .join-network-tag {
        font-size: 0.6rem;
        padding: 0.3rem 0.8rem;
    }

    .join-pulse-dot {
        width: 6px;
        height: 6px;
    }

    .join-benefit {
        font-size: 0.75rem;
        gap: 0.4rem;
    }

    .join-benefit svg {
        width: 16px;
        height: 16px;
    }

    .join-network-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
        border-radius: 40px;
    }

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

    .join-availability {
        font-size: 0.65rem;
    }

    .join-dot-online {
        width: 6px;
        height: 6px;
    }

    .join-network-box::before {
        display: none;
    }

    .join-glow {
        display: none;
    }
}

@supports not (background-clip: text) {
    .join-title-gradient {
        background: none;
        -webkit-text-fill-color: var(--dark);
        color: var(--dark);
    }
}


.team-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 820px;
    margin: 0 auto 1.5rem;
}

.team-featured-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.team-featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(37, 150, 190, 0.3);
}

/* Photo zone */
.team-featured-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.team-featured-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.6s ease;
}

.team-featured-card:hover .team-featured-photo img {
    transform: scale(1.04);
}

/* Overlay socials */
.team-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 35, 60, 0.65) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1rem;
}

.team-featured-card:hover .team-featured-overlay {
    opacity: 1;
}

/* Badge rôle */
.team-featured-role-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(37, 150, 190, 0.9);
    color: #fff;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.team-featured-role-badge--coral {
    background: rgba(219, 93, 70, 0.9);
}

/* Bloc infos */
.team-featured-info {
    padding: 1.2rem 1.3rem 1.3rem;
}

.team-featured-identity {
    margin-bottom: 0.9rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--gray-100);
}

.team-featured-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.2rem;
}

.team-featured-spec {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Méta pills */
.team-featured-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.team-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--primary);
    background: rgba(37, 150, 190, 0.07);
    text-decoration: none;
    border: 1px solid rgba(37, 150, 190, 0.15);
    transition: background 0.2s, border-color 0.2s;
}

.team-meta-pill:hover {
    background: rgba(37, 150, 190, 0.14);
    border-color: rgba(37, 150, 190, 0.3);
}

.team-meta-pill--green {
    color: #0f6e56;
    background: rgba(15, 110, 86, 0.07);
    border-color: rgba(15, 110, 86, 0.15);
}

.team-meta-pill--green:hover {
    background: rgba(15, 110, 86, 0.14);
    border-color: rgba(15, 110, 86, 0.3);
}

/* Socials dans l'overlay */
.team-socials {
    display: flex;
    gap: 0.45rem;
}

.team-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--gray-700);
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.team-social-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.team-socials--sm .team-social-btn {
    width: 28px;
    height: 28px;
}


.team-compact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 820px;
    margin: 0 auto;
}

.team-compact-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.team-compact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: rgba(37, 150, 190, 0.25);
}

/* Photo compacte */
.team-compact-photo {
    position: relative;
    width: 110px;
    min-width: 110px;
    overflow: hidden;
    flex-shrink: 0;
}

.team-compact-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s ease;
}

.team-compact-card:hover .team-compact-photo img {
    transform: scale(1.05);
}

.team-compact-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 35, 60, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-compact-card:hover .team-compact-overlay {
    opacity: 1;
}

/* Infos compactes */
.team-compact-info {
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
}

.team-compact-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
}

.team-compact-role {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.team-compact-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.team-compact-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: var(--gray-600);
}

.team-compact-stat svg {
    color: var(--primary);
    flex-shrink: 0;
}


@media (max-width: 1024px) {
    .team-featured-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .team-compact-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .team-compact-card {
        flex-direction: column;
    }

    .team-compact-photo {
        width: 100%;
        min-width: unset;
        height: 180px;
    }

}
.teams-hero {
    position: relative;
    min-height: 320px;  
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: var(--header-h, 82px);
    background: var(--dark);
}
.teams-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.teams-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: teamsHeroPan 14s ease-in-out infinite;
}

@keyframes teamsHeroPan {
    0%   { transform: scale(1);    object-position: center top; }
    20%  { transform: scale(1.08); object-position: center bottom; }
    40%  { transform: scale(1);    object-position: center center; }
    60%  { transform: scale(1.05); object-position: center top; }
    80%  { transform: scale(1);    object-position: center center; }
    100% { transform: scale(1);    object-position: center top; }
}

/* Overlay */
.teams-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.45);
}

.teams-hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 60%;
    height: 180%;
    background: radial-gradient(
        ellipse,
        rgba(255, 255, 255, 0.04) 0%,  
        transparent 65%
    );
    z-index: 1;
    pointer-events: none;
}

/* Contenu */
.teams-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 30px 20px;  
    width: 100%;
}

/* Badge */
.teams-hero-eyebrow {
    display: inline-block;
    background: #1f82a8;
    border: 1px #1f82a8 solid;
    color: var(--white);
    padding: 5px 18px;  
    border-radius: 50px;
    font-size: 0.7rem;  
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;  
    backdrop-filter: blur(4px);
}

/* Titre */
.teams-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2.4rem);  
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 4px 30px rgba(56, 43, 252, 0.3);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 10px;  
}

/* Sous-titre */
.teams-hero-subtitle {
    text-align: center;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 600px;  
    margin: 0 auto 20px;  
    line-height: 1.5;  
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 2px 18px rgba(0, 0, 0, 0.45);
}

/* Boutons CTA */
.teams-hero-ctas {
    display: flex;
    gap: 14px;  
    justify-content: center;
    flex-wrap: wrap;
}

.teams-hero-ctas .btn-primary {
    position: relative;
    display: inline-block;
    text-align: center;
    padding: 0.6rem 1.5rem;
    background: var(--pub-blue); color: #fff;
    text-decoration: none; border-radius: var(--pub-r-pill);
    font-weight: 600; font-size: 0.9rem;
    border: none; cursor: pointer;
    box-shadow: 0 4px 15px rgba(37,150,190,.3);
    transition: all .25s;
}
/* Icône posée dans le padding existant (pas d'espace ajouté) : le texte reste
   centré sur la largeur réelle du bouton, symétrique des deux côtés. */
.teams-hero-ctas .btn-primary .icon-md {
    position: absolute;
    left: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
}

.teams-hero-ctas .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem; 
    padding: 0.6rem 1.5rem;  
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-smooth);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 0.9rem;  
    backdrop-filter: blur(4px);
}

.teams-hero-ctas .btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
    text-decoration: none;
}

.teams-hero-ctas .icon-md {
    width: 18px;  
    height: 18px;
}

/* Responsive */
@media (max-width: 1024px) {
    .teams-hero {
        min-height: 280px;  
    }
}

@media (max-width: 768px) {
    .teams-hero {
        min-height: 240px; 
        margin-top: 70px;
    }

    .teams-hero-content {
        padding: 20px 16px;  
    }

    .teams-hero-eyebrow {
        font-size: 0.6rem;
        padding: 4px 14px;
        margin-bottom: 10px;
    }

    .teams-hero-title {
        font-size: clamp(1.2rem, 5vw, 1.6rem);  
        letter-spacing: 0;
        margin-bottom: 8px;
    }

    .teams-hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 16px;  
        max-width: 100%;
    }

    .teams-hero-ctas {
        flex-direction: column;
        align-items: center;
        gap: 10px; 
    }

    .teams-hero-ctas .btn-primary,
    .teams-hero-ctas .btn-secondary {
        width: auto;
        max-width: 280px;  
        justify-content: center;
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .teams-hero {
        min-height: 200px;  
    }

    .teams-hero-content {
        padding: 16px 12px; 
    }

    .teams-hero-eyebrow {
        font-size: 0.55rem;
        padding: 3px 12px;
        letter-spacing: 1px;
        margin-bottom: 8px;
    }

    .teams-hero-title {
        font-size: 1.1rem;  
        margin-bottom: 6px;
    }

    .teams-hero-subtitle {
        font-size: 0.7rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .teams-hero-ctas {
        gap: 8px;
    }

    .teams-hero-ctas .btn-primary,
    .teams-hero-ctas .btn-secondary {
        max-width: 220px;
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
    }

    .teams-hero-ctas .icon-md {
        width: 14px;
        height: 14px;
    }
}

.team-section {
    padding: 0;
    background: #f7f9fc;
}

.team-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.team-section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.team-section-intro {
    text-align: center;
    font-size: 1rem;
    color: var(--gray-500);
    max-width: 550px;
    margin: 0.5rem auto 0;
    line-height: 1.6;
}

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

.team-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: rgba(37, 150, 190, 0.2);
}

.team-card-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #e8ecf0;
}

.team-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.6s ease;
}

.team-card:hover .team-card-photo img {
    transform: scale(1.05);
}

.team-card-socials {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.team-card:hover .team-card-socials {
    opacity: 1;
    bottom: 1.5rem;
}

.team-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--gray-700);
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.team-social-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 150, 190, 0.35);
}

.team-card-body {
    padding: 1.2rem 1.2rem 1.5rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.team-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.2rem;
    transition: color 0.3s ease;
}

.team-card:hover .team-card-name {
    color: var(--primary);
}

.team-card-role {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: rgba(37, 150, 190, 0.08);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    margin: 0 auto 0.4rem;
}

.team-card-spec {
    font-size: 0.82rem;
    color: var(--gray-500);
    line-height: 1.4;
}

.team-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team-carousel-container {
    overflow: hidden;
    flex: 1 1 0;
    min-width: 0;
    padding: 0.5rem 0;
}

.team-carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.team-carousel-track .team-card {
    flex: 0 0 auto;
    min-width: 0;
}

/* Boutons de navigation */
.team-nav-btn {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(37, 150, 190, 0.2);
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(4px);
}

.team-nav-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(37, 150, 190, 0.25);
}

.team-nav-btn:active {
    transform: scale(0.95);
}

.team-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.team-nav-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    border-color: rgba(37, 150, 190, 0.2);
}

/* Dots indicateurs */
.team-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2rem;
}

.team-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--gray-300);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0;
}

.team-dot.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(37, 150, 190, 0.3);
}

.team-dot:hover:not(.active) {
    background: var(--gray-400);
    transform: scale(1.1);
}

@media (max-width: 768px) {

    .team-nav-btn {
        width: 40px;
        height: 40px;
    }

    .team-nav-btn svg {
        width: 20px;
        height: 20px;
    }

    .team-carousel-wrapper {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {

    .team-nav-btn {
        width: 36px;
        height: 36px;
    }

    .team-nav-btn svg {
        width: 18px;
        height: 18px;
    }
}
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .team-section-header {
        margin-bottom: 2rem;
    }

    .team-section-title {
        font-size: 1.5rem;
    }

    .team-section-intro {
        font-size: 0.85rem;
    }

    .team-card-body {
        padding: 1rem 1rem 1.2rem;
    }

    .team-card-name {
        font-size: 1rem;
    }

    .team-card-spec {
        font-size: 0.75rem;
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .team-card-photo {
        aspect-ratio: 4 / 5;
    }

    .team-social-btn {
        width: 32px;
        height: 32px;
    }

    .team-social-btn svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 400px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* ==========================================
   MODE SOMBRE — Overrides globaux (app.css)
   ========================================== */

[data-theme="dark"] body { color-scheme: dark; }

/* --- Fonds "carte blanche" --- */
[data-theme="dark"] .card,
[data-theme="dark"] .stats-section,
[data-theme="dark"] .stats-ticker,
[data-theme="dark"] .stats-ticker::before,
[data-theme="dark"] .stats-ticker::after,
[data-theme="dark"] .mtl-section,
[data-theme="dark"] .rx-page,
[data-theme="dark"] .rx-wp,
[data-theme="dark"] .rx-method-card,
[data-theme="dark"] .news-section,
[data-theme="dark"] .news-card-new,
[data-theme="dark"] .news-list-section,
[data-theme="dark"] .news-footer-btn,
[data-theme="dark"] .research-axis-card,
[data-theme="dark"] .filter-tag,
[data-theme="dark"] .page-btn,
[data-theme="dark"] .form-container,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .fhu-obj-card,
[data-theme="dark"] .fhu-obj-detail,
[data-theme="dark"] .fhu-governance-section,
[data-theme="dark"] .fhu-governance-card,
[data-theme="dark"] .fhu-legend,
[data-theme="dark"] .fhu-card,
[data-theme="dark"] .fhu-card-content,
[data-theme="dark"] .fhu-pagination-btn,
[data-theme="dark"] .fhu-page-btn,
[data-theme="dark"] .research-stats-section,
[data-theme="dark"] .research-stat-card,
[data-theme="dark"] .methodology-wrapper,
[data-theme="dark"] .team-card,
[data-theme="dark"] .team-card-top,
[data-theme="dark"] .team-card-bottom,
[data-theme="dark"] .team-card-photo,
[data-theme="dark"] .team-featured-card,
[data-theme="dark"] .team-compact-card,
[data-theme="dark"] .tutelles-showcase,
[data-theme="dark"] .logo-card,
[data-theme="dark"] .network-feature-badge,
[data-theme="dark"] .join-network-box,
[data-theme="dark"] .team-nav-btn {
    background: var(--surface) !important;
    border-color: var(--border-default) !important;
}

/* Le libellé du ticker de stats ("Publications", "Chercheurs"...) utilisait
   un gris fixe (--gray-600) sans variante sombre, donc peu lisible sur le
   nouveau fond sombre du ticker ci-dessus. */
[data-theme="dark"] .stat-chip-label {
    color: var(--text-secondary) !important;
}

/* --- Fonds "section pâle" --- */
[data-theme="dark"] .rx-program,
[data-theme="dark"] .research-axes-section,
[data-theme="dark"] .contact-section,
[data-theme="dark"] .fhu-history-section,
[data-theme="dark"] .fhu-perimeter-section,
[data-theme="dark"] .fhu-objectives,
[data-theme="dark"] .research-page-hero,
[data-theme="dark"] .tutelles-section,
[data-theme="dark"] .join-network,
[data-theme="dark"] .join-network-section,
[data-theme="dark"] .team-section,
[data-theme="dark"] .credential-section,
[data-theme="dark"] .rx-context-aside {
    background: var(--surface-soft) !important;
}
[data-theme="dark"] .fhu-all-section {
    background: var(--bg) !important;
}
[data-theme="dark"] .fhu-perimeter-map .leaflet-tile-pane {
    filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.9);
}
[data-theme="dark"] .logo-card-cat,
[data-theme="dark"] .network-feature-role {
    background: var(--surface-soft) !important;
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .network-feature-badge-label {
    color: var(--text-primary) !important;
}
[data-theme="dark"] .logo-card-avatar--text {
    background: var(--surface-soft) !important;
    color: var(--primary) !important;
}

/* --- Titres foncés codés en dur --- */
[data-theme="dark"] .news-head-title,
[data-theme="dark"] .news-card-content h3,
[data-theme="dark"] .research-axis-card h3,
[data-theme="dark"] .contact-info-title,
[data-theme="dark"] .contact-form-title,
[data-theme="dark"] .contact-card-body h4,
[data-theme="dark"] .fhu-obj-header h2,
[data-theme="dark"] .research-stat-number,
[data-theme="dark"] .team-featured-name,
[data-theme="dark"] .team-compact-name,
[data-theme="dark"] .tutelles-title,
[data-theme="dark"] .logo-card-name,
[data-theme="dark"] .join-network-box h2,
[data-theme="dark"] .credential-section-title,
[data-theme="dark"] .form-field label {
    color: var(--text-primary) !important;
}

/* --- Paragraphes / textes secondaires codés en dur --- */
[data-theme="dark"] .rx-fact-txt,
[data-theme="dark"] .rx-program-head p,
[data-theme="dark"] .rx-wp-lead,
[data-theme="dark"] .rx-wp-objs li,
[data-theme="dark"] .rx-method-card p,
[data-theme="dark"] .news-card-content p,
[data-theme="dark"] .research-axis-card p,
[data-theme="dark"] .contact-card-body p,
[data-theme="dark"] .contact-card-sub,
[data-theme="dark"] .fhu-intro p,
[data-theme="dark"] .fhu-obj-subtitle,
[data-theme="dark"] .fhu-obj-card p,
[data-theme="dark"] .fhu-obj-item-body p,
[data-theme="dark"] .fhu-governance-card p,
[data-theme="dark"] .fhu-governance-card ul,
[data-theme="dark"] .fhu-all-subtitle,
[data-theme="dark"] .fhu-legend-item,
[data-theme="dark"] .fhu-info-line,
[data-theme="dark"] .fhu-counter,
[data-theme="dark"] .research-stat-label,
[data-theme="dark"] .methodology-subtitle,
[data-theme="dark"] .methodology-item p,
[data-theme="dark"] .team-role,
[data-theme="dark"] .team-featured-spec,
[data-theme="dark"] .team-compact-role,
[data-theme="dark"] .tutelles-intro,
[data-theme="dark"] .join-network-box p,
[data-theme="dark"] .team-section-title,
[data-theme="dark"] .team-section-intro,
[data-theme="dark"] .team-card-name,
[data-theme="dark"] .team-card-spec,
[data-theme="dark"] .news-section-head h2 {
    color: var(--text-secondary) !important;
}

/* --- Textes très discrets (muted) --- */
[data-theme="dark"] .rx-wp-sub,
[data-theme="dark"] .news-search,
[data-theme="dark"] .news-empty-state,
[data-theme="dark"] .filter-tag,
[data-theme="dark"] .page-btn,
[data-theme="dark"] .fhu-info-line small,
[data-theme="dark"] .fhu-tag.more,
[data-theme="dark"] .logos-empty {
    color: var(--text-muted) !important;
}
[data-theme="dark"] .news-search input {
    color: var(--text-primary) !important;
}
/* Le fond de la barre de recherche restait gris clair fixe (#f3f5f7) : seule
   sa couleur de texte/icône avait été adaptée au thème sombre, pas son fond. */
[data-theme="dark"] .news-search {
    background: var(--surface-soft) !important;
}
/* Le filet de sécurité ci-dessus (background: var(--surface)) s'appliquait
   aussi au tag actif, qui devenait indiscernable des autres. */
[data-theme="dark"] .filter-tag.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

/* --- Formulaire de contact --- */
[data-theme="dark"] .form-field input,
[data-theme="dark"] .form-field select,
[data-theme="dark"] .form-field textarea {
    background: var(--surface-soft) !important;
    border-color: var(--border-default) !important;
    color: var(--text-primary) !important;
}
[data-theme="dark"] .form-field input::placeholder,
[data-theme="dark"] .form-field textarea::placeholder {
    color: var(--text-muted) !important;
}

/* --- Petites variables locales à réécrire (.news-list-section) --- */
[data-theme="dark"] .news-list-section {
    --pg-surface: var(--surface);
    --pg-surface-hover: var(--surface-soft);
    --pg-ink: var(--text-primary);
    --pg-slate: var(--text-muted);
    --pg-line: var(--border-default);
}

/* --- fhu-obj-img-col dégradé blanc --- */
[data-theme="dark"] .fhu-obj-img-col::after {
    background: linear-gradient(to right, transparent 55%, var(--surface) 100%) !important;
}
@media (max-width: 768px) {
    [data-theme="dark"] .fhu-obj-img-col::after {
        background: linear-gradient(to bottom, transparent 60%, var(--surface) 100%) !important;
    }
}

/* --- Dots / petits éléments décoratifs gris clair --- */
[data-theme="dark"] .research-stats-dot,
[data-theme="dark"] .team-dot,
[data-theme="dark"] .team-card-photo {
    background: var(--surface-strong) !important;
}

/* --- FILET DE SÉCURITÉ : tous les titres, quelle que soit la section --- */
[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(--text-primary) !important;
}

/* Exceptions : titres qui doivent RESTER blancs (posés sur une image de fond, pas sur le fond de la page) */
[data-theme="dark"] .rx-hero h1,
[data-theme="dark"] .fhu-hero-title,
[data-theme="dark"] .news-hero-title,
[data-theme="dark"] .contact-hero-title,
[data-theme="dark"] .teams-hero-title,
[data-theme="dark"] .research-page-hero-title,
[data-theme="dark"] .fhu-history-header h2,
[data-theme="dark"] .join-content h2 {
    color: #ffffff !important;
}

/* Titres des tuiles mission (posés sur une photo) : gardent leur couleur de marque */
[data-theme="dark"] .mtl-tile:nth-child(1) .mtl-content h3 { color: #5ec8ea !important; }
[data-theme="dark"] .mtl-tile:nth-child(2) .mtl-content h3 { color: #ff8b70 !important; }
[data-theme="dark"] .mtl-tile:nth-child(3) .mtl-content h3 { color: #9fc4d8 !important; }

/* Exception : les toasts SweetAlert2 (confirmation newsletter, formulaires
   contact/don) gardent leur popup blanche par défaut quel que soit le thème
   de la page — le filet de sécurité ci-dessus rendait leur titre (un <h2>)
   presque invisible dessus. */
[data-theme="dark"] .swal2-title {
    color: #1f2937 !important;
}
/* ===== DARK MODE pour ce fichier (variables --c-light-*) ===== */
[data-theme="dark"] .fhu-governance-section h2,
[data-theme="dark"] .fhu-all-header h2,
[data-theme="dark"] .fhu-card-acronym,
[data-theme="dark"] .fhu-objective-card h3,
[data-theme="dark"] .fhu-details-item h4,
[data-theme="dark"] .fhu-governance-card h3 {
    color: rgb(104, 201, 236) !important;
}
[data-theme="dark"] .fhu-perimeter-text h2 {
    color: #fff !important;
}
[data-theme="dark"] .fhu-obj-card--blue  h3 { color: #2596be !important; }
[data-theme="dark"] .fhu-obj-card--coral h3 { color: #db5d46 !important; }
[data-theme="dark"] .fhu-obj-card--dark  h3 { color: #305c72 !important; }
[data-theme="dark"] .fhu-obj-item--blue  .fhu-obj-item-body h4 { color: #2596be !important; }
[data-theme="dark"] .fhu-obj-item--coral .fhu-obj-item-body h4 { color: #db5d46 !important; }
[data-theme="dark"] .fhu-obj-item--dark  .fhu-obj-item-body h4 { color: #305c72 !important; }
[data-theme="dark"] .fhu2-tl2-card h3 { color: rgb(104, 201, 236) !important; }

[data-theme="dark"] .fhu-perimeter-text p,
[data-theme="dark"] .fhu-objective-card p,
[data-theme="dark"] .fhu-details-item p,
[data-theme="dark"] .fhu-governance-card p,
[data-theme="dark"] .fhu-governance-card li,
[data-theme="dark"] .fhu-info-line,
[data-theme="dark"] .fhu-legend-item,
[data-theme="dark"] .fhu-counter,
[data-theme="dark"] .fhu-card-title {
    color: var(--text-secondary, #cbd5e1) !important;
}

[data-theme="dark"] .fhu-info-line small {
    color: var(--text-muted, #94a3b8) !important;
}

/* Cartes / conteneurs qui doivent aussi passer en surface sombre */
[data-theme="dark"] .fhu-card,
[data-theme="dark"] .fhu-objective-card,
[data-theme="dark"] .fhu-details-card,
[data-theme="dark"] .fhu-governance-card,
[data-theme="dark"] .fhu-legend,
[data-theme="dark"] .fhu-pagination-btn,
[data-theme="dark"] .fhu-page-btn {
    background: var(--surface, #111827) !important;
    border-color: var(--border-default, rgba(148,163,184,0.24)) !important;
    color: var(--text-primary, #e2e8f0) !important;
}
[data-theme="dark"] .fhu-card-logo-link,
[data-theme="dark"] .fhu-card-logo-link:hover {
    background: transparent !important;
    border-bottom-color: var(--border-default) !important;
}
[data-theme="dark"] .fhu-card-logo-link img {
    width: auto !important;
    height: auto !important;
    max-width: 80%;
    max-height: 56px;
    background: transparent !important;
    border-radius: 0;
    padding: 0;
    box-sizing: content-box;
}
[data-theme="dark"] .fhu-page-btn.active {
    background: var(--primary, #2596be) !important;
    color: #fff !important;
}
[data-theme="dark"] .fhu-pagination-btn:hover:not(:disabled) {
    background: var(--primary, #2596be) !important;
    color: #fff !important;
}
[data-theme="dark"] .fhu-governance-card li {
    background: var(--surface-soft, #1f2937) !important;
    color: var(--text-secondary, #cbd5e1) !important;
    border-left-color: var(--primary, #2596be) !important;
}
[data-theme="dark"] .news-footer-btn {
    color: var(--accent, #db5d46) !important;
    background: var(--surface, #111827) !important;
    border-color: rgba(219, 93, 70, 0.35) !important;
}
[data-theme="dark"] .news-footer-btn:hover {
    background: rgba(219, 93, 70, 0.1) !important;
    border-color: var(--accent, #db5d46) !important;
}
[data-theme="dark"] .fhu-link.disabled {
    background: var(--surface-soft, #1f2937) !important;
    border: 1px dashed var(--border-default, rgba(148,163,184,0.35)) !important;
    color: var(--text-muted, #94a3b8) !important;
}

/* ==========================================
   PAGE MENTIONS LÉGALES
   ========================================== */
.legal-hero {
    position: relative;
    margin-top: var(--header-h, 82px);
    padding: 4.5rem 0 4rem;
    background:
        radial-gradient(ellipse at top left, rgba(37, 150, 190, 0.35), transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(219, 93, 70, 0.22), transparent 50%),
        var(--gray-900);
    overflow: hidden;
    text-align: center;
}
[data-theme="dark"] .legal-hero {
    background:
        radial-gradient(ellipse at top left, rgba(59, 130, 246, 0.3), transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(249, 115, 22, 0.18), transparent 50%),
        var(--header-footer-dark-bg, #2c5d87);
}

.legal-hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.legal-hero-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 5px 18px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.legal-hero-title {
    color: #fff;
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    margin-bottom: 0.75rem;
}

.legal-hero-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
}

.legal-content {
    padding: 4rem 0 5rem;
}

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

.legal-grid-single {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin: 0 auto;
}

.legal-card {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    padding: 1.75rem;
    background: var(--surface, #fff);
    border-radius: 18px;
    border: 1px solid var(--border-default, #f0f0f0);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.legal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.legal-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: rgba(37, 150, 190, 0.1);
    color: var(--primary, #2596be);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.legal-card-icon i {
    width: 22px;
    height: 22px;
}
[data-theme="dark"] .legal-card-icon {
    background: rgba(59, 130, 246, 0.16);
}

.legal-card-body h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.legal-card-body p {
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: left;
    font-size: 0.92rem;
}

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

@media (max-width: 768px) {
    .legal-hero {
        padding: 3rem 0 2.5rem;
        margin-top: 70px;
    }
    .legal-content {
        padding: 2.5rem 0 3rem;
    }
    .legal-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .legal-card-body p {
        text-align: left;
    }
}

/* ----- BOUTON RETOUR EN HAUT ----- */
#backToTop {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 3rem;
    height: 3rem;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s ease;
    z-index: 999;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    background: var(--primary-hover, var(--primary));
    transform: translateY(-2px);
}

[data-theme="dark"] #backToTop {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

@media (max-width: 768px) {
    #backToTop {
        right: 1rem;
        bottom: 1rem;
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1rem;
    }
}

/* ==========================================
   TROMBINOSCOPE ÉQUIPE (/equipes) — annuaire
   immersif quasi pleine largeur : organisation
   de l'équipe par niveaux hiérarchiques (liés
   par une ligne discrète) + fiche de profil
   détaillée, sticky, à droite. Réutilise les
   tokens --primary/--dark/--gray-* et les
   composants .team-card déjà stylés plus haut
   (photo, nom, rôle, hover).
   ========================================== */

.team-directory-wrap {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* L'organigramme reste seul maître de la mise en page : il est toujours
   centré dans la page, que le panneau de détails (en position fixe,
   au-dessus du contenu, voir .team-profile-panel plus bas) soit ouvert ou
   non. Cliquer sur un membre n'affecte donc jamais sa position/largeur. */
.team-directory {
    position: relative;
}

.team-directory-list {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    min-width: 0;
    max-width: 1500px;
    margin: 0 auto;
}

.team-level {
    position: relative;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Tronc vertical qui descend du bas de ce niveau vers le suivant, dans
   l'espace laissé par le "gap" du conteneur flex — inspiré d'un
   organigramme d'équipe moderne, réduit à l'essentiel. */
.team-level.has-next-level::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -3rem;
    width: 2px;
    height: 3rem;
    transform: translateX(-50%);
    background: var(--gray-300, #d7dce2);
}

.team-level-label {
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.55rem;
    margin: 0 0 1.5rem;
    text-align: center;
}

.team-level-num {
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--level-color, var(--primary));
    letter-spacing: 0.04em;
}

.team-level-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
}

.team-level-count {
    font-size: 0.78rem;
    color: var(--gray-400);
    background: var(--gray-50, #f3f5f7);
    border-radius: 20px;
    padding: 0.1rem 0.6rem;
}

.team-empty {
    text-align: center;
    color: var(--gray-500);
    padding: 2rem 0;
}

/* Rangée d'un niveau hiérarchique : les cartes "pilule" sont centrées (comme
   les fratries d'un organigramme d'équipe) et passent à la ligne pour les
   niveaux qui comptent beaucoup de membres. */
.team-pill-row {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.75rem 2.5rem;
    padding-top: 1.75rem;
}

/* Premier niveau (racine de l'organigramme) : rien ne se connecte
   au-dessus de sa carte, inutile de réserver l'espace des ramifications. */
.team-pill-row.is-root {
    padding-top: 0;
}

.team-pill-row.is-root .team-card-slot::before,
.team-pill-row.is-root .team-card-slot::after {
    display: none;
}

/* Barre de ramification horizontale, reliant entre elles les cartes d'un
   même niveau lorsqu'il y en a plusieurs (fratrie) — se raccorde
   visuellement au tronc vertical qui descend du niveau parent. */
.team-pill-row.has-siblings::before {
    content: '';
    position: absolute;
    top: 0.6rem;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--gray-300, #d7dce2);
}

.team-card-slot {
    position: relative;
    display: flex;
    justify-content: center;
}

/* Petite ramification verticale + nœud creux au-dessus de chaque carte,
   descendant depuis la barre horizontale (ou directement depuis le tronc
   vertical quand le niveau n'a qu'un seul membre). */
.team-card-slot::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -1.15rem;
    width: 2px;
    height: 1.15rem;
    transform: translateX(-50%);
    background: var(--gray-300, #d7dce2);
}

.team-card-slot::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -1.35rem;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background: var(--bg, #fff);
    border: 2px solid var(--level-color, var(--primary));
}

/* Carte "pilule" : photo ronde encochée dans une capsule blanche portant le
   nom et la fonction — inspirée d'un organigramme d'équipe moderne, adaptée
   à l'identité du site (teinte par niveau hiérarchique via --level-color). */
.team-directory .team-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 0 1 260px;
    min-width: 200px;
    max-width: 260px;
    min-height: 80px;
    background: #fff;
    border: none;
    border-radius: 999px 18px 18px 999px;
    box-shadow: 0 3px 14px rgba(15, 23, 42, 0.06);
    padding: 0.5rem 1.4rem 0.5rem 0.5rem;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.team-directory .team-card:hover,
.team-directory .team-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.team-directory .team-card:focus-visible {
    outline: 3px solid var(--level-color, var(--primary));
    outline-offset: 3px;
}

.team-directory .team-card.is-selected {
    box-shadow: 0 0 0 3px rgba(37, 150, 190, 0.3), 0 14px 30px rgba(15, 23, 42, 0.12);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--level-color, var(--primary)) 30%, transparent), 0 14px 30px rgba(15, 23, 42, 0.12);
}

.team-directory .team-card.is-selected .team-card-name,
.team-directory .team-card:hover .team-card-name {
    color: var(--level-color, var(--primary));
}

.team-directory .team-card-photo {
    position: relative;
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    overflow: visible;
    background: none;
    aspect-ratio: auto;
}

.team-directory .team-card-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid var(--level-color, var(--primary));
    transition: transform 0.4s ease;
}

.team-directory .team-card:hover .team-card-photo img {
    transform: scale(1.06);
}

/* Badge numéroté, à cheval sur le bord de la photo — purement décoratif
   (ordre d'apparition), comme dans l'organigramme de référence. */
.team-card-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border-radius: 50%;
    background: var(--level-color, var(--primary));
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.team-directory .team-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 0 0 1rem;
    text-align: left;
    flex: 1 1 auto;
    min-width: 0;
}

.team-directory .team-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-directory .team-card-role {
    display: block;
    font-size: 0.76rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--gray-500);
    background: none;
    padding: 0;
    margin: 0.15rem 0 0;
    border-radius: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Panneau de profil : sticky pour rester visible pendant le défilement du
   trombinoscope, et scrollable indépendamment si le contenu est long. */
/* Panneau flottant (drawer) : position fixe par rapport à la fenêtre, donc
   totalement indépendante du flux de l'organigramme — l'ouvrir/le fermer ne
   déplace ni ne redimensionne jamais la colonne de gauche. Masqué hors
   écran par défaut, il glisse depuis la droite (desktop) ou depuis le bas
   (mobile/tablette, voir media queries) lorsqu'un membre est sélectionné. */
.team-profile-panel {
    position: fixed;
    top: 6.5rem;
    right: 1.5rem;
    width: 380px;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    overflow-x: hidden;
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
    padding: 0;
    z-index: 60;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(16px);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, visibility 0s linear 0.3s;
}

.team-profile-panel.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, visibility 0s;
}

.team-profile {
    position: relative;
    animation: teamProfileIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    padding-bottom: 1.85rem;
}

@keyframes teamProfileIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.team-profile-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.team-profile-close:hover {
    background: #fff;
    color: var(--dark);
}

/* Grande photo rectangulaire en tête de fiche (façon annuaire d'entreprise
   moderne), calée sur les coins arrondis du panneau. */
.team-profile-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    background: var(--gray-50, #f3f5f7);
}

.team-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.team-profile-header {
    padding: 1.5rem 1.85rem 0;
    text-align: left;
}

.team-profile-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    text-align: left;
    margin: 0;
}

/* Petit trait coloré (couleur du niveau hiérarchique du membre) sous le
   nom — reprend le code couleur déjà utilisé dans l'organigramme. */
.team-profile-name-accent {
    display: block;
    width: 42px;
    height: 3px;
    border-radius: 2px;
    margin: 0.5rem 0 0.65rem;
    background: var(--level-color, var(--primary));
}

.team-profile-role {
    display: block;
    text-align: left;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--dark);
}

.team-profile-responsibility {
    display: block;
    text-align: left;
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 0.15rem;
}

.team-profile-meta {
    text-align: left;
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
    margin: 0.3rem 0 0;
}

/* Bandeau d'actions rapides (uniquement les contacts réellement renseignés
   pour ce membre — email, LinkedIn, ORCID). */
.team-profile-quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    padding: 1.35rem 1.85rem 0;
}

.team-profile-quicklink {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-500);
    text-decoration: none;
}

.team-profile-quicklink-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gray-50, #f3f5f7);
    color: var(--dark);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.team-profile-quicklink:hover .team-profile-quicklink-icon {
    background: var(--level-color, var(--primary));
    color: #fff;
    transform: translateY(-2px);
}

.team-profile-section {
    margin-top: 1.4rem;
    padding: 0 1.85rem;
}

.team-profile-section h4 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
}

.team-profile-section p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--gray-700, #374151);
    white-space: pre-line;
}

.team-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.team-profile-tag {
    font-size: 0.75rem;
    color: var(--dark);
    background: var(--gray-50, #f3f5f7);
    border: 1px solid var(--gray-100, #eef1f4);
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
}

.team-profile-tag--wp {
    color: var(--primary);
    background: rgba(37, 150, 190, 0.08);
    border-color: rgba(37, 150, 190, 0.15);
}

@media (max-width: 900px) {
    /* Sous 900px, le tiroir latéral devient une feuille ancrée en bas de
       l'écran (bottom sheet) : plus confortable au doigt et ne risque plus
       de chevaucher l'organigramme sur les largeurs moyennes. */
    .team-profile-panel {
        top: auto;
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        max-height: 78vh;
        border-radius: 22px 22px 0 0;
        transform: translateY(100%);
    }

    .team-profile-panel.is-open {
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .team-directory-wrap {
        padding: 0 1.25rem;
    }

    .team-pill-row {
        gap: 0.85rem;
    }

    .team-directory .team-card {
        flex: 1 1 100%;
        max-width: none;
        min-height: 76px;
    }

    .team-directory .team-card-photo {
        width: 56px;
        height: 56px;
    }

    .team-level-label {
        gap: 0.5rem;
    }

    .team-profile-panel {
        padding: 1.5rem 1.25rem;
    }
}

[data-theme="dark"] .team-profile-panel {
    background: var(--surface) !important;
    border-color: var(--border-default) !important;
}

[data-theme="dark"] .team-level-name,
[data-theme="dark"] .team-profile-name,
[data-theme="dark"] .team-profile-role,
[data-theme="dark"] .team-profile-responsibility,
[data-theme="dark"] .team-profile-section p {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .team-level-count {
    background: var(--surface-soft) !important;
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .team-profile-meta,
[data-theme="dark"] .team-profile-section h4,
[data-theme="dark"] .team-profile-quicklink,
[data-theme="dark"] .team-empty {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .team-profile-quicklink-icon {
    background: var(--surface-soft) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .team-profile-close {
    background: rgba(15, 23, 42, 0.7) !important;
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .team-profile-tag {
    background: var(--surface-soft) !important;
    border-color: var(--border-default) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .team-directory .team-card {
    background: var(--surface) !important;
    box-shadow: none !important;
    border: 1px solid var(--border-default) !important;
}

[data-theme="dark"] .team-directory .team-card-name {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .team-directory .team-card-role {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .team-card-slot::after {
    background: var(--surface) !important;
}

[data-theme="dark"] .team-level.has-next-level::after,
[data-theme="dark"] .team-pill-row.has-siblings::before,
[data-theme="dark"] .team-card-slot::before {
    background: var(--border-default) !important;
}
