/* ═══════════════════════════════════════════════════════════════════
   FLAG'MALO 2026 · FEUILLE DE STYLE
   Fond étoilé de la version d'origine, couleurs or de l'affiche 2026,
   police « Hacked » (en couleur unie) pour le titre, les sections et la navbar.
   ═══════════════════════════════════════════════════════════════════ */

/* ── POLICES ─────────────────────────────────────────────────────────
   « Hacked » (David Libeau, CC BY), fichier d'origine non modifié.
   Dans ce fichier, seules les lettres A-Z sont dessinées : les lettres
   accentuées y sont vides et les chiffres en serif. unicode-range limite
   donc Hacked aux lettres simples ; É, À, chiffres et ponctuation
   s'affichent automatiquement en Bebas Neue (police suivante). */
@font-face {
    font-family: 'Hacked';
    src: url('fonts/HACKED_Title.ttf') format('truetype');
    font-display: swap;
    unicode-range: U+0020, U+0041-005A, U+0061-007A;
}

/* ── VARIABLES ───────────────────────────────────────────────────── */
:root {
    --bg: #05060a;
    --bg-panel: rgba(8, 9, 14, .9);
    --surface: rgba(16, 17, 25, .9);
    --surface-2: rgba(23, 24, 34, .95);
    --line: rgba(242, 201, 76, .14);
    --line-strong: rgba(242, 201, 76, .42);

    --gold-50: #fff6d6;
    --gold-100: #fbe8a6;
    --gold-200: #f7d774;
    --gold-300: #f2c94c;
    --gold-400: #e3aa35;
    --gold-500: #c68d20;
    --gold-ink: #1a1204;
    --gold-fill: linear-gradient(180deg, #fbe7a0 0%, #f2c94c 45%, #deaa3e 100%);

    --text: #ede7d9;
    --text-dim: #b3ac9b;
    --text-faint: #7f796d;

    --font-display: 'Hacked', 'Bebas Neue', 'Barlow Condensed', Impact, sans-serif;
    --font-digits: 'Bebas Neue', 'Barlow Condensed', Impact, sans-serif;
    --font-label: 'Barlow Condensed', 'Barlow', 'Arial Narrow', sans-serif;
    --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --container: 1240px;
    --gutter: 16px;
    --header-h: 64px;
    --radius: 14px;
    --radius-sm: 8px;
    --ease: cubic-bezier(.22, .7, .2, 1);
}

@media (min-width: 640px) {
    :root { --gutter: 24px; }
}

@media (min-width: 1200px) {
    :root { --gutter: 32px; --header-h: 76px; }
}

/* ── BASE ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    overflow-x: hidden;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

/* Fond : ciel étoilé (canvas, voir script.js) + nébuleuses discrètes */
#starfield {
    position: fixed;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(60vmax 60vmax at 0% 0%, rgba(106, 42, 234, .13), transparent 65%),
        radial-gradient(50vmax 50vmax at 100% 45%, rgba(20, 80, 180, .11), transparent 65%),
        radial-gradient(45vmax 45vmax at 45% 100%, rgba(212, 137, 26, .06), transparent 65%);
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a {
    color: var(--gold-200);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .2s;
}
a:hover { color: var(--gold-50); }

strong { font-weight: 600; color: #fff; }
sup {
    font-size: .6em;
    line-height: 0;
    vertical-align: .55em;
    letter-spacing: 0;
    text-transform: none;
}
ul, ol { padding: 0; }

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

::selection { background: var(--gold-300); color: var(--gold-ink); }

.container {
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
}

.nowrap { white-space: nowrap; }

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

.skip-link {
    position: fixed;
    top: -80px;
    left: 12px;
    z-index: 300;
    padding: .7rem 1.1rem;
    border-radius: var(--radius-sm);
    background: var(--gold-300);
    color: var(--gold-ink);
    font-weight: 700;
    text-decoration: none;
    transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--gold-ink); }

/* ── TYPO COMMUNE ────────────────────────────────────────────────── */
.eyebrow {
    font-family: var(--font-label);
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold-300);
}
.eyebrow::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 2px;
    margin: 0 .75rem .25em 0;
    vertical-align: middle;
    border-radius: 2px;
    background: var(--gold-300);
}

/* Titres en Hacked : couleur unie, sans effet, pour rester nets */
.section-title {
    margin: .7rem 0 1.1rem;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.3rem, 5.6vw, 3.9rem);
    line-height: 1.02;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--gold-300);
}

.section-lead {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--text-dim);
}
.section-lead strong { color: var(--text); }

.subsection-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.8rem, 3.6vw, 2.4rem);
    line-height: 1.05;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gold-200);
}

/* Titres de cartes : condensé lisible */
.card-title {
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 1.32rem;
    line-height: 1.15;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text);
}

/* ── BOUTONS ─────────────────────────────────────────────────────── */
.btn {
    --cut: 10px;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6em;
    padding: .85em 1.5em;
    border: 0;
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
    transition: transform .25s var(--ease), filter .25s, color .25s;
}
.btn i { font-size: .9em; }
.btn:focus-visible { clip-path: none; outline: 2px solid var(--gold-50); outline-offset: 3px; border-radius: 2px; }

