@font-face {
  font-family: 'Overpass';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/overpass-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Overpass';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/overpass-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f6f8f7;
  --sky: #e5edf6;
  --mist: #d3dfeb;
  --ink: #14213d;
  --ink-soft: #46536b;
  --sign: #1f4e99;
  --sign-deep: #163a73;
  --lamp: #f2a33a;
  --rock: #20262e;
  --rock-soft: #2c343f;
  --rock-text: #c9d1dc;
  --meadow: #2c8a57;
  --danger: #b4232c;

  --font: 'Overpass', system-ui, sans-serif;
  --radius: 10px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  font-feature-settings: 'kern', 'liga';
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 6.4vw, 5.25rem);
  font-weight: 850;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 800;
  max-width: 18ch;
}

h3 {
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

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

a {
  color: inherit;
}

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

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

.visually-hidden,
.trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}

.skip:focus {
  top: 12px;
}

.section-lead {
  margin-top: 20px;
  max-width: 62ch;
  font-size: 1.25rem;
  color: var(--ink-soft);
}

/* Boutons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--radius);
  background: var(--sign);
  color: #fff;
  font: inherit;
  font-weight: 750;
  font-size: 1.0625rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s;
}

.button:hover {
  background: var(--sign-deep);
}

.button[aria-busy='true'] {
  cursor: progress;
  opacity: 0.8;
}

.button-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 1rem;
}

.button-light {
  background: #fff;
  color: var(--sign-deep);
}

.button-light:hover {
  background: var(--sky);
}

/* En-tête */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.topbar.is-scrolled {
  border-bottom-color: var(--mist);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.topnav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 1rem;
}

.topnav a,
.lang {
  color: var(--ink-soft);
  text-decoration: none;
}

.topnav a:hover,
.lang:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lang {
  font-size: 1rem;
}

.brand,
.topnav a,
.lang,
.button {
  white-space: nowrap;
}

.topnav-lang,
.menu-toggle {
  display: none;
}

@media (max-width: 1100px) {
  .topnav {
    display: none;
  }

  .topbar .button-small {
    min-height: 48px;
    margin-left: auto;
  }

  .js .topbar .lang {
    display: none;
  }

  .js .menu-toggle {
    display: grid;
    place-items: center;
    flex: none;
    width: 48px;
    height: 48px;
    margin-right: -8px;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  @media (hover: hover) {
    .menu-toggle:hover {
      background: color-mix(in srgb, var(--ink) 6%, transparent);
    }
  }

  .menu-icon {
    display: grid;
    gap: 5px;
    width: 22px;
  }

  .menu-icon span {
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .topbar.is-open .menu-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .topbar.is-open .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .topbar.is-open .menu-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .js .topnav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--mist);
    box-shadow: 0 24px 32px -24px rgb(20 33 61 / 0.35);
    font-size: 1.15rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }

  .js .topbar.is-open .topnav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .js .topnav a {
    display: flex;
    align-items: center;
    min-height: 56px;
    border-bottom: 1px solid var(--mist);
    color: var(--ink);
    font-weight: 650;
  }

  .js .topnav a:hover {
    text-decoration: none;
    color: var(--sign);
  }

  .js .topnav .topnav-lang {
    margin-top: 8px;
    border-bottom: 0;
    color: var(--ink-soft);
    font-weight: 500;
  }

  .topbar.is-open {
    background: var(--paper);
    border-bottom-color: var(--mist);
  }
}

@media (max-width: 480px) {
  html {
    scroll-padding-top: 64px;
  }

  .topbar-inner {
    gap: 12px;
    min-height: 64px;
  }

  .brand {
    gap: 8px;
    font-size: 1.05rem;
  }

  .topbar .button-small {
    padding: 0 14px;
    font-size: 0.95rem;
  }
}

