/* Taxi Bouti, first version. Palette from their car and the Gare du Mans square. */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); }

:root {
  --carrosserie: #17191c;
  --ciel: #eef0f1;
  --verriere: #c9ced3;
  --pave: #67635c;
  --blanc: #fbfbfa;
  --libre: #1d7f4c;
  --libre-hover: #176a3f;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --radius: 4px;
  --gutter: 24px;
  --top-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.55;
  color: var(--carrosserie);
  background: var(--ciel);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, ul, dl, dd, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
.nw { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--libre); outline-offset: 3px; }

.wrap { max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons: the green is the "libre" light, kept for the call only */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 28px;
  border-radius: var(--radius);
  font-family: var(--text); font-weight: 600; font-size: 18px; line-height: 1.1;
  text-decoration: none; white-space: nowrap;
  transition: background-color .3s ease;
}
.btn--call { background: var(--libre); color: #fff; }
.btn--call::before { content: "Appeler le\00a0"; font-weight: 500; }
.btn--devis::before { content: "Devis au\00a0"; }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 16px; }
.btn--big { min-height: 64px; padding: 0 36px; font-size: 20px; }
@media (hover: hover) and (pointer: fine) {
  .btn--call:hover { background: var(--libre-hover); }
  .top__nav a:hover { color: var(--blanc); }
  .link-arrow:hover::after { transform: translateX(4px); }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  font-weight: 600; text-decoration: none;
  border-bottom: 2px solid currentColor;
  line-height: 1.2; padding-top: 2px;
}
.link-arrow::after { content: "→"; transition: transform .3s ease; }
.link-arrow--dark { color: var(--libre); min-height: 0; padding-bottom: 2px; }

/* Header */
.top { background: var(--carrosserie); color: var(--blanc); }
.top__in {
  max-width: none; margin: 0; height: var(--top-h);
  display: flex; align-items: center; gap: 32px;
  padding: 0 var(--gutter);
}
.brand {
  font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: .01em;
  text-transform: uppercase; text-decoration: none; line-height: 1;
}
.brand span { font-weight: 600; color: var(--verriere); margin-left: 6px; }
.top__nav { display: flex; gap: 28px; margin-left: auto; }
.top__nav a { text-decoration: none; font-weight: 500; font-size: 16px; color: var(--verriere); }

/* Hero: the car at the Gare du Mans, the name on the car's own black */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: calc(100vh - var(--top-h));
  background: var(--carrosserie); color: var(--blanc);
}
.hero__photo { order: 2; position: relative; overflow: hidden; }
.hero__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 100% 50%;
}
.hero__panel {
  order: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 64px 56px 72px max(var(--gutter), calc((100vw - 1400px) / 2 + var(--gutter)));
}
.hero__name {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(64px, 7.6vw, 124px); line-height: .86; letter-spacing: 0;
  margin-bottom: 32px;
}
.hero__lead {
  font-size: clamp(22px, 1.9vw, 28px); font-weight: 500; line-height: 1.25;
  max-width: 22ch; margin-bottom: 24px;
}
.hero__proof { font-size: 16px; color: var(--verriere); margin-bottom: 40px; }
.hero__proof span { white-space: nowrap; }
.hero__proof span:not(:last-child)::after { content: "·"; padding: 0 8px 0 10px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

/* Quotes */
.quotes { padding: 128px 0 112px; }
.quotes__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px 96px; align-items: end; }
.quote p { font-size: 22px; font-weight: 500; line-height: 1.35; }
.quote footer { margin-top: 12px; font-weight: 600; font-size: 16px; }
.quote footer span { font-weight: 400; color: var(--pave); margin-left: 8px; }
.quote--main p {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(34px, 3.7vw, 56px); line-height: 1.06;
}
.quote--main footer { margin-top: 24px; font-size: 18px; }
.quotes__side { display: grid; gap: 40px; padding-bottom: 6px; }

/* Trajets, set like the lines of a timetable */
.trajets { background: var(--blanc); padding: 112px 0; }
.trajets__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 96px; }
.trajets__head h2, .vehicules h2, .close h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 4.4vw, 64px); line-height: .98; letter-spacing: 0;
}
.trajets__head h2 { margin-bottom: 24px; }
.trajets__head p { max-width: 36ch; }
.trajets__head p { color: var(--pave); margin-bottom: 32px; }
.lines li {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 32px;
  padding: 24px 0; border-top: 1px solid var(--verriere);
}
.lines li:last-child { border-bottom: 1px solid var(--verriere); }
.lines h3 {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: 24px; line-height: 1.1; letter-spacing: .01em;
}
.lines p { max-width: 48ch; }

/* Vehicles, opens on the photo */
.vehicules { padding: 112px 0; }
.vehicules__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 96px; align-items: start; }
.vehicules__main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.vehicules__text h2 { margin: 8px 0 48px; }
.vehicules__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.car img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 16px; }
.car h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 24px; line-height: 1.1; margin-bottom: 8px; }
.car p { font-size: 17px; color: var(--pave); }

/* Radouan, opens on his name */
.who { background: var(--blanc); padding: 96px 0; }
.who__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 96px; align-items: center; }
.who__name {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(72px, 9vw, 144px); line-height: .85;
}
.who__lead { font-size: clamp(22px, 1.9vw, 28px); font-weight: 500; line-height: 1.35; max-width: 34ch; }

