/* DUERP.ai · proposition D, Relief
   Un plan de géomètre : tout le vocabulaire du tirage sert de système de mise en page. */

:root {
  --blue-top: #0a254a;
  --blue-hor: #1b4e85;
  --blue: #0b2b53;
  --blue-deep: #081f3e;
  --ivory: #f2ead9;
  --ivory-bright: #f6efe0;
  --signal: #ff5a1f;
  --signal-ink: #b93300;

  --paper: var(--blue-deep);
  --ink: var(--ivory);
  --dim: #b9c6d6;
  --rule: rgb(242 234 217 / 0.34);
  --sig: var(--signal);

  --gutter: clamp(16px, 2.6vw, 40px);
  --display: 'Archivo', 'Arial Narrow', sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --toponym: 'Instrument Serif', 'Times New Roman', serif;
  --spring: cubic-bezier(0.2, 1.3, 0.4, 1);
}

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

html {
  background: var(--blue-top);
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
  /* Le ciel du héros : le canvas y est transparent pour laisser passer le titre. */
  background: linear-gradient(to bottom, var(--blue-top), var(--blue-hor) 100vh, var(--blue-hor));
}

h1,
h2,
h3,
p,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}
ol {
  list-style: none;
}
sup {
  font-size: 0.6em;
  line-height: 0;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--sig);
  outline-offset: 3px;
}

/* ---- Couches fixes ---- */

#scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  display: block;
  pointer-events: none;
}
.fallback {
  display: none;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background-size: 192px 192px;
}

/* Sans WebGL ou avant le premier rendu : des courbes concentriques en pur CSS. */
.no-webgl #scene {
  display: none;
}
.no-webgl .fallback {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1;
  background: repeating-radial-gradient(ellipse 120% 74% at 72% 112%, transparent 0 39px, rgb(242 234 217 / 0.2) 39px 40px);
}
.no-webgl .atlas--verso,
.no-webgl .steps,
.no-webgl .wait,
.no-webgl .faq,
.no-webgl .foot {
  position: relative;
  background: var(--ivory);
}
.no-webgl .flip {
  height: auto;
}
.no-webgl .flip__stage {
  position: static;
  height: auto;
  padding: 18vh var(--gutter);
}
.no-webgl .flip__line {
  position: static;
}
.no-webgl .flip__line--verso {
  margin-top: 8vh;
  color: var(--ivory);
}

/* ---- Barre haute ---- */

.bar {
  position: fixed;
  z-index: 6;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  pointer-events: none;
}
.bar a {
  pointer-events: auto;
}
.bar__mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 6px;
  color: var(--ivory);
  background: var(--blue-deep);
  text-decoration: none;
  font-weight: 800;
  font-stretch: 112%;
  font-size: 18px;
  letter-spacing: -0.01em;
  transition:
    color 0.25s,
    background 0.25s;
}
.bar__mark svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
}
.bar__dot {
  fill: var(--signal);
  stroke: none;
}
.bar__cta {
  font-family: var(--mono);
  font-size: 11.5px;
  font-stretch: 88%;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 9px 13px;
  color: var(--ivory);
  background: var(--blue-deep);
  border: 1px solid rgb(242 234 217 / 0.55);
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.bar__short {
  display: none;
}
.bar__cta:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--blue-deep);
}
.bar__mark.is-verso {
  color: var(--blue);
  background: var(--ivory-bright);
}
.bar__cta.is-verso {
  color: var(--blue);
  background: var(--ivory-bright);
  border-color: rgb(11 43 83 / 0.6);
}
.bar__cta.is-verso:hover {
  background: var(--blue);
  color: var(--ivory);
  border-color: var(--blue);
}

/* ---- Bord de plan ---- */

