/* V2 Rent Car — showroom de jour : gris argent, bandeau carbone, rouge enseigne.
   Chakra Petch + Work Sans. */

@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/chakra-petch-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/chakra-petch-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/chakra-petch-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --silver: oklch(0.95 0.003 250);        /* rue claire */
  --silver-2: oklch(0.91 0.005 250);
  --carbon: oklch(0.2 0.008 250);         /* l'enseigne */
  --carbon-2: oklch(0.26 0.01 250);
  --ink: oklch(0.24 0.01 250);
  --muted: oklch(0.45 0.012 250);
  --line: oklch(0.84 0.008 250);
  --red: oklch(0.55 0.21 25);             /* rouge V2 RENT */
  --red-dark: oklch(0.47 0.19 25);
  --on-carbon: oklch(0.94 0.004 250);
  --display: "Chakra Petch", "Trebuchet MS", sans-serif;
  --body: "Work Sans", 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(--silver);
  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(1.9rem, 1.3rem + 2.6vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* ---------- boutons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  padding: 0.85rem 1.6rem;
  border-radius: 0.25rem;
  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: var(--red-dark); transform: translateY(-2px); }
.btn-ghost { border: 2px solid var(--carbon); color: var(--carbon); background: transparent; }
.btn-ghost:hover { background: oklch(0.2 0.008 250 / 0.07); transform: translateY(-2px); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* ---------- bandeau enseigne ---------- */
.marquee {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.75rem clamp(1rem, 4vw, 2.6rem);
  background: var(--carbon);
  color: var(--on-carbon);
  border-bottom: 3px solid var(--red);
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--red);
  text-decoration: none;
}
.brand span { color: var(--on-carbon); }
.nav-links { display: flex; gap: 1.2rem; margin-inline: auto; }
.nav-links a {
  text-decoration: none;
  color: oklch(0.78 0.008 250);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--on-carbon); }
.nav-actions { display: flex; align-items: center; gap: 0.8rem; }
#lang-en {
  background: none;
  border: 1px solid oklch(0.45 0.01 250);
  border-radius: 0.25rem;
  color: oklch(0.78 0.008 250);
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.32rem 0.68rem;
  cursor: pointer;
}
#lang-en:hover { color: var(--on-carbon); border-color: var(--on-carbon); }
.btn-nav { padding: 0.5rem 1.05rem; font-size: 0.92rem; }
@media (max-width: 800px) {
  .nav-links { display: none; }
  .marquee { justify-content: space-between; }
}

/* ---------- hero : cadre showroom ---------- */
.hero {
  max-width: 74rem;
  margin-inline: auto;
  padding: clamp(2.6rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.6rem) clamp(3rem, 7vw, 5rem);
}
.hero-copy { max-width: 46rem; }
.hero h1 {
  font-size: clamp(2.3rem, 1.4rem + 4vw, 4.3rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}
.hero h1 .hl { color: var(--red); }
.hero-sub { color: var(--muted); margin-top: 1.2rem; font-size: 1.12rem; max-width: 38rem; }
.hero-trust { margin-top: 1.3rem; font-size: 1.05rem; }
.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-frame { margin-top: clamp(2rem, 5vw, 3.2rem); }
.hero-frame img {
  width: 100%;
  border-radius: 0.4rem;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -20px oklch(0.2 0.02 250 / 0.35);
}
.hero-frame figcaption { margin-top: 0.8rem; color: var(--muted); font-size: 0.9rem; }

/* ---------- sections communes ---------- */
.section-head {
  max-width: 74rem;
  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; }
.section-head h2::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.45em;
  background: var(--red);
  transform: skewX(-12deg);
}

