@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
}

:root {
  --chaux: #F2F0EA;
  --bleu: #2D6FBF;
  --rouge: #B8395D;
  --rouge-clair: #E07A98;
  --bitume: #232629;
  --gris: #5C5F5A;
  --wrap: 1400px;
  --gutter: 16px;
  --radius: 2px;
  --header: 56px;
}

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

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

body {
  margin: 0;
  background: var(--chaux);
  color: var(--bitume);
  font-family: "Archivo", "Arial Narrow", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  letter-spacing: 0;
}

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

a { color: var(--rouge); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

h1, h2, h3, p { margin: 0; }

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

.display {
  font-weight: 800;
  font-stretch: 115%;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
  color: var(--bleu);
  text-wrap: balance;
}
.nowrap { white-space: nowrap; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--chaux);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
  gap: 24px;
}
.brand {
  font-weight: 750;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.875rem;
  color: var(--bitume);
  text-decoration: none;
  white-space: nowrap;
}
.top nav { display: none; }
.top nav a {
  color: var(--bitume);
  text-decoration: none;
  font-size: 0.9375rem;
}
.top .call {
  font-weight: 650;
  font-size: 0.9375rem;
  text-decoration: none;
}
.top .book { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: var(--radius);
  background: var(--rouge);
  color: #fff;
  font-weight: 650;
  font-stretch: 105%;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 300ms ease;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  color: var(--bitume);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #9C2F4E; }
  .link-arrow:hover, .top nav a:hover { color: var(--rouge); }
}

/* Hero: the painted pediment, then the ground floor */
.hero {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header));
  min-height: calc(100svh - var(--header));
}
.sign {
  padding: 24px 0 24px;
  text-align: center;
}
.sign-1 {
  color: var(--rouge);
  font-weight: 750;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(1rem, 2vw, 1.5rem);
  line-height: 1.1;
}
.sign-2 {
  margin-top: 12px;
  font-size: clamp(2.4rem, 6.2vw, 5.6rem);
}
.sign-2 span { display: block; }
.sign-3 {
  margin-top: 16px;
  color: var(--rouge);
  font-weight: 750;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.45rem, 3.6vw, 3rem);
  line-height: 1.1;
}
.sign-3 a { color: inherit; text-decoration: none; }
.welcome {
  max-width: 46em;
  margin: 16px auto 0;
  color: var(--gris);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
  margin-top: 20px;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--gris);
}
.facts strong { color: var(--bitume); font-weight: 650; }
.status::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gris);
  vertical-align: 0.1em;
}
.status.open::before { background: #2E8B57; }
.hero-photo {
  position: relative;
  flex: 1 1 auto;
  min-height: 240px;
  overflow: hidden;
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 16% 20%;
}

/* Sections */
section { padding: 96px 0; }
section.hero { padding: 0; }

/* Proof: opens on a quote */
.proof blockquote { margin: 0; max-width: 1100px; }
.proof .quote {
  font-weight: 500;
  font-stretch: 100%;
  font-size: clamp(1.75rem, 5vw, 4.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.proof .quote::before { content: "« "; color: var(--rouge); }
.proof .quote::after { content: " »"; color: var(--rouge); }
.proof figcaption {
  margin-top: 24px;
  color: var(--gris);
}
.proof figcaption strong { color: var(--bitume); font-weight: 650; }
.proof figure { margin: 0; }
.proof .more { display: inline-block; margin-top: 8px; }

/* Le contrôle: opens on a photo */
.controle { padding-top: 0; }
.bay img { width: 100%; height: clamp(260px, 42vw, 600px); object-fit: cover; object-position: 50% 80%; }
.controle .wrap { padding-top: 64px; }
.controle h2 { font-size: clamp(2rem, 5vw, 3.75rem); }
.vehicles {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  font-weight: 700;
  font-stretch: 112%;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 2.8vw, 2.25rem);
  line-height: 1.35;
}
.vehicles li { display: inline; white-space: nowrap; }
.vehicles li:not(:last-child)::after { content: "\a0·"; color: var(--rouge); font-weight: 400; }
.fuels { margin-top: 16px; color: var(--gris); }
.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding: 24px 0;
  border-top: 2px solid var(--bitume);
  border-bottom: 2px solid var(--bitume);
}
.price-line { font-weight: 600; font-size: 1.25rem; }
.price-amount {
  font-weight: 800;
  font-stretch: 115%;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
  color: var(--bitume);
}
.promo { margin-top: 16px; color: var(--gris); max-width: 40em; }
.controle .btn { margin-top: 32px; }

/* Examens: opens on the title */
.examens { background: #E7E4DB; }
.examens .wrap { display: grid; gap: 48px; }
.examens h2 { font-size: clamp(2rem, 5vw, 3.75rem); }
.examens p { margin-top: 24px; max-width: 34em; }
.examens .code-price { font-weight: 700; }
.examens .link-arrow { margin-top: 16px; color: var(--rouge); }
.examens img { width: 100%; max-width: 720px; height: auto; }

/* L'équipe: opens on a number */
.equipe .wrap { display: grid; gap: 32px; }
.year {
  font-weight: 800;
  font-stretch: 115%;
  font-size: clamp(5.5rem, 20vw, 15rem);
  line-height: 0.85;
  color: var(--bleu);
  letter-spacing: -0.01em;
}
.year-note { margin-top: 16px; color: var(--gris); }
.about { font-size: clamp(1.25rem, 2.2vw, 1.625rem); line-height: 1.45; max-width: 30em; }

/* Horaires et accès: the one dark block */
.acces { background: var(--bitume); color: var(--chaux); }
.acces .wrap { display: grid; gap: 64px; }
.acces h2 { color: var(--chaux); font-size: clamp(2rem, 5vw, 3.75rem); }
.board { margin-top: 32px; }
.board-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(242, 240, 234, 0.18);
  font-size: 1.125rem;
}
.board-row dt { font-weight: 600; }
.board-row dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.board-row dd span + span::before { content: ", "; }
.board-row .off { color: rgba(242, 240, 234, 0.6); }
.board-row.today dt, .board-row.today dd { color: var(--rouge-clair); }
.acces .label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(242, 240, 234, 0.7);
}
.acces address { white-space: pre-line; font-style: normal; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.2; font-weight: 600; margin-top: 8px; }
.acces .access { margin-top: 24px; max-width: 32em; }
.acces a { color: var(--rouge-clair); }
.acces .tel { display: inline-block; margin-top: 32px; font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; font-stretch: 112%; text-decoration: none; }
.acces .link-arrow { color: var(--chaux); }

