/* Boxingcut — feuille de style commune (direction « Clair et rassurant », reprise de la maquette validée).
   Police Inter auto-hébergée : la CSP du site (default-src 'self') interdit toute requête vers Google Fonts. */
@font-face {
  font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme:dark;
  /* Refonte sombre (lot 1) : valeurs de DESIGN.md, colonne « Après ». body.clair (vitrine) et body.admin (tableau.css) gardent les anciennes. */
  --fond:#0E0F13;
  --carte:#17181D; --bord:#2C2F36; --texte:#FFFFFF; --doux:#9A9AA0; --accent:#8FE444;
  /* Accent vert pomme vif (kest, 15/11, code G1) = ACTION seulement (bouton principal, sélection, case cochée, rond des blocs, étape et segment faits).
     --blanc-ui = blanc des éléments NON-ACTION qui portaient l'ancien accent (rond du compte, étape et segment courants, chargement, surlignage). */
  --blanc-ui:#FFFFFF; --jauge-faite:var(--accent);
  --bleu:#5B8CFF; --bleu-f:#21293F; --rouge:#FF5A52; --rouge-f:#3A2225; --gris-f:#2C2F36;
  --alerte:#F5A524; --alerte-f:#382D1E; --ok:#4ADE80; --ok-f:#1F362C;
  --surface-1:#17181D; --surface-2:#212329; --surface-3:#2C2F36; --seg-fond:#2C2F36; --bandeau:#383B44; --sur-bandeau:#FFFFFF; --contour-champ:#6E7078; --exemple:#8A8C94;
  --sur-accent:#0E0F13; --inactif:#2C2F36; --inactif-texte:#6E7078; --plaque-logo:#E9EBEF; --plaque-risque:#8b909b; --plein-ecran:#000000;
  --fond-video:#000000; --sur-video:#fff; --texte-sur-video:#111827; --doux-sur-video:#9ca3af; --damier-1:#fff; --damier-2:#e5e7eb;
  --damier-sombre-1:#2b2f3a; --damier-sombre-2:#161920; --damier-logo-1:#CFCFCF; --damier-logo-2:#9E9E9E; --silhouette:#4A4D56; --pointille:var(--surface-3); --col-a-placer:var(--carte); --info-f:var(--surface-2);
  --info-texte:var(--texte); --bord-alerte:color-mix(in srgb, var(--rouge) 40%, transparent); --bord-attente:#5A4A2A; --focus:#FFFFFF; --attente:var(--alerte); --attente-f:var(--alerte-f);
  --ombre:none; --ombre-menu:none; --halo:0 0 0 4px rgba(255,255,255,.16); --voile:rgba(0,0,0,.6);
  --rayon-btn:999px; --haut-btn:52px; --taille-corps:16px; --taille-h1:30px; --taille-h1-grand:30px; --taille-petit:14px; --taille-lab:13px;
  --taille-btn:17px; --haut-champ:48px; --taille-pastille:12px; --poids-pastille:600; --taille-bloc-titre:17px; --taille-num-bloc:24px;
  --rayon-carte:16px;
  /* Lot 2b : forme des cartes, blocs, alertes, feuille, étapes, parties, total (valeurs sombres ; body.clair et body.admin gardent les anciennes). */
  --pad-carte:16px; --ep-bloc:1px; --pad-bloc-corps:16px; --gap-bloc:12px; --num-fond:var(--accent); --num-texte:var(--sur-accent);
  --ep-alerte:1px; --alerte-texte:var(--texte); --rayon-feuille:24px; --taille-feuille-titre:22px; --taille-conf-lab:12px; --taille-etape-nom:12px; --espace-etape-nom:-.02em; --lh-total:1.1; --marge-etapes:0 -8px;
  --rond-courant-fond:var(--fond); --tuile:36px; --dir-total:column; --align-total:flex-start; --gap-total:2px; --taille-total:34px;
  --total-lab-taille:12px; --total-lab-poids:700; --total-lab-casse:uppercase; --total-lab-couleur:var(--doux); --total-lab-espace:.04em;
  /* Lot 2a : forme des boutons, champs, segmenté, en-tête, barre du bas (valeurs sombres ; body.clair et body.admin gardent les anciennes). */
  --pad-btn:12px; --pad-compact:9px 16px; --haut-compact:44px; --taille-compact:15px; --poids-compact:600; --haut-lien:44px; --taille-lien:14px;
  --btn-sec-fond:var(--surface-3); --btn-sec-bord:var(--surface-3); --btn-danger-fond:var(--rouge-f); --btn-danger-bord:var(--rouge-f);
  --btn-dc-fond:var(--rouge-f); --btn-dc-bord:var(--rouge-f); --pression:scale(.98); --pad-duo:12px 10px; --taille-duo:15px;
  --champ-focus-ep:2px; --champ-focus-decal:0px;
  --rayon-seg:999px; --rayon-seg-pouce:999px; --haut-seg:48px; --pad-seg:2px; --taille-seg:14px;
  --seg-pouce-fond:var(--accent); --seg-pouce-texte:var(--sur-accent); --seg-pouce-ombre:none;
  --seg-b-fond:var(--bleu); --seg-b-texte:var(--sur-accent); --seg-r-fond:var(--rouge); --seg-r-texte:var(--sur-accent);
  --entete-fond:var(--fond); --haut-entete:56px; --haut-nav:44px; --pad-nav:6px 14px; --rond-compte:44px; --taille-compte:15px;
  --menu-fond:var(--surface-3); --haut-sortir:44px; --fondu-bas:16px;
  --btn-danger-off-texte:var(--inactif-texte); --haut-pay:44px; --align-pay:center; --haut-retour:44px; --disp-retour:inline-flex;
  /* Lot 2c : logos, photos, colonnes des boxeurs, vignettes (valeurs sombres ; body.clair et body.admin gardent les anciennes). */
  --contour-media:var(--bord); --cerclage:var(--carte); --anneau-palette:var(--surface-3); --fond-jeton:var(--surface-2); --fond-choix:var(--carte);
  --texte-carte-fichier:var(--sur-accent); --texte-logo-p:var(--sur-accent); --taille-logo-p:12px; --taille-logo-fichier:12px;
  --point-fond:var(--accent); --point-bord:var(--sur-accent); --taille-agrandir:44px;
  --fond-champ:#212329; --taille-h1-large:34px; --taille-h1-grand-large:34px; --interligne-h1:1.1; --espace-h1:-.02em; --taille-secondaire:14px; --taille-meta:13px; --chiffres:tabular-nums; --taille-nom-gala:17px; --taille-pied:13px; --aff-pied:inline-block; --pad-pied:13px 6px;
  /* Fenêtres d'alerte (chantier A5, 19/11, DESIGN.md « Fenêtre d'alerte ») : couleurs PROPRES au composant, identiques sur toutes
     les pages (body.admin redéfinit --rouge, --btn-danger-fond en violet, --surface-3 en clair : la fenêtre ne doit pas en hériter). */
  --fen-carte:#17181D; --fen-texte:#FFFFFF; --fen-doux:#9A9AA0; --fen-sec:#2C2F36; --fen-bord:#2C2F36; --fen-bandeau:#383B44;
  --fen-rouge:#FF5A52; --fen-rouge-f:#3A2225; --fen-attente:#F5A524; --fen-attente-f:#382D1E; --fen-attente-bord:#5A4A2A;
  --fen-violet:#a78bfa; --voile-alerte:rgba(0,0,0,.72); --voile-fenetre:rgba(0,0,0,.6);
  /* Fenêtre verte de succès (F16, 24/11) : jeton « fait » de DESIGN.md, seulement au retour d'un paiement validé. */
  --fen-fait:#4ADE80; --fen-fait-f:#1F362C; --fen-fait-bord:color-mix(in srgb, var(--fen-fait) 40%, transparent);
}
/* Thème clair : vitrine (index.html). Toutes les variables, aux valeurs claires actuelles, pour que les tâches suivantes
   puissent changer :root sans toucher à cette page. */
body.clair {
  color-scheme:light;
  --fond:#eceef2;
  --carte:#fff; --bord:#ececf0; --texte:#111827; --doux:#6b7280; --accent:#111827;
  --blanc-ui:#111827; --jauge-faite:var(--ok);   /* accent vert (15/11) : la vitrine garde son rendu (ancien accent, jauge faite en --ok) */
  --bleu:#2952cc; --bleu-f:#eff4ff; --rouge:#c8322a; --rouge-f:#fff1f0; --gris-f:#f1f1f4;
  --alerte:#b45309; --alerte-f:#fffbeb; --ok:#15803d; --ok-f:#ecfdf3;
  --surface-1:#fff; --surface-2:#f3f4f7; --surface-3:#e5e7eb; --seg-fond:#ececf1; --bandeau:#111827; --sur-bandeau:#fff; --contour-champ:#dcdce3; --exemple:#a0a3ad;
  --sur-accent:#fff; --inactif:#e5e7eb; --inactif-texte:#9ca3af; --plaque-logo:#fff; --plaque-risque:#8b909b; --plein-ecran:#000;
  --fond-video:#111827; --sur-video:#fff; --texte-sur-video:#111827; --doux-sur-video:#9ca3af; --damier-1:#fff; --damier-2:#e5e7eb;
  --damier-sombre-1:#2b2f3a; --damier-sombre-2:#161920; --damier-logo-1:#CFCFCF; --damier-logo-2:#9E9E9E; --silhouette:#c9cbd3; --pointille:#c4c9d1; --col-a-placer:#f6f7f9; --info-f:#eef2ff;
  --info-texte:#3730a3; --bord-alerte:#f5c2bd; --bord-attente:#fde68a; --focus:var(--bleu); --attente:var(--alerte); --attente-f:var(--alerte-f);
  --ombre:0 2px 6px rgba(17,24,39,.08); --ombre-menu:0 8px 24px rgba(17,24,39,.12); --halo:0 0 0 4px rgba(17,24,39,.12); --voile:rgba(17,24,39,.45);
  --rayon-btn:14px; --haut-btn:auto; --taille-corps:14px; --taille-h1:22px; --taille-h1-grand:26px; --taille-petit:12px; --taille-lab:12px;
  --taille-btn:15px; --haut-champ:auto; --taille-pastille:11px; --poids-pastille:700; --taille-bloc-titre:15px; --taille-num-bloc:22px;
  --rayon-carte:16px;
  /* Lot 2b : anciennes valeurs de forme. */
  --pad-carte:14px; --ep-bloc:.5px; --pad-bloc-corps:12px 14px 14px; --gap-bloc:10px; --num-fond:var(--sur-bandeau); --num-texte:var(--bandeau);
  --ep-alerte:0px; --alerte-texte:var(--rouge); --rayon-feuille:18px; --taille-feuille-titre:19px; --taille-conf-lab:11px; --taille-etape-nom:11px; --espace-etape-nom:0; --lh-total:1.5; --marge-etapes:0;
  --rond-courant-fond:var(--surface-1); --tuile:34px; --dir-total:row; --align-total:normal; --gap-total:0px; --taille-total:18px;
  --total-lab-taille:1em; --total-lab-poids:800; --total-lab-casse:none; --total-lab-couleur:var(--texte); --total-lab-espace:0;
  /* Lot 2a : anciennes valeurs de forme (boutons, champs, segmenté, en-tête, barre du bas). */
  --pad-btn:15px; --pad-compact:9px 14px; --haut-compact:auto; --taille-compact:13px; --poids-compact:700; --haut-lien:auto; --taille-lien:13px;
  --btn-sec-fond:var(--surface-1); --btn-sec-bord:var(--bord); --btn-danger-fond:var(--accent); --btn-danger-bord:var(--accent);
  --btn-dc-fond:var(--surface-1); --btn-dc-bord:var(--bord); --pression:none; --pad-duo:15px 10px; --taille-duo:14px;
  --champ-focus-ep:3px; --champ-focus-decal:2px;
  --rayon-seg:12px; --rayon-seg-pouce:10px; --haut-seg:auto; --pad-seg:3px; --taille-seg:13px;
  --seg-pouce-fond:var(--surface-1); --seg-pouce-texte:var(--texte); --seg-pouce-ombre:0 1px 2px rgba(0,0,0,.08);
  --seg-b-fond:var(--surface-1); --seg-b-texte:var(--bleu); --seg-r-fond:var(--surface-1); --seg-r-texte:var(--rouge);
  --entete-fond:var(--surface-1); --haut-entete:auto; --haut-nav:auto; --pad-nav:6px 12px; --rond-compte:30px; --taille-compte:13px;
  --menu-fond:var(--surface-1); --haut-sortir:auto; --fondu-bas:0px;
  --btn-danger-off-texte:var(--rouge); --haut-pay:auto; --align-pay:flex-start; --haut-retour:auto; --disp-retour:inline;
  /* Lot 2c : anciennes valeurs. */
  --contour-media:var(--contour-champ); --cerclage:var(--surface-1); --anneau-palette:var(--contour-champ); --fond-jeton:var(--surface-1); --fond-choix:var(--surface-1);
  --texte-carte-fichier:var(--texte); --texte-logo-p:var(--inactif-texte); --taille-logo-p:11px; --taille-logo-fichier:10px;
  --point-fond:var(--bleu); --point-bord:var(--surface-1); --taille-agrandir:40px;
  --fond-champ:#fff; --taille-h1-large:22px; --taille-h1-grand-large:30px; --interligne-h1:1.15; --espace-h1:-.3px; --taille-secondaire:14px; --taille-meta:13px; --chiffres:normal; --taille-nom-gala:1em; --taille-pied:12px; --aff-pied:inline; --pad-pied:0;
}
* { box-sizing:border-box; margin:0; padding:0; }
html { -webkit-text-size-adjust:100%; }
body { background:var(--fond); color:var(--texte); font-family:'Inter Variable', Inter, 'Segoe UI', Roboto, Arial, sans-serif;
       font-size:var(--taille-corps); line-height:1.5; }
