/* ==========================================================================
   Auto Moto École 2000 — « Plaque de rue »
   Système visuel : plaques émaillées parisiennes, papier crème, marquage au sol.
   Unités : rem uniquement (1rem = 16px).
   ========================================================================== */

/* ---------- Polices (hébergées localement) ---------- */
/* Bricolage Grotesque : SIL Open Font License · Gambetta : Fontshare (ITF Free Font License) */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
  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: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Gambetta";
  src: url("../fonts/gambetta-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gambetta";
  src: url("../fonts/gambetta-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Gambetta";
  src: url("../fonts/gambetta-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --papier: #f1ece0;
  --papier-2: #e8e1d0;
  --papier-3: #dad1bb;
  --encre: #111a2c;
  --encre-2: #434c60;
  --email: #1c3b70;
  --email-2: #132a52;
  --vert: #2d6a4f;
  --vert-2: #22523d;
  --rouge: #c5382c;
  --blanc: #fbf9f4;
  --bitume: #23262c;
  --trait: rgba(17, 26, 44, 0.16);

  --f-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --f-serif: "Gambetta", Georgia, serif;

  --wrap: 82rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --radius: 0.5rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--f-display);
  font-size: 1.0625rem;
  font-variation-settings: "opsz" 14;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grain de papier très léger */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.35 0 0 0 0 0.25 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

::selection {
  background: var(--email);
  color: var(--blanc);
}

:focus-visible {
  outline: 0.1875rem solid var(--rouge);
  outline-offset: 0.25rem;
  border-radius: 0.25rem;
}

.sr-only {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--encre);
  color: var(--blanc);
  border-radius: var(--radius);
}

.skip:focus {
  top: 1rem;
}

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

.section {
  padding-block: clamp(4.5rem, 10vw, 8.5rem);
}

/* ---------- Typo utilitaires ---------- */
.kicker {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--encre-2);
}

.kicker::before {
  content: "";
  display: inline-block;
  margin-right: 0.625rem;
  vertical-align: 0.2em;
  width: 1.75rem;
  height: 0.1875rem;
  background: repeating-linear-gradient(90deg, currentColor 0 0.5rem, transparent 0.5rem 0.75rem);
}

.display {
  font-size: clamp(2.75rem, 7.4vw, 6.75rem);
  font-variation-settings: "opsz" 96, "wdth" 78;
  font-weight: 750;
  line-height: 0.9;
  text-transform: uppercase;
}

.display em,
.h2 em {
  text-transform: none;
  color: var(--email);
}

.h2 {
  font-size: clamp(2.25rem, 5.2vw, 4.5rem);
  font-variation-settings: "opsz" 96, "wdth" 80;
  font-weight: 750;
  text-transform: uppercase;
  line-height: 0.92;
}

.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
  color: var(--encre-2);
  max-width: 34rem;
}

.muted {
  color: var(--encre-2);
}

.small {
  font-size: 0.875rem;
}

/* ---------- Plaque émaillée (composant signature) ---------- */
.plaque {
  --pl-size: 1rem;
  position: relative;
  display: inline-block;
  padding: 0.3em;
  font-size: var(--pl-size);
  color: var(--blanc);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 38%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0) 40%),
    var(--email);
  border-radius: 0.55em;
  box-shadow:
    0 0 0 0.28em var(--vert),
    0 0 0 0.34em var(--vert-2),
    0 1.1em 1.6em -0.9em rgba(10, 18, 36, 0.55);
  text-decoration: none;
}

.plaque__in {
  display: block;
  padding: 0.5em 1.15em 0.55em;
  border: 0.12em solid var(--blanc);
  border-radius: 0.36em;
  text-align: center;
}

.plaque__arr {
  display: block;
  margin: -0.15em auto 0.4em;
  padding-bottom: 0.28em;
  width: max-content;
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-bottom: 0.12rem solid rgba(251, 249, 244, 0.85);
}

.plaque__name {
  display: block;
  font-weight: 700;
  font-variation-settings: "opsz" 48, "wdth" 75;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.02em;
}

.plaque__name small {
  display: block;
  font-size: 0.48em;
  letter-spacing: 0.1em;
  margin-bottom: 0.15em;
}

/* Vis de fixation */
.plaque::before,
.plaque::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.38em;
  height: 0.38em;
  margin-top: -0.19em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f3efe6 0 25%, #a59f90 60%, #6b6659 100%);
  box-shadow: 0 0.04em 0.06em rgba(0, 0, 0, 0.4);
}

.plaque::before {
  left: 0.42em;
}

.plaque::after {
  right: 0.42em;
}

.plaque--vert {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 38%),
    var(--vert);
  box-shadow:
    0 0 0 0.28em var(--email),
    0 0 0 0.34em var(--email-2),
    0 1.1em 1.6em -0.9em rgba(10, 18, 36, 0.55);
}

/* Numéro de rue (petite plaque) */
.numero {
  display: inline-grid;
  place-items: center;
  min-width: 2.6em;
  padding: 0.22em 0.5em 0.18em;
  font-size: 1rem;
  font-weight: 700;
  font-variation-settings: "opsz" 24, "wdth" 85;
  color: var(--blanc);
  background: var(--email);
  border-radius: 0.3em;
  box-shadow:
    inset 0 0 0 0.12em var(--email),
    inset 0 0 0 0.22em var(--blanc),
    0 0.4em 0.7em -0.45em rgba(10, 18, 36, 0.6);
  line-height: 1;
}

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--email);
  --btn-fill: var(--vert);
  --btn-fg: var(--blanc);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.05rem 1.35rem 1.05rem 1.5rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  font-variation-settings: "opsz" 18, "wdth" 92;
  letter-spacing: 0.01em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 0;
  border-radius: 0.45rem;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  /* le liseré blanc de la plaque, dessiné en outline */
  outline: 0.125rem solid rgba(251, 249, 244, 0.9);
  outline-offset: -0.375rem;
  /* le fond vert qui « remplit la voie » depuis la gauche */
  box-shadow: inset 0 0 0 0 var(--btn-fill);
  transition:
    box-shadow 0.55s var(--ease-out),
    outline-offset 0.35s var(--ease-spring),
    outline-color 0.3s;
}

