@charset "UTF-8";
/* ==========================================================================
   « L'AVANT-POSTE » · système commun des pages web du serveur
   Matières : tôle rouillée, ruban de chantier, néon de fortune, papier kraft, tampons.
   Aucune ressource d'Internet : polices du système + les deux polices déjà livrées
   avec le mod (Font/), textures en dégradés CSS et en SVG écrit à la main.
   ========================================================================== */

@font-face { font-family: "ST Enseigne"; src: url(../Font/7DaysLater.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "ST Craie"; src: url(../Font/MorganChalk.woff) format("woff"); font-display: swap; }

:root {
  /* fonds et matières */
  --nuit: #0b0907; --suie: #130f0b; --charbon: #1b1510; --tole: #2a211a; --tole-claire: #3b2f25; --acier: #5c5247;
  --rouille: #8f3d14; --rouille-vive: #c9581d; --rouille-sombre: #4f2410;
  --kraft: #c9a26a; --kraft-clair: #e4cb9c; --kraft-ombre: #9a7443; --encre: #24170c;
  /* texte */
  --os: #f1e7d3; --cendre: #b3a691; --poussiere: #857968;
  /* couleurs de la marque (celles des messages du serveur) */
  --orange: #FF9933; --turquoise: #29D9BE; --or: #FFCC00; --vert: #009933; --vert-clair: #3fdc72;
  --rose: #FF33CC; --rouge: #FF0000; --sang: #c22a1f; --sang-sombre: #7d1710;
  /* qualités du jeu (1 à 8) */
  --q1: #C2C2A3; --q2: #FF751A; --q3: #E6E600; --q4: #33CC33; --q5: #3d8bff; --q6: #c94bf0; --q7: #FF8400; --q8: #E6C300;
  /* typographie */
  --p-titre: Bahnschrift, "DIN Alternate", "DIN Condensed", "Roboto Condensed", "Arial Narrow", "Franklin Gothic Medium", Impact, sans-serif;
  --p-enseigne: "ST Enseigne", Bahnschrift, Impact, "Arial Narrow", sans-serif;
  --p-texte: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --p-chiffre: "Cascadia Mono", Consolas, "Lucida Console", "DejaVu Sans Mono", Menlo, monospace;
  --p-machine: "Courier New", Courier, monospace;
  --p-main: "Ink Free", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  /* mesures */
  --rayon: 3px; --trait: 2px; --marge: clamp(14px, 2.2vw, 40px); --tete: 84px;
  --ombre: 0 10px 30px rgba(0, 0, 0, .55), 0 2px 0 rgba(255, 255, 255, .04) inset;
  --lueur-t: 0 0 2px #fff, 0 0 8px var(--turquoise), 0 0 22px rgba(41, 217, 190, .65), 0 0 46px rgba(41, 217, 190, .35);
  --lueur-o: 0 0 2px #fff, 0 0 8px var(--orange), 0 0 22px rgba(255, 153, 51, .65), 0 0 46px rgba(255, 153, 51, .35);
  --lueur-r: 0 0 2px #fff, 0 0 8px var(--rose), 0 0 22px rgba(255, 51, 204, .6), 0 0 46px rgba(255, 51, 204, .3);
  /* textures (SVG écrit à la main, embarqué) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 -.05'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E");
  --rouille-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='r' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .02' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .62 0 0 0 0 .25 0 0 0 0 .06 1.9 0 0 0 -.95'/%3E%3C/filter%3E%3Crect width='520' height='520' filter='url(%23r)'/%3E%3C/svg%3E");
  --usure: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='u' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.06 .35' numOctaves='3' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2.4 0 0 0 -.62'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23u)'/%3E%3C/svg%3E");
  --barbele: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='18' viewBox='0 0 96 18'%3E%3Cg fill='none' stroke='%23a3927c' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M0 8c12-3 24 3 36 0s24-3 36 0 16 2 24 0'/%3E%3Cpath d='M0 10c12 3 24-3 36 0s24 3 36 0 16-2 24 0' stroke='%236b5d4d'/%3E%3Cpath d='M22 9l-5-7M22 9l5 7M22 9l-6 5M22 9l6-5M70 9l-5-7M70 9l5 7M70 9l-6 5M70 9l6-5' stroke='%23c9b89e'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.st {
  margin: 0; min-height: 100%; color: var(--os); font: 16px/1.5 var(--p-texte); background-color: var(--nuit);
  background-image:
    var(--grain),
    radial-gradient(ellipse 80% 55% at 50% -8%, rgba(255, 153, 51, .16), transparent 62%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(41, 217, 190, .07), transparent 60%),
    var(--rouille-tex),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .028) 0 2px, transparent 2px 30px, rgba(0, 0, 0, .28) 30px 34px, transparent 34px 64px),
    linear-gradient(180deg, #17120d, #0b0907 70%);
  background-attachment: fixed; background-size: 240px 240px, auto, auto, 520px 520px, auto, auto;
  background-blend-mode: overlay, normal, normal, multiply, normal, normal;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--orange); color: #1a0f04; }
img { max-width: 100%; display: block; }
a { color: var(--turquoise); text-underline-offset: 3px; }
a:hover { color: #7ff0de; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 3px; box-shadow: 0 0 0 5px rgba(41, 217, 190, .22); border-radius: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #0d0a08; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #6a4a2c, #3d2b1c); border: 2px solid #0d0a08; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--orange), var(--rouille)); }

/* ---------- typographie ---------- */
.t-titre, h1, h2, h3, h4 { font-family: var(--p-titre); font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: .045em; line-height: 1.02; margin: 0; }
h1, .t-1 { font-size: clamp(34px, 4.6vw, 84px); }
h2, .t-2 { font-size: clamp(26px, 2.8vw, 46px); }
h3, .t-3 { font-size: clamp(19px, 1.6vw, 26px); }
h4, .t-4 { font-size: 15px; letter-spacing: .12em; }
/* une capitale accentuée a besoin d'air sous un surtitre */
.t-sur + h1, .t-sur + h2, .t-sur + h3 { margin-top: .2em; }
p { margin: 0 0 .8em; }
.t-enseigne { font-family: var(--p-enseigne); font-stretch: normal; font-weight: 400; letter-spacing: .03em; text-transform: uppercase; }
.t-chiffre { font-family: var(--p-titre); font-stretch: 75%; font-weight: 700; font-variant-numeric: tabular-nums lining-nums; letter-spacing: .02em; }
.t-fiche { font-family: var(--p-chiffre); font-variant-numeric: tabular-nums; }
.t-machine { font-family: var(--p-machine); font-weight: 700; letter-spacing: .02em; }
.t-main { font-family: var(--p-main); font-weight: 700; letter-spacing: .01em; }
.t-sur { font-family: var(--p-titre); font-stretch: 75%; font-weight: 600; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--orange); }
.t-sourdine { color: var(--cendre); }
.t-or { color: var(--or); } .t-turquoise { color: var(--turquoise); } .t-orange { color: var(--orange); } .t-rouge { color: #ff6b5e; } .t-vert { color: var(--vert-clair); }
kbd { font: 700 12px/1 var(--p-chiffre); padding: 4px 6px 5px; border: 1px solid #6b5d4d; border-bottom-width: 3px; border-radius: 4px; background: #1d1712; color: var(--os); white-space: nowrap; }
code, .commande { font: 700 .92em var(--p-chiffre); color: var(--turquoise); background: rgba(41, 217, 190, .09); border: 1px solid rgba(41, 217, 190, .3); padding: 1px 7px 2px; border-radius: 2px; white-space: nowrap; }

/* ---------- néon de fortune ---------- */
.neon { font-family: var(--p-titre); font-stretch: 75%; font-weight: 300; text-transform: uppercase; letter-spacing: .14em; color: #eafffb; text-shadow: var(--lueur-t); }
.neon--orange { color: #fff3e2; text-shadow: var(--lueur-o); }
.neon--rose { color: #ffe9fa; text-shadow: var(--lueur-r); }
.neon__panne { animation: neon-panne 7s infinite; }
@keyframes neon-panne { 0%, 41%, 43%, 45%, 78%, 80%, 100% { opacity: 1; } 42%, 44%, 79% { opacity: .28; text-shadow: none; } }
.tube { border: 2px solid #dffff9; border-radius: 10px; box-shadow: 0 0 6px var(--turquoise), 0 0 22px rgba(41, 217, 190, .5), inset 0 0 6px var(--turquoise), inset 0 0 18px rgba(41, 217, 190, .28); }
.tube--orange { border-color: #fff0dc; box-shadow: 0 0 6px var(--orange), 0 0 22px rgba(255, 153, 51, .5), inset 0 0 6px var(--orange), inset 0 0 18px rgba(255, 153, 51, .28); }

/* ---------- tôle ---------- */
.tole {
  position: relative; color: var(--os); border: 1px solid #000; border-radius: var(--rayon);
  background-color: var(--tole);
  background-image: var(--grain), var(--rouille-tex),
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 18%, rgba(0, 0, 0, .28));
  background-size: 240px 240px, 420px 420px, auto; background-blend-mode: overlay, multiply, normal;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .09) inset, 0 -2px 0 rgba(0, 0, 0, .45) inset, 0 14px 34px rgba(0, 0, 0, .55);
}
.tole--ondulee { background-image: var(--grain), var(--rouille-tex),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 3px, rgba(255, 255, 255, 0) 3px 14px, rgba(0, 0, 0, .34) 14px 18px, rgba(0, 0, 0, 0) 18px 28px),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(0, 0, 0, .3));
  background-size: 240px 240px, 420px 420px, auto, auto; background-blend-mode: overlay, multiply, normal, normal; }
.tole--sombre { background-color: #17120e; }
.tole--acier { background-color: #3a3632; }
/* rivets aux quatre coins */
.rivets::before {
  content: ""; position: absolute; inset: 7px; pointer-events: none; z-index: 1;
  background:
    radial-gradient(circle at 35% 30%, #cdbfa9 0 1.2px, #6f6253 1.8px 3.6px, #1a1410 4.2px 5px, transparent 5.4px) 0 0 / 12px 12px no-repeat,
    radial-gradient(circle at 35% 30%, #cdbfa9 0 1.2px, #6f6253 1.8px 3.6px, #1a1410 4.2px 5px, transparent 5.4px) 100% 0 / 12px 12px no-repeat,
    radial-gradient(circle at 35% 30%, #cdbfa9 0 1.2px, #6f6253 1.8px 3.6px, #1a1410 4.2px 5px, transparent 5.4px) 0 100% / 12px 12px no-repeat,
    radial-gradient(circle at 35% 30%, #cdbfa9 0 1.2px, #6f6253 1.8px 3.6px, #1a1410 4.2px 5px, transparent 5.4px) 100% 100% / 12px 12px no-repeat;
}
/* coins coupés (plaque découpée à la disqueuse) */
.biseau { clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.biseau-g { clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%, 0 22px); }

/* ---------- ruban de chantier ---------- */
.ruban {
  --r1: var(--or); --r2: #15120e; height: 18px; flex: none;
  background-image: var(--usure), repeating-linear-gradient(-45deg, var(--r1) 0 16px, var(--r2) 16px 32px);
  background-size: 300px 300px, auto; box-shadow: 0 2px 0 rgba(0, 0, 0, .5), 0 -1px 0 rgba(255, 255, 255, .12) inset;
}
.ruban--fin { height: 8px; background-image: repeating-linear-gradient(-45deg, var(--r1) 0 8px, var(--r2) 8px 16px); }
.ruban--rouge { --r1: var(--sang); --r2: #f1e7d3; }
.ruban.ruban--texte {
  height: auto; padding: 6px 0 5px; overflow: hidden; white-space: nowrap; color: #1a1408;
  background: #f2c21a linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(0, 0, 0, .1)); font: 700 14px/1.3 var(--p-titre); font-stretch: 75%; letter-spacing: .2em; text-transform: uppercase;
  border-top: 2px solid #15120e; border-bottom: 2px solid #15120e; box-shadow: 0 3px 10px rgba(0, 0, 0, .5);
}
.ruban--texte > span { display: inline-block; padding-left: 100%; animation: defile 60s linear infinite; }
@keyframes defile { to { transform: translateX(-100%); } }
.barbele { height: 18px; background: var(--barbele) repeat-x center / 96px 18px; opacity: .8; }

/* ---------- papier kraft ---------- */
.kraft {
  position: relative; color: var(--encre); background-color: var(--kraft);
  background-image: var(--grain), repeating-linear-gradient(93deg, rgba(90, 58, 22, .09) 0 1px, transparent 1px 5px), linear-gradient(160deg, var(--kraft-clair), var(--kraft) 45%, var(--kraft-ombre));
  background-size: 240px 240px, auto, auto; background-blend-mode: multiply, normal, normal;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .35) inset;
}
.kraft a { color: #7a2a0a; }
.kraft .t-sourdine { color: #6a4e2b; }
.kraft code, .kraft .commande { color: #5b1d08; background: rgba(60, 30, 5, .12); border-color: rgba(60, 30, 5, .35); }
.kraft--dechire { clip-path: polygon(0 3px, 4% 0, 9% 4px, 15% 1px, 22% 3px, 30% 0, 38% 2px, 47% 0, 55% 3px, 63% 1px, 72% 4px, 80% 0, 88% 2px, 95% 0, 100% 3px, 100% 100%, 0 100%); }
/* étiquette suspendue avec œillet */
.etiquette {
  position: relative; display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px 7px 26px; color: var(--encre);
  font: 700 22px/1 var(--p-titre); font-stretch: 75%; letter-spacing: .02em; font-variant-numeric: tabular-nums;
  background: radial-gradient(circle at 13px 50%, transparent 0 3.2px, rgba(60, 35, 10, .65) 3.4px 4.6px, transparent 5px),
    var(--grain), linear-gradient(160deg, var(--kraft-clair), var(--kraft) 55%, var(--kraft-ombre));
  background-size: auto, 240px 240px, auto; background-blend-mode: normal, multiply, normal;
  clip-path: polygon(11px 0, 100% 0, 100% 100%, 11px 100%, 0 50%); filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .55));
}
.etiquette small { font: 700 11px/1 var(--p-titre); font-stretch: 75%; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
/* ruban adhésif */
.scotch { position: absolute; width: 86px; height: 26px; background: linear-gradient(180deg, rgba(240, 228, 196, .58), rgba(214, 198, 160, .46)); box-shadow: 0 2px 4px rgba(0, 0, 0, .35); transform: rotate(-4deg); clip-path: polygon(0 0, 3% 12%, 0 24%, 3% 38%, 0 52%, 3% 66%, 0 80%, 3% 92%, 0 100%, 100% 100%, 97% 88%, 100% 76%, 97% 62%, 100% 48%, 97% 34%, 100% 20%, 97% 8%, 100% 0); }
/* étiquette gaufrée (titreuse) */
.dymo { display: inline-block; max-width: 100%; padding: 4px 9px 3px; background: linear-gradient(180deg, #23201d, #0d0c0b); color: #f4efe6; font: 700 12px/1.25 var(--p-titre); font-stretch: 75%; letter-spacing: .13em; text-transform: uppercase; border-radius: 1px; box-shadow: 0 1px 0 rgba(255, 255, 255, .16) inset, 0 2px 4px rgba(0, 0, 0, .6); text-shadow: 0 1px 0 #000, 0 -1px 0 rgba(255, 255, 255, .18); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dymo--rouge { background: linear-gradient(180deg, #a3231a, #6f140e); } .dymo--bleu { background: linear-gradient(180deg, #1d5aa6, #123a70); } .dymo--vert { background: linear-gradient(180deg, #17703a, #0d4724); }

/* ---------- tampons ---------- */
.tampon {
  --c: var(--sang); display: inline-block; padding: 5px 14px 3px; color: var(--c); border: 3px solid var(--c); border-radius: 5px; outline: 1px solid var(--c); outline-offset: 2px;
  font: 700 20px/1 var(--p-titre); font-stretch: 75%; letter-spacing: .16em; text-transform: uppercase; transform: rotate(-7deg); white-space: nowrap;
  -webkit-mask-image: var(--usure); mask-image: var(--usure); -webkit-mask-size: 190px 190px; mask-size: 190px 190px; opacity: .92; pointer-events: none;
}
.tampon--vert { --c: #1d8a42; } .tampon--bleu { --c: #1b5fae; } .tampon--or { --c: var(--or); } .tampon--turquoise { --c: var(--turquoise); } .tampon--os { --c: var(--os); }
.tampon--rond { border-radius: 50%; padding: 18px 10px; text-align: center; white-space: normal; width: 104px; height: 104px; font-size: 15px; line-height: 1.05; display: inline-grid; place-items: center; }
@keyframes tampon-frappe { 0% { transform: scale(2.6) rotate(-18deg); opacity: 0; } 60% { transform: scale(.94) rotate(-7deg); opacity: 1; } 100% { transform: scale(1) rotate(-7deg); opacity: .92; } }
.tampon--frappe { animation: tampon-frappe .38s cubic-bezier(.2, .9, .3, 1.2) both; }

/* ---------- boutons ---------- */
.btn {
  --fond1: #4a3a2c; --fond2: #2a2019; --bord: #0a0806; --texte: var(--os);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px;
  font: 700 17px/1 var(--p-titre); font-stretch: 75%; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--texte);
  border: 1px solid var(--bord); border-radius: var(--rayon);
  background-image: var(--grain), linear-gradient(180deg, var(--fond1), var(--fond2)); background-size: 240px 240px, auto; background-blend-mode: overlay, normal;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 -3px 0 rgba(0, 0, 0, .38) inset, 0 5px 0 #090705, 0 9px 16px rgba(0, 0, 0, .5);
  transition: transform .08s, box-shadow .08s, filter .15s; -webkit-tap-highlight-color: transparent; user-select: none; white-space: nowrap;
}
.btn:hover { filter: brightness(1.14); color: var(--texte); }
.btn:active, .btn.est-enfonce { transform: translateY(4px); box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 -1px 0 rgba(0, 0, 0, .4) inset, 0 1px 0 #090705, 0 2px 6px rgba(0, 0, 0, .5); }
.btn[disabled], .btn.est-inactif { filter: grayscale(.9) brightness(.62); cursor: not-allowed; pointer-events: none; }
.btn--feu { --fond1: #ffb04a; --fond2: #d7600f; --bord: #5a2606; --texte: #1c0f04; text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.btn--feu:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 -3px 0 rgba(0, 0, 0, .3) inset, 0 5px 0 #4a1f05, 0 0 26px rgba(255, 153, 51, .55); }
.btn--turquoise { --fond1: #5cf0d8; --fond2: #129e88; --bord: #064339; --texte: #04201b; text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.btn--turquoise:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 -3px 0 rgba(0, 0, 0, .3) inset, 0 5px 0 #05332c, 0 0 26px rgba(41, 217, 190, .55); }
.btn--danger { --fond1: #e0483a; --fond2: #8c1a11; --bord: #3d0a06; --texte: #fff4ee; }
.btn--or { --fond1: #ffe066; --fond2: #d7a300; --bord: #5a4300; --texte: #1c1502; text-shadow: 0 1px 0 rgba(255, 255, 255, .4); }
.btn--fantome { --texte: var(--os); background: transparent; border: 2px dashed rgba(241, 231, 211, .42); box-shadow: none; }
.btn--fantome:hover { border-color: var(--turquoise); color: var(--turquoise); filter: none; background: rgba(41, 217, 190, .07); }
.btn--fantome:active { transform: translateY(1px); box-shadow: none; }
.btn--petit { min-height: 34px; padding: 0 13px; font-size: 14px; gap: 7px; box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 -2px 0 rgba(0, 0, 0, .38) inset, 0 3px 0 #090705; }
.btn--petit:active { transform: translateY(2px); }
.btn--grand { min-height: 62px; padding: 0 34px; font-size: 23px; }
.btn--bloc { display: flex; width: 100%; }
.btn--icone { width: 46px; padding: 0; }
.btn--icone.btn--petit { width: 34px; }
.btn .pastille-n { position: absolute; top: -9px; right: -9px; }
.btn.charge { color: transparent !important; text-shadow: none; pointer-events: none; }
.btn.charge::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(0, 0, 0, .3); border-top-color: #fff; animation: tourne .7s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.pastille-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--rouge); color: #fff; font: 700 13px/22px var(--p-titre); text-align: center; box-shadow: 0 0 0 2px #120d09, 0 0 12px rgba(255, 0, 0, .7); letter-spacing: 0; }

/* ---------- champs ---------- */
.champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.champ > label, .libelle { font: 700 12px/1 var(--p-titre); font-stretch: 75%; letter-spacing: .2em; text-transform: uppercase; color: var(--cendre); }
.saisie, select.saisie {
  width: 100%; min-height: 44px; padding: 0 14px; color: var(--os); background: #0d0a08; border: 1px solid #000; border-radius: var(--rayon);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .7) inset, 0 1px 0 rgba(255, 255, 255, .09); font: 500 16px var(--p-texte); transition: box-shadow .15s, border-color .15s;
}
.saisie::placeholder { color: #6f6455; }
.saisie:hover { border-color: #5a4a3a; }
.saisie:focus, .saisie:focus-visible { outline: none; border-color: var(--turquoise); box-shadow: 0 2px 6px rgba(0, 0, 0, .7) inset, 0 0 0 3px rgba(41, 217, 190, .22), 0 0 18px rgba(41, 217, 190, .25); }
.saisie[aria-invalid="true"] { border-color: var(--sang); box-shadow: 0 2px 6px rgba(0, 0, 0, .7) inset, 0 0 0 3px rgba(194, 42, 31, .28); }
select.saisie { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--orange) 50%), linear-gradient(135deg, var(--orange) 50%, transparent 50%); background-position: calc(100% - 19px) 19px, calc(100% - 13px) 19px; background-size: 6px 6px; background-repeat: no-repeat; }
select.saisie option { background: #17120e; color: var(--os); }
.saisie--recherche { padding-left: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23b3a691' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 13px 50%; }
.aide { font-size: 13px; color: var(--cendre); }
.aide--erreur { color: #ff8478; }
/* interrupteur à bascule */
.bascule { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font: 700 14px/1 var(--p-titre); font-stretch: 75%; letter-spacing: .12em; text-transform: uppercase; }
.bascule input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.bascule i { position: relative; flex: none; width: 50px; height: 26px; border-radius: 3px; background: #0b0806; border: 1px solid #000; box-shadow: 0 2px 5px rgba(0, 0, 0, .8) inset, 0 1px 0 rgba(255, 255, 255, .1); }
.bascule i::before { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 20px; border-radius: 2px; background: linear-gradient(180deg, #8c7f6f, #4a4036); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 2px 4px rgba(0, 0, 0, .6); transition: transform .16s cubic-bezier(.3, 1.4, .5, 1); }
.bascule i::after { content: ""; position: absolute; right: 7px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: #3a1410; box-shadow: 0 0 0 1px #000; transition: background .16s, box-shadow .16s, right .16s; }
.bascule input:checked + i::before { transform: translateX(24px); background: linear-gradient(180deg, #7ff0de, #129e88); }
.bascule input:checked + i::after { right: 35px; background: var(--vert-clair); box-shadow: 0 0 0 1px #000, 0 0 10px var(--vert-clair); }
.bascule input:focus-visible + i { outline: 2px solid var(--turquoise); outline-offset: 3px; }
/* compteur de quantité */
.pas { display: inline-flex; align-items: stretch; border: 1px solid #000; border-radius: var(--rayon); background: #0d0a08; box-shadow: 0 2px 6px rgba(0, 0, 0, .7) inset; }
.pas button { width: 40px; border: 0; background: linear-gradient(180deg, #4a3a2c, #2a2019); color: var(--os); font: 700 22px/1 var(--p-titre); }
.pas button:hover { background: linear-gradient(180deg, var(--orange), var(--rouille-vive)); color: #1c0f04; }
.pas input { width: 62px; min-height: 42px; border: 0; background: transparent; text-align: center; font: 700 22px var(--p-titre); font-stretch: 75%; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.pas input::-webkit-outer-spin-button, .pas input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* puces à choix (filtres) */
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 13px; border: 1px solid #000; border-radius: 2px; color: var(--cendre);
  background: linear-gradient(180deg, #2c231b, #1a1410); box-shadow: 0 1px 0 rgba(255, 255, 255, .09) inset, 0 3px 0 #070504;
  font: 700 14px/1 var(--p-titre); font-stretch: 75%; letter-spacing: .12em; text-transform: uppercase; transition: color .12s, transform .08s, box-shadow .12s;
}
.puce:hover { color: var(--os); }
.puce[aria-pressed="true"], .puce.est-actif { color: #17120c; background: linear-gradient(180deg, #ffd24a, #e39a12); transform: translateY(2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 1px 0 #070504, 0 0 18px rgba(255, 204, 0, .32); }
.puce b { font-weight: 700; opacity: .65; font-variant-numeric: tabular-nums; }
.puce .ico { width: 18px; height: 18px; }

/* ---------- icônes ---------- */
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico--plein { fill: currentColor; stroke: none; }
.ico--g { width: 34px; height: 34px; } .ico--tg { width: 56px; height: 56px; stroke-width: 1.6; }

/* ---------- jetons (monnaies) ---------- */
.jeton {
  --j1: #ffe58a; --j2: #c99400; --j3: #6f5200; position: relative; display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; color: #3a2a00;
  background: radial-gradient(circle at 34% 28%, var(--j1), var(--j2) 58%, var(--j3)); box-shadow: 0 0 0 1.5px var(--j3), 0 2px 4px rgba(0, 0, 0, .7), 0 0 0 3.5px rgba(0, 0, 0, .28) inset;
}
.jeton::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 1.5px dashed rgba(0, 0, 0, .38); }
.jeton .ico { width: 58%; height: 58%; stroke-width: 2.4; position: relative; z-index: 1; }
.jeton--S { --j1: #ff8d80; --j2: #b3261e; --j3: #4f0d09; color: #2a0503; }
.jeton--I { --j1: #d9ff7a; --j2: #62b312; --j3: #24480a; color: #10250a; box-shadow: 0 0 0 1.5px var(--j3), 0 2px 4px rgba(0, 0, 0, .7), 0 0 0 3.5px rgba(0, 0, 0, .28) inset, 0 0 12px rgba(150, 255, 60, .45); }
.jeton--T { --j1: #fff3b8; --j2: #e0a800; --j3: #6a4a00; }
.jeton--g { width: 54px; height: 54px; } .jeton--g::after { inset: 5px; border-width: 2px; }
.jeton--p { width: 22px; height: 22px; } .jeton--p::after { inset: 2px; border-width: 1px; }
.prix { display: inline-flex; align-items: center; gap: 7px; font: 700 20px/1 var(--p-titre); font-stretch: 75%; font-variant-numeric: tabular-nums; letter-spacing: .02em; white-space: nowrap; }
.prix small { font-size: .6em; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.tarif { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.tarif__ligne { display: inline-flex; align-items: center; gap: 7px; font: 700 20px/1 var(--p-titre); font-stretch: 75%; font-variant-numeric: tabular-nums; }
.tarif__ligne small { font: 600 11px/1.1 var(--p-titre); font-stretch: 75%; letter-spacing: .12em; text-transform: uppercase; color: var(--cendre); max-width: 8em; }

/* ---------- compteur mécanique (solde) ---------- */
.compteur { display: inline-flex; gap: 2px; padding: 4px; background: #070504; border: 1px solid #000; border-radius: 3px; box-shadow: 0 1px 0 rgba(255, 255, 255, .14), 0 2px 6px rgba(0, 0, 0, .8) inset; }
.compteur span { position: relative; display: grid; place-items: center; width: 21px; height: 32px; color: var(--or); font: 700 23px/1 var(--p-titre); font-stretch: 75%; font-variant-numeric: tabular-nums; border-radius: 2px; background: linear-gradient(180deg, #050403, #2a231c 46%, #110d0a 54%, #050403); text-shadow: 0 0 10px rgba(255, 204, 0, .45); overflow: hidden; }
.compteur span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .7); }
.compteur span.vide { color: #3a3128; text-shadow: none; }
.compteur span.roule { animation: roule .45s cubic-bezier(.2, .8, .3, 1); }
@keyframes roule { 0% { transform: translateY(-70%); opacity: .2; } 100% { transform: none; opacity: 1; } }

/* ---------- jauges ---------- */
.jauge { --v: 0; --c1: var(--turquoise); --c2: #7ff0de; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 3px 12px; }
.jauge__nom { display: flex; align-items: center; gap: 8px; font: 700 13px/1 var(--p-titre); font-stretch: 75%; letter-spacing: .18em; text-transform: uppercase; color: var(--cendre); }
.jauge__valeur { font: 700 24px/1 var(--p-titre); font-stretch: 75%; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.jauge__valeur small { font-size: 12px; letter-spacing: .14em; color: var(--cendre); margin-left: 4px; }
.jauge__piste { grid-column: 1 / -1; position: relative; height: 14px; background: #070504; border: 1px solid #000; border-radius: 1px; box-shadow: 0 2px 4px rgba(0, 0, 0, .9) inset, 0 1px 0 rgba(255, 255, 255, .08); overflow: visible; }
.jauge__piste::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(255, 255, 255, .16) calc(10% - 1px) 10%); z-index: 2; pointer-events: none; }
.jauge__plein { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 1%); background: linear-gradient(90deg, var(--c1), var(--c2)); box-shadow: 0 0 12px var(--c1); transform-origin: left; animation: jauge-monte .7s cubic-bezier(.2, .8, .2, 1) both; }
.jauge__plein::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .45), transparent 45%); }
@keyframes jauge-monte { from { transform: scaleX(0); } }
.jauge__repere { position: absolute; top: -5px; bottom: -5px; left: calc(var(--m) * 1%); width: 2px; background: var(--os); z-index: 3; box-shadow: 0 0 0 1px rgba(0, 0, 0, .7); }
.jauge__repere::after { content: attr(data-l); position: absolute; top: -15px; left: 50%; transform: translateX(-50%); font: 700 9px/1 var(--p-titre); font-stretch: 75%; letter-spacing: .14em; color: var(--cendre); white-space: nowrap; }
.jauge__rang { grid-column: 1 / -1; font: 600 11px/1.2 var(--p-titre); font-stretch: 75%; letter-spacing: .14em; text-transform: uppercase; color: var(--poussiere); }
.jauge--or { --c1: #e39a12; --c2: var(--or); } .jauge--orange { --c1: #d7600f; --c2: var(--orange); } .jauge--rose { --c1: #b3148a; --c2: var(--rose); } .jauge--vert { --c1: var(--vert); --c2: var(--vert-clair); } .jauge--rouge { --c1: #8c1a11; --c2: #ff5a4a; }
.jauge--fine .jauge__piste { height: 6px; } .jauge--fine .jauge__valeur { font-size: 16px; }
.jauge.est-meilleur .jauge__valeur { color: var(--or); text-shadow: 0 0 14px rgba(255, 204, 0, .5); }

/* ---------- qualité ---------- */
.qualite { --q: var(--q1); display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1 var(--p-titre); font-stretch: 75%; letter-spacing: .16em; text-transform: uppercase; color: var(--q); }
.qualite::before { content: ""; width: 10px; height: 10px; transform: rotate(45deg); background: var(--q); box-shadow: 0 0 9px var(--q); }
.q-1 { --q: var(--q1); } .q-2 { --q: var(--q2); } .q-3 { --q: var(--q3); } .q-4 { --q: var(--q4); } .q-5 { --q: var(--q5); } .q-6 { --q: var(--q6); } .q-7 { --q: var(--q7); } .q-8 { --q: var(--q8); }

/* ---------- voyants ---------- */
.voyant { --c: var(--poussiere); display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #fff, var(--c) 45%, #000 130%); box-shadow: 0 0 0 2px #0a0806, 0 0 0 3px #4a4036, 0 0 12px var(--c); }
.voyant--vert { --c: var(--vert-clair); } .voyant--orange { --c: var(--orange); } .voyant--rouge { --c: var(--rouge); } .voyant--turquoise { --c: var(--turquoise); }
.voyant--eteint { --c: #3a3128; box-shadow: 0 0 0 2px #0a0806, 0 0 0 3px #4a4036; background: radial-gradient(circle at 35% 30%, #6a5d4f, #2a231c 60%); }
.voyant--bat { animation: bat 1.1s steps(2, end) infinite; }
@keyframes bat { 50% { opacity: .25; } }

/* ---------- en-tête commun ---------- */
.entete { position: sticky; top: 0; z-index: 40; }
.entete__barre { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 26px); min-height: var(--tete); padding: 8px var(--marge); border-radius: 0; border-width: 0 0 1px; }
.marque { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; max-width: 46%; min-width: 0; text-decoration: none; color: inherit; }
.marque__logo { width: 66px; height: 66px; flex: none; border-radius: 50%; background: radial-gradient(circle, #f4ecdc 0 60%, #cdbfa9 70%, #6f6253 71%); box-shadow: 0 0 0 2px #0a0806, 0 0 0 4px #6f6253, 0 6px 14px rgba(0, 0, 0, .7); padding: 2px; }
.marque__logo img { width: 100%; height: 100%; border-radius: 50%; }
.marque__mots { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.marque__famille { font: 700 11px/1 var(--p-titre); font-stretch: 75%; letter-spacing: .34em; text-transform: uppercase; color: var(--cendre); white-space: nowrap; }
.marque__poste { font-family: var(--p-titre); font-stretch: 75%; font-weight: 300; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.22; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entete__nav { display: flex; align-items: stretch; gap: 4px; align-self: stretch; margin: -8px 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.entete__nav::-webkit-scrollbar { display: none; }
.entete__droite { flex: 0 0 auto; }
.entete__droite { margin-left: auto; display: flex; align-items: center; gap: clamp(8px, 1.2vw, 18px); }
.onglet {
  position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 0 18px; border: 0; background: none; color: var(--cendre); text-decoration: none;
  font: 700 17px/1 var(--p-titre); font-stretch: 75%; letter-spacing: .16em; text-transform: uppercase; transition: color .12s; white-space: nowrap;
}
.onglet::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 5px; background: var(--orange); box-shadow: 0 0 14px var(--orange); transform: scaleX(0); transition: transform .18s cubic-bezier(.2, .9, .3, 1.2); }
.onglet:hover { color: var(--os); }
.onglet[aria-current="page"], .onglet.est-actif { color: #fff3e2; text-shadow: 0 0 12px rgba(255, 153, 51, .7); }
.onglet[aria-current="page"]::after, .onglet.est-actif::after { transform: none; }
.onglet b { font-weight: 700; font-size: 12px; padding: 3px 6px 2px; border-radius: 2px; background: rgba(255, 255, 255, .09); color: var(--os); letter-spacing: .06em; }
/* plaque d'identité du joueur */
.plaque { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 14px; border-radius: 22px 6px 6px 22px; color: #1b1612; max-width: 260px;
  background: linear-gradient(180deg, #d9d2c6, #9a9288 55%, #7c756c); box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 -2px 0 rgba(0, 0, 0, .25) inset, 0 4px 10px rgba(0, 0, 0, .6); }
.plaque::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #120d09; box-shadow: 0 1px 0 rgba(255, 255, 255, .6); flex: none; }
.plaque span { font: 700 17px/1.4 var(--p-titre); font-stretch: 75%; letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.solde { display: flex; align-items: center; gap: 9px; }
.solde__nom { font: 700 11px/1.1 var(--p-titre); font-stretch: 75%; letter-spacing: .2em; text-transform: uppercase; color: var(--cendre); text-align: right; }
.solde__nom b { display: block; color: var(--or); font-size: 13px; }

/* ---------- panneaux, tiroirs, fenêtres ---------- */
.panneau { padding: clamp(16px, 1.6vw, 26px); }
.panneau__titre { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.panneau__titre::after { content: ""; flex: 1; height: 8px; background-image: repeating-linear-gradient(-45deg, var(--or) 0 8px, #15120e 8px 16px); opacity: .85; }
.voile { position: fixed; inset: 0; z-index: 80; background: rgba(6, 4, 3, .86); display: grid; place-items: center; padding: 16px; animation: voile .18s both; overflow: auto; }
@keyframes voile { from { opacity: 0; } }
.fenetre { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: fenetre .26s cubic-bezier(.2, .9, .3, 1.15) both; }
.fenetre--large { width: min(900px, 100%); }
@keyframes fenetre { from { transform: translateY(22px) scale(.96); opacity: 0; } }
.fenetre__tete { display: flex; align-items: center; gap: 12px; padding: 14px 18px 12px; border-bottom: 1px solid #000; }
.fenetre__tete > div { flex: 1; min-width: 0; }
.fenetre__tete h3 { flex: 1; }
.fenetre__corps { padding: 18px; overflow: auto; }
.fenetre__pied { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding: 14px 18px 20px; border-top: 1px solid rgba(0, 0, 0, .6); }
.tiroir { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(480px, 100vw); display: flex; flex-direction: column; border-radius: 0; border-width: 0 0 0 1px; transform: translateX(104%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); box-shadow: -24px 0 60px rgba(0, 0, 0, .7); }
.tiroir.est-ouvert { transform: none; }
.tiroir__tete { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.tiroir__corps { flex: 1; overflow: auto; padding: 4px 18px 18px; }
.tiroir__pied { padding: 16px 18px 20px; border-top: 1px solid #000; background: rgba(0, 0, 0, .28); }
.fermer { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #000; border-radius: var(--rayon); background: linear-gradient(180deg, #4a3a2c, #2a2019); color: var(--os); box-shadow: 0 1px 0 rgba(255, 255, 255, .16) inset, 0 3px 0 #090705; flex: none; }
.fermer:hover { background: linear-gradient(180deg, #e0483a, #8c1a11); }

/* ---------- messages (talkie) ---------- */
.talkies { position: fixed; z-index: 120; right: 16px; top: calc(var(--tete) + 46px); display: flex; flex-direction: column; gap: 10px; width: min(430px, calc(100vw - 32px)); pointer-events: none; }
.talkie { --c: var(--turquoise); pointer-events: auto; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 13px 14px 13px 12px; border-left: 6px solid var(--c); animation: talkie .32s cubic-bezier(.2, .9, .3, 1.15) both; }
.talkie b { display: block; font: 700 16px/1.1 var(--p-titre); font-stretch: 75%; letter-spacing: .12em; text-transform: uppercase; color: var(--c); margin-bottom: 3px; }
.talkie p { margin: 0; font-size: 14.5px; line-height: 1.4; color: var(--os); }
.talkie .ico { color: var(--c); margin-top: 1px; }
.talkie button { border: 0; background: none; color: var(--cendre); padding: 2px; }
.talkie button:hover { color: var(--os); }
.talkie--ok { --c: var(--vert-clair); } .talkie--alerte { --c: var(--orange); } .talkie--erreur { --c: #ff5a4a; }
.talkie.sort { animation: talkie-sort .22s both; }
@keyframes talkie { from { transform: translateX(30px); opacity: 0; } }
@keyframes talkie-sort { to { transform: translateX(30px); opacity: 0; } }

/* ---------- états : chargement, vide, panne ---------- */
.etat { display: grid; justify-items: center; gap: 14px; text-align: center; padding: clamp(28px, 6vh, 70px) 20px; color: var(--cendre); }
.etat h3 { color: var(--os); }
.etat p { max-width: 52ch; margin: 0; }
.etat__dessin { width: 150px; height: 110px; color: var(--poussiere); }
.etat--panne h3 { color: #ff8478; }
.engrenage { width: 54px; height: 54px; color: var(--orange); animation: tourne 2.4s linear infinite; filter: drop-shadow(0 0 10px rgba(255, 153, 51, .6)); }
.squelette { position: relative; overflow: hidden; background: #17120e; border: 1px solid #000; border-radius: var(--rayon); }
.squelette::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 153, 51, .14) 45%, rgba(255, 255, 255, .1) 50%, rgba(255, 153, 51, .14) 55%, transparent 80%); transform: translateX(-100%); animation: balaye 1.4s infinite; }
@keyframes balaye { to { transform: translateX(100%); } }
/* avis : une plaque sombre bordée d'un bout de ruban de chantier, à la couleur de l'avis */
.bandeau { --b1: var(--or); --b2: #15120e; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 30px; border: 1px solid #000; color: var(--os); font-size: 15px; line-height: 1.4;
  background-color: #1c1611; background-image: repeating-linear-gradient(-45deg, var(--b1) 0 7px, var(--b2) 7px 14px), linear-gradient(180deg, #2a211a, #17120e); background-size: 16px 100%, auto; background-repeat: no-repeat; box-shadow: 0 1px 0 rgba(255, 255, 255, .07) inset, 0 6px 14px rgba(0, 0, 0, .4); }
.bandeau--erreur { --b1: #e0483a; --b2: #f1e7d3; }
.bandeau--ok { --b1: var(--vert-clair); }
.bandeau--info { --b1: var(--turquoise); }
.bandeau .ico { color: var(--b1); }
.bandeau b { font-family: var(--p-titre); font-stretch: 75%; letter-spacing: .1em; text-transform: uppercase; color: var(--b1); }
.bandeau--erreur b, .bandeau--erreur .ico { color: #ff8478; }
.kraft .bandeau { color: var(--os); }
.guichet .bandeau { margin: 14px 0; }

/* ---------- pied de page ---------- */
#st-racine { min-height: 100vh; display: flex; flex-direction: column; }
#st-racine > main { flex: 1 0 auto; }
.pied { margin-top: auto; padding: 50px var(--marge) 26px; color: var(--poussiere); font-size: 13px; }
.pied__postes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pied__postes a { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 4px; border: 1px solid #000; background: linear-gradient(180deg, #2a211a, #19130f); text-decoration: none; font: 700 12px/1 var(--p-titre); font-stretch: 75%; letter-spacing: .14em; text-transform: uppercase; color: var(--cendre); }
.pied__postes a:hover { color: var(--os); box-shadow: 0 0 14px rgba(255, 153, 51, .3); }
.pied__postes a .ico { width: 15px; height: 15px; }
.pied__postes code { font-size: 11px; }
.pied__ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-top: 16px; }
.pied a { color: var(--cendre); }
.pied .demo { margin-left: auto; }
.marque-demo { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border: 1px dashed var(--rose); color: #ffb9ee; font: 700 12px/1 var(--p-titre); font-stretch: 75%; letter-spacing: .18em; text-transform: uppercase; }

/* ---------- le sas (code de sécurité) : commun à la boutique, aux ventes, au tripot ---------- */
.sas { position: relative; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.sas__scene { position: relative; display: flex; flex-direction: column; justify-content: center; gap: clamp(16px, 2.4vh, 30px); padding: clamp(24px, 5vh, 70px) clamp(18px, 4vw, 80px); min-width: 0; }
.sas__logo { width: clamp(120px, 15vw, 230px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #f6efe1 0 62%, #d6c8b1 69%, #7b6c5a 70%); padding: 4px; box-shadow: 0 0 0 3px #0a0806, 0 0 0 7px #6f6253, 0 0 0 9px #0a0806, 0 20px 50px rgba(0, 0, 0, .75), 0 0 80px rgba(255, 153, 51, .16); }
.sas__logo { flex: none; align-self: flex-start; }
.sas__logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.sas__enseigne { font-family: var(--p-titre); font-stretch: 75%; font-weight: 300; font-size: clamp(54px, 8.4vw, 150px); line-height: .86; letter-spacing: .1em; margin: 0; }
.sas__sous + .sas__enseigne { margin-top: .16em; }
.sas__enseigne--long { font-size: clamp(40px, 5.6vw, 104px); line-height: .98; }
.sas__sous { font: 700 clamp(15px, 1.3vw, 22px)/1.2 var(--p-titre); font-stretch: 75%; letter-spacing: .34em; text-transform: uppercase; color: var(--cendre); }
.sas__porte { position: relative; display: flex; align-items: center; justify-content: center; padding: clamp(18px, 4vh, 60px) clamp(16px, 3vw, 60px); background: linear-gradient(90deg, rgba(0, 0, 0, .65), rgba(0, 0, 0, .2)); border-left: 1px solid #000; min-width: 0; }
.sas__porte::before { content: ""; position: absolute; left: -9px; top: 0; bottom: 0; width: 18px; background-image: var(--usure), repeating-linear-gradient(-45deg, var(--or) 0 16px, #15120e 16px 32px); background-size: 300px 300px, auto; box-shadow: 4px 0 14px rgba(0, 0, 0, .6); }
.guichet { width: min(560px, 100%); padding: clamp(20px, 2.4vw, 38px); }
.guichet__tete { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.guichet__etat { display: flex; align-items: center; gap: 10px; min-height: 26px; font: 700 14px/1.2 var(--p-titre); font-stretch: 75%; letter-spacing: .14em; text-transform: uppercase; color: var(--cendre); }
.code { position: relative; display: flex; justify-content: center; gap: clamp(8px, 1.2vw, 16px); margin: 22px 0 10px; }
.code input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; cursor: text; text-transform: uppercase; }
.code__case { position: relative; width: clamp(58px, 6.4vw, 96px); aspect-ratio: 3 / 4; display: grid; place-items: center; border-radius: 4px; border: 1px solid #000; color: var(--or);
  background: linear-gradient(180deg, #040302, #2c241c 44%, #14100c 56%, #040302); box-shadow: 0 2px 0 rgba(255, 255, 255, .1), 0 6px 14px rgba(0, 0, 0, .8) inset;
  font: 700 clamp(44px, 5vw, 78px)/1 var(--p-titre); font-stretch: 75%; text-shadow: 0 0 18px rgba(255, 204, 0, .55); }
.code__case::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(0, 0, 0, .75); }
.code__case.est-courante { box-shadow: 0 2px 0 rgba(255, 255, 255, .1), 0 6px 14px rgba(0, 0, 0, .8) inset, 0 0 0 2px var(--turquoise), 0 0 24px rgba(41, 217, 190, .5); }
.code__case.est-courante::before { content: ""; position: absolute; bottom: 14%; width: 44%; height: 4px; background: var(--turquoise); animation: bat 1s steps(2, end) infinite; }
.code.est-refuse { animation: secoue .4s; }
.code.est-refuse .code__case { color: #ff5a4a; text-shadow: 0 0 18px rgba(255, 60, 40, .7); }
.code.est-accepte .code__case { color: var(--vert-clair); text-shadow: 0 0 18px rgba(63, 220, 114, .7); }
@keyframes secoue { 20% { transform: translateX(-10px); } 40% { transform: translateX(9px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
.note { position: relative; padding: 16px 18px 14px; font: 700 17px/1.35 var(--p-main); transform: rotate(-1.2deg); margin: 30px 6px 22px; }
.note .scotch { top: -12px; left: 50%; margin-left: -43px; }
.note strong { font-family: var(--p-machine); font-size: .95em; background: rgba(60, 30, 5, .14); padding: 1px 6px; white-space: nowrap; }

/* ---------- utilitaires ---------- */
.rang { display: flex; align-items: center; gap: 12px; } .rang--large { justify-content: space-between; } .rang--plie { flex-wrap: wrap; }
.pile { display: flex; flex-direction: column; gap: 12px; }
.pousse { margin-left: auto; }
.centre { text-align: center; }
.entre { animation: entre .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes entre { from { opacity: 0; transform: translateY(16px); } }

/* ---------- reprises du deuxième tour de critique ---------- */
/* rôles des couleurs : turquoise = ce qui est choisi ; orange = l'action ; or = les prix et la meilleure valeur */
.puce[aria-pressed="true"], .puce.est-actif { color: #04201b; background: linear-gradient(180deg, #5cf0d8, #129e88); box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 1px 0 #070504, 0 0 18px rgba(41, 217, 190, .35); }
.puce[aria-pressed="true"] b { opacity: .8; }
.dymo--or { background: linear-gradient(180deg, #ffd84a, #c99400); color: #1c1502; text-shadow: 0 1px 0 rgba(255, 255, 255, .45); }
/* plancher de lisibilité des petits libellés */
.tarif__ligne small { font-size: 12px; color: var(--cendre); }
.jauge__repere::after { font-size: 11px; top: -16px; color: var(--os); }
.jauge__rang { font-size: 12.5px; letter-spacing: .06em; text-transform: none; color: var(--cendre); }
.solde__nom { font-size: 12px; } .solde__nom b { font-size: 14px; }
.onglet b { font-size: 13px; }
.puce b { opacity: .8; }
.t-sur { font-size: 13.5px; }
/* tampons : encre franche, et une pastille sombre dessous quand ils sont posés sur une photo */
.tampon { font-size: 22px; border-width: 4px; opacity: 1; }
.tampon--fond { background: rgba(6, 4, 3, .74); -webkit-mask-image: none; mask-image: none; }
/* code refusé : les rouleaux restent rouges tant qu'on n'a rien retapé */
.code.est-refuse .code__case { box-shadow: 0 2px 0 rgba(255, 255, 255, .1), 0 6px 14px rgba(0, 0, 0, .8) inset, 0 0 0 2px #ff5a4a, 0 0 22px rgba(255, 60, 40, .45); }
.code.est-refuse .code__case.est-courante::before { background: #ff5a4a; }
.guichet__etat .engrenage { width: 20px; height: 20px; filter: none; }
.code { position: relative; }
.code__tampon { position: absolute; right: -6px; top: -20px; z-index: 3; font-size: 18px; transform: rotate(7deg); }
.code__tampon[hidden] { display: none; }
.guichet.est-muet .code, .guichet.est-muet > button[type="submit"], .guichet.est-muet > .note { opacity: .28; filter: grayscale(1); pointer-events: none; }
.guichet.est-muet .code { display: none; }
.guichet .etat__dessin { width: 110px; height: 80px; margin: 6px auto 0; display: block; color: var(--cendre); }
.btn--bloc + .btn--bloc { margin-top: 10px; }
/* glyphes du protocole montrés à l'utilisateur : dans des pastilles à chasse fixe */
.glyphe { display: inline-block; min-width: 1.5em; padding: 0 4px; margin: 0 2px; text-align: center; font: 700 14px/1.5 var(--p-chiffre); color: var(--or); background: #0c0907; border: 1px solid #000; }
/* ---------- fenêtre du jeu, portable (901 à 1500 px) : en-tête resserré, libellés des boutons d'en-tête masqués ---------- */
@media (max-width: 1500px) {
  .marque__famille { display: none; }
  .marque__logo { width: 54px; height: 54px; }
  .marque__poste { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: .1em; }
  .onglet { padding: 0 11px; font-size: 15px; letter-spacing: .1em; gap: 7px; }
  .entete .cache-tel, .solde__nom { display: none; }
  .plaque { max-width: 170px; padding: 0 12px 0 10px; }
  .plaque span { font-size: 15px; }
}

/* ---------- téléphone ---------- */
@media (max-width: 900px) {
  :root { --tete: 64px; }
  /* téléphone : logo, enseigne, puis le guichet (la tâche), et seulement après l'invitation annexe */
  .sas { display: flex; flex-direction: column; min-height: 0; }
  .sas__scene { display: contents; }
  .sas__logo { order: 1; align-self: center; width: clamp(84px, 24vw, 150px); margin: 18px 0 10px; }
  .sas__titre { order: 2; text-align: center; padding: 0 12px 6px; }
  .sas__porte { order: 3; border-left: 0; background: none; padding: 10px 14px 16px; }
  .sas__porte::before { display: none; }
  .sas__scene > :nth-child(n+3) { order: 4; margin: 0 14px 22px; width: auto; max-width: none; }
  .sas__sous { font-size: 12px; letter-spacing: .2em; }
  .sas__enseigne { font-size: clamp(44px, 13vw, 96px); }
  .sas__enseigne--long { font-size: clamp(30px, 9.6vw, 64px); }
  .guichet { padding: 18px 16px 18px; }
  .note { margin: 12px 2px 16px; font-size: 15.5px; }
  .marque { flex: 1 1 auto; max-width: none; }
  .marque__logo { width: 46px; height: 46px; }
  .marque__famille { display: none; }
  .entete__droite > .dymo { display: none; }
  .entete__barre { flex-wrap: wrap; row-gap: 0; padding-top: 6px; padding-bottom: 0; }
  .entete__nav { order: 5; width: calc(100% + 2 * var(--marge)); margin: 4px calc(-1 * var(--marge)) 0; overflow-x: auto; scrollbar-width: none; border-top: 1px solid rgba(0, 0, 0, .6); background: rgba(0, 0, 0, .25); }
  .entete__nav::-webkit-scrollbar { display: none; }
  .onglet { min-height: 44px; padding: 0 14px; font-size: 15px; white-space: nowrap; }
  .plaque { display: none; }
  .solde__nom { display: none; }
  .talkies { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; flex-direction: column-reverse; }
  .fenetre__pied .btn { flex: 1; }
}
@media (max-width: 480px) {
  .btn { letter-spacing: .08em; padding: 0 16px; }
  .compteur span { width: 17px; height: 28px; font-size: 20px; }
}
/* captures des maquettes : « ?fige=1 » fige toutes les animations dans leur état final */
.fige *, .fige *::before, .fige *::after { animation: none !important; transition: none !important; }
.fige .ruban--texte > span { padding-left: 24px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
