/* Interface Station — la piste : plein soleil, une main, un client qui attend.
   Gros contrastes, gros chiffres, un geste par décision. Signature : l'afficheur de pompe ambre. */

/* thème sombre de l'espace : fond nuit, façon afficheur de pompe */
:root[data-theme="dark"] {
  --papier: #071B3D; --surface: #0B2550; --surface-2: #123061; --brume: #1F3D72;
  --texte-2: #B4C2DA; --texte-3: #7A8FB4;
}
:root { --h-entete: calc(78px + var(--haut)); --h-onglets: calc(92px + var(--bas)); }

body.plein-ouvert { overflow: hidden; }
body.clavier-ouvert .barre-onglets { display: none; }

.immat { font: 700 13px/1 var(--f-code); letter-spacing: .04em; padding: 5px 8px; border-radius: 7px; background: var(--surface-2); color: var(--texte); white-space: nowrap; border: 1.5px solid var(--brume); }
.immat-l { font-size: 20px; padding: 8px 12px; border-radius: 10px; background: #F7F3E3; color: #0E1B33; border-color: #0E1B33; }

/* ───────── en-tête ───────── */
.station { min-height: 100dvh; display: flex; flex-direction: column; }
.st-entete {
  position: sticky; top: 0; z-index: 30; height: var(--h-entete);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: var(--haut) 16px 0; background: var(--nuit); color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px -18px rgba(0, 0, 0, .7);
}
.st-ident { display: flex; align-items: center; gap: 10px; min-width: 0; }
.st-logo svg { width: 34px; height: 34px; }
.st-ident-texte { display: grid; gap: 3px; min-width: 0; }
.st-ident-texte b { font: 800 18px/1.1 var(--f-titre); font-variation-settings: "wdth" 82; letter-spacing: -.01em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* c'est le nom du pompiste qui cède la place, jamais l'état de connexion */
.st-ident-texte > span { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 13px; font-weight: 600; color: #A9B9D6; white-space: nowrap; }
.st-ident-texte [data-pompiste] { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.st-entete .direct { flex: none; font-size: 12px; color: #FFB24A; }
.st-entete .direct.actif { color: #4ADE95; }
.st-entete .direct.actif i { background: #4ADE95; }
.st-total { display: grid; justify-items: end; gap: 4px; flex: none; }
.st-total .surtitre { color: #8FA6CF; font-size: 10px; }
.st-total .compteur { font-size: 26px; }
@media (max-width: 380px) { .st-total .compteur { font-size: 22px; } }

.st-corps { flex: 1; min-width: 0; }
.panneau-page { max-width: 760px; margin: 0 auto; padding: 18px 16px calc(var(--h-onglets) + 24px); display: grid; gap: 16px; align-content: start; position: relative; }

/* ───────── scanner ───────── */
.panneau-scanner { display: grid; grid-template-rows: minmax(0, 1fr); gap: 16px; padding: 12px 12px calc(var(--h-onglets) + 8px); height: calc(100dvh - var(--h-entete)); }
.scan-zone { position: relative; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.scan-zone > .viseur, .scan-zone > .manuel { flex: 1; min-height: 0; }
.bandeau-verif { display: grid; gap: 8px; }
.bandeau-verif-ligne { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 18px; background: color-mix(in srgb, var(--pompe) 16%, var(--surface)); border: 1.5px solid color-mix(in srgb, var(--pompe) 55%, transparent); }
.bandeau-verif-ligne > svg { width: 22px; height: 22px; flex: none; color: var(--pompe); }
.bandeau-verif-ligne p { flex: 1 1 180px; min-width: 0; margin: 0; display: grid; gap: 2px; }
.bandeau-verif-ligne p span:not(.code-bon) { font-size: 13.5px; color: var(--texte-2); font-weight: 600; }
.bandeau-verif-ligne .code-bon { white-space: nowrap; }
.bandeau-verif-actions { display: flex; gap: 8px; }
.bandeau-verif-actions .btn { min-height: 44px; }
.dernier-valide { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--feuille) 14%, var(--surface)); font-size: 14px; font-weight: 600; color: var(--texte); }
.dernier-valide svg { width: 20px; height: 20px; flex: none; color: var(--feuille); }
.dernier-valide .code-bon { font-size: 13px; white-space: nowrap; }
.scan-cote { display: none; }

.viseur { position: relative; overflow: hidden; border-radius: var(--r-xl); background: #020A18; min-height: 320px; isolation: isolate; }
.viseur video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.viseur.pret video { opacity: 1; }
.viseur-masque { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.viseur-cadre {
  --t: min(68vw, 46dvh, 300px); position: relative; width: var(--t); height: var(--t); border-radius: 26px;
  box-shadow: 0 0 0 100vmax rgba(2, 10, 24, .55);
}
.coin { position: absolute; width: 54px; height: 54px; border: 6px solid var(--pompe); animation: respire 2.2s ease-in-out infinite; }
.coin.hg { top: -3px; left: -3px; border-right: 0; border-bottom: 0; border-top-left-radius: 26px; }
.coin.hd { top: -3px; right: -3px; border-left: 0; border-bottom: 0; border-top-right-radius: 26px; }
.coin.bg { bottom: -3px; left: -3px; border-right: 0; border-top: 0; border-bottom-left-radius: 26px; }
.coin.bd { bottom: -3px; right: -3px; border-left: 0; border-top: 0; border-bottom-right-radius: 26px; }
.balayage { position: absolute; left: 8%; right: 8%; top: 8%; height: 3px; border-radius: 3px; background: #FFB24A; box-shadow: 0 0 18px 4px rgba(255, 178, 74, .55); opacity: 0; }
.viseur.pret .balayage { opacity: 1; animation: balaie 2.4s ease-in-out infinite alternate; }
.viseur.lu .coin { border-color: #4ADE95; animation: none; transform: scale(.94); transition: transform .2s var(--ressort); }
.viseur.lu .balayage { background: #4ADE95; box-shadow: 0 0 22px 6px rgba(74, 222, 149, .6); }
.viseur-aide { position: absolute; left: 0; right: 0; top: 18px; margin: 0; text-align: center; color: #fff; font: 700 17px/1.3 var(--f-texte); text-shadow: 0 1px 8px rgba(0, 0, 0, .8); padding: 0 16px; }
.viseur-actions { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; gap: 10px; justify-content: center; }
.viseur-actions .btn { flex: 1; max-width: 260px; min-height: 60px; font-size: 17px; }
.viseur-actions svg { width: 22px; height: 22px; }
.viseur-btn { --fond: rgba(255, 255, 255, .14); --coul: #fff; backdrop-filter: blur(10px); }
.viseur-btn[aria-pressed="true"] { --fond: #FFE7A8; --coul: #1B0F00; }

/* saisie manuelle */
.manuel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; padding: 22px 18px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--brume); overflow: auto; }
.manuel-raison { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: color-mix(in srgb, var(--pompe) 14%, transparent); color: var(--texte); }
.manuel-raison svg { width: 24px; height: 24px; flex: none; color: var(--pompe); }
.manuel-raison div { display: grid; gap: 2px; }
.manuel-raison span { color: var(--texte-2); font-size: 14px; }
.code-segmente { display: flex; align-items: center; gap: 6px; }
.code-prefixe { font: 700 clamp(26px, 7vw, 40px)/1 var(--f-code); color: var(--texte-3); }
.code-tiret { font: 700 clamp(22px, 6vw, 34px)/1 var(--f-code); color: var(--texte-3); }
.code-seg {
  flex: 1; width: 0; min-width: 0; height: 76px; text-align: center; text-transform: uppercase;
  font: 700 clamp(26px, 7.4vw, 42px)/1 var(--f-code); letter-spacing: .14em; padding: 0 0 0 .14em;
  border-radius: 16px; border: 2.5px solid var(--brume); background: var(--surface-2); color: var(--texte); outline: 0;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.code-seg::placeholder { color: var(--texte-3); opacity: .6; letter-spacing: .3em; }
.code-seg:focus { border-color: var(--pompe); background: var(--surface); box-shadow: 0 0 0 5px color-mix(in srgb, var(--pompe) 25%, transparent); }
.manuel .btn-l { min-height: 64px; font-size: 18px; }
.manuel-ok:disabled { opacity: .4; }

/* résumé du jour à côté du scanner (tablette paysage) */
.resume-jour { display: grid; gap: 14px; }
.resume-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.resume-chiffres div { display: grid; gap: 2px; }
.resume-chiffres b { font-size: 34px; line-height: 1; }
.resume-chiffres span { font-size: 13px; font-weight: 600; color: var(--texte-2); }

/* ───────── listes de bons ───────── */
.liste-bons { list-style: none; margin: 0; padding: 4px 0; }
.ligne-bon {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  min-height: 72px; padding: 12px 16px; border-bottom: 1px solid color-mix(in srgb, var(--brume) 70%, transparent);
}
.ligne-bon:last-child { border-bottom: 0; }
.lb-heure { font: 700 15px/1 var(--f-code); color: var(--texte-2); min-width: 52px; }
.lb-heure.date { font-size: 13px; line-height: 1.3; max-width: 12ch; }
.lb-centre { display: grid; gap: 3px; min-width: 0; }
.lb-montant { font: 800 22px/1.05 var(--f-titre); font-variation-settings: "wdth" 80; letter-spacing: -.01em; white-space: nowrap; }
.lb-org, .lb-par { font-size: 13.5px; color: var(--texte-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-par { color: var(--texte-3); font-size: 12.5px; }
.lb-droite { display: grid; justify-items: end; gap: 6px; }
.ligne-bon.maj { animation: ligneMaj 1.8s var(--doux); }
.ligne-bon.regle.maj { animation: ligneRegle 2s var(--doux); }
.liste-bons .vide { border: 0; }
.liste-bons .vide b { color: var(--texte); font-size: 16px; }
.scan-cote .ligne-bon { min-height: 64px; }

.entete-liste { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* aujourd'hui */
.vedette-jour { display: grid; gap: 14px; background: linear-gradient(150deg, var(--marine) 0%, var(--nuit) 100%); color: #fff; border: 0; }
.vedette-jour .surtitre { color: #8FA6CF; }
.compteur-geant .compteur, .compteur-geant.compteur { font-size: clamp(46px, 13vw, 72px); justify-self: start; }
.vedette-bas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vedette-bas div { display: grid; gap: 2px; }
.vedette-bas b { font-size: 36px; line-height: 1; }
.vedette-bas span { color: #A9B9D6; font-size: 14px; font-weight: 600; }
.vedette-jour .jauge { background: rgba(255, 255, 255, .12); }
.vedette-jour .jauge > i { background: linear-gradient(90deg, var(--pompe), #FFB24A); transition: width 1.2s var(--doux); }

/* tirer pour actualiser */
.tirer { position: absolute; left: 50%; top: -6px; margin-left: -20px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--texte-2); box-shadow: var(--ombre-2); opacity: 0; transition: transform .3s var(--ressort), opacity .2s; z-index: 5; pointer-events: none; }
.tirer svg { width: 20px; height: 20px; }
.tirer.pret { color: var(--pompe); }
.tirer.charge svg { animation: tourne .8s linear infinite; }

/* règlements */
.grille-reglements { display: grid; gap: 14px; }
.kpi-attendu, .kpi-regle { display: grid; gap: 10px; align-content: start; }
.kpi-attendu { background: linear-gradient(150deg, var(--marine) 0%, var(--nuit) 100%); color: #fff; border: 0; }
.kpi-attendu .surtitre, .kpi-attendu .tres-discret { color: #A9B9D6; }
.kpi-regle-valeur { font-size: 40px; line-height: 1; color: var(--feuille); }
.explication { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: var(--texte-2); font-size: 14px; }
.explication svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--texte-3); }
.panneau-page .puces { gap: 8px; }
.panneau-page .puce { min-height: 48px; padding: 0 18px; font-size: 14.5px; }

/* profil */
.profil-carte { display: flex; align-items: center; gap: 16px; }
.profil-avatar { width: 64px; height: 64px; border-radius: 20px; font-size: 24px; }
.profil-def { padding: 18px 20px; font-size: 15px; }
.profil-actions { display: grid; overflow: hidden; }
.ligne-action { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 14px; min-height: 64px; padding: 0 20px; border: 0; background: none; text-align: left; font-weight: 700; font-size: 16px; border-bottom: 1px solid var(--brume); }
.ligne-action:last-child { border-bottom: 0; }
.ligne-action svg { width: 22px; height: 22px; }
.ligne-action:active { background: var(--surface-2); }
.ligne-action.danger { color: var(--danger); }

/* barre d'onglets : cibles larges */
.station .onglet { min-height: 58px; font-size: 12px; }
.station .onglet svg { width: 24px; height: 24px; }

/* ═════════════════ écrans plein cadre ═════════════════ */
.plein {
  position: fixed; inset: 0; z-index: 80; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(18px + var(--haut)) 18px calc(18px + var(--bas)); outline: 0;
  animation: pleinIn .32s var(--doux);
}
.plein.sortie { animation: fonduOut .26s ease forwards; }

/* attente */
.plein-attente { background: var(--nuit); color: #fff; display: grid; place-items: center; text-align: center; }
.attente-corps { display: grid; justify-items: center; gap: 14px; }
.roue { width: 64px; height: 64px; border-radius: 50%; border: 6px solid rgba(255, 255, 255, .15); border-top-color: var(--pompe); animation: tourne .8s linear infinite; }
.code-geant { margin: 0; font: 700 clamp(24px, 7vw, 36px)/1.1 var(--f-code); letter-spacing: .08em; }

/* vérification */
.plein-verif { background: var(--nuit); color: #fff; }
.verif { max-width: 640px; min-height: 100%; margin: 0 auto; display: grid; gap: 18px; align-content: start; }
.verif .surtitre { color: #8FA6CF; margin: 0 0 6px; }
.verif-entete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.verif-code { font-size: clamp(18px, 5.4vw, 22px); margin: 0; white-space: nowrap; }
.verif-entete .statut { font-size: 14px; padding: 7px 14px 7px 10px; background: rgba(240, 138, 28, .18); color: #FFB24A; }
.verif-montant { display: grid; justify-items: center; gap: 6px; padding: 8px 0 4px; text-align: center; }
.verif-compteur { font-size: clamp(52px, 16.5vw, 132px); max-width: 100%; padding: .12em .26em !important; border-radius: 22px !important; }
.verif-fixe { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 0; color: #A9B9D6; font-weight: 600; font-size: 14px; }
.verif-fixe svg { width: 18px; height: 18px; }
.verif-infos { display: grid; gap: 0; margin: 0; border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.verif-infos > div { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.verif-infos > div:last-child { border-bottom: 0; }
.verif-infos dt { display: flex; align-items: center; gap: 8px; color: #8FA6CF; font-weight: 600; font-size: 14px; }
.verif-infos dt svg { width: 18px; height: 18px; }
.verif-infos dd { margin: 0; text-align: right; font-weight: 800; font-size: 19px; display: grid; justify-items: end; gap: 4px; }
.verif-infos .tres-discret { color: #8FA6CF; }
.verif-temps { display: grid; gap: 10px; }
.verif-temps-ligne { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: #C9D5EA; }
.verif-temps-ligne svg { width: 20px; height: 20px; color: #FFB24A; }
.verif-temps-ligne b { font: 700 18px var(--f-code); color: #fff; }
.verif-temps .jauge { height: 14px; background: rgba(255, 255, 255, .1); }
/* glissière et Refuser restent à portée du pouce, même sur un petit écran */
.verif-actions { display: grid; gap: 12px; position: sticky; bottom: calc(-1 * var(--bas)); z-index: 2; padding: 16px 0 var(--bas); background: linear-gradient(transparent, var(--nuit) 16px); }
.verif-refuser { --fond: transparent; --coul: #FF9C9C; border: 2px solid rgba(255, 140, 140, .45); min-height: 60px; font-size: 17px; }

.verif-entete-droite { display: flex; align-items: center; gap: 10px; }
.verif-fermer { --fond: rgba(255, 255, 255, .1); --coul: #fff; width: 48px; min-height: 48px; }
.verif-temps-ligne.depasse { color: #FFB24A; }
.verif-temps-ligne.depasse svg { color: #FF8B8B; }
.verif-temps-ligne.depasse b { font-family: var(--f-texte); }
/* la confirmation (feuille du kit) passe au-dessus des écrans plein cadre */
.voile { z-index: 84; }
.feuille { z-index: 85; }

/* glisser pour valider */
.glissiere {
  --p: 0; position: relative; height: 84px; border-radius: 999px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none;
  background: #04122B; box-shadow: inset 0 0 0 2px rgba(19, 150, 90, .55), inset 0 10px 24px rgba(0, 0, 0, .5);
}
.gl-rempli { position: absolute; inset: 0 auto 0 0; width: 84px; border-radius: inherit; background: linear-gradient(90deg, var(--feuille-2), var(--feuille)); }
.gl-texte, .gl-envoi { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding-left: 84px; font: 800 20px/1 var(--f-titre); font-variation-settings: "wdth" 88; color: #fff; pointer-events: none; }
.gl-texte { opacity: calc(1 - var(--p) * 1.6); background: linear-gradient(90deg, #fff 0%, #fff 40%, #9BF2C4 50%, #fff 60%, #fff 100%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: luit 2.4s linear infinite; }
.gl-texte svg { width: 22px; height: 22px; stroke: #fff; }
.gl-envoi { opacity: 0; padding: 0 84px 0 0; }
.gl-poignee {
  position: absolute; left: 6px; top: 6px; width: 72px; height: 72px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; background: #fff; color: var(--feuille); cursor: grab; touch-action: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45); transition: transform .5s var(--ressort), background .2s;
}
.gl-poignee svg { width: 34px; height: 34px; fill: currentColor; stroke: none; }
.glissiere:not(.tire) .gl-rempli { transition: width .5s var(--ressort); }
.glissiere.tire .gl-poignee { transition: none; cursor: grabbing; transform-origin: center; }
.glissiere.tire .gl-rempli { transition: none; }
.glissiere.envoi .gl-texte { opacity: 0; }
.glissiere.envoi .gl-envoi { opacity: 1; }
.glissiere.envoi .gl-poignee { color: var(--feuille); }
.glissiere.envoi .gl-poignee svg { animation: pulse 1s ease-in-out infinite; }
.glissiere.indice .gl-poignee { animation: indice .7s var(--doux); }

/* succès */
.plein-succes { background: radial-gradient(120% 80% at 50% 0%, #1BB36C 0%, var(--feuille) 45%, var(--feuille-2) 100%); color: #fff; padding: 0; }
.succes { width: 100%; min-height: 100%; color: inherit; display: grid; justify-items: center; align-content: center; gap: 10px; text-align: center; padding: calc(24px + var(--haut)) 20px calc(24px + var(--bas)); }
.coche { width: 132px; height: 132px; margin-bottom: 6px; }
.coche circle, .coche path { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.coche circle { stroke-opacity: .35; animation: trace .5s var(--doux) forwards; }
.coche path { stroke-width: 10; animation: trace .45s .35s var(--doux) forwards; }
.succes-titre { font-size: clamp(44px, 12vw, 72px); }
.succes-servez { font: 700 16px/1 var(--f-texte); letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin-top: 8px; }
.succes-montant { font-size: clamp(56px, 16vw, 104px); }
.succes-code { font-size: 22px; margin-top: 6px; }
.succes-detail { font-size: 16px; font-weight: 600; opacity: .9; }
.succes .immat { background: rgba(255, 255, 255, .92); color: #0E1B33; border-color: transparent; }
.succes-retour { display: grid; justify-items: center; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 700; opacity: .8; }
.succes-retour i { display: block; width: 160px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .25); overflow: hidden; position: relative; }
.succes-retour i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: decompte var(--retour, 8s) linear forwards; }
/* le montant se lit tout de suite : rouleaux rapides, sans échelonnement */
.succes-montant .cpt-rouleau { transition-duration: .35s; transition-delay: 0s !important; }
.succes-suite { --fond: #fff; --coul: #0E5A36; width: min(100%, 360px); margin-top: 6px; min-height: 60px; font-size: 17px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); }

/* erreurs */
.plein-erreur { color: #fff; display: grid; }
.plein-erreur.ton-rouge { background: radial-gradient(120% 80% at 50% 0%, #E5484D 0%, #C42B2B 50%, #8E1B1B 100%); }
.plein-erreur.ton-orange { background: radial-gradient(120% 80% at 50% 0%, #FFA53A 0%, var(--pompe) 45%, var(--pompe-2) 100%); color: #1B0F00; }
.erreur-corps { max-width: 560px; width: 100%; margin: auto; display: grid; justify-items: center; gap: 14px; text-align: center; }
.erreur-icone { width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); animation: secoue .5s .1s; }
.erreur-icone svg { width: 60px; height: 60px; stroke-width: 2.4; }
.erreur-bandeau { margin: 4px 0 0; padding: 8px 18px; border-radius: 999px; background: #fff; color: #A11F1F; font: 800 16px/1 var(--f-texte); letter-spacing: .14em; text-transform: uppercase; }
.ton-orange .erreur-bandeau { background: #1B0F00; color: #FFB24A; }
.erreur-corps .titre-xl { font-size: clamp(40px, 11vw, 64px); }
.erreur-texte { margin: 0; font-size: 20px; line-height: 1.35; font-weight: 600; max-width: 30ch; }
.erreur-texte .code-bon { white-space: nowrap; }
.erreur-corps .code-geant { opacity: .85; }
.erreur-actions { display: grid; gap: 12px; width: 100%; margin-top: 12px; }
.erreur-actions .btn { min-height: 64px; font-size: 18px; }
.erreur-principal { --fond: #fff; --coul: #0E1B33; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); }
.erreur-secondaire { --fond: transparent; --coul: currentColor; border: 2px solid currentColor; opacity: .9; }
.ton-orange .erreur-principal { --fond: #1B0F00; --coul: #fff; }

/* ═════════════════ tablette ═════════════════ */
@media (min-width: 640px) {
  .grille-reglements { grid-template-columns: 1.3fr 1fr; }
}
@media (min-width: 900px) {
  .st-entete { padding-left: 24px; padding-right: 24px; }
  .st-total .compteur { font-size: 32px; }
  .panneau-scanner { grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); padding: 18px 24px calc(var(--h-onglets) + 8px); gap: 20px; }
  .scan-cote { display: grid; gap: 16px; align-content: start; overflow-y: auto; min-height: 0; }
  .viseur-cadre { --t: min(36vw, 50dvh, 340px); }
  .manuel { padding: 32px; }
  .verif { gap: 22px; padding-top: 10px; max-width: 820px; }
  .dernier-valide { display: none; } /* la tablette a déjà « Derniers bons validés » à côté */
  /* échelle tablette : lue à bout de bras, sur un support de piste */
  .st-ident-texte b { font-size: 22px; }
  .st-ident-texte > span, .st-entete .direct { font-size: 15px; }
  .st-total .surtitre { font-size: 12px; }
  .lb-montant { font-size: 24px; }
  .lb-org { font-size: 15px; }
  .lb-par { font-size: 14px; }
  .ligne-bon .statut { font-size: 13.5px; }
  .resume-chiffres span { font-size: 15px; }
  .station .onglet { font-size: 14px; }
  .verif-infos dt { font-size: 17px; }
  .verif-infos dd { font-size: 24px; }
  .verif-temps-ligne { font-size: 20px; }
}
/* petits écrans (hauteur) : la vérification reste lisible sans défiler jusqu'aux actions */
@media (max-height: 700px) {
  .verif { gap: 12px; }
  .verif-montant { padding: 0; }
  .verif-infos > div { padding: 9px 16px; }
  .verif-infos dd { font-size: 17px; }
  .verif-refuser { min-height: 52px; }
}

/* ═════════════════ animations ═════════════════ */
@keyframes respire { 50% { opacity: .55; } }
@keyframes balaie { from { top: 8%; } to { top: calc(92% - 3px); } }
@keyframes pleinIn { from { opacity: 0; transform: scale(.985); } }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes decompte { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes luit { to { background-position: -250% 0; } }
@keyframes indice { 35% { transform: translateX(46px); } 70% { transform: translateX(-4px); } }
@keyframes ligneMaj { 0% { background: color-mix(in srgb, var(--pompe) 24%, transparent); } 100% { background: transparent; } }
@keyframes ligneRegle { 0% { background: color-mix(in srgb, var(--feuille) 32%, transparent); transform: scale(1.015); } 100% { background: transparent; transform: none; } }