.btn:hover {
  box-shadow: inset 22rem 0 0 0 var(--btn-fill);
  outline-offset: -0.5625rem;
}

.btn:active {
  transform: translateY(0.0625rem);
}

.btn:focus-visible {
  outline: 0.1875rem solid var(--rouge);
  outline-offset: 0.25rem;
}

/* Flèche qui sort à droite et revient par la gauche */
.btn__arrow {
  position: relative;
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  overflow: hidden;
  flex: none;
}

.btn__arrow::before,
.btn__arrow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M3 12h16M13 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M3 12h16M13 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.45s var(--ease-out);
}

.btn__arrow::after {
  transform: translateX(-140%);
}

.btn:hover .btn__arrow::before {
  transform: translateX(140%);
}

.btn:hover .btn__arrow::after {
  transform: translateX(0);
}

.btn--vert {
  --btn-bg: var(--vert);
  --btn-fill: var(--email);
}

.btn--clair {
  --btn-bg: var(--blanc);
  --btn-fill: var(--papier-3);
  --btn-fg: var(--encre);
  outline-color: rgba(17, 26, 44, 0.35);
}

.btn--sm {
  padding: 0.7rem 1rem 0.7rem 1.1rem;
  font-size: 0.9375rem;
  outline-offset: -0.3125rem;
}

.btn--sm:hover {
  outline-offset: -0.4375rem;
}

/* Lien « marquage au sol » : pointillés qui roulent au survol */
.road-link {
  --dash: currentColor;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.35rem;
  font-weight: 650;
  text-decoration: none;
  background-image: repeating-linear-gradient(90deg, var(--dash) 0 0.75rem, transparent 0.75rem 1.25rem);
  background-size: 100% 0.1875rem;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: color 0.25s;
}

.road-link:hover {
  color: var(--email);
  animation: drive 0.6s linear infinite;
}

@keyframes drive {
  to {
    background-position: 1.25rem 100%;
  }
}

.road-link--light:hover {
  color: var(--blanc);
}

/* ---------- En-tête ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 236, 224, 0.94);
  border-bottom: 0.0625rem solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.header.is-scrolled {
  border-color: var(--trait);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  flex: none;
}

.logo .plaque {
  --pl-size: 0.95rem;
  transform-origin: 50% -40%;
  transition: transform 0.6s var(--ease-spring);
}

.logo:hover .plaque {
  transform: rotate(-3deg);
}

.logo .plaque__in {
  padding: 0.3em 0.75em 0.32em;
}

.logo .plaque__arr {
  font-size: 0.5em;
  margin-bottom: 0.25em;
}

.logo .plaque__name {
  font-size: 1.05em;
  white-space: nowrap;
}

.nav {
  position: relative;
}

.nav__list {
  display: flex;
  gap: 0.25rem;
}

.nav__link {
  display: block;
  padding: 0.6rem 0.85rem 0.75rem;
  font-size: 0.975rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--encre-2);
  transition: color 0.2s;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--encre);
}

/* « Ligne magique » : un seul trait discontinu qui roule d'un lien à l'autre */
.nav__line {
  position: absolute;
  left: 0;
  bottom: 0.2rem;
  height: 0.1875rem;
  width: 0;
  background: repeating-linear-gradient(90deg, var(--email) 0 0.6rem, transparent 0.6rem 0.95rem);
  transition:
    transform 0.5s var(--ease-out),
    width 0.5s var(--ease-out),
    opacity 0.3s;
  pointer-events: none;
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header__eleve {
  font-size: 0.9375rem;
}

.burger {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0.125rem solid var(--encre);
  border-radius: 0.45rem;
  background: transparent;
  color: var(--encre);
  cursor: pointer;
}

.burger span {
  display: block;
  width: 1.25rem;
  height: 0.125rem;
  margin: 0.3rem auto;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), opacity 0.2s;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0.425rem) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-0.425rem) rotate(-45deg);
}

@media (max-width: 64rem) {
  .header__eleve {
    display: none;
  }
}

@media (max-width: 56rem) {
  .burger {
    display: block;
  }

  .header__cta .btn {
    display: none;
  }

  .nav {
    position: fixed;
    inset: 5.25rem 0 auto 0;
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--papier);
    border-bottom: 0.0625rem solid var(--trait);
    transform: translateY(-1rem);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s var(--ease-out), opacity 0.3s, visibility 0s 0.4s;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: transform 0.4s var(--ease-out), opacity 0.3s;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__link {
    padding: 0.85rem 0;
    font-size: 1.75rem;
    font-variation-settings: "opsz" 48, "wdth" 78;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 0.0625rem solid var(--trait);
  }

  .nav__line {
    display: none;
  }

  .nav__extra {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: center;
    margin-top: 1.5rem;
  }
}