@media (max-width: 359px) {
  .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

/* Accroche */

.hero {
  position: relative;
  padding-top: clamp(40px, 7vw, 88px);
  background: linear-gradient(180deg, var(--paper) 0%, var(--sky) 100%);
  overflow: clip;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 6px 14px 4px;
  border: 1px solid var(--mist);
  border-radius: 999px;
  background: #fff;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ink-soft);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--lamp) 25%, transparent);
}

.hero h1 {
  max-width: 12ch;
}

.lead {
  margin-top: 24px;
  max-width: 34em;
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Inscription */

.signup {
  margin-top: 36px;
  max-width: 560px;
}

.signup-row {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 12px 32px -18px rgb(20 33 61 / 0.35);
}

.signup-row:focus-within {
  border-color: var(--sign);
}

.signup input[type='email'] {
  flex: 1;
  min-width: 0;
  min-height: 56px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.signup input[type='email']:focus-visible {
  outline: none;
}

.signup input[type='email']::placeholder {
  color: #8592a6;
}

.signup [aria-invalid='true'] {
  color: var(--danger);
}

.consent {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink-soft);
  cursor: pointer;
}

.signup input[type='checkbox'] {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--sign);
}

.optional {
  margin-top: 12px;
  font-size: 0.95rem;
}

.optional summary {
  cursor: pointer;
  color: var(--sign);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.optional fieldset {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}

.optional legend {
  margin-bottom: 8px;
  font-weight: 700;
}

.optional fieldset label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
}

.country {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  font-weight: 700;
}

.country select {
  min-height: 48px;
  max-width: 320px;
  padding: 0 12px;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.signup-message:empty {
  display: none;
}

.signup-message {
  margin-top: 16px;
  font-weight: 650;
  color: var(--danger);
}

.reassurance {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.signup-success {
  max-width: 560px;
  margin-top: 36px;
  padding: 24px 28px;
  border-left: 4px solid var(--meadow);
  border-radius: var(--radius);
  background: #fff;
}

.signup-success:focus {
  outline: none;
}

.signup-success h2 {
  font-size: 1.6rem;
  max-width: none;
}

.signup-success p {
  margin-top: 8px;
  color: var(--ink-soft);
}

@media (max-width: 560px) {
  .signup-row {
    flex-direction: column;
  }
}

/* Comparaison d'itinéraires */

.demo {
  margin: 8px 0 0;
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 60px -36px rgb(20 33 61 / 0.45), 0 0 0 1px var(--mist);
}

.demo-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  font-weight: 750;
}


.route {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 18px 0;
  border-top: 1px solid var(--mist);
}

.route-meta {
  display: grid;
}

.route-meta span {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.route-time {
  font-weight: 800;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.route-ours .route-meta strong {
  color: var(--sign);
}

.ribbon {
  grid-column: 1 / -1;
  display: flex;
  gap: 3px;
  height: 14px;
  margin-top: 12px;
  transform-origin: left center;
}

.seg {
  flex-basis: 0;
  border-radius: 3px;
}

.seg-open {
  background: #9fb3c8;
}

.route-ours .seg-open {
  background: var(--sign);
}

.seg-tunnel {
  background: repeating-linear-gradient(90deg, var(--rock) 0 7px, var(--lamp) 7px 9px);
}

.seg-short,
.key-short {
  flex: 0 0 4px;
  background: #c4cfdb;
}

.delta {
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--meadow) 12%, #fff);
  color: #1d6b42;
  font-weight: 750;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.key {
  display: inline-block;
  width: 22px;
  height: 10px;
  border-radius: 2px;
}

.key-tunnel {
  background: repeating-linear-gradient(90deg, var(--rock) 0 7px, var(--lamp) 7px 9px);
}

.key-short {
  width: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .js .demo .ribbon {
    animation: draw 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .js .demo .route-ours .ribbon {
    animation-delay: 0.7s;
  }

  .js .demo .delta {
    animation: arrive 0.5s ease-out 1.5s both;
  }
}

@keyframes draw {
  from {
    transform: scaleX(0);
  }
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.landscape {
  display: block;
  width: 100%;
  height: clamp(110px, 16vw, 200px);
  margin-top: clamp(48px, 7vw, 88px);
}

.land-far {
  fill: #dce5ee;
}

.land-massif {
  fill: #c5d3e2;
}

.land-snow {
  fill: #f5f8fb;
}

.land-pass {
  fill: #a9bcd1;
}

.land-ground {
  fill: var(--rock);
}

.portal {
  fill: var(--rock);
}

.old-route {
  stroke: var(--danger);
  stroke-width: 4;
  stroke-dasharray: 10 8;
  fill: none;
}

.new-route {
  stroke: var(--sign);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.car-body {
  fill: var(--lamp);
}

.car-roof {
  fill: #e08d22;
}

.car-window {
  fill: #e3eef9;
}

.car-line {
  fill: none;
  stroke: #c97a16;
  stroke-width: 0.8;
  stroke-linecap: round;
}

.car-light {
  fill: #fff6d6;
}

.car-tail {
  fill: var(--danger);
}

.car-wheel {
  fill: var(--rock);
}

.car-hub {
  fill: #c9d1dc;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .demo {
    max-width: 560px;
  }
}

/* Le problème : la section « dans le tunnel » */

.problem {
  position: relative;
  padding-block: var(--section);
  background: var(--rock);
  color: #fff;
}

.problem::before {
  content: '';
  position: absolute;
  inset: 28px 0 auto;
  height: 6px;
  background: radial-gradient(circle, var(--lamp) 0 3px, transparent 3.5px) 0 0 / 56px 6px repeat-x;
  opacity: 0.85;
}

.problem .section-lead {
  color: var(--rock-text);
}

.moments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.moments li {
  padding-top: 20px;
  border-top: 2px solid var(--rock-soft);
  font-size: 1.2rem;
  line-height: 1.5;
}

.stat {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 72px;
  max-width: 820px;
}

.stat strong {
  flex: none;
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--lamp);
}

.stat span {
  font-size: 1.2rem;
  color: var(--rock-text);
}

.problem-close {
  margin-top: 40px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
  max-width: 30ch;
}

@media (max-width: 760px) {
  .moments {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Comment ça marche */

.census {
  padding-block: var(--section);
  background: var(--sky) url('/contours.svg') center / cover no-repeat;
}

.census-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 56px 0 0;
}

.census-grid div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 20px;
  border-top: 4px solid var(--sign);
}

.census-grid dt {
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.census-grid dd {
  margin: 0;
  font-size: clamp(2.6rem, 5.5vw, 4.25rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--sign);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.census-note {
  margin-top: 40px;
  max-width: 62ch;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .census-grid {
    grid-template-columns: 1fr;
  }
}

.how {
  padding-block: var(--section);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--sign);
  color: #fff;
  font-weight: 800;
  font-size: 1.35rem;
  padding-top: 3px;
}

.steps p {
  margin-top: 10px;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps li {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 16px;
    align-items: center;
  }

  .steps li::before {
    margin-bottom: 0;
  }

  .steps p {
    grid-column: 2;
    margin-top: 6px;
  }
}

/* Réglages : comparaison des trois préréglages */

.features {
  padding-block: var(--section);
  background: #fff;
  border-block: 1px solid var(--mist);
}

.playground {
  margin-top: 48px;
}

.play-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 32px;
  align-items: start;
}

.play-panel {
  display: grid;
  gap: 24px;
  padding: 28px;
  border-radius: 20px;
  background: var(--ink);
  color: #fff;
  transition: background-color 0.5s ease;
}

.play-panel[data-tone='relaxed'] {
  background: color-mix(in srgb, var(--sign) 85%, #fff);
}

.play-panel[data-tone='balanced'] {
  background: var(--sign);
}

.play-panel[data-tone='strict'] {
  background: color-mix(in srgb, var(--sign) 85%, #000);
}

.play-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.08);
}

.play-presets button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 4px 4px 2px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--rock-text);
  font: inherit;
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}

.play-presets button:not([aria-pressed='true']):hover {
  color: #fff;
}

.play-presets svg {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: -2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.play-presets [aria-pressed='true'] {
  background: #fff;
  color: var(--ink);
}

.play-preset-text {
  font-size: 1rem;
  line-height: 1.55;
  color: #e3e9f1;
}

.play-gauges {
  display: grid;
  gap: 22px;
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
}

.play-gauge {
  --value: 50%;
}

.play-gauge-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-weight: 700;
}

.play-gauge-head strong {
  color: var(--lamp);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.play-track {
  position: relative;
  display: block;
  height: 6px;
  margin: 14px 0 10px;
  border-radius: 3px;
  background: rgb(255 255 255 / 0.16);
}

.play-track::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  border-radius: inherit;
  background: var(--lamp);
}

.play-thumb {
  position: absolute;
  top: 50%;
  left: var(--value);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.35);
  transform: translate(-50%, -50%);
}

.play-gauge p {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--rock-text);
}

@media (max-width: 900px) {
  .play-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .play-stage {
    order: -1;
  }
}

/* Carte schématique */

.play-svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: #edf0ea;
  box-shadow: 0 0 0 1px #d9ded5;
  font-family: var(--font);
}