/* The departure board */
.horaires { padding: 112px 0; }
.horaires__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px 96px; align-items: start; }
.board { background: var(--carrosserie); color: var(--blanc); padding: 32px 40px 24px; border-radius: var(--radius); }
.board__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-bottom: 20px; border-bottom: 2px solid var(--blanc);
}
.board__head h2 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(40px, 4.4vw, 64px); line-height: .9; letter-spacing: .01em;
}
.board__clock {
  font-family: var(--display); font-weight: 600; font-size: clamp(28px, 2.6vw, 40px);
  font-variant-numeric: tabular-nums; color: var(--verriere); line-height: 1;
}
.board__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid #33373c;
}
.board__row:last-child { border-bottom: 0; }
.board__row dt {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(22px, 2vw, 30px); letter-spacing: .02em; color: var(--verriere);
}
.board__row dd {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(26px, 2.6vw, 40px); line-height: 1.1;
  font-variant-numeric: tabular-nums; text-align: right;
}
.board__row dd span { display: inline-block; }
.board__row dd span + span { margin-left: 16px; }
.board__row dd .off { color: var(--verriere); }
.board__row.is-today dt { color: var(--blanc); }
.board__row.is-today dt::after {
  content: "Aujourd'hui"; margin-left: 12px; padding: 2px 8px 1px;
  font-size: .6em; letter-spacing: .04em; vertical-align: .2em;
  background: var(--blanc); color: var(--carrosserie); border-radius: var(--radius);
}

.info { display: grid; gap: 40px; padding-top: 8px; }
.info h3 {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: 20px; letter-spacing: .02em; color: var(--pave); margin-bottom: 8px;
}
.info p { font-size: 20px; line-height: 1.45; }
.info p + p { margin-top: 4px; }
.info p + .link-arrow { margin-top: 12px; }
.info .tel { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1.1; text-decoration: none; }

/* Close and footer */
.close { background: var(--carrosserie); color: var(--blanc); padding: 112px 0 96px; }
.close__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 48px; }
.close h2 { font-size: clamp(48px, 6vw, 96px); }

.foot { background: var(--carrosserie); color: var(--verriere); font-size: 15px; padding: 0 0 48px; }
.foot__in {
  display: grid; grid-template-columns: 1fr auto auto; gap: 24px 48px; align-items: end;
  padding-top: 32px; border-top: 1px solid #33373c;
}
.dock.is-hidden { transform: translateY(110%); }
.foot__id strong { color: var(--blanc); font-weight: 600; }
.foot a { color: var(--verriere); }
.foot__legal { display: flex; gap: 24px; flex-wrap: wrap; }
.foot__made { color: #8e9399; }

/* The pinned call, phone only */
.dock { display: none; }

/* Reveal */
.js [data-reveal] > .wrap > * { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.js [data-reveal].is-in > .wrap > * { opacity: 1; transform: none; }
.js [data-reveal].is-in > .wrap > *:nth-child(2) { transition-delay: .08s; }
.js [data-reveal].is-in > .wrap > *:nth-child(3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] > .wrap > * { opacity: 1; transform: none; transition: none; }
  .btn, .link-arrow::after, .dock { transition: none; }
}

/* Large screens: the name stacked like the sign on the roof */
@media (min-width: 901px) {
  .hero__name { font-size: clamp(96px, min(13vw, 22vh), 208px); line-height: .84; margin-bottom: 40px; }
  .hero__name span { display: block; }
}

/* Tablet */
@media (max-width: 1080px) {
  .top__nav { display: none; }
  .top__call { margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero__panel { padding: 48px 32px 56px var(--gutter); }
  .quotes__grid, .trajets__grid, .vehicules__grid, .who__grid, .horaires__grid { grid-template-columns: minmax(0, 1fr); }
  .vehicules__main img { aspect-ratio: 4 / 3; object-position: 50% 62%; }
}

/* Narrow tablets: the photo on top, as on the phone, so the car is never cut */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .hero__photo { order: 1; min-height: 44vh; }
  .hero__panel { order: 2; padding: 40px var(--gutter) 48px; }
  .hero__name { font-size: clamp(56px, 13vw, 112px); }
  .foot__in { grid-template-columns: minmax(0, 1fr) auto; }
  .foot__made { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 720px) {
  :root { --gutter: 16px; --top-h: 56px; }
  body { font-size: 17px; }
  .foot { padding-bottom: 112px; }
  .top__call { display: none; }
  .brand { font-size: 22px; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: calc(100svh - var(--top-h) - 80px);
  }
  .hero__photo { order: 1; min-height: 38svh; }
  .hero__panel { order: 2; padding: 28px var(--gutter) 32px; justify-content: flex-start; }
  .hero__name { font-size: clamp(56px, 18.6vw, 80px); margin-bottom: 16px; }
  .hero__lead { font-size: 22px; margin-bottom: 16px; }
  .hero__proof { font-size: 15px; margin-bottom: 24px; }
  .hero__actions .btn { display: none; }

  .quotes { padding: 80px 0 72px; }
  .quotes__grid { gap: 48px; }
  .trajets, .vehicules, .horaires { padding: 80px 0; }
  .who { padding: 72px 0; }
  .lines li { grid-template-columns: minmax(0, 1fr); padding: 20px 0; }
  .lines h3 { font-size: 22px; }
  .vehicules__text h2 { margin-bottom: 32px; }
  .vehicules__pair { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .board { padding: 24px 20px 12px; margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
  .board__row { padding: 12px 0; }
  .board__row.is-today dt::after { margin-left: 8px; }
  .info .tel { font-size: 36px; }
  .close { padding: 80px 0 72px; }
  .close h2 { font-size: 40px; }
  .close .btn--big { width: 100%; }
  .foot__in { grid-template-columns: minmax(0, 1fr); align-items: start; }

  .dock {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: var(--carrosserie);
    transition: transform .3s ease;
  }
  .btn--dock { width: 100%; min-height: 56px; }
}
