/* Piste+ · feuille de style unique (lot 2, design « bois de piste »).
   Référence visuelle : docs/maquettes/maquette-piste-plus.html. Catalogue des classes : docs/composants.md,
   démonstration : docs/composants.html.

   Règles du site :
   - aucune règle écrite dans les pages (la CSP interdit style= et <style>) : tout est ici ;
   - les couleurs passent par les variables ci-dessous, jamais en dur dans un composant (sauf les objets
     « physiques » : dossard en papier, ticket, qui gardent leurs couleurs en mode sombre) ;
   - adresses relatives (../fonts, ../img) : la même feuille sert au site (/static/css/) et à la page de
     démonstration (docs/composants.html) ;
   - toute animation est coupée par « réduire les animations » (fin du fichier).

   Sommaire : 1 polices · 2 couleurs · 3 base · 4 bois et lignes de piste · 5 bandeau · 6 mise en page ·
   7 onglets du bas · 8 pied · 9 page publique et vélo · 10 boutons · 11 formulaires · 12 alertes et toasts ·
   13 tableau · 14 cartes en liste, badges, avatar · 15 dossard · 16 créneau et tampon · 17 puces ·
   18 tickets et ajout rapide · 19 liste d'appel · 20 état vide · 21 fenêtre de confirmation ·
   22 pages du lot 3 (planning, fiches) · 24 pointage du lot 4 (QR, appel, séance validée, grille) ·
   25 comptes rendus, statistiques et mes heures du lot 6 (tuiles, barres) ·
   23 réduire les animations (toujours en dernier) */