.play-noscript {
  padding: 16px 0;
  color: var(--ink-soft);
}

.playground.is-ready .play-noscript {
  display: none;
}

.pm-river-bank {
  fill: none;
  stroke: #fff;
  stroke-width: 11;
  stroke-linecap: round;
}

.pm-river {
  fill: none;
  stroke: #b7d8ee;
  stroke-width: 7;
  stroke-linecap: round;
}

.pm-forest {
  fill: #d3e3c4;
}

.pm-label {
  fill: #74849a;
  font-size: 15px;
  font-style: italic;
}

.pm-route-edge,
.pm-route {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pm-route-edge {
  stroke: #fff;
  stroke-width: 11;
}

.pm-route {
  stroke: #a9b5c4;
  stroke-width: 6;
}

.pm-route.is-chosen {
  stroke: transparent;
}

.pm-route-casing,
.pm-route-active {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
}

.pm-route-casing {
  stroke: #fff;
  stroke-width: 15;
}

.pm-route-active {
  stroke: var(--sign);
  stroke-width: 9;
}

.pm-tunnel path {
  fill: none;
  stroke-linecap: butt;
}

.pm-tunnel-body {
  stroke: var(--rock);
  stroke-width: 12;
  transition: opacity 0.3s;
}

.pm-tunnel-lamps {
  stroke: var(--lamp);
  stroke-width: 2.5;
  stroke-dasharray: 2 5;
  transition: opacity 0.3s;
}

.pm-tunnel-tag rect {
  fill: #fff;
  stroke: #d3dae3;
  filter: drop-shadow(0 2px 3px rgb(20 33 61 / 0.18));
}

.pm-tunnel-tag text {
  fill: var(--rock);
  font-size: 12px;
  font-weight: 750;
  transition: opacity 0.3s;
}

.pm-tunnel[data-state='avoided'] {
  display: none;
}

.pm-place text {
  fill: var(--ink);
  font-size: 15px;
  font-weight: 750;
  paint-order: stroke;
  stroke: #edf0ea;
  stroke-width: 5px;
  stroke-linejoin: round;
}

.is-narrow .pm-place text {
  font-size: 23px;
  stroke-width: 7px;
}

.pm-pin path {
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.pm-start .pm-pin path {
  fill: var(--meadow);
}

.pm-end .pm-pin path {
  fill: var(--danger);
}

.pm-pin circle {
  fill: #fff;
}

.pm-bubble rect,
.pm-bubble path {
  fill: var(--meadow);
}

.pm-bubble text {
  fill: #fff;
  font-size: 15px;
  font-weight: 750;
}

.pm-bubble .pm-bubble-sub {
  font-size: 13px;
  font-weight: 600;
  fill: #dff3e8;
}

.pm-bubble-inner {
  filter: drop-shadow(0 6px 10px rgb(20 33 61 / 0.25));
}

.play-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.play-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.key-route {
  background: var(--sign);
}

/* Pensé pour rouler serein */

.calm {
  margin-top: var(--section);
}

.calm-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
}

.calm-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 40px;
  margin-top: 36px;
  align-items: start;
}