/* Close */
.close { text-align: center; }
.close h2 { font-size: clamp(1.75rem, 5.4vw, 4.25rem); max-width: 14em; margin: 0 auto; }
.close .btn { margin-top: 40px; }
.close .alt { margin-top: 16px; color: var(--gris); }

/* Footer */
footer {
  padding: 48px 0 120px;
  border-top: 2px solid var(--bitume);
  font-size: 0.9375rem;
  color: var(--gris);
}
footer .wrap { display: grid; gap: 16px; }
footer .name { color: var(--bitume); font-weight: 750; font-stretch: 125%; text-transform: uppercase; letter-spacing: 0.04em; }
footer .legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer .legal a { color: var(--gris); }

/* Pinned action on the phone */
.pinned {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: var(--chaux);
}
.pinned .btn { width: 100%; }
.js .pinned { transform: translateY(110%); transition: transform 300ms ease; }
.js .pinned.show { transform: none; }

/* Reveal */
.js .reveal > * { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.js .reveal.in > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .pinned { transition: none; }
  .js .reveal > * { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

[id] { scroll-margin-top: calc(var(--header) + 16px); }

@media (min-width: 768px) {
  :root { --gutter: 32px; --header: 64px; }
  section { padding: 128px 0; }
  section.hero { padding: 0; }
  .sign { padding: 40px 0 32px; }
  .hero-photo img { object-position: 50% 0%; }
  .examens .wrap { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
  .equipe .wrap { grid-template-columns: 5fr 7fr; align-items: end; gap: 64px; }
  .acces .wrap { grid-template-columns: 1fr 1fr; gap: 96px; }
  footer .wrap { grid-template-columns: 1fr auto; align-items: end; }
}

@media (min-width: 1024px) {
  .top nav { display: flex; gap: 32px; }
  .top .call { display: none; }
  .top .book { display: inline-flex; min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }
  .pinned { display: none; }
  footer { padding-bottom: 48px; }
  .sign-2 span:first-child { white-space: nowrap; }
}
