/* Geely Vox Box – app tablette (paysage). 1rem = 1/80 de la largeur d'écran (16 px à 1280 px). */
:root {
  --navy: #12233D;
  --navy-2: #1B2735;
  --gold: #C9A24A;
  --gold-soft: #F1E4C2;
  --gold-text: #5C4719;
  --hint: #8A6A22;
  --bg: #F3F5F8;
  --line: #DCE2EA;
  --muted: #4A5D73;
  --muted-2: #5E7489;
  --chip: #B7C3D2;
  --rec: #E53935;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: calc(100vw / 80); }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--navy); }
body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--navy);
  user-select: none; -webkit-user-select: none;
  overscroll-behavior: none;
}
#app { width: 100vw; height: 100vh; height: 100dvh; }
button, input { font-family: inherit; }
button { cursor: pointer; }

.screen { width: 100%; height: 100%; display: flex; flex-direction: column; }
.screen.dark { background: var(--navy); color: #fff; padding: 2.5rem 4rem; }
.screen.light { background: var(--bg); }

/* En-tête */
.top { display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 800; letter-spacing: .32em; font-size: 1.6rem; }
.logo-img { height: 2.6rem; width: auto; display: block; }
.tag { font-size: .95rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.bar { height: 4.5rem; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 3rem; background: #fff; border-bottom: 1px solid var(--line); }
.bar .logo { font-size: 1.3rem; color: var(--navy); }
.bar .tag { color: var(--muted-2); }
.steps { display: flex; align-items: center; gap: .5rem; }
.steps .n { font-size: 1rem; font-weight: 600; color: var(--muted-2); margin-right: .5rem; }
.steps i { width: 2.2rem; height: .5rem; border-radius: .25rem; background: var(--line); display: block; }
.steps i.done { background: var(--navy); }
.steps i.cur { background: var(--gold); }

/* Boutons */
.btn { display: flex; align-items: center; justify-content: center; gap: 1rem; height: 5.6rem; border-radius: 1.4rem; border: 0; font-size: 1.75rem; font-weight: 700; padding: 0 2.5rem; }
.btn svg { width: 1.7rem; height: 1.7rem; }
.btn-white { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-outline { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn[disabled] { background: var(--line); color: #8A9AB0; border-color: var(--line); cursor: default; }
.btn:active:not([disabled]) { transform: scale(.98); }

/* Accueil */
.home-main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 1.8rem; }
.rule { width: 4.5rem; height: .25rem; background: var(--gold); border-radius: .2rem; }
.home h1 { margin: 0; font-size: 4.5rem; line-height: 1.04; font-weight: 800; letter-spacing: -.02em; }
.home h1 span { color: var(--gold); }
.home p { margin: 0; font-size: 1.6rem; line-height: 1.4; color: #C7D2E0; max-width: 50rem; }
.home-actions { display: flex; gap: 1.5rem; align-items: stretch; }
.home-actions .btn { flex: 1; flex-direction: column; gap: .3rem; height: 7rem; }
.home-actions .btn small { font-size: 1.05rem; font-weight: 500; opacity: .75; }
.foot { display: flex; justify-content: space-between; align-items: center; font-size: .95rem; color: #8FA3BC; margin-top: 1.5rem; }
.foot strong { color: #fff; }

/* Formulaires */
.form-wrap { flex: 1; min-height: 0; display: flex; gap: 2.5rem; padding: 2rem 3rem 2rem; }
.form-col { flex: 1; display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.form-wrap h1 { margin: 0 0 .4rem; font-size: 2.6rem; line-height: 1.1; font-weight: 800; letter-spacing: -.015em; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: 1.05rem; font-weight: 600; color: var(--muted); }
.field input { height: 4rem; border-radius: 1rem; border: 2px solid var(--line); background: #fff; font-size: 1.6rem; padding: 0 1.2rem; color: var(--navy); outline: none; user-select: text; -webkit-user-select: text; }
.field input:focus { border-color: var(--navy); }
.row2 { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }
.check { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 2px solid var(--line); border-radius: 1.1rem; padding: 1rem 1.2rem; font-size: 1.1rem; line-height: 1.35; }
.check.on { border-color: var(--navy); }
.check.disabled { opacity: .45; }
.check input { width: 1.9rem; height: 1.9rem; margin: 0; flex-shrink: 0; accent-color: var(--navy); }
.info { background: var(--gold-soft); color: #4A3B17; border-radius: 1.1rem; padding: 1rem 1.3rem; font-size: 1rem; line-height: 1.45; }
.spacer { flex: 1; }
.small { font-size: .95rem; color: var(--muted-2); text-align: center; }

/* Liste « après » */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; overflow-y: auto; align-content: start; padding-bottom: .5rem; }
.person { background: #fff; border: 2px solid var(--line); border-radius: 1.1rem; padding: 1rem 1.2rem; text-align: left; display: flex; flex-direction: column; gap: .25rem; color: var(--navy); }
.person strong { font-size: 1.5rem; }
.person span { font-size: 1rem; color: var(--muted-2); }
.empty { background: #fff; border-radius: 1.1rem; padding: 1.5rem; font-size: 1.2rem; color: var(--muted); }

/* Consignes */
.cards { display: flex; flex-direction: column; gap: 1rem; }
.card { display: flex; gap: 1.3rem; align-items: center; background: #fff; border-radius: 1.3rem; padding: 1.1rem 1.5rem; }
.dot { width: 3.4rem; height: 3.4rem; flex-shrink: 0; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800; }
.card strong { display: block; font-size: 1.4rem; }
.card span { font-size: 1.1rem; color: var(--muted); }

/* Question */
.qhead { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; padding: 1.2rem 5rem 1.1rem; }
.pill { padding: .35rem 1rem; border-radius: 999px; background: var(--gold-soft); color: var(--gold-text); font-size: .95rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.qhead h1 { margin: 0; font-size: 2.5rem; line-height: 1.15; font-weight: 800; letter-spacing: -.015em; }
.qhead p { margin: 0; font-size: 1.3rem; line-height: 1.35; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.chips span { padding: .35rem .9rem; border-radius: 999px; border: 1.5px solid var(--chip); font-size: 1.05rem; font-weight: 500; color: #2C4058; }
.qbody { flex: 1; min-height: 0; display: flex; gap: 1.75rem; padding: 0 3rem 2rem; }
.preview { position: relative; flex: 0 0 auto; height: 100%; aspect-ratio: 16 / 9; max-width: 62%; border-radius: 1.4rem; overflow: hidden; background: var(--navy-2); }
.preview video, .preview canvas { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.autonext { position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%); padding: .55rem 1.2rem; border-radius: 999px; background: rgba(10,22,40,.75); color: #fff; font-size: 1.05rem; font-weight: 600; }
.overlay { position: absolute; inset: 0; background: rgba(10,22,40,.55); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; color: #fff; text-align: center; }
.overlay .count { width: 9.5rem; height: 9.5rem; border-radius: 50%; border: .45rem solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 5.5rem; font-weight: 800; }
.overlay span { font-size: 1.25rem; font-weight: 600; }
.overlay small { font-size: 1.05rem; color: #C7D2E0; }
.badge { position: absolute; top: 1.1rem; padding: .5rem 1rem; border-radius: 999px; background: rgba(10,22,40,.7); color: #fff; font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; font-variant-numeric: tabular-nums; }
.badge.l { left: 1.1rem; letter-spacing: .08em; }
.badge.r { right: 1.1rem; }
.badge i { width: .75rem; height: .75rem; border-radius: 50%; background: var(--rec); display: block; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.tip { background: #fff; border-radius: 1.25rem; padding: 1.2rem 1.5rem; }
.tip b { display: block; font-size: .95rem; letter-spacing: .06em; color: var(--hint); }
.tip p { margin: .4rem 0 0; font-size: 1.4rem; line-height: 1.35; }
.progress { display: flex; flex-direction: column; gap: .5rem; }
.track { height: .65rem; border-radius: .35rem; background: var(--line); overflow: hidden; }
.track div { height: 100%; background: var(--gold); border-radius: .35rem; width: 0; }
.times { display: flex; justify-content: space-between; font-size: 1rem; font-weight: 600; color: var(--muted-2); font-variant-numeric: tabular-nums; }

/* Véhicules */
.cars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding: 0 3rem; }
.car { background: #fff; border: 3px solid #fff; border-radius: 1.4rem; padding: .9rem; display: flex; flex-direction: column; gap: .7rem; color: var(--navy); text-align: left; }
.car.on { border-color: var(--gold); }
.car img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: .9rem; display: block; background: #fff; }
.car strong { font-size: 1.3rem; }
.car .pick { height: 3.4rem; border-radius: .9rem; border: 2px solid var(--navy); background: #fff; color: var(--navy); font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.car.on .pick { background: var(--navy); color: #fff; }
.cars-foot { display: flex; justify-content: flex-end; padding: 1.5rem 3rem 2rem; margin-top: auto; }

/* Merci */
.thanks-main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 1.6rem; }
.thanks-main .ok { width: 5rem; height: 5rem; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.thanks-main .ok svg { width: 2.6rem; height: 2.6rem; }
.thanks-main h1 { margin: 0; font-size: 5.75rem; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.thanks-main p { margin: 0; font-size: 1.85rem; line-height: 1.3; font-weight: 600; max-width: 54rem; }
.thanks-main p.sub { font-size: 1.4rem; font-weight: 400; color: #C7D2E0; }

/* Fenêtres */
.modal { position: fixed; inset: 0; background: rgba(10,22,40,.75); display: flex; align-items: center; justify-content: center; z-index: 10; }
.modal-box { background: #fff; color: var(--navy); border-radius: 1.6rem; padding: 2.5rem; width: 46rem; max-width: 92vw; display: flex; flex-direction: column; gap: 1.2rem; }
.modal-box h2 { margin: 0; font-size: 2.2rem; }
.modal-box p { margin: 0; font-size: 1.3rem; line-height: 1.4; color: var(--muted); }
.modal-actions { display: flex; gap: 1rem; }
.modal-actions .btn { flex: 1; height: 4.6rem; font-size: 1.4rem; }
.op-list { font-size: 1.1rem; line-height: 1.6; margin: 0; padding-left: 1.2rem; }
.err { color: #B3261E; font-size: 1.1rem; }
