/* =====================================================================
   Les Marsouins Aigle – feuille de style du site public
   ===================================================================== */

/* ---------- Polices (hébergées localement) ---------- */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400 800;
    font-stretch: 100%;
    font-display: swap;
    src: url('../fonts/open-sans.woff2') format('woff2');
}
@font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/open-sans-italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Squada One';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/squada-one.woff2') format('woff2');
}

/* ---------- Variables ---------- */
:root {
    --navy: #002544;
    --navy-800: #003a66;
    --navy-950: #001629;
    --accent: #00aaff;
    --accent-600: #0090dd;
    --accent-100: #e0f4ff;
    --ink: #13263a;
    --text: #44546a;
    --muted: #6d7c8e;
    --bg: #ffffff;
    --bg-alt: #f1f6fa;
    --border: #dce6ee;
    --red: #d6382a;
    --red-100: #fdecea;
    --green: #17925a;
    --green-100: #e3f6ec;
    --orange: #ef8a12;

    --font-body: 'Open Sans', Arial, sans-serif;
    --font-display: 'Squada One', 'Arial Narrow', sans-serif;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(0, 37, 68, .06), 0 2px 8px rgba(0, 37, 68, .06);
    --shadow: 0 10px 30px -10px rgba(0, 37, 68, .25);
    --shadow-lg: 0 24px 60px -20px rgba(0, 37, 68, .4);

    --container: 1180px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 76px;
    --section-y: clamp(3rem, 7vw, 5.5rem);
    --page-hero-h: 420px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; object-position: center 30%; /* recadrage vers le haut : garde les visages */ }

a { color: var(--accent-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }

p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

::selection { background: var(--accent); color: #fff; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 1000;
    background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.empty { padding: 2rem; text-align: center; color: var(--muted); background: var(--bg-alt); border-radius: var(--radius); }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: -0.25em; }
.icon--xs { width: .85em; height: .85em; vertical-align: -0.1em; }
.icon--sm { width: 1em; height: 1em; vertical-align: -0.15em; }
.icon--xl { width: 3rem; height: 3rem; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .8em 1.5em;
    font: 700 .95rem/1.2 var(--font-body);
    letter-spacing: .01em;
    border: 2px solid transparent; border-radius: 999px;
    text-decoration: none; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-800); color: #fff; box-shadow: var(--shadow); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-600); color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 170, 255, .6); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; background: rgba(255, 255, 255, .06); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .15); color: #fff; }
.btn--outline-light { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn--outline-light:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.btn--sm { padding: .55em 1.1em; font-size: .85rem; }
.btn--lg { padding: .95em 1.8em; font-size: 1rem; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-back { display: inline-flex; align-items: center; gap: .3em; margin-bottom: 1.5rem; font-weight: 600; text-decoration: none; font-size: .9rem; }

/* ---------- En-tête ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: #fff; /* pas de backdrop-filter : il casserait le menu mobile en position fixe */
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--border); }

.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.site-header__logo { display: block; flex-shrink: 0; }
.site-header__logo img { height: 56px; width: auto; }

.nav-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; padding: 0;
    background: var(--bg-alt); border: 0; border-radius: 12px; cursor: pointer;
}
.nav-burger__bars, .nav-burger__bars::before, .nav-burger__bars::after {
    display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px;
    transition: transform .25s, background-color .25s;
}
.nav-burger__bars { position: relative; }
.nav-burger__bars::before, .nav-burger__bars::after { content: ''; position: absolute; left: 0; }
.nav-burger__bars::before { top: -7px; }
.nav-burger__bars::after { top: 7px; }
.nav-burger[aria-expanded="true"] .nav-burger__bars { background: transparent; }
.nav-burger[aria-expanded="true"] .nav-burger__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .nav-burger__bars::after { transform: translateY(-7px) rotate(-45deg); }

.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__link {
    display: flex; align-items: center; gap: .3em; width: 100%;
    padding: .55rem .9rem;
    font: 600 .95rem/1.4 var(--font-body);
    color: var(--ink); text-decoration: none;
    background: none; border: 0; border-radius: 10px; cursor: pointer;
    transition: color .2s, background-color .2s;
}
.nav__link:hover, .nav__item.is-active > .nav__link, .nav__link[aria-current="page"] { color: var(--accent-600); }
.nav__toggle .icon { transition: transform .2s; }
.nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.nav__submenu { list-style: none; margin: 0; padding: 0; }
.nav__submenu a {
    display: block; padding: .5rem .9rem;
    color: var(--text); text-decoration: none; font-size: .93rem; border-radius: 8px;
}
.nav__submenu a:hover, .nav__submenu a[aria-current="page"] { color: var(--accent-600); background: var(--accent-100); }