.edge {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  font-family: var(--mono);
  font-stretch: 84%;
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--ivory);
}
.no-webgl .edge,
.no-webgl .peaks,
.no-webgl .probe {
  display: none;
}
.edge > div {
  position: absolute;
}
.edge .is-verso {
  color: var(--blue);
}
.edge__scale {
  left: var(--gutter);
  bottom: 18px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.edge__bar {
  display: block;
  height: 8px;
}
.edge__bar i {
  display: block;
  height: 100%;
  min-width: 40px;
  border: 1px solid currentColor;
  border-top: 0;
  background: repeating-linear-gradient(to right, currentColor 0 25%, transparent 25% 50%) bottom / 100% 3px no-repeat;
}
/* Le texte du bord de plan garde son aplat : jamais à nu sur une zone animée. */
.edge > div {
  padding: 5px 8px;
  background: var(--blue-deep);
  transition:
    color 0.25s,
    background 0.25s;
}
.edge > .is-verso,
.edge__alti.is-verso .edge__alti-title,
.edge__alti.is-verso .edge__alti-value {
  background: var(--ivory-bright);
}
.edge > .edge__alti,
.edge > .edge__alti.is-verso {
  padding: 0;
  background: none;
}
.edge__alti-title,
.edge__alti-value {
  padding: 4px 7px;
  background: var(--blue-deep);
  transition: background 0.25s;
}
.edge__sheet {
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  white-space: nowrap;
}
.edge__alti {
  right: var(--gutter);
  top: 50%;
  height: 34vh;
  transform: translateY(-50%);
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: end;
  gap: 8px;
  text-align: right;
}
.edge__alti-title {
  writing-mode: horizontal-tb;
  max-width: 11ch;
}
.edge__alti-track {
  position: relative;
  width: 14px;
  height: 100%;
  background: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 6.25%);
  background-size: 7px 100%;
  background-repeat: no-repeat;
  background-position: right top;
  border-right: 1px solid currentColor;
}
.edge__alti-mark {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  display: block;
}
.edge__alti-mark::before {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 22px;
  height: 3px;
  background: var(--signal);
}
.edge__alti-value {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---- Étiquettes de sommet ---- */

.peaks {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.peak {
  --mark: var(--signal);
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  will-change: transform;
}
.peak__stem {
  position: absolute;
  left: -0.5px;
  bottom: 0;
  width: 1px;
  height: 44px;
  background: var(--mark);
}
.peak__stem::after {
  content: '';
  position: absolute;
  left: -3px;
  bottom: -3px;
  width: 7px;
  height: 7px;
  background: var(--mark);
  transform: rotate(45deg);
}
.peak__tag {
  position: absolute;
  left: 0;
  bottom: 44px;
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 5px 10px 6px;
  white-space: nowrap;
  color: var(--ivory);
  background: var(--blue-deep);
  border-left: 2px solid var(--mark);
}
.peak__cote {
  font-family: var(--mono);
  font-stretch: 84%;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--signal);
}
.peak em {
  font-family: var(--toponym);
  font-size: 17px;
  line-height: 1;
}
.peak--under .peak__stem {
  top: 0;
  bottom: auto;
  height: var(--drop);
}
.peak--under .peak__stem::after {
  top: -3px;
  bottom: auto;
}
.peak--under .peak__tag {
  top: var(--drop);
  bottom: auto;
}
.peak--left .peak__tag {
  left: auto;
  right: -1px;
  border-left: 0;
  border-right: 2px solid var(--mark);
}
.peak--calm {
  --mark: var(--ivory);
}
.peak--calm .peak__cote {
  color: var(--ivory);
}
.peak--verso .peak__tag {
  color: var(--blue);
  background: var(--ivory-bright);
}
.peak--verso .peak__cote {
  color: var(--signal-ink);
}
.peak--verso.peak--calm {
  --mark: var(--blue);
}
.peak--verso.peak--calm .peak__cote {
  color: var(--blue);
}

/* Point de relevé */

.probe {
  position: fixed;
  z-index: 3;
  left: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
  color: var(--ivory);
  will-change: transform;
}
.probe__cross {
  position: absolute;
  left: -13px;
  top: -13px;
  width: 27px;
  height: 27px;
  background:
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}
.probe__cross::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--signal);
}
.probe__tag {
  position: absolute;
  left: 20px;
  top: 12px;
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 12px;
  align-items: baseline;
  width: max-content;
  padding: 6px 10px 7px;
  font-family: var(--mono);
  font-stretch: 84%;
  font-size: 10.5px;
  background: var(--blue-deep);
  border: 1px solid rgb(242 234 217 / 0.4);
}
.probe__cote {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.probe__xy {
  grid-column: 1 / -1;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.verso .probe {
  color: var(--blue);
}
.verso .probe__tag {
  background: var(--ivory-bright);
  border-color: rgb(11 43 83 / 0.5);
}
.verso .probe__xy {
  color: #3a5270;
}

/* ---- Pièces communes ---- */

main {
  display: block;
}
section {
  position: relative;
}
.panel,
.plate {
  position: relative;
  z-index: 4;
  background: var(--paper);
  color: var(--ink);
}
.tag {
  display: block;
  font-family: var(--mono);
  font-stretch: 84%;
  font-size: 11px;
  font-weight: 500;
  color: var(--dim);
  letter-spacing: 0.01em;
}
.button {
  display: inline-block;
  font-family: var(--mono);
  font-stretch: 92%;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  padding: 16px 20px;
  border: 0;
  border-radius: 0;
  background: var(--signal);
  color: #081f3e;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.5s var(--spring);
  box-shadow: 4px 4px 0 var(--ink);
}
.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

/* ---- Héros ---- */

.hero {
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 74px var(--gutter) 46px;
}
.hero__title {
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ivory);
  font-size: min(14.1vw, 21vh);
  line-height: 0.84;
  letter-spacing: -0.012em;
}
.line {
  display: block;
  position: relative;
  white-space: nowrap;
  transform: scaleY(var(--squash, 1));
  transform-origin: 0 0;
}
.line--tall {
  /* Sous le canvas : les sommets se dressent devant ces lettres. */
  z-index: 0;
  font-stretch: 62%;
}
.line--flat {
  /* Au-dessus du canvas : la promesse n'est jamais masquée. */
  z-index: 4;
  font-stretch: 125%;
  font-size: min(7.84vw, 11.7vh);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin-top: 0.12em;
  text-shadow: 0 0 20px rgb(8 31 62 / 0.7);
}
.word {
  display: inline-block;
}
.ch {
  display: inline-block;
  transform-origin: 50% 100%;
}
html:not(.ready) .ch {
  transform: scaleY(0.02);
}
.ready .ch {
  transition: transform 1.25s var(--spring);
  transition-delay: calc(var(--i) * 13ms + 60ms);
}
@media (prefers-reduced-motion: reduce) {
  html:not(.ready) .ch {
    transform: none;
  }
  .ready .ch {
    transition: none;
  }
}

.hero__foot {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-right: 60px;
}
.hero__pitch {
  max-width: 440px;
  padding: 18px 20px 22px;
  background: var(--blue-deep);
  border: 1px solid var(--rule);
}
.hero__pitch p {
  margin-bottom: 16px;
  font-size: 16.5px;
  line-height: 1.45;
}
.hero__pitch strong {
  font-weight: 700;
  color: var(--ivory-bright);
}

.cartouche {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(420px, 34vw);
  font-family: var(--mono);
  font-stretch: 84%;
  font-size: 11px;
  line-height: 1.35;
  background: var(--blue-deep);
  border: 1px solid var(--rule);
}
.cartouche > div {
  padding: 7px 10px 8px;
  border-bottom: 1px solid var(--rule);
}
.cartouche > div:nth-child(even) {
  border-right: 1px solid var(--rule);
}
.cartouche > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.cartouche__wide {
  grid-column: 1 / -1;
}
.cartouche dt {
  color: var(--dim);
  font-size: 9.5px;
}
.cartouche dd {
  font-weight: 500;
}
.cartouche__wide dd {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}

/* ---- Points cotés ---- */

.facts {
  padding: 34vh var(--gutter) 30vh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 20px;
  row-gap: 32vh;
}
.facts__title {
  grid-column: 1 / span 7;
  align-self: start;
  padding: 18px 22px 24px;
  font-size: clamp(38px, 6vw, 92px);
  font-weight: 800;
  font-stretch: 70%;
  line-height: 0.96;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
}
.facts__title .tag {
  margin-bottom: 14px;
  text-transform: none;
}
.fact {
  padding: 8px 24px 26px;
  border: 1px solid var(--rule);
}
.fact--a {
  grid-column: 8 / span 5;
  margin-top: 10vh;
}
.fact--b {
  grid-column: 1 / span 5;
}
.fact--c {
  grid-column: 5 / span 8;
}
.fact--d {
  grid-column: 1 / span 6;
}
.fact__fig {
  font-size: clamp(96px, 15vw, 224px);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 1.02;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.fact__fig sup {
  font-size: 0.34em;
  vertical-align: 1.3em;
  line-height: 0;
  letter-spacing: 0;
}
.fact__fig--signal {
  color: var(--sig);
}
.fact h3 {
  font-size: clamp(21px, 2.1vw, 30px);
  font-weight: 700;
  font-stretch: 100%;
  line-height: 1.12;
  margin-bottom: 12px;
}
.fact p:not(.fact__fig) {
  max-width: 58ch;
  color: var(--ink);
}
.fact__note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
  font-family: var(--mono);
  font-stretch: 84%;
  font-size: 12.5px;
  line-height: 1.5;
}

/* Une planche se pose sur le plan : elle glisse, tourne un peu, et se cale en ressort. */
[data-reveal] {
  transform: translate3d(0, 70px, 0) rotate(var(--tilt, 0.9deg));
  clip-path: inset(0 0 58% 0);
  opacity: 0;
}
[data-reveal].in {
  transform: none;
  clip-path: inset(-20px);
  opacity: 1;
  transition:
    transform 1.15s var(--spring),
    clip-path 0.7s cubic-bezier(0.2, 0.75, 0.2, 1),
    opacity 0.12s linear;
}
.no-webgl [data-reveal] {
  transform: none;
  clip-path: none;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    transform: none;
    clip-path: none;
    opacity: 1;
    transition: none;
  }
}