@media (min-width: 56.0625rem) {
  .nav__extra {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.hero__title {
  margin-block: 1.5rem 1.75rem;
}

.hero__title .line {
  display: block;
}

.hero__title em {
  font-size: 1.04em;
  line-height: 0.95;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 2.25rem;
}

.hero__visual {
  position: relative;
  margin: 0;
  padding-bottom: 2.5rem;
}

/* Arche de porte cochère */
.arch {
  position: relative;
  overflow: hidden;
  border-radius: 50% 50% 0.5rem 0.5rem / 34% 34% 0.5rem 0.5rem;
  background: var(--papier-3);
}

.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__visual .arch {
  aspect-ratio: 4 / 5;
}

/* Bandes de passage piéton qui glissent sur la photo au survol */
.zebra {
  position: absolute;
  inset: auto 0 0 0;
  height: 24%;
  background: repeating-linear-gradient(90deg, rgba(251, 249, 244, 0.92) 0 1.5rem, transparent 1.5rem 3rem);
  transform: translateY(100%);
  transition: transform 0.7s var(--ease-out);
  mix-blend-mode: soft-light;
}

.hero__visual:hover .zebra {
  transform: translateY(0);
}

.hero__plaque {
  position: absolute;
  left: -2.5rem;
  top: 16%;
  --pl-size: clamp(1.1rem, 2.1vw, 1.75rem);
  transform: rotate(-2deg);
  transform-origin: 50% 0;
  transition: transform 0.9s var(--ease-spring);
}

.hero__visual:hover .hero__plaque {
  transform: rotate(1.5deg);
}

.hero__plaque .plaque__name {
  font-size: 1.6em;
}

.hero__num {
  position: absolute;
  right: 1.5rem;
  bottom: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 0.0625rem solid var(--trait);
}

.fact {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem 1.5rem 0 0;
}

.fact + .fact {
  padding-left: 1.5rem;
  border-left: 0.0625rem solid var(--trait);
}

.fact__big {
  font-size: 2.25rem;
  font-weight: 750;
  font-variation-settings: "opsz" 72, "wdth" 78;
  line-height: 1;
}

.fact__txt {
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--encre-2);
}

.fact__txt strong {
  display: block;
  color: var(--encre);
}

@media (max-width: 56rem) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    max-width: 30rem;
    margin-inline: auto 0;
    width: 88%;
  }

  .hero__plaque {
    left: -12%;
  }

  .hero__facts {
    grid-template-columns: 1fr;
  }

  .fact,
  .fact + .fact {
    padding: 1.25rem 0;
    border-left: 0;
    border-bottom: 0.0625rem solid var(--trait);
  }
}

/* ---------- Panneaux (pictos) ---------- */
.sign {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  font-size: 1rem;
  font-weight: 750;
  font-variation-settings: "opsz" 24, "wdth" 80;
  color: var(--blanc);
  background: var(--email);
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.14rem var(--email), inset 0 0 0 0.25rem var(--blanc);
  line-height: 1;
}

.sign--rouge {
  background: var(--blanc);
  color: var(--encre);
  box-shadow: inset 0 0 0 0.45rem var(--rouge);
}

.sign--tri {
  width: 1.5rem;
  height: 1.35rem;
  border-radius: 0;
  background: var(--rouge);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  box-shadow: none;
  position: relative;
}

.sign--tri::after {
  content: "";
  position: absolute;
  inset: 0.3rem 0.28rem 0.18rem;
  background: var(--blanc);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* ---------- Défilé (marquee à vitesse de scroll) ---------- */
.marquee {
  overflow: hidden;
  padding-block: 1.25rem;
  border-block: 0.0625rem solid var(--trait);
  background: var(--papier-2);
}

.marquee + .marquee {
  border-top: 0;
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  font-size: clamp(2.25rem, 6vw, 4.75rem);
  font-weight: 750;
  font-variation-settings: "opsz" 96, "wdth" 75;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

.marquee--outline .marquee__item {
  color: transparent;
  -webkit-text-stroke: 0.0875rem var(--email);
}

.marquee__item .sign {
  width: 0.8em;
  height: 0.8em;
  font-size: 0.32em;
  -webkit-text-stroke: 0;
}

.marquee--outline .marquee__item .sign {
  color: var(--blanc);
}

/* ---------- En-tête de section ---------- */
.section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem 1.75rem;
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head .numero {
  align-self: start;
  justify-self: start;
  margin-top: 0.4rem;
}

.section-head__txt {
  display: grid;
  gap: 1.25rem;
  max-width: 54rem;
}

.section-head--split {
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 22rem);
  align-items: end;
}

@media (max-width: 56rem) {
  .section-head,
  .section-head--split {
    grid-template-columns: 1fr;
  }
}

/* ---------- « Choisis ta rue » : liste des formations ---------- */
.streets__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.streets__preview {
  position: sticky;
  top: 7rem;
  aspect-ratio: 4 / 5;
}

.streets__preview .arch {
  position: absolute;
  inset: 0;
}

.streets__preview img {
  position: absolute;
  inset: 0;
  clip-path: inset(100% 0 0 0);
  transform: scale(1.08);
  transition:
    clip-path 0.8s var(--ease-out),
    transform 1.2s var(--ease-out);
}

.streets__preview img.is-active {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}

.streets__badge {
  position: absolute;
  right: -1.25rem;
  bottom: 2rem;
  width: 6.5rem;
  height: 6.5rem;
  font-size: 1.9rem;
  box-shadow:
    inset 0 0 0 0.2rem var(--email),
    inset 0 0 0 0.4rem var(--blanc),
    0 1rem 1.5rem -0.8rem rgba(10, 18, 36, 0.6);
  transition: transform 0.7s var(--ease-spring);
}

.streets__badge.is-spin {
  animation: spin-in 0.7s var(--ease-spring);
}

@keyframes spin-in {
  from {
    transform: rotate(-200deg) scale(0.4);
  }
}

.street {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  gap: 0.35rem 1.5rem;
  align-items: center;
  padding-block: 1.5rem;
  border-top: 0.0625rem solid var(--trait);
  text-decoration: none;
  transition: opacity 0.4s;
}

.streets__list li:last-child .street {
  border-bottom: 0.0625rem solid var(--trait);
}

.street .sign {
  grid-row: span 2;
  transition: transform 0.6s var(--ease-spring);
}

.street__rue {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--encre-2);
}

