/* ==========================================================================
   APL — thème Ghost custom — Abstract27
   Fichier unique, organisé par sections. Pas de build pipeline.
   --------------------------------------------------------------------------
   SOMMAIRE
   1.  Variables & tokens
   2.  Reset & base
   3.  Typographie
   4.  Layout & conteneurs
   5.  Accessibilité (skip link, focus)
   6.  Boutons
   7.  Formulaires
   8.  Header & navigation
   9.  Footer
   10. Hero & breadcrumb
   11. Cartes (actu-card, ecole-mini)
   12. CTA strip
   13. Sidebar
   14. Prose (contenu éditeur Ghost) + cartes Koenig
   15. Pagination
   16. Page d'erreur
   17. Responsive
   ========================================================================== */

/* 1. VARIABLES & TOKENS ==================================================== */
:root {
    /* Palette — dérivée du mockup Maryline Berlin (valeurs à confirmer pipette) */
    --c-navy:        #0B2545;   /* bleu marine — header scroll, footer, CTA */
    --c-navy-soft:   #16365C;   /* hover marine */
    --c-blue:        #3F6F9E;   /* bleu mid — liens, accents (contraste AA sur blanc) */
    --c-blue-bright: #5A8FBF;   /* bouton secondaire */
    --c-blue-pale:   #B9D4E3;   /* bleu pastel — fond du header */
    --c-blue-wash:   #EAF2F8;   /* fond de section très clair (hero internes) */
    --c-bg:          #F6F8FB;   /* fond de page */
    --c-surface:     #FFFFFF;   /* fond des cartes */
    --c-ink:         #14233B;   /* texte principal */
    --c-ink-soft:    #5B6B7E;   /* texte secondaire / metadata */
    --c-border:      #E3E9F0;   /* bordures légères */
    --c-heart:       #D9486B;   /* cœur "Faire un don" */

    /* Typographie — respecte les polices custom Ghost si définies en Admin */
    --font-serif: var(--gh-font-heading, 'Playfair Display', Georgia, 'Times New Roman', serif);
    --font-sans:  var(--gh-font-body, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);

    /* Mesures */
    --container:        1200px;
    --container-narrow: 760px;
    --radius:    16px;
    --radius-sm: 9px;
    --shadow:      0 8px 30px rgba(11, 37, 69, 0.10);
    --shadow-soft: 0 2px 12px rgba(11, 37, 69, 0.06);
    --shadow-hover: 0 14px 36px rgba(11, 37, 69, 0.14);
    --header-h:   80px;
    --ease: cubic-bezier(.2, .6, .2, 1);
}

/* 2. RESET & BASE ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--c-ink);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-blue); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--c-navy); }
ul { padding: 0; list-style: none; margin: 0; }
strong { font-weight: 700; }
.site-main { min-height: 60vh; }

/* 3. TYPOGRAPHIE =========================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--c-ink);
    line-height: 1.18;
    margin: 0 0 0.5em;
    font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.4rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.16rem; color: var(--c-ink-soft); }
.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-blue);
    margin-bottom: 12px;
}
.section-title { text-align: center; margin-bottom: 32px; }
.section-title.is-left { text-align: left; }

/* 4. LAYOUT & CONTENEURS =================================================== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section-sm { padding: 36px 0; }
.layout-2col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 52px;
    padding-top: 52px;
    padding-bottom: 72px;
}
.layout-main { min-width: 0; }
.section-foot { text-align: center; margin-top: 36px; }

/* 5. ACCESSIBILITÉ ========================================================= */
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 999;
    background: var(--c-navy);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 2px; border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 6. BOUTONS =============================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    padding: 13px 24px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background .16s var(--ease), color .16s var(--ease),
                border-color .16s var(--ease), transform .16s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-sm { padding: 9px 17px; font-size: 0.85rem; }
.btn-block { display: flex; width: 100%; }
.btn-block + .btn-block { margin-top: 10px; }