/* ---- Planches ---- */

.atlas {
  padding: 0 var(--gutter);
}
.atlas__head {
  max-width: 760px;
  padding: 18px 24px 26px;
  border: 1px solid var(--rule);
}
.atlas__head h2 {
  margin: 14px 0 14px;
  font-size: clamp(40px, 6.4vw, 100px);
  font-weight: 800;
  font-stretch: 66%;
  line-height: 0.95;
  text-transform: uppercase;
}
.atlas__head p {
  max-width: 54ch;
}

.plates {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 20px;
  row-gap: 22vh;
  padding: 24vh 0 22vh;
}
.plate {
  align-self: start;
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.plate__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 14px;
  font-family: var(--mono);
  font-stretch: 84%;
  font-size: 11px;
  color: var(--dim);
  border-bottom: 1px solid var(--rule);
}
.plate__fig {
  position: relative;
  min-width: 0;
  color: var(--ink);
}
.plate__fig svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.plate__text {
  padding: 16px 18px 20px;
  border-top: 1px solid var(--rule);
}
.plate h3 {
  font-size: clamp(25px, 2.7vw, 38px);
  font-weight: 800;
  font-stretch: 78%;
  line-height: 1.02;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.plate--cotation {
  grid-column: 1 / span 8;
}
.plate--ia {
  grid-column: 7 / span 6;
  --tilt: -0.8deg;
}
.plate--sites {
  grid-column: 1 / span 7;
}
.plate--strates {
  grid-column: 8 / span 5;
  margin-top: -6vh;
  --tilt: -0.6deg;
}
.plate--actions {
  grid-column: 4 / span 9;
}
.plate--relance {
  grid-column: 1 / span 10;
  --tilt: -0.5deg;
}
.plate--pdf {
  grid-column: 1 / span 5;
}
.plate--france {
  grid-column: 7 / span 6;
  margin-top: 8vh;
  --tilt: -0.7deg;
}

/* Traits communs des figures */
.fig-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.fig-thin {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.38;
  vector-effect: non-scaling-stroke;
}
.fig-bold {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
/* Sans non-scaling-stroke : le tiret qui dessine le tracé doit rester en unités du dessin. */
.fig-route {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
}
.fig-dash {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-dasharray: 5 5;
  vector-effect: non-scaling-stroke;
}
.fig-signal {
  fill: none;
  stroke: var(--sig);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}
.fig-dot {
  fill: var(--sig);
}
.fig-ink {
  fill: currentColor;
}
.fig-paper {
  fill: var(--paper);
}
.fig-text {
  fill: currentColor;
  font-family: var(--mono);
  font-stretch: 84%;
  font-size: 12px;
  stroke: var(--paper);
  stroke-width: 4px;
  paint-order: stroke;
}
.fig-text--dim {
  opacity: 0.72;
}

/* Planche 1 */
.cot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 26%);
}
.cot__side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-left: 1px solid var(--rule);
}
.cot__score {
  font-size: clamp(76px, 8.6vw, 124px);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.cot__score.is-critical {
  color: var(--sig);
}
.cot__gf {
  font-family: var(--mono);
  font-stretch: 84%;
  font-size: 12px;
}
.cot__list {
  display: grid;
  gap: 6px;
  margin-top: auto;
}
.toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  min-height: 40px;
  font-family: var(--mono);
  font-stretch: 84%;
  font-size: 12px;
  text-align: left;
  color: var(--ink);
  background: none;
  border: 1px dashed var(--rule);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.toggle::before {
  content: '';
  width: 10px;
  height: 10px;
  flex: none;
  border: 1px solid currentColor;
}
.toggle[aria-pressed='true'] {
  background: var(--ink);
  color: var(--paper);
  border-style: solid;
  border-color: var(--ink);
}
.toggle[aria-pressed='true']::before {
  background: currentColor;
}

/* Planche 2 */
.ia {
  padding: 4px 16px 10px;
}
.ia__row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.ia__row svg {
  height: 30px;
  width: 58px;
}
.ia__path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-dasharray: 5 5;
  vector-effect: non-scaling-stroke;
}
.ia__row[data-state='kept'] .ia__path {
  stroke-dasharray: none;
  stroke-width: 2.4;
}
.ia__kind {
  display: block;
  font-family: var(--mono);
  font-stretch: 84%;
  font-size: 10.5px;
  color: var(--dim);
}
.ia__label {
  display: block;
  font-size: 16.5px;
  line-height: 1.25;
}
.ia__row[data-state='dropped'] .ia__label {
  text-decoration: line-through;
  color: var(--dim);
}
.ia__row[data-state='dropped'] .ia__path {
  opacity: 0.25;
}
.ia__actions {
  display: flex;
  gap: 4px;
}
.chip {
  font-family: var(--mono);
  font-stretch: 84%;
  font-size: 11px;
  padding: 7px 8px;
  min-height: 34px;
  color: var(--ink);
  background: none;
  border: 1px solid var(--rule);
  cursor: pointer;
}
.chip:hover {
  border-color: var(--ink);
}
.chip[aria-pressed='true'] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.ia__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  font-family: var(--mono);
  font-stretch: 84%;
  font-size: 11.5px;
}

