/* =====================================================================
   Horéa — landing alternative (dossier landing-alt/, autonome : supprimer le dossier ne change rien au reste).
   Charte : docs/charte-graphique.md — papier plat, courbes de niveau, une encre, une seule touche d'orange
   (la balise « tu es ici » de l'étape active). Ici la différence : des photos, peu de texte, des captures réelles.
   ===================================================================== */

@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(assets/fonts/archivo-wdth.woff2) format("woff2-variations");
}
@font-face {
  font-family: "Atkinson Hyperlegible Next Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(assets/fonts/atkinson-next.woff2) format("woff2-variations");
}
@font-face {
  font-family: "Atkinson Hyperlegible Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(assets/fonts/atkinson-mono.woff2) format("woff2-variations");
}

:root {
  --paper: #f7f2e9;
  --surface: #fbf8f1;
  --ink: #0c1b25;
  --ink-2: #3e5764;
  --ink-3: #566974; /* ≥ 4,5:1 sur le papier (petits textes : numéros d'étape, mentions) */
  --hair: rgba(12, 27, 37, 0.1);
  --hair-2: rgba(12, 27, 37, 0.22);
  --glacier-700: #2e6c88;
  --glacier-500: #57a3bf;
  --glacier-300: #afd8e6;
  --balise: #e87038;
  --night: #0c1b25;

  --f-disp: "Archivo Variable", "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-text: "Atkinson Hyperlegible Next Variable", "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-data: "Atkinson Hyperlegible Mono Variable", "Atkinson Hyperlegible Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gut: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --bar: 64px;
  --float: 0 1px 2px rgba(12, 27, 37, 0.08), 0 14px 30px rgba(12, 27, 37, 0.12);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + 12px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--f-text);
  position: relative;
}

/* fond : papier plat + courbes de niveau (le SVG ne sert que de masque, la couleur vient d'ici) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgb(140, 122, 96);
  opacity: 0.5;
  -webkit-mask: url(assets/topo-contours.svg) center / cover no-repeat;
  mask: url(assets/topo-contours.svg) center / cover no-repeat;
  pointer-events: none;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}
/* les « ? » cachés ne doivent jamais élargir la page */
main,
footer {
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(87, 163, 191, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gut);
}

/* ---------- typographie ---------- */