.street__name {
  grid-column: 2;
  font-size: clamp(1.75rem, 3.4vw, 2.85rem);
  font-weight: 720;
  font-variation-settings: "opsz" 72, "wdth" 75;
  text-transform: uppercase;
  line-height: 0.95;
  transition: font-variation-settings 0.6s var(--ease-out), color 0.3s;
}

.street__price {
  grid-column: 3;
  grid-row: 1 / span 2;
  text-align: right;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 700;
  font-variation-settings: "opsz" 48, "wdth" 85;
  white-space: nowrap;
}

.street__price small {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--encre-2);
}

.street__meta {
  grid-column: 2 / -1;
  font-size: 0.9375rem;
  color: var(--encre-2);
}

/* Les autres rues s'effacent, le nom de la rue survolée « s'élargit » */
.streets__list:has(.street:hover) .street:not(:hover) {
  opacity: 0.32;
}

.street:hover .street__name,
.street:focus-visible .street__name {
  font-variation-settings: "opsz" 72, "wdth" 100;
  color: var(--email);
}

.street:hover .sign {
  transform: rotate(-12deg) scale(1.08);
}

@media (max-width: 56rem) {
  .streets__grid {
    grid-template-columns: 1fr;
  }

  .streets__preview {
    display: none;
  }

  .street {
    grid-template-columns: 2.75rem minmax(0, 1fr);
  }

  .street .sign {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.8125rem;
  }

  .street__price {
    grid-column: 2;
    grid-row: auto;
    text-align: left;
  }

  .street__price small {
    display: inline;
    margin-right: 0.35rem;
  }
}

/* ---------- Le trajet (route + voiture au scroll) ---------- */
.trajet {
  background: var(--bitume);
  color: var(--blanc);
  overflow: hidden;
}

.trajet .kicker {
  color: rgba(251, 249, 244, 0.7);
}

.trajet .h2 em {
  color: #9db8e8;
}

.trajet .numero {
  background: var(--blanc);
  color: var(--email);
  box-shadow: inset 0 0 0 0.12em var(--blanc), inset 0 0 0 0.22em var(--email);
}

.road {
  --p: 0;
  position: relative;
  height: 5.5rem;
  margin-block: 3rem 0;
  background: #2f333a;
  border-block: 0.25rem solid #e9e4d7;
}

.road::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 0.25rem;
  margin-top: -0.125rem;
  background: repeating-linear-gradient(90deg, #e9e4d7 0 2.25rem, transparent 2.25rem 4rem);
  background-position: calc(var(--p) * -24rem) 0;
}

.road__car {
  position: absolute;
  top: 50%;
  left: calc(var(--p) * (100% - 5rem));
  width: 5rem;
  translate: 0 -78%;
}

.stations {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.station {
  position: relative;
  padding-top: 1.5rem;
  border-top: 0.0625rem solid rgba(251, 249, 244, 0.2);
  transition: opacity 0.5s;
  opacity: 0.45;
}

.station.is-passed {
  opacity: 1;
}

.station::before {
  content: "";
  position: absolute;
  top: -0.5rem;
  left: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--bitume);
  box-shadow: inset 0 0 0 0.1875rem #e9e4d7;
  transition: background 0.4s;
}

.station.is-passed::before {
  background: #e9e4d7;
}

.station__n {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.125rem;
  color: #9db8e8;
}

.station h3 {
  margin-block: 0.5rem 0.75rem;
  font-size: 1.75rem;
  font-variation-settings: "opsz" 48, "wdth" 78;
  text-transform: uppercase;
}

.station p {
  font-size: 0.975rem;
  color: rgba(251, 249, 244, 0.75);
}

@media (max-width: 56rem) {
  .trajet__body {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 1.5rem;
  }

  .road {
    height: auto;
    margin: 0;
    border-block: 0;
    border-inline: 0.25rem solid #e9e4d7;
  }

  .road::before {
    left: 50%;
    right: auto;
    top: 0;
    bottom: 0;
    width: 0.25rem;
    height: auto;
    margin: 0 0 0 -0.125rem;
    background: repeating-linear-gradient(180deg, #e9e4d7 0 2.25rem, transparent 2.25rem 4rem);
    background-position: 0 calc(var(--p) * -24rem);
  }

  .road__car {
    left: 50%;
    top: calc(var(--p) * (100% - 5rem));
    width: 3.75rem;
    translate: -50% 0;
    rotate: 90deg;
  }

  .stations {
    grid-template-columns: 1fr;
    margin: 0;
  }

  .station::before {
    left: -2.85rem;
    top: 1.35rem;
  }

  .station {
    border-top: 0;
    padding-block: 1rem 1.5rem;
  }
}

/* ---------- Compteur kilométrique (chiffres) ---------- */
.odo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 0.0625rem solid var(--trait);
}

.odo-cell {
  padding: 2rem 1.5rem 2rem 0;
}

.odo-cell + .odo-cell {
  padding-left: 1.5rem;
  border-left: 0.0625rem solid var(--trait);
}

.odo {
  display: inline-flex;
  gap: 0.18rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  font-variation-settings: "opsz" 72, "wdth" 82;
  line-height: 1;
}

