/* =========================================================
   Gare ton Char — feuille de style
   Palette tirée du logo : marine, corail, blanc.
   ========================================================= */

:root {
  --navy: #13305e;
  --navy-deep: #0b2149;
  --coral: #ee5f58;
  --coral-strong: #d33d36;
  --white: #ffffff;
  --mist: #eef2f8;
  --mist-2: #dde4ef;
  --muted: #4f5f7c;
  --asphalt: #1b2840;
  --ev: #4cc38a;
  --pmr: #2f6fd6;

  --font: "Archivo", "Segoe UI", system-ui, sans-serif;
  --led: "Doto", "Archivo", monospace;

  --radius-s: 8px;
  --radius-m: 14px;
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }

button, input, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--coral-strong);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-s);
}
.skip:focus { top: 12px; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-s);
  font-weight: 800;
  font-size: 1.0625rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--coral-strong); color: var(--white); }
.btn-primary:hover { background: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mist-2);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-stretch: 110%;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.brand img { width: 52px; height: 52px; }
.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-weight: 700;
}
.main-nav a {
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--coral); }

/* ---------- Hero ---------- */

.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}

.wordmark {
  font-size: clamp(4.6rem, 15vw, 12.5rem);
  font-weight: 900;
  font-stretch: 108%;
  line-height: .84;
  letter-spacing: -.01em;
  text-transform: uppercase;
  padding-bottom: .42em;
}
.wm-line { display: block; }
.wm-navy { color: var(--navy); }
.wm-coral { color: var(--coral); }
.wm-last { position: relative; width: max-content; }

.wm-car {
  position: absolute;
  left: 1.36em;
  bottom: -.47em;
  width: 1.72em;
  overflow: visible;
  animation: park 1.5s cubic-bezier(.2, .75, .25, 1) .25s both;
}
.wm-car-body { fill: var(--coral); stroke: var(--white); stroke-width: 12; paint-order: stroke; stroke-linejoin: round; }
.wm-wheel { fill: var(--coral); stroke: var(--white); stroke-width: 9; }

.wm-stripe {
  position: absolute;
  left: .03em;
  bottom: -.36em;
  width: 1.08em;
  height: .1em;
  background: var(--coral);
  transform-origin: left;
  animation: stripe .5s ease-out 1.55s both;
}

@keyframes park {
  0%   { transform: translateX(-130vw); }
  72%  { transform: translateX(3%); }
  86%  { transform: translateX(-1%) rotate(-.6deg); }
  100% { transform: translateX(0); }
}
@keyframes stripe {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero-lede {
  max-width: 34ch;
  margin-top: 28px;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.45;
  color: var(--navy);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Panneau d'affichage façon entrée de parking */
.board {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-m);
  padding: 26px 24px 22px;
  outline: 3px solid var(--white);
  outline-offset: -10px;
  margin-bottom: .6rem;
}
.board-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.board-title { font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.p-sign {
  flex: none;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: var(--white);
  color: var(--navy);
  border-radius: 8px;
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1;
}
.p-sign-sm { width: 40px; height: 40px; font-size: 1.7rem; border-radius: 6px; }
.board-rows { list-style: none; padding: 0; display: grid; gap: 10px; }
.board-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--navy-deep);
  border-radius: 8px;
  font-weight: 600;
}
.led {
  font-family: var(--led);
  font-weight: 900;
  font-size: 2.1rem;
  line-height: 1;
  color: #ff8a7f;
  text-shadow: 0 0 10px rgba(238, 95, 88, .75);
  font-variant-numeric: tabular-nums;
}
.board-foot { margin-top: 14px; font-size: .95rem; opacity: .85; }

/* ---------- Sections ---------- */

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-mist { background: var(--mist); }

.title {
  font-size: clamp(2.6rem, 6.4vw, 4.8rem);
  font-weight: 900;
  font-stretch: 112%;
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 28px;
}
.title::after {
  content: "";
  display: block;
  width: 1.3em;
  height: .11em;
  margin-top: .22em;
  background: var(--coral);
}
.section-lede { max-width: 46ch; font-size: 1.15rem; color: var(--muted); }
.section-lede + .section-lede { margin-top: 14px; }