.btn--gold {
    color: var(--gold-ink);
    background: var(--gold-fill);
}
.btn--gold:hover {
    color: var(--gold-ink);
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.btn--ghost {
    color: var(--gold-100);
    background: rgba(242, 201, 76, .5);
}
.btn--ghost::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    background: #0e0f15;
    clip-path: polygon(calc(var(--cut) - .6px) 0, 100% 0, 100% calc(100% - var(--cut) + .6px), calc(100% - var(--cut) + .6px) 100%, 0 100%, 0 calc(var(--cut) - .6px));
    transition: background-color .25s;
}
.btn--ghost:hover { color: #fff; transform: translateY(-2px); }
.btn--ghost:hover::before { background: #1b1b21; }

.btn--lg { --cut: 12px; font-size: 1.15rem; padding: 1em 1.8em; }
.btn--sm { --cut: 8px; font-size: .92rem; padding: .7em 1.1em; }

.icon-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(12, 13, 19, .85);
    color: var(--gold-200);
    cursor: pointer;
    transition: background .2s, color .2s, opacity .2s;
}
.icon-btn:hover:not(:disabled) { background: var(--gold-300); color: var(--gold-ink); }
.icon-btn:disabled { opacity: .3; cursor: default; }

/* Pastille d'icône, simple */
.cat-card__icon,
.info-card__icon,
.crew__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(242, 201, 76, .25);
    border-radius: 12px;
    background: rgba(242, 201, 76, .08);
    font-size: 1.05rem;
    color: var(--gold-200);
}

/* ═══════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════ */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
}

/* Fond sur un pseudo-élément : un backdrop-filter sur le header lui-même
   casserait le menu mobile (position: fixed) */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background: rgba(6, 7, 11, .9);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
    box-shadow: 0 1px 0 var(--line), 0 12px 30px rgba(0, 0, 0, .35);
    transition: opacity .35s var(--ease);
}
.site-header.is-scrolled::before,
.nav-open .site-header::before { opacity: 1; }

.header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(100% - 2 * var(--gutter), var(--container));
    height: 100%;
    margin-inline: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-width: 0;
    margin-right: auto;
    color: var(--text);
    text-decoration: none;
}
.brand__emblem {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(242, 201, 76, .4);
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--gold-300);
}
.brand__meta {
    margin-top: .3rem;
    font-family: var(--font-label);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.main-nav__list {
    display: flex;
    gap: clamp(1rem, 1.5vw, 1.6rem);
    list-style: none;
}
.main-nav__link {
    position: relative;
    display: block;
    padding: .5rem 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
}
.main-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: .1rem;
    height: 2px;
    border-radius: 2px;
    background: var(--gold-300);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}
.main-nav__link:hover,
.main-nav__link.is-active { color: var(--gold-300); }
.main-nav__link:hover::after,
.main-nav__link.is-active::after { transform: scaleX(1); }
.main-nav__extra { display: none; }

.header-cta { margin-left: 8px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: rgba(12, 13, 19, .7);
    color: var(--gold-200);
    cursor: pointer;
}
.nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .3s var(--ease), opacity .2s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Pastille Bretagne Cyber Alliance : accrochée en haut du header, comme sur l'affiche */
/* même hauteur que la navbar */
.bca-pastille {
    align-self: flex-start;
    flex-shrink: 0;
    width: auto;
    height: var(--header-h);
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45));
}

@media (min-width: 1200px) {
    .bca-pastille { margin-left: 10px; }
}

/* Menu mobile / tablette */
@media (max-width: 1199.98px) {
    .nav-toggle { display: inline-flex; }

    .main-nav {
        position: fixed;
        inset: var(--header-h) 0 0;
        z-index: 90;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 2rem;
        padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
        overflow-y: auto;
        background: #06070b;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
    }
    .nav-open .main-nav {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity .3s var(--ease), transform .3s var(--ease);
    }
    .main-nav__list { flex-direction: column; gap: 0; }
    .main-nav__link {
        padding: .7rem 0;
        border-bottom: 1px solid var(--line);
        font-size: clamp(1.6rem, 6.5vw, 2.2rem);
    }
    .main-nav__link::after { display: none; }
    .main-nav__extra { display: grid; gap: 1.1rem; }
    .main-nav__date {
        font-family: var(--font-label);
        font-weight: 600;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--text-dim);
    }
    .main-nav__date i { margin-right: .4rem; color: var(--gold-300); }
    .nav-open { overflow: hidden; }
    .header-cta { font-size: .95rem; padding: .75em 1.05em; }
}

@media (max-width: 479.98px) {
    .brand__text { display: none; }
    .header-inner { gap: 8px; }
    .header-cta { margin-left: 0; }
    .header-cta i { display: none; }
    .header-cta { font-size: .9rem; padding: .7em .85em; }
}

/* petits écrans : la pastille garde la hauteur du header, on retire l'emblème
   (sauf sur les pages secondaires, dont le header est moins chargé) */
@media (max-width: 389.98px) {
    .site-header:not(.site-header--simple) .brand { display: none; }
    .site-header:not(.site-header--simple) .header-inner { justify-content: flex-end; }
    .header-cta { margin-right: auto; }
}