.calm-feature {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 20px;
  background: linear-gradient(160deg, var(--sky), #f3f6fa);
}

.calm-feature h4,
.calm-list h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 750;
  line-height: 1.3;
}

.calm-feature h4 {
  margin-top: 28px;
  font-size: 1.35rem;
}

.calm-feature p,
.calm-list p {
  margin-top: 6px;
  color: var(--ink-soft);
}

.alert {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 18px 22px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 24px 48px -28px rgb(20 33 61 / 0.6);
  overflow: hidden;
}

.alert-sign {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 76px;
  padding: 10px 10px 6px;
  border: 2px solid #fff;
  border-radius: 10px;
  background: var(--sign);
  font-weight: 800;
}

.alert-sign svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.alert-text strong {
  font-size: 1.1rem;
}

.alert-text p {
  margin-top: 4px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--rock-text);
}

.alert-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: var(--lamp);
}

.calm-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.calm-list li {
  display: grid;
  gap: 14px;
}

.calm-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--sky);
  color: var(--sign);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.3s;
}

.calm-list li:hover .calm-icon {
  transform: translateY(-3px) rotate(-4deg);
  background: color-mix(in srgb, var(--sign) 14%, #fff);
}

.calm-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .calm-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .calm-list {
    grid-template-columns: 1fr;
  }

  .calm-list li {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
}

/* Pour qui */

.audience {
  padding-block: var(--section);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.persona {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 0;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 20px;
}

.persona h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
}

.persona p {
  margin-top: 16px;
}

.persona .checks {
  align-content: start;
  margin-top: 16px;
}

.persona-anxious {
  background: var(--sign);
  color: #fff;
}

.persona-van {
  background: var(--sky);
}

.persona-anxious p,
.persona-anxious .checks li {
  color: #dbe6f5;
}

.relatives {
  margin-top: 32px;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.checks {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 32px;
  font-weight: 600;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--meadow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% no-repeat;
}

.persona-anxious .checks li::before {
  background-color: var(--lamp);
}

@media (max-width: 860px) {
  .audience-grid {
    grid-template-columns: 1fr;
  }
}

/* Engagements */

.trust {
  padding-block: var(--section);
  background: #fff;
  border-block: 1px solid var(--mist);
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
}

.checks-large {
  margin: 0;
  gap: 20px;
}

.checks-large li {
  font-size: 1.25rem;
  font-weight: 650;
}

@media (max-width: 860px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* Avancement */

.progress {
  padding-block: var(--section);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding-top: 36px;
}

.timeline li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid var(--mist);
  background: var(--paper);
}

.timeline li::after {
  content: '';
  position: absolute;
  top: 9px;
  left: 28px;
  right: -16px;
  height: 3px;
  background: var(--mist);
}

.timeline li:last-child::after {
  display: none;
}

.timeline .is-done::before {
  border-color: var(--sign);
  background: var(--sign);
}

.timeline .is-done::after {
  background: var(--sign);
}

.timeline .is-current::before {
  border-color: var(--lamp);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--lamp) 25%, transparent);
}

