/*
 * Mâchon beaujolais de l'Interclasse en 1 – feuille de style.
 * Ambiance « bouchon » : nappe vichy, bois, ardoise ; couleurs de l'Interclasse (marine, rouge, blanc).
 * Polices auto-hébergées sous licence SIL OFL 1.1 (voir fonts/OFL-*.txt) :
 * Alfa Slab One (titres), Source Sans 3 (texte) et Kalam (plats écrits à la craie sur l'ardoise).
 *
 * Règles de couleur : le rouge plein est réservé aux actions (boutons) et au prix ; surtitres,
 * libellés et chiffres sont en marine, brun ou or. Surfaces : les blocs marine sont des « plaques
 * émaillées » (classe .emaille : grain léger et filet or intérieur) ; les blocs clairs sont du papier.
 */

@font-face {
    font-family: "Alfa Slab One";
    src: url("fonts/alfa-slab-one-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Kalam";
    src: url("fonts/kalam-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Source Sans 3";
    src: url("fonts/source-sans-3-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Source Sans 3";
    src: url("fonts/source-sans-3-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Source Sans 3";
    src: url("fonts/source-sans-3-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --navy: #13234b;
    --navy-2: #24386b;
    --red: #b3122e;
    --red-dark: #8c0d23;
    --gold: #e2c27a;
    /* Or foncé pour du texte sur fond clair (contraste AA : 4,8 sur crème). */
    --gold-ink: #85641c;
    --cream: #f7f0e3;
    --cream-2: #efe4cf;
    --paper: #fffdf8;
    --ink: #1f2430;
    --muted: #5a5246;
    --line: #ddd0b9;
    --field: #857a68;
    --ok: #1d6b3a;
    --slate: #27302e;
    --chalk: #f4f0e6;
    --wood: #6b4428;
    --wood-dark: #4b2d18;
    --wood-deep: #3a2414;
    --focus: #13234b;
    --max: 1120px;
    --display: "Alfa Slab One", "Rockwell", "Roboto Slab", Georgia, serif;
    --text: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --chalk-hand: "Kalam", "Segoe Print", "Bradley Hand", var(--text);
    /* Marges latérales : au moins 1rem, plus si l'écran a une encoche (iPhone en paysage). */
    --gutter: max(1rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    --vichy: rgba(179, 18, 46, .48);
    color-scheme: light;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    font-family: var(--text);
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--ink);
    background: var(--cream);
    overflow-wrap: break-word;
    /* Pied de page en bas de l'écran même sur les pages courtes. */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

img { max-width: 100%; height: auto; }

a { color: var(--navy-2); text-underline-offset: .15em; }
a:hover { color: var(--red); }

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

h1, h2 {
    font-family: var(--display);
    font-weight: 400;
    color: var(--navy);
    line-height: 1.1;
    letter-spacing: .005em;
}
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.2rem); margin: 0 0 1.25rem; }
h3 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 .25rem; color: var(--navy); }

.kicker {
    margin: 0 0 .4rem;
    color: var(--wood);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.icon { flex: none; vertical-align: middle; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 10;
    padding: .75rem 1rem;
    background: var(--paper);
    color: var(--navy);
    font-weight: 700;
    border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

.banner-test {
    background: #ffe08a;
    color: #4a3800;
    text-align: center;
    padding: .4rem 1rem;
    font-weight: 700;
    font-size: .9rem;
}

/* ---------- En-tête : cocarde de conscrit ---------- */

/* L'emblème sort d'une cocarde tricolore plissée (comme celle du conscrit du logo), accrochée
   à la barre marine ; deux rubans à queue d'aronde tombent sur le haut de la page. */
:root {
    --cd: 120px;          /* diamètre de la cocarde */
    --cd-haut: 8px;       /* écart entre le haut de la barre et la cocarde */
    --barre: 76px;        /* hauteur de la barre marine */
    --ruban-l: 16px;      /* largeur d'un ruban */
    --ruban-h: 44px;      /* longueur des rubans sous la cocarde */
    /* Hauteur de cocarde et de rubans qui dépasse sous la barre et le liseré (9 px). */
    --sous-cocarde: calc(var(--cd-haut) + var(--cd) + var(--ruban-h) - var(--barre) - 9px);
}
@media (max-width: 379px) {
    :root { --cd: 102px; --barre: 70px; --ruban-h: 36px; --ruban-l: 15px; }
}
@media (min-width: 900px) {
    :root { --cd: 170px; --cd-haut: 10px; --barre: 98px; --ruban-l: 24px; --ruban-h: 58px; }
}

.site-header {
    --focus: #ffd166;
    position: relative;
    z-index: 2;           /* la cocarde et ses rubans passent devant le haut de la page */
    background: url("grain.svg") var(--navy);
    color: #fff;
}
.site-header-inner {
    width: min(100% - 2 * var(--gutter), var(--max));
    margin: 0 auto;
    min-height: var(--barre);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: var(--barre);
    padding-left: calc(var(--cd) + .8rem);
    color: #fff;
    text-decoration: none;
}
.brand:hover { color: #fff; }
.brand-text { display: grid; gap: .15rem; line-height: 1.1; }
.brand-name { font-family: var(--display); font-size: 1.4rem; letter-spacing: .02em; }
.brand-place {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
}
@media (max-width: 379px) {
    .brand { padding-left: calc(var(--cd) + .6rem); }
    .brand-name { font-size: 1.2rem; }
    .brand-place { font-size: .68rem; letter-spacing: .06em; }
}
@media (min-width: 900px) {
    .brand { padding-left: calc(var(--cd) + 1.25rem); }
    .brand-name { font-size: 1.75rem; }
    .brand-place { font-size: .8rem; }
}

.cocarde {
    position: absolute;
    left: 0;
    top: var(--cd-haut);
    width: var(--cd);
    height: var(--cd);
    filter: drop-shadow(0 3px 2px rgba(10, 20, 48, .35));
}

/* Anneaux bleu, blanc, rouge en ruban plissé (ombres des plis en éventail), bord rond. */
.cocarde-plis {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        repeating-conic-gradient(rgba(0, 0, 0, .17) 0 2.5deg, rgba(255, 255, 255, .1) 2.5deg 5deg),
        radial-gradient(closest-side, #1d3c8f 0 75%, #fff 75% 87%, var(--red) 87%);
    box-shadow: inset 0 0 0 1px rgba(60, 0, 10, .35);
}

/* Cœur crème, avec un filet or. */
.cocarde-coeur {
    position: absolute;
    inset: calc(var(--cd) * .18);
    border-radius: 50%;
    background: var(--paper);
    box-shadow: 0 0 0 1.5px var(--gold-ink), 0 1px 3px 1px rgba(0, 0, 0, .3);
}

/* Emblème tenu entièrement dans le cœur crème. Taille et position calculées sur les pixels du logo
   (pas sur son rectangle) : centré sur le fût du « 1 » (42,5 % de la largeur, les rubans du chapeau
   à droite), le plus petit cercle qui contient le logo a pour centre le point à 55 % de sa hauteur
   et pour rayon 0,554 × sa hauteur. Le cœur a un rayon de 0,32 × la cocarde : hauteur maximale
   0,578 × la cocarde, ramenée à 0,56 pour garder un filet d'air avant le filet or.
   Logo tel quel : ni contour, ni halo, ni ombre propre. Proportions de la source : seule la hauteur est fixée. */
.cocarde-embleme {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-42.5%, -55%);
}
.cocarde-embleme img {
    display: block;
    width: auto;
    max-width: none;      /* sinon réduit à la place restante à droite du centre : image déformée */
    height: calc(var(--cd) * .56);
    object-fit: contain;
}

/* Rubans : partent du centre, sous la cocarde, et dépassent en bas, un peu écartés. */
.cocarde-ruban {
    position: absolute;
    top: 50%;
    left: calc(50% - var(--ruban-l) / 2);
    width: var(--ruban-l);
    height: calc(var(--cd) / 2 + var(--ruban-h));
    transform-origin: 50% 0;
    background:
        linear-gradient(rgba(0, 0, 0, .25), transparent 45%),
        linear-gradient(90deg, #1d3c8f 0 33.4%, #fff 33.4% 66.6%, var(--red) 66.6%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - var(--ruban-l) * .55), 0 100%);
}
.cocarde-ruban-g { transform: translateX(-30%) rotate(12deg); }
.cocarde-ruban-d { transform: translateX(30%) rotate(-7deg); height: calc(var(--cd) / 2 + var(--ruban-h) * .8); }

/* Liseré blanc et rouge sous l'en-tête marine (ruban de conscrit). */
.ruban {
    height: 9px;
    background: linear-gradient(#fff 0 3px, var(--red) 3px 9px);
}

/* ---------- Mise en page ---------- */

/* Place réservée sous l'en-tête pour la cocarde et ses rubans. */
.page { flex: 1 0 auto; padding-top: calc(var(--sous-cocarde) - 1rem); padding-bottom: 3.5rem; }
.page:focus { outline: none; }
.page > * { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.page > .hero { width: 100%; }

section[id], [id="questions"] { scroll-margin-top: 1rem; }

/* ---------- Plaques émaillées (blocs marine) : grain léger et filet or intérieur ---------- */

.emaille {
    --focus: #ffd166;
    position: relative;
    background:
        url("grain.svg"),
        radial-gradient(ellipse 80% 70% at 18% 0%, rgba(255, 255, 255, .09), transparent 70%),
        var(--navy);
    color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 0 #0a1430, 0 16px 30px -20px rgba(10, 20, 48, .8);
}
.emaille::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(226, 194, 122, .7);
    border-radius: 3px;
    pointer-events: none;
}

/* ---------- Bandeau d'accueil (nappe vichy très légère, bande vichy franche en bas) ---------- */

.hero {
    /* Le bandeau remonte sous la place laissée aux rubans de la cocarde (voir .page). */
    margin-top: calc(1rem - var(--sous-cocarde));
    padding-top: calc(var(--sous-cocarde) + 1rem);
    background-color: var(--cream);
    background-image:
        linear-gradient(90deg, rgba(179, 18, 46, .035) 50%, transparent 50%),
        linear-gradient(rgba(179, 18, 46, .035) 50%, transparent 50%);
    background-size: 28px 28px;
}
.hero::after {
    content: "";
    display: block;
    height: 16px;
    margin-top: 1.75rem;
    background-color: #fff;
    background-image:
        linear-gradient(90deg, var(--vichy) 50%, transparent 50%),
        linear-gradient(var(--vichy) 50%, transparent 50%);
    background-size: 16px 16px;
}

.hero-inner {
    width: min(100% - 2 * var(--gutter), var(--max));
    margin: 0 auto;
    display: grid;
    gap: 1.75rem;
}

.hero h1 { margin: 0 0 1.1rem; }
.h1-main { display: block; font-size: clamp(2.3rem, 1.4rem + 3.8vw, 3.9rem); line-height: 1; }
.h1-sub {
    display: block;
    margin-top: .3rem;
    font-size: clamp(1.25rem, 1rem + 1.1vw, 1.8rem);
    line-height: 1.15;
    color: var(--wood);
}

/* Plaque des infos clés : libellé au-dessus sur téléphone (toute la largeur pour le texte),
   en colonne à gauche à partir de 520 px. */
.plaque {
    margin: 0 0 1.25rem;
    padding: .55rem 1.1rem;
}
.plaque > div {
    display: grid;
    gap: .05rem;
    padding: .55rem 0;
}
.plaque > div + div { border-top: 1px solid rgba(226, 194, 122, .3); }
.plaque dt {
    color: var(--gold);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.plaque dd { margin: 0; font-weight: 600; font-size: 1.05rem; line-height: 1.4; }
.plaque-price dd { display: flex; align-items: center; flex-wrap: wrap; gap: .1rem .45rem; }
.plaque-price strong {
    display: inline-block;
    padding: .05rem .55rem .1rem;
    background: var(--red);
    border-radius: 3px;
    box-shadow: 0 2px 0 var(--red-dark);
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.2;
}
@media (min-width: 520px) {
    .plaque { padding: .45rem 1.35rem; }
    .plaque > div {
        grid-template-columns: 7rem minmax(0, 1fr);
        gap: .75rem;
        align-items: baseline;
    }
    .plaque > .plaque-price { align-items: center; }
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem 1.25rem;
}
.hero-actions .button { flex: 1 1 100%; }
@media (min-width: 520px) {
    .hero-actions .button { flex: 0 0 auto; }
}

/* Places restantes : marine ; jauge presque pleine : ocre foncé (contraste AA sur crème). */

.hero-notice {
    margin: 0;
    padding: .8rem 1rem;
    background: var(--paper);
    border-left: 4px solid var(--navy);
    border-radius: 0 4px 4px 0;
}

.hero-alert {
    margin: 0 0 1rem;
    padding: .75rem 1rem;
    background: #fdecef;
    border-left: 4px solid var(--red);
    border-radius: 0 4px 4px 0;
    color: #6d0718;
    font-weight: 600;
}
.hero-alert a { color: inherit; }

/* Sommaire de la page : liens francs (marine, soulignement or), pas du texte de pied de page. */
.hero-nav { margin-top: 1rem; }
.hero-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hero-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--navy);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 3px;
    text-underline-offset: .3em;
}
.hero-nav a:hover { color: var(--red); text-decoration-color: currentColor; }
@media (max-width: 979px) {
    .hero-nav-desktop { display: none; }
}

/* Affiche : à droite du bandeau sur ordinateur, sous le formulaire sur téléphone. */
.poster { margin: 0; text-align: center; }
.poster img {
    display: block;
    width: min(70vw, 320px);
    margin: 0 auto;
    border: 6px solid #fff;
    border-radius: 2px;
    box-shadow: 0 14px 30px -12px rgba(40, 20, 10, .55);
}
.poster figcaption { margin-top: .5rem; }
.poster figcaption a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 700;
}
.poster figcaption .poster-alt { margin-left: .75rem; font-weight: 400; font-size: .9rem; color: var(--muted); }
.poster-haut { display: none; }
.page > .poster-bas { margin-top: 2.5rem; }

/* Affiche en grand : centrée, à la hauteur de l'écran, sur fond marine. */
.poster-dialog {
    width: fit-content;
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}
.poster-dialog::backdrop { background: rgba(14, 22, 48, .88); }
.poster-dialog[open] { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.poster-dialog-close { margin: 0; align-self: flex-end; }
.poster-dialog-close .button { min-height: 44px; }
.poster-dialog img {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 6rem);
    max-height: calc(100dvh - 6rem);
    border: 6px solid #fff;
    border-radius: 2px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .6);
}

@media (min-width: 900px) {
    .hero { padding-top: calc(var(--sous-cocarde) + 1.25rem); }
    .hero-inner {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 3rem;
        align-items: start;
    }
    /* L'affiche, à droite, n'a pas à attendre les rubans de la cocarde. */
    .poster-haut { display: block; margin-top: calc(1.25rem - var(--sous-cocarde)); transform: rotate(1.2deg); }
    .poster-haut img { width: 300px; }
    .page > .poster-bas { display: none; }
}

/* ---------- Comment ça marche + formulaire ---------- */

.inscription-grid {
    display: grid;
    gap: 2.5rem;
    margin-top: 2.5rem;
}
.inscription-grid.is-single { max-width: 760px; }

.how-recap { display: none; }

@media (min-width: 980px) {
    .inscription-grid:not(.is-single) {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 4rem;
        align-items: start;
    }
    .how { position: sticky; top: 1.5rem; padding-top: 1.75rem; }
    .how-recap {
        display: block;
        margin: 2rem 0 0;
        padding-top: 1.25rem;
        border-top: 2px solid var(--navy);
        line-height: 1.6;
    }
}

/* Étapes : numérotation typographique, sans pastilles. */
.steps { counter-reset: etape; list-style: none; margin: 0; padding: 0; }
.steps li {
    counter-increment: etape;
    position: relative;
    padding-left: 2.6rem;
    margin-bottom: 1.4rem;
}
.steps li:last-child { margin-bottom: 0; }
.steps li::before {
    content: counter(etape);
    position: absolute;
    left: 0;
    top: -.2rem;
    font-family: var(--display);
    font-size: 2.1rem;
    line-height: 1;
    color: var(--gold-ink);
}
.steps p { margin: 0; color: var(--muted); }

/* ---------- Cartes ---------- */

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(1.25rem, .9rem + 2vw, 2.25rem);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .03), 0 14px 32px -16px rgba(60, 40, 20, .35);
}

/* Liseré de nappe vichy en haut de carte. */
.card-nappe {
    position: relative;
    overflow: hidden;
    padding-top: calc(clamp(1.25rem, .9rem + 2vw, 2.25rem) + 12px);
}
.card-nappe::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 12px;
    background-color: #fff;
    background-image:
        linear-gradient(90deg, var(--vichy) 50%, transparent 50%),
        linear-gradient(var(--vichy) 50%, transparent 50%);
    background-size: 12px 12px;
}

.page > .narrow { width: min(100% - 2 * var(--gutter), 640px); margin-top: 2.5rem; }
.page > .wide { margin-top: 2rem; }

/* ---------- Messages ---------- */

.notice, .alert, .success {
    padding: .8rem 1rem;
    border-radius: 4px;
    margin: 0 0 1.25rem;
}
.notice { background: #eef2fa; border-left: 4px solid var(--navy-2); }
.alert { background: #fdecef; border-left: 4px solid var(--red); color: #6d0718; font-weight: 600; }
.success { background: #e8f4eb; border-left: 4px solid var(--ok); color: #124a26; font-weight: 600; }

/* ---------- Formulaire ---------- */

.form-intro { margin: -.5rem 0 1.25rem; color: var(--muted); font-size: .95rem; }

.form { display: grid; gap: 1.1rem; }
.row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: .35rem; min-width: 0; align-content: start; }

label { font-weight: 700; }
.hint { font-weight: 400; color: var(--muted); font-size: .92rem; }
.field-help { margin: 0; color: var(--muted); font-size: .92rem; }

input, textarea {
    width: 100%;
    min-height: 48px;
    font: inherit;
    padding: .6rem .8rem;
    border: 1.5px solid var(--field);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
}
textarea { min-height: 6rem; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--navy); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); border-width: 2px; background: #fffafa; }

.field-error {
    margin: 0;
    color: var(--red-dark);
    font-weight: 600;
    font-size: .95rem;
}
.field-error::before {
    content: "!";
    display: inline-grid;
    place-items: center;
    width: 1.2em;
    height: 1.2em;
    margin-right: .4em;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-size: .85em;
    font-weight: 700;
    line-height: 1;
    vertical-align: .05em;
}

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.places-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.25rem;
}
.places-row input { width: 7rem; }
/* Boutons − / + ajoutés par app.js (sans JavaScript : le champ seul). */
.stepper { display: flex; align-items: stretch; }
.stepper.is-enhanced input {
    width: 4.5rem;
    border-radius: 0;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}
.stepper.is-enhanced input::-webkit-outer-spin-button,
.stepper.is-enhanced input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-button {
    flex: none;
    width: 48px;
    min-height: 48px;
    border: 1.5px solid var(--field);
    background: var(--cream);
    color: var(--navy);
    font: inherit;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}
.stepper-button:first-child { border-radius: 6px 0 0 6px; border-right: 0; }
.stepper-button:last-child { border-radius: 0 6px 6px 0; border-left: 0; }
.stepper-button:hover:not(:disabled) { background: var(--cream-2); }
.stepper-button:disabled { color: #9a9284; cursor: not-allowed; }
.total {
    margin: 0;
    font-family: var(--display);
    font-size: 1.35rem;
    color: var(--navy);
}

.payment-info {
    margin: .25rem 0 0;
    font-size: .95rem;
    color: var(--muted);
}

/* ---------- Boutons ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
    border: 0;
    border-radius: 6px;
    padding: .7rem 1.5rem;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    background: var(--red);
    box-shadow: 0 3px 0 var(--red-dark);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}
.button:hover { background: var(--red-dark); color: #fff; }
.button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--red-dark); }
.button-secondary { background: var(--navy); box-shadow: 0 3px 0 #0a1430; }
.button-secondary:hover { background: var(--navy-2); }
.button-secondary:active { box-shadow: 0 1px 0 #0a1430; }
.button-outline {
    background: var(--paper);
    color: var(--navy);
    box-shadow: inset 0 0 0 2px var(--navy), 0 3px 0 var(--navy);
}
.button-outline:hover { background: #eef1f8; color: var(--navy); }
.button-outline:active { box-shadow: inset 0 0 0 2px var(--navy), 0 1px 0 var(--navy); }
.button-lg { font-size: 1.15rem; padding: .85rem 1.9rem; min-height: 54px; }
.button-pay { width: 100%; font-size: 1.15rem; min-height: 56px; margin-top: .25rem; flex-wrap: wrap; column-gap: .25em; }
.button-sm { min-height: 44px; padding: .5rem 1rem; font-size: .98rem; }
/* WhatsApp : vert foncé (texte blanc au contraste AA : 5,0), pas le vert clair de la marque. */
.button-whatsapp { background: #1a7f45; box-shadow: 0 3px 0 #0f5a30; }
.button-whatsapp:hover { background: #146637; }
.button-whatsapp:active { box-shadow: 0 1px 0 #0f5a30; }
/* Bouton discret sur fond marine : contour clair. */
.button-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); }
.button-ghost:hover { background: #fff; color: var(--navy); }
.button-ghost:active { box-shadow: inset 0 0 0 2px #fff; }

@media (prefers-reduced-motion: no-preference) {
    .button { transition: background-color .15s ease; }
}

.link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    background: none;
    border: 0;
    padding: 0 .25rem;
    font: inherit;
    font-weight: 600;
    color: var(--navy-2);
    text-decoration: underline;
    cursor: pointer;
}

/* ---------- Données personnelles, questions fréquentes ---------- */

details summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 48px;
    font-weight: 700;
    list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
    content: "+";
    margin-left: auto;
    flex: none;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--cream-2);
    color: var(--navy);
    font-size: 1.25rem;
    line-height: 1;
}
details[open] summary::after { content: "−"; }

.rgpd {
    margin-top: 1.75rem;
    padding-top: .5rem;
    border-top: 1px dashed var(--line);
    font-size: .95rem;
    color: var(--muted);
}
.rgpd summary { color: var(--ink); }

/* ---------- Au menu (ardoise dans un cadre en bois, filet or, plats écrits à la craie) ---------- */

.menu-section { margin-top: 3.5rem; }
.ardoise {
    --focus: #ffd166;
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(1.75rem, 1rem + 3vw, 3rem) clamp(1.25rem, .5rem + 3vw, 3rem);
    border: 14px solid transparent;
    border-radius: 10px;
    background:
        url("grain.svg") padding-box,
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .07), transparent 60%) padding-box,
        linear-gradient(var(--slate), #1f2725) padding-box,
        repeating-linear-gradient(100deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 7px, rgba(0, 0, 0, .1) 7px 9px, transparent 9px 17px) border-box,
        linear-gradient(135deg, #85563a, var(--wood-dark)) border-box;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35), 0 18px 36px -14px rgba(40, 20, 10, .6);
    color: var(--chalk);
    text-align: center;
}
/* Filet or à l'intérieur du cadre, comme sur les plaques émaillées. */
.ardoise::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(226, 194, 122, .85);
    border-radius: 3px;
    pointer-events: none;
}
.ardoise h2 { color: var(--chalk); margin-bottom: 1rem; }
.menu-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 34rem;
}
.menu-list li {
    text-wrap: balance;
    padding: .45rem 0 .5rem;
    font-family: var(--chalk-hand);
    font-size: clamp(1.3rem, 1.1rem + .8vw, 1.55rem);
    font-weight: 400;
    line-height: 1.3;
    /* Poussière de craie : léger flou clair autour des lettres. */
    text-shadow: 0 0 1px rgba(244, 240, 230, .45), 0 0 6px rgba(244, 240, 230, .12);
}
.menu-list li + li { border-top: 1px dashed rgba(244, 240, 230, .3); }
.menu-note { margin: 1.25rem 0 0; color: #d9d4c7; font-style: italic; }
.menu-sante { margin: .75rem 0 0; color: #c9c3b4; font-size: .82rem; }

/* ---------- Infos pratiques : infos sur toute la largeur, programme en frise, questions ---------- */

.infos { margin-top: 3.5rem; }

.info-grid {
    display: grid;
    gap: 0 1.75rem;
    margin: 0;
}
.info-grid > div {
    padding: .85rem 0 1rem;
    border-top: 2px solid var(--navy);
}
.info-grid dt {
    margin-bottom: .2rem;
    color: var(--wood);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.info-grid dd { margin: 0; font-weight: 600; }
@media (min-width: 640px) {
    .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
    .info-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1.25fr) minmax(0, .9fr); }
}
.address { font-weight: 400; }

.info-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-top: .7rem;
}
.info-actions-label { flex: 1 1 100%; font-weight: 700; color: var(--navy); font-size: .95rem; }

/* Programme : frise verticale sur téléphone, horizontale à partir de 760 px. */
.programme {
    margin-top: 1.75rem;
    padding: clamp(1.25rem, .9rem + 1.6vw, 2rem) clamp(1.25rem, .8rem + 2vw, 2.25rem);
}
.programme-titre {
    margin: 0 0 1.1rem;
    color: var(--gold);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.frise {
    list-style: none;
    margin: 0;
    padding: 0;
}
.frise li {
    position: relative;
    display: grid;
    align-content: start;
    gap: .1rem;
    padding: 0 0 1.25rem 2rem;
}
.frise li:last-child { padding-bottom: 0; }
/* Ligne : filet or entre les points. */
.frise li::before {
    content: "";
    position: absolute;
    left: calc(.5rem - 1px);
    top: .9rem;
    bottom: -.35rem;
    width: 2px;
    background: rgba(226, 194, 122, .55);
}
.frise li:last-child::before { display: none; }
/* Point : rond or. */
.frise li::after {
    content: "";
    position: absolute;
    left: 0;
    top: .4rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 3px var(--navy);
}
.frise-heure {
    font-family: var(--display);
    font-size: 1.45rem;
    line-height: 1.15;
    color: var(--gold);
}
.frise-texte { color: #eef0f6; font-weight: 600; line-height: 1.35; }

@media (min-width: 760px) {
    .frise {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
    }
    .frise li { padding: 1.75rem 1.25rem 0 0; }
    .frise li::before {
        left: .5rem;
        right: 0;
        top: calc(.5rem - 1px);
        bottom: auto;
        width: auto;
        height: 2px;
    }
    .frise li::after { top: 0; }
    .frise-heure { font-size: 1.7rem; }
}

.faq { margin-top: 2.5rem; }
.faq h3 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.35rem;
    margin-bottom: .75rem;
}
.faq-list { display: grid; gap: .6rem; }
@media (min-width: 900px) {
    .faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.25rem; align-items: start; }
}
.faq details {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
}
.faq summary { padding: .6rem 1rem; color: var(--navy); }
.faq details p { margin: 0; padding: 0 1rem 1rem; }
.faq details[open] { box-shadow: 0 8px 20px -14px rgba(60, 40, 20, .5); }

/* ---------- Partage : WhatsApp en avant, puis les autres moyens ---------- */

.share {
    margin-top: 3.5rem;
    padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
    text-align: center;
}
.share h2 { color: #fff; margin-bottom: .5rem; }
.share-intro { margin: 0 0 1.25rem; color: #e6e9f2; }
.share-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    margin-bottom: .9rem;
}
.share-main .button { min-height: 52px; font-size: 1.08rem; }
.share-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .25rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .4rem .5rem;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
    text-underline-offset: .25em;
    cursor: pointer;
}
.share-link:hover { color: var(--gold); }
.share-status:empty { margin: 0; }
.share-status { margin: .75rem 0 0; font-weight: 600; color: var(--gold); }

/* Dans la page Merci : bloc sur papier crème, sans plaque. */
.share-papier {
    margin: 1.75rem 0 0;
    background: var(--cream);
    color: var(--ink);
    border: 2px dashed var(--line);
    border-radius: 8px;
    --focus: var(--navy);
}
.share-papier h2 { color: var(--navy); font-size: 1.5rem; }
.share-papier .share-intro { color: var(--muted); }
.share-papier .share-link { color: var(--navy); text-decoration-color: var(--gold-ink); }
.share-papier .share-link:hover { color: var(--red); }
.share-papier .button-ghost { color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.share-papier .button-ghost:hover { background: var(--navy); color: #fff; }
.share-papier .share-status { color: var(--ok); }

/* ---------- Pages de message (merci, erreur, connexion) ---------- */

.message { text-align: center; }
.message h1 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem); margin-bottom: 1rem; }
.message .lead { font-size: 1.1rem; }
.message-icon {
    display: inline-grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: .75rem;
    border-radius: 50%;
}
.message-icon-ok { background: #e3f1e7; color: var(--ok); }
.message-icon-wait { background: #fbf0d9; color: #845400; }
.message-icon-info { background: #e7ebf4; color: var(--navy); }
.message-icon-error { background: #fbe5e9; color: var(--red); }
.message-actions { margin: 1.5rem 0; }
.message .form { text-align: left; }
.message .success { text-align: left; }
/* Consigne pour le jour J (page Merci) : marine, liseré rouge, comme l'encadré de l'email de confirmation. */
.jour-j {
    margin: 0 0 1.25rem;
    padding: .8rem 1rem;
    border-left: 4px solid var(--red);
    border-radius: 4px;
    background: #eef2fa;
    color: var(--navy);
    text-align: left;
}

.ticket {
    display: grid;
    gap: 0;
    margin: 0 0 1.25rem;
    padding: .5rem 1.25rem;
    background: var(--cream);
    border: 2px dashed var(--line);
    border-radius: 8px;
    text-align: left;
}
.ticket > div {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: .75rem;
    align-items: baseline;
    padding: .55rem 0;
}
.ticket > div + div { border-top: 1px solid var(--line); }
@media (max-width: 479px) {
    .ticket > div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
}
.ticket dt { color: var(--muted); font-size: .95rem; font-weight: 700; }
.ticket dd { margin: 0; font-weight: 600; }
.ticket-ref { font-family: var(--display); font-weight: 400 !important; font-size: 1.3rem; letter-spacing: .12em; color: var(--navy); }
.break { overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
.merci-agenda { margin: 0 0 1.25rem; }

/* ---------- Pied de page (fond clair, liseré vichy, logo posé sans étiquette) ---------- */

.site-footer {
    background: var(--cream-2);
    color: var(--ink);
    font-size: .95rem;
}
.site-footer::before {
    content: "";
    display: block;
    height: 10px;
    background-color: #fff;
    background-image:
        linear-gradient(90deg, var(--vichy) 50%, transparent 50%),
        linear-gradient(var(--vichy) 50%, transparent 50%);
    background-size: 10px 10px;
}
.site-footer-inner {
    width: min(100% - 2 * var(--gutter), var(--max));
    margin: 0 auto;
    padding: 2rem 0 2.25rem;
    display: grid;
    justify-items: center;
    gap: 1rem;
    text-align: center;
}
.site-footer p { margin: .1rem 0; }
.footer-logo img { display: block; width: 92px; height: auto; }
.footer-name { font-family: var(--display); font-size: 1.35rem; color: var(--navy); }
.footer-small { color: var(--muted); font-size: .9rem; }
.site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--navy);
    font-weight: 700;
    text-decoration-color: var(--gold-ink);
    text-underline-offset: .25em;
}
.site-footer a:hover { color: var(--red); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.5rem; margin-top: .35rem !important; }
@media (min-width: 640px) {
    .site-footer-inner { grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 1.75rem; text-align: left; }
    .footer-links { justify-content: flex-start; }
}

/* ---------- Barre « Je m'inscris » en bas d'écran (téléphone et tablette) ---------- */

.cta-bar { display: none; }
@media (max-width: 979px) {
    .cta-bar {
        --focus: #ffd166;
        position: fixed;
        z-index: 20;
        left: 0;
        right: 0;
        bottom: 0;
        display: block;
        padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom, 0px));
        background: url("grain.svg") var(--navy);
        border-top: 2px solid rgba(226, 194, 122, .7);
        box-shadow: 0 -8px 20px -10px rgba(10, 20, 48, .55);
    }
    .cta-bar .button { width: 100%; max-width: 32rem; margin: 0 auto; display: flex; flex-wrap: wrap; column-gap: .25em; }
    .cta-bar-price { font-weight: 600; }
    .cta-bar.is-hidden { transform: translateY(110%); visibility: hidden; }
    /* Sans JavaScript : masquée une fois arrivé au formulaire par le lien. */
    body:has(#inscription:target) .cta-bar:not(.is-js) { display: none; }
    /* Place réservée sous le pied de page : la barre ne cache aucun contenu. */
    body:has(.cta-bar) .site-footer { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 979px) and (prefers-reduced-motion: no-preference) {
    .cta-bar { transition: transform .2s ease, visibility 0s linear 0s; }
    .cta-bar.is-hidden { transition: transform .2s ease, visibility 0s linear .2s; }
}
@media print {
    .cta-bar { display: none !important; }
}

/* ---------- Mentions légales ---------- */

.legal h2 { font-size: 1.35rem; margin: 1.75rem 0 .5rem; }
.legal-list { margin: 0; }
.legal-list > div { display: grid; grid-template-columns: minmax(0, 1fr); padding: .4rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) {
    .legal-list > div { grid-template-columns: 13rem minmax(0, 1fr); gap: 1rem; }
}
.legal-list dt { font-weight: 700; }
.legal-list dd { margin: 0; }
.todo { color: #8a4a00; }

/* ---------- Organisateurs ---------- */

.admin-overline { margin: 0; color: var(--muted); font-weight: 600; }
.admin h1 { margin-bottom: .5rem; font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem); }
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.admin-head form { margin: 0; }
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(135px, 100%), 1fr));
    gap: .75rem;
    margin: 1.25rem 0 1.5rem;
}
.stats > div {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: .8rem 1rem;
}
.stats dt { color: var(--muted); font-size: .95rem; font-weight: 700; }
.stats dd { margin: .15rem 0 0; font-family: var(--display); font-size: 1.6rem; line-height: 1.2; color: var(--navy); }
.stats .stat-main { background: var(--navy); border-color: var(--navy); }
.stats .stat-main dt { color: var(--gold); }
.stats .stat-main dd { color: #fff; }
.stat-of { font-family: var(--text); font-size: 1rem; font-weight: 600; opacity: .85; }
.stats .stat-detail { margin: 0; font-family: var(--text); font-size: .9rem; font-weight: 600; color: var(--gold); }
.stats .stat-todo { border-color: var(--ochre, #a8621a); border-width: 2px; }

/* Inscriptions hors ligne (téléphone, chèque, espèces…) */
.offline-add {
    margin: 0 0 1.5rem;
    padding: .25rem 1rem .25rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
}
.offline-add summary { font-size: 1.1rem; color: var(--navy); }
.offline-form { padding: .5rem 0 1rem; }
.choices { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.choices legend { padding: 0; margin-bottom: .35rem; font-weight: 700; flex: 1 1 100%; }
.choice { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 400; }
.choice input { width: 1.25rem; height: 1.25rem; min-height: 0; margin: 0; accent-color: var(--navy); }
.list-title { margin: 1.5rem 0 .75rem; }
td.payment { min-width: 12rem; }
.tag { display: inline-block; padding: 0 .45rem; border-radius: 3px; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.tag-todo { background: #fbecd6; color: #7a3f06; }
.tag-ok { background: #e3f1e6; color: #124a26; }
.inline-action { display: inline; margin: 0; }
.inline-action .link, td.payment .cancel summary { min-height: 32px; font-size: .9rem; }
td.payment .cancel summary { display: inline-flex; font-weight: 600; color: var(--muted); }
td.payment .cancel summary::after { display: none; }
td.payment .cancel form { display: grid; gap: .4rem; margin: .4rem 0 0; }
td.payment .cancel .button { min-height: 40px; padding: .4rem .8rem; font-size: .9rem; }
td.table-cell { min-width: 10rem; }
.edit-table summary { display: inline-flex; min-height: 32px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.edit-table summary::after { display: none; }
.edit-table form { display: grid; gap: .4rem; margin: .4rem 0 0; }
.edit-table input { min-height: 40px; padding: .35rem .6rem; }
.edit-table .button { min-height: 40px; padding: .4rem .8rem; font-size: .9rem; }

.admin-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .75rem; margin-bottom: 1.5rem; }
.admin-actions form { margin: 0; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.admin-actions .export { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .9rem; }
.export-alt { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; color: var(--muted); }
.admin-actions .testmail {
    flex: 1 1 100%;
    max-width: 52rem;
    padding: .9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 6px;
}
.testmail-title { flex: 1 1 100%; font-weight: 700; color: var(--navy); }
.testmail-help { flex: 1 1 100%; margin-top: -.35rem; }
.testmail-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.inline-input { flex: 1 1 14rem; width: auto; min-width: 0; }
.empty { color: var(--muted); }

.qr-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin: 0 0 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 6px;
}
.qr-box img { flex: none; display: block; background: #fff; border: 1px solid var(--line); }
.qr-box > div { flex: 1 1 16rem; min-width: 0; }
.qr-box h2 { font-size: 1.3rem; margin: 0 0 .25rem; }
.qr-box p { margin: 0 0 .25rem; }
.qr-links { margin: 0; padding: 0; list-style: none; }
.qr-links a { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-weight: 700; }

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
}
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: #fff; }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--navy); color: #fff; white-space: nowrap; font-weight: 700; }
tbody tr:nth-child(even) { background: #fbf7ef; }
tbody tr:last-child td { border-bottom: 0; }
td.num { text-align: right; font-weight: 700; }
td.nowrap { white-space: nowrap; }
td.ref { font-weight: 700; letter-spacing: .06em; white-space: nowrap; }

/* Tablées (espace organisateurs) */
.tablees { margin: 1.5rem 0; }
.tablees-head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.tablees-head h2 { margin: 0; }
.print-title { font-weight: 700; }
.print-group { margin-top: 1.25rem; break-inside: avoid; page-break-inside: avoid; }
.print-group h2 { margin: 0 0 .4rem; font-size: 1.15rem; }
.check { width: 2.2rem; text-align: center; }
.box { display: inline-block; width: 1rem; height: 1rem; border: 2px solid currentColor; border-radius: 2px; }

@media print {
    .site-header, .ruban, .site-footer, .skip-link, .no-print, .banner-test { display: none !important; }
    .page { padding-top: 0; }
    body, .page, .card { background: #fff !important; box-shadow: none !important; border: 0 !important; }
    .card { padding: 0 !important; }
    table { font-size: 10pt; }
    th { background: #fff !important; color: #000 !important; border-bottom: 2px solid #000; }
    a { color: #000; text-decoration: none; }
}
.print-group table { table-layout: fixed; width: 100%; }
.print-group th:nth-child(4), .print-group td:nth-child(4) { width: 5rem; }
.print-group th:nth-child(5), .print-group td:nth-child(5) { width: 9.5rem; }
.print-group th:nth-child(6), .print-group td:nth-child(6) { width: 7rem; }

/* ---------- « Et après le mâchon ? » : étiquettes à cocher (consentement, rien de coché d'office) ---------- */

.choix-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: .5rem; }
.choix-fieldset legend { padding: 0; margin-bottom: .35rem; font-weight: 700; }
.choix-contact { display: flex; flex-wrap: wrap; gap: .6rem; }
.etiquette {
    position: relative;
    flex: 1 1 15rem;
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    min-height: 44px;
    padding: .65rem .85rem;
    border: 2px dashed var(--line);
    border-radius: 4px;
    background: var(--paper);
    font-weight: 400;
    cursor: pointer;
}
.etiquette:nth-child(odd) { transform: rotate(-.4deg); }
.etiquette:nth-child(even) { transform: rotate(.4deg); }
.etiquette input { flex: none; width: 1.25rem; height: 1.25rem; min-height: 0; margin: .15rem 0 0; accent-color: var(--navy); }
.etiquette-texte { display: grid; gap: .1rem; }
.etiquette-titre { font-weight: 700; color: var(--navy); }
.etiquette-detail { font-size: .88rem; color: var(--muted); }
.etiquette:hover { border-color: var(--field); }
.etiquette:has(input:checked) { border-style: solid; border-color: var(--navy); background: #eef2fa; }
.etiquette:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .etiquette { transform: none !important; } }

.on-se-revoit {
    margin: 1.5rem 0 0;
    padding: 1rem 1.1rem 1.15rem;
    border-top: 2px dashed var(--line);
    text-align: left;
}
.on-se-revoit h2 { margin: 0 0 .35rem; font-size: 1.35rem; }
.on-se-revoit form { display: grid; gap: .6rem; justify-items: start; }
.preferences .form { text-align: left; }

/* Organisateurs : contacts pour la suite */
.contacts-box { margin: 1.5rem 0; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 6px; background: var(--cream); }
.contacts-box h2 { margin: 0 0 .35rem; font-size: 1.3rem; }
.contacts-box p { margin: 0 0 .5rem; }
.contacts-box .export { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .9rem; margin: .5rem 0 0; }

.pref-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