/* Planche 4 */
.plate--strates .plate__fig {
  padding: 8px 14px 0;
}

/* Planche 5 */
.act {
  padding: 6px 16px 14px;
}
.act__row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.7fr) minmax(170px, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 16.5px;
  line-height: 1.25;
}
.act__row--head {
  padding: 8px 0;
  font-family: var(--mono);
  font-stretch: 84%;
  font-size: 10.5px;
  color: var(--dim);
}
.act__mono {
  font-family: var(--mono);
  font-stretch: 84%;
  font-size: 12.5px;
}
.rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  font-family: var(--mono);
  font-stretch: 80%;
  font-size: 10.5px;
  padding-top: 15px;
}
.rail::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 4px;
  right: 4px;
  height: 1px;
  background: currentColor;
}
.rail i {
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--sig);
  box-shadow: 0 0 0 3px var(--paper);
}
.rail span:nth-of-type(2) {
  text-align: center;
}
.rail span:nth-of-type(3) {
  text-align: right;
}
.rail span {
  opacity: 0.76;
}
.rail span.on {
  opacity: 1;
  font-weight: 700;
}

/* Planche 6 */
.relance {
  position: relative;
}
.notice {
  position: absolute;
  width: 214px;
  padding: 8px 10px 9px;
  font-family: var(--mono);
  font-stretch: 84%;
  font-size: 11px;
  line-height: 1.35;
  background: var(--ink);
  color: var(--paper);
  transform-origin: 50% 0;
}
.notice b {
  display: block;
  font-family: var(--display);
  font-stretch: 100%;
  font-size: 15px;
  font-weight: 700;
}