/* Présentation */
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
.intro-text p { max-width: 52ch; color: var(--muted); font-size: 1.1rem; }
.intro-text p + p { margin-top: 16px; }

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 4px;
  margin-top: 8px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 18px;
  padding: 22px 0;
  border-top: 2px solid var(--mist-2);
}
.steps li:last-child { border-bottom: 2px solid var(--mist-2); }
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-size: 3.4rem;
  font-weight: 900;
  font-stretch: 110%;
  line-height: .85;
  color: var(--coral);
}
.steps h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.steps p { color: var(--muted); }

/* Panneaux de signalisation */
.signs {
  list-style: none;
  padding: 0;
  margin-top: clamp(56px, 8vw, 96px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 32px;
}
.sign { display: flex; align-items: flex-start; gap: 18px; }
.sign-plate {
  flex: none;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  background: var(--navy);
  border-radius: 10px;
  outline: 2.5px solid var(--white);
  outline-offset: -7px;
}
.sign-plate svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sign-plate svg .fill { fill: var(--white); stroke: none; }
.sign-plate-text { color: var(--white); font-weight: 900; font-size: 1.35rem; white-space: nowrap; }
.quota { font-weight: 700; font-size: .95rem; }
.quota.is-error { color: var(--coral-strong); }
.sign-round {
  flex: none;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 9px solid var(--coral-strong);
  background: var(--white);
  font-weight: 900;
  font-size: .82rem;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.sign-text { display: grid; gap: 2px; color: var(--muted); padding-top: 6px; }
.sign-text strong { color: var(--navy); font-size: 1.12rem; font-weight: 800; }

/* Règles */
.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
.rules-board {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-m);
  padding: 30px clamp(22px, 4vw, 40px) 34px;
  outline: 3px solid var(--white);
  outline-offset: -11px;
}
.rules-board-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  padding-bottom: 18px;
  margin-bottom: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, .2);
}
.rules-list div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
}
.rules-list dt {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 600;
}
.rules-list dt::after {
  content: "";
  flex: 1;
  border-bottom: 2px dotted rgba(255, 255, 255, .35);
  transform: translateY(-4px);
}
.rules-list dd {
  font-weight: 800;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rules-strong dd { color: #ff8a7f; }
.rules-extras {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px solid rgba(255, 255, 255, .2);
}
.rules-extras dt, .rules-extras dd { font-size: 1rem; opacity: .9; }

/* ---------- Réservation ---------- */

.reserve-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 40px; margin-bottom: 32px; }
.reserve-head .title { margin-bottom: 0; }
.reserve-head .section-lede { padding-bottom: 10px; }

.slot {
  display: grid;
  grid-template-columns: 200px 170px minmax(0, 1fr);
  gap: 18px 24px;
  align-items: end;
  padding: 22px 24px;
  background: var(--mist);
  border-radius: var(--radius-m);
}
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 700; font-size: .95rem; }
.field input,
.field select {
  height: 48px;
  padding: 0 12px;
  border: 2px solid var(--mist-2);
  border-radius: var(--radius-s);
  background: var(--white);
  font-weight: 600;
}
.field input:focus-visible,
.field select:focus-visible { outline-offset: 0; border-color: var(--navy); }

.duration { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.stepper {
  display: flex;
  align-items: center;
  height: 48px;
  background: var(--white);
  border: 2px solid var(--mist-2);
  border-radius: var(--radius-s);
}
.step {
  width: 44px;
  height: 100%;
  border: 0;
  background: none;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
}
.step:hover { color: var(--coral-strong); }
.stepper output { min-width: 92px; text-align: center; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 36px;
  padding: 0 12px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: transparent;
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
}
.chip:hover { background: var(--white); }
.chip.is-on { background: var(--navy); color: var(--white); }

.slot-summary { grid-column: 1 / -1; font-weight: 600; color: var(--muted); }
.slot-summary strong { color: var(--navy); }
.slot-summary.is-error { color: var(--coral-strong); }

.reserve-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  margin-top: 28px;
  align-items: start;
}