main { max-width:480px; margin:0 auto; min-height:100vh; min-height:100dvh; padding:20px 16px 28px; display:flex; flex-direction:column; gap:14px; }
a { color:inherit; }
[hidden] { display:none !important; }

/* Textes */
.marque { font-weight:800; font-size:18px; letter-spacing:-.3px; text-decoration:none; }
.h1 { overflow-wrap:anywhere; font-size:var(--taille-h1); font-weight:800; letter-spacing:var(--espace-h1); line-height:var(--interligne-h1); }
.h1.grand { font-size:var(--taille-h1-grand); }
.h-sous { color:var(--doux); font-size:var(--taille-secondaire); line-height:1.4; }
.lab { font-size:var(--taille-lab); font-weight:600; color:var(--doux); margin-bottom:6px; display:block; }
.petit { font-size:var(--taille-petit); color:var(--doux); }
/* Lien dans le texte (F17, 24/11) : liens d'action en `primary`, soulignés, poids du texte qui l'entoure ; jamais un bouton. */
a.lien-texte { color:var(--accent); font-weight:inherit; text-decoration:underline; text-underline-offset:2px; }
a.lien-texte:focus-visible { outline:3px solid var(--focus); outline-offset:2px; border-radius:2px; }
.nom { font-weight:700; }
.retour { font-size:var(--taille-meta); color:var(--doux); text-decoration:none; background:none; border:0; cursor:pointer; font-family:inherit; padding:0; text-align:left;
  display:var(--disp-retour); align-items:center; min-height:var(--haut-retour); }
.centre { text-align:center; }
.mt-6 { margin-top:6px; }

/* Boutons */
.btn { display:block; width:100%; padding:var(--pad-btn); min-height:var(--haut-btn); border-radius:var(--rayon-btn); background:var(--accent); color:var(--sur-accent); font-weight:700; text-align:center;
       font-size:var(--taille-btn); text-decoration:none; border:1px solid var(--accent); cursor:pointer; font-family:inherit; transition:transform 80ms; }
.btn:active { transform:var(--pression); }
.btn.sec { background:var(--btn-sec-fond); color:var(--texte); border:1px solid var(--btn-sec-bord); }
.btn.lien { background:none; color:var(--doux); font-weight:500; padding:8px; min-height:var(--haut-lien); font-size:var(--taille-lien); border-color:transparent; }
.btn.lien:focus-visible { text-decoration:underline; }
/* Bouton qui ne mène nulle part : grisé, jamais noir (kest, 11/11). aria-disabled : reste touchable pour expliquer pourquoi. */
.btn[disabled], .btn[aria-disabled="true"] { background:var(--inactif); color:var(--inactif-texte); border-color:var(--inactif); box-shadow:none; opacity:1; cursor:not-allowed; }
/* Icônes (js/icones.js) */
.ico { width:20px; height:20px; flex:none; vertical-align:middle; }
.btn .ico { width:16px; height:16px; }
.btn:has(> .ico) { display:flex; align-items:center; justify-content:center; gap:8px; }
.pastille .ico { width:12px; height:12px; margin-right:4px; vertical-align:-2px; }
.pastille .ico:only-child { margin:0; }
.agrandir .ico { width:12px; height:12px; }
.pe-btn .ico { width:22px; height:22px; }
.btn:focus-visible, .seg button:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }
.champ:focus-visible { outline:var(--champ-focus-ep) solid var(--focus); outline-offset:var(--champ-focus-decal); }

/* Cartes, champs, pastilles */
.carte { background:var(--carte); border:1px solid var(--bord); border-radius:var(--rayon-carte); padding:var(--pad-carte); display:flex; flex-direction:column; gap:8px; box-shadow:var(--ombre); }
.bloc .carte { box-shadow:none; }   /* carte dans un bloc : le bloc porte déjà l'ombre */
.champ { display:block; width:100%; background:var(--fond-champ); border:1px solid var(--contour-champ); border-radius:12px; padding:12px 13px; min-height:var(--haut-champ); font-size:16px;
         font-family:inherit; color:var(--texte); }   /* 16 px : sinon iOS zoome au focus */
.champ::placeholder { color:var(--exemple); }
/* Champ non modifiable (ex. date d'un gala confirmé, F17) : grisé comme un bouton inactif (règle 11), jamais l'air d'un champ à remplir. */
.champ:disabled { background:var(--inactif); color:var(--inactif-texte); border-color:var(--inactif); cursor:not-allowed; opacity:1; -webkit-text-fill-color:var(--inactif-texte); }
/* Recherche par nom (F20, 24/11 ; js/recherche.js) : loupe à gauche en `doux`, bouton d'effacement à droite (cible 44 px). */
.liste-galas { display:flex; flex-direction:column; gap:12px; }
.recherche { position:relative; }
.recherche .champ { background:var(--surface-2); padding-left:44px; padding-right:48px; }
.recherche .champ::-webkit-search-cancel-button { -webkit-appearance:none; appearance:none; }
.recherche-ico { position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--doux); pointer-events:none; }
.recherche-effacer { position:absolute; right:2px; top:50%; transform:translateY(-50%); width:44px; height:44px; display:inline-flex; align-items:center;
                     justify-content:center; background:none; border:0; color:var(--doux); cursor:pointer; padding:0; box-shadow:none; min-height:0; }
.recherche-effacer:focus-visible { outline:2px solid var(--focus); outline-offset:-4px; border-radius:999px; }
.pastille { font-size:var(--taille-pastille); font-weight:var(--poids-pastille); padding:4px 9px; border-radius:999px; white-space:nowrap; display:inline-block; }
.p-bleu { background:var(--bleu-f); color:var(--bleu); } .p-rouge { background:var(--rouge-f); color:var(--rouge); }
.p-gris { background:var(--gris-f); color:var(--doux); } .p-ok { background:var(--ok-f); color:var(--ok); }
/* Alertes et blocages : toujours en rouge (kest, 11/11). L'ambre (--alerte) reste pour l'attente, ex. « Virement attendu ». */
.p-alerte { background:var(--rouge-f); color:var(--rouge); }
/* Attente (ambre) : « Virement attendu »… ; neutre : état sans enjeu */
.p-att { background:var(--attente-f); color:var(--attente); }
.p-neutre { background:var(--surface-3); color:var(--texte); }
.ligne { display:flex; align-items:center; gap:12px; }

/* Sélecteur segmenté (styles, démos) */
.seg { display:flex; background:var(--seg-fond); border-radius:var(--rayon-seg); padding:var(--pad-seg); min-height:var(--haut-seg); }
.seg button { flex:1; text-align:center; padding:9px 4px; border-radius:var(--rayon-seg-pouce); font-size:var(--taille-seg); font-weight:600; color:var(--doux);
              background:none; border:0; cursor:pointer; font-family:inherit; }
.seg button[aria-pressed="true"] { background:var(--seg-pouce-fond); color:var(--seg-pouce-texte); box-shadow:var(--seg-pouce-ombre); }

/* Barre d'étapes des assistants */

/* Vignette vidéo */
.video { width:100%; aspect-ratio:16/9; border-radius:14px; background:var(--fond-video); display:block; object-fit:cover; }

/* Messages */
.message { border-radius:12px; padding:11px 13px; font-size:13px; font-weight:600; }
.message.erreur { background:var(--rouge-f); color:var(--rouge); }
.message.ok { background:var(--ok-f); color:var(--ok); }
.message .petit { color:inherit; opacity:.8; font-weight:400; margin-top:4px; }

/* Structure : haut, corps, bas */
.haut { display:flex; flex-direction:column; gap:6px; }
.entete-site { position:sticky; top:0; z-index:20; background:var(--entete-fond); border-bottom:1px solid var(--bord); }
.entete-in { max-width:480px; margin:0 auto; min-height:var(--haut-entete); padding:10px 16px; display:flex; justify-content:space-between; align-items:center; gap:10px; }
.entete-droite { display:flex; align-items:center; gap:10px; }
.nav-galas { display:inline-flex; align-items:center; gap:6px; background:var(--gris-f); color:var(--texte); font-size:13px; font-weight:600;
             padding:var(--pad-nav); min-height:var(--haut-nav); border-radius:999px; text-decoration:none; }
.nav-galas .ico { width:16px; height:16px; }
.compte { position:relative; }
.compte-rond { list-style:none; cursor:pointer; width:var(--rond-compte); height:var(--rond-compte); border-radius:50%; background:var(--blanc-ui); color:var(--sur-accent); font-size:var(--taille-compte);
               font-weight:700; display:flex; align-items:center; justify-content:center; }
.compte-rond::-webkit-details-marker { display:none; }
.compte-menu { position:absolute; right:0; top:calc(var(--rond-compte) + 8px); min-width:220px; max-width:calc(100vw - 32px); background:var(--menu-fond); border:1px solid var(--bord);
               border-radius:12px; padding:10px; box-shadow:var(--ombre-menu); display:flex; flex-direction:column; gap:8px; }
.compte-mail { font-size:12px; color:var(--doux); overflow-wrap:anywhere; }
.compte-sortir { display:flex; align-items:center; gap:8px; background:none; border:0; font:inherit; font-weight:600; cursor:pointer; padding:6px 0; min-height:var(--haut-sortir); color:var(--texte); }
.retour-ico { display:inline-flex; align-items:center; gap:6px; }
.retour-ico .ico { width:16px; height:16px; }
.compte-rond:focus-visible, .nav-galas:focus-visible, .compte-sortir:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }
.entete { display:flex; justify-content:space-between; align-items:center; }
.corps { display:flex; flex-direction:column; gap:12px; flex:1; }
.bas { display:flex; flex-direction:column; gap:8px; margin-top:auto; padding-top:8px; }
/* Boutons du bas toujours visibles : barre collée au bas de l’écran (retour de kest au téléphone, 11/11) */
main > .bas { position:sticky; bottom:0; z-index:15; margin:auto -16px -28px; padding:10px 16px calc(12px + env(safe-area-inset-bottom));
              background:var(--fond); border-top:1px solid var(--bord); }