.odo__d {
  display: inline-block;
  position: relative;
  height: 1.12em;
  width: 0.72em;
  overflow: hidden;
  background: var(--encre);
  color: var(--blanc);
  border-radius: 0.12em;
  box-shadow: inset 0 0.4em 0.4em -0.3em rgba(0, 0, 0, 0.6), inset 0 -0.4em 0.4em -0.3em rgba(0, 0, 0, 0.6);
}

.odo__d > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.06em;
  transition: transform 1.8s var(--ease-out);
}

.odo__d > span > span {
  height: 1.12em;
  line-height: 1.12em;
}

.odo__sep {
  align-self: flex-end;
  padding-inline: 0.04em;
}

.odo-cell:last-child .odo__d {
  background: var(--email);
}

.odo-cell p {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--encre-2);
}

.odo-cell p strong {
  display: block;
  color: var(--encre);
  font-size: 1.0625rem;
}

.source {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--encre-2);
}

@media (max-width: 64rem) {
  .odo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .odo-cell:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .odo-cell:nth-child(n + 3) {
    border-top: 0.0625rem solid var(--trait);
  }
}

@media (max-width: 30rem) {
  .odo-grid {
    grid-template-columns: 1fr;
  }

  .odo-cell,
  .odo-cell + .odo-cell {
    padding-left: 0;
    border-left: 0;
  }

  .odo-cell + .odo-cell {
    border-top: 0.0625rem solid var(--trait);
  }
}

/* ---------- Avis : citation + tableau d'honneur ---------- */
.avis__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.quote {
  position: relative;
  margin: 0;
}

.quote blockquote {
  margin: 0;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.quote blockquote::before {
  content: "«\00a0";
  color: var(--email);
}

.quote blockquote::after {
  content: "\00a0»";
  color: var(--email);
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
  font-size: 0.9375rem;
  color: var(--encre-2);
}

.quote figcaption strong {
  color: var(--encre);
}

.quotes-mini {
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 0.0625rem solid var(--trait);
}

.quotes-mini li {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.25;
}

.quotes-mini li span {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--f-display);
  font-style: normal;
  font-size: 0.875rem;
  color: var(--encre-2);
}

.rating {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.rating__note {
  font-size: 3.5rem;
  font-weight: 750;
  font-variation-settings: "opsz" 96, "wdth" 78;
  line-height: 1;
}

/* Tableau d'honneur, façon tableau d'affichage de résultats */
.honneur {
  background: var(--blanc);
  border-radius: var(--radius);
  box-shadow: 0 0 0 0.0625rem var(--trait), 0 1.5rem 3rem -2rem rgba(17, 26, 44, 0.35);
  overflow: hidden;
}

.honneur__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: var(--email);
  color: var(--blanc);
}

.honneur__head h3 {
  font-size: 1.35rem;
  font-variation-settings: "opsz" 48, "wdth" 78;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.honneur__head span {
  font-size: 0.8125rem;
  opacity: 0.8;
}

.honneur table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.honneur th {
  padding: 0.75rem 1.5rem;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  color: var(--encre-2);
  border-bottom: 0.0625rem solid var(--trait);
}

.honneur td {
  padding: 0.85rem 1.5rem;
  border-bottom: 0.0625rem dashed var(--trait);
  font-variant-numeric: tabular-nums;
}

.honneur tr:last-child td {
  border-bottom: 0;
}

.honneur tbody tr {
  transition: background 0.25s;
}

.honneur tbody tr:hover {
  background: var(--papier);
}

.honneur td:first-child {
  font-weight: 650;
  white-space: nowrap;
}

.tag-ok {
  display: inline-block;
  font-weight: 600;
  white-space: nowrap;
}

.tag-ok::before {
  content: "";
  display: inline-block;
  margin-right: 0.45rem;
  vertical-align: 0.05em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--vert);
}

.tag-ok--2::before {
  background: var(--email);
}

.honneur__foot {
  padding: 1rem 1.5rem 1.25rem;
  border-top: 0.0625rem solid var(--trait);
}

@media (max-width: 56rem) {
  .avis__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 36rem) {
  .honneur th:nth-child(3),
  .honneur td:nth-child(3) {
    display: none;
  }

  .honneur th,
  .honneur td {
    padding-inline: 1rem;
  }
}

/* ---------- Split photo + texte ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.split--rev > :first-child {
  order: 2;
}

/* Double photo coupée en diagonale : la ligne de coupe se déplace au survol */
.duo {
  --cut: 58%;
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--papier-3);
}

.duo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: clip-path 0.9s var(--ease-out);
}

.duo img:first-child {
  clip-path: polygon(0 0, var(--cut) 0, calc(var(--cut) - 18%) 100%, 0 100%);
}

.duo img:last-child {
  clip-path: polygon(calc(var(--cut) + 0.5%) 0, 100% 0, 100% 100%, calc(var(--cut) - 17.5%) 100%);
}

.duo:hover {
  --cut: 82%;
}

@property --cut {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 58%;
}

.duo {
  transition: --cut 0.9s var(--ease-out);
}

.checklist {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
}

.checklist li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.checklist li::before {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbf9f4' stroke-width='3' stroke-linecap='square'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 0.9rem no-repeat,
    var(--email);
}

@media (max-width: 56rem) {
  .split {
    grid-template-columns: 1fr;
  }

  .split--rev > :first-child {
    order: 0;
  }
}

/* ---------- Bandeau CTA ---------- */
.cta {
  position: relative;
  background: var(--email);
  color: var(--blanc);
  overflow: hidden;
}

