/* Môda Frites. Design : Claude Design (verre crème sur fond flouté, pilules café, Fraunces + Poppins). */
@font-face { font-family: Fraunces; src: url(assets/fraunces.woff2) format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: Poppins; src: url(assets/poppins-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url(assets/poppins-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Poppins; src: url(assets/poppins-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Poppins; src: url(assets/poppins-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
/* Couleurs calculées par ton.js selon l'heure ; enregistrées pour pouvoir glisser */
@property --encre { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --encre-v { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --doux { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --doux-v { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --doux-f { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --feu-t { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --vert-t { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --carte { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --verre { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --bord { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --champ { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --filet { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --bouton { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --bouton-t { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --anneau { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --teinte { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --c-moda { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --t-moda { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --c-smoky { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --t-smoky { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --c-fire { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --t-fire { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --c-combo { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --t-combo { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --nuit { syntax: '<number>'; inherits: true; initial-value: 0; }
.app { transition: --encre 2s linear, --encre-v 2s linear, --doux 2s linear, --doux-v 2s linear, --doux-f 2s linear, --feu-t 2s linear, --vert-t 2s linear, --carte 2s linear, --verre 2s linear, --bord 2s linear, --champ 2s linear, --filet 2s linear, --bouton 2s linear, --bouton-t 2s linear, --anneau 2s linear, --teinte 2s linear, --c-moda 2s linear, --t-moda 2s linear, --c-smoky 2s linear, --t-smoky 2s linear, --c-fire 2s linear, --t-fire 2s linear, --c-combo 2s linear, --t-combo 2s linear, --nuit 2s linear; }
:root {
  --cafe: #2b0f08; --creme: #fbf5e6; --sable: #f1e0c4; --vert: #2f4f17; --feu: #8e3b22;
  --chiffre: Fraunces, Georgia, serif; --texte: Poppins, system-ui, sans-serif;
  --rebond: cubic-bezier(.2, 1.6, .4, 1); --lisse: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
.t-moda { --c: var(--c-moda); --s: #fff; --t: var(--t-moda); }
.t-smoky { --c: var(--c-smoky); --s: #fff; --t: var(--t-smoky); }
.t-fire { --c: var(--c-fire); --s: #fff; --t: var(--t-fire); }
.t-combo { --c: var(--c-combo); --s: #2b0f08; --t: var(--t-combo); }
/* L'alarme est toujours sombre, son ticket toujours clair */
.alarme .t-moda { --c: #3a1508; --t: #3a1508; } .alarme .t-smoky { --c: #6f625a; --t: #6f625a; }
.alarme .t-fire { --c: #8e3b22; --t: #8e3b22; } .alarme .t-combo { --t: #2b0f08; }
.ticketvol .t-moda { --t: #3a1508; } .ticketvol .t-smoky { --t: #6f625a; } .ticketvol .t-fire { --t: #8e3b22; } .ticketvol .t-combo { --t: #2b0f08; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
body { margin: 0; background: #b3a797; color: var(--cafe); font: 500 15px/1.4 var(--texte); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
ul { list-style: none; margin: 0; padding: 0; position: relative; }
h1, h2, p { margin: 0; }
i { font-style: normal; }

.app { position: relative; height: 100%; overflow: hidden; color: var(--encre); background: #c4b9aa; isolation: isolate; }
.ciel { position: absolute; inset: 0; z-index: -1; background: url(assets/fond-clair.jpg) center / cover; }
.ciel i { position: absolute; inset: 0; background: var(--teinte); }
.ciel i + i { background: #1c0f0a url(assets/fond-sombre.jpg) center / cover; opacity: var(--nuit); }
.contenu, .cuisine { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 20; }
.fx.fond { z-index: 0; }
.verre { color: var(--encre-v); background: var(--verre); border: 1px solid var(--bord); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 10px 30px rgb(43 15 8 / .1); }
.barre { display: flex; align-items: center; gap: 8px; padding: 14px 16px 8px; }
.barre .logo { margin-right: auto; display: grid; }
.barre .logo img { height: 32px; grid-area: 1 / 1; transition: opacity 2s; }
.logo .nuit, [data-mode=sombre] .logo .jour { opacity: 0; }
[data-mode=sombre] .logo .nuit { opacity: 1; }
.defile { overflow: hidden auto; min-height: 0; padding: 6px 16px 18px; scrollbar-width: none; }
.suivi h2, .dedans h2 { font-size: 13px; font-weight: 600; color: var(--doux); }
.vide, .creux { color: var(--doux); font-size: 14px; }
.suivi h2, .vide { color: var(--doux-f) !important; }

.ligne { display: flex; align-items: center; gap: 9px; }
.qte { min-width: 32px; height: 26px; border-radius: 99px; background: var(--c); color: var(--s); display: grid; place-items: center; font: 700 15px/1 var(--chiffre); }
.ligne .nom { font-weight: 600; color: var(--t); }
.ligne .taille { font-weight: 700; }
.masse { margin-left: auto; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ── Ouverture ── */
.intro { position: absolute; inset: 0; z-index: 19; display: grid; place-items: center; pointer-events: none; background: #26150f url(assets/fond-sombre.jpg) center / cover; animation: iris .7s 1.35s var(--lisse) forwards; }
.intro img { width: 62%; animation: logo 1.1s var(--rebond) backwards; }
.intro span { position: absolute; width: 300px; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgb(251 245 230 / .4); animation: halo 1.2s .5s ease-out both; }
@keyframes logo { from { opacity: 0; transform: scale(.2) rotate(-14deg); filter: blur(10px); } }
@keyframes halo { from { transform: scale(0); opacity: 1; } to { transform: scale(2); opacity: 0; } }
@keyframes iris { from { clip-path: circle(130% at 50% 46%); } to { clip-path: circle(0% at 50% 46%); } }

/* ── Comptoir ── */
.lien { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 99px; white-space: nowrap; font-size: 12.5px; font-weight: 600; transition: background .4s, color .4s; }
.lien i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--vert-t); }
.lien i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: radar 2s ease-out infinite; }
@keyframes radar { to { transform: scale(3.6); opacity: 0; } }
.lien.coupe { background: var(--feu); color: #fff; animation: alerte 1s ease-in-out infinite alternate; }
.lien.coupe i { background: #ffd2b8; }
@keyframes alerte { to { box-shadow: 0 0 0 7px rgb(142 59 34 / .28); } }
.prise { display: grid; gap: 12px; }
.numero { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 18px; border-radius: 24px; }
.numero label { flex: 1; font-size: 14px; font-weight: 600; line-height: 1.3; }
.numero input { width: 150px; height: 52px; border: 1px solid var(--filet); border-radius: 18px; background: var(--champ); font: 700 32px/1 var(--chiffre); text-align: center; padding: 0 12px; transition: box-shadow .3s, background .3s; }
.numero input:focus { outline: none; background: var(--carte); box-shadow: 0 0 0 4px var(--filet), 0 8px 20px rgb(43 15 8 / .16); }
.frites { display: grid; gap: 8px; padding: 14px; border-radius: 28px; }
.rangee { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 52px); gap: 10px; align-items: center; }
.col { text-align: center; font-size: 11px; line-height: 1.2; color: var(--doux-v); }
.col b { display: block; font-size: 14px; font-weight: 700; color: var(--encre-v); }
.sorte { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; min-width: 0; }
.pastille { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--creme); background: var(--c); color: var(--creme); display: grid; place-items: center; box-shadow: 0 6px 14px rgb(43 15 8 / .22); }
.t-combo .pastille { color: var(--cafe); }
.case { position: relative; width: 52px; height: 52px; border-radius: 99px; border: 1px solid var(--filet); background: var(--champ); display: grid; place-items: center; overflow: hidden; transition: transform .18s; }
.case::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; background: var(--c); transform: scale(0); transition: transform .42s var(--rebond); }
.case > * { position: relative; transition: transform .35s var(--rebond), opacity .2s; }
.case b { position: absolute; font: 700 22px/1 var(--chiffre); transform: scale(0); opacity: 0; }
.case:active { transform: scale(.86); }
.case.actif { border-color: transparent; color: var(--s); box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 45%, transparent); }
.case.actif::before { transform: scale(1); }
.case.actif svg { transform: rotate(180deg) scale(0); opacity: 0; }
.case.actif b { transform: none; opacity: 1; }
.case.combo { grid-column: 2 / span 3; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 18px; }
.case.combo.actif svg { transform: none; opacity: 1; }
.case.combo b { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--creme); color: var(--cafe); display: grid; place-items: center; font-size: 20px; }
.dedans { display: grid; gap: 8px; padding: 14px; border-radius: 28px; background: var(--carte); border: 1px solid var(--bord); box-shadow: 0 14px 34px rgb(43 15 8 / .14); }
.dedans h2, .creux, .avis { margin-left: 4px; }
.panier { display: grid; gap: 4px; }
.panier .ligne { padding-left: 4px; }
.moins { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--filet); background: var(--champ); display: grid; place-items: center; transition: transform .2s var(--rebond); }
.moins:active { transform: scale(.8) rotate(-90deg); }
.avis { font-size: 14px; font-weight: 600; color: var(--feu-t); }
.avis:empty { display: none; }
.envoyer { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 7px 0 24px; border-radius: 99px; background: var(--bouton); color: var(--bouton-t); font-size: 17px; font-weight: 600; box-shadow: 0 10px 22px rgb(43 15 8 / .35); transition: transform .2s var(--lisse); }
.envoyer i { width: 44px; height: 44px; border-radius: 50%; background: var(--bouton-t); color: var(--bouton); display: grid; place-items: center; }
.envoyer:active { transform: scale(.96); }
.envoyer::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgb(216 170 110 / .4) 50%, transparent 60%); transform: translateX(-100%); pointer-events: none; }
.envoyer.pret::after { animation: lueur 2.2s ease-in-out infinite; }
.envoyer.pret i svg { animation: pousse 1.1s ease-in-out infinite; }
@keyframes lueur { 55%, 100% { transform: translateX(100%); } }
@keyframes pousse { 50% { transform: translateX(5px); } }
.suivi { margin-top: 12px; }
.suivi h2, .suivi .vide { margin: 0 0 8px 8px; }
.suivi .liste { position: relative; display: grid; gap: 8px; }
.carte { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 16px; border-radius: 24px; background: var(--carte); border: 1px solid var(--bord); box-shadow: 0 10px 24px rgb(43 15 8 / .1); transition: opacity .6s 1.4s; }
.carte .no { font: 700 30px/1 var(--chiffre); }
.carte .corps { flex: 1; min-width: 0; display: grid; gap: 4px; }
.carte .corps ul { display: grid; gap: 3px; }
.suivi .qte { min-width: 24px; height: 21px; font-size: 13px; }
.etat { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; color: var(--doux); font-variant-numeric: tabular-nums; }
[data-etat=envoyee] .etat, [data-etat=attente] .etat { color: var(--feu-t); }
[data-etat=recue] .etat, [data-etat=livree] .etat { color: var(--vert-t); }
[data-etat=livree] { opacity: .62; }
.battant { transform-origin: 12px 4px; transform-box: view-box; }
[data-phase=envoyee] .battant { animation: cloche 1.2s ease-in-out infinite; }
@keyframes cloche { 0%, 50%, 100% { transform: none; } 8% { transform: rotate(24deg); } 18% { transform: rotate(-22deg); } 28% { transform: rotate(16deg); } 38% { transform: rotate(-9deg); } }
[data-phase=envoyee]::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid var(--feu-t); pointer-events: none; animation: onde 1.600s ease-out infinite; }
@keyframes onde { from { opacity: .8; } to { opacity: 0; transform: scale(1.04, 1.16); } }
.flamme { transform-origin: 50% 90%; transform-box: fill-box; animation: flamme .7s ease-in-out infinite alternate; }
@keyframes flamme { from { transform: scale(.9, .95) skewX(-5deg); } to { transform: scale(1.08, 1.14) skewX(6deg); } }
.annuler { height: 44px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--filet); font-size: 14px; font-weight: 600; }
.annuler:active { transform: scale(.92); }
.tampon { position: absolute; left: 60%; top: 50%; transform: translate(-50%, -50%) rotate(-9deg); z-index: 4; padding: 3px 20px; border: 4px double currentColor; border-radius: 12px; font: 700 34px/1.2 var(--chiffre); background: var(--carte); pointer-events: none; }
.tampon.vu { color: var(--feu-t); } .tampon.ok { color: var(--vert-t); }
.ticketvol { position: absolute; z-index: 18; width: 240px; height: 160px; pointer-events: none; }
.ticketvol > * { position: absolute; inset: 0; }
.ticketvol .face { background: #fffaf0; color: var(--cafe); border-radius: 22px; padding: 14px 18px; overflow: hidden; box-shadow: 0 20px 40px rgb(43 15 8 / .3); }
.ticketvol .face > b { font: 700 40px/1 var(--chiffre); display: block; text-align: center; margin-bottom: 8px; }
.ticketvol .face ul { display: grid; gap: 4px; }
.avion { width: 100%; height: 100%; filter: drop-shadow(0 16px 14px rgb(43 15 8 / .35)); }

/* ── Cuisine : musique et notifications (style imposé par Android) ── */
.musique { position: absolute; inset: 0; background: #16110f; color: #efe6d2; display: none; }
[data-ecran=musique] .musique { display: block; }
.video { height: 300px; background: #2b1d17; display: flex; align-items: flex-end; justify-content: center; gap: 9px; padding: 170px 30px 26px; }
.video i { width: 15px; height: 100%; border-radius: 6px 6px 0 0; background: linear-gradient(#e0a35c, #8e3b22); transform-origin: bottom; animation: eq 1.1s ease-in-out infinite alternate; }
.video i:nth-child(2n) { animation-duration: .8s; } .video i:nth-child(3n) { animation-duration: 1.4s; } .video i:nth-child(5n) { animation-duration: .62s; }
@keyframes eq { from { transform: scaleY(.12); } to { transform: scaleY(.95); } }
.piste { display: flex; justify-content: space-between; padding: 18px; }
.piste span { opacity: .7; }
.barres { display: grid; gap: 14px; padding: 0 18px; }
.barres span { height: 70px; background: #261d19; border-radius: 6px; }
[data-ecran=cuisine] .notifs { display: none; }
.notifs { position: absolute; inset: 14px 10px auto; z-index: 4; display: grid; gap: 8px; }
.notif { background: #f7f2ef; color: #1f1a17; border-radius: 22px; box-shadow: 0 8px 22px rgb(0 0 0 / .5); font-family: Roboto, system-ui, sans-serif; overflow: hidden; }
.notif .ouvrir { display: flex; gap: 12px; width: 100%; text-align: left; padding: 14px 18px 12px; }
.notif .ouvrir > i { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--cafe); color: var(--creme); display: grid; place-items: center; }
.notif .ouvrir > span { display: grid; gap: 2px; min-width: 0; font-weight: 400; }
.notif small { font-size: 13px; color: #5e5550; } .notif b { font-size: 18px; font-weight: 700; }
.notif .action { width: 100%; height: 54px; border-top: 1px solid #e4dcd6; font-size: 17px; font-weight: 700; }

/* ── Cuisine : liste ── */
.cuisine { position: absolute; inset: 0; visibility: hidden; isolation: isolate; }
[data-ecran=cuisine] .cuisine { visibility: visible; }
.cuisine .defile { padding-bottom: 100px; position: relative; }
.cuisine .liste { position: relative; display: grid; gap: 14px; }
.carte.grande { display: grid; gap: 14px; padding: 16px; border-radius: 28px; background: var(--carte); transition: none; }
.tete { display: flex; align-items: center; gap: 16px; }
.tete ul { flex: 1; min-width: 0; display: grid; gap: 8px; font-size: 17px; }
.medaille { position: relative; flex: none; width: 68px; height: 68px; border-radius: 50%; background: conic-gradient(from 0deg, #d8752f 0, #8e3b22 calc(var(--chaud, 0) * 360deg), var(--anneau) calc(var(--chaud, 0) * 360deg)); color: var(--cafe); display: grid; place-items: center; font: 700 26px/1 var(--chiffre); box-shadow: 0 8px 18px rgb(43 15 8 / .18); }
.medaille span { width: calc(100% - 10px); aspect-ratio: 1; border-radius: 50%; background: var(--sable); display: grid; place-items: center; }
.medaille.n4 { font-size: 20px; } .medaille.n5 { font-size: 16px; }
.pied { display: flex; align-items: center; gap: 10px; }
.chrono { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 99px; background: var(--filet); color: var(--doux); font-weight: 600; font-variant-numeric: tabular-nums; }
.livrer { position: relative; overflow: hidden; flex: 1; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 6px 0 22px; border-radius: 99px; background: var(--bouton); color: var(--bouton-t); font-size: 17px; font-weight: 600; box-shadow: 0 10px 22px rgb(43 15 8 / .3); transition: transform .2s; }
.livrer:active { transform: scale(.95); }
.livrer span { position: relative; }
.livrer i { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--bouton-t); color: var(--bouton); display: grid; place-items: center; }
.livrer::before { content: ''; position: absolute; right: 6px; top: 6px; width: 44px; height: 44px; border-radius: 50%; background: var(--vert); transform: scale(0); }
.partie .livrer::before { transform: scale(18); transition: transform .4s ease-out; }
.partie .trace { stroke-dasharray: 1; animation: trace .4s ease-out; }
@keyframes trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.brule { animation: brule 2.4s ease-in-out infinite; }
.brule .medaille { animation: braise 1.1s ease-in-out infinite alternate; }
.brule .medaille span { background: #ffd9b0; color: #7a2410; }
.brule .chrono { background: var(--feu); color: #fff; }
@keyframes braise { from { box-shadow: 0 0 10px 2px rgb(216 96 32 / .5); } to { box-shadow: 0 0 26px 9px rgb(216 96 32 / .75); } }
@keyframes brule { 0%, 84%, 100% { transform: none; } 87% { transform: translateX(-4px) rotate(-.5deg); } 90% { transform: translateX(4px) rotate(.5deg); } 93% { transform: translateX(-3px); } 96% { transform: translateX(2px); } }
.annulation { position: absolute; left: 16px; right: 16px; bottom: 18px; height: 60px; background: var(--cafe); color: var(--creme); border-radius: 99px; padding: 0 8px 0 22px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 14px 30px rgb(43 15 8 / .4); transform: translateY(110px) scale(.8); visibility: hidden; transition: transform .5s var(--rebond), visibility 0s .5s; overflow: hidden; }
.annulation.ouverte { transform: none; visibility: visible; transition: transform .5s var(--rebond); }
.annulation.ouverte::before { content: ''; position: absolute; inset: auto 0 0; height: 4px; background: #d8a35c; transform-origin: left; animation: rebours 6s linear forwards; }
@keyframes rebours { to { transform: scaleX(0); } }
.annulation button { height: 44px; padding: 0 18px; border-radius: 99px; background: var(--creme); color: var(--cafe); font-weight: 600; }

/* ── Cuisine : alarme ── */
.alarme { position: absolute; inset: 0; z-index: 10; padding: 26px 18px 22px; display: flex; flex-direction: column; gap: 16px; color: var(--creme); background: #26150f url(assets/fond-sombre.jpg) center / cover; clip-path: circle(0% at 50% 12%); visibility: hidden; transition: clip-path .6s var(--lisse), visibility 0s .6s; }
.alarme.ouverte { clip-path: circle(150% at 50% 12%); visibility: visible; transition: clip-path .7s var(--lisse); }
.alarme > *:not(.fx) { position: relative; z-index: 1; }
.alarme::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 34%, rgb(216 96 32 / .55), transparent 62%); animation: battement 2.4s ease-out infinite; }
@keyframes battement { 0% { opacity: .9; } 70%, 100% { opacity: .15; } }
.alarme header { display: grid; justify-items: center; gap: 14px; }
.alarme header img { height: 40px; }
.alarme h1 { display: flex; align-items: center; gap: 10px; font-size: 25px; font-weight: 600; text-align: center; line-height: 1.2; }
.scene { flex: 1; min-height: 0; padding-top: 72px; position: relative; }
.scene::before, .scene::after { content: ''; position: absolute; left: 0; right: 0; top: 72px; height: 170px; border-radius: 32px; background: #cdb894; opacity: 0; transition: transform .5s var(--rebond), opacity .3s; }
.scene::after { background: #e3d2b0; }
.scene[style*="--pile: 1"]::after, .scene[style*="--pile: 2"]::after { opacity: 1; transform: translateY(-12px) rotate(2.5deg) scale(.97); }
.scene[style*="--pile: 2"]::before { opacity: 1; transform: translateY(-20px) rotate(-3.5deg) scale(.94); }
.ticket { position: relative; z-index: 1; background: var(--creme); color: var(--cafe); border-radius: 32px; padding: 80px 20px 12px; max-height: 100%; display: flex; flex-direction: column; box-shadow: 0 24px 50px rgb(0 0 0 / .4); }
.ticket .medaille { position: absolute; left: calc(50% - 70px); top: -70px; }
.ticket .medaille, .volant { width: 140px; height: 140px; font-size: 50px; background: #fff; color: var(--cafe); box-shadow: 0 0 0 12px rgb(251 245 230 / .16), 0 0 0 26px rgb(251 245 230 / .07), 0 14px 30px rgb(0 0 0 / .35); }
.ticket .medaille span, .volant span { width: calc(100% - 16px); }
.ticket .medaille.n4, .volant.n4 { font-size: 40px; } .ticket .medaille.n5, .volant.n5 { font-size: 33px; }
.volant { position: absolute; z-index: 21; pointer-events: none; }
.ticket ul { overflow-y: auto; min-height: 0; }
.ticket .ligne { gap: 10px; padding: 14px 0; font-size: 21px; }
.ticket .ligne + .ligne { border-top: 1px solid rgb(43 15 8 / .12); }
.ticket .nom { font-weight: 700; }
.ticket .qte { min-width: 42px; height: 36px; font-size: 20px; }
.ticket .masse { font-size: 19px; }
.deja { align-self: center; padding: 8px 18px; border-radius: 99px; background: rgb(251 245 230 / .1); border: 1px solid rgb(251 245 230 / .18); }
.recu { position: relative; overflow: hidden; flex: none; display: flex; align-items: center; justify-content: space-between; height: 92px; padding: 0 10px 0 40px; border-radius: 99px; background: var(--creme); color: var(--cafe); font-size: 30px; font-weight: 700; box-shadow: 0 18px 40px rgb(0 0 0 / .4); }
.recu i { width: 72px; height: 72px; border-radius: 50%; background: var(--cafe); color: var(--creme); display: grid; place-items: center; }
.recu:active { scale: .95; }
.recu::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgb(216 150 70 / .45) 50%, transparent 60%); transform: translateX(-100%); pointer-events: none; animation: lueur 1.800s ease-in-out infinite; }
.recu .trace { stroke-dasharray: 1; animation: trace 2.400s ease-out infinite; }
.tout { flex: none; height: 52px; border-radius: 99px; border: 1px solid rgb(251 245 230 / .4); font-size: 16px; font-weight: 600; }

/* ── Page de démo ── */
.demo { max-width: 1240px; margin: auto; padding-block: 14px; padding-inline: 16px; }
.outils { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 14px; }
.outils b { margin-right: 6px; }
.outils button { border-radius: 99px; padding: 8px 15px; font-weight: 600; background: rgb(251 245 230 / .85); }
.outils button[aria-pressed=true] { background: var(--cafe); color: var(--creme); }
.tels { display: flex; flex-wrap: wrap; gap: 20px 70px; justify-content: center; }
.tel { width: 410px; max-width: 100%; }
.tel > h2 { text-align: center; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.cadre { height: 864px; border: 10px solid #1d1512; border-radius: 44px; overflow: hidden; box-shadow: 0 30px 60px rgb(43 15 8 / .35); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.heure { display: flex; align-items: center; gap: 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
.heure input { width: 190px; accent-color: var(--cafe); }
.simule .app { transition-duration: .25s; }
.simule .logo img { transition-duration: .25s; }