/* Fondu de 16 px au-dessus de la barre (0 dans les thèmes hérités) */
main > .bas::before { content:""; position:absolute; left:0; right:0; bottom:calc(100% + 1px); height:var(--fondu-bas); background:linear-gradient(transparent, var(--fond)); pointer-events:none; }
main > .bas:empty { display:none; }

/* Liste des galas */
.gala { text-decoration:none; flex-direction:row; align-items:center; justify-content:space-between; }
.gala .nom { overflow-wrap:anywhere; font-size:var(--taille-nom-gala); }   /* titre-carte 17/700 (DESIGN.md) */

/* Gala : champs côte à côte, logo */
.deux { display:flex; gap:8px; } .deux > div { flex:1; min-width:0; }
.entre { justify-content:space-between; margin:8px 0 6px; }
.btn.compact { width:auto; padding:var(--pad-compact); min-height:var(--haut-compact); font-size:var(--taille-compact); font-weight:var(--poids-compact); }
.grandlogo { background:var(--plaque-logo); border:1px dashed var(--contour-media); border-radius:14px; min-height:120px; display:flex; align-items:center; justify-content:center; padding:12px; }
.carte-fichier { display:flex; align-items:center; justify-content:center; text-align:center; padding:8px; border-radius:10px; background:var(--plaque-logo); color:var(--texte-carte-fichier); font-size:13px; line-height:1.3; word-break:break-all; }
.grandlogo .carte-fichier { width:100%; min-height:96px; }
.logo-p.carte-fichier { font-size:var(--taille-logo-fichier); overflow:hidden; }
.grandlogo img { max-width:100%; max-height:160px; object-fit:contain; display:block; }

/* Styles : vignettes à choisir (la démo se joue au toucher) et duos de couleurs */
/* Au plus 3 cartes par ligne (5 styles d'entrée : 3 + 2 centrées) : même taille de vignette dans tous les groupes */
.choix-liste { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.choix { flex:0 0 calc((100% - 16px) / 3); min-width:0; background:var(--fond-choix); border:2px solid var(--bord); border-radius:14px; padding:4px; cursor:pointer; font-family:inherit; color:var(--texte); text-align:left; }
.choix:focus-visible, .palettes button:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }
.choix[aria-pressed="true"] { border-color:var(--accent); }
.choix[disabled], .palettes button[disabled] { cursor:default; opacity:.6; }
.vignette { position:relative; aspect-ratio:16/9; border-radius:10px; overflow:hidden; background:var(--fond-video); display:flex; align-items:center; justify-content:center; }
.vignette video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.vignette .lecture { position:absolute; left:4px; bottom:4px; width:22px; height:22px; padding-left:2px; box-sizing:border-box; border-radius:50%; background:rgba(0,0,0,.78); display:flex; align-items:center; justify-content:center; color:var(--sur-video); font-size:10px; line-height:1; }
.vignette .lecture .ico { width:11px; height:11px; fill:currentColor; }
.vignette.joue .lecture { display:none; }
.vignette.sans-demo { background:var(--gris-f); color:var(--doux); font-size:12px; font-weight:600; text-align:center; padding:6px; }
.legende { font-size:13px; font-weight:700; padding:7px 4px 3px; }
/* Carte avec démo : bouton d'agrandissement posé sur le coin de la vignette, ouvre l'aperçu en plein écran */
.choix-bloc { position:relative; flex:0 0 calc((100% - 16px) / 3); min-width:0; display:flex; }
.choix-bloc .choix { flex:1 1 auto; }
/* Zone de toucher 44 px (40 en clair), disque dessiné 22 px dans le coin de la vignette, comme le bouton de lecture */
.agrandir { position:absolute; top:1px; right:1px; width:var(--taille-agrandir); height:var(--taille-agrandir); border-radius:50%; border:0; background:radial-gradient(circle at center, rgba(0,0,0,.78) 10.5px, transparent 11px); color:var(--sur-video);
            font-size:12px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; padding:0; }
.agrandir:focus-visible { outline:3px solid var(--sur-video); outline-offset:1px; }
.plein-ecran { width:100vw; max-width:100vw; height:100vh; height:100dvh; max-height:none; margin:0; padding:16px; border:0; background:var(--plein-ecran); color:var(--sur-video);
               flex-direction:column; justify-content:center; gap:14px; overscroll-behavior:contain; }
.plein-ecran[open] { display:flex; }
.plein-ecran::backdrop { background:var(--plein-ecran); }
.pe-haut { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.pe-titre { font-size:14px; font-weight:700; margin:0; }
.pe-btn { width:44px; height:44px; flex:0 0 44px; border-radius:50%; border:0; background:rgba(255,255,255,.16); color:var(--sur-video); font-size:26px; line-height:1;
          cursor:pointer; display:flex; align-items:center; justify-content:center; padding:0; font-family:inherit; }
.pe-btn:focus-visible { outline:3px solid var(--sur-video); outline-offset:2px; }
.pe-scene { position:relative; display:flex; align-items:center; }
.pe-scene video { width:100%; aspect-ratio:16/9; background:var(--plein-ecran); border-radius:10px; display:block; object-fit:contain; }
.pe-nav { position:absolute; top:50%; transform:translateY(-50%); background:rgba(0,0,0,.45); }
#pe-avant { left:6px; } #pe-apres { right:6px; }
.pe-aide { font-size:12px; color:var(--doux-sur-video); text-align:center; margin:0; }
.plein-ecran .btn { background:var(--sur-video); color:var(--texte-sur-video); border-color:var(--sur-video); }
.plein-ecran .btn[disabled] { opacity:.7; cursor:default; }
.palettes { display:flex; flex-wrap:wrap; gap:12px; }
.palettes button { width:44px; height:44px; border-radius:50%; border:3px solid var(--cerclage); box-shadow:0 0 0 1px var(--anneau-palette); padding:0; cursor:pointer; transform:rotate(45deg);
                   background:linear-gradient(90deg, var(--c1) 50%, var(--c2) 50%); }
.palettes button[aria-pressed="true"] { box-shadow:0 0 0 3px var(--accent); }

/* Boxeurs : liste, pastille ronde, fiche */
.rond { width:48px; height:48px; border-radius:50%; object-fit:cover; flex:0 0 auto; background:var(--gris-f); }
.initiales { display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:15px; color:var(--doux); }
.boxeur { text-decoration:none; padding:10px; flex-direction:row; align-items:center; gap:12px; color:inherit; }
.boxeur .texte { flex:1; min-width:0; }
.boxeur .nom, .boxeur .petit { overflow-wrap:anywhere; }
/* NOM toujours en majuscules à l'affichage, même pour une fiche créée ailleurs (administration) */
.nf { text-transform:uppercase; }
.boxeur:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }
.photo-fiche { display:flex; flex-direction:column; align-items:center; gap:8px; }
.photo-fiche .grand { width:112px; height:112px; border-radius:50%; object-fit:cover; border:3px solid var(--cerclage); box-shadow:0 0 0 1px var(--contour-media); background:var(--gris-f); display:flex; align-items:center; justify-content:center; color:var(--doux); font-size:12px; text-align:center; }
.photo-fiche .grand img { width:100%; height:100%; border-radius:50%; object-fit:cover; display:block; }
.seg button[aria-pressed="true"].b { background:var(--seg-b-fond); color:var(--seg-b-texte); } .seg button[aria-pressed="true"].r { background:var(--seg-r-fond); color:var(--seg-r-texte); }
.seg button[disabled] { cursor:default; opacity:.6; }
.btn.danger { background:var(--btn-danger-fond); border-color:var(--btn-danger-bord); color:var(--rouge); }

/* Vos boxeurs : trois colonnes (bleu | à placer | rouge), chacune défile */
/* La page tient dans l’écran EN-TÊTE COMPRIS : l’en-tête collé est hors de <main> */
/* Correctif après mise en ligne (15/11) : en sombre, en-tête, titre et pied plus hauts écrasaient les colonnes (~70 px à 360x800).
   Le pied (liens juridiques, cibles de 44 px) passe sous le pli : la page ne défile que de sa hauteur, l'écran reste aux colonnes. */
body.coins { height:100vh; height:100dvh; display:flex; flex-direction:column; position:relative; }
body.coins > #entete { flex:0 0 auto; }
body.coins > #pied { position:absolute; top:100%; left:0; right:0; }
body.coins main { flex:1 1 auto; width:100%; min-height:0; height:auto; padding-top:12px; gap:10px; }
body.coins .haut { gap:4px; }
body.coins .h1 { font-size:22px; }
body.coins .etapes-rondes { margin-top:6px; }
body.coins .aide-etapes { display:none; }
body.coins .corps { min-height:0; padding:0; gap:8px; }
/* Une seule rangée bornée à la hauteur disponible : une carte ne sort jamais de sa colonne, la liste défile dedans */
.cols { display:grid; grid-template-columns:1fr 1fr 1fr; grid-template-rows:minmax(0, 1fr); gap:6px; flex:1; min-height:0; }
.col { border-radius:14px; padding:8px 5px; display:flex; flex-direction:column; gap:6px; min-height:0; overflow:hidden; }
.col.b { background:var(--bleu-f); } .col.g { background:var(--col-a-placer); outline:1px dashed var(--pointille); outline-offset:-1px; }   /* se détache du fond --fond (11/11) */ .col.r { background:var(--rouge-f); }
.col h2 { font-size:11px; text-align:center; text-transform:uppercase; letter-spacing:.6px; flex:0 0 auto; }
.col.b h2 { color:var(--bleu); } .col.g h2 { color:var(--doux); } .col.r h2 { color:var(--rouge); }
.col .liste { flex:1; min-height:80px; overflow-y:auto; display:flex; flex-direction:column; gap:6px; overscroll-behavior:contain; scrollbar-width:thin; -webkit-overflow-scrolling:touch; }
.jeton { background:var(--fond-jeton); border-radius:10px; padding:6px 4px; text-align:center; cursor:grab; flex:0 0 auto; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; touch-action:pan-y; }
.jeton .rond { width:34px; height:34px; display:block; margin:0 auto 3px; font-size:12px; }
.jeton .initiales { display:flex; }
.jeton .n { font-size:11px; font-weight:700; line-height:1.15; overflow-wrap:anywhere; }
.jeton .t { font-size:9.5px; color:var(--doux); overflow-wrap:anywhere; }
.jeton:focus-visible { outline:3px solid var(--focus); outline-offset:1px; }
.jeton.fantome { opacity:.4; }
.jeton.tient { transform:rotate(-4deg) scale(1.06); box-shadow:0 10px 18px var(--voile); }   /* seule ombre gardée (DESIGN.md) */
.lecture-seule .jeton { cursor:pointer; }
.remarque { font-size:12px; color:var(--doux); text-align:center; line-height:1.4; }

@media (min-width:640px) {
  main { padding-top:40px; }
  .h1 { font-size:var(--taille-h1-large); }
  .h1.grand { font-size:var(--taille-h1-grand-large); }
}
@media (prefers-reduced-motion:reduce) { * { scroll-behavior:auto !important; } .btn { transition:none; } .btn:active { transform:none; } }

/* Partenaires et récapitulatif */
.colonne { display:flex; flex-direction:column; gap:6px; align-items:flex-start; min-width:0; }
.logo-p { width:64px; height:64px; border-radius:12px; background:var(--plaque-logo); border:1px solid var(--contour-media); object-fit:contain; flex:0 0 auto; padding:4px;
          display:flex; align-items:center; justify-content:center; font-size:var(--taille-logo-p); font-weight:800; color:var(--texte-logo-p); }