/* Navigation mobile */
@media (max-width: 1099px) {
    .nav {
        position: fixed; inset: var(--header-h) 0 0 0;
        padding: 1rem var(--gutter) 2rem;
        background: #fff; overflow-y: auto;
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .nav__link { padding: .85rem .5rem; font-size: 1.05rem; justify-content: space-between; border-bottom: 1px solid var(--border); border-radius: 0; }
    .nav__submenu { display: none; padding: .25rem 0 .5rem .5rem; }
    .nav__toggle[aria-expanded="true"] + .nav__submenu { display: block; }
    .nav__mobile-extra { margin-top: 1.5rem; }
    body.nav-open { overflow: hidden; }
}

/* Navigation bureau : logo centré entre deux menus, comme sur l'ancien site */
@media (min-width: 1100px) {
    :root { --header-h: 92px; }
    .site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; }
    .site-header__logo { grid-column: 2; grid-row: 1; }
    .site-header__logo img { height: 70px; }
    .nav-burger, .nav__mobile-extra { display: none; }
    .nav { display: contents; }
    .nav__list { display: flex; gap: .25rem; grid-row: 1; }
    .nav__list--left { grid-column: 1; justify-self: end; }
    .nav__list--right { grid-column: 3; justify-self: start; }
    .nav__item { position: relative; }
    .nav__submenu {
        position: absolute; top: calc(100% + 8px); left: 50%;
        min-width: 240px; padding: .5rem;
        background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
        box-shadow: var(--shadow);
        opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
        transition: opacity .18s, transform .18s, visibility .18s;
    }
    .nav__submenu::before { content: ''; position: absolute; inset: -10px 0 auto; height: 10px; }
    .nav__item:hover > .nav__submenu,
    .nav__item:focus-within > .nav__submenu,
    .nav__toggle[aria-expanded="true"] + .nav__submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}