.timeline-state {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.is-current .timeline-state {
  color: #a8620a;
}

.timeline h3 {
  margin-top: 4px;
}

.timeline p {
  margin-top: 8px;
  font-size: 1rem;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .timeline li {
    padding: 0 0 32px 40px;
  }

  .timeline li::after {
    top: 26px;
    left: 9px;
    right: auto;
    bottom: 2px;
    width: 3px;
    height: auto;
  }
}

/* Questions */

.faq {
  padding-block: var(--section);
  background: #fff;
  border-top: 1px solid var(--mist);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
}

.faq-list details {
  border-bottom: 1px solid var(--mist);
}

.faq-list details:first-child {
  border-top: 1px solid var(--mist);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  flex: none;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  color: var(--sign);
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  padding-bottom: 24px;
  max-width: 62ch;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* Appel final */

.final {
  padding-block: var(--section);
  background: var(--sign);
  color: #fff;
}

.final-inner {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.final h2 {
  max-width: 16ch;
}

.final p {
  max-width: 44ch;
  font-size: 1.25rem;
  color: #dbe6f5;
}

.final .button {
  margin-top: 12px;
}

/* Pied de page */

.footer {
  padding-block: 40px;
  background: var(--rock);
  color: var(--rock-text);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}

.footer-inner a {
  margin-left: auto;
  padding-block: 12px;
  margin-block: -12px;
}

/* Pages de message */

.message-page {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--paper) 0%, var(--sky) 100%);
}

.message {
  display: grid;
  justify-items: start;
  gap: 24px;
  padding-block: clamp(48px, 10vw, 120px);
}

.message h1 {
  margin-top: 32px;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  max-width: 16ch;
}

.message .lead {
  margin-top: 0;
}

/* Animations */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
}

