/* Parking City Zaventem — Guide retour
   Mobile-first, lisible en plein jour, utilisable d'une main. */

:root {
  --orange: #f45a16;        /* couleur de marque (fonds, boutons) */
  --orange-press: #d94a0c;
  --orange-ink: #c2410c;    /* orange pour du texte sur blanc (contraste AA 5.2:1) */
  --orange-soft: #fff1e8;
  --orange-line: #ffd2b8;
  --ink: #141414;
  --ink-2: #333333;
  --muted: #5f5f5f;
  --line: #e4e4e2;
  --bg: #f4f4f2;
  --card: #ffffff;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --ok: #0f7a3d;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 8px 24px rgb(0 0 0 / .06);
  --dock-h: 88px;
  --top-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 8px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--dock-h) + var(--safe-b) + 12px);
  min-height: 100dvh;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--orange-ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 8px; }

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgb(255 255 255 / .96);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 3px solid var(--orange);
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar-in { max-width: 680px; margin: 0 auto; height: var(--top-h); padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1; }
.brand-top { white-space: nowrap; font-family: Georgia, "Times New Roman", serif; font-size: 21px; letter-spacing: -.6px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.brand-plane { width: 20px; height: 20px; fill: var(--orange); stroke: none; transform: rotate(-12deg); }
.brand-sub { font-size: 10.5px; letter-spacing: 5.2px; font-weight: 700; margin-top: 4px; padding-left: 2px; color: var(--ink-2); }

.langs { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.langs button { min-width: 44px; height: 40px; border: 0; background: transparent; border-radius: 9px; font-weight: 800; font-size: 14px; color: var(--ink-2); letter-spacing: .3px; }
.langs button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- Mise en page ---------- */
.view { max-width: 680px; margin: 0 auto; padding: 16px 16px 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.15; }
h1:focus { outline: none; }

/* ---------- Accueil ---------- */
.hero { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px 20px 20px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -56px; top: -56px; width: 128px; height: 128px; border-radius: 50%; background: var(--orange); }
.hero > * { position: relative; z-index: 1; }
.kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ffb48f; margin-bottom: 8px; }
.hero h1 { font-size: 30px; font-weight: 850; max-width: 15ch; }
.hero p { margin: 10px 0 0; color: #e9e9e9; font-size: 16px; max-width: 34ch; }

.summary { margin: 14px 0 0; padding: 16px; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.summary li { counter-increment: s; display: flex; align-items: center; gap: 12px; font-weight: 650; font-size: 17px; }
.summary li::before { content: counter(s); flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-ink); display: grid; place-items: center; font-weight: 850; border: 2px solid var(--orange-line); }
.summary li:nth-child(2)::before { background: var(--orange); color: #fff; border-color: var(--orange); }

/* ---------- Boutons ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; padding: 14px 18px; border-radius: 16px; border: 0; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: .01em; -webkit-tap-highlight-color: transparent; transition: transform .08s ease, background-color .15s ease; }
.btn:active { transform: scale(.985); }
.btn svg { width: 24px; height: 24px; flex: none; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:active { background: var(--orange-press); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border: 2px solid var(--line); font-size: 17px; }
.btn-call { background: var(--orange); color: #fff; min-height: 66px; font-size: 20px; letter-spacing: .03em; box-shadow: 0 6px 18px rgb(244 90 22 / .35); }
.btn-call .num { display: inline-block; margin-top: 4px; font-size: 15px; font-weight: 800; letter-spacing: .02em; background: #fff; color: var(--ink); padding: 2px 10px; border-radius: 999px; }
.btn-call .lbl { display: flex; flex-direction: column; align-items: center; line-height: 1.2; text-align: center; }
.call-block { margin-top: 14px; }
.call-note { margin: 8px 2px 0; font-size: 15px; color: var(--muted); text-align: center; }
.stack { display: grid; gap: 12px; margin-top: 14px; }

.teaser { margin-top: 16px; padding: 18px; display: grid; gap: 6px; }
.teaser h2 { font-size: 19px; }
.teaser p { margin: 0 0 8px; color: var(--muted); font-size: 15.5px; }
.teaser .btn { min-height: 50px; font-size: 17px; }

.foot { max-width: 680px; margin: 10px auto 0; padding: 8px 16px 18px; text-align: center; font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
.foot a { color: var(--muted); }

/* ---------- Progression ---------- */
.progress { position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top, 0px) + 3px); z-index: 20; background: rgb(244 244 242 / .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); margin: -16px -16px 12px; padding: 10px 16px 10px; border-bottom: 1px solid var(--line); }
.progress-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 800; color: var(--ink-2); margin-bottom: 8px; }
.progress-label b { color: var(--orange-ink); font-size: 15px; }
.segments { display: flex; gap: 6px; }
.seg { flex: 1 1 0; min-width: 0; border: 0; background: transparent; padding: 4px 0 0; display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-height: 44px; color: var(--muted); }
.seg .bar { display: block; height: 6px; border-radius: 6px; background: #d9d9d6; }
.seg .nm { font-size: 11.5px; font-weight: 700; line-height: 1.1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.seg.done .bar { background: var(--ink); }
.seg.on .bar { background: var(--orange); }
.seg.on .nm { color: var(--ink); font-weight: 850; }

/* ---------- Étape ---------- */
.step-head { display: flex; gap: 14px; align-items: flex-start; margin: 4px 0 14px; }
.step-ico { flex: 0 0 52px; height: 52px; border-radius: 16px; background: var(--orange); color: #fff; display: grid; place-items: center; }
.step-ico svg { width: 28px; height: 28px; }
.step-head h1 { font-size: 27px; font-weight: 850; }
.step-text { font-size: 18.5px; line-height: 1.5; margin: 0 0 14px; color: var(--ink); }

.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 16.5px; line-height: 1.45; margin: 12px 0 0; }
.note svg { width: 24px; height: 24px; flex: none; margin-top: 1px; }
.note b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.note-tip { background: var(--orange-soft); border: 1px solid var(--orange-line); }
.note-tip svg { color: var(--orange-ink); }
.note-tip b { color: var(--orange-ink); }
.note-warn { background: var(--danger-soft); border: 2px solid #f3b4ae; color: #5c120c; font-weight: 650; }
.note-warn svg { color: var(--danger); }
.note-warn b { color: var(--danger); }

/* Niveaux (étape 3) */
.levels { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; margin: 0 0 14px; }
.lvl { border-radius: 16px; padding: 14px 12px 12px; display: grid; gap: 4px; justify-items: center; text-align: center; position: relative; }
.lvl .n { font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.lvl .t { display: flex; align-items: center; gap: 6px; font-weight: 850; font-size: 19px; }
.lvl .t svg { width: 22px; height: 22px; }
.lvl .v { margin-top: 4px; font-size: 14px; font-weight: 900; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }
.lvl .v svg { width: 16px; height: 16px; }
.lvl.ok { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgb(244 90 22 / .3); }
.lvl.ok .v { background: #fff; color: var(--ink); }
.lvl.no { background: #fff; color: #5f5f5f; border: 2px dashed #c9c9c6; }
.lvl.no .v { background: var(--danger); color: #fff; }

/* ---------- Galerie ---------- */
.gallery { position: relative; border-radius: var(--radius); overflow: hidden; background: #111; margin: 0 0 6px; box-shadow: var(--shadow); }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; position: relative; height: min(58vh, 540px); min-height: 300px; }
.gallery.land .slide { height: auto; min-height: 0; aspect-ratio: 16 / 10.5; }
.slide button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; position: relative; overflow: hidden; }
.slide button:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.slide .bg { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(18px) brightness(.55); transform: scale(1.05); }
.slide .fg { position: relative; width: 100%; height: 100%; object-fit: contain; }
.gal-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: linear-gradient(transparent, rgb(0 0 0 / .65)); color: #fff; pointer-events: none; }
.gal-count { font-weight: 800; font-size: 14px; background: rgb(0 0 0 / .55); padding: 5px 10px; border-radius: 999px; }
.gal-zoom { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; background: rgb(0 0 0 / .55); padding: 5px 10px; border-radius: 999px; }
.gal-zoom svg { width: 16px; height: 16px; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .92); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow); }
.gal-nav svg { width: 24px; height: 24px; }
.gal-nav.prev { left: 10px; } .gal-nav.next { right: 10px; }
.gal-nav[disabled] { opacity: 0; pointer-events: none; }
.dots { display: flex; justify-content: center; gap: 8px; padding: 10px 0 2px; }
.dots button { width: 28px; height: 28px; border: 0; background: transparent; padding: 0; display: grid; place-items: center; }
.dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #c9c9c6; transition: all .2s; }
.dots button[aria-current="true"]::before { width: 22px; border-radius: 6px; background: var(--orange); }
.caption { font-size: 14.5px; color: var(--muted); text-align: center; margin: 2px 8px 10px; min-height: 1.4em; }

/* ---------- Arrivée (étape 5) ---------- */
.arrived { margin-top: 16px; padding: 18px; text-align: center; display: grid; gap: 6px; justify-items: center; }
.arrived .badge { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.arrived .badge svg { width: 30px; height: 30px; }
.arrived h2 { font-size: 21px; }
.arrived p { margin: 0; color: var(--muted); }
.arrived .btn { margin-top: 8px; }

/* ---------- Formulaire ---------- */
.form-card { padding: 20px 18px; }
.form-card h1 { font-size: 26px; font-weight: 850; }
.form-intro { color: var(--muted); font-size: 16px; margin: 8px 0 16px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 750; font-size: 15.5px; }
.field input { width: 100%; height: 54px; padding: 0 14px; border: 2px solid #cfcfcb; border-radius: 12px; background: #fff; font-size: 17px; }
.field input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 4px rgb(244 90 22 / .2); }
.field input[aria-invalid="true"] { border-color: var(--danger); background: #fffafa; }
.field .err { color: var(--danger); font-size: 14.5px; font-weight: 650; }
.field .hint { color: var(--muted); font-size: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 2px solid var(--line); border-radius: 12px; margin: 4px 0 12px; font-size: 15.5px; line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 26px; height: 26px; margin: 0; accent-color: var(--orange); }
.privacy-note { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; font-weight: 650; font-size: 15.5px; }
.form-status.err { background: var(--danger-soft); color: #5c120c; border: 1px solid #f3b4ae; }
.success { text-align: center; padding: 26px 18px; display: grid; gap: 8px; justify-items: center; }
.success .badge { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.success .badge svg { width: 34px; height: 34px; }
.success h1 { font-size: 26px; }
.success p { margin: 0; color: var(--ink-2); }
.success .btn { margin-top: 12px; }
.ts-box { margin: 0 0 12px; min-height: 0; }

/* ---------- Barre d'actions (zone du pouce) ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgb(255 255 255 / .97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(0 0 0 / .06); padding: 10px 12px calc(10px + var(--safe-b)); }
.dock-in { max-width: 680px; margin: 0 auto; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.35fr); align-items: stretch; }
.dock-in.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.dock-in.one { grid-template-columns: 1fr; }
.dock-in.start { grid-template-columns: auto minmax(0, 1fr); }
.dock .btn { min-height: 64px; font-size: 19px; padding: 10px 12px; border-radius: 16px; }
.dock .btn-back { background: #ececea; color: var(--ink); }
.dock .btn-round { width: 70px; padding: 0; border-radius: 18px; background: var(--ink); color: #fff; flex-direction: column; gap: 2px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.dock .btn-round svg { width: 24px; height: 24px; }
.dock .btn-call { box-shadow: none; }

/* ---------- Visionneuse ---------- */
.lb { position: fixed; inset: 0; z-index: 80; background: #000; color: #fff; display: flex; flex-direction: column; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px; gap: 10px; }
.lb-count { font-weight: 800; font-size: 15px; }
.lb-hint { font-size: 13px; color: #cfcfcf; flex: 1; text-align: center; }
.lb-btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .16); color: #fff; display: grid; place-items: center; }
.lb-btn svg { width: 26px; height: 26px; }
.lb-stage { flex: 1; position: relative; overflow: hidden; touch-action: none; }
.lb-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform-origin: 0 0; will-change: transform; user-select: none; -webkit-user-drag: none; }
.lb-bottom { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px calc(14px + var(--safe-b)); gap: 12px; }
.lb-cap { flex: 1; text-align: center; font-size: 14.5px; color: #e6e6e6; }

/* ---------- Divers ---------- */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--dock-h) + var(--safe-b) + 14px); z-index: 60; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 650; max-width: calc(100% - 32px); text-align: center; }
.noscript { padding: 20px; max-width: 640px; margin: auto; font-size: 18px; }

@media (min-width: 700px) {
  .hero h1 { font-size: 36px; }
  .step-head h1 { font-size: 30px; }
}
@media (max-width: 360px) {
  .brand-top { font-size: 17px; }
  .brand-plane { width: 16px; height: 16px; }
  .langs button { min-width: 38px; }
  .dock { padding-left: 8px; padding-right: 8px; }
  .dock-in { gap: 6px; }
  .dock .btn { font-size: 19px; padding: 8px 6px; gap: 4px; line-height: 1.15; }
  .dock .btn svg { width: 20px; height: 20px; }
  .dock .btn-round { width: 60px; font-size: 9.5px; letter-spacing: 0; }
  .hero h1 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