/* ---------- flotte ---------- */
.flotte { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.cars {
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.6rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.car {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}
.car:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -16px oklch(0.2 0.02 250 / 0.35); }
.car img { width: 100%; height: 205px; object-fit: cover; }
.car-body { padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.car-cat {
  color: var(--red);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.car h3 { font-size: 1.3rem; font-weight: 600; }
.car-cta {
  margin-top: auto;
  padding-top: 0.8rem;
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  color: var(--carbon);
  border-top: 1px solid var(--silver-2);
}
.car-cta::after { content: " →"; color: var(--red); }
.car-cta:hover { color: var(--red); }

.parc {
  max-width: 74rem;
  margin: 2.6rem auto 0;
  padding-inline: clamp(1rem, 4vw, 2.6rem);
}
.parc img { border-radius: 0.4rem; border: 1px solid var(--line); }
.parc figcaption { margin-top: 0.7rem; color: var(--muted); font-size: 0.92rem; }

/* ---------- aéroport (carbone) ---------- */
.aeroport {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  background: var(--carbon);
  color: var(--on-carbon);
}
.aeroport-inner {
  max-width: 74rem;
  margin-inline: auto;
  padding: clamp(2.8rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.6rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
}
@media (max-width: 820px) { .aeroport-inner { grid-template-columns: 1fr; } }
.aeroport-photo img { border-radius: 0.4rem; border: 1px solid var(--carbon-2); }
.aeroport-copy h2 { color: #fff; }
.aeroport-copy h2::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.45em;
  background: var(--red);
  transform: skewX(-12deg);
}
.aeroport-copy p { color: oklch(0.8 0.008 250); margin: 1rem 0 1.6rem; max-width: 44rem; }

/* ---------- réserver ---------- */
.reserver { padding-top: clamp(3.5rem, 8vw, 6rem); }
.resa-form {
  max-width: 46rem;
  margin-inline: clamp(1rem, 4vw, 2.6rem);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 940px) { .resa-form { margin-left: calc((100vw - 74rem) / 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: 600; font-size: 0.92rem; color: var(--carbon); }
.field input, .field select {
  background: var(--silver);
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
  width: 100%;
}
.field input::placeholder { color: var(--muted); }
.field input:hover, .field select:hover { border-color: var(--carbon); }
.btn-submit { justify-self: start; }
.resa-alt { font-size: 0.92rem; color: var(--muted); }
.resa-alt a { color: var(--carbon); font-weight: 600; }

/* ---------- avis ---------- */
.avis { padding-top: clamp(3.5rem, 8vw, 6rem); }
.quotes {
  max-width: 74rem;
  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 {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  padding: 1.6rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.quote p { font-size: 1.16rem; line-height: 1.55; }
.quote p[dir="rtl"] { font-size: 1.35rem; }
.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: 74rem;
  margin: clamp(3.5rem, 8vw, 6rem) auto 0;
  padding-inline: clamp(1rem, 4vw, 2.6rem);
}
.conditions h2 { font-size: 1.5rem; }
.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: 74rem;
  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-family: var(--display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  font-weight: 600;
}
.infos-bloc dd { margin: 0.1rem 0 0; font-size: 1.12rem; }
.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);
  border-radius: 0.4rem;
  background:
    linear-gradient(oklch(0.91 0.005 250 / 0.55) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.91 0.005 250 / 0.55) 1px, transparent 1px),
    #fff;
  background-size: 26px 26px, 26px 26px, auto;
  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-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.map-hint { color: var(--muted); font-size: 0.92rem; }

/* ---------- footer ---------- */
.footer {
  background: var(--carbon);
  color: oklch(0.78 0.008 250);
  padding: 2.2rem clamp(1rem, 4vw, 2.6rem) 5.5rem;
  text-align: center;
}
.footer-brand { font-family: var(--display); font-weight: 700; color: var(--red); font-size: 1.1rem; }
.footer-brand span { color: var(--on-carbon); }
.footer-fine { font-size: 0.85rem; margin-top: 0.5rem; }
.footer-fine a { color: oklch(0.78 0.008 250); }

/* ---------- 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.4);
  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(--carbon);
  color: var(--on-carbon);
  border-radius: 0.3rem;
  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 ---------- */
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; }
}
