/* Vanne Bleue — polices, couleurs, ossature de l'application (rail, carte, panneau). */
@font-face { font-family: "Borel"; src: url("fonts/borel.woff2?v=2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gabarito"; src: url("fonts/gabarito.woff2?v=2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --mer: #D3E4EA; --lisere: #C6DBE3; --terre: #FFFFFF; --rose: #C9126A; --rose-appui: #A00E55;
  --marais: #DDEBE4; --bois: #C7DDCD; --encre: #0F2A3A; --gris: #4A6272; --piste: #7FA3B5; --volet: #2B5D53; --mer-nom: #3D5666;
  --filet: rgb(15 42 58 / .12);
  --main: "Borel", "Segoe Print", cursive;
  --texte: "Gabarito", "Segoe UI", system-ui, sans-serif;
  --rail: 88px; --panneau: 400px;
  --courbe: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 1024px) and (max-width: 1279px) { :root { --panneau: 360px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--mer); color: var(--encre); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mer); font: 400 16.5px/1.5 var(--texte); font-variant-numeric: tabular-nums; }
html.js, html.js body { height: 100%; overflow: hidden; overscroll-behavior: none; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }
.evitement { position: absolute; z-index: 100; left: 12px; top: 12px; padding: 12px 16px; background: var(--encre); color: #fff; font-weight: 700;
  border-radius: 6px; transform: translateY(-200%); }
.evitement:focus { transform: none; outline-color: #fff; }

/* L'application tient l'écran : rien ne défile hors du corps du panneau. */
.app { position: relative; display: grid; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr); height: calc(100svh - var(--demobar-offset, 0px)); }
.scene { position: relative; min-width: 0; height: 100%; overflow: hidden; overflow: clip; }
@media (min-width: 1024px) {
  .app { grid-template-columns: var(--rail) 1fr; }
  .scene { display: grid; grid-template-columns: minmax(0, 1fr) var(--panneau); grid-template-rows: minmax(0, 1fr); }
}

/* Titres à la main du magasin : Borel, jamais en capitales, jamais d'approche. */
.titre-main { font: 400 34px/1.5 var(--main); font-feature-settings: "calt"; letter-spacing: 0; text-wrap: balance; }
@media (max-width: 1023px) { .titre-main { font-size: 28px; } }

/* Boutons : l'encre pour avancer, le rose seulement pour réserver. */
.bouton, .bouton-rose { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px; border: 0; border-radius: 6px;
  font: 700 17px/1.2 var(--texte); text-decoration: none; text-align: center; }
.bouton-encre { background: var(--encre); color: #fff; }
.bouton-rose { background: var(--rose); color: #fff; }
.bouton-rose:active, .rail-resa:active, .cartouche-resa:active { background: var(--rose-appui); }
.bouton-encre:focus-visible, .bouton-rose:focus-visible { outline-color: var(--encre); }
@media (hover: hover) {
  .bouton-encre:hover { background: #1d3d50; }
  .bouton-rose:hover { background: var(--rose-appui); }
}
.ouvert { color: var(--volet); font-weight: 700; }

/* Sans script : les états s'empilent et la page défile. */
html.sans-js .carte, html.sans-js .feuille-tete { display: none; }
html.sans-js .app { height: auto; }
html.sans-js .scene { display: block; height: auto; overflow: visible; }
html.sans-js .panneau { position: static; transform: none; height: auto; max-width: 720px; margin: 0 auto; }
html.js .sans-script { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}
