@font-face { font-family: "Overpass"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/overpass-400.ttf") format("truetype"); }
@font-face { font-family: "Overpass"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/overpass-600.ttf") format("truetype"); }
@font-face { font-family: "Overpass"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/overpass-700.ttf") format("truetype"); }
@font-face { font-family: "Overpass"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/overpass-800.ttf") format("truetype"); }

/* Formatio : « Plan de ligne »
   Une identité de signalétique : trois lignes de couleur, un faisceau, des stations. */

:root {
  --paper: #F4F6F8;
  --white: #FFFFFF;
  --ink: #16203A;
  --ink-2: #4A5470;
  --ink-3: #26335A;
  --rule: #D3D9E3;
  --rose: #E2457A;
  --jaune: #F2B33D;
  --vert: #1F8A70;

  --font: "Overpass", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --gutter: clamp(20px, 4.5vw, 56px);
  --max: 1200px;
  --section: clamp(72px, 10vw, 136px);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

p, h1, h2, h3, dl, dd, figure { margin: 0; }

a { color: inherit; }

svg { display: block; }

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

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

.nowrap { white-space: nowrap; }

/* SVG fills partagés */
.f-a { fill: var(--rose); }
.f-b { fill: var(--jaune); }
.f-c { fill: var(--vert); }
.f-ink { fill: var(--ink); }

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 50;
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 6px;
}
.skip:focus { top: 1rem; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 246, 248, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: -.035em;
  line-height: 1;
}
.brand-mark { width: 40px; height: 28px; }
.brand span { padding-top: .12em; }

.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}
.nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}
.nav .nav-cta {
  display: inline-block;
  padding: .62rem 1.15rem .5rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
}
.nav .nav-cta:hover {
  background: var(--ink-3);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  min-height: 44px;
  padding: .55rem 1.1rem .45rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 700 1rem/1 var(--font);
  cursor: pointer;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .8rem 1.4rem .66rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font: 700 1rem/1.15 var(--font);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--ink-3); border-color: var(--ink-3); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--white); }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 96px);
}

.hero-title {
  font-weight: 800;
  font-size: clamp(2.6rem, 10vw, 7rem);
  line-height: .93;
  letter-spacing: -.04em;
}
.hero-line { display: block; }

/* La phrase arrive à un terminus */
.h1-end {
  display: inline-block;
  position: relative;
  width: .78em;
  height: .3em;
  margin-left: .08em;
  vertical-align: .1em;
  background: linear-gradient(var(--ink), var(--ink)) left center / calc(100% - .2em) .1em no-repeat;
}
.h1-end::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: .3em;
  height: .3em;
  border-radius: 50%;
  background: var(--white);
  border: .075em solid var(--ink);
  box-sizing: border-box;
}

.hero-sub {
  max-width: 40rem;
  margin-top: clamp(28px, 4vw, 44px);
}
.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 38em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