/* ═══════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--header-h) + 2.5rem) 0 4rem;
}

.hero__grid {
    display: grid;
    align-items: center;
    gap: 2rem;
}

.hero__title {
    margin-top: 1rem;
    font-weight: 400;
    line-height: 1;
}
.hero__name {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3.6rem, 12.5vw, 8.2rem);
    line-height: 1;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--gold-300);
}
.hero__tag {
    display: block;
    margin-top: .5rem;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    letter-spacing: .05em;
    color: var(--gold-200);
}

.gold-rule {
    width: min(100%, 520px);
    height: 2px;
    margin: 1.4rem 0 1.3rem;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold-300), rgba(242, 201, 76, .15));
}

.hero__date {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4.2vw, 2.6rem);
    line-height: 1.05;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gold-200);
}
.hero__place {
    margin-top: .5rem;
    font-family: var(--font-label);
    font-weight: 600;
    font-size: clamp(1.1rem, 2.1vw, 1.3rem);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text);
}

.hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem 1.2rem;
    margin-top: 1rem;
    list-style: none;
    color: var(--text-dim);
}
/* une puce par élément : pas de séparateur orphelin quand la ligne se coupe */
.hero__facts li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 .5rem .15em 0;
    border-radius: 50%;
    background: var(--gold-400);
    vertical-align: middle;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 2rem;
}

/* Compte à rebours discret, sur une ligne */
.countdown {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: var(--text-dim);
}
.countdown > i { margin-right: .45rem; color: var(--gold-300); }
.countdown strong { font-weight: 600; color: var(--text); }
.countdown b {
    font-weight: 700;
    color: var(--gold-200);
    font-variant-numeric: tabular-nums;
}
.countdown__sub::before {
    content: "·";
    margin: 0 .5rem 0 .2rem;
    color: var(--gold-400);
}
.countdown.is-live > i { color: #ff5a5a; animation: pulse 1.4s ease-in-out infinite; }

/* Ancre */
.hero__visual {
    position: relative;
    display: grid;
    place-items: center;
}
.hero__visual::before {
    content: "";
    position: absolute;
    width: 80%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 201, 76, .16), rgba(106, 42, 234, .08) 50%, transparent 70%);
}
.hero__anchor {
    position: relative;
    width: min(100%, 330px);
    animation: float 8s ease-in-out infinite;
}

.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 1.2rem;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--gold-200);
    transform: translateX(-50%);
}

@media (min-width: 960px) {
    .hero__grid {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
        gap: 3rem;
    }
}

@media (max-width: 959.98px) {
    .hero { min-height: 0; padding: calc(var(--header-h) + 1.75rem) 0 3.5rem; }
    .hero__visual { order: -1; }
    .hero__anchor { width: 118px; }
    .hero__content { text-align: center; }
    .hero__content .eyebrow::before { display: none; }
    .gold-rule { margin-inline: auto; background: linear-gradient(90deg, rgba(242, 201, 76, .1), var(--gold-300), rgba(242, 201, 76, .1)); }
    .hero__facts,
    .hero__actions { justify-content: center; }
    .hero__scroll { display: none; }
}

@media (max-width: 479.98px) {
    .hero__actions .btn { width: 100%; }
}