.partenaire { padding:10px; flex-direction:row; align-items:center; gap:12px; }
.partenaire .texte { flex:1 1 calc(100% - 80px); min-width:0; overflow-wrap:anywhere; }   /* toute la ligne à droite du logo (64 + 12) : nom et badge entiers */
.partenaire .btn { width:auto; flex:0 0 auto; }
.sep { height:1px; background:var(--surface-3); }
.total { display:flex; flex-direction:var(--dir-total); align-items:var(--align-total); gap:var(--gap-total); justify-content:space-between; font-weight:800; font-size:var(--taille-total); line-height:var(--lh-total); }
.total > :first-child { font-size:var(--total-lab-taille); font-weight:var(--total-lab-poids); text-transform:var(--total-lab-casse); letter-spacing:var(--total-lab-espace); color:var(--total-lab-couleur); }
#lignes .ligne { align-self:stretch; justify-content:space-between; }
#lignes .ligne > :first-child { flex:1 1 auto; min-width:0; }   /* le libellé prend la place restante et passe à la ligne */
#lignes .ligne > .petit { flex:0 0 auto; white-space:nowrap; }   /* le détail (« Modèle 1 ») ne se coupe jamais */   /* détail calé à droite (le total, lui, est empilé à gauche en sombre : libellé en surtitre, montant dessous) */
.btn.danger.compact { border:1px solid var(--btn-dc-bord); background:var(--btn-dc-fond); }
.btn.danger[disabled], .btn.danger[aria-disabled="true"] { background:var(--inactif); border-color:var(--inactif); color:var(--btn-danger-off-texte); }
/* Bouton d'action dans un message (ex. « Choisir dans les fichiers ») */
.message .action-message { display:block; margin-top:10px; }

/* Lot 2 : préparation des photos et des logos par le serveur */
/* Animation de chargement (CSS seule) : un anneau qui tourne autour d'une silhouette qui respire, à la place de la photo */
.prep-anim { position:relative; background:var(--gris-f); overflow:hidden; }
.prep-anim::before { content:''; position:absolute; inset:0; border-radius:inherit; border:3px solid transparent;
                     border-top-color:var(--blanc-ui); border-right-color:var(--blanc-ui); animation:prep-tour 1s linear infinite; }
.prep-anim::after { content:''; position:absolute; left:50%; top:50%; width:44%; height:56%; transform:translate(-50%, -42%);
                    background:radial-gradient(circle at 50% 22%, var(--silhouette) 0 21%, transparent 22%),
                               radial-gradient(ellipse at 50% 100%, var(--silhouette) 0 48%, transparent 49%);
                    animation:prep-souffle 1.6s ease-in-out infinite; }
.photo-fiche .grand.prep-anim { border-radius:50%; }
.grandlogo .prep-anim, .logo-p.prep-anim { width:96px; height:96px; border-radius:50%; }
.logo-p.prep-anim { width:64px; height:64px; border:1px solid var(--contour-media); padding:0; }
.grandlogo .prep-anim::after, .logo-p.prep-anim::after { width:46%; height:46%; transform:translate(-50%, -50%);
                    background:var(--silhouette); border-radius:8px; }
@keyframes prep-tour { to { transform:rotate(360deg); } }
@keyframes prep-souffle { 0%, 100% { opacity:.55; } 50% { opacity:1; } }
@media (prefers-reduced-motion:reduce) { .prep-anim::before { animation-duration:3s; } .prep-anim::after { animation:none; } }
.pastille.long { white-space:normal; text-align:center; line-height:1.4; max-width:100%; padding:6px 11px; }
.prep-long { text-align:center; }
.photo-fiche .grand img.detoure { object-fit:cover; object-position:center top; }

/* Alertes de préparation, « garder quand même », toucher le boxeur */
.prep-alerte { align-self:stretch; background:var(--rouge-f); color:var(--alerte-texte); border:var(--ep-alerte) solid var(--bord-alerte); border-radius:12px; padding:11px 13px;
               display:flex; flex-direction:column; gap:8px; font-size:13px; }