/* ---------- Vagues décoratives ---------- */
.wave { position: absolute; left: 0; right: 0; height: clamp(40px, 6vw, 90px); pointer-events: none; background-repeat: no-repeat; background-size: 100% 100%; }
.wave--hero {
    bottom: -1px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 140' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' fill-opacity='.35' d='M0 47.44 170 0l626.48 94.89L1110 87.11l170-39.67V140H0z'/%3E%3Cpath fill='%23ffffff' d='m0 90.72 140-28.28 315.52 24.14L796.48 65.8 1140 104.89l140-14.17V140H0z'/%3E%3C/svg%3E");
}
.wave--footer {
    top: 1px; transform: translateY(-100%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 140' preserveAspectRatio='none'%3E%3Cpath fill='%23002544' fill-opacity='.35' d='M0 47.44 170 0l626.48 94.89L1110 87.11l170-39.67V140H0z'/%3E%3Cpath fill='%23002544' d='m0 90.72 140-28.28 315.52 24.14L796.48 65.8 1140 104.89l140-14.17V140H0z'/%3E%3C/svg%3E");
}

/* ---------- Héros de la page d'accueil ---------- */
.hero {
    position: relative;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(0, 37, 68, .92) 0%, rgba(0, 37, 68, .75) 55%, rgba(0, 37, 68, .45) 100%),
        var(--hero-image) var(--hero-position, center 30%) / cover no-repeat,
        var(--navy);
    padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(8rem, 14vw, 11rem);
}
.hero__inner { display: grid; gap: 2.5rem; align-items: center; }
.hero__kicker {
    display: inline-block; margin-bottom: .75rem;
    font: 700 .85rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.hero__title {
    font: 400 clamp(3rem, 9vw, 6rem)/.92 var(--font-display);
    text-transform: uppercase; color: #fff; margin-bottom: 1.25rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .25);
}
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: 34rem; color: rgba(255, 255, 255, .88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

@media (min-width: 900px) {
    .hero__inner { grid-template-columns: 1.25fr 1fr; }
}

/* ---------- Compte à rebours ---------- */
.countdown {
    padding: clamp(1.25rem, 3vw, 2rem);
    background: rgba(0, 22, 41, .55);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
    color: #fff;
}
.countdown__label { margin: 0 0 .25rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.countdown__title { margin: 0 0 .4rem; font: 400 clamp(1.6rem, 3.5vw, 2.1rem)/1.1 var(--font-display); text-transform: uppercase; }
.countdown__meta { margin: 0 0 1.25rem; font-size: .9rem; color: rgba(255, 255, 255, .8); }
.countdown__sep { margin: 0 .3rem; }
.countdown__timer { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.countdown__unit {
    display: flex; flex-direction: column; align-items: center;
    padding: .7rem .25rem .55rem;
    background: rgba(255, 255, 255, .08); border-radius: 10px;
}
.countdown__unit span { font: 400 clamp(2rem, 5vw, 2.8rem)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.countdown__unit small { margin-top: .3rem; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }

/* Variante sur fond clair (page meeting) */
.meeting-aside .countdown { background: var(--navy); border: 0; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.section--flush { padding-top: 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, .85); }
.section--navy .section__title { color: #fff; }

.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.section__head--stack { display: block; max-width: 760px; }
.section__title {
    position: relative;
    font: 400 clamp(2rem, 4.5vw, 2.75rem)/1.05 var(--font-display);
    text-transform: uppercase; letter-spacing: .01em; color: var(--navy);
    margin-bottom: .6em; padding-bottom: .35em;
}
.section__head .section__title { margin-bottom: 0; }
.section__title::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 56px; height: 4px; border-radius: 4px; background: var(--accent);
}
.section__title--center { text-align: center; }
.section__title--center::after { left: 50%; transform: translateX(-50%); }
.section__lead { font-size: 1.1rem; margin-top: 1rem; }

/* ---------- Bandeau des pages intérieures ---------- */
.page-hero {
    position: relative; color: #fff;
    background:
        linear-gradient(120deg, rgba(0, 37, 68, .93) 0%, rgba(0, 37, 68, .78) 60%, rgba(0, 37, 68, .55) 100%),
        var(--hero-image) var(--hero-position, center 30%) / cover no-repeat,
        var(--navy);
    /* Hauteur identique sur toutes les pages : même image => même recadrage.
       Le contenu est centré verticalement ; la zone basse est réservée à la vague. */
    display: flex; align-items: center;
    box-sizing: border-box;
    /* Au-delà de 1920 px de large, le bandeau grandit avec l'écran (proportion 1920 × 420 conservée) :
       la zone visible reste celle indiquée par le cadre du back-office. min-height : un texte
       exceptionnellement long agrandit le bandeau au lieu de déborder. */
    min-height: max(var(--page-hero-h), 21.875vw);
    padding: 1.5rem 0 calc(clamp(40px, 6vw, 90px) + .5rem);
}
.page-hero__inner { width: 100%; }
.page-hero__kicker { margin-bottom: .6rem; font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.page-hero__title { font: 400 clamp(2.5rem, 7vw, 4.25rem)/1 var(--font-display); text-transform: uppercase; color: #fff; margin: 0; max-width: 18ch; }
.page-hero__intro { margin: 1.25rem 0 0; max-width: 46rem; font-size: clamp(1rem, 2vw, 1.15rem); color: rgba(255, 255, 255, .88); }

/* ---------- Carte d'inscription (accueil) ---------- */
.register-card {
    position: relative; z-index: 2;
    display: grid; overflow: hidden;
    margin-top: calc(-1 * clamp(6rem, 11vw, 9rem));
    background: #fff; border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-lg);
}
.register-card__media img { width: 100%; height: 100%; min-height: 220px; max-height: 340px; object-fit: cover; }
.register-card__body { padding: clamp(1.5rem, 4vw, 2.75rem); align-self: center; }
.register-card__title { font: 400 clamp(1.9rem, 4vw, 2.5rem)/1 var(--font-display); text-transform: uppercase; color: var(--navy); }
.register-card__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 800px) {
    .register-card { grid-template-columns: 1fr 1.1fr; }
    .register-card__media img { max-height: none; }
}

.status {
    display: flex; align-items: flex-start; gap: .6rem;
    padding: .75rem 1rem; border-radius: var(--radius-sm);
    font-weight: 700; font-size: .95rem; line-height: 1.5;
}
.status .icon { margin-top: .15em; }
.status--open { background: var(--green-100); color: var(--green); }
.status--closed { background: var(--red-100); color: var(--red); }
.status--lg { font-size: 1.05rem; padding: 1rem 1.25rem; margin-bottom: 2.5rem; }

.quick-links { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.quick-links a {
    display: flex; align-items: center; gap: .75rem;
    padding: 1rem 1.25rem; height: 100%;
    background: var(--bg-alt); border-radius: var(--radius);
    color: var(--navy); font-weight: 700; text-decoration: none;
    transition: background-color .2s, color .2s, transform .2s;
}
.quick-links a .icon { width: 1.6rem; height: 1.6rem; color: var(--accent); transition: color .2s; }
.quick-links a:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.quick-links a:hover .icon { color: #fff; }
@media (min-width: 800px) { .quick-links { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Cartes d'actualités ---------- */
.card-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.post-card { position: relative; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__placeholder { display: grid; place-items: center; height: 100%; background: linear-gradient(135deg, var(--navy), var(--navy-800)); }
.post-card__placeholder img { width: 40%; height: auto; opacity: .9; filter: brightness(0) invert(1); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.4rem 1.4rem; }
.post-card__meta { margin-bottom: .4rem; font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.post-card__title { font-size: 1.15rem; margin-bottom: .5rem; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a::after { content: ''; position: absolute; inset: 0; }
.post-card__excerpt { font-size: .93rem; flex: 1; }
.post-card__more { display: inline-flex; align-items: center; gap: .35em; font-size: .9rem; font-weight: 700; color: var(--accent-600); }

/* ---------- Événements ---------- */
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.event {
    display: flex; gap: 1.1rem; align-items: flex-start;
    padding: 1rem 1.1rem;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    border-left: 4px solid var(--event-color, var(--accent));
}
.event--competition { --event-color: var(--accent); }
.event--club { --event-color: var(--orange); }
.event--holiday { --event-color: #9aa8b6; }
.event--other { --event-color: var(--navy); }
.event__date {
    flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 12px;
    background: var(--navy); color: #fff; line-height: 1;
}
.event--holiday .event__date { background: #8c9aa8; }
.event__day { font: 400 1.9rem/1 var(--font-display); }
.event__month { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: .15rem; }
.event__body { min-width: 0; }
.event__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .3rem; }
.event__title { font-size: 1.1rem; margin: 0 0 .25rem; }
.event__title a { color: inherit; text-decoration: none; }
.event__title a:hover { color: var(--accent-600); }
.event__meta { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; margin: 0; font-size: .9rem; color: var(--muted); }
.event__description { margin-top: .5rem; font-size: .93rem; }
.event__document {
    display: inline-flex; align-items: center; gap: .45rem; margin-top: .6rem;
    padding: .4rem .8rem; border-radius: 999px;
    background: var(--accent-100); color: var(--navy); font-size: .85rem; font-weight: 700; text-decoration: none;
    transition: background-color .2s, color .2s;
}
.event__document:hover { background: var(--navy); color: #fff; }
.event__document-meta { font-weight: 600; opacity: .7; font-size: .78rem; }
.event-list--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.event-list--compact .event { flex-direction: column; gap: .75rem; }
.event-list--past .event { opacity: .7; }

.tag {
    display: inline-block; padding: .15rem .55rem; border-radius: 999px;
    font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    background: var(--accent-100); color: var(--accent-600);
}
.tag--club { background: #fdf0de; color: #b5650a; }
.tag--holiday { background: #edf0f3; color: #5d6c7a; }
.tag--other { background: #e6ebf1; color: var(--navy); }
.tag--live { background: var(--green-100); color: var(--green); }

/* ---------- Mosaïque photos ---------- */
.mosaic { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
.mosaic__item { position: relative; display: block; overflow: hidden; border-radius: var(--radius); }
.mosaic__item:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mosaic__item:hover img { transform: scale(1.06); }
@media (min-width: 800px) {
    .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }
}

/* ---------- Partenaires ---------- */
.partners__group + .partners__group { margin-top: 2.5rem; }
.partners__title { text-align: center; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem; }
.partners__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.partners__list li { display: flex; }
.partners__list a, .partners__list li > img, .partners__list li > span {
    display: grid; place-items: center;
    width: 160px; height: 90px; padding: 1rem;
    background: #fff; border-radius: var(--radius); border: 1px solid var(--border);
    transition: box-shadow .2s, transform .2s;
}
.partners__list a:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.partners__list img { max-width: 100%; max-height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s; }
.partners__list a:hover img { filter: none; opacity: 1; }
.partners__list li > img { box-sizing: border-box; }
.partners__name { font-weight: 700; color: var(--navy); text-align: center; font-size: .9rem; }

/* ---------- Bandeau d'appel à l'inscription ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-800) 100%); color: rgba(255, 255, 255, .85); padding-block: clamp(2.5rem, 6vw, 4rem); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-band__inner > div { flex: 1 1 420px; }
.cta-band__inner p { margin: 0; }
.cta-band__title { font: 400 clamp(1.8rem, 4vw, 2.4rem)/1.05 var(--font-display); text-transform: uppercase; color: #fff; margin-bottom: .4rem; }

/* ---------- Texte riche (contenu éditable) ---------- */
.prose { color: var(--text); }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; color: var(--navy); }
.prose h3 { font-size: 1.2rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose ul li::marker { color: var(--accent); }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: .5em 1.25em; border-left: 4px solid var(--accent); background: var(--bg-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose--lg { font-size: 1.1rem; }
.post-cover { display: block; margin-bottom: 2rem; }
.post-cover img { width: 100%; max-height: 70vh; object-fit: contain; background: var(--bg-alt); border-radius: var(--radius); }
.prose--sections h2 { font: 400 2rem/1.1 var(--font-display); text-transform: uppercase; }
.prose--sections > h2:first-child { margin-top: 0; }

/* ---------- Mise en page en deux colonnes ---------- */
.split { display: grid; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); }
@media (min-width: 900px) {
    .split { grid-template-columns: 1fr 1fr; }
    .split--reverse .split__media { order: 2; }
}

.address-card {
    display: flex; gap: .75rem; align-items: flex-start;
    margin: 1.25rem 0; padding: 1rem 1.25rem;
    background: var(--bg-alt); border-radius: var(--radius); font-style: normal;
}
.address-card .icon { color: var(--accent); margin-top: .2em; }

/* ---------- Tuiles de groupes ---------- */
.group-tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.group-tile {
    position: relative; display: flex; flex-direction: column;
    padding: 1.5rem 1.5rem 1.25rem;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    border-top: 5px solid var(--group-color);
    color: var(--text); text-decoration: none;
    transition: transform .25s, box-shadow .25s;
}
.group-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.group-tile__title { font: 400 1.6rem/1.1 var(--font-display); text-transform: uppercase; color: var(--navy); margin-bottom: .5rem; }
.group-tile p { flex: 1; font-size: .95rem; }
.group-tile__more, .group-tile__price { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; font-size: .9rem; color: var(--group-color); filter: brightness(.85); }
.group-tiles--compact .group-tile { padding: 1.25rem; }

/* ---------- Pastilles (filtres, ancres) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .45rem .95rem;
    font: 600 .88rem/1.2 var(--font-body);
    color: var(--ink); background: #fff;
    border: 1px solid var(--border); border-radius: 999px;
    text-decoration: none; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.chip[style*="--chip-color"]::before { content: ''; width: .6rem; height: .6rem; border-radius: 50%; background: var(--chip-color); }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip__count { font-size: .75rem; opacity: .7; }
.chip--competition::before, .chip--club::before, .chip--holiday::before, .chip--other::before { content: ''; width: .6rem; height: .6rem; border-radius: 50%; }
.chip--competition::before { background: var(--accent); }
.chip--club::before { background: var(--orange); }
.chip--holiday::before { background: #9aa8b6; }
.chip--other::before { background: var(--navy); }

/* ---------- Page Groupes ---------- */
.groups { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.group { display: grid; gap: clamp(1.25rem, 4vw, 3rem); align-items: start; scroll-margin-top: calc(var(--header-h) + 24px); }
.group__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); }
.group__title {
    font: 400 clamp(2rem, 4.5vw, 2.6rem)/1 var(--font-display); text-transform: uppercase; color: var(--navy);
    padding-left: 1rem; border-left: 6px solid var(--group-color);
}
.group__facts { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.group__facts li {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .35rem .8rem; border-radius: 999px;
    background: var(--bg-alt); font-size: .88rem; font-weight: 600; color: var(--ink);
}
.group__facts .icon { color: var(--group-color); }
.group__schedule { margin-top: 1.25rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--bg-alt); }
.group__schedule h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.group__schedule ul { list-style: none; margin: 0; padding: 0; }
.group__schedule li { padding: .3rem 0; border-bottom: 1px dashed var(--border); }
.group__schedule li:last-child { border-bottom: 0; }
@media (min-width: 900px) {
    .group { grid-template-columns: 5fr 7fr; }
    /* Alternance image à gauche / à droite : la colonne étroite reste toujours celle de l'image */
    .group:nth-child(even) { grid-template-columns: 7fr 5fr; }
    .group:nth-child(even) .group__media { order: 2; }
}

.notice {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.25rem 1.5rem; border-radius: var(--radius);
    background: var(--accent-100); color: var(--ink);
}
.notice > .icon { width: 1.75rem; height: 1.75rem; color: var(--accent-600); }
.notice__title { font-size: 1.05rem; margin-bottom: .25rem; }
.notice p { margin: 0; }

/* ---------- Page Horaires ---------- */
.week { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.week__day { background: var(--bg-alt); border-radius: var(--radius); padding: 1rem; }
.week__title { font: 400 1.6rem/1 var(--font-display); text-transform: uppercase; color: var(--navy); margin: .25rem .25rem 1rem; }
.week__slots { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.slot {
    display: flex; flex-direction: column;
    padding: .7rem .9rem; border-radius: 10px;
    background: #fff; border-left: 4px solid var(--group-color);
    box-shadow: var(--shadow-sm);
    transition: opacity .2s;
}
.slot[hidden] { display: none; }
.slot__time { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.slot__group { font-size: .92rem; }
.slot__note { font-size: .8rem; color: var(--muted); }
.week__day.is-empty { display: none; }
.schedule-note { margin-top: 1.5rem; font-size: .9rem; }

.location-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.location-card { padding: 1.5rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); }
.location-card--main { border-top: 5px solid var(--accent); }
.location-card__kicker { margin-bottom: .25rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-600); }
.location-card__title { font: 400 1.7rem/1.1 var(--font-display); text-transform: uppercase; color: var(--navy); }
.location-card address { font-style: normal; margin-bottom: .75rem; color: var(--ink); }

/* ---------- Page Cotisations ---------- */
.price-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.price-card {
    display: flex; flex-direction: column;
    padding: 1.5rem; border-radius: var(--radius);
    background: #fff; border: 1px solid var(--border); border-top: 5px solid var(--group-color);
    transition: box-shadow .25s, transform .25s;
}
.price-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.price-card__title { font: 400 1.55rem/1.1 var(--font-display); text-transform: uppercase; color: var(--navy); margin-bottom: .75rem; }
.price-card__price { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .25rem; }
.price-card__amount { font: 400 3rem/1 var(--font-display); color: var(--ink); }
.price-card__unit { font-size: .82rem; font-weight: 600; color: var(--muted); }
.price-card__rhythm { font-weight: 600; color: var(--ink); font-size: .92rem; }
.price-card__sessions { list-style: none; margin: 0 0 1rem; padding: .75rem 0 0; border-top: 1px solid var(--border); font-size: .88rem; flex: 1; }
.price-card__sessions li { padding: .15rem 0; }
.price-card__link { display: inline-flex; align-items: center; gap: .35em; margin-top: auto; font-weight: 700; font-size: .9rem; text-decoration: none; }

.fees-info { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .fees-info { grid-template-columns: 1.4fr 1fr; } }
.discount-card { padding: 1.5rem; background: var(--navy); color: rgba(255, 255, 255, .85); border-radius: var(--radius); }
.discount-card__title { display: flex; align-items: center; gap: .6rem; color: #fff; font: 400 1.7rem/1 var(--font-display); text-transform: uppercase; }
.discount-card__title .icon { color: var(--accent); }
.discount-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.discount-table th, .discount-table td { padding: .65rem 0; border-bottom: 1px solid rgba(255, 255, 255, .15); text-align: left; }
.discount-table th { font-weight: 600; color: #fff; }
.discount-table td { text-align: right; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.discount-card .muted { color: rgba(255, 255, 255, .6); font-size: .85rem; margin: 0; }

/* ---------- Calendrier ---------- */
.calendar-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1000px) { .calendar-layout { grid-template-columns: minmax(0, 1fr) 320px; } .calendar-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.calendar-filters { margin-bottom: 2rem; }
.month + .month { margin-top: 2.25rem; }
.month[hidden] { display: none; }
.month__title { font: 400 1.7rem/1 var(--font-display); text-transform: uppercase; color: var(--navy); padding-bottom: .5rem; border-bottom: 2px solid var(--border); margin-bottom: 1rem; }
.event[hidden] { display: none; }
.past-events { margin-top: 3rem; }
.past-events summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: .9rem 1.1rem; background: var(--bg-alt); border-radius: var(--radius); }
.past-events[open] summary { margin-bottom: 1.5rem; }

.calendar-aside { display: grid; gap: 1rem; }
.aside-card { padding: 1.4rem; border-radius: var(--radius); background: var(--bg-alt); }
.aside-card--accent { background: var(--accent-100); }
.aside-card__title { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; margin-bottom: .6rem; color: var(--navy); }
.aside-card__title .icon { color: var(--accent-600); }
.aside-card p { font-size: .93rem; }
.aside-card__links { list-style: none; margin: 0; padding: 0; }
.aside-card__links li { border-top: 1px solid var(--border); }
.aside-card__links a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem 0; font-weight: 600; text-decoration: none; }
.aside-card address { font-style: normal; margin-bottom: .5rem; }

/* ---------- Documents ---------- */
.doc-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.doc-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text); text-decoration: none;
    transition: transform .25s, box-shadow .25s;
}
.doc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.doc-card__media { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--bg-alt); color: var(--accent); overflow: hidden; }
.doc-card__media img { width: 100%; height: 100%; object-fit: cover; }
.doc-card__body { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.25rem 1.25rem; flex: 1; }
.doc-card__title { font: 400 1.45rem/1.1 var(--font-display); text-transform: uppercase; color: var(--navy); }
.doc-card__desc { font-size: .9rem; flex: 1; }
.doc-card__meta { display: inline-flex; align-items: center; gap: .4rem; margin-top: .5rem; font-size: .82rem; font-weight: 700; color: var(--accent-600); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 950px) { .contact-layout { grid-template-columns: 1fr 1.6fr; gap: 3rem; } }
.contact-aside { display: grid; gap: 1rem; }
.contact-tile { display: flex; gap: 1rem; align-items: center; padding: 1.25rem; background: var(--bg-alt); border-radius: var(--radius); }
.contact-tile > .icon { width: 2.6rem; height: 2.6rem; padding: .6rem; border-radius: 50%; background: #fff; color: var(--accent-600); }
.contact-tile--alert > .icon { color: var(--red); }
.contact-tile__title { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .1rem; }
.contact-tile a { font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--ink); word-break: break-word; }
.contact-tile a:hover { color: var(--accent-600); }
.form-card { padding: clamp(1.5rem, 4vw, 2.5rem); background: #fff; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-sm); }

.people-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.5rem 1rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); }
.person__avatar {
    display: grid; place-items: center; overflow: hidden;
    width: 72px; height: 72px; margin-bottom: .85rem; border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--accent-600)); color: #fff;
    font: 400 1.7rem/1 var(--font-display);
}
.person__avatar img { width: 100%; height: 100%; object-fit: cover; }
.person__role { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-600); }
.person__name { font-weight: 700; color: var(--ink); font-size: 1.05rem; margin: .15rem 0 .5rem; }
.person__link { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; font-weight: 600; text-decoration: none; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .88rem; font-weight: 700; color: var(--ink); }
.field .req { color: var(--red); }
.field input, .field textarea, .field select {
    width: 100%; padding: .8rem 1rem;
    font: inherit; color: var(--ink);
    background: var(--bg-alt); border: 1.5px solid transparent; border-radius: 10px;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 170, 255, .15); }
.field [aria-invalid="true"] { border-color: var(--red); background: #fff; }
.field__error { margin: 0; font-size: .85rem; color: var(--red); font-weight: 600; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.form__note { margin: 0; font-size: .82rem; color: var(--muted); max-width: 26rem; }

.alert { display: flex; gap: .6rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: 10px; font-weight: 600; }
.alert .icon { margin-top: .15em; }
.alert--success { background: var(--green-100); color: var(--green); }
.alert--error { background: var(--red-100); color: var(--red); }

/* ---------- Inscription ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); counter-reset: none; }
.step { position: relative; padding: 1.5rem; padding-top: 2.25rem; background: var(--bg-alt); border-radius: var(--radius); }
.step__number {
    position: absolute; top: -1.1rem; left: 1.5rem;
    display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
    background: var(--accent); color: #fff; font: 400 1.5rem/1 var(--font-display);
    box-shadow: 0 6px 16px -6px rgba(0, 170, 255, .8);
}
.step__title { font: 400 1.5rem/1.1 var(--font-display); text-transform: uppercase; color: var(--navy); }
.step p { margin: 0; font-size: .95rem; }
.register-cta {
    display: grid; gap: 2rem; align-items: start;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    background: #fff; border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-sm);
}
@media (min-width: 900px) { .register-cta { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.register-cta__note { margin: .75rem 0 0; font-size: .85rem; }
.register-cta__checklist { padding: 1.5rem; background: var(--bg-alt); border-radius: var(--radius); }
.register-cta__subtitle { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; color: var(--navy); }
.register-cta__subtitle .icon { color: var(--accent-600); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.checklist .icon { color: var(--green); margin-top: .3em; }

/* ---------- Meeting ---------- */
.meeting-layout { display: grid; gap: 2.5rem; align-items: start; }
.meeting-aside { display: grid; gap: 1rem; }
@media (min-width: 1000px) { .meeting-layout { grid-template-columns: minmax(0, 1fr) 360px; } }

/* ---------- Chronologie ---------- */
.timeline { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem; position: relative; }
.timeline__item { position: relative; display: flex; flex-direction: column; gap: .25rem; padding-left: 2rem; }
.timeline__item::before { content: ''; position: absolute; left: 0; top: .55rem; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(0, 170, 255, .2); }
.timeline__year { font: 400 2.6rem/1 var(--font-display); color: #fff; }
.timeline__text { color: rgba(255, 255, 255, .8); }
@media (min-width: 800px) {
    .timeline { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
    .timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: rgba(255, 255, 255, .15); }
    .timeline__item { padding: 2rem 0 0; }
    .timeline__item::before { top: 0; }
}

/* ---------- Galeries ---------- */
.gallery-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(45%, 200px), 1fr)); }
.gallery-grid__item { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--bg-alt); }
.gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .3s; }
.gallery-grid__item:hover img { transform: scale(1.06); }

.album-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.album { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); color: #fff; text-decoration: none; }
.album img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.album::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 22, 41, .9) 0%, rgba(0, 22, 41, 0) 60%); }
.album:hover img { transform: scale(1.06); }
.album__body { position: absolute; z-index: 1; left: 1.25rem; right: 1.25rem; bottom: 1rem; display: flex; flex-direction: column; }
.album__title { font: 400 1.6rem/1.1 var(--font-display); text-transform: uppercase; }
.album__count { font-size: .85rem; opacity: .85; display: inline-flex; align-items: center; gap: .35rem; }

/* Visionneuse */
.lightbox {
    position: fixed; inset: 0; z-index: 500;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 12, 24, .94);
    padding: 3.5rem 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox__figure img { max-height: calc(100vh - 8rem); width: auto; border-radius: 6px; box-shadow: var(--shadow-lg); }
.lightbox__figure figcaption { color: rgba(255, 255, 255, .8); margin-top: .75rem; font-size: .9rem; text-align: center; }
.lightbox__close, .lightbox__nav {
    position: absolute; display: grid; place-items: center;
    width: 48px; height: 48px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer;
    transition: background-color .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox__counter { position: absolute; top: 1.6rem; left: 1.5rem; color: rgba(255, 255, 255, .7); font-size: .9rem; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .lightbox__nav { top: auto; bottom: 1rem; } }

/* ---------- Pagination & navigation entre articles ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 2.5rem; font-weight: 600; }
.pagination a { display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; }
.post-nav { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; padding-block: 2.5rem; }
.post-nav__link { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--bg-alt); text-decoration: none; }
.post-nav__link--right { text-align: right; align-items: flex-end; }
.post-nav__label { display: inline-flex; align-items: center; gap: .25rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.post-nav__title { font-weight: 700; color: var(--ink); }

/* ---------- Page d'erreur ---------- */
.error-page { padding-block: clamp(4rem, 12vw, 8rem); }
.error-page__code { font: 400 clamp(6rem, 20vw, 10rem)/1 var(--font-display); color: var(--accent); margin: 0; }
.error-page__title { font: 400 clamp(2rem, 5vw, 3rem)/1.1 var(--font-display); text-transform: uppercase; color: var(--navy); }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; background: var(--navy); color: rgba(255, 255, 255, .72); font-size: .95rem; }
.site-footer__grid { display: grid; gap: 2rem; padding-block: 3rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.site-footer__brand img { width: 110px; height: auto; margin-bottom: .75rem; background: #fff; padding: .5rem; border-radius: 10px; }
.site-footer__name { font: 400 1.6rem/1 var(--font-display); text-transform: uppercase; color: #fff; margin-bottom: .5rem; }
.site-footer__title { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer__links, .site-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer__contact { margin-bottom: 1.25rem; gap: .75rem; }
.site-footer__contact li { display: flex; gap: .6rem; align-items: flex-start; }
.site-footer__contact .icon { color: var(--accent); margin-top: .2em; }
.social { display: flex; gap: .5rem; margin-top: 1rem; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); transition: background-color .2s; }
.social a:hover { background: var(--accent); color: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); background: var(--navy-950); font-size: .85rem; }
.site-footer__bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1.1rem; }
.site-footer__bottom a { color: rgba(255, 255, 255, .72); }

/* ---------- Accessibilité : réduction des animations ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Impression ---------- */
@media print {
    .site-header, .site-footer, .cta-band, .wave, .lightbox, .calendar-aside, .chips { display: none !important; }
    .hero, .page-hero { background: none !important; color: #000; padding: 1rem 0; }
    .page-hero__title, .hero__title { color: #000; }
}