@media (max-height: 760px) and (min-width: 960px) {
    .hero__scroll { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════════ */
.section {
    position: relative;
    padding: clamp(4.5rem, 10vw, 7rem) 0;
}

.section--panel {
    background: var(--bg-panel);
    box-shadow: inset 0 1px 0 rgba(242, 201, 76, .08), inset 0 -1px 0 rgba(242, 201, 76, .08);
}

.section-head {
    max-width: 780px;
    margin-bottom: clamp(2.2rem, 5vw, 3.2rem);
}
.section-head--center {
    margin-inline: auto;
    text-align: center;
}

/* ── L'ÉVÉNEMENT ─────────────────────────────────────────────────── */
.about__grid {
    display: grid;
    align-items: center;
    gap: 3rem;
}
.about__text > p + p { margin-top: 1rem; }
.about__text > p:not(.eyebrow):not(.section-lead) { color: var(--text-dim); }

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin: 2rem 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
}
.stat {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    padding: 1.1rem 1rem;
    background: rgba(10, 11, 16, .95);
}
.stat__value {
    font-family: var(--font-digits);
    font-size: clamp(2.3rem, 4vw, 2.8rem);
    line-height: 1;
    color: var(--gold-300);
}
.stat__label {
    margin-top: .35rem;
    font-family: var(--font-label);
    font-weight: 600;
    font-size: .82rem;
    line-height: 1.3;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.label-bca {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .03);
}
.about .label-bca { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.label-bca img { width: 116px; flex-shrink: 0; }
.label-bca p { font-size: .95rem; line-height: 1.55; color: var(--text-dim); }

.about__media { position: relative; }
.photo-frame {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.about__badge {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    padding: .7rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: rgba(8, 9, 13, .9);
    font-family: var(--font-label);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .04em;
}
.about__badge span {
    display: block;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-300);
}

@media (min-width: 960px) {
    .about__grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; }
}

@media (min-width: 640px) {
    .stats { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 479.98px) {
    .label-bca { flex-direction: column; align-items: flex-start; }
}

/* Participer en 3 étapes */
.steps { margin-top: clamp(4rem, 9vw, 6rem); }
.steps__title { margin-bottom: 2rem; text-align: center; }
.steps__list {
    display: grid;
    gap: 1rem;
    list-style: none;
}
.step {
    padding: 1.5rem 1.4rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.step__num {
    display: block;
    font-family: var(--font-digits);
    font-size: 2.6rem;
    line-height: 1;
    color: var(--gold-300);
}
.step .card-title { margin: .6rem 0 .45rem; }
.step p { font-size: 1rem; color: var(--text-dim); }
.step--key { border-color: var(--line-strong); }
.step__link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: .9rem;
    font-family: var(--font-label);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
}
.step__link i { transition: transform .25s var(--ease); }
.step__link:hover i { transform: translateX(4px); }

@media (min-width: 860px) {
    .steps__list { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

/* ── C'EST QUOI UN CTF ───────────────────────────────────────────── */
.cat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    list-style: none;
}
.cat-card {
    padding: 1.35rem 1.3rem 1.3rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform .3s var(--ease), border-color .3s;
}
.cat-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
}
.cat-card .card-title { margin: .85rem 0 .35rem; color: var(--gold-200); }
.cat-card p { font-size: .98rem; line-height: 1.55; color: var(--text-dim); }
.cat-card--more { border-style: dashed; border-color: var(--line-strong); background: transparent; }

.ctf__note {
    margin-top: 2.2rem;
    text-align: center;
    color: var(--text-dim);
}

@media (min-width: 540px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── PROGRAMME ───────────────────────────────────────────────────── */
.timeline {
    --tl-col: 5.6rem;
    position: relative;
    display: grid;
    list-style: none;
}
.timeline::before {
    content: "";
    position: absolute;
    top: .7rem;
    bottom: 1.6rem;
    left: calc(var(--tl-col) + .8rem);
    width: 2px;
    background: linear-gradient(var(--gold-400), rgba(227, 170, 53, .15));
}
.timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: var(--tl-col) 1fr;
    column-gap: 1.8rem;
    padding-bottom: 1.2rem;
}
.timeline__time {
    padding-top: .1rem;
    font-family: var(--font-digits);
    font-size: 1.6rem;
    line-height: 1.1;
    letter-spacing: .02em;
    text-align: right;
    color: var(--gold-200);
}
.timeline__node {
    position: absolute;
    top: .6rem;
    left: calc(var(--tl-col) + .8rem + 1px);
    width: 13px;
    height: 13px;
    border: 2px solid var(--gold-300);
    border-radius: 50%;
    background: var(--bg);
    transform: translateX(-50%);
    transition: background .3s, box-shadow .3s;
}
.timeline__card {
    grid-column: 2;
    padding: 1rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: border-color .3s, box-shadow .3s;
}
.timeline__card p { margin-top: .35rem; font-size: .98rem; line-height: 1.55; color: var(--text-dim); }
.timeline__item:hover .timeline__node { background: var(--gold-300); }

/* Le jour J : étape en cours mise en avant */
.timeline__item.is-now .timeline__node {
    background: var(--gold-300);
    box-shadow: 0 0 12px var(--gold-300);
}
.timeline__item.is-now .timeline__card {
    border-color: var(--gold-300);
    box-shadow: 0 0 0 1px var(--gold-300);
}
.timeline__item.is-now .timeline__card::before {
    content: "En ce moment";
    display: inline-block;
    margin-bottom: .4rem;
    padding: .15rem .55rem;
    border-radius: 999px;
    background: var(--gold-300);
    color: var(--gold-ink);
    font-family: var(--font-label);
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.timeline__item.is-past { opacity: .5; }

@media (min-width: 1024px) {
    .timeline {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        column-gap: 1rem;
    }
    .timeline::before {
        top: 3.05rem;
        right: 0;
        bottom: auto;
        left: 0;
        width: auto;
        height: 2px;
        background: linear-gradient(90deg, rgba(227, 170, 53, 0), var(--gold-400) 4%, var(--gold-400) 96%, rgba(227, 170, 53, 0));
    }
    .timeline__item {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
        padding-bottom: 0;
    }
    .timeline__time { height: 2.3rem; text-align: left; }
    .timeline__node {
        position: relative;
        top: auto;
        left: auto;
        margin: .25rem 0 1.3rem 2px;
        transform: none;
    }
    .timeline__card { grid-column: 1; }
}

/* ── INFOS PRATIQUES ─────────────────────────────────────────────── */
.infos__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.info-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.35rem 1.3rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.info-card .card-title { margin: .8rem 0 .45rem; color: var(--gold-200); }
.info-card p,
.info-card address {
    font-size: .98rem;
    font-style: normal;
    color: var(--text-dim);
}
.info-card .info-card__strong { font-weight: 600; color: var(--text); }

.info-list {
    display: grid;
    gap: .3rem;
    margin-top: .55rem;
    list-style: none;
}
.info-list li { display: flex; align-items: baseline; gap: .8rem; font-size: .98rem; color: var(--text-dim); }
.info-list span {
    min-width: 3.1rem;
    font-family: var(--font-digits);
    font-size: 1.2rem;
    letter-spacing: .03em;
    color: var(--gold-200);
}

.info-card .info-card__note {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    margin-top: .6rem;
    font-size: .93rem;
}
.info-card__note i { flex-shrink: 0; width: 1rem; text-align: center; color: var(--gold-400); }

.checklist {
    display: grid;
    gap: .45rem;
    margin-top: .2rem;
    list-style: none;
}
.checklist li {
    position: relative;
    padding-left: 1.6rem;
    font-size: .98rem;
    color: var(--text);
}
.checklist li::before {
    content: "\f00c";
    position: absolute;
    top: .12rem;
    left: 0;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .8rem;
    color: var(--gold-300);
}
.checklist .checklist__tip { font-size: .92rem; color: var(--text-dim); }
.checklist .checklist__tip::before { content: "\f0eb"; color: var(--gold-500); }

/* Bas de carte, aligné en pied */
.info-card__foot { margin-top: auto; padding-top: 1.1rem; }
.team-icons {
    display: flex;
    gap: .5rem;
    margin-bottom: .8rem;
    font-size: 1.1rem;
    color: var(--gold-300);
}
.info-card__link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-family: var(--font-label);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
}
.info-card__link i { transition: transform .25s var(--ease); }
.info-card__link:hover i { transform: translateX(4px); }
.mini-levels {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-label);
    font-weight: 700;
    font-size: .75rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.mini-levels__bar {
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(242, 201, 76, .15), var(--gold-300));
}

.info-card--photo {
    justify-content: flex-end;
    min-height: 300px;
    padding: 0;
    overflow: hidden;
    border-color: var(--line-strong);
}
.info-card--photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease);
}
.info-card--photo:hover img { transform: scale(1.04); }
.info-card__overlay {
    position: relative;
    padding: 3rem 1.2rem 1.15rem;
    background: linear-gradient(to top, rgba(6, 7, 10, .96) 35%, rgba(6, 7, 10, .7) 70%, transparent);
}
.info-card__overlay .card-title { margin-top: 0; }
.info-card__overlay .card-title i { margin-right: .3rem; font-size: .85em; }
.info-card__overlay p { color: var(--text); }

