/* SN Coches — graphite chrome, poster-noir. Big Shoulders + Barlow. */

@font-face {
  font-family: "Big Shoulders";
  src: url("../fonts/big-shoulders-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: oklch(0.17 0.006 262);          /* asphalte de nuit */
  --surface: oklch(0.22 0.008 262);
  --surface-2: oklch(0.26 0.01 262);
  --line: oklch(0.34 0.012 262);
  --ink: oklch(0.94 0.004 262);          /* chrome clair */
  --muted: oklch(0.76 0.01 262);
  --red: oklch(0.55 0.2 27);             /* rouge affiche */
  --red-deep: oklch(0.34 0.12 27);
  --red-text: oklch(0.67 0.19 25);   /* rouge lisible en petit corps sur fond sombre */
  --chrome: oklch(0.88 0.008 262);
  --display: "Big Shoulders", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --z-nav: 10;
  --z-float: 20;
  --z-toast: 30;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
h2 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.05;
}

/* ---------- boutons ---------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  padding: 0.85rem 1.6rem;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: oklch(0.6 0.21 27); transform: translateY(-2px); }
.btn-ghost {
  color: var(--chrome);
  border: 1px solid var(--line);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--chrome); transform: translateY(-2px); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.7rem clamp(1rem, 4vw, 2.6rem);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 0.15rem; }
.brand-sn {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--chrome);
}
.brand-coches {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav-links { display: flex; gap: 1.2rem; margin-inline: auto; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 0.8rem; }
#lang-en {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}
#lang-en:hover { color: var(--ink); border-color: var(--chrome); }
.btn-nav { padding: 0.55rem 1.1rem; font-size: 0.92rem; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav { justify-content: space-between; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 0%, oklch(0.24 0.02 27 / 0.55), transparent 60%),
    var(--bg);
}
.hero-inner {
  max-width: 72rem;
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 6.5rem) clamp(1rem, 4vw, 2.6rem) clamp(3rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-kicker {
  color: var(--red-text);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(3rem, 2rem + 5.6vw, 5.6rem);
  font-weight: 800;
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.hero-title .chrome { color: var(--chrome); display: block; }
.hero-title .red-line { color: var(--red); display: block; }
.hero-sub {
  color: var(--muted);
  max-width: 34rem;
  margin-top: 1.3rem;
  font-size: 1.1rem;
}
.hero-trust {
  margin-top: 1.4rem;
  font-size: 1.05rem;
  color: var(--ink);
}
.hero-trust .stars { color: var(--red); letter-spacing: 0.12em; margin-right: 0.4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }

.hero-poster { position: relative; justify-self: center; }
.hero-poster img {
  width: min(100%, 480px);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -18px oklch(0 0 0 / 0.65);
  transform: rotate(1.6deg);
}
.hero-poster figcaption {
  margin-top: 0.9rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-poster { justify-self: stretch; }
  .hero-poster img { margin-inline: auto; transform: rotate(0.8deg); }
}

/* ---------- sections communes ---------- */
.section-head {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.6rem);
  margin-bottom: 2.2rem;
}
.section-head p { color: var(--muted); max-width: 40rem; margin-top: 0.7rem; }
.section-head h2::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 3px;
  margin-top: 0.8rem;
  background: var(--red);
}

/* ---------- flotte ---------- */
.flotte { padding: clamp(3.5rem, 8vw, 6rem) 0 1rem; }
.cars {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.6rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
}
.car {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s;
}
.car:hover { transform: translateY(-4px); border-color: oklch(0.45 0.05 27); }
.car img { width: 100%; height: 200px; object-fit: cover; }
.car-wide { grid-column: span 2; }
.car-wide img { height: 260px; }
@media (max-width: 640px) {
  .car-wide { grid-column: auto; }
  .car-wide img { height: 200px; }
}
.car-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.car-cat {
  color: var(--red-text);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.car h3 {
  font-size: 1.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--chrome);
}
.car-cta {
  margin-top: auto;
  padding-top: 0.7rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-top: 1px dashed var(--line);
  transition: color 0.2s;
}
.car-cta::after { content: " ↗"; color: var(--red); }
.car-cta:hover { color: var(--red); }