/* Planche 7 */
.fold {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: 18px;
  padding: 18px 16px;
  align-items: center;
}
.fold__stage {
  position: relative;
  height: 280px;
  perspective: 1100px;
  /* La feuille dépliée fait quatre pans : sans ce cadre, elle élargirait la page sur mobile. */
  overflow: hidden;
}
.fold__sheet {
  position: absolute;
  left: 0;
  top: 6px;
  width: 190px;
  height: 268px;
  transform-style: preserve-3d;
  transform-origin: 0 50%;
}
.leaf {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: 0 50%;
  border: 1px solid var(--blue);
  background-color: var(--paper);
  background-image: repeating-radial-gradient(ellipse 120% 90% at 110% 20%, transparent 0 13px, rgb(11 43 83 / 0.34) 13px 14px);
}
.leaf .leaf {
  left: 100%;
  right: auto;
  width: 100%;
}
.cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 13px;
  background: var(--blue);
  color: var(--ivory);
  backface-visibility: hidden;
  transform: rotateY(180deg) translateZ(1px);
  font-family: var(--mono);
  font-stretch: 84%;
  font-size: 10.5px;
}
.cover b {
  font-family: var(--display);
  font-stretch: 78%;
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
}
.cover i {
  display: block;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.cover i.cover__head {
  height: 3px;
  width: 62%;
  margin-top: 6px;
  opacity: 1;
}
.cover__foot {
  margin-top: auto;
  text-align: right;
}
.fold__index {
  display: grid;
  gap: 8px;
  font-family: var(--mono);
  font-stretch: 84%;
  font-size: 12px;
  line-height: 1.3;
}
.fold__index li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.fold__index i {
  width: 10px;
  height: 10px;
  flex: none;
  margin-top: 3px;
  border: 1px solid currentColor;
  transition: background 0.2s;
}
.fold__index li.on i {
  background: var(--sig);
  border-color: var(--sig);
}

/* Planche 8 */
.situ {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
.situ__log {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 12px 14px;
  overflow: hidden;
  height: 100%;
  max-height: 300px;
  border-left: 1px solid var(--rule);
  font-family: var(--mono);
  font-stretch: 80%;
  font-size: 11px;
  line-height: 1.35;
}
.situ__log span {
  display: block;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--rule);
}

/* ---- Retournement ---- */

.flip {
  height: 260vh;
}
.flip__stage {
  position: sticky;
  top: 0;
  z-index: 4;
  height: 100vh;
  overflow: hidden;
}
.flip__line {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  font-size: min(17vw, 25vh);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 0.92;
  text-transform: uppercase;
}
.flip__line span {
  display: block;
}
.flip__line span:first-child {
  font-stretch: 125%;
  font-weight: 900;
  font-size: 0.34em;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.flip__line--recto {
  color: var(--ivory);
}
.flip__line--verso {
  color: var(--blue);
}
html:not(.webgl) .flip__line {
  clip-path: none;
}

/* ---- Après le retournement : tout s'imprime en bleu sur ivoire ---- */

.atlas--verso,
.steps,
.wait,
.faq,
.foot {
  --paper: var(--ivory-bright);
  --ink: var(--blue);
  --dim: #3e5674;
  --rule: rgb(11 43 83 / 0.42);
  --sig: var(--signal-ink);
  color: var(--blue);
}
.atlas--verso .button,
.wait .button {
  background: var(--signal);
  color: #081f3e;
}

/* ---- Itinéraire ---- */

.steps {
  padding: 6vh var(--gutter) 30vh;
}
.steps__head {
  display: inline-block;
  padding: 16px 22px 20px;
  border: 1px solid var(--rule);
}
.steps__head h2 {
  margin-top: 10px;
  font-size: clamp(40px, 6.8vw, 104px);
  font-weight: 800;
  font-stretch: 66%;
  line-height: 0.96;
  text-transform: uppercase;
}
.steps__route {
  position: relative;
}
/* Le tracé est calé sur la liste : il naît sous l'étape 1 et meurt sous l'étape 3. */
.steps__line {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.steps__line path {
  fill: none;
  stroke: var(--signal-ink);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}
.steps__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16vh 20px;
  margin-top: 8vh;
}
.step {
  padding: 12px 22px 22px;
  border: 1px solid var(--rule);
}
.step--1 {
  grid-column: 1 / span 5;
}
.step--2 {
  grid-column: 5 / span 5;
}
.step--3 {
  grid-column: 8 / span 5;
}
.step__cote {
  font-family: var(--mono);
  font-stretch: 84%;
  font-size: 12px;
  color: var(--dim);
}
.step h3 {
  margin: 6px 0 8px;
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 800;
  font-stretch: 74%;
  line-height: 1;
  text-transform: uppercase;
}

/* ---- Liste d'attente ---- */

.wait {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  align-items: start;
  padding: 8vh var(--gutter) 26vh;
}
.wait__form {
  grid-column: 1 / span 7;
  padding: 18px 26px 28px;
  border: 1px solid var(--rule);
}
.wait__form h2 span {
  display: block;
}
.wait__form h2 {
  margin: 12px 0 16px;
  font-size: clamp(42px, 6.6vw, 104px);
  font-weight: 800;
  font-stretch: 66%;
  line-height: 0.95;
  text-transform: uppercase;
}
.form {
  margin-top: 22px;
}
.form label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-stretch: 84%;
  font-size: 12px;
}
.form__row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.form input {
  flex: 1 1 260px;
  min-width: 0;
  min-height: 50px;
  padding: 0 14px;
  font: inherit;
  color: var(--blue);
  background: #fffaf0;
  border: 1px solid var(--blue);
  border-radius: 0;
}
.form input::placeholder {
  color: #566a84;
}
.form__note {
  min-height: 1.5em;
  margin-top: 12px;
  font-family: var(--mono);
  font-stretch: 84%;
  font-size: 13px;
  font-weight: 600;
}
.ledger {
  grid-column: 8 / span 5;
  padding: 14px 18px 8px;
  border: 1px solid var(--rule);
}
.ledger table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.ledger th,
.ledger td {
  padding: 13px 0;
  text-align: left;
  border-top: 1px solid var(--rule);
}
.ledger thead th {
  padding: 7px 0;
  border-top: 0;
  font-family: var(--mono);
  font-stretch: 84%;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--dim);
}
.ledger tbody th {
  font-family: var(--toponym);
  font-style: italic;
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}
.ledger td {
  width: 18%;
  font-family: var(--mono);
  font-stretch: 84%;
  font-size: 14px;
}
.ledger thead th:nth-child(n + 2),
.ledger td {
  text-align: right;
}
.ledger td:nth-child(2) {
  color: var(--signal-ink);
  text-decoration: line-through;
}
.ledger td:nth-child(3) {
  font-weight: 700;
}
.webgl .ledger tbody tr {
  transition:
    opacity 0.35s,
    transform 0.8s var(--spring);
}
.webgl:not(.still) .ledger tbody tr:not(.landed) {
  opacity: 0;
  transform: translateX(14px);
}

