/* Rent Car Ami23 — or sur noir, bannière peinte. Alfa Slab One + Karla. */

@font-face {
  font-family: "Alfa Slab One";
  src: url("../fonts/alfa-slab-one.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("../fonts/karla-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --gold: oklch(0.8 0.16 84);            /* l'or des bannières */
  --gold-deep: oklch(0.68 0.15 78);
  --gold-text: oklch(0.5 0.11 78);   /* ocre lisible en petit corps sur blanc */
  --black: oklch(0.17 0.01 84);
  --black-soft: oklch(0.23 0.012 84);
  --paper: oklch(0.985 0 0);             /* blanc franc, zéro teinte */
  --ink: oklch(0.2 0.01 84);
  --muted: oklch(0.45 0.015 84);
  --muted-on-black: oklch(0.8 0.02 84);
  --line: oklch(0.88 0.01 84);
  --display: "Alfa Slab One", "Georgia", serif;
  --body: "Karla", 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(--paper);
  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); font-weight: 400; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); line-height: 1.12; }

/* ---------- 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;
  border-radius: 0.4rem;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s, color 0.25s;
}
.btn-black { background: var(--black); color: var(--gold); }
.btn-black:hover { background: var(--black-soft); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--black); color: var(--black); background: transparent; }
.btn-outline:hover { background: oklch(0.17 0.01 84 / 0.08); transform: translateY(-2px); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 2px;
}

/* ---------- 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(--gold) 94%, white);
  border-bottom: 3px solid var(--black);
}
.brand {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--black);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand span { color: var(--paper); text-shadow: 0 1px 0 var(--black), 0 -1px 0 var(--black), 1px 0 0 var(--black), -1px 0 0 var(--black); }
.nav-links { display: flex; gap: 1.2rem; margin-inline: auto; }
.nav-links a {
  text-decoration: none;
  color: var(--black);
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 0.8rem; }
#lang-en {
  background: none;
  border: 2px solid var(--black);
  border-radius: 0.35rem;
  color: var(--black);
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
}
.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 : panneau or / photo devanture ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  background: var(--gold);
  position: relative;
}
.hero-copy {
  padding: clamp(3rem, 7vw, 6rem) clamp(1.2rem, 4vw, 3.2rem) clamp(3.5rem, 8vw, 6.5rem);
  align-self: center;
  max-width: 42rem;
  justify-self: end;
}
.hero h1 {
  font-size: clamp(2.4rem, 1.5rem + 4.2vw, 4.6rem);
  line-height: 1.04;
  color: var(--black);
}
.hero h1 .scratch { color: var(--paper); text-shadow: 0 2px 0 var(--black), 0 -2px 0 var(--black), 2px 0 0 var(--black), -2px 0 0 var(--black), 2px 2px 0 var(--black), -2px 2px 0 var(--black), 2px -2px 0 var(--black), -2px -2px 0 var(--black); }
.hero-sub {
  margin-top: 1.2rem;
  font-size: 1.12rem;
  color: oklch(0.28 0.02 84);
  max-width: 32rem;
}
.hero-trust { margin-top: 1.3rem; font-size: 1.05rem; color: var(--black); }
.hero-trust .stars { letter-spacing: 0.12em; margin-right: 0.4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }
.hero-photo { position: relative; min-height: 100%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.ruche {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 14px;
  background:
    repeating-linear-gradient(-45deg, var(--black) 0 12px, var(--gold) 12px 24px);
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { justify-self: start; }
  .hero-photo { aspect-ratio: 4 / 3; min-height: 0; }
}

/* ---------- sections communes ---------- */
.section-head {
  max-width: 70rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.6rem);
  margin-bottom: 2.2rem;
}
.section-head p { color: var(--muted); max-width: 42rem; margin-top: 0.7rem; }

/* ---------- flotte ---------- */
.flotte { padding: clamp(3.5rem, 8vw, 6rem) 0 0; }
.cars {
  max-width: 70rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.6rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 1.4rem;
}
.car {
  border: 2px solid var(--black);
  border-radius: 0.6rem;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 4px 0 var(--gold);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.car:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--gold); }
.car img { width: 100%; height: 240px; object-fit: cover; }
.car-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.car-cat {
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gold-text);
}
.car h3 { font-size: 1.25rem; color: var(--black); }
.car-cta {
  margin-top: auto;
  padding-top: 0.8rem;
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--black);
}
.car-cta::after { content: " →"; }
.car-cta:hover { text-decoration: underline; text-underline-offset: 3px; }

