/*
 * Échappée — vitrine.
 *
 * Reprend à l'identique le système « roadbook » de l'application
 * (apps/web/src/styles.css) : papier de carnet de route, encre asphalte, rouge
 * gamay, jaune borne. La continuité visuelle entre echapee.fr et
 * app.echapee.fr est le seul lien qui reste entre les deux hôtes — la vitrine
 * est servie par Cloudflare Pages, l'application par le serveur.
 *
 * Écrite à la main, sans framework ni build : ce fichier est déployé tel quel.
 */

/* ── Polices auto-hébergées ─────────────────────────────────────────────────
   Aucun appel à un CDN : la vitrine doit s'afficher entièrement depuis son
   propre domaine. `swap` pour que le texte soit lisible avant leur arrivée. */
@font-face {
  font-family: "Bricolage Grotesque Variable";
  src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans Variable";
  src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #212a35;
  --ink-soft: #5b6673;
  --paper: #fcfbf7;
  --paper-dim: #f2f0e9;
  --hairline: #e3e0d6;
  --gamay: #b72850;
  --gamay-deep: #8e1f3e;
  --borne: #d9a50f;

  --display: "Bricolage Grotesque Variable", ui-sans-serif, system-ui, sans-serif;
  --sans: "Instrument Sans Variable", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Gouttière unique : toutes les sections s'y alignent, c'est ce qui tient
     la page ensemble une fois qu'on a retiré tout le reste. */
  --gutter: clamp(1.5rem, 5vw, 6rem);
  --measure: 34rem;
}

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

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Éléments partagés ──────────────────────────────────────────────────── */

.wrap {
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Le point gamay du logotype : c'est la seule marque de la maison, elle se
   retrouve à l'identique dans le panneau de l'application. */
.mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.mark::after {
  content: ".";
  color: var(--gamay);
}

/* Surtitre en mono : sert de repère de section, jamais de titre. */
.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}
.btn--primary {
  background: var(--gamay);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--gamay-deep);
}
.btn--ghost {
  border-color: var(--hairline);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--ink);
}
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gamay);
  outline-offset: 3px;
}

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

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
}
.head nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
}
.head nav a:not(.btn) {
  text-decoration: none;
  color: var(--ink-soft);
}
.head nav a:not(.btn):hover {
  color: var(--ink);
}
.head .btn {
  padding: 0.6rem 1.15rem;
  font-size: 0.9rem;
}
@media (max-width: 40rem) {
  .head nav .hide-sm {
    display: none;
  }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(3rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4.5rem);
}
.hero h1 {
  font-size: clamp(2.6rem, 1.4rem + 5.4vw, 5.5rem);
  max-width: 20ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--gamay);
}
.hero .lede {
  margin-top: 1.75rem;
  max-width: var(--measure);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.375rem);
  color: var(--ink-soft);
}
.hero .actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Capture de l'application : posée sur le papier sombre, bord hairline, jamais
   d'ombre portée — le roadbook est un imprimé, pas une interface flottante. */
.shot {
  margin-top: clamp(3rem, 7vw, 5rem);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-dim);
}
.shot img {
  width: 100%;
}
/* En colonne de droite, la capture est déjà espacée par la grille : la marge
   du hero ferait doublon. Une classe et non un `style=` en ligne — la CSP de
   `_headers` interdit `style-src` inline, et l'attribut serait ignoré. */
.shot--flush {
  margin-top: 0;
}

/* ── Sections ───────────────────────────────────────────────────────────── */

section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  border-top: 1px solid var(--hairline);
}
section h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  max-width: 18ch;
}
section h2 + p {
  margin-top: 1.5rem;
  max-width: var(--measure);
  color: var(--ink-soft);
}

/* Deux colonnes : le propos à gauche, l'illustration ou la liste à droite.
   Sous 62rem tout retombe en une colonne, dans l'ordre du document. */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }
}
/* Deux colonnes de texte : elles se lisent en parallèle, leurs surtitres
   doivent donc partir de la même ligne — le centrage vertical ne vaut que
   quand une illustration fait face à du texte. */
.split--top {
  align-items: start;
}
@media (min-width: 62rem) {
  .split--top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Les trois temps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}
.steps li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.25rem;
  align-items: start;
}
.steps b {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--gamay);
  padding-top: 0.3rem;
  font-variant-numeric: tabular-nums;
}
.steps h3 {
  font-size: 1.2rem;
  font-weight: 600;
}
.steps p {
  margin-top: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.975rem;
}

/* Ce qui la distingue */
.features {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
}
@media (min-width: 44rem) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 68rem) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}
.features article {
  background: var(--paper);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.features h3 {
  font-size: 1.1rem;
  font-weight: 600;
}
.features p {
  margin-top: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* La zone couverte : un encart, pas une note de bas de page — mieux vaut le
   dire en grand que laisser quelqu'un s'inscrire pour rien. */
.zone {
  background: var(--paper-dim);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.zone h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
}
.zone p {
  margin-top: 1rem;
  max-width: var(--measure);
  color: var(--ink-soft);
}
.zone .soon {
  margin-top: 1.25rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  border-left: 2px solid var(--borne);
  padding-left: 0.85rem;
}

/* Appel final */
.cta {
  text-align: center;
}
.cta h2 {
  margin-inline: auto;
  font-size: clamp(2rem, 1.4rem + 2.8vw, 3.25rem);
}
.cta p {
  margin: 1.5rem auto 0;
  max-width: 32rem;
  color: var(--ink-soft);
}
.cta .actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* ── Pied ───────────────────────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--hairline);
  padding-block: 2.5rem 3.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.foot nav {
  display: flex;
  gap: 1.5rem;
}
.foot a {
  text-decoration: none;
}
.foot a:hover {
  color: var(--ink);
}

/* ── Page 404 ───────────────────────────────────────────────────────────── */

.lost {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  padding-block: 4rem;
}
.lost h1 {
  font-size: clamp(2.2rem, 1.6rem + 3vw, 3.5rem);
}
.lost p {
  max-width: var(--measure);
  color: var(--ink-soft);
}
.lost .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