.kick {
  font: 500 13px/1.3 var(--f-data);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.kick b {
  color: var(--ink);
  font-weight: 700;
  margin-right: 0.8em;
}

h1,
h2,
h3 {
  font-family: var(--f-disp);
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-stretch: 112%;
  font-size: clamp(52px, 9.4vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

h2 {
  font-stretch: 106%;
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1;
  letter-spacing: -0.022em;
}

.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}

.data {
  font-family: var(--f-data);
}

/* ---------- boutons ---------- */

.btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--ink);
  color: var(--paper);
  font: 700 16px/1 var(--f-text);
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms var(--ease), color 140ms var(--ease), transform 140ms var(--ease);
}
.btn:hover {
  background: var(--glacier-700);
  color: #fff;
}
.btn:active {
  transform: scale(0.975);
}
.btn-sm {
  min-height: 40px;
  padding: 0 20px;
  font-size: 15px;
}
.btn .arr {
  transition: transform 220ms var(--ease-out);
}
.btn:hover .arr {
  transform: translateX(4px);
}
.link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: var(--hair-2);
  transition: text-decoration-color 140ms var(--ease), color 140ms var(--ease);
}
.link:hover {
  color: var(--glacier-700);
  text-decoration-color: currentColor;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

/* ---------- ? : l'info en plus, au survol ---------- */

.tip {
  position: relative;
  display: inline-block;
  vertical-align: 0.1em;
  margin-left: 8px;
}
.q {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--hair-2);
  background: transparent;
  color: var(--ink-2);
  font: 600 12px/1 var(--f-data);
  cursor: help;
  transition: background 140ms var(--ease), color 140ms var(--ease), border-color 140ms var(--ease);
}
.tip:hover .q,
.q:focus-visible,
.q[aria-expanded="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.tip-box {
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  left: 50%;
  width: max-content;
  max-width: min(280px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font: 400 14px/1.45 var(--f-text);
  text-align: left;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(calc(-50% + var(--dx, 0px)), -4px);
  transition: opacity 140ms var(--ease), transform 220ms var(--ease-out), visibility 0s linear 140ms;
}
.tip:hover .tip-box,
.q:focus-visible + .tip-box,
.q[aria-expanded="true"] + .tip-box {
  opacity: 1;
  visibility: visible;
  transform: translate(calc(-50% + var(--dx, 0px)), 0);
  transition-delay: 0s;
}

/* ---------- bandeau ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--bar);
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
}
.bar-in {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding-inline: var(--gut);
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: block;
  color: var(--ink);
}
.brand svg {
  display: block;
  height: 24px;
  width: calc(24px * 6626.76 / 736);
}
.nav {
  display: none;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font: 600 15px/1 var(--f-text);
  color: var(--ink-2);
  text-decoration: none;
  transition: background 140ms var(--ease), color 140ms var(--ease);
}
.nav a:hover {
  background: rgba(12, 27, 37, 0.05);
  color: var(--ink);
}
.bar .btn {
  margin-left: auto;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
  .nav + .btn {
    margin-left: 12px;
  }
}

/* ---------- départ ---------- */

.hero {
  /* le titre occupe le premier écran, centré à la verticale */
  min-height: calc(100vh - var(--bar));
  min-height: calc(100svh - var(--bar));
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: clamp(16px, 3vw, 40px);
  padding-bottom: clamp(88px, 11vw, 140px);
}
/* double flèche vers le bas : invite à descendre */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 3vw, 36px);
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--balise);
  background: rgba(12, 27, 37, 0.14);
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.scroll-cue:hover,
.scroll-cue:focus-visible {
  color: #fff;
  background: rgba(12, 27, 37, 0.7);
  transform: translateY(3px);
}
.scroll-cue svg {
  width: 26px;
  height: 26px;
}
.hero-top {
  display: grid;
  gap: 28px var(--gut);
  align-items: end;
}
/* guillemets de « offs » : un dessin orange incrusté (assets/guillemet.svg), pas des caractères du titre */
.nb {
  white-space: nowrap;
}
.gm {
  display: inline-block;
  height: 0.52em;
  width: auto;
  vertical-align: 0.2em;
  margin-inline: 0.05em;
  /* dessin incrusté (couture blanche au milieu), pas du texte : « 99 » à la fin */
}
.gm-o {
  transform: rotate(180deg); /* « 66 » à l'ouverture : le même dessin, retourné */
}
.hero-side {
  display: grid;
  gap: 24px;
  padding-bottom: 8px;
}
.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
.photo:hover img {
  transform: scale(1.025);
}

@media (min-width: 900px) {
  .hero-top {
    grid-template-columns: 1fr minmax(260px, 340px);
  }
}

/* ---------- la vidéo de présentation (36 s, en boucle, sans son) ---------- */

.film {
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 16 / 9;
}
.film video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 700px) {
  .film {
    aspect-ratio: 4 / 5;
  }
}

/* apparition du départ : un seul fondu à l'ouverture, rien au défilement */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.in {
  animation: rise 700ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 110ms);
}

/* ---------- sections ---------- */

.sec {
  padding-block: clamp(64px, 9vw, 130px);
}
.sec-head {
  max-width: 880px;
  margin-bottom: clamp(32px, 4.5vw, 64px);
}
.sec-head .lede {
  margin-top: 20px;
  max-width: 46ch;
}

/* ---------- le principe : trois sorties, trois formats ---------- */