/* ---- FAQ ---- */

.faq {
  padding: 0 var(--gutter) 20vh;
}
.faq__inner {
  max-width: 840px;
  margin-left: auto;
  padding: 16px 26px 14px;
  border: 1px solid var(--rule);
}
.faq h2 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 4.4vw, 64px);
  font-weight: 800;
  font-stretch: 68%;
  line-height: 1;
  text-transform: uppercase;
}
details {
  border-top: 1px solid var(--rule);
  interpolate-size: allow-keywords;
}
details::details-content {
  block-size: 0;
  overflow: clip;
  transition:
    block-size 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    content-visibility 0.5s allow-discrete;
}
details[open]::details-content {
  block-size: auto;
}
@media (prefers-reduced-motion: reduce) {
  details::details-content {
    transition: none;
  }
}
summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1.2;
  transition: transform 0.5s var(--spring);
}
details[open] summary::after {
  transform: rotate(45deg);
}
details p {
  max-width: 62ch;
  padding-bottom: 16px;
}

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

.foot {
  position: relative;
  z-index: 4;
  padding: 0 var(--gutter) 22px;
  background: var(--ivory-bright);
  overflow: hidden;
}
.foot__mark {
  font-size: 16.1vw;
  font-weight: 900;
  font-stretch: 125%;
  line-height: 0.78;
  letter-spacing: -0.045em;
  transform: scaleY(0.46);
  transform-origin: 0 100%;
  margin-top: -6vw;
  white-space: nowrap;
}
.foot__line {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 2px solid var(--blue);
  font-family: var(--mono);
  font-stretch: 84%;
  font-size: 12px;
}

