@font-face {
  font-family: "Outfit";
  src: url("/fonts/Outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/DMSans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --ink: #1e1b4b;
  --ink-soft: #4a4770;
  --violet: #7c3aed;
  --violet-deep: #5b21b6;
  --lavender: #eee8ff;
  --paper: #ffffff;
  --line: #e2ddf2;
  --display: "Outfit", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.1;
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: var(--violet-deep);
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 12px;
  background: var(--paper);
  padding: 8px 12px;
  z-index: 10;
}

/* Header and the plate wordmark */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.plate {
  flex-shrink: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: stretch;
  height: 40px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
}
.plate-band {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 22px;
  padding-bottom: 4px;
  background: var(--violet);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}
.plate-text {
  display: flex;
  align-items: center;
  padding: 0 12px 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 0.98rem;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--violet-deep);
  text-decoration: underline;
}

/* Hero */

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  padding-top: clamp(40px, 8vw, 96px);
  padding-bottom: clamp(56px, 9vw, 112px);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  max-width: 13ch;
}

.hero-lead {
  margin-top: 24px;
  max-width: 34rem;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}

.button {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none;
}
.button:hover {
  background: var(--violet-deep);
}

.availability {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* The example request: the one moving part of the page */

.request {
  margin: 0;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--lavender);
  overflow: hidden;
}
.request-head {
  padding: 20px 22px 18px;
  border-bottom: 2px solid var(--ink);
}
.request-tag {
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.request-title {
  margin-top: 6px;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
}
.request-meta {
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.quotes {
  list-style: none;
  margin: 0;
  padding: 8px 22px 6px;
}
.quote {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.quote:last-child {
  border-bottom: 0;
}
.quote-where {
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.quote-price {
  white-space: nowrap;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.quote.is-chosen .quote-price {
  color: var(--violet-deep);
}
.chosen {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  vertical-align: 1px;
}
.request-foot {
  padding: 14px 22px;
  background: var(--lavender);
  font-size: 0.92rem;
}

@media (prefers-reduced-motion: no-preference) {
  .quote {
    opacity: 0;
    transform: translateY(6px);
    animation: quote-in 420ms ease-out forwards;
  }
  .quote:nth-child(1) { animation-delay: 500ms; }
  .quote:nth-child(2) { animation-delay: 1100ms; }
  .quote:nth-child(3) { animation-delay: 1700ms; }
  @keyframes quote-in {
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* Sections */

.section {
  padding: clamp(56px, 9vw, 104px) 0;
}
.section h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  max-width: 20ch;
}
.section-intro {
  margin-top: 16px;
  max-width: 36rem;
  color: var(--ink-soft);
}

.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  counter-reset: step;
}
.step {
  counter-increment: step;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}
.step::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1;
  color: var(--violet);
}
.step h3 {
  margin-top: 14px;
  font-size: 1.2rem;
  font-weight: 600;
}
.step p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.garages {
  background: var(--lavender);
}
.garages .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.garages ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.garages li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.garages li:first-child {
  padding-top: 0;
}
.garages li strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
}
.garages li span {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
}
.garages .note {
  margin-top: 24px;
}

.contact .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 48px;
}
.contact-mail {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 28px;
  padding-bottom: 36px;
}
.site-footer nav {
  display: flex;
  gap: 24px;
}
.site-footer a {
  color: var(--ink-soft);
}

/* Mentions légales */

.legal {
  padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
}
.legal h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
}
.legal-intro {
  margin-top: 14px;
  color: var(--ink-soft);
  max-width: 40rem;
}
.legal h2 {
  margin-top: 48px;
  font-size: 1.45rem;
  font-weight: 600;
}
.facts {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 10px 24px;
  margin: 18px 0 0;
  max-width: 48rem;
}
.facts dt {
  color: var(--ink-soft);
}
.facts dd {
  margin: 0;
}
.legal p.prose {
  margin-top: 14px;
  max-width: 42rem;
}

@media (max-width: 860px) {
  .hero .wrap,
  .garages .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-nav {
    gap: 18px;
    font-size: 0.92rem;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .facts dd {
    margin-bottom: 12px;
  }
}

@media (max-width: 640px) {
  .site-nav a.nav-steps {
    display: none;
  }
}
