/* Schibsted Grotesk : SIL Open Font License 1.1 (fichier de Fontsource, voir polices/LICENCES.txt) */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/carte/polices/schibsted-grotesk-latin-wght-normal.woff2?v=4c8b93f4") format("woff2"); }
/* Direction « brut » : noir, blanc, et l'aluminium de la carte pour seule matière.
   Mise en page : le logo seul au centre, tout en haut. Dessous, un plateau blanc qui reste
   en place pendant que la molette fait défiler cinq secondes de film (120 images rendues
   dans Blender) ; de très grandes capitales, calées à gauche, changent d'un coup à chaque
   temps du film. Ensuite des blocs pleins, noirs puis blancs, séparés par des coupes franches.
   Une seule famille, celle du logo (Schibsted Grotesk, licence OFL). Aucun arrondi, aucune
   ombre, aucun dégradé : les seuls filets sont ceux des tableaux. Un seul mouvement : le film.
   Tout le contenu vient de ../specs.md. */
:root {
  --blanc: #FFFFFF;       /* le fond du film et de la page */
  --noir: #000000;        /* le texte, les blocs pleins, les filets */
  --alu: #B4B7BB;         /* l'aluminium, pris sur le rendu : bords de champs, texte discret sur noir */
  --gris: #5C6066;        /* le texte secondaire sur blanc (6,3:1) */
  --f: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --tete: 60px;           /* la hauteur de la barre du logo */
  --g: max(20px, env(safe-area-inset-left, 0px));
  --d: max(20px, env(safe-area-inset-right, 0px));
  --filet: 3px;
  color-scheme: light;
}
@media (min-width: 900px) { :root { --g: max(40px, env(safe-area-inset-left, 0px)); --d: max(40px, env(safe-area-inset-right, 0px)); } }

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--blanc); color: var(--noir); font: 400 18px/1.45 var(--f); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--blanc); }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, dt { margin: 0; }
:focus-visible { outline: 3px solid var(--noir); outline-offset: 3px; }
.sombre :focus-visible { outline-color: var(--blanc); }
.cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Les grandes capitales : la seule voix forte de la page */
.geant { font-weight: 900; font-size: clamp(46px, 7.6vw, 144px); line-height: .84; letter-spacing: -.05em; text-transform: uppercase; text-wrap: balance; }
.grand { font-weight: 900; font-size: clamp(42px, 7.4vw, 128px); line-height: .86; letter-spacing: -.045em; text-transform: uppercase; text-wrap: balance; }

/* Le bouton : un rectangle plein, rien d'autre. Il répond tout de suite : il s'inverse au survol
   et au clavier, et s'enfonce sous le doigt. */
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: var(--filet) solid var(--noir); background: var(--noir); color: var(--blanc); font: 800 16px/1 var(--f); text-decoration: none; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .09s linear, color .09s linear, transform .06s linear; }
.sombre .bouton { border-color: var(--blanc); background: var(--blanc); color: var(--noir); }
@media (hover: hover) {
  .bouton:hover { background: var(--blanc); color: var(--noir); }
  .sombre .bouton:hover { background: var(--noir); color: var(--blanc); }
}
.bouton:focus-visible { background: var(--blanc); color: var(--noir); }
.sombre .bouton:focus-visible { background: var(--noir); color: var(--blanc); }
.bouton:active { transform: translateY(3px); background: var(--alu); color: var(--noir); }
.sombre .bouton:active { background: var(--alu); color: var(--noir); }
.bouton[disabled] { opacity: .6; cursor: default; }

/* La barre : le logo au centre, tout en haut */
.tete { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--tete); padding-left: var(--g); padding-right: var(--d); background: var(--blanc); border-bottom: var(--filet) solid var(--noir); }
.tete .logo { grid-column: 2; display: block; }
.tete .logo img { height: 22px; width: auto; }
/* le bouton de la liste d'attente : un bloc noir sur toute la hauteur de la barre, dans l'angle */
.tete .bouton { grid-column: 3; justify-self: end; align-self: stretch; min-height: 0; margin-right: calc(-1 * var(--d)); padding: 0 max(22px, var(--d)) 0 26px; border-width: 0 0 0 var(--filet); font-size: 17px; }
.tete .bouton:active { transform: none; }
.tete .court { display: none; }
@media (max-width: 560px) { .tete .long { display: none; } .tete .court { display: inline; } .tete .bouton { padding: 0 max(16px, var(--d)) 0 16px; font-size: 16px; } .tete .logo img { height: 19px; } }