.trio {
  display: grid;
  gap: 28px;
}
.use {
  margin: 0;
}
.use .photo {
  aspect-ratio: 4 / 3;
}
.use figcaption {
  display: grid;
  gap: 4px;
  padding-top: 16px;
}
.use h3 {
  font-stretch: 106%;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.use p {
  color: var(--ink-2);
}

@media (min-width: 900px) {
  .trio {
    grid-template-columns: 1.05fr 1fr 1.05fr;
    gap: clamp(20px, 2.6vw, 40px);
    align-items: start;
  }
  .use:nth-child(1) .photo,
  .use:nth-child(3) .photo {
    aspect-ratio: 4 / 5;
  }
  .use:nth-child(2) .photo {
    aspect-ratio: 1 / 1;
  }
  .use:nth-child(2) {
    margin-top: clamp(40px, 6vw, 96px);
  }
}

/* ---------- comment ça marche : cinq étapes, une capture à la fois ---------- */

.steps {
  display: grid;
  gap: 24px;
  grid-template-areas: "nav" "win" "desc";
}
.steps-nav {
  grid-area: nav;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: calc(var(--gut) * -1);
  padding-inline: var(--gut);
}
.steps-nav::-webkit-scrollbar {
  display: none;
}
.step {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 20px 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: 600 17px/1 var(--f-text);
  text-align: left;
  cursor: pointer;
  transition: background 140ms var(--ease), color 140ms var(--ease);
}
.step:hover {
  background: rgba(12, 27, 37, 0.05);
  color: var(--ink);
}
.step .no {
  font: 500 13px/1 var(--f-data);
  color: var(--ink-3);
}
.step .here {
  display: none;
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--balise);
}
.step[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
.step[aria-selected="true"] .no {
  color: rgba(247, 242, 233, 0.7);
}
.step[aria-selected="true"] .here {
  display: block;
}

.steps-desc {
  grid-area: desc;
  position: relative;
  z-index: 5;
  min-height: 92px;
}
.desc {
  display: none;
  padding-top: 4px;
}
.desc.is-active {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  animation: rise 420ms var(--ease-out) both;
}
.desc p {
  font-family: var(--f-disp);
  font-stretch: 106%;
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.steps-win {
  grid-area: win;
  position: relative;
  aspect-ratio: 16 / 10;
}
.win {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--hair);
  box-shadow: var(--float);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 320ms var(--ease), transform 480ms var(--ease-out), visibility 0s linear 320ms;
}
.win.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.win img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

@media (min-width: 900px) {
  .steps {
    grid-template-areas: "nav" "desc" "win";
    gap: 20px 0;
  }
  .steps-nav {
    flex-wrap: wrap;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
  .step {
    min-height: 52px;
    font-size: 18px;
  }
  .steps-desc {
    min-height: 0;
    padding: 12px 0 12px 4px;
  }
  .steps-win {
    margin-top: 4px;
  }
}

/* ---------- seul ou en équipe ---------- */

.duo {
  display: grid;
  gap: 40px;
}
.duo .use .photo {
  aspect-ratio: 3 / 2;
}
@media (min-width: 900px) {
  .duo {
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 4vw, 64px);
  }
  .duo .use:nth-child(2) {
    margin-top: 0;
  }
}

/* ---------- roadbook : bande nuit, feuilles de papier ---------- */

.band {
  position: relative;
  background: var(--night);
  color: #eaf1f4;
  --ink: #eaf1f4;
  --ink-2: #bfd0d8;
  --ink-3: #8fa8b5;
  --hair: rgba(255, 255, 255, 0.12);
  --hair-2: rgba(255, 255, 255, 0.24);
  isolation: isolate;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(175, 216, 230);
  opacity: 0.16;
  -webkit-mask: url(assets/topo-contours.svg) center / cover no-repeat;
  mask: url(assets/topo-contours.svg) center / cover no-repeat;
  pointer-events: none;
}
.band .btn {
  background: var(--paper);
  color: #0c1b25;
}
.band .btn:hover {
  background: var(--glacier-300);
  color: #0c1b25;
}
.band .tip-box {
  background: var(--paper);
  color: #0c1b25;
}
.band .tip:hover .q,
.band .q:focus-visible,
.band .q[aria-expanded="true"] {
  background: var(--paper);
  border-color: var(--paper);
  color: #0c1b25;
}

.rb-head {
  display: grid;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.rb-head .photo {
  aspect-ratio: 16 / 10;
}
.seg {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  margin-top: 28px;
}
.seg button {
  min-height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: 600 15px/1 var(--f-text);
  cursor: pointer;
  transition: background 140ms var(--ease), color 140ms var(--ease);
}
.seg button:hover {
  color: var(--ink);
}
.seg button[aria-pressed="true"] {
  background: var(--paper);
  color: #0c1b25;
}

.sheets {
  display: none;
  gap: 20px;
  padding: 8px var(--gut) 24px;
  margin-inline: calc(var(--gut) * -1);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.sheets::-webkit-scrollbar {
  display: none;
}
.sheets.is-active {
  display: flex;
  animation: rise 480ms var(--ease-out) both;
}
.sheet {
  flex: 0 0 min(78vw, 360px);
  margin: 0;
  scroll-snap-align: start;
}
.sheet img {
  width: 100%;
  height: auto;
  aspect-ratio: 1100 / 1556;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  cursor: zoom-in;
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
.sheet:hover img {
  transform: translateY(-8px);
  box-shadow: 0 26px 48px rgba(0, 0, 0, 0.55);
}
.sheet figcaption {
  padding-top: 16px;
  font: 500 12px/1.3 var(--f-data);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

@media (min-width: 900px) {
  .rb-head {
    grid-template-columns: 1fr minmax(320px, 0.8fr);
    gap: clamp(32px, 5vw, 88px);
  }
  .sheets {
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
    gap: clamp(20px, 3vw, 44px);
    scroll-snap-type: none;
  }
  .sheet {
    flex: 1 1 0;
    min-width: 0;
  }
  .sheet:nth-child(2) {
    margin-top: clamp(24px, 3.4vw, 56px);
  }
}

/* ---------- arrivée ---------- */

.end {
  border-top: 1px solid var(--hair);
}
.end-in {
  display: grid;
  gap: 36px;
  align-items: center;
}
.end h2 {
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.96;
  margin-bottom: 32px;
  max-width: 11ch;
}
.end .photo {
  aspect-ratio: 3 / 2;
}
@media (min-width: 900px) {
  .end-in {
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(32px, 6vw, 96px);
  }
}

/* ---------- pied ---------- */

.foot {
  border-top: 1px solid var(--hair);
  background: var(--paper);
  padding-block: 40px 56px;
  font-size: 14px;
  color: var(--ink-2);
}
.foot-in {
  display: grid;
  gap: 20px;
}
.foot .brand svg {
  height: 20px;
  width: calc(20px * 6626.76 / 736);
}
.foot p {
  max-width: 72ch;
  text-wrap: pretty;
}
.foot nav {
  display: flex;
  gap: 24px;
}
.foot nav a {
  font-weight: 600;
}
.credits {
  font: 400 12px/1.5 var(--f-data);
  color: var(--ink-3);
}

/* ---------- agrandir une capture ---------- */

dialog.zoom {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: clamp(12px, 3vw, 40px);
  border: 0;
  background: rgba(12, 27, 37, 0.88);
  display: none;
  place-items: center;
}
dialog.zoom[open] {
  display: grid;
  animation: fade 220ms var(--ease) both;
}
dialog.zoom img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  cursor: zoom-out;
}
dialog.zoom button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(12, 27, 37, 0.6);
  color: #fff;
  font: 400 22px/1 var(--f-text);
  cursor: pointer;
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* sur téléphone seulement : la préparation se fait sur grand écran */
.mob-note {
  display: none;
}
@media (max-width: 699px) {
  .mob-note {
    display: block;
  }
}

@media (max-width: 480px) {
  .bar-in {
    gap: 16px;
  }
  .bar .brand svg {
    height: 20px;
    width: calc(20px * 6626.76 / 736);
  }
  .bar .btn-sm {
    padding: 0 16px;
  }
}
