:root {
      --creme: #F6F5EF;
      --panneau: #FFFEFA;
      --vert-profond: #233B39;
      --terre-cuite: #AD5938;
      --sauge: #777E76;
      --bordure: #DEDFD5;

      /* La sauge sur fond crème n'atteint que 3,8:1 (seuil AA : 4,5:1 pour du
         texte courant) : les phrases à lire utilisent donc le vert profond.
         Remplacer par var(--sauge) pour revenir à la sauge. */
      --texte-secondaire: var(--vert-profond);

      --police-titre: "Newsreader", "Iowan Old Style", Georgia, serif;
      --police-texte: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
      --police-code: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

      --gouttiere: clamp(20px, 5vw, 48px);
    }

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

    [hidden] { display: none !important; }

    html {
      -webkit-text-size-adjust: 100%;
      text-size-adjust: 100%;
    }

    @media (prefers-reduced-motion: no-preference) {
      html { scroll-behavior: smooth; }
    }

    body {
      margin: 0;
      background: var(--creme);
      color: var(--vert-profond);
      font-family: var(--police-texte);
      font-size: 1rem;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    :focus-visible {
      outline: 2px solid var(--terre-cuite);
      outline-offset: 3px;
      border-radius: 4px;
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      margin: -1px;
      padding: 0;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
      border: 0;
    }

    .wrap {
      width: min(100% - 2 * var(--gouttiere), 1240px);
      margin-inline: auto;
    }

    /* En-tête */

    .site-header { border-bottom: 1px solid var(--bordure); }

    .site-header .wrap {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 10px 24px;
      min-height: 72px;
      padding-block: 14px;
    }

    .brand {
      display: inline-flex;
      align-items: baseline;
      gap: 5px;
      font-family: var(--police-titre);
      font-size: 1.625rem;
      font-weight: 500;
      line-height: 1;
      letter-spacing: -0.01em;
    }

    .brand::after {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--terre-cuite);
    }

    .site-nav {
      display: flex;
      align-items: center;
      gap: 10px 28px;
    }

    .nav-link {
      padding: 8px 2px;
      color: var(--vert-profond);
      font-size: 0.9375rem;
      text-decoration: none;
    }

    .nav-link:hover {
      text-decoration: underline;
      text-decoration-color: var(--terre-cuite);
      text-decoration-thickness: 1px;
      text-underline-offset: 6px;
    }

    /* Téléchargement */

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-height: 50px;
      padding: 0 24px;
      border: 1px solid var(--vert-profond);
      border-radius: 6px;
      background: var(--vert-profond);
      color: var(--creme);
      font-size: 1rem;
      font-weight: 500;
      line-height: 1.2;
      text-decoration: none;
    }

    .button:hover {
      background: transparent;
      color: var(--vert-profond);
    }

    .button svg {
      flex: none;
      width: 18px;
      height: 18px;
    }

    .soon {
      display: inline-flex;
      align-items: center;
      min-height: 50px;
      margin: 0;
      padding: 0 20px;
      border: 1px solid var(--bordure);
      border-radius: 6px;
      font-size: 1rem;
      line-height: 1.25;
    }

    .button--compact,
    .soon--compact {
      min-height: 40px;
      padding-inline: 16px;
      font-size: 0.9375rem;
    }

    @media (max-width: 520px) {
      .site-header .wrap { column-gap: 10px; }

      .site-header .brand { font-size: 1.5rem; }

      .site-nav { gap: 10px; }

      .nav-link { font-size: 0.875rem; }

      .soon--compact {
        width: min-content;
        min-height: 0;
        padding: 0;
        border: 0;
        font-size: 0.75rem;
        text-align: right;
      }
    }

    /* Section principale */

    .hero { padding-block: clamp(44px, 8vw, 104px); }

    .hero .wrap {
      display: grid;
      gap: 48px;
    }

    .hero-text {
      container-type: inline-size;
      max-width: 620px;
    }

    .hero h1 {
      margin: 0;
      font-family: var(--police-titre);
      font-size: clamp(2.25rem, 14.5cqi, 4.5rem);
      font-weight: 400;
      line-height: 1.04;
      letter-spacing: -0.02em;
      text-wrap: balance;
    }

    .hero-lead {
      max-width: 30em;
      margin: 22px 0 34px;
      color: var(--texte-secondaire);
      font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
      line-height: 1.5;
      text-wrap: pretty;
    }

    @media (min-width: 960px) {
      .hero .wrap {
        grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
        align-items: center;
        gap: clamp(56px, 6vw, 88px);
      }

      .hero-text { max-width: none; }
    }

    /* Aperçu illustré */

    .preview { margin: 0; }

    .mock {
      container-type: inline-size;
      overflow: hidden;
      border: 1px solid var(--bordure);
      border-radius: 10px;
      background: var(--panneau);
    }

    .mock-inner {
      display: grid;
      grid-template-columns: 176px minmax(0, 1fr);
    }

    .mock-nav {
      display: flex;
      flex-direction: column;
      gap: 4px;
      padding: 20px 12px;
      border-right: 1px solid var(--bordure);
    }

    .mock-brand {
      margin-bottom: 12px;
      padding: 0 8px 16px;
      border-bottom: 1px solid var(--bordure);
      font-size: 1.125rem;
    }

    .mock-brand::after {
      width: 5px;
      height: 5px;
    }

    .mock-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px;
      border-radius: 5px;
      color: var(--sauge);
      font-size: 0.8125rem;
      line-height: 1.3;
      white-space: nowrap;
    }

    .mock-item svg {
      flex: none;
      width: 16px;
      height: 16px;
    }

    .mock-item.is-active {
      background: var(--creme);
      color: var(--vert-profond);
      font-weight: 500;
    }

    .mock-item.is-active svg { color: var(--terre-cuite); }

    .mock-main { padding: 24px 28px 18px; }

    .mock-route {
      margin: 0;
      font-family: var(--police-code);
      font-size: clamp(1.25rem, 5.4cqi, 1.75rem);
      font-weight: 500;
      line-height: 1.2;
      letter-spacing: 0.02em;
    }

    .mock-arrow { color: var(--terre-cuite); }

    .mock-cities {
      margin: 6px 0 0;
      color: var(--sauge);
      font-size: 0.9375rem;
    }

    .mock-map {
      margin-top: 18px;
      padding-top: 10px;
      border-top: 1px solid var(--bordure);
    }

    .mock-map svg {
      display: block;
      width: 100%;
      height: auto;
      max-height: 400px;
    }

    .map-land {
      fill: var(--bordure);
      fill: color-mix(in srgb, var(--sauge) 18%, var(--panneau));
      stroke: var(--sauge);
      stroke-width: 1;
      stroke-linejoin: round;
      vector-effect: non-scaling-stroke;
    }

    .map-route {
      fill: none;
      stroke: var(--terre-cuite);
      stroke-width: 2;
      stroke-linecap: round;
      vector-effect: non-scaling-stroke;
    }

    .map-airport {
      fill: var(--panneau);
      stroke: var(--terre-cuite);
      stroke-width: 2;
      vector-effect: non-scaling-stroke;
    }

    .map-code {
      fill: var(--vert-profond);
      font-family: var(--police-code);
      font-size: 13px;
      font-weight: 500;
      letter-spacing: 0.02em;
    }

    @container (max-width: 520px) {
      .mock-inner { grid-template-columns: minmax(0, 1fr); }

      .mock-nav {
        flex-flow: row wrap;
        gap: 2px 4px;
        padding: 10px 12px;
        border-right: 0;
        border-bottom: 1px solid var(--bordure);
      }

      .mock-brand { display: none; }

      .mock-item {
        gap: 6px;
        padding: 6px 8px;
        font-size: 0.75rem;
      }

      .mock-main { padding: 18px 18px 12px; }
    }

    @container (max-width: 400px) {
      .mock-item svg { display: none; }
    }

    .preview figcaption {
      margin-top: 14px;
      color: var(--texte-secondaire);
      font-size: 0.8125rem;
      text-align: center;
    }

    /* Fonctionnalités */

    .features {
      padding-block: clamp(12px, 5vw, 64px) clamp(40px, 8vw, 96px);
      border-top: 1px solid var(--bordure);
    }

    .feature-list {
      display: grid;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .feature { padding-block: 30px; }

    .feature + .feature { border-top: 1px solid var(--bordure); }

    .feature svg {
      display: block;
      width: 28px;
      height: 28px;
      color: var(--terre-cuite);
    }

    .feature h3, .feature-grid .feature h2 {
      margin: 18px 0 8px;
      font-family: var(--police-titre);
      font-size: 1.4375rem;
      font-weight: 500;
      line-height: 1.2;
      letter-spacing: -0.01em;
    }

    .feature p {
      max-width: 36ch;
      margin: 0;
      color: var(--texte-secondaire);
      text-wrap: pretty;
    }

    @media (min-width: 640px) and (max-width: 1023.98px) {
      .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

      .feature { padding-inline: clamp(24px, 4vw, 40px); }

      .feature:nth-child(odd) { padding-left: 0; }

      .feature:nth-child(even) {
        padding-right: 0;
        border-left: 1px solid var(--bordure);
      }

      .feature:nth-child(-n + 2) { border-top: 0; }
    }

    @media (min-width: 1024px) {
      .feature-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }

      .feature {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 3;
        padding: 8px clamp(20px, 2.4vw, 36px);
      }

      .feature:first-child { padding-left: 0; }

      .feature:last-child { padding-right: 0; }

      .feature + .feature {
        border-top: 0;
        border-left: 1px solid var(--bordure);
      }
    }