.map-card {
    display: flex;
    flex-direction: column;
    min-height: 340px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: #0c0d12;
}
.map-card__map {
    position: relative;
    flex: 1;
    min-height: 260px;
    overflow: hidden;
}
.map-card__link { position: absolute; inset: 0; }
.map-card__link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* plan OpenStreetMap passé en mode sombre */
    filter: invert(.9) hue-rotate(185deg) saturate(.55) brightness(.95) contrast(.95);
    transition: transform .7s var(--ease);
}
.map-card__link:hover img { transform: scale(1.04); }
.map-card__pin {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 2.3rem;
    line-height: 1;
    color: var(--gold-300);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .7));
    transform: translate(-50%, -92%);
    pointer-events: none;
}
.map-card__credit {
    position: absolute;
    right: .5rem;
    bottom: .45rem;
    padding: .1rem .45rem;
    border-radius: 4px;
    background: rgba(7, 8, 12, .8);
    font-size: .72rem;
    color: var(--text-dim);
    text-decoration: none;
}
.map-card__credit:hover { color: var(--gold-100); }
.map-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .8rem 1rem;
    padding: .85rem 1rem;
    border-top: 1px solid var(--line);
    background: rgba(10, 11, 16, .96);
}
.map-card__footer p {
    font-family: var(--font-label);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.map-card__footer p i { margin-right: .35rem; color: var(--gold-300); }

@media (min-width: 640px) {
    .infos__grid { grid-template-columns: repeat(2, 1fr); }
    .map-card { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
    .infos__grid { grid-template-columns: repeat(4, 1fr); }
    .map-card { grid-column: 3 / 5; grid-row: 1 / 3; }
}

/* ── ARCHIVES ────────────────────────────────────────────────────── */
.editions__nav {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    margin-bottom: 1rem;
}
.editions__track {
    display: grid;
    grid-auto-columns: minmax(230px, 250px);
    grid-auto-flow: column;
    gap: 1rem;
    margin: 0 -.3rem;
    padding: .4rem .3rem 1.3rem;
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--gold-500) rgba(255, 255, 255, .05);
    scrollbar-width: thin;
}
.editions__track::-webkit-scrollbar { height: 6px; }
.editions__track::-webkit-scrollbar-track { background: rgba(255, 255, 255, .05); border-radius: 6px; }
.editions__track::-webkit-scrollbar-thumb { background: var(--gold-500); border-radius: 6px; }

.edition {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.3rem 1.2rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    scroll-snap-align: start;
    transition: border-color .3s;
}
.edition:hover { border-color: var(--line-strong); }
.edition__logo {
    width: 84px;
    height: 84px;
    margin-bottom: 1rem;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(242, 201, 76, .3);
}
.edition__num {
    font-family: var(--font-label);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-400);
}
.edition__year {
    font-family: var(--font-digits);
    font-weight: 400;
    font-size: 2.6rem;
    line-height: 1;
    letter-spacing: .02em;
    color: var(--text);
}
.edition__text { margin-top: .5rem; font-size: .93rem; line-height: 1.5; color: var(--text-dim); }
.edition--current { border-color: var(--gold-300); }
.edition--current .edition__year { color: var(--gold-300); }
.edition__link {
    margin-top: auto;
    padding-top: .9rem;
    font-family: var(--font-label);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
}