/* ---------- livraison ---------- */
.livraison {
  margin: clamp(3.5rem, 8vw, 6rem) 0 0;
  background: var(--red-deep);
}
.livraison-inner {
  max-width: 72rem;
  margin-inline: auto;
  padding: clamp(2.8rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.6rem);
}
.livraison h2 { color: #fff; max-width: 30ch; }
.livraison p { color: oklch(0.92 0.02 27); max-width: 46rem; margin: 1rem 0 1.6rem; }
.livraison em { font-style: italic; color: #fff; }
.livraison .btn-red { background: #fff; color: var(--red-deep); }
.livraison .btn-red:hover { background: var(--chrome); }

/* ---------- réserver ---------- */
.reserver { padding: clamp(3.5rem, 8vw, 6rem) 0 0; }
.resa-form {
  max-width: 46rem;
  margin-inline: auto;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  margin-left: max(clamp(1rem, 4vw, 2.6rem), calc((100vw - 72rem) / 2));
  margin-right: clamp(1rem, 4vw, 2.6rem);
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  gap: 1.1rem;
}
.field { display: grid; gap: 0.35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--muted); }
.field input, .field select {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
  width: 100%;
  border-radius: 0;
}
.field input::placeholder { color: oklch(0.62 0.01 262); }
.field input:hover, .field select:hover { border-color: var(--chrome); }
.btn-submit { justify-self: start; }
.resa-alt { font-size: 0.92rem; color: var(--muted); }
.resa-alt a { color: var(--ink); }

/* ---------- avis ---------- */
.avis { padding: clamp(3.5rem, 8vw, 6rem) 0 0; }
.quotes {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.6rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.quote {
  border-top: 3px solid var(--red);
  background: var(--surface);
  padding: 1.6rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quote p { font-size: 1.18rem; line-height: 1.5; color: var(--ink); }
.quote strong { color: var(--chrome); }
.quote-gloss { color: var(--muted); font-size: 0.95rem; }
.quote cite { font-style: normal; color: var(--muted); font-size: 0.9rem; margin-top: auto; }

/* ---------- conditions ---------- */
.conditions {
  max-width: 72rem;
  margin: clamp(3.5rem, 8vw, 6rem) auto 0;
  padding-inline: clamp(1rem, 4vw, 2.6rem);
}
.conditions h2 { font-size: 1.9rem; }
.conditions ul { margin-top: 1rem; padding-left: 1.2rem; color: var(--muted); max-width: 60ch; }
.conditions li { margin-bottom: 0.4rem; }

/* ---------- infos ---------- */
.infos { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.infos-grid {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.6rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.4rem;
  align-items: stretch;
}
@media (max-width: 760px) { .infos-grid { grid-template-columns: 1fr; } }
.infos-bloc dl { margin: 1.4rem 0 1.6rem; display: grid; gap: 0.8rem; }
.infos-bloc dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red-text);
  font-weight: 700;
}
.infos-bloc dd { margin: 0.1rem 0 0; font-size: 1.12rem; }
.dd-note { color: var(--muted); font-size: 0.95rem; }
.info-tel { color: var(--ink); text-decoration: none; font-weight: 700; }
.info-tel:hover { color: var(--red); }
.map-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  text-decoration: none;
  min-height: 15rem;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, oklch(0.24 0.01 262 / 0.6) 14px 15px),
    var(--surface);
  transition: border-color 0.3s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.map-card:hover { border-color: var(--red); transform: translateY(-3px); }
.map-pin { color: var(--red); font-size: 2rem; line-height: 1; }
.map-label { font-weight: 700; font-size: 1.1rem; }
.map-hint { color: var(--muted); font-size: 0.92rem; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem clamp(1rem, 4vw, 2.6rem) 5.5rem;
  text-align: center;
  color: var(--muted);
}
.footer .brand-sn { font-size: 1.25rem; }
.footer .brand-coches { font-size: 0.9rem; }
.footer-fine { font-size: 0.85rem; margin-top: 0.5rem; }
.footer-fine a { color: var(--muted); }

/* ---------- WhatsApp flottant ---------- */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: var(--z-float);
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 24px -8px oklch(0 0 0 / 0.6);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.wa-float:hover { transform: scale(1.07); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translate(-50%, 140%);
  z-index: var(--z-toast);
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.75rem 1.3rem;
  font-size: 0.95rem;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- reveals (progressive, JS seulement) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .car, .map-card, .wa-float { transition: none; }
}