.prep-alerte .alertes { list-style:none; display:flex; flex-direction:column; gap:4px; font-weight:600; }
.garder { display:flex; align-items:center; gap:10px; font-weight:600; color:var(--texte); cursor:pointer; min-height:44px; }
.garder input { width:22px; height:22px; flex:0 0 auto; accent-color:var(--accent); }
.toucher { align-self:stretch; display:flex; flex-direction:column; gap:6px; }
/* Réparation automatique de la photo (kest, 14/11) : bouton, avant / après, choix. Un échec s'affiche en rouge. */
.reparation { align-self:stretch; display:flex; flex-direction:column; gap:8px; }
.reparation-choix { display:flex; flex-direction:column; gap:10px; }
.reparation-duo { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.reparation-duo figure { margin:0; display:flex; flex-direction:column; gap:4px; min-width:0; }
.reparation-duo .valider-cadre img { max-height:50vh; max-height:50dvh; }
.toucher .nom { text-align:center; }
.toucher-zone { position:relative; align-self:center; max-width:100%; line-height:0; cursor:crosshair; touch-action:manipulation; }
.toucher-zone img { display:block; max-width:100%; max-height:70vh; max-height:70dvh; width:auto; height:auto; border-radius:12px;
                    image-orientation:from-image; }
.toucher-point { position:absolute; width:26px; height:26px; margin:-13px 0 0 -13px; border-radius:50%; border:3px solid var(--point-bord);
                 background:var(--point-fond); box-shadow:0 0 0 2px var(--point-fond), 0 2px 6px rgba(0,0,0,.35); pointer-events:none; }

/* Liste des boxeurs : état de la photo sur la carte */
.jeton .pastille { font-size:9px; padding:2px 6px; margin-top:3px; white-space:normal; }
/* Partenaires : état du logo sous le nom */
.partenaire { flex-wrap:wrap; }
.partenaire .pastille { margin-top:4px; max-width:100%; white-space:normal; }
/* Correctif après mise en ligne (15/11) : « Retirer » ne recouvre plus le badge ; il passe sur la ligne des actions, à droite de
   « Remplacer le logo » (ou dessous, à droite, quand une alerte ou le choix du fond prend toute la largeur). */
.partenaire > .btn.danger { order:2; margin-left:auto; }
.partenaire .details-logo:has(> :not(.remplacer)) { flex-basis:100%; }
.partenaire .details-logo { order:1; flex:1 1 auto; display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.partenaire .details-logo:empty { display:none; }
.partenaire .details-logo .prep-alerte { align-self:stretch; }
/* Récapitulatif fermé : ce qui reste à voir */
.a-voir { list-style:none; display:flex; flex-direction:column; gap:6px; }
.a-voir li { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.a-voir a { font-weight:600; overflow-wrap:anywhere; }
/* carte de partenaire atteinte depuis « À voir » : brève mise en évidence */
.partenaire.surligne { animation:surligne 1.6s ease-out; }
@keyframes surligne { 0%, 40% { box-shadow:0 0 0 3px var(--blanc-ui); } 100% { box-shadow:0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .partenaire.surligne { animation:none; outline:3px solid var(--blanc-ui); } }
/* Vignette détourée dans le message « X est enregistré. Au suivant. » */
.message .vignette-ok { display:block; width:120px; height:160px; border-radius:12px; object-fit:contain; background:var(--surface-1); margin-top:8px; }
.ligne.entre { flex-wrap:wrap; }

/* Validation du détourage (boxeur isolé après le toucher) : le boxeur en grand sur un damier, bords visibles */
.valider { align-self:stretch; display:flex; flex-direction:column; gap:10px; }
.valider-titre { font-size:18px; font-weight:800; text-align:center; letter-spacing:-.2px; }
.valider-cadre { border-radius:14px; border:1px solid var(--bord); overflow:hidden; display:flex; justify-content:center;
                 max-height:70vh; max-height:70dvh;
                 background-color:var(--damier-1); background-image:linear-gradient(45deg, var(--damier-2) 25%, transparent 25%, transparent 75%, var(--damier-2) 75%),
                   linear-gradient(45deg, var(--damier-2) 25%, transparent 25%, transparent 75%, var(--damier-2) 75%);
                 background-size:20px 20px; background-position:0 0, 10px 10px; }
.valider-cadre img { display:block; width:100%; max-height:70vh; max-height:70dvh; object-fit:contain; }

/* Avec le fond / sans le fond : les deux versions du logo côte à côte, sur fond sombre ; un damier derrière la version sans
   fond montre qu'elle est transparente. Toute la carte est le bouton (grande surface au doigt). */
.fond-choix { align-self:stretch; display:flex; flex-direction:column; }
.fond-choix-contenu { display:flex; flex-direction:column; gap:12px; }
.fond-aide, .fond-indice { text-align:center; }
.fond-paire { display:flex; gap:10px; }
.fond-version { flex:1 1 0; min-width:0; display:flex; flex-direction:column; gap:8px; padding:6px; background:var(--fond-choix); color:var(--texte);
                border:2px solid var(--bord); border-radius:14px; cursor:pointer; font-family:inherit; }
.fond-version[aria-pressed="true"] { border-color:var(--accent); box-shadow:0 0 0 2px var(--accent); }
.fond-version:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }
.fond-version:disabled { cursor:default; opacity:.75; }
.fond-cadre { display:flex; align-items:center; justify-content:center; aspect-ratio:1; padding:10px; overflow:hidden; border-radius:9px; background:var(--plein-ecran); }
/* R19 (essai du 17/11) : damier gris clair / gris façon Photoshop derrière un logo sans fond, partout où l'organisateur le voit
   (écran du choix, aperçu du logo du gala, nouveau logo en attente, vignette des partenaires). */
.fond-version.sans .fond-cadre { background:repeating-conic-gradient(var(--damier-logo-1) 0% 25%, var(--damier-logo-2) 0% 50%) 50% / 16px 16px; }
.damier-logo, .grandlogo.damier-logo, .logo-p.damier-logo { background:repeating-conic-gradient(var(--damier-logo-1) 0% 25%, var(--damier-logo-2) 0% 50%) 50% / 16px 16px; }
.fond-cadre img { display:block; width:100%; height:100%; object-fit:contain; }
.fond-libelle { font-weight:700; font-size:14px; text-align:center; padding-bottom:2px; }
.fond-libelle .ico { width:14px; height:14px; margin-right:4px; vertical-align:-2px; }
.rouvrable { cursor:pointer; }
.rouvrable:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }
/* « À voir » : risque logo + style, l'organisateur voit son logo, la démo, et choisit */
.a-voir li.risque { display:block; padding:12px 0; border-top:1px solid var(--bord); }
.a-voir li.risque .petit { margin-top:4px; }
.risque-visuels { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; margin-top:10px; }
.risque-cadre { min-width:0; margin:0; }
.risque-image { display:flex; align-items:center; justify-content:center; aspect-ratio:16/9; overflow:hidden; padding:6px; border-radius:9px; background:var(--plaque-risque); }
.risque-image.sans-demo { background:var(--gris-f); color:var(--doux); font-size:12px; font-weight:600; text-align:center; }
.risque-image img { display:block; width:100%; height:100%; object-fit:contain; }
.risque-image video { display:block; width:100%; height:100%; object-fit:contain; }
.risque-image:has(video) { padding:0; background:var(--plein-ecran); }
.risque-cadre figcaption { margin-top:4px; }
.risque-choix { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.a-voir .risque-choix .btn { flex:1 1 150px; font-weight:700; }

/* Écran de paiement (lot 3) */
.pay-titre { font-size:17px; font-weight:800; }
.pay-texte { font-size:14px; line-height:1.4; }
.pay-iban { display:grid; grid-template-columns:auto 1fr; gap:6px 12px; margin:0; font-size:14px; }
.pay-iban dt { font-weight:700; color:var(--doux); }
.pay-iban dd { margin:0; font-family:ui-monospace,Consolas,monospace; overflow-wrap:anywhere; user-select:all; }
#pay-form { display:flex; flex-direction:column; gap:10px; }
.pay-champ { min-width:0; }
.pay-erreur { color:var(--rouge); font-weight:600; margin-top:4px; }
.pay-case { display:flex; gap:10px; align-items:var(--align-pay); min-height:var(--haut-pay); font-size:14px; line-height:1.35; }
.pay-case input { width:22px; height:22px; flex:0 0 auto; margin-top:1px; accent-color:var(--accent); }
.message.info { background:var(--info-f); color:var(--info-texte); }   /* sombre : --info-f = surface-2, --info-texte = texte (neutre, pas d'indigo) */
/* Option B (kest, 16/11) : gala payé ou virement attendu → bloc « Paiement » en tête, teinté (vert « fait » ou ambre « attente »),
   état en grand, détail de ce qui a été payé (règle 14), production ; le total du pack devient sobre (16 px). */
.etat-bloc.ok { background:var(--ok-f); } .etat-bloc.att { background:var(--attente-f); }
.etat-grand { display:flex; align-items:center; gap:10px; font-size:24px; font-weight:800; line-height:1.1; white-space:nowrap; }
.etat-grand .ico { width:28px; height:28px; }
.etat-grand.ok { color:var(--ok); } .etat-grand.att { color:var(--attente); }
.detail-paye { display:flex; flex-direction:column; gap:6px; font-size:var(--taille-secondaire); }
.detail-paye .ligne { justify-content:space-between; align-items:baseline; }
.detail-paye .ligne > :last-child { white-space:nowrap; font-weight:600; font-variant-numeric:var(--chiffres); }
.detail-paye .calc { color:var(--doux); font-size:var(--taille-meta); }
/* R15 (19/11) : supplément à régler monté dans le bloc Paiement de la page Pack (supplement.js, option integre). */
.pay-supplement { display:flex; flex-direction:column; gap:10px; }
.supplement-integre { display:flex; flex-direction:column; gap:10px; padding-top:12px; border-top:1px solid var(--surface-3); }
.supplement-integre > .nom { margin:0; font-size:inherit; color:var(--attente); }
.supplement-corps { display:flex; flex-direction:column; gap:10px; }
.pay-prod { display:flex; flex-direction:column; gap:10px; }
.pay-prod .btn { align-self:flex-start; }   /* bouton compact : à sa largeur, pas étiré par la colonne */
.prod-ligne { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.total-sobre { display:flex; justify-content:space-between; align-items:baseline; gap:12px; font-weight:700; font-size:16px; font-variant-numeric:var(--chiffres); }
.total-sobre > :first-child { color:var(--doux); font-weight:600; font-size:var(--taille-petit); }
/* P2 (25/11) : « soit 500 € HT + 100 € de TVA » sous un total TTC (texte secondaire, passe à la ligne à 360 px). */
.total-detail { font-variant-numeric:var(--chiffres); overflow-wrap:anywhere; }

/* Page du gala : parties, bandeau */
#retour { align-self:flex-start; }
.parties { list-style:none; display:flex; flex-direction:column; gap:8px; }
.partie { display:flex; align-items:center; gap:12px; background:var(--carte); border:1px solid var(--bord); border-radius:var(--rayon-carte); padding:12px 14px; text-decoration:none; color:var(--texte); min-height:60px; }
a.partie:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }
.partie.inactive { opacity:.6; }
.tuile { width:var(--tuile); height:var(--tuile); border-radius:10px; background:var(--gris-f); display:flex; align-items:center; justify-content:center; flex:none; }
.partie-texte { flex:1; min-width:0; display:flex; flex-direction:column; }
.partie-nom { font-weight:700; }
.partie-texte .petit { overflow-wrap:anywhere; }
.partie .chevron { width:18px; height:18px; color:var(--doux); }
.jauge { display:flex; gap:5px; margin-top:10px; }
.jauge-seg { flex:1; height:10px; border-radius:999px; box-sizing:border-box; }
.jauge-seg.faite { background:var(--jauge-faite); }
.jauge-seg.courante { background:var(--blanc-ui); }
.jauge-seg.a-venir { border:1.5px solid color-mix(in srgb, var(--doux) 70%, transparent); }
.bandeau { border-radius:12px; padding:11px 13px; font-size:13px; font-weight:600; line-height:1.4; }
.b-att { background:var(--attente-f); color:var(--attente); }
.b-gris { background:var(--gris-f); color:var(--doux); }
.b-danger { background:var(--rouge-f); color:var(--rouge); }

/* Barre d'étapes : ronds reliés, cliquables (noir + coche = faite, cerclé = courante, gris + numéro = à venir) */
.etapes-rondes { margin-top:10px; }
.etapes-rondes ol { list-style:none; display:flex; margin:var(--marge-etapes); padding:0; }
.etapes-rondes li { flex:1 1 0; min-width:0; position:relative; }
.etapes-rondes li + li::before { content:''; position:absolute; top:22px; right:50%; width:100%; height:2px; background:var(--bord); }
.etapes-rondes li:has(.faite) + li::before { background:var(--accent); }
.etape { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:4px; min-height:44px; padding:4px 0 2px; text-decoration:none; color:var(--doux); }
.etape .rond { width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700;
               background:var(--inactif); color:var(--doux); box-sizing:border-box; margin-top:3px; }
.etape .rond .ico { width:16px; height:16px; }
.etape-nom { font-size:var(--taille-etape-nom); letter-spacing:var(--espace-etape-nom); font-weight:600; line-height:1.2; text-align:center; max-width:100%; }
.etape.faite .rond { background:var(--accent); color:var(--sur-accent); }
.etape.faite .etape-nom { color:var(--texte); text-decoration:underline; text-underline-offset:2px; }
span.etape.faite .etape-nom { text-decoration:none; }   /* faite mais pas cliquable (pack bloqué) : pas l'air d'un lien */
/* Étape suivante cliquable : rond cerclé en pointillés, libellé non souligné (validé par kest) : elle ne ressemble ni aux étapes à venir inertes ni à l'étape courante (halo, gras) */
a.etape.future .rond { background:var(--rond-courant-fond); color:var(--accent); border:2px dashed var(--accent); }
a.etape.future .etape-nom { color:var(--texte); }
.etape.courante .rond { background:var(--rond-courant-fond); color:var(--blanc-ui); border:2px solid var(--blanc-ui); box-shadow:var(--halo); }
.etape.courante .etape-nom { color:var(--texte); font-weight:800; }
a.etape:focus-visible { outline:3px solid var(--focus); outline-offset:2px; border-radius:10px; }
.aide-etapes { display:flex; align-items:center; justify-content:center; gap:4px; margin-top:6px; }
.aide-etapes .ico { width:14px; height:14px; }
/* R6 (17/11) : 6 ronds (Production en plus) sur un téléphone de 360 px = 57 px par rond ; « Partenaires » et « Production » n'y tiennent
   en 12 px que de justesse : 11 px (valeur du jeton dans le thème clair) sous 400 px de large. */
@media (max-width:400px) { .etapes-rondes { --taille-etape-nom:11px; } }
.duo { display:flex; gap:8px; }
.duo .btn { width:auto; display:flex; align-items:center; justify-content:center; gap:6px; }
.duo #precedent { flex:0 0 42%; }
.duo #suivant { flex:1 1 0; }
.duo .ico, #precedent .ico, #suivant .ico { width:16px; height:16px; }
#precedent { display:flex; align-items:center; justify-content:center; gap:6px; }
.duo .btn { padding:var(--pad-duo); font-size:var(--taille-duo); }
.duo:has(#suivant[hidden]) #precedent { flex:1 1 100%; }
/* Icônes posées par poserIcones (span data-icone) : même alignement que celles posées directement */
[data-icone] { display:inline-flex; }
.btn:has([data-icone]) { display:flex; align-items:center; justify-content:center; gap:8px; }
.retour:has(.ico) { display:inline-flex; align-items:center; gap:6px; }
.retour .ico { width:16px; height:16px; }

/* Liste « À voir avant le récapitulatif » : un blocage, donc en rouge */
.carte.alerte-liste { background:var(--rouge-f); border-color:var(--bord-alerte); }
.alerte-liste > .nom { color:var(--rouge); }
.alerte-liste > .petit { color:var(--alerte-texte); opacity:.85; }

/* Catégories d'une page : carte blanche + bandeau NOIR numéroté (rond blanc, chiffre noir), contour 0,5 px gris à peine
   plus foncé que le fond (choix de kest, 11/11 : option B puis variante C), sur toutes les pages */
.bloc { background:var(--surface-1); border:var(--ep-bloc) solid var(--bord); border-radius:var(--rayon-carte); overflow:hidden; flex:0 0 auto; box-shadow:var(--ombre); }
.bloc-titre { display:flex; align-items:center; gap:8px; margin:0; padding:10px 14px; background:var(--bandeau); border-bottom:1px solid var(--bandeau);
              font-size:var(--taille-bloc-titre); font-weight:800; line-height:1.25; color:var(--sur-bandeau); text-transform:none; letter-spacing:0; }
.bloc-num { width:var(--taille-num-bloc); height:var(--taille-num-bloc); flex:0 0 var(--taille-num-bloc); border-radius:50%; background:var(--num-fond); color:var(--num-texte); font-size:12px; font-weight:700;
            display:flex; align-items:center; justify-content:center; }
.bloc-corps { padding:var(--pad-bloc-corps); display:flex; flex-direction:column; gap:var(--gap-bloc); }

/* Confirmation des styles : fenêtre qui monte du bas (choix B de kest, 11/11) */
dialog.feuille { margin:auto auto 0; width:100%; max-width:480px; max-height:92dvh; overflow-y:auto; border:0; border-radius:var(--rayon-feuille) var(--rayon-feuille) 0 0;
                 padding:16px 16px calc(16px + env(safe-area-inset-bottom)); background:var(--surface-1); color:var(--texte); }
dialog.feuille::backdrop { background:var(--voile); }
dialog.feuille[open] { display:flex; flex-direction:column; gap:12px; }
.feuille .h1 { font-size:var(--taille-feuille-titre); }
.conf-grille { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.conf-case { display:flex; flex-direction:column; gap:4px; min-width:0; }
.conf-case img, .conf-case video, .conf-case .conf-vide { width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:10px; display:block; background:var(--fond-video); }
.conf-case .conf-vide { display:flex; align-items:center; justify-content:center; color:var(--sur-video); font-size:12px; }
.conf-case .conf-lab { font-size:var(--taille-conf-lab); font-weight:700; color:var(--doux); text-transform:uppercase; letter-spacing:.4px; }
.conf-case .conf-nom { font-size:14px; font-weight:800; overflow-wrap:anywhere; }
.conf-couleurs { width:100%; aspect-ratio:16/9; border-radius:10px; background:var(--gris-f); display:flex; align-items:center; justify-content:center; }
.conf-couleurs span { width:56px; height:56px; border-radius:50%; border:3px solid var(--cerclage); box-shadow:0 0 0 1px var(--anneau-palette); transform:rotate(45deg);
                      background:linear-gradient(90deg, var(--c1) 50%, var(--c2) 50%); }
.feuille .duo .btn { flex:1 1 0; }
/* Fiche boxeur : barre du bas réduite à Précédent + Enregistrer ; actions secondaires sous la fiche */
.duo #enregistrer { flex:1 1 0; }
.actions-fiche { display:flex; flex-direction:column; gap:4px; }

/* Lot 4, tâche 10 : suivi de la production, vidéos livrées, aperçu, supplément */
.barre { height:12px; border-radius:999px; background:var(--gris-f); overflow:hidden; }
.ligne-avancement { display:flex; justify-content:space-between; gap:8px; margin-top:8px; }
.barre.barre-video { height:8px; margin-top:4px; }
.barre span { display:block; height:100%; width:0; background:var(--ok); border-radius:999px; transition:width .4s ease; }
.avancement { display:flex; justify-content:space-between; gap:8px; }
.videos { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:0; }   /* liste dans un bloc : séparateurs seuls (DESIGN.md), le bloc porte déjà le fond */
.video-ligne { display:flex; flex-direction:column; gap:8px; padding:12px 0; border-bottom:1px solid var(--bord); }
.video-ligne:last-child { border-bottom:0; }
.video-haut { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.video-haut .nom { min-width:0; overflow-wrap:anywhere; }
.video-actions .btn { flex:1 1 0; }
/* G7 (essai du 29/11) : lecteur de chaque vidéo prête dans la liste, et pagination du lecteur en grand (sous la vidéo, comme l'admin). */
.lecteur-livre { display:flex; flex-direction:column; gap:6px; }
.video-livree { object-fit:contain; border-radius:10px; }
.erreur-lecture { color:var(--rouge); }
.pe-pagination { align-items:center; }
.pe-pagination .btn { flex:1 1 0; background:rgba(255,255,255,.16); color:var(--sur-video); border-color:transparent; }
.pe-pagination .btn[disabled] { opacity:.35; }
.pe-compteur { flex:0 0 auto; min-width:56px; text-align:center; font-size:14px; font-weight:700; font-variant-numeric:tabular-nums; color:var(--sur-video); }
#lecture-erreur { color:var(--rouge); }
.besoin-texte { background:var(--rouge-f); color:var(--alerte-texte); border:var(--ep-alerte) solid var(--bord-alerte); border-radius:12px; padding:11px 13px; display:flex; flex-direction:column; gap:6px; }
.besoin-texte .nom { color:var(--rouge); }
.besoin-texte .petit { color:var(--alerte-texte); }
.besoin-texte .btn { align-self:flex-start; width:auto; }
.ligne-quota { font-weight:600; }
.attente-logo { background:var(--alerte-f); border-color:var(--bord-attente); }
.attente-logo .btn { align-self:flex-start; width:auto; }
/* R22 : nouveau logo d'un gala payé en attente de paiement (page Gala), sous le logo actuel. */
.logo-attente { display:flex; flex-direction:column; gap:10px; }
.logo-attente .grandlogo { border-style:solid; }
.logo-attente .ligne { justify-content:space-between; gap:8px; }
.apercu-scene video, .apercu-video { width:100%; aspect-ratio:16/9; border-radius:10px; background:var(--fond-video); display:block; }
.suivi-production { display:flex; flex-direction:column; gap:12px; }
.recap-bas { margin:0; text-align:center; font-size:var(--taille-secondaire); color:var(--doux); }
/* Correctif après mise en ligne (15/11) : barre de paiement ~218 px à 360 (deux boutons, raison, résumé) → ~170, sans rien retirer.
   Les boutons gardent 52 px (min-height) ; le bouton secondaire passe à 15 (comme le duo) et ses deux lignes se resserrent. */
#pay-actions { gap:6px; padding-top:8px; padding-bottom:calc(8px + env(safe-area-inset-bottom)); }
#pay-actions .btn { padding-top:8px; padding-bottom:8px; line-height:1.2; }
#pay-actions .btn.sec { font-size:15px; }
#pay-actions .pay-raison, #pay-actions .recap-bas { font-size:13px; line-height:1.25; }
#pay-actions .pay-raison + .recap-bas { margin-top:-4px; }
#supplement .ligne { display:flex; justify-content:space-between; gap:12px; align-items:baseline; }
#supplement .ligne .petit { white-space:nowrap; font-size:14px; color:var(--texte); font-weight:600; }

/* Pied de page commun (lot 6, tâche 1) */
.pied { max-width:480px; margin:0 auto; padding:18px 16px 28px; text-align:center; font-size:var(--taille-pied); color:var(--doux); }
.pied a { display:var(--aff-pied); padding:var(--pad-pied); color:var(--doux); text-decoration:none; white-space:nowrap; }
.pied a:hover, .pied a:focus-visible { text-decoration:underline; }

/* Pages juridiques générées (pages-legales.mjs) */
main.texte-long { max-width:760px; min-height:auto; }
.juridique { background:var(--carte); border:1px solid var(--bord); border-radius:var(--rayon-carte); padding:20px 18px; box-shadow:none;
             font-size:var(--taille-corps); line-height:1.6; overflow-wrap:anywhere; }
.juridique h1 { margin-bottom:12px; }
.juridique h2 { font-size:22px; font-weight:800; line-height:1.2; margin:26px 0 8px; scroll-margin-top:12px; }
.juridique h3 { font-size:17px; font-weight:700; margin:18px 0 6px; scroll-margin-top:12px; }
.juridique p, .juridique ul, .juridique ol { margin:0 0 10px; }
.juridique ul, .juridique ol { padding-left:22px; }
.juridique li { margin-bottom:4px; }
.juridique a { color:var(--texte); text-decoration:underline; text-underline-offset:2px; }
.juridique .tableau { overflow-x:auto; margin:0 0 12px; }
.juridique table { border-collapse:collapse; width:100%; font-size:var(--taille-meta); }
.juridique th, .juridique td { border:1px solid var(--bord); padding:7px 8px; text-align:left; vertical-align:top; }
.juridique th { background:var(--surface-3); }
.sommaire { background:var(--surface-2); border-radius:12px; padding:12px 14px; margin:6px 0 10px; font-size:14px; }
.sommaire ol { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:0; }
.sommaire a { display:flex; align-items:center; min-height:44px; padding:0; }   /* cible de 44 px */

/* Accueil sombre, mise en page A « site vitrine » (spec 2026-11-25-accueil-sombre-design.md ; maquette P1 validée par kest).
   Classes propres à l'accueil, préfixe acc- (aucune collision avec .tuile, .etape, .bas, .haut…). Mesures en jetons --acc-*,
   posés sur les trois racines de la page ; le téléphone (≤ 760 px) les redéfinit. DESIGN.md § « Accueil (vitrine) ». */
.acc-nav, .acc-main, .acc-pied {
  --acc-larg:1120px; --acc-marge:24px; --acc-haut-nav:64px; --acc-espace:96px;
  --acc-h1:54px; --acc-h2:40px; --acc-h3:26px; --acc-lead:19px; --acc-txt:17px; --acc-q:19px;
  --acc-rayon:24px; --acc-rayon-video:18px; --acc-ico:28px;
}
@media (max-width:760px) {
  .acc-nav, .acc-main, .acc-pied { --acc-marge:18px; --acc-haut-nav:56px; --acc-espace:64px; --acc-h1:34px; --acc-h2:30px; --acc-lead:17px; --acc-q:17px; --acc-photo-tel:46vh; }
}
@supports (height:1svh) {
  @media (max-width:760px) { .acc-nav, .acc-main, .acc-pied { --acc-photo-tel:46svh; } }
}
/* Barre de menu collée en haut, fond translucide flouté */
.acc-nav { position:sticky; top:0; z-index:30; background:color-mix(in srgb, var(--fond) 86%, transparent); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
           border-bottom:1px solid var(--bord); }
.acc-nav-in { max-width:var(--acc-larg); margin:0 auto; height:var(--acc-haut-nav); padding:0 var(--acc-marge); display:flex; align-items:center; gap:28px; }
.acc-nav .marque { font-size:20px; color:var(--texte); }
.acc-nav-liens { display:flex; gap:24px; margin-right:auto; }
.acc-nav-liens a, .acc-lien { display:inline-flex; align-items:center; min-height:44px; color:var(--doux); text-decoration:none; font-size:15px; }
.acc-nav-liens a:hover, .acc-lien:hover { color:var(--texte); }
.acc-nav-droite { display:flex; align-items:center; gap:20px; }
.acc-nav a:focus-visible, .acc-lien:focus-visible, .acc-q summary:focus-visible { outline:3px solid var(--focus); outline-offset:2px; border-radius:4px; }
.acc-apercu { margin:4px 0 0; } .acc-apercu .acc-lien { color:var(--texte); text-decoration:underline; text-underline-offset:3px; }   /* lien discret vers l'aperçu gratuit (héros) */
/* Page : pleine largeur, sections centrées sur 1120 px */
main.acc-main { max-width:none; min-height:0; padding:0; display:block; }
.acc-main [id] { scroll-margin-top:calc(var(--acc-haut-nav) + 16px); }
.acc-section { max-width:var(--acc-larg); margin:0 auto; padding:0 var(--acc-marge); }
.acc-bloc { padding-top:var(--acc-espace); }
.acc-surtitre { color:var(--accent); font-size:14px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; margin-bottom:12px; }
.acc-h2 { font-size:var(--acc-h2); line-height:1.1; letter-spacing:-.02em; font-weight:800; margin-bottom:16px; }
.acc-h3 { font-size:var(--acc-h3); letter-spacing:-.01em; font-weight:700; margin-bottom:14px; }
.acc-lead { color:var(--doux); font-size:var(--acc-lead); line-height:1.5; }
.acc-txt p { color:var(--doux); line-height:1.6; margin-bottom:12px; font-size:var(--acc-txt); }
.acc-carte { background:var(--carte); border:1px solid var(--bord); border-radius:var(--acc-rayon); padding:36px; }
/* Héros : photo fixe (moitié droite, cadrée en haut) fondue vers le fond à gauche et en bas */
.acc-heros { position:relative; overflow:hidden; border-bottom:1px solid var(--bord); display:flex; align-items:center;
             min-height:calc(100vh - var(--acc-haut-nav)); min-height:calc(100dvh - var(--acc-haut-nav)); }
.acc-heros-fond { position:absolute; inset:0; z-index:0; }
.acc-heros-fond img { position:absolute; top:0; right:0; width:58%; height:100%; display:block; object-fit:cover; object-position:50% 20%; }
.acc-heros-voile { position:absolute; inset:0; z-index:1;
  background:linear-gradient(90deg, var(--fond) 0%, var(--fond) 42%, color-mix(in srgb, var(--fond) 55%, transparent) 52%, transparent 70%),
             linear-gradient(0deg, var(--fond) 0%, transparent 20%); }
.acc-heros-texte { position:relative; z-index:2; width:100%; padding-top:40px; padding-bottom:80px; }
.acc-heros-texte > div { max-width:600px; }
.acc-h1-ligne { display:block; }   /* deux phrases, chacune sur sa ligne (kest, 26/11) */
.acc-h1 { font-size:var(--acc-h1); line-height:1.04; letter-spacing:-.03em; font-weight:800; margin-bottom:20px; overflow-wrap:anywhere; }
.acc-actions { display:flex; align-items:center; gap:18px; margin-top:32px; }
.acc-actions .btn { width:auto; padding:14px 30px; }
.acc-heros .acc-actions .acc-essai-heros { display:inline-block; }   /* reste visible sur téléphone */
.acc-actions .btn, .acc-actions .acc-lien { white-space:nowrap; } .acc-actions { flex-wrap:wrap; }
.acc-apercu-bloc .acc-apres-btn { text-align:left; margin-top:10px; color:var(--doux); font-size:14px; }
.acc-heros-texte .petit { margin-top:12px; }
/* En 3 étapes */
.acc-etapes { list-style:none; display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; margin-top:40px; }
.acc-etape { padding:32px 28px; }
.acc-etape h3 { font-size:20px; margin:20px 0 10px; }
.acc-etape p { color:var(--doux); line-height:1.6; }
.acc-etape-tete { display:flex; justify-content:space-between; align-items:center; }
.acc-etape-num { color:var(--doux); font-size:14px; font-weight:700; font-variant-numeric:tabular-nums; }
.acc-ico { width:var(--acc-ico); height:var(--acc-ico); color:var(--accent); flex:none; }
/* Démos : vidéo et sélecteur à côté du texte */
.acc-demo { display:grid; grid-template-columns:1.3fr 1fr; gap:48px; align-items:center; }
.acc-video { border-radius:var(--acc-rayon-video); }
.acc-seg { margin-top:14px; max-width:420px; }
/* Partenaires + Qui sommes-nous : deux cartes */
.acc-duo { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:40px; }
.acc-qui { display:flex; gap:20px; align-items:flex-start; }
.acc-qui-photo { flex:none; width:88px; height:88px; border-radius:50%; object-fit:cover; }
/* FAQ en liste à séparateurs, chevron Lucide */
.acc-faq { max-width:820px; }
.acc-faq-liste { display:flex; flex-direction:column; }
.acc-q { border-bottom:1px solid var(--bord); padding:22px 0; }
.acc-q summary { list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:16px; font-size:var(--acc-q); font-weight:600; min-height:44px; }
.acc-q summary::-webkit-details-marker { display:none; }
.acc-chev { width:22px; height:22px; flex:none; color:var(--doux); transition:transform .2s; }
.acc-q[open] .acc-chev { transform:rotate(180deg); }
.acc-q p, .acc-q ul { color:var(--doux); line-height:1.6; margin-top:12px; }
.acc-q ul { padding-left:22px; }
.acc-q a { color:var(--texte); }
@media (prefers-reduced-motion:reduce) { .acc-chev { transition:none; } }
/* Barre « Créer mon gala » collée en bas : téléphone seulement (sur ordinateur, c'est le bouton de la barre de menu) */
.acc-bas { display:none; }
/* Accueil qui vend (spec 2026-11-26-accueil-qui-vend-design.md, approche A, avis de l'expert du 26/11) */
/* Héros : ligne de prix (exception D1 à la règle 12) et crédit discret de la photo */
.acc-prix-heros { margin-top:22px; display:flex; align-items:baseline; gap:4px 10px; flex-wrap:wrap; }
.acc-prix-heros b { font-size:22px; font-weight:800; }
.acc-prix-detail { color:var(--doux); font-size:15px; }
.acc-credit { color:var(--doux); font-size:13px; margin-top:12px; }
.acc-credit-heros { position:absolute; z-index:2; right:var(--acc-marge); bottom:14px; margin:0; font-size:12px; }
/* Bandeau des 4 points vrais : une carte, 4 colonnes séparées par le liseré */
.acc-points-sec { padding-top:56px; }
.acc-points { list-style:none; display:grid; grid-template-columns:repeat(4, 1fr); background:var(--carte); border:1px solid var(--bord); border-radius:var(--acc-rayon); }
.acc-points li { padding:24px 22px; border-left:1px solid var(--bord); }
.acc-points li:first-child { border-left:0; }
.acc-ico-point { width:24px; height:24px; color:var(--accent); flex:none; }   /* vert (kest, 26/11) */
.acc-point-titre { font-size:17px; font-weight:700; margin:14px 0 6px; }
.acc-points p:not(.acc-point-titre) { color:var(--doux); font-size:15px; line-height:1.5; }
/* Sur le terrain : galerie de photos d'un vrai gala */
.acc-chapeau { max-width:760px; }
.acc-galerie { display:grid; grid-template-columns:repeat(3, 1fr); gap:14px; margin-top:36px; }
.acc-galerie img { width:100%; height:100%; aspect-ratio:4/5; object-fit:cover; display:block; border-radius:var(--acc-rayon-video); border:1px solid var(--bord); }
.acc-galerie .acc-galerie-large { grid-column:span 2; aspect-ratio:auto; }
/* Partenaires : phrase d'argument en blanc ; qui sommes-nous : lien des mentions */
.acc-txt .acc-surtitre { color:var(--accent); font-size:14px; line-height:normal; margin-bottom:12px; }   /* « Démos » en vert comme les autres surtitres */
.acc-txt .acc-fort { color:var(--texte); margin-top:20px; }
.acc-txt a { color:var(--texte); }
.acc-qui + p { margin-top:16px; }
/* Bloc Prix : montant + bouton à gauche, contenu du pack à droite */
.acc-pack { display:grid; grid-template-columns:1fr 1.1fr; gap:20px; margin-top:40px; }
.acc-pack-prix { display:flex; flex-direction:column; padding:40px; }
.acc-montant { font-size:64px; font-weight:800; letter-spacing:-.03em; line-height:1; font-variant-numeric:tabular-nums; }
.acc-montant small { font-size:22px; font-weight:700; letter-spacing:0; }
.acc-ht { color:var(--doux); margin-top:8px; }
.acc-unite { margin-top:24px; font-size:17px; line-height:1.5; }
.acc-unite-doux { color:var(--doux); font-size:15px; margin-top:12px; margin-bottom:28px; }
.acc-pack-prix .btn { margin-top:auto; }
.acc-apres-btn { color:var(--doux); font-size:14px; text-align:center; margin-top:12px; }
.acc-pack-liste ul { list-style:none; display:flex; flex-direction:column; gap:16px; }
.acc-pack-liste li { display:flex; gap:14px; align-items:flex-start; font-size:17px; line-height:1.45; }
.acc-ico-check { width:24px; height:24px; color:var(--texte); flex:none; }   /* blanc : le vert reste à l'action */
.acc-pack-detail { color:var(--doux); display:block; font-size:15px; }
.acc-apercu-bloc { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); gap:40px; align-items:center; }   /* aperçu gratuit : texte à gauche, exemple à droite */
.acc-apercu-tete { display:flex; align-items:center; gap:10px; margin-bottom:8px; } .acc-apercu-tete .acc-surtitre { margin:0; }
.acc-apercu-bloc .acc-lead { margin:16px 0 10px; } .acc-apercu-bloc .petit { color:var(--doux); }
.acc-apercu-btn { width:auto; display:inline-block; margin-top:24px; padding-left:32px; padding-right:32px; }
.acc-apercu-img { display:block; width:100%; height:auto; border-radius:16px; border:1px solid var(--bord); }
.acc-temoins { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:32px; }
.acc-temoin { display:flex; flex-direction:column; gap:16px; }
.acc-temoin blockquote { margin:0; font-size:16px; line-height:1.6; color:var(--texte); }
.acc-temoin-titre { font-size:22px; line-height:1.25; font-weight:800; letter-spacing:-.01em; color:var(--texte); }
.acc-temoin-qui { display:flex; gap:14px; align-items:center; margin-top:auto; padding-top:16px; border-top:1px solid var(--bord); }
.acc-temoin-qui img { flex:none; width:56px; height:56px; border-radius:50%; object-fit:cover; }
.acc-temoin-qui p { margin:0; font-size:14px; line-height:1.45; color:var(--doux); } .acc-temoin-qui b { color:var(--texte); }
/* Appel final sur une photo de la salle, voile sombre à gauche et en bas */
.acc-final { position:relative; overflow:hidden; border-radius:28px; border:1px solid var(--bord); min-height:420px; display:flex; align-items:flex-end; }
.acc-final img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 40%; }
.acc-final-voile { position:absolute; inset:0;
  background:linear-gradient(90deg, color-mix(in srgb, var(--fond) 95%, transparent) 0%, color-mix(in srgb, var(--fond) 80%, transparent) 45%, color-mix(in srgb, var(--fond) 20%, transparent) 100%),
             linear-gradient(0deg, var(--fond) 0%, transparent 50%); }
.acc-final-corps { position:relative; padding:48px; max-width:640px; }
.acc-final .btn { width:auto; display:inline-flex; justify-content:center; padding:14px 30px; margin-top:24px; }
.acc-contact { color:var(--doux); margin-top:16px; font-size:15px; }
.acc-contact a { color:var(--texte); }
/* Barre du bas masquée quand un autre bouton vert est à l'écran (classe posée par accueil.js) */
.acc-bas { transition:transform .2s, opacity .2s; }
.acc-bas.acc-bas-cache { transform:translateY(100%); opacity:0; pointer-events:none; }
@media (prefers-reduced-motion:reduce) { .acc-bas { transition:none; } }
/* Pied de page à la largeur des sections */
.pied.acc-pied { max-width:var(--acc-larg); border-top:1px solid var(--bord); margin-top:var(--acc-espace); padding:28px var(--acc-marge) 40px; }
@media (max-width:760px) {
  .acc-nav-liens, .acc-nav-droite { display:none; }
  .acc-heros { display:block; min-height:0; }
  .acc-heros-fond { position:relative; }
  .acc-heros-fond img { position:static; width:100%; height:var(--acc-photo-tel); }
  .acc-heros-fond::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg, var(--fond) 0%, transparent 35%); }
  .acc-heros-voile { display:none; }
  .acc-heros-texte { padding-top:4px; padding-bottom:40px; }
  /* Premier écran du téléphone (avis de l'expert, indispensable 1) : photo ≤ 46 % de la hauteur, prix juste sous le titre */
  .acc-heros-texte > div { display:flex; flex-direction:column; }
  .acc-heros-texte .acc-h1 { order:1; margin-bottom:0; }
  .acc-prix-heros { order:2; margin-top:12px; }
  .acc-heros-texte .acc-lead { order:3; margin-top:16px; }
  .acc-actions { order:4; }
  .acc-heros-texte .petit { order:5; }
  .acc-heros-texte .acc-apercu { order:6; }
  .acc-credit-heros { right:var(--acc-marge); bottom:auto; top:calc(var(--acc-photo-tel) - 26px); }
  .acc-points-sec { padding-top:24px; }
  .acc-points { grid-template-columns:1fr; }
  .acc-points li { display:flex; gap:14px; align-items:flex-start; padding:18px 20px; border-left:0; border-top:1px solid var(--bord); }
  .acc-points li:first-child { border-top:0; }
  .acc-point-titre { margin:0 0 4px; }
  .acc-galerie { grid-template-columns:1fr 1fr; gap:10px; }
  .acc-pack { grid-template-columns:1fr; gap:14px; }
  .acc-pack-prix { padding:24px; }
  .acc-montant { font-size:52px; }
  .acc-final { min-height:460px; }
  .acc-final-corps { padding:28px 22px; }
  .acc-final .btn { display:flex; justify-content:center; width:100%; }
  .acc-final-voile { background:linear-gradient(0deg, var(--fond) 0%, color-mix(in srgb, var(--fond) 92%, transparent) 62%, color-mix(in srgb, var(--fond) 35%, transparent) 100%); }
  .acc-actions { flex-direction:column; align-items:stretch; gap:0; margin-top:20px; }
  .acc-actions .btn { display:none; }   /* le bouton vert est la barre du bas : un seul vert à l'écran */
  .acc-etapes, .acc-duo, .acc-demo, .acc-temoins, .acc-apercu-bloc { grid-template-columns:1fr; gap:14px; }
  .acc-temoin-titre { font-size:20px; }
  .acc-carte, .acc-etape { padding:24px; }
  .acc-bas { display:block; position:sticky; bottom:0; z-index:25; padding:12px var(--acc-marge) calc(12px + env(safe-area-inset-bottom));
             background:var(--fond); border-top:1px solid var(--bord); margin-top:var(--acc-espace); }
  .acc-bas::before { content:""; position:absolute; left:0; right:0; bottom:calc(100% + 1px); height:var(--fondu-bas); background:linear-gradient(transparent, var(--fond)); pointer-events:none; }
  .pied.acc-pied { margin-top:0; border-top:0; }
}
/* Récapitulatif (lot 6, tâche 4) : paiement préparé sans SIREN/RNA → seul ce champ est redemandé. */
#pay-form.seul-siren > :not(.pay-siren-champ) { display:none; }
.pay-raison { color:var(--doux); }   /* raison d’un bouton grisé : gris (kest, 29/11 : le rouge fait croire à une erreur) */
.pay-raison.bloquant { color:var(--rouge); }   /* vrai blocage (photo à valider) : rouge, règle 10 */
/* Encart du prix (lot 6, tâche 5) : petit texte, sans bouton */
.encart-prix { background:var(--carte); border:1px solid var(--bord); border-radius:12px; padding:10px 12px; font-size:13px; color:var(--texte); }

/* Chiffres tabulaires (refonte sombre) : tout ce qui se compte. --chiffres vaut normal sur la vitrine. */
.total, .bloc-num, .etape .rond, .ligne-avancement, .avancement { font-variant-numeric:var(--chiffres); }

/* ---- Fenêtres d'alerte (chantier A5, js/fenetre.js ; option B : carte centrée à bandeau de couleur, kest 19/11) ---- */
html.fen-ouverte { overflow:hidden; }
dialog.fenetre { --fen-ton-texte:var(--fen-texte); --fen-ton-f:var(--fen-bandeau); --fen-ton-bord:var(--fen-bord);
  padding:0; margin:auto; width:min(480px, calc(100vw - 32px)); max-height:calc(100dvh - 32px); overflow:hidden;
  background:var(--fen-carte); color:var(--fen-texte); border:1px solid var(--fen-ton-bord); border-radius:20px;
  font-family:inherit; font-size:16px; line-height:1.5; text-align:left; }
dialog.fenetre[open] { display:flex; flex-direction:column; animation:fen-entree 200ms ease-out; }
dialog.fenetre.large { width:min(520px, calc(100vw - 32px)); }
dialog.fenetre::backdrop { background:var(--voile-fenetre, rgba(0,0,0,.6)); }
dialog.fenetre.f-alerte::backdrop { background:var(--voile-alerte, rgba(0,0,0,.72)); }
dialog.fenetre.f-alerte { --fen-ton-texte:var(--fen-rouge); --fen-ton-f:var(--fen-rouge-f); --fen-ton-bord:color-mix(in srgb, var(--fen-rouge) 40%, transparent); }
dialog.fenetre.f-attente { --fen-ton-texte:var(--fen-attente); --fen-ton-f:var(--fen-attente-f); --fen-ton-bord:var(--fen-attente-bord); }
dialog.fenetre.f-succes { --fen-ton-texte:var(--fen-fait); --fen-ton-f:var(--fen-fait-f); --fen-ton-bord:var(--fen-fait-bord); }
.fenetre .fen-tete { flex:0 0 auto; display:flex; gap:12px; align-items:center; padding:14px 16px; background:var(--fen-ton-f); border-bottom:1px solid var(--fen-ton-bord); }
.fenetre .fen-ico { flex:0 0 auto; display:grid; place-items:center; color:var(--fen-ton-texte); }
.fenetre .fen-ico .ico { width:28px; height:28px; }
.fenetre .fen-titres { min-width:0; }
.fenetre .fen-sur { margin:0; font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--fen-violet); }
.fenetre .fen-titre { margin:0; font-size:20px; font-weight:800; line-height:1.2; letter-spacing:-.01em; color:var(--fen-ton-texte); outline:none; }
.fenetre .fen-sujet { margin:2px 0 0; font-size:14px; font-weight:600; color:var(--fen-doux); }
.fenetre .fen-corps { flex:1 1 auto; min-height:0; overflow:auto; padding:12px 16px 4px; }
.fenetre .fen-texte { margin:0 0 8px; }
.fenetre .fen-petit { margin:0 0 8px; font-size:14px; color:var(--fen-doux); }
.fenetre .fen-liste { margin:0 0 8px; padding:10px 12px 10px 30px; background:var(--fen-ton-f); border:1px solid var(--fen-ton-bord); border-radius:12px; font-size:15px; }
.fenetre .fen-liste li + li { margin-top:6px; }
.fenetre .fen-liste .fen-l-alerte b { color:var(--fen-rouge); }
.fenetre .fen-liste .fen-l-attente b { color:var(--fen-attente); }
.fenetre .fen-lien { color:var(--fen-texte); font-weight:700; text-underline-offset:3px; }
.fenetre .fen-chiffre { display:flex; align-items:baseline; gap:10px; margin:0 0 10px; padding:10px 12px; background:var(--fen-ton-f); border:1px solid var(--fen-ton-bord); border-radius:12px; }
.fenetre .fen-chiffre b { font-size:40px; font-weight:800; line-height:1; color:var(--fen-ton-texte); font-variant-numeric:tabular-nums; }
.fenetre .fen-chiffre span { font-weight:600; line-height:1.3; }
.fenetre .fen-contenu { display:flex; justify-content:center; margin:0 0 10px; }
.fenetre .fen-contenu img { display:block; max-width:100%; max-height:40dvh; border-radius:12px; }
.fenetre .fen-actions { flex:0 0 auto; display:flex; flex-direction:column; gap:8px; padding:8px 16px 16px; }
.fenetre .fen-btn { display:flex; align-items:center; justify-content:center; gap:8px; min-height:52px; padding:10px 16px; border-radius:999px;
  border:1px solid transparent; font:inherit; font-size:17px; font-weight:700; line-height:1.2; text-align:center; text-decoration:none; cursor:pointer;
  background:var(--fen-sec); color:var(--fen-texte); }
.fenetre .fen-btn .ico { width:16px; height:16px; flex:0 0 auto; }
.fenetre .fen-btn.principal { background:var(--accent); color:var(--sur-accent); }
.fenetre .fen-btn.danger { background:var(--fen-rouge-f); color:var(--fen-rouge); border-color:color-mix(in srgb, var(--fen-rouge) 40%, transparent); }
.fenetre .fen-btn.lien { background:none; min-height:44px; font-size:14px; font-weight:500; color:var(--fen-doux); text-decoration:underline; text-underline-offset:3px; }
.fenetre .fen-btn:focus-visible { outline:3px solid var(--fen-texte); outline-offset:2px; }
.fenetre .fen-btn:active { transform:scale(.98); }
@media (min-width:600px) {
  .fenetre .fen-actions { flex-direction:row-reverse; flex-wrap:wrap; }
  .fenetre .fen-btn { flex:1 1 auto; }
  .fenetre .fen-btn.lien { flex-basis:100%; order:9; }
}
/* Préparation (R3) : grande animation ambre dans la fenêtre d'attente. */
.fen-prep { position:relative; width:150px; height:150px; margin:4px auto; }
.fen-prep img, .fen-prep .fen-prep-fond { position:absolute; inset:14px; width:calc(100% - 28px); height:calc(100% - 28px); border-radius:50%; object-fit:cover;
  background:var(--fen-sec); animation:fen-souffle 1.8s ease-in-out infinite; }
.fen-prep::after { content:''; position:absolute; inset:0; border-radius:50%; border:5px solid var(--fen-attente-f); border-top-color:var(--fen-attente);
  border-right-color:var(--fen-attente); animation:fen-tour 1.1s linear infinite; }
@keyframes fen-tour { to { transform:rotate(360deg); } }
@keyframes fen-souffle { 0%, 100% { opacity:.6; } 50% { opacity:1; } }
@keyframes fen-entree { from { opacity:0; transform:translateY(8px); } }
/* Erreur de saisie sous le champ (pas une fenêtre). */
.erreur-champ { margin:6px 0 0; font-size:14px; font-weight:600; color:var(--rouge); }
@media (prefers-reduced-motion:reduce) {
  dialog.fenetre[open] { animation:none; }
  .fen-prep::after { animation-duration:4s; }
  .fen-prep img, .fen-prep .fen-prep-fond { animation:none; }
  .fenetre .fen-btn:active { transform:none; }
}
.fenetre .fen-contenu:has(> .fen-noeuds) { display:block; }
.fenetre .fen-noeuds { width:100%; }
.fenetre .fen-detourage { width:100%; }
.fenetre .fen-detourage img { max-height:45dvh; border-radius:0; }
/* Image en grand (F8, F11 ; fenetreImage de js/fenetre.js) : l'image tient ENTIÈRE dans l'écran (place du bandeau, du sélecteur et de
   « Fermer »), damier clair pour une image détourée, fond noir sinon. Le pincement du navigateur reste possible (rien ne l'empêche). */
.fenetre .fen-contenu:has(> .fen-image) { display:block; }
.fenetre .fen-image { width:100%; display:flex; flex-direction:column; gap:10px; }
.fenetre .fen-image-cadre { display:flex; justify-content:center; border-radius:14px; overflow:hidden; max-height:none; }
.fenetre .fen-image-cadre[hidden] { display:none; }
.fenetre .fen-image-plein { background:var(--plein-ecran); border:1px solid var(--bord); }
.fenetre .fen-image img { display:block; width:auto; max-width:100%; max-height:calc(100dvh - 220px); object-fit:contain; border-radius:0; }
.fenetre .fen-image-seg { min-height:44px; }
/* Photo ronde de la fiche, vignette « Au suivant » et miniatures de la réparation qui s'ouvrent en grand : tout l'élément se touche,
   le petit rond .agrandir (maximize-2) dans le coin dit qu'il s'agrandit. */
.avec-agrandir { position:relative; cursor:zoom-in; }
.avec-agrandir > .agrandir { top:auto; bottom:2px; right:2px; pointer-events:none; }
.photo-fiche .grand.avec-agrandir > .agrandir { bottom:-8px; right:-8px; }
.avec-agrandir:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }
.vignette-bouton { display:inline-block; }
/* Ligne d'état (F9, règle 16) : ce qui change après une action garde la couleur de son résultat ; texte 14/600, icône 16, sans fond. */
.etat-ligne { display:flex; align-items:center; justify-content:center; gap:6px; font-size:14px; font-weight:600; text-align:center; }
.etat-ligne .ico { width:16px; height:16px; }
.etat-ligne.ok { color:var(--ok); } .etat-ligne.att { color:var(--attente); } .etat-ligne.alerte { color:var(--rouge); }
.att-texte { color:var(--attente); }
/* « Signaler un défaut » (lot Photos du 24/11, F1) : zone de dessin dans la fenêtre. Photo d'origine ajustée pour tenir dans l'écran
   avec le champ et les boutons ; touch-action:none sur la zone SEULEMENT (la page ne défile pas pendant le tracé, elle défile ailleurs). */
