/* Structure des pages : conteneur, en-tête de marque, bandeau météo, bandeau d'accueil, pied de page, barre d'action fixe. */
/* Un champ qui reçoit le focus ne reste jamais sous l'en-tête collant (65 px) ni sous la barre d'action fixe (jusqu'à 77 px). */
html:has(.topbar) { scroll-padding-top: 72px; }
html:has(body.admin) { scroll-padding-top: 0; } /* l'administration pose ses propres scroll-margin-top : pas de décalage en plus (spécificité supérieure, quel que soit l'ordre) */
html:has(.sticky:not([hidden])) { scroll-padding-bottom: 96px; } /* c'est html qui défile : sur body, le décalage n'aurait aucun effet */
body:has(.sticky:not([hidden])) footer { padding-bottom: calc(124px + env(safe-area-inset-bottom)); } /* la barre fixe (77 px) ne cache plus la fin du pied de page : tout peut défiler au-dessus d'elle ; rien tant qu'elle est masquée (44 px habituels + 80 px pour la barre) */
.wrap { max-width: 800px; margin: 0 auto; padding: 0 var(--gutter) 130px; }
/* Bandeau météo : marine de la charte, texte blanc ; l'accroche en gras et soulignée au survol (jamais d'orange : réservé à l'action). */
.weather { display: block; background: var(--deep); color: var(--on-deep); text-decoration: none; padding: var(--space-2) var(--gutter); font-size: .875rem; line-height: 1.35; text-align: center; }
.weather strong { color: var(--on-deep); font-weight: 800; }
.weather span { color: var(--deep-sub); }
.weather:hover strong { text-decoration: underline; text-underline-offset: 3px; }
body[data-step="form"] .weather, body[data-step="confirm"] .weather, body[data-step="done"] .weather { display: none; } /* étapes 2, 3 et fin de /reserver : rien ne détourne de la tâche */
body[data-step="done"] #app { padding-bottom: 120px; } /* l'écran de fin : la pastille « Une question ? » ne recouvre pas les boutons du bas */
@media (max-width: 520px) { .weather { padding: 14px var(--gutter); /* 13 px × 1,3 + 2 × 14 px ≥ 44 px : zone de toucher du lien */ font-size: .8125rem; line-height: 1.3; } } /* téléphone : bandeau resserré, texte complet (jamais tronqué) */
.topbar { --topbar-h: 65px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar .wrap { padding-bottom: 0; display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.brand img { width: 46px; height: auto; }
/* Téléphone, pages avec la flèche « retour » : le mot WingBox débordait sur « Mes réservations » ; le logo le porte déjà. */
/* Pages intérieures : « ← Tous les cours » (avant : flèche seule + « WingBox », on ne comprenait pas qu'elle menait au catalogue, 21/10/2026). */
.brand-back { font: 700 .9375rem var(--font-body); text-transform: none; letter-spacing: 0; }
@media (max-width: 440px) { .brand:has(.brand-back) img { display: none; } } /* téléphone : le texte plutôt que le logo */
.topbar .spacer { flex: 1; }
.topbar a:not(.brand) { font-size: .9375rem; font-weight: 700; text-decoration: none; color: var(--ink); }
@media (prefers-color-scheme: dark) { .topbar a:not(.brand) { color: var(--sky); } .brand img { background: #fff; border-radius: 50%; padding: 2px; } }
/* Introduction compacte en tête de page (titre + une phrase), sans bandeau de couleur. */
.hero { padding: 22px 0 2px; }
.hero h1 { font-size: clamp(1.6rem, 5.4vw, 2.1rem); margin-bottom: .2em; }
.hero p { color: var(--muted); margin: 0; max-width: 52ch; }
@media (max-width: 520px) { .hero { padding: 8px 0 0; } .hero h1 { font-size: 1.45rem; line-height: 1.15; margin-bottom: .15em; } .hero p { font-size: .875rem; line-height: 1.32; } } /* téléphone : compact mais complet, la première carte doit tenir dans le premier écran */
footer p { margin: 0 0 var(--space-2); text-wrap: balance; }
footer a { white-space: nowrap; }
footer { text-align: center; color: var(--muted); font-size: .875rem; padding: 28px var(--gutter) 44px; }
footer a { color: var(--muted); }
/* Contact de WingBox (réglé par l'exploitant) : discret (D96), comme les liens voisins de « Mes réservations » (graisse normale, soulignés, couleur héritée), cibles de 44 px, jamais d'orange. Masqué tant qu'il est vide. Classe propre : `.contact` désigne le bloc e-mail/téléphone des participants. */
.public-contact[hidden] { display: none; }
.public-contact { display: flex; flex-wrap: wrap; column-gap: var(--space-3, 16px); margin-top: 4px; }
footer .public-contact { justify-content: center; margin-top: 0; }
.public-contact a, .public-contact span { display: inline-flex; align-items: center; min-height: 44px; font-weight: 400; }
.public-contact a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.public-contact a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.sticky { position: fixed; inset: auto 0 0 0; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgb(4 16 29 / 35%); padding: 12px var(--gutter) max(12px, env(safe-area-inset-bottom)); display: flex; gap: 10px; justify-content: center; z-index: 5; }
.sticky > * { flex: 1; max-width: 380px; }
.sticky[hidden] { display: none; }
.sticky.recap { justify-content: space-between; align-items: center; max-width: none; gap: 16px; }
.recap-what { flex: 1 1 auto; font: 700 .98rem var(--font-body); color: var(--ink); }
.recap .btn { flex: 0 0 auto; min-height: 46px; }
#app { padding-bottom: 88px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-1); padding: 20px; margin: 16px 0; }
@media print { .topbar, .weather, .btnrow, footer, .sticky { display: none !important; } body { background: #fff; } .hero { background: none; color: #000; } .hero h1 { color: #000; } }
.wrap.center { padding-top: 20vh; text-align: center; }

/* Sélecteur de langue FR | EN dans la barre du haut */
.lang-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); overflow: hidden; margin-left: auto; flex: none; }
.lang-btn { font: 700 .8125rem/1 var(--font-body); padding: 7px 10px; min-width: 40px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.lang-btn[aria-pressed="true"] { background: var(--deep); color: var(--on-deep); }
.lang-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

@media (max-width: 420px) { .topbar .wrap { gap: 8px; } .topbar a.small { white-space: nowrap; font-size: .875rem; } .lang-btn { min-width: 34px; padding: 7px 8px; } }