.parc {
  max-width: 70rem;
  margin: 2.6rem auto 0;
  padding-inline: clamp(1rem, 4vw, 2.6rem);
}
.parc img { border-radius: 0.6rem; border: 2px solid var(--black); }
.parc figcaption { margin-top: 0.7rem; color: var(--muted); font-size: 0.92rem; }

/* ---------- livraison (noir) ---------- */
.livraison {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  background: var(--black);
  color: var(--paper);
}
.livraison-inner {
  max-width: 70rem;
  margin-inline: auto;
  padding: clamp(2.8rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.6rem);
}
.livraison h2 { color: var(--gold); max-width: 24ch; }
.livraison p { color: var(--muted-on-black); max-width: 46rem; margin: 1rem 0 1.6rem; }

/* ---------- réserver ---------- */
.reserver { padding: clamp(3.5rem, 8vw, 6rem) 0 0; }
.resa-form {
  max-width: 46rem;
  margin-inline: clamp(1rem, 4vw, 2.6rem);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  background: var(--gold);
  border-radius: 0.8rem;
  border: 2px solid var(--black);
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 900px) { .resa-form { margin-left: calc((100vw - 70rem) / 2 + clamp(1rem, 4vw, 2.6rem)); } }
.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: 800; font-size: 0.92rem; color: var(--black); }
.field input, .field select {
  background: var(--paper);
  border: 2px solid var(--black);
  border-radius: 0.4rem;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
  width: 100%;
}
.field input::placeholder { color: var(--muted); }
.btn-submit { justify-self: start; }
.resa-alt { font-size: 0.95rem; color: oklch(0.28 0.02 84); }
.resa-alt a { color: var(--black); font-weight: 700; }

/* ---------- avis (noir) ---------- */
.avis {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  background: var(--black);
  color: var(--paper);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(3.2rem, 7vw, 5rem);
}
.avis .section-head h2 { color: var(--gold); }
.avis .section-head p { color: var(--muted-on-black); }
.avis .section-head strong { color: var(--paper); }
.quotes {
  max-width: 70rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.6rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
}
.quote {
  background: var(--black-soft);
  border-radius: 0.6rem;
  padding: 1.6rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quote p { font-size: 1.16rem; line-height: 1.55; }
.quote-lead p { font-size: 1.3rem; }
.quote strong { color: var(--gold); }
.quote-gloss { color: var(--muted-on-black); font-size: 0.95rem; }
.quote cite { font-style: normal; color: var(--muted-on-black); font-size: 0.9rem; margin-top: auto; }

/* ---------- conditions ---------- */
.conditions {
  max-width: 70rem;
  margin: clamp(3.5rem, 8vw, 6rem) auto 0;
  padding-inline: clamp(1rem, 4vw, 2.6rem);
}
.conditions h2 { font-size: 1.6rem; }
.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: 70rem;
  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(--gold-text);
  font-weight: 800;
}
.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: 800; }
.info-tel:hover { color: var(--gold-text); }
.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: 2px solid var(--black);
  border-radius: 0.6rem;
  background:
    repeating-linear-gradient(-45deg, transparent 0 16px, oklch(0.8 0.16 84 / 0.16) 16px 32px),
    var(--paper);
  transition: box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.map-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--gold); }
.map-pin { color: var(--gold-deep); font-size: 2rem; line-height: 1; }
.map-label { font-weight: 800; font-size: 1.1rem; }
.map-hint { color: var(--muted); font-size: 0.92rem; }

/* ---------- footer ---------- */
.footer {
  background: var(--black);
  color: var(--muted-on-black);
  padding: 2.2rem clamp(1rem, 4vw, 2.6rem) 5.5rem;
  text-align: center;
}
.footer-brand { font-family: var(--display); color: var(--gold); font-size: 1.05rem; }
.footer-brand span { color: var(--paper); }
.footer-fine { font-size: 0.85rem; margin-top: 0.5rem; }
.footer-fine a { color: var(--muted-on-black); }

/* ---------- 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.45);
  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(--black);
  color: var(--gold);
  border-radius: 0.5rem;
  padding: 0.75rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 700;
  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 ---------- */
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; }
}
