/* =====================================================================
   BORNE — styles communs (écran 1080 × 1920)
   Polices servies par le site lui-même (assets/polices, reprises de Google
   Fonts le 26.11.2026) : elles marchent hors ligne et passent la politique
   de sécurité du site, qui n'autorise que ses propres fichiers.
   Nunito est une police « variable » : un seul fichier pour 600 et 800.
   ===================================================================== */
@font-face { font-family: 'Lilita One'; font-style: normal; font-weight: 400; font-display: block;
  src: url(../assets/polices/LilitaOne-latin.woff2) format('woff2');
  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; }
@font-face { font-family: 'Lilita One'; font-style: normal; font-weight: 400; font-display: block;
  src: url(../assets/polices/LilitaOne-latin-ext.woff2) format('woff2');
  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: 'Nunito'; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url(../assets/polices/Nunito-latin.woff2) format('woff2');
  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; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url(../assets/polices/Nunito-latin-ext.woff2) format('woff2');
  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: 'Archivo Black'; src: url(../assets/polices/ArchivoBlack-latin.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Archivo'; src: url(../assets/polices/Archivo-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --navy: #1E0A5C; --violet: #5A1590; --violet-dark: #2B0752; --text-2: #5B5470;
  --lilac: #F7F2FC; --lilac-2: #F3ECFA; --line: #EEE6F7; --line-2: #E6DAF3;
  --gold: #FFC21A; --ok: #1F9D55; --rouge: #D7263D;
  --grad: linear-gradient(135deg, #FF1F8E 0%, #FF5A2E 55%, #FFB21A 100%);
  --grad-h: linear-gradient(90deg, #FF1F8E 0%, #FF5A2E 55%, #FFB21A 100%);
  --display: 'Lilita One', 'Archivo Black', 'Arial Black', sans-serif;
  --corps: 'Nunito', 'Archivo', system-ui, sans-serif;
}
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
body { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
img { -webkit-user-drag: none; }
.kiosk { position: absolute; left: 50%; top: 50%; transform-origin: center; width: 1080px; height: 1920px; overflow: hidden; }
.lilita { font-family: var(--display); font-weight: 400; }

/* Écran bloquant (borne non connectée, en pause) */
.bloque {
  position: absolute; inset: 0; z-index: 50; box-sizing: border-box; padding: 0 110px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; text-align: center;
  background: radial-gradient(circle at 50% 30%, #5A1590 0%, #2B0752 60%, #14032B 100%); color: #fff;
}
.bloque[hidden] { display: none; }
.bloque img { width: 300px; height: auto; filter: drop-shadow(0 12px 20px rgba(0,0,0,.5)); }
.bloque h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 92px; line-height: 1; text-transform: uppercase; color: var(--gold); }
.bloque p { margin: 0; font-family: var(--corps); font-weight: 800; font-size: 38px; line-height: 1.35; color: #E9DDF7; }

/* ---------------- Accueil : carrousel de promos ----------------
   Fixe : fond, logo, points, bouton. Chaque promo (titre, visuel, bloc prix)
   est une « diapo » posée dans .a-scene ; elles se relaient en fondu. */
a { color: #fff; }
.accueil {
  width: 1080px; height: 1920px; box-sizing: border-box; padding: 50px 40px 110px;
  display: flex; flex-direction: column; align-items: center; gap: 24px; overflow: hidden;
  background: #30025a url(assets/fond-accueil.webp) center/cover no-repeat;
  font-family: var(--display); color: #fff; cursor: pointer;
}
.a-logo { width: 220px; height: auto; display: block; flex-shrink: 0; position: relative; z-index: 3; filter: drop-shadow(0 10px 18px rgba(20,0,50,.55)); }
.a-scene { position: relative; flex: 1; min-height: 0; width: 100%; }
.a-promo {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: 24px;
  opacity: 0; transform: translateX(46px); transition: opacity .6s ease, transform .6s ease; pointer-events: none;
}
.a-promo.actif { opacity: 1; transform: none; }
.a-promo.sortie { opacity: 0; transform: translateX(-46px); }
/* Titre : même style que « La Box du Peuple » ; --t réduit la taille d'un titre trop long */
.a-titre {
  --t: 1;
  align-self: flex-start; height: 300px; flex-shrink: 0; margin: 0 0 0 40px; font-weight: 400; text-transform: uppercase; letter-spacing: 1px;
  display: flex; flex-direction: column; align-items: flex-start; position: relative; z-index: 1; white-space: nowrap;
  paint-order: stroke fill; -webkit-text-stroke: 18px #1E0A5C; text-shadow: 0 12px 0 #1E0A5C, 0 0 34px rgba(255,40,170,.75);
}
.a-titre .l1 { display: block; font-size: calc(170px * var(--t)); line-height: .92; color: #fff; }
.a-titre .l2 { display: block; font-size: calc(120px * var(--t)); line-height: .95; color: var(--gold); transform: rotate(-7deg); transform-origin: 0 50%; margin-top: calc(30px * var(--t)); }
/* Visuel : la place et la taille de la box (1060 × 802), photo contenue dedans */
.a-visuel { width: 1060px; height: 802px; margin-top: -120px; flex-shrink: 0; animation: flotter 3.2s ease-in-out infinite; transform-origin: 50% 60%; }
.a-visuel { position: relative; }
.a-visuel img { position: relative; z-index: 1; width: 100%; height: 100%; display: block; object-fit: contain; filter: drop-shadow(0 28px 30px rgba(20,0,50,.6)); }
/* Canette derrière le plat (comme les DADA de la Box du Peuple) */
.a-visuel .a-canette { position: absolute; z-index: 0; right: -30px; top: -120px; width: auto; height: 560px; transform: rotate(10deg); filter: drop-shadow(0 18px 22px rgba(20,0,50,.55)); }
@keyframes flotter { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-30px) rotate(1.5deg); } }
.a-prix { width: 1080px; flex-shrink: 0; margin-top: -70px; position: relative; z-index: 2; }
.a-prix[hidden] { display: none; }
.a-prix img { width: 1080px; height: auto; display: block; filter: drop-shadow(0 14px 20px rgba(20,0,50,.5)); }
/* Brillance sur la partie prix (moitié gauche) : masque = l'image prix de la promo (posé par accueil.js) */
.a-brille {
  position: absolute; left: 0; top: 0; width: 48%; height: 100%; pointer-events: none;
  -webkit-mask-position: 0 0; mask-position: 0 0; -webkit-mask-size: 208.3% 100%; mask-size: 208.3% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  background: linear-gradient(110deg, transparent 42%, rgba(255,255,255,.9) 50%, transparent 58%) no-repeat; background-size: 250% 100%;
  animation: briller 2.8s ease-in-out infinite;
}
@keyframes briller { 0% { background-position: 150% 0; } 55%, 100% { background-position: -50% 0; } }
/* Points indicateurs */
.a-points { display: flex; gap: 16px; flex-shrink: 0; position: relative; z-index: 3; }
.a-points span { width: 16px; height: 16px; border-radius: 999px; background: rgba(255,255,255,.4); box-shadow: 0 0 0 3px rgba(30,10,92,.55); transition: width .4s ease, background-color .4s ease; }
.a-points span.actif { width: 44px; background: var(--gold); }
.a-go {
  display: flex; align-items: center; justify-content: center; width: 860px; height: 130px; box-sizing: border-box; flex-shrink: 0;
  position: relative; z-index: 3; border-radius: 999px; background: var(--grad-h); border: 8px solid #1E0A5C;
  box-shadow: 0 12px 0 #1E0A5C, 0 0 46px rgba(255,60,150,.8); text-decoration: none; color: #fff;
  animation: pulser 1.6s ease-in-out infinite;
}
.a-go span { font-size: 52px; line-height: 1; letter-spacing: 1px; text-transform: uppercase; paint-order: stroke fill; -webkit-text-stroke: 8px #1E0A5C; }
@keyframes pulser { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
/* Mouvement réduit : changement simple, sans flottement ni brillance */
@media (prefers-reduced-motion: reduce) {
  .a-promo, .a-promo.sortie { transition: none; transform: none; }
  .a-visuel, .a-brille, .a-go { animation: none; }
  .a-points span { transition: none; }
}

/* ---------------- Réglages du personnel (imprimante-borne.js) ----------------
   Coin en haut à gauche de l'accueil : 5 touchers ouvrent le panneau.
   Petit point : rouge = imprimante qui ne répond pas, orange = commandes en
   attente d'envoi, gris = hors ligne. Invisible sinon. */
.coin-personnel { position: absolute; left: 0; top: 0; width: 150px; height: 150px; z-index: 60; pointer-events: none; }
body[data-reglages] .coin-personnel { pointer-events: auto; }
.coin-voyant { position: absolute; left: 22px; top: 22px; width: 18px; height: 18px; border-radius: 50%; background: transparent; }
.hors-ligne .coin-voyant { background: #9A8FB0; }
.coin-personnel.attente .coin-voyant { background: #FF9F1A; }
.coin-personnel.alerte .coin-voyant { background: var(--rouge); }
.panneau-personnel { position: absolute; inset: 0; z-index: 70; background: rgba(20,4,45,.7); display: flex; align-items: center; justify-content: center; font-family: var(--corps); color: var(--navy); }
.panneau-personnel[hidden] { display: none; }
.pp-fenetre { width: 900px; max-height: 1700px; overflow-y: auto; box-sizing: border-box; padding: 50px 54px; border-radius: 40px; background: #fff; display: flex; flex-direction: column; gap: 22px; }
.pp-fenetre h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 60px; text-transform: uppercase; }
.pp-fenetre h3 { margin: 0 0 12px; font-family: var(--display); font-weight: 400; font-size: 38px; text-transform: uppercase; color: var(--violet); }
.pp-fenetre section { padding: 22px 0; border-top: 2px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.pp-fenetre p { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.35; }
.pp-etat { display: flex; align-items: center; gap: 14px; font-weight: 800 !important; }
.pp-voyant { width: 22px; height: 22px; border-radius: 50%; background: #B8AFC8; }
.panneau-personnel[data-etat="prete"] .pp-voyant { background: var(--ok); }
.panneau-personnel[data-etat="erreur"] .pp-voyant { background: var(--rouge); }
.panneau-personnel[data-etat="connexion"] .pp-voyant { background: #FF9F1A; }
.pp-detail, .pp-aide { color: var(--text-2); font-size: 24px !important; }
.pp-boutons { display: flex; gap: 16px; flex-wrap: wrap; }
.pp-bouton { min-height: 90px; padding: 0 36px; border-radius: 999px; border: 3px solid var(--line-2); background: var(--lilac-2); color: var(--violet); font-weight: 800; font-size: 28px; }
.pp-principal { border-color: var(--navy); background: var(--grad-h); color: #fff; }
.pp-bouton:disabled { opacity: .45; }
.pp-groupe { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 26px; font-weight: 800; }
.pp-groupe span { min-width: 130px; }
.pp-choix { min-height: 72px; padding: 0 26px; border-radius: 999px; border: 3px solid var(--line-2); background: #fff; color: var(--navy); font-weight: 800; font-size: 24px; }
.pp-choix.choisi { border-color: var(--navy); background: var(--navy); color: #fff; }
.pp-fermer { align-self: stretch; margin-top: 10px; }

/* ---------- Code PIN de la borne (commun.js : demanderPin) ---------- */
.bloque-pin { margin-top: 20px; min-height: 120px; padding: 0 60px; border-radius: 999px; border: 6px solid #1E0A5C; background: var(--grad-h); box-shadow: 0 9px 0 #1E0A5C; color: #fff; font-family: var(--display); font-size: 44px; text-transform: uppercase; }
.bloque-pin[hidden] { display: none; }
.pin-fond { position: absolute; inset: 0; z-index: 90; background: rgba(20,4,45,.78); display: flex; align-items: center; justify-content: center; font-family: var(--corps); }
.pin-fenetre { width: 760px; box-sizing: border-box; padding: 56px 60px 60px; border-radius: 44px; background: #fff; color: var(--navy); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.pin-fenetre h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 60px; line-height: 1; text-transform: uppercase; }
.pin-texte { margin: 0; font-size: 30px; font-weight: 600; color: var(--text-2); }
.pin-points { display: flex; gap: 22px; margin: 18px 0 4px; }
.pin-points i { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--navy); box-sizing: border-box; }
.pin-points i.plein { background: var(--navy); }
.pin-erreur { margin: 0; min-height: 40px; font-size: 30px; font-weight: 800; color: #B0123F; }
.pin-clavier { display: grid; grid-template-columns: repeat(3, 170px); gap: 20px; margin-top: 6px; }
.pin-clavier button { height: 130px; border-radius: 30px; border: 3px solid var(--line-2); background: var(--lilac-2); color: var(--navy); font-family: var(--display); font-size: 60px; }
.pin-clavier button:active { background: var(--grad); color: #fff; border-color: var(--navy); }
.pin-clavier .pin-petit { font-family: var(--corps); font-size: 28px; font-weight: 800; color: var(--violet); }
.pin-fond.occupe .pin-clavier { opacity: .5; pointer-events: none; }