@keyframes route-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--lamp) 0%, transparent);
  }
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    interpolate-size: allow-keywords;
  }

  .js .hero-copy > * {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .js .hero-copy > :nth-child(2) {
    animation-delay: 0.08s;
  }

  .js .hero-copy > :nth-child(3) {
    animation-delay: 0.16s;
  }

  .js .hero-copy > :nth-child(4) {
    animation-delay: 0.24s;
  }

  .js .demo {
    animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
  }

  .new-route {
    stroke-dasharray: 1;
    animation: route-draw 2s cubic-bezier(0.45, 0, 0.2, 1) 0.6s both;
  }

  .reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms),
      transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
  }

  .reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .reveal-ready .steps li::before {
    transform: scale(0.4) rotate(-12deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--reveal-delay, 0ms) + 0.2s);
  }

  .reveal-ready .steps li.is-visible::before {
    transform: none;
  }

  .reveal-ready .timeline li::after {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.7s cubic-bezier(0.45, 0, 0.2, 1);
  }

  .reveal-ready .timeline.is-visible li::after {
    transform: none;
  }

  .timeline li:nth-child(2)::after {
    transition-delay: 0.5s;
  }

  .timeline li:nth-child(3)::after {
    transition-delay: 0.9s;
  }

  .timeline li:nth-child(4)::after {
    transition-delay: 1.3s;
  }

  .timeline .is-current::before {
    animation: pulse 2.2s ease-in-out infinite;
  }

  .pm-route-active,
  .pm-route-casing {
    animation: route-draw 1.1s cubic-bezier(0.45, 0, 0.2, 1) both;
  }

  .play-track::before,
  .play-thumb {
    transition: width 0.7s cubic-bezier(0.45, 0, 0.2, 1), left 0.7s cubic-bezier(0.45, 0, 0.2, 1);
  }

  .play-gauge-head strong {
    transition: color 0.3s;
  }

  .pm-bubble-inner {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: pop 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s both;
  }

  .pm-bubble.is-below .pm-bubble-inner {
    transform-origin: 50% 0;
  }

  .faq-list details::details-content {
    block-size: 0;
    overflow: hidden;
    transition:
      block-size 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
      content-visibility 0.4s allow-discrete;
  }

  .faq-list details[open]::details-content {
    block-size: auto;
  }

  .button {
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
  }

  .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -12px rgb(31 78 153 / 0.7);
  }

  .button:active {
    transform: translateY(0) scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .land-car {
    display: none;
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .reveal-ready .timeline li::after {
    transform: scaleY(0);
    transform-origin: top;
  }
}