.fenetre .fen-contenu:has(> .dessin) { display:block; }
.dessin { display:flex; flex-direction:column; align-items:center; gap:10px; width:100%; }
.dessin > .fen-texte { align-self:stretch; margin:0; }
.dessin-zone { position:relative; display:inline-block; max-width:100%; line-height:0; touch-action:none; cursor:crosshair;
  -webkit-user-select:none; user-select:none; border-radius:12px; outline:none; }
.fenetre .fen-contenu .dessin-zone img { display:block; max-width:100%; max-height:max(200px, calc(100dvh - 520px)); width:auto; height:auto;
  border-radius:12px; pointer-events:none; }
.dessin-toile { position:absolute; inset:0; width:100%; height:100%; border-radius:12px; touch-action:none; }
.dessin .erreur-champ { align-self:stretch; text-align:center; margin:0; }
.dessin-effacer { align-self:center; width:auto; padding:0 18px; }
.dessin-champ { align-self:stretch; }
.dessin-texte { width:100%; min-height:0; height:auto; resize:none; line-height:1.35; padding-top:10px; padding-bottom:10px; }

/* Aperçu gratuit depuis l'accueil (apercu-gratuit.html, spec 2026-11-26-apercu-filigrane-design.md) */
.ag-etapes { margin:0; padding-left:20px; display:flex; flex-direction:column; gap:6px; font-size:14px; line-height:1.4; }
.ag-texte { font-size:15px; font-weight:600; margin:0; }
.ag-champs { display:flex; flex-direction:column; gap:12px; width:100%; }