.cta::before {
  /* liseré blanc + cadre vert : la section entière est une plaque */
  content: "";
  position: absolute;
  inset: clamp(0.6rem, 1.4vw, 1rem);
  border: 0.1875rem solid rgba(251, 249, 244, 0.85);
  border-radius: 0.75rem;
  pointer-events: none;
}

.cta {
  box-shadow: inset 0 0 0 clamp(0.3rem, 0.7vw, 0.5rem) var(--vert);
}

.cta__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 3rem;
  align-items: center;
}

.cta .kicker {
  color: rgba(251, 249, 244, 0.75);
}

.cta .h2 em {
  color: #b9cdf0;
}

.cta .lead {
  color: rgba(251, 249, 244, 0.8);
  margin-top: 1.25rem;
}

.cta__actions {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.cta__tel {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 750;
  font-variation-settings: "opsz" 96, "wdth" 78;
  line-height: 1;
}

@media (max-width: 56rem) {
  .cta__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Pied de page ---------- */
.footer {
  padding-top: clamp(4rem, 8vw, 6rem);
  background: var(--encre);
  color: rgba(251, 249, 244, 0.78);
  font-size: 0.9375rem;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--blanc);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

.footer h3 {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 249, 244, 0.5);
}

.footer li + li {
  margin-top: 0.45rem;
}

.footer__hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1rem;
  margin: 0;
}

.footer__hours dt {
  color: var(--blanc);
}

.footer__hours dd {
  margin: 0;
}

/* Grand logotype : les lettres s'élargissent près du curseur */
.wordmark {
  display: flex;
  justify-content: space-between;
  margin-top: clamp(3rem, 7vw, 5rem);
  font-size: clamp(2.25rem, 9.6vw, 9.25rem);
  font-weight: 800;
  font-variation-settings: "opsz" 96, "wdth" 75;
  line-height: 0.8;
  text-transform: uppercase;
  color: var(--blanc);
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}

.wordmark span {
  display: inline-block;
  transition: font-variation-settings 0.35s var(--ease-out), color 0.35s;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 0.0625rem solid rgba(251, 249, 244, 0.14);
  font-size: 0.8125rem;
  color: rgba(251, 249, 244, 0.55);
}

@media (max-width: 56rem) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 30rem) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- En-tête des pages intérieures ---------- */
.page-hero {
  padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 0.0625rem solid var(--trait);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem 4rem;
  align-items: end;
}

.page-hero .display {
  margin-block: 1.25rem 1.5rem;
}

.page-hero .plaque {
  --pl-size: clamp(1rem, 1.8vw, 1.5rem);
  transform: rotate(2deg);
  margin: 0 1rem 1rem 0;
}

.page-hero .plaque__name {
  font-size: 1.5em;
}

@media (max-width: 48rem) {
  .page-hero__grid {
    grid-template-columns: 1fr;
  }

  .page-hero .plaque {
    justify-self: start;
    margin-left: 0.5rem;
  }
}

/* Sommaire en « panneaux directionnels » */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.jump a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.6rem 0.6rem 1rem;
  font-size: 0.9375rem;
  font-weight: 650;
  font-variation-settings: "opsz" 18, "wdth" 88;
  text-decoration: none;
  color: var(--encre);
  background: var(--blanc);
  clip-path: polygon(0 0, calc(100% - 0.9rem) 0, 100% 50%, calc(100% - 0.9rem) 100%, 0 100%);
  box-shadow: inset 0 0 0 0 var(--email);
  transition: box-shadow 0.45s var(--ease-out), color 0.3s, padding 0.45s var(--ease-out);
}

.jump a:hover {
  color: var(--blanc);
  box-shadow: inset 16rem 0 0 0 var(--email);
  padding-right: 2rem;
}

/* ---------- Formations (page) ---------- */
.formation {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-bottom: 0.0625rem solid var(--trait);
}

.formation:last-of-type {
  border-bottom: 0;
}

.formation__media {
  position: sticky;
  top: 7rem;
  align-self: start;
}

.formation__media .arch {
  aspect-ratio: 4 / 4.6;
}

.formation__media .plaque {
  position: absolute;
  left: -1rem;
  bottom: 2rem;
  --pl-size: 1.15rem;
}

.formation__media .plaque__name {
  font-size: 1.35em;
}

.formation__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.formation h2 {
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  font-variation-settings: "opsz" 96, "wdth" 78;
  text-transform: uppercase;
}

.formation__lead {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  color: var(--encre-2);
  max-width: 36rem;
}

.formation__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 0.0625rem dashed var(--trait);
}

.formation__price strong {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 750;
  font-variation-settings: "opsz" 96, "wdth" 80;
  line-height: 1;
}

.formation__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  align-items: center;
  margin-top: 2rem;
}

.prereq {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1.75rem;
  padding: 0.9rem 1.1rem;
  background: var(--blanc);
  border-left: 0.25rem solid var(--rouge);
  font-size: 0.9375rem;
}

@media (max-width: 56rem) {
  .formation {
    grid-template-columns: 1fr;
  }

  .formation__media {
    position: relative;
    top: 0;
    max-width: 26rem;
    margin-left: 1rem;
  }
}