/* ---- Réductions ---- */

@media (max-width: 1100px) {
  .edge__alti {
    display: none;
  }
  .hero__foot {
    margin-right: 0;
  }
}

@media (max-width: 860px) {
  .facts,
  .plates,
  .steps__list,
  .wait {
    display: block;
  }
  .facts {
    padding: 30vh var(--gutter) 20vh;
  }
  .fact,
  .plate,
  .step,
  .ledger {
    margin-top: 34vh;
  }
  .plates {
    padding: 8vh 0 18vh;
  }
  .plate--cotation {
    margin-top: 16vh;
  }
  .plate--actions {
    margin-top: 0;
  }
  .wait__form {
    margin-bottom: 0;
  }
  .ledger {
    margin-top: 16px;
  }
  .step {
    margin-top: 16vh;
  }
  .steps__line {
    display: none;
  }
  .cot {
    grid-template-columns: minmax(0, 1fr);
  }
  .cot__side {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .cot__list {
    margin-top: 0;
  }
  .act__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 12px;
  }
  .act__row--head {
    display: none;
  }
  .act__row > :first-child,
  .act__row > .rail {
    grid-column: 1 / -1;
  }
  .act__row > :first-child {
    font-weight: 700;
  }
  .edge__sheet {
    left: auto;
    right: var(--gutter);
    transform: none;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16.5px;
  }
  .bar {
    padding: 12px var(--gutter);
  }
  .bar__cta {
    font-size: 11px;
    padding: 9px 10px;
  }
  .bar__long {
    display: none;
  }
  .bar__short {
    display: inline;
  }
  .plate--cotation .fig-text,
  .plate--sites .fig-text {
    font-size: 20px;
    stroke-width: 6px;
  }
  .plate--sites .fig-text--hub {
    font-size: 16px;
  }
  .plate--strates .fig-text {
    font-size: 16px;
  }
  .plate--relance .fig-text {
    font-size: 30px;
    stroke-width: 8px;
  }
  .ledger td {
    width: 24%;
  }
  .bar__mark {
    font-size: 16px;
  }
  .hero {
    padding-top: 66px;
    padding-bottom: 44px;
    min-height: 640px;
  }
  .hero__title {
    font-size: 12.5vw;
    line-height: 0.9;
  }
  .line--tall {
    transform: scaleY(calc(var(--squash, 1) * 1.72));
    margin-bottom: 0.66em;
  }
  .line--flat {
    font-size: 7.5vw;
    margin-top: 0.1em;
  }
  .hero__foot {
    display: block;
  }
  .cartouche {
    display: none;
  }
  .hero__pitch {
    padding: 13px 14px 16px;
  }
  .hero__pitch p {
    font-size: 15.5px;
    margin-bottom: 12px;
  }
  .fact__fig {
    font-size: 32vw;
  }
  .fact {
    padding: 4px 16px 20px;
  }
  .facts__title,
  .atlas__head,
  .steps__head {
    padding: 14px 16px 18px;
  }
  .wait__form,
  .faq__inner {
    padding: 14px 16px 18px;
  }
  .edge__scale {
    display: none;
  }
  .edge__sheet {
    bottom: 12px;
  }
  .peak em {
    font-size: 15px;
  }
  .ia__row {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .ia__row svg {
    width: 44px;
  }
  .ia__actions {
    grid-column: 1 / -1;
  }
  .chip {
    flex: 1;
    min-height: 40px;
  }
  .fold {
    grid-template-columns: minmax(0, 1fr);
  }
  .situ {
    grid-template-columns: minmax(0, 1fr);
  }
  .situ__log {
    border-left: 0;
    border-top: 1px solid var(--rule);
    height: 140px;
  }
  /* La figure est trop étroite pour porter les relances : elles tombent juste dessous. */
  .notice {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: auto;
    margin: 0 14px 8px;
  }
  .relance {
    padding-bottom: 6px;
  }
  .flip__line {
    font-size: 25vw;
  }
  .foot__mark {
    font-size: 15.4vw;
  }
  button.button,
  .form__row .button {
    width: 100%;
  }
}