.btn-primary { background: var(--c-navy); color: #fff; }
.btn-primary:hover { background: var(--c-navy-soft); color: #fff; }
.btn-secondary { background: var(--c-blue-bright); color: #fff; }
.btn-secondary:hover { background: var(--c-blue); color: #fff; }
.btn-outline { background: transparent; color: var(--c-navy); border-color: var(--c-navy); }
.btn-outline:hover { background: var(--c-navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--c-ink); padding-left: 10px; padding-right: 10px; }
.btn-ghost:hover { color: var(--c-blue); }
.icon-heart { color: var(--c-heart); font-size: 1.15rem; line-height: 1; }

/* 7. FORMULAIRES =========================================================== */
input[type="text"], input[type="email"], input[type="search"],
input[type="tel"], textarea, select {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--c-ink);
    background: var(--c-surface);
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--c-blue);
    box-shadow: 0 0 0 3px rgba(79, 134, 184, 0.16);
}
textarea { resize: vertical; min-height: 130px; }
label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 6px; }
.form-row { margin-bottom: 16px; }

/* 8. HEADER & NAVIGATION =================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--c-blue-pale);
    transition: background .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled { background: var(--c-navy); box-shadow: var(--shadow-soft); }
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-h);
}
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo-img { max-height: 54px; width: auto; }
.site-logo-mark {
    display: grid;
    place-items: center;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--c-blue-bright);
    color: #fff;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
}
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav-list { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav-list a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--c-navy);
    padding: 5px 2px;
    border-bottom: 2px solid transparent;
}
.site-nav-list a:hover,
.site-nav-list .is-current a { border-bottom-color: var(--c-navy); color: var(--c-navy); }
.is-scrolled .site-nav-list a { color: #fff; }
.is-scrolled .site-nav-list a:hover,
.is-scrolled .site-nav-list .is-current a { border-bottom-color: #fff; color: #fff; }

.site-nav-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* États sur header marine (scrollé) */
.is-scrolled .btn-don { color: #fff; }
.is-scrolled .btn-primary { background: var(--c-blue-bright); }
.is-scrolled .btn-primary:hover { background: #fff; color: var(--c-navy); }
.is-scrolled .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.is-scrolled .btn-outline:hover { background: #fff; color: var(--c-navy); border-color: #fff; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-toggle span {
    width: 25px; height: 2px;
    background: var(--c-navy);
    border-radius: 2px;
    transition: background .2s var(--ease);
}
.is-scrolled .menu-toggle span { background: #fff; }

/* 9. FOOTER ================================================================ */
.site-footer { background: var(--c-navy); color: #C3D0DF; margin-top: 0; }
.site-footer .container { padding-top: 60px; padding-bottom: 28px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-logo { max-height: 60px; margin-bottom: 16px; }
.footer-brand .site-logo-mark { margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 0.98rem; margin-bottom: 16px; }
.footer-col a, .footer-col .site-nav-list a { color: #C3D0DF; font-size: 0.9rem; }
.footer-col a:hover, .footer-col .site-nav-list a:hover { color: #fff; }
.footer-col .site-nav-list { flex-direction: column; flex-wrap: nowrap; gap: 9px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-social { display: flex; gap: 14px; margin-top: 16px; }
.footer-social a { font-size: 0.82rem; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
    color: #8FA1B5;
}
.footer-attrib a { color: #C3D0DF; }
.footer-attrib a:hover { color: #fff; }

/* 10. HERO & BREADCRUMB ==================================================== */
/* Hero accueil — texte à gauche, photo à droite (desktop), empilé en mobile */
.hero { background: var(--c-blue-pale); overflow: hidden; }
.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 56px 24px;
    align-items: center;
}
.hero-text { max-width: 600px; }
.hero-title { font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin-bottom: 18px; }
.hero-subtitle { font-size: 1.12rem; color: var(--c-navy-soft); margin-bottom: 28px; }
.hero-figure { margin: 0; }
.hero-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 738;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Hero des pages internes — bandeau bleu clair + breadcrumb */
.page-hero { background: var(--c-blue-wash); }
.page-hero .container,
.page-hero .container-narrow { padding-top: 44px; padding-bottom: 44px; }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { font-size: 1.08rem; color: var(--c-ink-soft); max-width: 620px; margin-bottom: 0; }
.page-hero.is-centered { text-align: center; }
.page-hero.is-centered p { margin-left: auto; margin-right: auto; }

.breadcrumb { font-size: 0.84rem; color: var(--c-ink-soft); margin-bottom: 16px; }
.breadcrumb a { color: var(--c-ink-soft); }
.breadcrumb a:hover { color: var(--c-navy); }
.breadcrumb span { margin: 0 5px; opacity: 0.6; }

/* 11. CARTES =============================================================== */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 26px;
}
.actu-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.actu-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.actu-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--c-blue-wash);
    overflow: hidden;
}
.actu-image img { width: 100%; height: 100%; object-fit: cover; }
.actu-badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--c-navy); color: #fff;
    font-size: 0.66rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
    padding: 5px 10px; border-radius: 6px;
}
.actu-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.actu-meta { font-size: 0.78rem; color: var(--c-ink-soft); margin-bottom: 7px; }
.actu-title { font-size: 1.15rem; line-height: 1.3; margin-bottom: 9px; }
.actu-title a { color: var(--c-ink); }
.actu-title a:hover { color: var(--c-blue); }
.actu-excerpt { font-size: 0.91rem; color: var(--c-ink-soft); flex: 1; margin-bottom: 14px; }
.actu-link {
    align-self: flex-start;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--c-navy);
    border: 1.5px solid var(--c-border);
    padding: 7px 16px;
    border-radius: 999px;
    transition: background .15s var(--ease), border-color .15s var(--ease);
}
.actu-link:hover { background: var(--c-blue-wash); border-color: var(--c-blue-pale); color: var(--c-navy); }

/* 12. CTA STRIP ============================================================ */
.cta-strip {
    background: var(--c-navy);
    color: #fff;
    border-radius: var(--radius);
    text-align: center;
    padding: 44px 32px;
}
.cta-strip h2 { color: #fff; }
.cta-strip p { color: #C3D0DF; max-width: 540px; margin: 0 auto 22px; }
.cta-strip .btn-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 13. SIDEBAR ============================================================== */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-block {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 22px;
}
.sidebar-title { font-size: 1.18rem; margin-bottom: 16px; }
.sidebar-ecoles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ecole-mini { display: block; }
.ecole-mini img {
    border-radius: var(--radius-sm);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    transition: opacity .15s var(--ease);
}
.ecole-mini:hover img { opacity: 0.86; }
.ecole-mini-name { display: block; font-size: 0.85rem; font-weight: 600; color: var(--c-ink); margin-top: 7px; }
.sidebar-cta { background: var(--c-navy); border-color: var(--c-navy); }
.sidebar-cta .sidebar-title { color: #fff; }
.sidebar-newsletter { background: var(--c-blue-wash); border-color: var(--c-blue-pale); }
.sidebar-newsletter p { font-size: 0.9rem; color: var(--c-ink-soft); margin-bottom: 14px; }

/* 14. PROSE (contenu éditeur Ghost) ======================================== */
.prose { font-size: 1.06rem; }
.prose > *:first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.7em; }
.prose img, .prose figure { border-radius: var(--radius); margin: 1.6em auto; }
.prose figcaption { font-size: 0.85rem; color: var(--c-ink-soft); text-align: center; margin-top: 8px; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote {
    margin: 1.6em 0;
    padding: 6px 22px;
    border-left: 3px solid var(--c-blue-pale);
    color: var(--c-ink-soft);
    font-style: italic;
}
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose hr { border: none; border-top: 1px solid var(--c-border); margin: 2em 0; }
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
}
.prose th, .prose td { border: 1px solid var(--c-border); padding: 10px 12px; text-align: left; }
.prose th { background: var(--c-blue-wash); }

/* Cartes Koenig (éditeur Ghost) — largeurs étendues */
.prose :where(img, figure, iframe, video) { margin-left: auto; margin-right: auto; }
.kg-width-wide { width: 100%; max-width: 1080px; position: relative; }
.kg-width-full { width: 100vw; max-width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.kg-width-full img { width: 100%; border-radius: 0; }

/* Article & page */
.post-feature, .page-feature { max-width: var(--container); margin: 0 auto; }
.post-feature img, .page-feature img { width: 100%; border-radius: var(--radius); }
.post-hero .container-narrow { padding-top: 40px; padding-bottom: 24px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.post-tag {
    font-size: 0.76rem;
    background: var(--c-blue-wash);
    color: var(--c-navy);
    padding: 5px 12px;
    border-radius: 999px;
}
.post-tag:hover { background: var(--c-blue-pale); color: var(--c-navy); }
.post-title { margin-bottom: 14px; }
.post-meta { font-size: 0.88rem; color: var(--c-ink-soft); }
.post-body { padding: 36px 0 56px; }
.page-feature { margin-bottom: 8px; }

/* 15. PAGINATION =========================================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 44px;
    font-size: 0.9rem;
    color: var(--c-ink-soft);
}
.pagination a { font-weight: 600; color: var(--c-navy); }
.pagination a:hover { color: var(--c-blue); }

/* 16. PAGE D'ERREUR ======================================================== */
.error-page { text-align: center; padding: 110px 0; }
.error-code { font-family: var(--font-serif); font-size: 5.5rem; color: var(--c-blue-pale); line-height: 1; }
.error-page h1 { margin-top: 8px; }
.error-page p { color: var(--c-ink-soft); margin-bottom: 30px; }

/* 17. RESPONSIVE =========================================================== */
@media (min-width: 920px) {
    .hero-inner {
        grid-template-columns: 1.04fr 0.96fr;
        gap: 48px;
        padding: 90px 24px;
    }
}

/* Tablette : passage en colonne unique pour la grille principale */
@media (max-width: 1024px) {
    .layout-2col { grid-template-columns: 1fr; gap: 0; padding-bottom: 56px; }
    .sidebar { margin-top: 52px; }
    .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
    .sidebar-newsletter { grid-column: 1 / -1; }
}

/* Menu burger : 9 entrées + 3 CTA ne tiennent plus → menu mobile */
@media (max-width: 1080px) {
    .menu-toggle { display: flex; }
    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 24px;
        box-shadow: var(--shadow);
        transform: translateY(-135%);
        transition: transform .28s var(--ease);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }
    .site-nav.is-open { transform: translateY(0); }
    .site-nav-list { flex-direction: column; gap: 2px; }
    .site-nav-list a { color: var(--c-navy); padding: 9px 0; font-size: 1rem; }
    .is-scrolled .site-nav-list a { color: var(--c-navy); }
    .site-nav-cta { flex-wrap: wrap; }
    .site-nav-cta .btn { flex: 1; }
    .is-scrolled .site-nav .btn-outline { color: var(--c-navy); border-color: var(--c-navy); }
    .is-scrolled .site-nav .btn-don { color: var(--c-ink); }
}

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

@media (max-width: 560px) {
    body { font-size: 16px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .archive-grid { grid-template-columns: 1fr; }
    .sidebar { grid-template-columns: 1fr; }
    .hero-inner { padding: 56px 24px; }
    .cta-strip { padding: 32px 22px; }
}

/* ==========================================================================
   18. COMPOSANTS DE PAGE (Phase 2)
   ========================================================================== */

/* --- Blocs accueil & cartes à icône --- */
.home-block { margin-top: 60px; }
.home-block:first-child { margin-top: 8px; }
.icon-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.icon-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 32px 26px;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.icon-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.icon-card-mark {
    width: 66px; height: 66px;
    margin: 0 auto 18px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--c-blue-wash);
    color: var(--c-navy);
}
.svg-icon { width: 30px; height: 30px; }
.icon-card h3 { margin-bottom: 8px; }
.icon-card p { font-size: 0.93rem; color: var(--c-ink-soft); flex: 1; margin-bottom: 14px; }
.card-link { display: inline-block; font-weight: 600; font-size: 0.9rem; }
.card-link::after { content: " →"; }

/* --- Bandeau partenaires « Faites-vous connaître » --- */
.partners-band { background: var(--c-blue-wash); padding: 60px 0; margin-top: 8px; }
.partners-intro { text-align: center; color: var(--c-ink-soft); max-width: 540px; margin: -20px auto 30px; }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.partner-logo {
    aspect-ratio: 1;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    display: grid; place-items: center;
    padding: 20px;
    transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.partner-logo:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.partner-logo img { max-height: 100%; width: auto; object-fit: contain; }
.partner-logo span { font-weight: 600; font-size: 0.85rem; text-align: center; color: var(--c-ink-soft); }

/* --- Sidebar : compléments --- */
.sidebar-more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 0.86rem; }
.sidebar-empty { font-size: 0.9rem; color: var(--c-ink-soft); margin: 0; }
.sidebar-cta p { font-size: 0.9rem; color: #C3D0DF; margin-bottom: 16px; }
.btn-on-dark { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn-on-dark:hover { background: #fff; color: var(--c-navy); border-color: #fff; }
.agenda-list { display: flex; flex-direction: column; }
.agenda-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--c-border); }
.agenda-item:last-child { border-bottom: none; }
.agenda-date {
    flex-shrink: 0;
    width: 48px;
    text-align: center;
    background: var(--c-navy);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 6px 0;
    font-size: 0.66rem;
    text-transform: uppercase;
    line-height: 1.25;
}
.agenda-date .evt-d { display: block; font-size: 1.05rem; }
.agenda-date:not(.js-filled) .evt-d,
.agenda-date:not(.js-filled) .evt-m { display: none; }
.agenda-date:not(.js-filled)::after { content: attr(data-event-date); font-size: 0.6rem; }
.agenda-text { font-size: 0.9rem; }
.agenda-text a { font-weight: 600; color: var(--c-ink); }
.agenda-text a:hover { color: var(--c-blue); }
.agenda-text small { display: block; color: var(--c-ink-soft); font-size: 0.77rem; }

/* --- Grille & cartes école --- */
.intro-prose { margin-bottom: 38px; }
.ecole-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.ecole-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.ecole-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.ecole-card-img { display: block; aspect-ratio: 16 / 10; background: var(--c-blue-wash); }
.ecole-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ecole-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.ecole-card-title { font-size: 1.25rem; margin-bottom: 6px; }
.ecole-card-desc { font-size: 0.9rem; color: var(--c-ink-soft); margin-bottom: 6px; }
.ecole-card-count { font-size: 0.82rem; color: var(--c-blue); font-weight: 600; margin-bottom: 16px; }
.ecole-card-cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

/* --- Équipe / comité --- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.team-member { text-align: center; }
.team-avatar {
    width: 116px; height: 116px;
    margin: 0 auto 14px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--c-blue-wash);
    border: 3px solid var(--c-surface);
    box-shadow: var(--shadow-soft);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-size: 1.05rem; margin-bottom: 2px; }
.team-role { font-size: 0.85rem; color: var(--c-ink-soft); font-style: italic; margin: 0; }
.team-section + .cta-strip { margin-top: 48px; }

/* --- Agenda (page Calendrier) --- */
.agenda-cards { display: flex; flex-direction: column; gap: 18px; }
.agenda-card {
    display: flex;
    gap: 20px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 20px;
}
.agenda-card-date {
    flex-shrink: 0;
    width: 92px;
    background: var(--c-navy);
    color: #fff;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
}
.agenda-card-date .evt-d { font-family: var(--font-serif); font-size: 2.1rem; line-height: 1; }
.agenda-card-date .evt-m { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 5px; }
.agenda-card-date .evt-y { font-size: 0.72rem; opacity: 0.85; margin-top: 1px; }
/* Repli avant JS (ou sans JS) : date brute JJ/MM/AAAA affichée, parties structurées masquées */
.agenda-card-date:not(.js-filled) .evt-d,
.agenda-card-date:not(.js-filled) .evt-m,
.agenda-card-date:not(.js-filled) .evt-y { display: none; }
.agenda-card-date:not(.js-filled)::after { content: attr(data-event-date); font-size: 0.8rem; line-height: 1.25; text-align: center; }
.agenda-card-body { min-width: 0; }
.agenda-tag { font-size: 0.73rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-blue); }
.agenda-card-title { font-size: 1.2rem; margin: 5px 0 6px; }
.agenda-card-title a { color: var(--c-ink); }
.agenda-card-title a:hover { color: var(--c-blue); }
.agenda-card-excerpt { font-size: 0.92rem; color: var(--c-ink-soft); margin-bottom: 8px; }

/* --- État vide --- */
.empty-state {
    background: var(--c-blue-wash);
    border-radius: var(--radius);
    padding: 44px;
    text-align: center;
    color: var(--c-ink-soft);
}

/* --- Contact --- */
.contact-layout { display: grid; grid-template-columns: 1.45fr 1fr; gap: 32px; }
.contact-info {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 24px;
    height: fit-content;
}
.contact-info-title { font-size: 1.2rem; margin-bottom: 14px; }
.contact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--c-border);
    font-size: 0.92rem;
    color: var(--c-ink);
}
.contact-item:last-of-type { border-bottom: none; }
.contact-item-icon { color: var(--c-blue); flex-shrink: 0; line-height: 1; }
.contact-item-icon .svg-icon { width: 22px; height: 22px; }
.contact-map { margin-top: 16px; border-radius: var(--radius-sm); overflow: hidden; }
.contact-map iframe { width: 100%; height: 230px; border: 0; display: block; }

/* --- Composants réutilisables pour les pages éditeur (Notre action, S'impliquer) --- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; margin: 36px 0; }
.feature-row img { border-radius: var(--radius); }
.testimonial {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-left: 4px solid var(--c-blue-pale);
    border-radius: var(--radius);
    padding: 24px;
}
.testimonial-quote { font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { display: block; }
.testimonial-author span { font-size: 0.84rem; color: var(--c-ink-soft); }

/* 19. RESPONSIVE — composants Phase 2 ====================================== */
@media (max-width: 1024px) {
    .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .icon-card-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .ecole-grid { grid-template-columns: 1fr; }
    .feature-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .agenda-card { flex-direction: column; gap: 14px; }
    .agenda-card-date { width: 100%; flex-direction: row; gap: 10px; padding: 10px; }
    .agenda-card-date strong { font-size: 1.5rem; }
    .agenda-card-date span { margin-top: 0; }
}

/* 20. ANIMATIONS (GSAP) ==================================================== */
/* État initial caché — appliqué UNIQUEMENT si JS ajoute .anim-ready sur <html>
   (donc visible par défaut si JS/GSAP absent). GSAP révèle ensuite via fromTo. */
html.anim-ready .hero-text > *,
html.anim-ready .hero-figure,
html.anim-ready .section-title,
html.anim-ready .cta-strip,
html.anim-ready .partners-band,
html.anim-ready .membership-signin,
html.anim-ready .icon-card-grid > *,
html.anim-ready .archive-grid > *,
html.anim-ready .team-grid > *,
html.anim-ready .ecole-grid > *,
html.anim-ready .tier-grid > *,
html.anim-ready .partners-grid > * { opacity: 0; will-change: transform, opacity; }

/* Filet de sécurité accessibilité : si reduced-motion, on ne cache jamais */
@media (prefers-reduced-motion: reduce) {
    html.anim-ready .hero-text > *,
    html.anim-ready .hero-figure,
    html.anim-ready .section-title,
    html.anim-ready .cta-strip,
    html.anim-ready .partners-band,
    html.anim-ready .membership-signin,
    html.anim-ready .icon-card-grid > *,
    html.anim-ready .archive-grid > *,
    html.anim-ready .team-grid > *,
    html.anim-ready .ecole-grid > *,
    html.anim-ready .tier-grid > *,
    html.anim-ready .partners-grid > * { opacity: 1 !important; }
}

/* 21. MEMBERSHIP / ADHÉSION ================================================ */
.page-membership { padding-bottom: 24px; }
.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
    max-width: 900px;
    margin: 0 auto;
}
.tier-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.tier-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.tier-name { font-size: 1.28rem; margin-bottom: 8px; }
.tier-price { display: flex; align-items: baseline; gap: 5px; margin-bottom: 20px; }
.tier-amount { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 700; color: var(--c-navy); line-height: 1; }
.tier-period { color: var(--c-ink-soft); font-size: 0.95rem; }
.tier-desc { color: var(--c-ink-soft); font-size: 0.95rem; margin-bottom: 18px; }
.tier-benefits { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 11px; }
.tier-benefits li { position: relative; padding-left: 28px; font-size: 0.93rem; color: var(--c-ink); line-height: 1.45; }
.tier-benefits li::before {
    content: ""; position: absolute; left: 0; top: 1px;
    width: 18px; height: 18px; background: var(--c-blue-wash); border-radius: 50%;
}
.tier-benefits li::after {
    content: ""; position: absolute; left: 6px; top: 5px;
    width: 5px; height: 9px; border: solid var(--c-blue); border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.tier-cta { margin-top: auto; text-align: center; }
.membership-signin { text-align: center; margin-top: 28px; color: var(--c-ink-soft); }