/* ─── 1. Polices (hébergées par le site, licence OFL : ../fonts/OFL.txt) ─────────────────────────────────── */
/* Barlow Condensed : chiffres de dossard, titres, boutons. Source Sans 3 : texte courant. Sous-ensemble latin
   (accents français, « », ’, −, espace fine insécable compris). swap : le texte s'affiche tout de suite. */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(../fonts/barlow-condensed-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(../fonts/barlow-condensed-700.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url(../fonts/barlow-condensed-800.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url(../fonts/source-sans-3-400.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url(../fonts/source-sans-3-600.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url(../fonts/source-sans-3-700.woff2) format("woff2"); }

/* ─── 2. Couleurs ────────────────────────────────────────────────────────────────────────────────────────── */
/* Couleurs de marque, identiques en clair et en sombre : les lignes de la piste.
   Code des jours : bleu (ligne des stayers) = mercredi soir, rouge (ligne des sprinteurs) = dimanche matin. */
:root {
  --ardoise: #1c2b3a;   /* encre : texte, bouton principal, barre d'onglets */
  --pin: #c8935a;       /* bois de la piste */
  --azur: #4fb3e8;      /* côte d'azur (bas de la piste) */
  --rouge: #d7262e;     /* ligne des sprinteurs : dimanche matin */
  --bleue: #1f4fbf;     /* ligne des stayers : mercredi soir */
  --vert: #1f7a51;      /* validé, inscrit */

  --f-num: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-txt: "Source Sans 3", system-ui, "Segoe UI", Arial, sans-serif;

  /* Mouvements : courts pour les retours au toucher, « ressort » pour ce qui se pose (dossard, tampon). */
  --t-rapide: .15s;
  --t-moyen: .3s;
  --ressort: cubic-bezier(.3, 1.6, .5, 1);
  --doux: cubic-bezier(.2, .8, .2, 1);
  --gouttiere: max(16px, env(safe-area-inset-left, 0px));

  /* Thème clair (contrastes vérifiés : texte 12,6:1 sur le fond, texte secondaire 5,7:1, bords des champs 3,7:1). */
  color-scheme: light dark;
  --fond: #f4efe8;
  --carte: #ffffff;
  --champ: #fbf8f3;
  --texte: #1c2b3a;
  --muted: #6b5b48;
  --bord: #dccfbd;            /* séparateurs décoratifs */
  --bord-champ: #8f7f6a;      /* bords des champs et des contrôles (3:1 au moins) */
  --lien: #1f4fbf;
  --focus: #1f4fbf;
  --halo: rgba(79, 179, 232, .45);
  --btn-fond: #1c2b3a;
  --btn-texte: #ffffff;
  --btn-survol: #2c4259;
  --danger-fond: #b81f27;
  --danger-texte: #ffffff;
  --rouge-texte: #b81f27;     /* rouge lisible en petit texte (6,4:1) */
  --vert-texte: #1f7a51;
  --survol-doux: rgba(28, 43, 58, .06);
  --fond-tete: #f3ece2;       /* en-têtes de tableau */
  --badge-fond: #efe6d9;
  --clos-fond: #efe9e0;
  --papier: #ffffff;          /* dossard */
  --ticket-fond: #1c2b3a;
  --ombre: 0 1px 0 #e2d6c5, 0 8px 24px rgba(28, 43, 58, .07);
  /* Bandeau en bois */
  --logo: #1c2b3a;
  --logo-plus: #d7262e;
  --encre-bandeau: #1c2b3a;
  --pastille: rgba(251, 248, 243, .62);
  --pastille-survol: rgba(251, 248, 243, .9);
  --bois-1: #c8935a; --bois-2: #b07a44; --bois-3: #d3a46c; --bois-4: #a8743f; --bois-5: #c48c54; --bois-6: #ad7841;
  --velo: #1c2b3a;
  --velo-disque: #2a3d52;
}

/* Thème sombre : suit le réglage du téléphone. Lattes plus foncées, encre claire, mêmes lignes de piste. */
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #121c26;
    --carte: #192634;
    --champ: #0f1821;
    --texte: #e9eef3;
    --muted: #a9b6c2;
    --bord: #2a3b4c;
    --bord-champ: #6a7d90;
    --lien: #8fb4ff;
    --focus: #4fb3e8;
    --halo: rgba(79, 179, 232, .35);
    --btn-fond: #f4efe8;
    --btn-texte: #1c2b3a;
    --btn-survol: #ffffff;
    --danger-fond: #ff7a7f;
    --danger-texte: #1c2b3a;
    --rouge-texte: #ff7a7f;
    --vert-texte: #4cc38a;
    --survol-doux: rgba(233, 238, 243, .08);
    --fond-tete: #1e2d3d;
    --badge-fond: #24364a;
    --clos-fond: #16212c;
    --papier: #ede8e0;          /* le dossard reste en papier, un peu moins éblouissant */
    --ticket-fond: #243a50;
    --ombre: 0 0 0 1px #2a3b4c, 0 8px 24px rgba(0, 0, 0, .25);
    --logo: #f4efe8;
    --logo-plus: #ff6b70;
    --encre-bandeau: #f4efe8;
    --pastille: rgba(18, 28, 38, .55);
    --pastille-survol: rgba(18, 28, 38, .8);
    --bois-1: #6e4c2e; --bois-2: #5c3e24; --bois-3: #765333; --bois-4: #573a21; --bois-5: #6b4a2c; --bois-6: #5a3d23;
    --velo: #e9eef3;
    --velo-disque: #3a5068;
  }
}

/* ─── 3. Base ────────────────────────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--fond); color: var(--texte);
  font: 400 1rem/1.55 var(--f-txt);   /* 16 px : lisible au soleil, pas de zoom automatique sur iPhone */
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--f-num); text-transform: uppercase; margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2rem, 1.5rem + 2.4vw, 2.75rem); line-height: 1.02; letter-spacing: .01em; }
h2 { font-weight: 800; font-size: 1.5rem; line-height: 1.1; letter-spacing: .015em; }
h3 { font-weight: 700; font-size: 1.2rem; line-height: 1.15; letter-spacing: .03em; }
p { margin: 0; }
a { color: var(--lien); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
strong, b { font-weight: 700; }

/* Focus clavier : anneau net de 3 px, couleur adaptée au fond (variable --focus redéfinie sur le bois et l'ardoise). */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Lien d'évitement (premier élément de la page, visible au clavier) et texte réservé aux lecteurs d'écran. */
.evitement { position: absolute; left: 8px; top: -100px; z-index: 100; background: var(--carte); color: var(--texte);
  padding: 10px 16px; border-radius: 8px; font-weight: 700; box-shadow: var(--ombre); }
.evitement:focus { top: 8px; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Petit titre au-dessus d'un titre (« Bonjour Sophie », « Coordinateur · usagers »). */
.surtitre { display: block; font: 700 .8125rem/1.2 var(--f-num); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.texte-petit { font-size: .9375rem; }

/* ─── 4. Bois de piste et lignes de piste ────────────────────────────────────────────────────────────────── */
/* .bois : lattes de pin (dégradé répété) + fil du bois (img/bois.svg, bruit léger). */
.bois {
  background:
    url(../img/bois.svg),
    repeating-linear-gradient(90deg, var(--bois-1) 0 26px, var(--bois-2) 26px 27px, var(--bois-3) 27px 52px,
      var(--bois-4) 52px 53px, var(--bois-5) 53px 80px, var(--bois-6) 80px 81px);
}
/* .lignes : sous le bandeau, les quatre lignes de la piste dans l'ordre réel, du bas vers le haut de la piste :
   côte d'azur, ligne noire de mesure, ligne rouge des sprinteurs, ligne bleue des stayers. Décoratif. */
.lignes {
  height: 21px; flex: none;
  background: linear-gradient(var(--azur) 0 7px, transparent 7px 9px, var(--ardoise) 9px 11px, transparent 11px 13px,
    var(--rouge) 13px 15px, transparent 15px 17px, var(--bleue) 17px 19px, transparent 19px);
}
.lignes.fines { height: 10px;
  background: linear-gradient(var(--azur) 0 3px, transparent 3px 4px, var(--rouge) 4px 6px, transparent 6px 7px, var(--bleue) 7px 9px, transparent 9px); }
@media (prefers-color-scheme: dark) {
  /* La ligne noire disparaîtrait sur le fond sombre : elle passe en encre claire. */
  .lignes { background: linear-gradient(var(--azur) 0 7px, transparent 7px 9px, #46596b 9px 11px, transparent 11px 13px,
    var(--rouge) 13px 15px, transparent 15px 17px, var(--bleue) 17px 19px, transparent 19px); }
}

/* Logo texte « Piste+ » : le « + » en rouge sprint. */
.logo { display: inline-flex; align-items: center; min-height: 44px; font: 800 1.6rem/1 var(--f-num); letter-spacing: .03em;
  text-transform: uppercase; color: var(--logo); text-decoration: none; }
.logo span { color: var(--logo-plus); }
@media (prefers-color-scheme: light) { .bois .logo { text-shadow: 0 1px 0 rgba(255, 255, 255, .35); } }
.logo.grand { font-size: 2.5rem; justify-content: center; }

/* ─── 5. Bandeau ─────────────────────────────────────────────────────────────────────────────────────────── */
/* Bois en haut, lignes de piste dessous. Ordinateur (≥ 1024 px) : menu en pastilles. Téléphone : logo, avatar et
   déconnexion seulement ; le menu passe dans les onglets du bas (section 7). */
.bandeau { flex: none; --focus: var(--encre-bandeau); }
.bandeau-int { max-width: 72rem; margin: 0 auto; min-height: 64px; display: flex; align-items: center; gap: 12px;
  padding: 10px var(--gouttiere); }
.menu { display: none; }
.menu a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--pastille); color: var(--encre-bandeau); text-decoration: none;
  font: 700 1.0625rem/1 var(--f-num); letter-spacing: .05em; text-transform: uppercase;
  transition: background-color var(--t-rapide), transform var(--t-rapide); }
.menu a:hover { background: var(--pastille-survol); }
.menu a:active { transform: scale(.96); }
.menu a[aria-current="page"] { background: var(--ardoise); color: #fff; }
.menu svg { width: 18px; height: 18px; flex: none; }
.bandeau-compte { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.bandeau-compte form { margin: 0; }
@media (min-width: 1024px) {
  .menu { display: flex; gap: 6px; margin-left: auto; }
  .bandeau-compte { margin-left: 12px; }
}

/* Bouton rond à icône seule (déconnexion) : 44 px, nom accessible obligatoire (aria-label). */
.btn-icone { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: var(--pastille); color: var(--encre-bandeau); cursor: pointer; touch-action: manipulation;
  transition: background-color var(--t-rapide), transform var(--t-rapide); }
.btn-icone:hover { background: var(--pastille-survol); }
.btn-icone:active { transform: scale(.92); }
.btn-icone svg { width: 20px; height: 20px; }

/* ─── 6. Mise en page ────────────────────────────────────────────────────────────────────────────────────── */
.page { flex: 1 0 auto; width: 100%; max-width: 64rem; margin: 0 auto; padding: 28px var(--gouttiere) 48px;
  display: grid; gap: 24px; align-content: start; }
.page > * { min-width: 0; }
.page-tete { display: grid; gap: 6px; }
.page-tete p { color: var(--muted); max-width: 62ch; }
/* .carte : bloc blanc arrondi, une partie de page. Titre h2, puis contenu. */
.carte { background: var(--carte); border-radius: 14px; padding: 20px; box-shadow: var(--ombre); display: grid; gap: 14px; align-content: start; min-width: 0; }
.carte > h2 + p, .carte > .section-tete + p { color: var(--muted); }
.section-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.grille { display: grid; gap: 20px; align-items: start; }
.grille > :only-child { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .carte { padding: 24px; }
  .grille.deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Texte long (mentions légales) : 70 caractères par ligne au plus. */
.texte { max-width: 70ch; display: grid; gap: 12px; }
.texte h2 { margin-top: 12px; font-size: 1.3rem; }
.rangee { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ─── 7. Onglets du bas (téléphone et tablette, < 1024 px) ───────────────────────────────────────────────── */
/* Barre flottante ardoise, icône + libellé court, onglet actif en blanc souligné de rouge. 5 onglets au plus. */
.onglets { display: none; }
@media (max-width: 1023.98px) {
  body.avec-onglets { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  /* Le champ qui reçoit le focus n'est jamais caché derrière la barre. */
  html:has(body.avec-onglets) { scroll-padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
  .onglets { position: fixed; z-index: 30; left: max(10px, env(safe-area-inset-left, 0px)); right: max(10px, env(safe-area-inset-right, 0px));
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)); max-width: 34rem; margin: 0 auto;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 6px;
    background: var(--ardoise); border-radius: 18px; box-shadow: 0 10px 30px rgba(10, 18, 26, .28); --focus: var(--azur); }
  .onglets a { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 56px;
    padding: 6px 2px; border-radius: 12px; color: #9fb0bf; text-decoration: none;
    font: 600 .8125rem/1 var(--f-num); letter-spacing: .06em; text-transform: uppercase;
    transition: color var(--t-rapide), background-color var(--t-rapide); -webkit-tap-highlight-color: transparent; }
  .onglets a:active { background: rgba(255, 255, 255, .08); }
  .onglets a:focus-visible { outline-offset: -3px; }
  .onglets a[aria-current="page"] { color: #fff; }
  .onglets a[aria-current="page"]::after { content: ""; position: absolute; bottom: 4px; width: 24px; height: 3px; border-radius: 2px; background: var(--rouge); }
  .onglets svg { width: 22px; height: 22px; }
  @media (prefers-color-scheme: dark) { .onglets { background: #22344a; box-shadow: 0 0 0 1px #34495f, 0 10px 30px rgba(0, 0, 0, .45); } }
  .onglets span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ─── 8. Pied de page ────────────────────────────────────────────────────────────────────────────────────── */
.pied { flex: none; padding: 20px var(--gouttiere) 28px; text-align: center; color: var(--muted); font-size: .9375rem; display: grid; gap: 4px; justify-items: center; }
.pied .lignes { width: 64px; margin-bottom: 8px; border-radius: 2px; }
.pied a { color: var(--texte); }
.version { font-size: .875rem; font-variant-numeric: tabular-nums; }

/* ─── 9. Pages publiques (connexion…) et vélo ───────────────────────────────────────────────────────────── */
/* Plein écran en bois, carte blanche au centre, sans bandeau ni menu. */
.scene { flex: 1 0 auto; min-height: 100dvh; display: grid; place-items: center; align-content: center; gap: 16px;
  padding: 24px var(--gouttiere) calc(24px + env(safe-area-inset-bottom, 0px)); }
.carte-scene { width: min(100%, 27rem); background: var(--carte); border-radius: 18px; padding: 26px 22px 22px;
  display: grid; gap: 16px; box-shadow: 0 14px 30px rgba(28, 43, 58, .25); position: relative; overflow: hidden; }
.carte-scene > .lignes.fines { position: absolute; inset: 0 0 auto; }
.carte-scene h1 { font-size: 1.75rem; text-align: center; }
.carte-scene .accroche { text-align: center; color: var(--muted); font-size: .9375rem; }
.carte-scene .formulaire { max-width: none; }
.carte-scene .formulaire > .btn { width: 100%; }
.carte-scene .liens { display: grid; justify-items: center; gap: 4px; text-align: center; font-size: .9375rem; }
@media (min-width: 480px) { .carte-scene { padding: 32px 30px 26px; } }
.scene-pied { --focus: var(--encre-bandeau); font-size: .875rem; color: var(--encre-bandeau); background: var(--pastille-survol); border-radius: 999px; padding: 6px 14px; text-align: center; }
.scene-pied a { color: inherit; }

/* Vélo de piste moderne (gabarit _velo.html) : roue arrière pleine à 3 marques, roue avant à 3 bâtons.
   Les DEUX roues ont la même animation (même durée, même départ) : elles tournent exactement à la même vitesse. */
.velo { display: block; width: 100%; max-width: 17rem; height: auto; margin: 0 auto -4px; color: var(--velo); }
.velo .v-disque { fill: var(--velo-disque); }
.velo .v-jante { stroke: var(--velo-disque); }
.velo .v-fond { fill: var(--carte); }
.roue { transform-box: fill-box; transform-origin: center; animation: roule 2.4s linear infinite; }
@keyframes roule { to { transform: rotate(360deg); } }

/* ─── 10. Boutons ────────────────────────────────────────────────────────────────────────────────────────── */
/* .btn : principal (un seul par écran). + .secondaire (contour), .danger (supprime, révoque), .petit (dans une
   liste, 44 px de haut quand même), .lien (bouton qui ressemble à un lien). Un verbe sur chaque bouton. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border: 2px solid transparent; border-radius: 10px; background: var(--btn-fond); color: var(--btn-texte);
  font: 700 1.0625rem/1.1 var(--f-num); letter-spacing: .06em; text-transform: uppercase; text-align: center; text-decoration: none;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform var(--t-rapide) var(--doux), background-color .2s, border-color .2s, color .2s, box-shadow .2s; }
.btn:hover { background: var(--btn-survol); box-shadow: 0 6px 16px rgba(28, 43, 58, .18); transform: translateY(-1px); }
.btn:active { transform: scale(.97); box-shadow: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.secondaire { background: transparent; color: var(--texte); border-color: currentColor; }
.btn.secondaire:hover { background: var(--survol-doux); box-shadow: none; }
.btn.danger { background: var(--danger-fond); color: var(--danger-texte); }
.btn.danger:hover { background: var(--danger-fond); filter: brightness(1.08); }
.btn.secondaire.danger { background: transparent; color: var(--rouge-texte); border-color: currentColor; }
.btn.petit { min-height: 44px; padding: 0 16px; font-size: .9375rem; }
.btn.lien { min-height: 44px; padding: 0 4px; background: none; border: 0; color: var(--lien); box-shadow: none; transform: none;
  font: 600 1rem/1.2 var(--f-txt); letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 3px; }
.btn.pleine-largeur { width: 100%; }
/* Envoi en cours (app.js) : le bouton reste visible mais ne repart pas une deuxième fois. */
form[aria-busy="true"] .btn { cursor: progress; }

/* ─── 11. Formulaires ────────────────────────────────────────────────────────────────────────────────────── */
/* Gabarit _formulaire.html : libellé toujours visible, aide et erreur sous le champ, reliées par aria-describedby. */
.formulaire { display: grid; gap: 18px; max-width: 32rem; }
.formulaire > .btn { justify-self: start; }
.champ { display: grid; gap: 6px; }
label, legend { font-weight: 700; }
.champ input, .champ select, .champ textarea, .champ-texte {
  width: 100%; min-height: 48px; padding: 10px 14px; font: 400 1rem/1.4 var(--f-txt); color: var(--texte);
  background: var(--champ); border: 2px solid var(--bord-champ); border-radius: 10px;
  transition: border-color var(--t-rapide), box-shadow var(--t-rapide); }
.champ input:focus-visible, .champ select:focus-visible, .champ textarea:focus-visible, .champ-texte:focus-visible {
  outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px var(--halo); }
.champ input[type="date"] { min-height: 48px; }
.en-erreur input, .en-erreur select, .en-erreur textarea { border-color: var(--rouge-texte); }
.aide { color: var(--muted); font-size: .9375rem; }
.erreur-champ { display: flex; gap: 8px; align-items: flex-start; color: var(--rouge-texte); font-weight: 700; }
.erreur-champ::before, .alerte::before { content: "!"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px;
  border-radius: 50%; background: var(--a-couleur, var(--rouge-texte)); color: var(--carte); font: 800 .875rem/1 var(--f-num); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
legend { padding: 0; margin-bottom: 8px; }
/* Choix en tuiles (boutons radio ou cases) : toute la tuile se touche, l'option choisie est encadrée. */
.choix-tuiles { display: flex; flex-wrap: wrap; gap: 10px; }
.choix { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px; font-weight: 600;
  background: var(--champ); border: 2px solid var(--bord-champ); border-radius: 10px; cursor: pointer;
  transition: border-color var(--t-rapide), background-color var(--t-rapide); }
.choix input { width: 20px; height: 20px; margin: 0; accent-color: var(--texte); }
.choix:has(input:checked) { border-color: var(--texte); background: var(--survol-doux); box-shadow: inset 0 0 0 1px var(--texte); }
.choix:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.choix input:focus-visible { outline: none; }
/* Afficher / masquer le mot de passe (ajouté par app.js) */
.mdp { position: relative; }
.mdp input { padding-right: 6.75rem; }
.mdp-bascule { position: absolute; right: 4px; top: 4px; bottom: 4px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 7px;
  background: var(--survol-doux); color: var(--texte); font: 700 .875rem/1 var(--f-num); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.mdp-bascule:hover { background: var(--badge-fond); }

/* ─── 12. Alertes et toasts ──────────────────────────────────────────────────────────────────────────────── */
/* .alerte : message dans la page. + .succes, .erreur, .avertissement, .info. Le sens est aussi dit par
   l'icône et le texte, jamais par la couleur seule. role="status" (information) ou role="alert" (erreur). */
.alerte { --a-couleur: var(--lien); display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  background: var(--carte); border-left: 6px solid var(--a-couleur); border-radius: 10px; box-shadow: var(--ombre); }
.alerte::before { content: "i"; }
.alerte.succes { --a-couleur: var(--vert-texte); }
.alerte.succes::before { content: "✓"; font-family: var(--f-txt); }
.alerte.erreur { --a-couleur: var(--rouge-texte); }
.alerte.erreur::before, .alerte.avertissement::before { content: "!"; }
.alerte.avertissement { --a-couleur: #b26a00; }
@media (prefers-color-scheme: dark) { .alerte.avertissement { --a-couleur: #f0b049; } }
.alerte > div { display: grid; gap: 2px; }
.alerte .alerte-titre { font: 800 1.05rem/1.2 var(--f-num); letter-spacing: .04em; text-transform: uppercase; }
.alerte.flash { animation: glisse-bas .4s var(--doux) both; }
@keyframes glisse-bas { from { opacity: 0; transform: translateY(-8px); } }

/* Toasts : messages brefs en bas de l'écran (au-dessus des onglets), annoncés sans prendre le focus.
   Créés par Piste.toast("Texte", "succes" | "erreur" | "info") dans app.js ; disparaissent après 4 s. */
.toasts { position: fixed; z-index: 60; left: var(--gouttiere); right: var(--gouttiere); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 28rem; margin: 0 auto; display: grid; gap: 8px; pointer-events: none; }
@media (max-width: 1023.98px) { body.avec-onglets .toasts { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px;
  background: var(--vert); color: #fff; font-weight: 600; box-shadow: 0 10px 30px rgba(10, 18, 26, .3);
  animation: toast-entre .3s var(--doux) both; }
.toast.erreur { background: #b81f27; }
.toast.info { background: var(--ardoise); }
.toast.sort { animation: toast-sort .2s ease-in both; }
@keyframes toast-entre { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes toast-sort { to { opacity: 0; transform: translateY(8px); } }

/* ─── 13. Tableau responsive ─────────────────────────────────────────────────────────────────────────────── */
/* <div class="tableau-conteneur"><table class="tableau">… <td data-label="Adresse">…
   Ordinateur : tableau. Téléphone (< 768 px) : une carte par ligne, le libellé de colonne (data-label) devant
   chaque valeur. La cellule .actions regroupe les boutons. */
.tableau-conteneur { overflow-x: auto; border-radius: 12px; }
.tableau { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--carte); border-radius: 12px; box-shadow: var(--ombre); }
.tableau caption { text-align: left; }
.tableau th { text-align: left; vertical-align: bottom; padding: 12px 14px; background: var(--fond-tete); color: var(--muted);
  font: 700 .875rem/1.2 var(--f-num); letter-spacing: .08em; text-transform: uppercase; }
.tableau th:first-child { border-top-left-radius: 12px; }
.tableau th:last-child { border-top-right-radius: 12px; }
/* break-word (et non anywhere) : les colonnes gardent la largeur de leurs mots, seule une adresse trop longue se coupe. */
.tableau td { padding: 12px 14px; border-top: 1px solid var(--bord); vertical-align: middle; overflow-wrap: break-word; }
.tableau .nombre { text-align: right; font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions form { margin: 0; }
@media (max-width: 767.98px) {
  .tableau-conteneur { overflow: visible; }
  .tableau, .tableau tbody, .tableau tr, .tableau td { display: block; }
  .tableau { background: none; box-shadow: none; }
  .tableau thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tableau tr { background: var(--carte); border-radius: 12px; box-shadow: var(--ombre); padding: 8px 16px; margin-bottom: 12px; }
  .tableau td { display: grid; grid-template-columns: minmax(6.5rem, 34%) 1fr; gap: 4px 12px; padding: 8px 0; border: 0; overflow-wrap: anywhere; }
  .tableau td + td { border-top: 1px solid var(--bord); }
  .tableau td[data-label]::before { content: attr(data-label); color: var(--muted); font: 700 .875rem/1.5 var(--f-num); letter-spacing: .06em; text-transform: uppercase; }
  .tableau td.actions { display: flex; padding-top: 12px; }
  .tableau td.actions::before { display: none; }
  .tableau .nombre { text-align: left; }
}

/* ─── 14. Cartes en liste, badges, avatar ────────────────────────────────────────────────────────────────── */
/* .liste-cartes : <ul> de cartes (appareils connectés, personnes…), une colonne sur téléphone. */
.liste-cartes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 768px) { .liste-cartes { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); } }
.carte-ligne { background: var(--champ); border: 1px solid var(--bord); border-radius: 12px; padding: 14px 16px; display: grid; gap: 10px; align-content: start; }
.carte-ligne.actuelle { border-color: var(--vert-texte); box-shadow: inset 4px 0 0 var(--vert-texte); }
.carte-ligne-tete { display: flex; gap: 12px; align-items: center; }
.carte-ligne-tete svg { width: 28px; height: 28px; flex: none; color: var(--muted); }
.carte-ligne-titre { font-weight: 700; overflow-wrap: anywhere; }
/* Nom d'appareil = signature complète du navigateur (enregistrée par le lot 1) : 3 lignes au plus, texte entier au
   survol (attribut title). */
.carte-ligne-tete { flex-wrap: wrap; }
.carte-ligne-titre.appareil { flex: 1 1 10rem; min-width: 0; font-size: .9375rem; display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.details { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; font-size: .9375rem; }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-variant-numeric: tabular-nums; }

/* .badge : courte étiquette d'état. + .vert (actif, cet appareil), .rouge, .moins18 (« −18 ans », penché). */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 4px; background: var(--badge-fond); color: var(--texte);
  font: 700 .8125rem/1.4 var(--f-num); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; }
.badge.vert { background: var(--vert); color: #fff; }
.badge.rouge, .badge.moins18 { background: #c4212a; color: #fff; }
.badge.moins18 { transform: rotate(-4deg); letter-spacing: .04em; }

/* .avatar : initiales dans un rond ardoise (bandeau : mène à « Mon compte »). + .grand. */
.avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--ardoise); color: #fff;
  font: 700 1rem/1 var(--f-num); letter-spacing: .04em; text-decoration: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .55);
  transition: transform var(--t-rapide); }
.avatar:hover { transform: scale(1.06); }
.avatar.grand { width: 64px; height: 64px; font-size: 1.5rem; box-shadow: none; }

/* ─── 15. Dossard (solde de séances d'une personne) ──────────────────────────────────────────────────────── */
/* <div class="dossard [negatif]"><span class="dossard-haut">Piste+ · CREPS</span>
     <span class="dossard-num" data-compteur="7">7</span><span class="dossard-nom">Léa</span>
     <span class="dossard-detail">séances restantes</span></div>
   Le chiffre défile de 0 à sa valeur à l'ouverture (app.js, data-compteur). Négatif : chiffre rouge, et le texte
   (.dossard-detail, alerte) le dit aussi. Papier blanc, quatre trous d'épingle, légèrement penché. */
.dossards { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gouttiere)); padding: 8px var(--gouttiere) 16px; }
.dossards::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .dossards { flex-wrap: wrap; overflow: visible; margin: 0; padding: 8px 0 16px; } }
.dossard { --r: -1.5deg; flex: 0 0 170px; scroll-snap-align: start; position: relative; display: grid; justify-items: center; gap: 2px;
  padding: 16px 12px 12px; border-radius: 6px; background: var(--papier); color: #1c2b3a; text-align: center;
  box-shadow: 0 2px 0 #e2d6c5, 0 10px 22px rgba(28, 43, 58, .13); transform: rotate(var(--r)); transition: transform .35s var(--ressort); }
.dossards > .dossard:nth-child(3n+2) { --r: 1.2deg; }
.dossards > .dossard:nth-child(3n) { --r: -.8deg; }
.dossard:hover, .dossard:focus-within { transform: rotate(0) translateY(-3px); }
.dossard::before { content: ""; position: absolute; inset: 7px; pointer-events: none; background:
  radial-gradient(circle, #cbbca8 3px, transparent 3.6px) 0 0 / 10px 10px no-repeat,
  radial-gradient(circle, #cbbca8 3px, transparent 3.6px) 100% 0 / 10px 10px no-repeat,
  radial-gradient(circle, #cbbca8 3px, transparent 3.6px) 0 100% / 10px 10px no-repeat,
  radial-gradient(circle, #cbbca8 3px, transparent 3.6px) 100% 100% / 10px 10px no-repeat; }
.dossard-haut { font: 700 .75rem/1.2 var(--f-num); letter-spacing: .16em; text-transform: uppercase; color: #c4212a; }
.dossard-num { font: 800 4.6rem/.95 var(--f-num); font-variant-numeric: tabular-nums; color: #1c2b3a; transition: color var(--t-moyen); }
.dossard-nom { font: 700 1.1rem/1.2 var(--f-num); letter-spacing: .06em; text-transform: uppercase; }
.dossard-detail { font-size: .875rem; line-height: 1.3; color: #6b5b48; }
.dossard.negatif .dossard-num { color: #c4212a; }
/* Solde seul (fiche du coordinateur) : même chiffre, sans le papier. .flash : vert un instant après un ajout. */
.solde { font: 800 3.4rem/1 var(--f-num); font-variant-numeric: tabular-nums; transition: color var(--t-moyen); }
.solde.negatif { color: var(--rouge-texte); }
.solde.flash, .dossard-num.flash { color: var(--vert-texte); }

/* ─── 16. Créneau et tampon « Inscrit » ──────────────────────────────────────────────────────────────────── */
/* <article class="creneau mercredi|dimanche [clos] [inscrit]"> : liseré bleu (mercredi soir) ou rouge (dimanche
   matin). Le jour est toujours écrit : la couleur n'est pas la seule information. .clos : grisé, badge « Clos ».
   .inscrit : tampon posé ; Piste.tamponner(carte) le pose avec l'animation. */
.creneau { --c: var(--bleue); position: relative; overflow: hidden; display: grid; gap: 10px; padding: 14px 16px 16px 18px;
  background: var(--carte); border-radius: 12px; border-left: 6px solid var(--c); box-shadow: var(--ombre); }
.creneau.mercredi { --c: var(--bleue); }
.creneau.dimanche { --c: var(--rouge); }
.creneau-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.creneau-jour { font: 800 1.4rem/1 var(--f-num); text-transform: uppercase; letter-spacing: .01em; }
.creneau-heure { font: 600 1.05rem/1 var(--f-num); color: var(--muted); font-variant-numeric: tabular-nums; }
.creneau-cloture { font-size: .9375rem; color: var(--muted); }
.creneau-cloture strong, .creneau-cloture b { color: var(--texte); }
.creneau.clos { --c: #b9ad9c; background: var(--clos-fond); box-shadow: none; }
.creneau.clos .creneau-jour { color: var(--muted); }
.tampon { position: absolute; right: 14px; top: 44px; padding: 2px 10px; border: 3px solid currentColor; border-radius: 6px;
  color: var(--vert-texte); font: 800 1.05rem/1.2 var(--f-num); letter-spacing: .1em; text-transform: uppercase;
  opacity: 0; transform: rotate(-12deg) scale(2); pointer-events: none; }
.creneau.inscrit .tampon { opacity: .92; transform: rotate(-12deg); }
.creneau.tamponne .tampon { animation: tampon .45s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes tampon { from { opacity: 0; transform: rotate(-12deg) scale(2); } to { opacity: .92; transform: rotate(-12deg) scale(1); } }

/* ─── 17. Puces de sélection des personnes ───────────────────────────────────────────────────────────────── */
/* Deux écritures, même apparence :
   - <button class="puce" type="button" aria-pressed="false" data-bascule>Léa</button> (app.js bascule l'état) ;
   - <label class="puce"><input type="checkbox" name="personne" value="12"> Léa</label> (marche sans JavaScript,
     part avec le formulaire : à préférer pour une inscription).
   Choisie : remplie, avec une coche (l'état ne tient pas qu'à la couleur). */
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border: 2px solid var(--texte); border-radius: 999px; background: transparent; color: var(--texte);
  font: 700 1rem/1 var(--f-num); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; touch-action: manipulation;
  transition: background-color .2s, color .2s, transform var(--t-rapide); -webkit-tap-highlight-color: transparent; }
.puce::before { content: "+"; font-size: 1.1em; width: .8em; text-align: center; }
.puce:active { transform: scale(.94); }
.puce[aria-pressed="true"], .puce:has(input:checked) { background: var(--texte); color: var(--fond); }
.puce[aria-pressed="true"]::before, .puce:has(input:checked)::before { content: "✓"; font-family: var(--f-txt); }
.puce input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.puce:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ─── 18. Tickets de prestation et ajout rapide ──────────────────────────────────────────────────────────── */
/* <button class="ticket"><span><span class="ticket-titre">Carte 10 + 1 séance d'essai</span>
     <span class="ticket-detail">Moins de 18 ans</span></span><span class="ticket-plus">+11</span></button>
   Encoches rondes sur les côtés, à la couleur du fond derrière (--encoche, déjà réglée dans une .carte). */
.ticket { --encoche: var(--fond); position: relative; width: 100%; min-height: 60px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px 12px 20px; border: 0; border-radius: 8px; color: #fff; text-align: left; cursor: pointer; touch-action: manipulation;
  background:
    radial-gradient(circle 8px at 0 50%, var(--encoche) 98%, transparent) ,
    radial-gradient(circle 8px at 100% 50%, var(--encoche) 98%, transparent),
    var(--ticket-fond);
  transition: transform .2s var(--doux), box-shadow .2s; }
.carte .ticket, .carte-scene .ticket { --encoche: var(--carte); }
.ticket:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(28, 43, 58, .22); }
.ticket:active { transform: scale(.97); box-shadow: none; }
.ticket > span:first-child { display: grid; gap: 2px; }
.ticket-titre { font: 700 1.05rem/1.15 var(--f-num); letter-spacing: .04em; text-transform: uppercase; }
.ticket-detail { font-size: .875rem; color: #c4d1dc; }
.ticket-plus { flex: none; padding-left: 14px; border-left: 2px dashed #5a6f84; color: var(--azur); font: 800 1.7rem/1 var(--f-num); font-variant-numeric: tabular-nums; }
/* Boutons +1 / +5 / +10 */
.rapides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rapide { min-height: 56px; border: 2px solid var(--texte); border-radius: 10px; background: var(--carte); color: var(--texte); cursor: pointer;
  font: 800 1.5rem/1 var(--f-num); font-variant-numeric: tabular-nums; touch-action: manipulation;
  transition: transform var(--t-rapide), background-color .2s, color .2s; }
.rapide:hover { background: var(--survol-doux); }
.rapide:active { transform: scale(.93); background: var(--texte); color: var(--fond); }

/* ─── 19. Liste d'appel ──────────────────────────────────────────────────────────────────────────────────── */
/* <ul class="appel"><li class="appel-ligne"><span>Léa Martin<small>scannée à 9:24</small></span>
     <button class="coche" type="button" aria-pressed="true" aria-label="Léa Martin présente" data-bascule>…svg…</button></li>
   Coche ronde de 44 px : vide = pas encore là, verte avec ✓ = présent (aria-pressed). */
.appel { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.appel-ligne { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; background: var(--carte); border-radius: 10px; box-shadow: var(--ombre); }
.appel-ligne small { display: block; color: var(--muted); font-size: .875rem; }
.appel-compte { font: 800 1.05rem/1 var(--f-num); letter-spacing: .04em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.coche { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 2px solid var(--texte); border-radius: 50%;
  background: transparent; cursor: pointer; touch-action: manipulation; transition: background-color .2s, border-color .2s, transform .4s var(--doux); }
.coche svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .2s; }
.coche[aria-pressed="true"] { background: var(--vert); border-color: var(--vert); transform: rotate(360deg); }
.coche[aria-pressed="true"] svg { opacity: 1; }

/* ─── 20. État vide ──────────────────────────────────────────────────────────────────────────────────────── */
/* Une page ou une liste vide le dit. Simple : <p class="vide">Aucun compte en attente.</p>
   Complet : <div class="vide"><svg…/><p class="vide-titre">…</p><p>…</p><a class="btn">…</a></div> */
.vide { display: grid; justify-items: center; gap: 8px; padding: 24px 16px; text-align: center; color: var(--muted);
  border: 2px dashed var(--bord); border-radius: 14px; }
.vide svg { width: 44px; height: 44px; color: var(--bord-champ); }
.vide-titre { font: 800 1.25rem/1.15 var(--f-num); letter-spacing: .02em; text-transform: uppercase; color: var(--texte); }

/* ─── 21. Fenêtre de confirmation (dialog#confirmer, app.js, data-confirm) ───────────────────────────────── */
.confirmer { width: min(28rem, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 16px; background: var(--carte); color: var(--texte);
  box-shadow: 0 24px 60px rgba(10, 18, 26, .4); overflow: hidden; }
.confirmer::backdrop { background: rgba(18, 28, 38, .6); backdrop-filter: blur(2px); }
.confirmer[open] { animation: dialogue .22s var(--doux) both; }
@keyframes dialogue { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.confirmer-corps { display: grid; gap: 12px; padding: 22px 22px 20px; }
/* Pas de majuscules forcées : la question peut citer une adresse mail, qui doit rester lisible telle quelle. */
.confirmer-corps h2 { font-size: 1.45rem; text-transform: none; letter-spacing: .01em; overflow-wrap: anywhere; }
.confirmer-corps p:empty { display: none; }
.confirmer-actions { display: flex; flex-wrap: wrap-reverse; gap: 10px; justify-content: flex-end; margin-top: 6px; }

/* ─── 22. Pages du lot 3 : planning, familles, fiches du coordinateur ───────────────────────────────────── */
/* Navigation de semaine : ‹ semaine précédente · titre · semaine suivante ›. */
.semaine-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.semaine-nav .surtitre { text-align: center; flex: 1; }
.semaine-nav .btn { min-width: 48px; padding: 0 14px; font-size: 1.4rem; }
/* Personnes inscrites sur une carte de créneau, chacune avec son bouton « Annuler ». */
.inscrits { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.inscrits li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
.inscrits form { margin: 0; }
.creneau-actions { display: grid; gap: 10px; }
.creneau-actions .rangee .btn { flex: 1 1 auto; }
/* Dossard cliquable (fiche d'un compte, coordinateur). */
a.dossard { text-decoration: none; }
a.dossard:focus-visible { outline-offset: 4px; }
/* Haut de la fiche d'une personne : nom à gauche, solde en grand à droite. */
.fiche-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px;
  border-radius: 12px; background: var(--champ); border: 1px solid var(--bord); }
.fiche-nom { font: 800 1.5rem/1.1 var(--f-num); text-transform: uppercase; overflow-wrap: anywhere; }
.fiche-solde { display: grid; justify-items: end; }
/* Boutons +1/+5/+10 : un formulaire chacun (confirmation propre à chaque bouton). */
.rapides form { display: grid; margin: 0; }
.tickets { display: grid; gap: 10px; }
.tickets form { margin: 0; }
@media (min-width: 768px) { .tickets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* « Autres tarifs », « Modifier » : contenu replié, ouvert d'un clic (élément <details> natif, sans script). */
.repli > summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--lien); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; }
.repli[open] > summary { margin-bottom: 10px; }
.repli > *:not(summary) { display: grid; gap: 12px; }
/* Ligne de formulaire compacte (réglages, heures d'un responsable). */
.ligne-formulaire { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: end; }
.ligne-formulaire .champ { flex: 1 1 10rem; }
.ligne-formulaire .champ.etroit { flex: 0 1 7rem; }
.ligne-formulaire .btn { flex: none; }
.champ textarea { min-height: 88px; resize: vertical; }
.recherche { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.recherche .champ { flex: 1 1 14rem; }
.negatif-texte { color: var(--rouge-texte); font-weight: 700; }

/* ─── 24. Pointage (lot 4) : QR, liste d'appel, séance validée, grille d'affectations ───────────────────── */
/* QR : toujours modules ardoise sur fond blanc (lisible par les appareils photo), en clair comme en sombre. */
.qr-scene { display: grid; gap: 14px; justify-items: center; text-align: center; }
.qr-cadre { width: min(100%, 340px); aspect-ratio: 1; background: #fff; border-radius: 14px; padding: 6px;
  box-shadow: 0 1px 0 #e2d6c5, 0 8px 24px rgba(28, 43, 58, .12); }
.qr-cadre svg { display: block; width: 100%; height: 100%; }
.qr-cadre.petit { width: min(100%, 260px); justify-self: center; }
/* Ligne rouge qui se consume en 30 s (app.js l'anime, Web Animations). */
.jauge { width: min(100%, 340px); height: 6px; border-radius: 3px; background: var(--bord); overflow: hidden; }
.jauge i { display: block; height: 100%; background: var(--rouge); transform-origin: left; }
.qr-personnes { display: grid; gap: 16px; }
@media (min-width: 768px) { .qr-personnes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qr-personne { justify-items: center; text-align: center; }
/* Hors ligne / validations en attente (app.js). */
.hors-ligne { justify-self: start; padding: 6px 14px; border-radius: 999px; background: var(--ardoise); color: #fff;
  font: 700 .9375rem/1.2 var(--f-num); letter-spacing: .06em; text-transform: uppercase; }
.hors-ligne[hidden] { display: none; }
/* Liste d'appel : « Annuler » à gauche de la coche. */
.appel-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.appel-actions form { margin: 0; }
.appel-actions form[hidden] { display: none; }
.coche:disabled { cursor: default; }
.coche:disabled:not([aria-pressed="true"]) { opacity: .45; }
.scanner { justify-items: start; }
.scanner-video { width: min(100%, 420px); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: #000; }
.puce.validee { cursor: default; background: var(--vert); border-color: var(--vert); color: #fff; }
.puce.validee::before { content: "✓"; font-family: var(--f-txt); }
/* Séance validée : un coureur fait un tour de piste, la coche se dessine, le texte monte (maquette validée). */
.seance-validee { display: grid; gap: 16px; justify-items: center; text-align: center; max-width: 32rem; margin: 0 auto; width: 100%; }
.anneau { width: 100%; max-width: 360px; height: auto; }
.coureur { offset-path: path("M70 27H170A48 48 0 0 1 170 123H70A48 48 0 0 1 70 27Z"); offset-rotate: 0deg; offset-distance: 0%;
  animation: tour 1.8s cubic-bezier(.45, .05, .35, 1) .2s both; }
@keyframes tour { to { offset-distance: 100%; } }
.coche-trace { stroke-dasharray: 60; stroke-dashoffset: 60; animation: trace .4s 1.95s ease-out both; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.valide-texte { animation: monte .4s 2.1s ease-out both; }
@keyframes monte { from { opacity: 0; transform: translateY(10px); } }
.valide-gros { font: 800 2.4rem/1 var(--f-num); text-transform: uppercase; letter-spacing: .02em; color: var(--vert-texte); }
.seance-validee .dossards { justify-content: center; }
/* Grille d'affectations : défile horizontalement, première colonne figée. */
.grille-affectations { overflow-x: auto; margin: 0 calc(-1 * var(--gouttiere)); padding: 0 var(--gouttiere); }
.grille-affectations table { border-collapse: collapse; min-width: 100%; }
.grille-affectations th, .grille-affectations td { padding: 8px 10px; border-bottom: 1px solid var(--bord); text-align: center; white-space: nowrap; }
.grille-affectations th:first-child { position: sticky; left: 0; z-index: 1; background: var(--carte); text-align: left; }
.grille-affectations thead th { font: 700 .9375rem/1.2 var(--f-num); letter-spacing: .04em; text-transform: uppercase; }
.grille-affectations input[type="checkbox"] { width: 24px; height: 24px; accent-color: var(--vert); }
.grille-affectations tr.fige td, .grille-affectations tr.fige th { color: var(--muted); }

/* ─── 25. Comptes rendus, statistiques, mes heures (lot 6) ───────────────────────────────────────────────── */
/* Tuiles de chiffres : un grand nombre et son libellé. */
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 12px; }
.tuile { margin: 0; display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; background: var(--champ); border: 1px solid var(--bord);
  border-left: 6px solid var(--azur); }
.tuile-nombre { font: 800 2.2rem/1 var(--f-num); font-variant-numeric: tabular-nums; }
.tuile-libelle { color: var(--muted); font-size: .9375rem; line-height: 1.3; }
/* Ligne de total d'un tableau. */
.tableau tr.total td { font-weight: 700; background: var(--fond-tete); }
/* Barres horizontales (SVG décoratif ; l'étiquette et le nombre restent écrits). Téléphone : étiquette au-dessus. */
.barres { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.barres li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.barre-etiquette { grid-column: 1 / -1; font-weight: 600; overflow-wrap: anywhere; }
.barre-piste { width: 100%; height: 14px; border-radius: 7px; overflow: hidden; display: block; }
.barre-valeur { font: 800 1.25rem/1 var(--f-num); font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.barre-fond { fill: var(--bord); }
.barre-azur { fill: var(--azur); }
.barre-bleue { fill: var(--lien); }
.barre-rouge { fill: var(--rouge); }
.barre-vert { fill: var(--vert); }
@media (min-width: 768px) {
  .barres li { grid-template-columns: 12rem 1fr 3rem; gap: 0 12px; }
  .barre-etiquette { grid-column: auto; }
}

/* ─── 23. Réduire les animations ─────────────────────────────────────────────────────────────────────────── */
/* Réglage « réduire les animations » du téléphone ou de l'ordinateur : tout s'affiche directement, sans mouvement
   (roues arrêtées, tampon posé, toasts sans glissement). app.js lit aussi ce réglage pour les compteurs. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .roue { animation: none !important; }
  /* Séance validée : tout est posé tout de suite (coureur arrivé, coche dessinée, texte affiché). */
  .coureur, .coche-trace, .valide-texte { animation-delay: 0s !important; }
  .btn:hover, .ticket:hover, .dossard:hover, .dossard:focus-within { transform: none; }
}