.gallery-head,
.quotes-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .4rem 1.5rem;
    margin: clamp(3.5rem, 7vw, 5rem) 0 1.5rem;
}
.gallery-head p,
.quotes-head p { color: var(--text-dim); }

/* Grille : 12 photos, les verticales sur 2 rangées -> rectangle complet
   (3 colonnes x 5 rangées sur ordinateur, 2 x 8 sur mobile) */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(130px, 33vw, 190px);
    grid-auto-flow: dense;
    gap: .75rem;
    list-style: none;
}
.gallery li { min-width: 0; }
.gallery .is-tall { grid-row: span 2; }
.gallery .is-wide-mobile { grid-column: span 2; }
.gallery .is-wide-mobile img { object-position: center 62%; }
.gallery__item {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #0c0d12;
    cursor: zoom-in;
}
.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease);
}
.gallery__item::after {
    content: attr(data-caption);
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 2.2rem .9rem .7rem;
    background: linear-gradient(to top, rgba(6, 7, 10, .92), transparent);
    font-family: var(--font-label);
    font-weight: 600;
    font-size: .92rem;
    letter-spacing: .03em;
    text-align: left;
    color: var(--text);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .3s, transform .3s;
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:hover::after,
.gallery__item:focus-visible::after { opacity: 1; transform: none; }

@media (hover: none) {
    .gallery__item::after { opacity: 1; transform: none; }
}

@media (min-width: 720px) {
    .gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: clamp(170px, 17vw, 230px);
        gap: 1rem;
    }
    .gallery .is-wide-mobile { grid-column: auto; }
}

.quotes {
    display: grid;
    gap: 1.6rem 1rem;
    list-style: none;
}
.quote {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.7rem 1.4rem 1.3rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.quote::before {
    content: "\f10d";
    position: absolute;
    top: -15px;
    left: 1.3rem;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gold-300);
    color: var(--gold-ink);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .8rem;
}
.quote blockquote { font-size: 1.02rem; font-style: italic; line-height: 1.6; }
.quote__author {
    font-family: var(--font-label);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-300);
}

@media (min-width: 900px) {
    .quotes { grid-template-columns: repeat(3, 1fr); }
}

/* Visionneuse */
.lightbox {
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(5, 6, 9, .95);
    color: var(--text);
}
.lightbox[open] { display: grid; place-items: center; }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox__figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .9rem;
    max-width: min(92vw, 1400px);
    margin: 0;
}
.lightbox__img {
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 9rem);
    max-height: calc(100dvh - 9rem);
    border-radius: var(--radius-sm);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.lightbox__caption {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .3rem 1rem;
    padding-inline: 4rem;
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: .04em;
    text-align: center;
}
.lightbox__count { color: var(--gold-300); }
.lightbox__btn {
    position: fixed;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(12, 13, 19, .88);
    color: var(--gold-100);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.lightbox__btn:hover { background: var(--gold-300); color: var(--gold-ink); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev,
.lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }

@media (max-width: 639.98px) {
    .lightbox__prev,
    .lightbox__next { top: auto; bottom: 1rem; transform: none; }
    .lightbox__img { max-height: calc(100dvh - 12rem); }
}

/* ── PARTENAIRES ─────────────────────────────────────────────────── */
/* Carrousel juste sous le hero : logos sur cartes claires, défilement continu */
.partners {
    padding: 3rem 0 3.5rem;
    background: var(--bg-panel);
    box-shadow: inset 0 1px 0 rgba(242, 201, 76, .08), inset 0 -1px 0 rgba(242, 201, 76, .08);
}
.partners__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .3rem 1.5rem;
    margin-bottom: 1.6rem;
}
.partners__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.9rem, 3.6vw, 2.5rem);
    line-height: 1;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gold-300);
}
.partners__head p { color: var(--text-dim); }

.partners__marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.partners__track {
    display: flex;
    gap: 1rem;
    width: max-content;
    padding: .4rem 0;
    list-style: none;
}
.partners__track.is-running {
    animation: marquee 35s linear infinite !important;
}.partners__marquee:hover .partners__track,
.partners__marquee:focus-within .partners__track { animation-play-state: paused; }

.partners__track li > a {
    display: grid;
    place-items: center;
    width: 200px;
    height: 100px;
    padding: .9rem 1rem;
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: 0 0 0 1px rgba(242, 201, 76, .3);
    transition: transform .25s var(--ease), box-shadow .25s;
}
.partners__track li > a:hover,
.partners__track li > a:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 0 0 2px var(--gold-300), 0 12px 24px rgba(0, 0, 0, .4);
}
/* Taille « optique » : plus un logo est allongé, moins il est haut, pour que tous pèsent autant */
.partners__track img {
    width: auto;
    height: 36px;
    max-width: 100%;
    object-fit: contain;
}
.partners__track img.is-square { height: 64px; }
.partners__track img.is-tall { height: 54px; }
.partners__track img.is-mid { height: 44px; }
.partners__track img.is-wide { height: 27px; }

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* sans animation : les logos passent à la ligne, centrés */
@media (prefers-reduced-motion: reduce) {
    .partners__marquee { -webkit-mask-image: none; mask-image: none; }
    .partners__track { flex-wrap: wrap; justify-content: center; width: auto; padding-inline: var(--gutter); }
}