/* ---------- Tarifs ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.tab {
  padding: 0.75rem 1.15rem;
  font: inherit;
  font-size: 0.975rem;
  font-weight: 650;
  font-variation-settings: "opsz" 18, "wdth" 88;
  color: var(--encre);
  background: transparent;
  border: 0.125rem solid var(--encre);
  border-radius: 0.45rem;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, outline-offset 0.35s var(--ease-spring);
  outline: 0.125rem solid transparent;
  outline-offset: 0;
}

.tab:hover {
  outline-color: var(--encre);
  outline-offset: 0.2rem;
}

.tab[aria-selected="true"] {
  background: var(--email);
  border-color: var(--email);
  color: var(--blanc);
  outline-color: var(--vert);
  outline-offset: 0.2rem;
}

.toggle {
  display: inline-flex;
  padding: 0.25rem;
  margin-bottom: 2rem;
  background: var(--papier-2);
  border-radius: 999rem;
}

.toggle button {
  padding: 0.55rem 1.1rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--encre-2);
  background: transparent;
  border: 0;
  border-radius: 999rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.toggle button[aria-pressed="true"] {
  background: var(--encre);
  color: var(--blanc);
}

.panel[hidden] {
  display: none;
}

.panel__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.panel__title h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-variation-settings: "opsz" 96, "wdth" 78;
  text-transform: uppercase;
}

/* Cartes forfaits : le cadre se resserre au survol (outline-offset) */
.forfaits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
  gap: 1.25rem;
}

.forfait {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--blanc);
  border-radius: var(--radius);
  outline: 0.125rem solid var(--trait);
  outline-offset: 0;
  transition: outline-offset 0.45s var(--ease-spring), outline-color 0.3s, transform 0.45s var(--ease-out);
}

.forfait:hover {
  outline-color: var(--email);
  outline-offset: -0.5rem;
}

.forfait[hidden] {
  display: none;
}

.forfait__h {
  font-size: 2.5rem;
  font-weight: 750;
  font-variation-settings: "opsz" 96, "wdth" 75;
  line-height: 0.9;
  text-transform: uppercase;
}

.forfait__h small {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 650;
  font-variation-settings: "opsz" 14, "wdth" 100;
  letter-spacing: 0.12em;
  color: var(--encre-2);
}

.forfait__inc {
  flex: 1;
  margin-block: 1.25rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--encre-2);
}

.forfait__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 0.0625rem dashed var(--trait);
}

.forfait__price strong {
  font-size: 2rem;
  font-weight: 750;
  font-variation-settings: "opsz" 72, "wdth" 82;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.forfait__price span {
  font-size: 0.8125rem;
  color: var(--encre-2);
}

.forfait--star {
  background: var(--email);
  color: var(--blanc);
  outline-color: var(--vert);
  outline-width: 0.25rem;
}

.forfait--star:hover {
  outline-color: var(--vert);
}

.forfait--star .forfait__h small,
.forfait--star .forfait__inc,
.forfait--star .forfait__price span {
  color: rgba(251, 249, 244, 0.75);
}

.forfait--star .forfait__price {
  border-color: rgba(251, 249, 244, 0.3);
}

.forfait__badge {
  position: absolute;
  top: -0.8rem;
  right: 1.25rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--encre);
  background: var(--papier);
  border: 0.125rem solid var(--vert);
  border-radius: 0.3rem;
}

/* Tableau de tarifs à l'unité */
.unit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 2rem 3rem;
}

.unit h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.25rem;
  font-size: 1.35rem;
  font-variation-settings: "opsz" 48, "wdth" 80;
  text-transform: uppercase;
  border-bottom: 0.125rem solid var(--encre);
}

.unit .sign {
  width: 2rem;
  height: 2rem;
  font-size: 0.7rem;
}

.unit dl {
  margin: 0;
}

.unit div {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-block: 0.7rem;
  border-bottom: 0.0625rem dashed var(--trait);
}

.unit dt {
  flex: none;
}