/* Inscription et connexion par mot de passe (spec 2026-11-29-inscription-mot-de-passe § 5) : champ mot de passe avec bouton œil
   (cible de 44 px, à droite du champ, calée sur la hauteur du champ : un message d'erreur sous le champ ne la déplace pas). */
.mdp-champ { position:relative; }
.mdp-champ .champ { padding-right:52px; }
.mdp-oeil { position:absolute; right:2px; top:2px; width:44px; height:44px; display:inline-flex; align-items:center;
            justify-content:center; background:none; border:0; color:var(--doux); cursor:pointer; padding:0; box-shadow:none; min-height:0; }
.mdp-oeil:focus-visible { outline:2px solid var(--focus); outline-offset:-4px; border-radius:999px; }
.mdp-oeil .ico { width:20px; height:20px; }
.aide-champ { margin:6px 0 0; }
.liens-compte { display:flex; flex-direction:column; align-items:center; gap:2px; }
.encart-compte { display:flex; flex-direction:column; gap:6px; }
.encart-compte p { margin:0; font-size:14px; line-height:1.4; }
/* Encart « Recevoir les nouveautés » de la page Production (§ 5.7) : discret, une ligne et un bouton secondaire. */
#nouveautes { display:flex; flex-direction:column; gap:10px; align-items:flex-start; }
#nouveautes[hidden] { display:none; }
.nouv-texte { margin:0; font-size:14px; line-height:1.4; color:var(--doux); }
.nouv-bouton { width:auto; padding:0 18px; }
#nouveautes .etat-ligne { justify-content:flex-start; text-align:left; }
#form-mdp { display:flex; flex-direction:column; gap:12px; }
#form-mdp[hidden] { display:none; }
#form-mdp > p { margin:0; }