.plan-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 14px; }
.seg {
  display: inline-flex;
  padding: 4px;
  background: var(--mist);
  border-radius: 10px;
}
.seg-btn {
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
}
.seg-btn[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.free-count { margin-left: auto; font-weight: 700; }
.free-count b { color: var(--coral-strong); font-size: 1.2rem; }

.plan-wrap {
  border-radius: 20px;
  overflow-x: auto;
  background: var(--asphalt);
  -webkit-overflow-scrolling: touch;
}
.plan { width: 100%; min-width: 700px; height: auto; user-select: none; }

/* Éléments du plan (SVG) */
.plan text { font-family: var(--font); }
.plan .lane-dash { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 3; stroke-dasharray: 22 16; }
.plan .lane-arrow { fill: rgba(255, 255, 255, .3); }
.plan .wall { fill: none; stroke: #354a70; stroke-width: 8; stroke-linecap: round; }
.plan .block { fill: #233452; }
.plan .block-label { fill: rgba(255, 255, 255, .72); font-size: 13px; font-weight: 700; text-anchor: middle; }
.plan .zone-label { fill: var(--white); font-size: 15px; font-weight: 800; text-anchor: middle; }
.plan .level-paint { fill: rgba(255, 255, 255, .06); font-size: 120px; font-weight: 900; text-anchor: middle; font-stretch: 112%; }

.spot { cursor: pointer; outline: none; }
.spot-area { fill: transparent; transition: fill .15s; }
.spot-lines { fill: none; stroke: rgba(255, 255, 255, .78); stroke-width: 2.5; }
.spot-num { fill: rgba(255, 255, 255, .85); font-size: 15px; font-weight: 800; text-anchor: middle; pointer-events: none; }
.spot-pmr-fill { fill: var(--pmr); opacity: .5; }
.spot-ev-fill { fill: var(--ev); opacity: .16; }
.spot-icon-ev { fill: var(--ev); }
.spot-icon-pmr { fill: none; stroke: var(--white); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.spot-icon-pmr .fill { fill: var(--white); stroke: none; }
.ghost { opacity: 0; transition: opacity .15s; pointer-events: none; }
.ghost rect { fill: none; stroke: var(--white); stroke-width: 2; stroke-dasharray: 7 6; }

.spot.is-free:hover .spot-area { fill: rgba(255, 255, 255, .1); }
.spot.is-free:hover .ghost { opacity: .55; }
.spot.is-free:focus-visible .spot-area { fill: rgba(255, 255, 255, .12); stroke: var(--coral); stroke-width: 4; }
.spot.is-taken { cursor: not-allowed; }
.spot.is-dim { opacity: .28; }

.spot.is-selected .spot-area { fill: rgba(238, 95, 88, .42); stroke: var(--coral); stroke-width: 4; }
.spot.is-selected .ghost { opacity: 1; }
.spot.is-selected .ghost rect { stroke: var(--white); stroke-width: 2.5; }
.spot.is-selected .spot-num { fill: var(--white); }
.spot.is-selected .spot-area { animation: pulse 1.4s ease-in-out infinite; }
.spot.is-mine .spot-area { stroke: var(--coral); stroke-width: 3; fill: rgba(238, 95, 88, .18); }
.spot.is-flash .spot-area { animation: pulse 1s ease-in-out 3; }

.spot.is-shake { animation: shake .35s; transform-box: fill-box; transform-origin: center; }

@keyframes pulse {
  0%, 100% { stroke-opacity: 1; }
  50% { stroke-opacity: .25; }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.car-mine .car-body { stroke: var(--white); stroke-width: 3; }

/* Légende */
.legend {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 14px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--muted);
}
.legend li { display: flex; align-items: center; gap: 8px; }
.lg { width: 22px; height: 30px; border-radius: 4px; background: var(--asphalt); border: 2px solid var(--asphalt); }
.lg-free { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8); }
.lg-taken { background: linear-gradient(var(--asphalt) 0 0) padding-box, var(--asphalt); position: relative; }
.lg-taken::after { content: ""; display: block; margin: 3px auto; width: 12px; height: 20px; border-radius: 4px; background: #c9d2e0; }
.lg-selected { background: var(--coral); border-color: var(--coral); }
.lg-mine { box-shadow: inset 0 0 0 3px var(--coral); }
.lg-mine::after { content: ""; display: block; margin: 3px auto; width: 12px; height: 20px; border-radius: 4px; background: var(--coral); }
.lg-ev { background: rgba(76, 195, 138, .55); border-color: var(--asphalt); }
.lg-pmr { background: var(--pmr); }

/* Panneau latéral */
.panel {
  position: sticky;
  top: 92px;
  background: var(--white);
  border: 2px solid var(--mist-2);
  border-radius: var(--radius-m);
  padding: 24px;
}
.panel-empty { text-align: left; }
.panel-empty-art { width: 112px; margin-bottom: 18px; }
.panel-empty h3 { font-size: 1.35rem; font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.panel-empty p { color: var(--muted); }

.panel-spot { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.spot-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 84px;
  height: 104px;
  background: var(--asphalt);
  color: var(--white);
  border-radius: 10px;
  font-weight: 900;
  font-stretch: 110%;
  font-size: 1.75rem;
  box-shadow: inset 3px 0 0 rgba(255,255,255,.8), inset -3px 0 0 rgba(255,255,255,.8), inset 0 3px 0 rgba(255,255,255,.8);
}
.spot-badge.type-ev { background: linear-gradient(rgba(76,195,138,.28), rgba(76,195,138,.28)), var(--asphalt); }
.spot-badge.type-pmr { background: linear-gradient(rgba(47,111,214,.75), rgba(47,111,214,.75)), var(--asphalt); }
.panel-spot h3 { font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.panel-spot p { color: var(--muted); font-weight: 600; }

.recap {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  background: var(--mist);
  border-radius: var(--radius-s);
  margin-bottom: 20px;
}
.recap div { display: flex; justify-content: space-between; gap: 12px; }
.recap dt { color: var(--muted); font-weight: 600; }
.recap dd { font-weight: 700; text-align: right; }

.book-form { display: grid; gap: 16px; }
.book-form > label,
.book-form .label { font-weight: 700; font-size: .95rem; margin-bottom: -10px; }
.book-form input[type="email"] {
  height: 48px;
  padding: 0 12px;
  border: 2px solid var(--mist-2);
  border-radius: var(--radius-s);
  font-weight: 600;
}
.book-form input[type="email"]:focus-visible { outline-offset: 0; border-color: var(--navy); }

/* Plaque d'immatriculation */
.plate {
  display: flex;
  height: 56px;
  border: 2.5px solid var(--navy);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}
.plate:focus-within { outline: 3px solid var(--coral-strong); outline-offset: 2px; }
.plate-eu, .plate-dep {
  flex: none;
  display: grid;
  place-items: center;
  align-content: center;
  width: 36px;
  background: #1f4fbf;
  color: var(--white);
  font-weight: 800;
  font-size: .95rem;
  line-height: 1;
}
.plate-eu small { font-size: .6rem; color: #ffd84a; letter-spacing: .1em; margin-bottom: 4px; }
.plate input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  text-align: center;
  font-weight: 800;
  font-stretch: 90%;
  font-size: 1.6rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.plate input::placeholder { color: #b5c0d3; }
.field-error { color: var(--coral-strong); font-weight: 700; font-size: .95rem; margin-top: -8px; }
.field-error:empty { display: none; }

.options { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.options legend { font-weight: 700; font-size: .95rem; padding: 0; margin-bottom: 6px; }
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid var(--mist-2);
  border-radius: var(--radius-s);
  cursor: pointer;
  font-weight: 600;
}
.option:has(input:checked) { border-color: var(--navy); background: var(--mist); }
.option input { width: 20px; height: 20px; accent-color: var(--navy); margin: 0; }
.option span:last-child { margin-left: auto; font-weight: 800; white-space: nowrap; }

.quota { padding-top: 14px; border-top: 2px solid var(--mist-2); }
.step:disabled { opacity: .3; cursor: not-allowed; }
.fine { font-size: .9rem; color: var(--muted); }
.link-btn {
  border: 0;
  background: none;
  padding: 0;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  justify-self: start;
}

/* Mes réservations */
.mine { margin-top: 56px; }
.mine-title { font-size: 1.6rem; font-weight: 900; font-stretch: 108%; margin-bottom: 18px; }
.mine-empty { color: var(--muted); padding: 20px 0; border-top: 2px solid var(--mist-2); }
.mine-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.stub {
  display: grid;
  grid-template-columns: 76px 1fr;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.stub-spot {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
  font-size: 1.4rem;
  font-stretch: 110%;
  border-right: 2px dashed var(--white);
}
.stub-spot small { font-size: .72rem; font-weight: 700; opacity: .8; font-stretch: 100%; }
.stub-body { padding: 14px 16px; display: grid; gap: 4px; }
.stub-body p { font-size: .95rem; color: var(--muted); }
.stub-body strong { color: var(--navy); }
.stub-code { font-weight: 800; color: var(--navy); }
.stub-actions { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; }
.stub-actions button { font-size: .92rem; }
.stub-actions .danger { color: var(--coral-strong); }
.stub.is-past { opacity: .6; border-style: dashed; }

/* ---------- Accès ---------- */

.acces-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.infos { display: grid; gap: 20px; }
.infos dt { font-weight: 800; font-size: 1.1rem; }
.infos dd { color: var(--muted); }
.map { border-radius: 20px; overflow: hidden; border: 3px solid var(--navy); }
.map-label-light { fill: var(--white); font: 800 24px var(--font); }
.map-p { fill: var(--white); font: 900 64px var(--font); }
.map-label { fill: var(--coral-strong); font: 800 18px var(--font); }
.map-label-small { fill: var(--muted); font: 700 13px var(--font); }

.faq { margin-top: clamp(56px, 8vw, 96px); max-width: 820px; }
.faq-title { font-size: 1.6rem; font-weight: 900; font-stretch: 108%; margin-bottom: 12px; }
.faq details { border-top: 2px solid var(--mist-2); }
.faq details:last-child { border-bottom: 2px solid var(--mist-2); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--coral-strong); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 64ch; }

/* ---------- Pied de page ---------- */

.site-footer { background: var(--navy); color: var(--white); padding: 48px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.footer-mark { font-weight: 900; font-stretch: 110%; font-size: 1.6rem; text-transform: uppercase; }
.footer-mark .coral { color: var(--coral); }
.footer-small { margin-left: auto; opacity: .7; font-size: .9rem; }

/* ---------- Ticket ---------- */

.ticket-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.ticket-dialog::backdrop { background: rgba(11, 33, 73, .72); }
.ticket-dialog[open] { animation: ticket-in .45s cubic-bezier(.2, .8, .3, 1.1); }
@keyframes ticket-in {
  from { transform: translateY(-40px) rotate(-2deg); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.ticket {
  background: var(--white);
  border-radius: 16px;
  color: var(--navy);
  overflow: hidden;
}
.ticket-top { padding: 24px 24px 18px; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.ticket-mark { font-weight: 900; font-stretch: 110%; font-size: 1.2rem; line-height: .9; text-transform: uppercase; }
.ticket-mark span { display: block; }
.ticket-mark .coral { color: var(--coral); }
.ticket-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mist);
  font-weight: 800;
  font-size: .9rem;
}
.ticket-ok svg { width: 18px; height: 18px; fill: none; stroke: var(--coral-strong); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ticket-main { padding: 0 24px 20px; display: flex; gap: 18px; align-items: center; }
.ticket-main .spot-badge { width: 96px; height: 118px; font-size: 2.1rem; }
.ticket-main h2 { font-size: 1.4rem; font-weight: 800; line-height: 1.15; }
.ticket-main p { color: var(--muted); font-weight: 600; }
.ticket-rows { padding: 0 24px 18px; display: grid; gap: 8px; }
.ticket-rows div { display: flex; justify-content: space-between; gap: 12px; }
.ticket-rows dt { color: var(--muted); font-weight: 600; }
.ticket-rows dd { font-weight: 700; text-align: right; }
.ticket-total dd { font-size: 1.3rem; font-weight: 900; }
.ticket-perf {
  position: relative;
  height: 0;
  border-top: 3px dashed var(--mist-2);
  margin: 4px 0;
}
.ticket-perf::before,
.ticket-perf::after {
  content: "";
  position: absolute;
  top: -14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(11, 33, 73, 1);
}
.ticket-perf::before { left: -13px; }
.ticket-perf::after { right: -13px; }
.ticket-code { padding: 18px 24px 24px; text-align: center; }
.ticket-code svg { width: 100%; height: 64px; }
.ticket-code p { margin-top: 8px; font-weight: 800; letter-spacing: .14em; font-size: 1.1rem; }
.ticket-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.ticket-actions .btn-ghost { background: var(--white); border-color: var(--white); }
.ticket-actions .btn-ghost:hover { background: var(--mist); color: var(--navy); }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  max-width: calc(100vw - 32px);
  padding: 14px 20px;
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  font-weight: 700;
  transform: translate(-50%, 140%);
  visibility: hidden;
  transition: transform .3s cubic-bezier(.2, .8, .3, 1), visibility .3s;
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }

.swipe-hint { display: none; margin-top: 8px; font-size: .9rem; font-weight: 600; color: var(--muted); }
@media (max-width: 760px) { .swipe-hint { display: block; } }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .reserve-grid { grid-template-columns: minmax(0, 1fr); }
  .panel { position: static; }
  .slot { grid-template-columns: 1fr 1fr; }
  .field-duration { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .hero-grid,
  .intro-grid,
  .rules-grid,
  .acces-grid { grid-template-columns: minmax(0, 1fr); }
  .board { max-width: 420px; }
  .signs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav { display: none; }
  .header-inner .btn { margin-left: auto; }
}

@media (max-width: 600px) {
  .signs { grid-template-columns: minmax(0, 1fr); }
  .slot { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; }
  .brand-name { display: none; }
  .free-count { margin-left: 0; width: 100%; }
  .footer-small { margin-left: 0; }
  .panel { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Impression : seulement le ticket ---------- */

@media print {
  body > *:not(.ticket-dialog) { display: none !important; }
  .ticket-dialog { position: static; display: block; width: 100%; max-width: 420px; }
  .ticket-dialog::backdrop { display: none; }
  .ticket-actions { display: none; }
  .ticket { border: 2px solid var(--navy); }
  .ticket-perf::before, .ticket-perf::after { display: none; }
}

/* ---------- Profil étudiant / externe ---------- */

.profile { border: 0; padding: 0; margin: 0; }
.profile legend { font-weight: 700; font-size: .95rem; padding: 0; margin-bottom: 6px; }
.profile-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.profile-opt {
  position: relative;
  display: block;
  padding: 12px 14px;
  border: 2px solid var(--mist-2);
  border-radius: var(--radius-s);
  cursor: pointer;
}
.profile-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.profile-opt span { display: grid; gap: 2px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.profile-opt strong { color: var(--navy); font-size: 1rem; font-weight: 800; }
.profile-opt:has(input:checked) { border-color: var(--navy); background: var(--navy); }
.profile-opt:has(input:checked) span,
.profile-opt:has(input:checked) strong { color: var(--white); }
.profile-opt:has(input:focus-visible) { outline: 3px solid var(--coral-strong); outline-offset: 2px; }

.total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.total span { font-weight: 700; }
.total small { display: block; color: var(--muted); font-weight: 600; font-size: .9rem; }
.total strong { font-size: 1.8rem; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }

.map-p-sm { font-size: 48px; }