.unit dd {
  margin: 0 0 0 auto;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* le pointillé de conduite entre libellé et prix */
.unit div::after {
  content: "";
  order: 1;
  flex: 1;
  border-bottom: 0.125rem dotted var(--papier-3);
  transform: translateY(-0.25rem);
}

.unit dd {
  order: 2;
  margin: 0;
}

.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.note {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  background: var(--papier-2);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.note .sign {
  width: 2rem;
  height: 2rem;
  font-size: 0.8rem;
}

/* ---------- À propos : la rue du temps ---------- */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 1.4rem;
  height: 0.1875rem;
  background: repeating-linear-gradient(90deg, var(--encre) 0 1.5rem, transparent 1.5rem 2.5rem);
  z-index: -1;
}

.timeline li {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.timeline .numero {
  justify-self: start;
  font-size: 1.35rem;
  transition: transform 0.6s var(--ease-spring);
}

.timeline li:hover .numero {
  transform: rotate(-6deg) scale(1.08);
}

.timeline h3 {
  font-size: 1.5rem;
  font-variation-settings: "opsz" 48, "wdth" 80;
  text-transform: uppercase;
}

.timeline p {
  color: var(--encre-2);
  font-size: 0.975rem;
}

@media (max-width: 56rem) {
  .timeline {
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .timeline::before {
    display: none;
  }
}

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.value {
  padding: 2rem 1.75rem;
  background: var(--blanc);
  border-radius: var(--radius);
  outline: 0.125rem solid var(--trait);
  outline-offset: 0;
  transition: outline-offset 0.45s var(--ease-spring), outline-color 0.3s;
}

.value:hover {
  outline-color: var(--vert);
  outline-offset: -0.5rem;
}

.value h3 {
  margin-block: 1.25rem 0.75rem;
  font-size: 2rem;
  font-variation-settings: "opsz" 72, "wdth" 78;
  text-transform: uppercase;
}

.value p {
  color: var(--encre-2);
}

@media (max-width: 56rem) {
  .values {
    grid-template-columns: 1fr;
  }
}

.garanties {
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem 2.75rem;
  align-items: center;
  margin-top: 2.5rem;
  padding-left: 0.5rem;
}

.garanties .plaque {
  --pl-size: clamp(1rem, 1.8vw, 1.4rem);
}

.garanties .plaque:nth-child(2) {
  transform: rotate(-1.5deg);
}

.garanties .plaque:nth-child(3) {
  transform: rotate(1deg);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.open-now {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 650;
  background: var(--blanc);
  border-radius: 999rem;
  box-shadow: inset 0 0 0 0.0625rem var(--trait);
}

.open-now::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--papier-3);
}

.open-now.is-open::before {
  background: var(--vert);
  box-shadow: 0 0 0 0.25rem rgba(45, 106, 79, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

.open-now.is-closed::before {
  background: var(--rouge);
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 0.45rem rgba(45, 106, 79, 0);
  }
}

.hours {
  width: 100%;
  margin-top: 1.25rem;
  border-collapse: collapse;
  font-size: 0.975rem;
}

.hours caption {
  text-align: left;
  padding-bottom: 0.6rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--encre-2);
}

.hours th,
.hours td {
  padding: 0.6rem 0;
  border-bottom: 0.0625rem dashed var(--trait);
  text-align: left;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.hours th {
  width: 11rem;
  font-weight: 650;
  white-space: nowrap;
}

.hours tr.is-today th,
.hours tr.is-today td {
  color: var(--email);
  font-weight: 700;
}

.hours tr.is-today th::after {
  content: " · aujourd'hui";
  font-size: 0.75rem;
  font-weight: 600;
}

.transports {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.transports li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.ligne {
  display: inline-grid;
  place-items: center;
  min-width: 1.85rem;
  height: 1.85rem;
  padding-inline: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 750;
  font-variation-settings: "opsz" 14, "wdth" 85;
  color: var(--blanc);
  background: var(--encre);
  border-radius: 50%;
}

.ligne--tram {
  border-radius: 0.3rem;
  background: var(--vert);
}

.ligne--bus {
  border-radius: 0.3rem;
  background: var(--email);
}

.ligne--rer {
  border-radius: 0.3rem;
  background: var(--rouge);
}

.map {
  position: relative;
  margin-top: 2rem;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  outline: 0.125rem solid var(--trait);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.85) sepia(0.25) contrast(1.05);
}

.map .plaque {
  position: absolute;
  left: 50%;
  top: 50%;
  --pl-size: 0.7rem;
  transform: translate(-50%, -125%);
  pointer-events: none;
}

.form {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: var(--blanc);
  border-radius: var(--radius);
  box-shadow: 0 0 0 0.0625rem var(--trait), 0 1.5rem 3rem -2rem rgba(17, 26, 44, 0.35);
}

.form h2 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-variation-settings: "opsz" 96, "wdth" 78;
  text-transform: uppercase;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.field label,
.field legend {
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--encre-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 0.25rem 0.6rem;
  font: inherit;
  color: var(--encre);
  background: transparent;
  border: 0;
  border-bottom: 0.125rem solid var(--encre);
  border-radius: 0;
  transition: border-color 0.25s, background-size 0.45s var(--ease-out);
  /* le marquage discontinu apparaît au focus */
  background-image: repeating-linear-gradient(90deg, var(--email) 0 0.75rem, transparent 0.75rem 1.25rem);
  background-size: 0 0.1875rem;
  background-repeat: no-repeat;
  background-position: 0 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: transparent;
  background-size: 100% 0.1875rem;
}

.field textarea {
  resize: vertical;
  min-height: 6rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.25rem 0 0;
  padding: 0;
  border: 0;
}

.chips label {
  position: relative;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--encre);
}

.chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chips span {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border: 0.125rem solid var(--encre);
  border-radius: 999rem;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.chips input:checked + span {
  background: var(--encre);
  color: var(--blanc);
}

.chips input:focus-visible + span {
  outline: 0.1875rem solid var(--rouge);
  outline-offset: 0.2rem;
}

.form__legal {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--encre-2);
}

.form .btn {
  margin-top: 1.75rem;
}

@media (max-width: 56rem) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 30rem) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Texte long (mentions) ---------- */
.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-block: 3rem 1rem;
  font-size: 1.75rem;
  font-variation-settings: "opsz" 48, "wdth" 80;
  text-transform: uppercase;
}

.prose p + p {
  margin-top: 1rem;
}

.prose p,
.prose li {
  color: var(--encre-2);
}

.prose ul {
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
  padding-left: 1.25rem;
  list-style: square;
}

/* ---------- Apparitions au scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Titres découpés : chaque ligne se dévoile par un volet vertical */
.js [data-cut] .line {
  clip-path: inset(0 0 100% 0);
  transform: translateY(0.4em);
  transition: clip-path 1s var(--ease-out), transform 1s var(--ease-out);
}

.js [data-cut].is-in .line {
  clip-path: inset(-0.2em -0.2em -0.3em -0.2em);
  transform: none;
}

.js [data-cut].is-in .line:nth-child(2) {
  transition-delay: 0.12s;
}

.js [data-cut].is-in .line:nth-child(3) {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal],
  .js [data-cut] .line {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
}

/* ---------- Compléments ---------- */
sup {
  font-size: 0.62em;
  line-height: 0;
  vertical-align: 0.55em;
}

.sign--sm {
  font-size: 0.75rem;
}

.streets__badge.sign--sm {
  font-size: 1.35rem;
}

.road__car {
  filter: drop-shadow(0 0.4rem 0.4rem rgba(0, 0, 0, 0.45));
}

.kicker sup {
  margin-left: -0.12em;
  letter-spacing: 0;
  text-transform: none;
}

[data-cut] .line {
  display: block;
}