.partners__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .8rem 1.2rem;
    margin-top: 1.8rem;
    text-align: center;
    color: var(--text-dim);
}

/* ── ÉQUIPE ──────────────────────────────────────────────────────── */
.team-lead {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin-bottom: 1.25rem;
    padding: 1.5rem 1.6rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
}
.team-lead__emblem {
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(242, 201, 76, .35);
}
.team-lead__role {
    font-family: var(--font-label);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold-400);
}
.team-lead__name {
    margin: .25rem 0 .45rem;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.9rem, 4.2vw, 2.5rem);
    line-height: 1.05;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gold-300);
}
.team-lead p:last-child { color: var(--text-dim); }

.crew-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1rem;
    list-style: none;
}
.crew {
    padding: 1.25rem 1.3rem 1.3rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color .3s;
}
.crew:hover { border-color: var(--line-strong); }
.crew__head {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1rem;
}
.crew__members {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    list-style: none;
}
.crew__members li {
    padding: .3rem .75rem;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    font-size: .95rem;
}
.crew__members .is-lead {
    border-color: rgba(242, 201, 76, .5);
    background: rgba(242, 201, 76, .14);
    color: var(--gold-50);
    font-weight: 600;
}
.crew__members .is-lead span {
    margin-left: .35rem;
    font-family: var(--font-label);
    font-weight: 700;
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-300);
}

@media (max-width: 519.98px) {
    .team-lead { flex-direction: column; align-items: flex-start; }
}

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq__container { max-width: 880px; }
.faq__list { display: grid; gap: .7rem; }
.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: border-color .25s, background .25s;
}
.faq-item[open] { border-color: var(--line-strong); background: var(--surface-2); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.2rem;
    font-weight: 600;
    font-size: 1.06rem;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
    transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "\f067";
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .78rem;
    color: var(--gold-200);
    transition: transform .3s var(--ease), background .3s, color .3s;
}
.faq-item summary:hover { color: var(--gold-100); }
.faq-item[open] summary::after {
    transform: rotate(45deg);
    background: var(--gold-300);
    color: var(--gold-ink);
}
.faq-item__answer { padding: 0 1.2rem 1.2rem; color: var(--text-dim); }
.faq-item__answer p + p { margin-top: .6rem; }
.faq__more { margin-top: 2rem; text-align: center; color: var(--text-dim); }

/* ── APPEL À L'ACTION FINAL ──────────────────────────────────────── */
.cta-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(5rem, 12vw, 8rem) 0;
    text-align: center;
}
.cta-band__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.75) brightness(.55);
}
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at center, rgba(5, 6, 10, .5), rgba(5, 6, 10, .92) 75%),
        linear-gradient(180deg, var(--bg), transparent 22%, transparent 78%, var(--bg));
}
.cta-band__inner { display: flex; flex-direction: column; align-items: center; }
.cta-band__text {
    max-width: 640px;
    margin-bottom: 2rem;
    font-size: 1.15rem;
}
.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .8rem;
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
.site-footer {
    padding: 3.5rem 0 1.5rem;
    border-top: 1px solid var(--line);
    background: #040508;
}
.footer__grid {
    display: grid;
    gap: 2.2rem;
}
.footer__brand p {
    max-width: 330px;
    margin-top: 1rem;
    font-size: .95rem;
    color: var(--text-dim);
}
.footer__brand .brand { margin-right: 0; }
.footer__title {
    margin-bottom: .9rem;
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-300);
}
.footer__col ul { display: grid; gap: .4rem; list-style: none; }
.footer__col a:not(.btn) { color: var(--text-dim); text-decoration: none; }
.footer__col a:not(.btn):hover { color: var(--gold-100); }
.footer__col address {
    margin-bottom: .6rem;
    font-style: normal;
    line-height: 1.6;
    color: var(--text-dim);
}
.footer__cta { margin-top: 1.2rem; }

.socials { display: flex; flex-wrap: wrap; gap: .5rem; }
.socials a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--gold-200);
    text-decoration: none;
    transition: background .2s, color .2s;
}
.socials a:hover {
    background: var(--gold-300);
    color: var(--gold-ink);
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 2rem;
    margin-top: 2.6rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, .06);
    font-size: .85rem;
    color: var(--text-faint);
}

@media (min-width: 640px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

/* ── BOUTON RETOUR EN HAUT ───────────────────────────────────────── */
.to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 80;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gold-300);
    color: var(--gold-ink);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s, transform .3s, visibility 0s .3s;
}
.to-top:hover { color: var(--gold-ink); filter: brightness(1.1); }
.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .3s, transform .3s;
}

.footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.2rem;
}
.footer__legal a { color: var(--text-dim); text-decoration: none; }
.footer__legal a:hover { color: var(--gold-100); text-decoration: underline; }