/* ---------- Plan de ligne ---------- */
.plan {
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 1.25rem;
  border-top: 3px solid var(--ink);
}
.plan figcaption {
  max-width: 60ch;
  margin-bottom: clamp(16px, 3vw, 28px);
  font-size: .9375rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.plan-svg { width: 100%; height: auto; overflow: visible; }
.plan-v { display: none; }

.plan-svg text { font-family: var(--font); fill: var(--ink); }

.ln {
  fill: none;
  stroke-width: 12;
  stroke-linejoin: round;
}
.s-a { stroke: var(--rose); }
.s-b { stroke: var(--jaune); }
.s-c { stroke: var(--vert); }

.ln-label {
  font-size: 18px;
  font-weight: 700;
  text-anchor: end;
}
.ln-letter {
  font-size: 18px;
  font-weight: 800;
  text-anchor: middle;
  fill: var(--white) !important;
}
.ln-letter--dark { fill: var(--ink) !important; }
.ln-letter--sm { font-size: 14px; }

.st-title {
  font-size: 20px;
  font-weight: 800;
  text-anchor: middle;
}
.st-sub {
  font-size: 15px;
  text-anchor: middle;
  fill: var(--ink-2) !important;
}
.st-left { text-anchor: start; }

.cap {
  fill: var(--white);
  stroke: var(--ink);
  stroke-width: 5;
  transition: fill .2s ease;
}
.cap-num {
  font-size: 16px;
  font-weight: 800;
  text-anchor: middle;
}
.station--end .cap { fill: var(--ink); }
.station--end .cap-num { fill: var(--white) !important; }

.hit { fill: transparent; }

.station { cursor: pointer; }
.station:focus { outline: none; }
.station:hover .cap,
.station:focus-visible .cap { fill: var(--jaune); }
.station:focus-visible .cap { stroke-width: 8; }
.station--end:hover .cap-num,
.station--end:focus-visible .cap-num { fill: var(--ink) !important; }
.station:hover .st-title,
.station:focus-visible .st-title { fill: var(--ink-3); }

.plan-legend {
  display: none;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 1rem;
  font-weight: 600;
}
.plan-legend li {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding-block: .3rem;
}

/* Animation unique : le tracé des lignes au chargement */
@media (prefers-reduced-motion: no-preference) {
  .ln {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.5s cubic-bezier(.65, 0, .25, 1) .25s forwards;
  }
  .s-b { animation-delay: .4s; }
  .s-c { animation-delay: .55s; }
  .plan-svg .station {
    opacity: 0;
    animation: appear .35s ease-out forwards;
    animation-delay: calc(.95s + var(--i) * .13s);
  }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* ---------- Badges de ligne ---------- */
.badge {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  background: var(--line);
  color: var(--white);
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1;
  padding-top: .12em;
}
.badge--circle { border-radius: 50%; color: var(--ink); }
.badge--square { border-radius: 7px; color: var(--ink); }
.badge--diamond {
  width: 3.4rem;
  height: 3.4rem;
  margin-inline: -.2rem;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.badge--sm {
  width: 1.75rem;
  height: 1.75rem;
  font-size: .95rem;
}
.badge--diamond.badge--sm {
  width: 2.1rem;
  height: 2.1rem;
  margin-inline: -.175rem;
}

/* ---------- Points de départ ---------- */
.starts {
  background: var(--white);
  border-block: 1px solid var(--rule);
}
.starts-inner {
  display: grid;
  grid-template-columns: minmax(0, 13rem) repeat(2, minmax(0, 1fr));
  gap: 1.5rem 3rem;
  align-items: start;
  padding-block: 2.25rem;
}
.starts-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.015em;
  padding-top: .1rem;
}
.start {
  display: grid;
  gap: .4rem;
  padding: .15rem 0 .15rem 1.25rem;
  border-left: 6px solid var(--line);
  text-decoration: none;
}
.start strong {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
}
.start span {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.start:hover strong {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ---------- Titres de section ---------- */
.h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.section-intro {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
}

/* ---------- Services : les trois lignes ---------- */
.services { padding-block: var(--section); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
  gap: 1.5rem 4rem;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.lines {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 3px solid var(--ink);
}

.line {
  display: grid;
  grid-template-columns: minmax(0, 21rem) minmax(0, 1fr);
  gap: 1.5rem 4rem;
  padding-block: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 96px;
}

.line-id {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.line-title {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  padding-top: .55rem;
}

.line-body > p {
  max-width: 36em;
  color: var(--ink-2);
}

.stops {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 2rem 0 1.75rem;
  padding: 0;
}
.stops::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 9px;
  height: 8px;
  border-radius: 4px;
  background: var(--line);
}
.stops li {
  position: relative;
  padding: 2.3rem 1rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.stops li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  border: 5px solid var(--ink);
}

.line-link {
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.line-link:hover { text-decoration-color: var(--ink); }

/* ---------- Méthode ---------- */
.method {
  padding-block: var(--section);
  background: var(--white);
  border-top: 3px solid var(--ink);
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
  gap: 3rem clamp(3rem, 7vw, 7rem);
}
.method-intro {
  position: sticky;
  top: 112px;
  align-self: start;
}
.method-intro .section-intro { margin-top: 1.5rem; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  position: relative;
  padding: 0 0 clamp(36px, 5vw, 56px) 5.25rem;
  scroll-margin-top: 120px;
}
/* Faisceau tricolore entre deux stations */
.step::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 17px;
  bottom: -17px;
  width: 18px;
  background: linear-gradient(90deg,
    var(--rose) 0 6px,
    var(--jaune) 6px 12px,
    var(--vert) 12px 18px);
}
.step--end { padding-bottom: 0; }
.step--end::before { display: none; }

.step-cap {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 34px;
  padding-top: .15em;
  border: 4px solid var(--ink);
  border-radius: 17px;
  background: var(--white);
  font-weight: 800;
  font-size: 1rem;
  transition: background-color .25s ease;
}
.step--end .step-cap {
  height: 44px;
  top: -5px;
  border-radius: 22px;
  background: var(--ink);
  color: var(--white);
}

.step-title {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: .55rem;
}
.step p {
  max-width: 34em;
  color: var(--ink-2);
}

.here {
  display: none;
  width: fit-content;
  margin-bottom: .6rem;
  padding: .3rem .7rem .18rem;
  border-radius: 6px;
  background: var(--jaune);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 800;
}
.step:target .here { display: block; }
.step:target .step-cap { background: var(--jaune); color: var(--ink); }

/* ---------- Approche : le panneau ---------- */
.approach { padding-block: var(--section); }

.sign {
  padding: clamp(28px, 5.5vw, 72px);
  border-radius: 22px;
  background: var(--ink);
  color: var(--white);
}
.sign :focus-visible { outline-color: var(--white); }

.sign-strip {
  display: flex;
  gap: 6px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.sign-strip span {
  width: 56px;
  height: 10px;
  border-radius: 5px;
  background: var(--rose);
}
.sign-strip span:nth-child(2) { background: var(--jaune); }
.sign-strip span:nth-child(3) { background: var(--vert); }

.sign-title {
  max-width: 14em;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.sign-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 4rem);
}
.sign-grid > div {
  padding-block: 1.6rem 1.9rem;
  border-top: 2px solid rgba(255, 255, 255, .22);
}
.sign-grid dt {
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin-bottom: .55rem;
}
.sign-grid dd {
  max-width: 34em;
  color: #C8CFDF;
}

/* ---------- Contact ---------- */
.contact {
  padding-block: clamp(72px, 9vw, 120px);
  background: var(--jaune);
}
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 6vw, 6rem);
  align-items: end;
}
.contact-title {
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.contact-body p {
  max-width: 30em;
  margin-bottom: 1.5rem;
}

/* ---------- Pied de page ---------- */
.footer {
  padding-block: 48px;
  background: var(--ink);
  color: #C8CFDF;
  font-size: .9375rem;
}
.footer :focus-visible { outline-color: var(--white); }
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 3rem;
  align-items: center;
}
.footer-brand {
  color: var(--white);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -.035em;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-note {
  grid-column: 1 / -1;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
  max-width: 70ch;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section-head,
  .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .line { grid-template-columns: minmax(0, 1fr); }
  .method-grid { grid-template-columns: minmax(0, 1fr); }
  .method-intro { position: static; }
  .starts-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .starts-title { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .site-header .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1.25rem var(--gutter) 1.75rem;
    background: var(--paper);
    border-bottom: 3px solid var(--ink);
  }
  .site-header .nav.is-open { display: block; }
  .no-js .site-header .nav { display: block; position: static; padding-inline: 0; border: 0; }
  .no-js .header-inner { flex-wrap: wrap; }
  .no-js .menu-toggle { display: none; }
  .nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
  }
  .nav a { font-size: 1.15rem; }
}

@media (max-width: 720px) {
  .plan-h { display: none; }
  .plan-v { display: block; max-width: 380px; }
  .plan-legend { display: block; }

  .starts-inner { grid-template-columns: minmax(0, 1fr); }

  .stops {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .stops::before {
    left: 9px;
    right: auto;
    top: 4px;
    bottom: 4px;
    width: 8px;
    height: auto;
  }
  .stops li {
    min-height: 26px;
    padding: .2rem 0 0 2.4rem;
  }

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

  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .hero-actions .btn,
  .contact-body .btn { width: 100%; }
  .step { padding-left: 4.5rem; }
}

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

/* Anchor destinations stay visible under the fixed navigation. */
section[id], main[id] { scroll-margin-top: 96px; }
.nav a, .footer-nav a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 860px) { .no-js .site-header { position: relative; } }
@media (max-width: 380px) { .hero-title { font-size: clamp(2.2rem, 9.4vw, 2.6rem); } }

.contact-email { margin-top: 1rem; font-size: 1rem; }
.contact-email a { text-underline-offset: 4px; }

/* The catalogue follows the line-B signage of the home page. */
.catalogue-intro { padding-block: clamp(48px,7vw,96px) 56px; }
.catalogue-label { margin-top: 2.5rem; margin-bottom: 1.25rem; font-size: .875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.catalogue-intro .h2 { max-width: 15ch; font-size: clamp(2.8rem,6.5vw,5.5rem); }
.catalogue-intro .section-intro { margin-top: 1.5rem; }
.course-nav { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 2rem; }
.course-nav a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; text-underline-offset: 6px; text-decoration-thickness: 3px; text-decoration-color: var(--jaune); }
.catalogue-list { padding-bottom: var(--section); }
.catalogue-item { display: grid; grid-template-columns: minmax(0,22rem) minmax(0,1fr); gap: 2rem 4rem; padding-block: 3rem; border-top: 3px solid var(--ink); scroll-margin-top: 96px; }
.catalogue-item:last-child { border-bottom: 1px solid var(--rule); }
.catalogue-heading { display: flex; gap: 1rem; align-items: flex-start; }
.catalogue-body > p { color: var(--ink-2); max-width: 38em; }
.catalogue-body h3 { margin-top: 2rem; font-size: 1.125rem; }
.course-facts { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: 1.5rem; }
.course-facts dt { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.course-facts dd { font-weight: 800; }
.course-inclusions { padding-left: 1.2rem; margin: .75rem 0 2rem; color: var(--ink-2); }
.course-inclusions li { padding-left: .35rem; margin-block: .35rem; }
.catalogue-item:target { background: var(--white); }
@media(max-width: 960px) { .catalogue-item { grid-template-columns: minmax(0,1fr); } }
@media(max-width: 420px) { .catalogue-body .btn { width: 100%; } }

.legal-page { padding-block: clamp(48px,7vw,96px); }
.legal-page .h2 { max-width: 20ch; margin-block: 2.5rem 3rem; }
.legal-content { max-width: 44rem; }
.legal-content section + section { margin-top: 2rem; }
.legal-content h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.legal-content p { color: var(--ink-2); }
.legal-content a { text-underline-offset: 4px; }