/* Le film. La scène est haute (c'est la course de la molette) ; le plateau reste en place. */
/* (la course est longue exprès : chaque message a le temps d'être lu, une bonne hauteur d'écran et demie) */
.scene { position: relative; height: calc(100svh + 750vh); }
@media (max-width: 700px) { .scene { height: calc(100svh + 900vh); } }   /* un coup de pouce va loin */
.plateau { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--tete)); height: calc(100svh - var(--tete) - env(safe-area-inset-top, 0px)); min-height: 420px; overflow: hidden; background: var(--blanc); isolation: isolate; }
.plateau canvas, .plateau .affiche { position: absolute; inset: 0; width: 100%; height: 100%; }
.plateau .affiche { object-fit: contain; }
/* Les textes du film. Les capitales sont blanches en « différence » : noires sur le blanc,
   claires sur l'ombre de la carte. La petite phrase est une étiquette noire, lisible partout. */
.textes { position: absolute; inset: 0; pointer-events: none; }
.temps .geant { mix-blend-mode: difference; color: var(--blanc); }
.temps { position: absolute; left: var(--g); right: var(--d); bottom: clamp(40px, 6vh, 64px); display: grid; gap: clamp(10px, 1.4vw, 20px); visibility: hidden; }
.temps.ici { visibility: visible; }
/* chaque message arrive d'un court glissement : on voit qu'il a changé */
.temps.ici p { animation: arrive .42s cubic-bezier(.2, .7, .2, 1) both; }
.temps.ici .geant { animation: arrive .5s cubic-bezier(.2, .7, .2, 1) .05s both; }
@keyframes arrive { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.temps p { justify-self: start; padding: .28em .55em .34em; background: var(--noir); color: var(--blanc); font-weight: 500; font-size: clamp(16px, 1.4vw, 22px); line-height: 1.25; max-width: 30em; }
.temps .geant { max-width: 12em; }
/* Le rang du message, le temps du film, et la barre : cinq parts égales, de gauche à droite */
.compteur { position: absolute; right: var(--d); bottom: 24px; min-width: 4.2em; white-space: pre; text-align: right; font: 700 14px/1 var(--f); mix-blend-mode: difference; color: var(--blanc); }
.barre { position: absolute; inset: auto 0 0; height: 11px; background: var(--blanc); border-top: var(--filet) solid var(--noir); }
.barre b { position: absolute; top: 0; bottom: 0; width: var(--filet); background: var(--noir); }
.barre i { display: block; height: 100%; background: var(--noir); transform-origin: 0 50%; transform: scaleX(0); }

/* Sans défilement à piloter (moins d'animations, ou page qui ne défile pas elle-même) :
   le plateau redevient un bloc ordinaire. */
.scene.pose { height: auto; }
.scene.pose .plateau { position: relative; top: auto; height: clamp(420px, 62.5vw, 860px); }
.scene.fixe .textes { position: relative; padding: 40px var(--d) 56px var(--g); display: grid; gap: 40px; background: var(--blanc); }
.scene.fixe .plateau { height: auto; overflow: visible; }
.scene.fixe .plateau canvas, .scene.fixe .plateau .affiche { position: relative; inset: auto; height: auto; aspect-ratio: 1.6; }
.scene.fixe .temps { position: static; visibility: visible; }
.scene.fixe .temps p, .scene.fixe .temps .geant { animation: none; }
.scene.fixe .temps .geant { mix-blend-mode: normal; color: var(--noir); }
.scene.fixe .compteur, .scene.fixe .barre { display: none; }

/* Les blocs : une coupe franche entre chacun */
.bloc { padding: clamp(64px, 9vw, 140px) var(--d) clamp(64px, 9vw, 140px) var(--g); border-top: var(--filet) solid var(--noir); }
.sombre { background: var(--noir); color: var(--blanc); border-top-color: var(--noir); }

/* Ce qu'elle fait : une fiche, une ligne par geste */
.gestes .grand { max-width: 9em; }
.liste { margin-top: clamp(40px, 6vw, 88px); border-bottom: var(--filet) solid var(--noir); }
.liste > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px clamp(20px, 4vw, 64px); align-items: baseline; padding: clamp(18px, 2.2vw, 30px) 0; border-top: var(--filet) solid var(--noir); }
.liste h3 { font-weight: 800; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.02; letter-spacing: -.03em; }
.liste p { font-size: clamp(17px, 1.45vw, 22px); line-height: 1.35; max-width: 32em; }