/* ── PAGES LÉGALES (mentions-legales.html, politique-confidentialite.html) ── */
.header-back { margin-left: auto; }

.legal {
    padding: calc(var(--header-h) + 3rem) 0 4.5rem;
}
.legal__container { max-width: 880px; }
.legal__intro { margin-top: .4rem; color: var(--text-dim); }
.legal__updated {
    margin-top: 1rem;
    font-family: var(--font-label);
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.legal__toc {
    margin: 2rem 0 2.5rem;
    padding: 1.2rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.legal__toc-title {
    margin-bottom: .6rem;
    font-family: var(--font-label);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-300);
}
.legal__toc ol {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: .35rem 1.5rem;
    padding-left: 1.3rem;
    color: var(--gold-400);
}
.legal__toc ol + .legal__toc-title { margin-top: 1.2rem; }
.legal__toc a { color: var(--text); text-decoration: none; }
.legal__toc a:hover { color: var(--gold-100); text-decoration: underline; }

.legal__summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: .8rem;
    margin: 2rem 0 0;
    list-style: none;
}
.legal__summary li {
    display: flex;
    gap: .8rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: .98rem;
    line-height: 1.5;
    color: var(--text-dim);
}
.legal__summary i { margin-top: .2rem; font-size: 1.1rem; color: var(--gold-300); }
.legal__summary strong { display: block; color: var(--text); }

/* le décalage sous le header vient déjà de scroll-padding-top sur <html> */
.legal__section {
    padding: 1.6rem 0;
    border-top: 1px solid var(--line);
}
.legal__section h2 {
    margin-bottom: .9rem;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.6rem, 3.2vw, 2.1rem);
    line-height: 1.1;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gold-300);
}
.legal__section h3 {
    margin: 1.3rem 0 .4rem;
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text);
}
.legal__section p,
.legal__section li { color: var(--text-dim); line-height: 1.75; }
.legal__section p + p { margin-top: .7rem; }
.legal__section ul { margin: .5rem 0 0 1.2rem; }
.legal__section li + li { margin-top: .3rem; }
.legal__section strong { color: var(--text); }

.legal__facts {
    display: grid;
    grid-template-columns: minmax(150px, max-content) 1fr;
    gap: .45rem 1.4rem;
    margin-top: .8rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}
.legal__facts dt {
    font-family: var(--font-label);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-400);
    padding-top: .15rem;
}
.legal__facts dd { color: var(--text); }

.legal__table-wrap { margin-top: .8rem; overflow-x: auto; }
.legal__table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
}
.legal__table th,
.legal__table td {
    padding: .75rem .9rem;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    color: var(--text-dim);
}
.legal__table th {
    background: rgba(242, 201, 76, .08);
    font-family: var(--font-label);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gold-200);
}
.legal__table td:first-child { color: var(--text); font-weight: 600; }

.legal__note {
    margin-top: 1rem;
    padding: .9rem 1.1rem;
    border-left: 3px solid var(--gold-400);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: rgba(242, 201, 76, .06);
}

.legal-footer {
    padding: 1.6rem 0;
    border-top: 1px solid var(--line);
    background: #040508;
    font-size: .9rem;
    color: var(--text-faint);
}
.legal-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .6rem 2rem;
}

@media (min-width: 640px) {
    .legal__summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 559.98px) {
    /* tableau des durées : une carte par ligne, sans défilement horizontal */
    .legal__table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    .legal__table,
    .legal__table tbody,
    .legal__table tr,
    .legal__table td { display: block; }
    .legal__table tr {
        margin-bottom: .6rem;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        background: var(--surface);
    }
    .legal__table td { padding: .15rem .95rem; border: 0; }
    .legal__table td:first-child { padding-top: .75rem; }
    .legal__table td:last-child { padding-bottom: .75rem; }

    .legal__facts { grid-template-columns: 1fr; gap: .1rem; }
    .legal__facts dd + dt { margin-top: .6rem; }
    .header-back span { display: none; }
}

/* ── PAGE INSCRIPTION (inscription.html) ─────────────────────────── */
.signup {
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--header-h) + 2rem) 0 3rem;
    text-align: center;
}
.signup__anchor { width: 110px; margin: 0 auto 1.2rem; }
.signup .section-title { margin: .6rem 0 .4rem; }
.signup__date { font-size: 1.1rem; color: var(--text-dim); }
.signup__date strong { color: var(--text); }
.chrono {
    display: flex;
    justify-content: center;
    gap: clamp(.5rem, 2vw, 1rem);
    margin: 2.2rem 0;
}
.chrono__cell {
    min-width: clamp(70px, 18vw, 120px);
    padding: 1rem .5rem .8rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
}
.chrono__num {
    display: block;
    font-family: var(--font-digits);
    font-size: clamp(2.6rem, 9vw, 4.4rem);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--gold-300);
}
.chrono__unit {
    font-family: var(--font-label);
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.signup__open { margin: 2rem 0; font-size: 1.15rem; }
.signup__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }

/* ── APPARITION AU SCROLL ────────────────────────────────────────── */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ── ANIMATIONS ──────────────────────────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .js .reveal { opacity: 1; transform: none; }
}