/* Navigation et pages intérieures */
.site-header .brand, .site-footer .brand { color: inherit; text-decoration: none; }
.site-nav { flex-wrap: wrap; }
.nav-link[aria-current="page"], .text-link {
  color: var(--vert-profond);
  text-decoration: underline;
  text-decoration-color: var(--terre-cuite);
  text-underline-offset: 5px;
}
.skip-link { position: absolute; inset: 8px auto auto 8px; z-index: 1; }
.skip-link:not(:focus) { clip-path: inset(50%); }
.hero .mock { box-shadow: 0 12px 32px rgb(35 59 57 / 8%); }
.section-heading, .map-promo {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px 24px;
}
.section-heading { margin-bottom: 26px; }
.section-heading h2, .page-intro h1, .airport-panel h2, .map-promo h2 {
  margin: 0;
  font-family: var(--police-titre);
  font-weight: 400;
  line-height: 1.08;
}
.section-heading h2, .map-promo h2 { font-size: clamp(2rem, 5vw, 3rem); }
.page-intro { padding-block: clamp(44px, 8vw, 96px) 32px; }
.page-intro h1 { font-size: clamp(2.5rem, 8vw, 5rem); overflow-wrap: anywhere; }
.page-intro p { margin: 16px 0 0; max-width: 58ch; font-size: 1.125rem; }
.interior-content { padding-bottom: clamp(48px, 8vw, 88px); }
.feature-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.feature-grid .feature, .feature-grid .feature + .feature,
.map-promo, .airport-panel {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--bordure);
  border-radius: 10px;
  background: var(--panneau);
}
.feature-grid .feature { display: block; }
.feature-grid .feature p { max-width: 45ch; }
.feature-grid .text-link { display: inline-block; margin-top: 16px; }
.map-promo { align-items: center; margin-bottom: clamp(42px, 8vw, 84px); }
.map-promo p { margin: 10px 0 0; }
.map-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.airport-panel h2 { font-size: 1.8rem; }
.airport-panel ul { margin: 14px 0 0; padding: 0; list-style: none; }
.airport-panel li { padding-block: 14px; border-top: 1px solid var(--bordure); }
.airport-panel span { display: block; font-family: var(--police-code); font-size: .875rem; }
.site-footer { border-top: 1px solid var(--bordure); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-block: 24px; }
.site-footer p { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { color: inherit; text-underline-offset: 4px; }
.footer-nav a:hover { text-decoration-color: var(--terre-cuite); }

.download-details { margin-block: 14px; max-width: 45ch; font-size: .9375rem; }
.download-notice {
  max-width: 45ch;
  padding: 10px 13px;
  border: 1px solid var(--bordure);
  border-radius: 6px;
  background: var(--panneau);
  font-size: .9375rem;
}
.download-notice summary { cursor: pointer; font-weight: 500; }
.download-notice p { margin: 8px 0 0; overflow-wrap: anywhere; }
.screenshot a { display: block; }
.screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--bordure);
  border-radius: 8px;
}
.map-key {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 24px 0 0;
}
.map-key dt { font-weight: 500; }
.map-key dd { margin: 4px 0 0; }

.reading { max-width: min(100% - 2 * var(--gouttiere), 780px); }
.reading section + section { margin-top: 32px; }
.reading h2 {
  margin: 24px 0 8px;
  font: 400 clamp(1.6rem, 4vw, 2rem)/1.15 var(--police-titre);
}
.reading p { margin: 0 0 16px; }
.reading li + li { margin-top: 6px; }
.site-notice {
  padding: 16px 20px;
  border: 1px solid var(--bordure);
  border-radius: 6px;
  background: var(--panneau);
}
.site-notice h2:first-child { margin-top: 0; }

@media (max-width: 740px) {
  .map-layout, .feature-grid, .map-key { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .site-header .wrap { align-items: flex-start; flex-direction: column; gap: 6px; }
  .site-nav { column-gap: 16px; }
}