/* Off is off : la carte noire dans le noir, en pleine largeur */
.eteint { padding-top: 0; }
.eteint figure { margin: 0 calc(-1 * var(--d)) clamp(36px, 5vw, 72px) calc(-1 * var(--g)); }
.eteint figure img { width: 100%; height: auto; aspect-ratio: 3.2; object-fit: cover; }
.eteint p { margin-top: clamp(20px, 2.4vw, 36px); font-size: clamp(18px, 1.7vw, 26px); line-height: 1.3; max-width: 26em; }

/* La fiche et les questions */
.fiche { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 120px); }
.fiche h2 { font-weight: 900; font-size: clamp(30px, 3.4vw, 56px); line-height: .9; letter-spacing: -.04em; text-transform: uppercase; margin-bottom: clamp(20px, 2.4vw, 36px); }
.carac { border-bottom: var(--filet) solid var(--noir); }
.carac div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 14px 0; border-top: var(--filet) solid var(--noir); }
.carac dt { font-weight: 700; }
.reserve { margin-top: 14px; font-size: 15px; color: var(--gris); }
.questions { border-bottom: var(--filet) solid var(--noir); }
.questions details { border-top: var(--filet) solid var(--noir); }
.questions summary { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; font-weight: 700; cursor: pointer; list-style: none; transition: background-color .09s linear, color .09s linear, padding .09s linear; }
@media (hover: hover) { .questions summary:hover { background: var(--noir); color: var(--blanc); padding-left: 12px; padding-right: 12px; } }
.questions summary:active { background: var(--alu); color: var(--noir); }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; font-weight: 900; }
.questions details[open] summary::after { content: "−"; }
.questions details p { padding: 0 0 18px; max-width: 30em; }

/* La liste d'attente */
.fin .grand { max-width: 8em; }
.fin .phrase { margin-top: clamp(20px, 2.4vw, 36px); font-size: clamp(18px, 1.7vw, 26px); line-height: 1.3; }
.action { margin-top: clamp(32px, 4vw, 56px); max-width: 640px; }
.action label { display: block; margin-bottom: 10px; font-weight: 700; font-size: 15px; }
.reserver { display: flex; gap: 0; }
.reserver input { flex: 1; min-width: 0; min-height: 60px; padding: 0 18px; border: var(--filet) solid var(--blanc); border-radius: 0; background: var(--noir); color: var(--blanc); font: 500 18px/1 var(--f); outline: none; }
.reserver input::placeholder { color: var(--alu); }
.reserver input:focus { background: var(--blanc); color: var(--noir); }
.reserver input:focus::placeholder { color: var(--gris); }
.reserver .bouton { min-height: 60px; padding: 0 26px; font-size: 17px; }
.mot { min-height: 1.4em; margin-top: 12px; font-weight: 700; font-size: 16px; }
.note { margin-top: 6px; font-size: 16px; color: var(--alu); }
.note b { color: var(--blanc); font-weight: 700; }
.inscrit { padding: 22px 0; border-top: var(--filet) solid var(--blanc); border-bottom: var(--filet) solid var(--blanc); }
.inscrit strong { display: block; font-weight: 900; font-size: clamp(28px, 3vw, 44px); line-height: 1; letter-spacing: -.035em; text-transform: uppercase; }
.inscrit p { margin-top: 8px; }
.pied { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: clamp(72px, 10vw, 160px); padding-top: 18px; border-top: var(--filet) solid var(--blanc); font-size: 15px; color: var(--alu); }
.pied img { height: 18px; width: auto; }

@media (max-width: 800px) {
  .liste > div, .fiche { grid-template-columns: minmax(0, 1fr); }
  .eteint figure img { aspect-ratio: 2; }
  .reserver { flex-direction: column; }
  .reserver .bouton { width: 100%; }
  .temps p { max-width: 20em; }
}
@media (forced-colors: active) {
  .bouton, .reserver input { border: 2px solid ButtonText; }
  .temps .geant, .compteur { mix-blend-mode: normal; color: CanvasText; }
}
