/* =============================================================
   CG PAINT — Feuille de style principale
   Site statique — aucune dépendance, aucun build.
   Sommaire :
   1. Réglages de base & tokens (variables CSS)
   2. Reset léger & éléments HTML
   3. Utilitaires de mise en page
   4. Boutons
   5. En-tête + navigation (desktop & mobile)
   6. Fil d'Ariane
   7. Sections : hero, services, features, étapes, stats, zones
   8. FAQ (accordéon natif <details>)
   9. Contact & formulaire
   10. Pied de page
   11. Bouton « retour en haut »
   12. Contenu éditorial (pages légales) : .prose
   13. Animations au défilement + accessibilité mouvement réduit
   14. Media queries
   ============================================================= */

/* 1. TOKENS ------------------------------------------------------ */
:root {
  --bg: #0b0c10;
  --surface: #121418;
  --surface-2: #171a20;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #e8edf4;
  --muted: #9fabbb;
  --heading: #ffffff;

  --brand-1: #ffa500;
  --brand-2: #ff4500;
  --brand-grad: linear-gradient(135deg, #ffa500 0%, #ff4500 100%);
  --brand-soft: rgba(255, 90, 20, 0.12);

  --focus: #ffb733;

  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-title: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1200px;
  --radius: 14px;
  --radius-sm: 8px;

  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --header-h: 80px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. RESET & BASE --------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--heading);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-1); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

strong { color: #fff; font-weight: 700; }

hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 2.5rem 0;
}

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

::selection { background: var(--brand-2); color: #fff; }

/* Lien d'évitement (accessibilité clavier) */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 1000;
  background: #fff;
  color: #000;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* 3. LAYOUT ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 0.6rem + 2.5vw, 2rem);
}

.section { padding-block: clamp(3.5rem, 2rem + 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 5vw, 4.5rem); }
.section--surface { background: var(--surface); }
.section--line { border-top: 1px solid var(--border); }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(2rem, 1rem + 4vw, 3.5rem);
  text-align: center;
}
.section-head--left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  color: var(--text);
}

.text-muted { color: var(--muted); }
.text-gradient {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.grid { display: grid; gap: clamp(1rem, 0.6rem + 1.5vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  gap: clamp(2rem, 1rem + 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr 1fr;
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Panneau graphique de marque (quand aucune photo n'est disponible) */
.media-panel {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 2.5rem;
  background:
    radial-gradient(600px 300px at 70% 0%, rgba(255, 90, 20, 0.20), transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--bg));
  position: relative;
  overflow: hidden;
}
.media-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
}
.media-panel svg {
  position: relative;
  width: clamp(90px, 26%, 150px);
  height: auto;
  stroke: var(--brand-1);
  filter: drop-shadow(0 8px 24px rgba(255, 69, 0, 0.35));
}

/* 4. BUTTONS ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), filter 0.25s var(--ease);
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(255, 69, 0, 0.6);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -12px rgba(255, 69, 0, 0.75);
  filter: brightness(1.06);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--brand-2);
  color: var(--brand-1);
  transform: translateY(-2px);
}

.btn--block { display: flex; width: 100%; }
.btn--lg { min-height: 54px; padding: 1.1rem 2rem; font-size: 0.85rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.btn-row--center { justify-content: center; }

/* 5. HEADER / NAV --------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 12, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(11, 12, 16, 0.92);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; opacity: 0.9; }
.brand img, .brand svg { display: block; height: 34px; width: auto; }
.brand__word {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav { display: flex; align-items: center; gap: clamp(1.2rem, 0.5rem + 2vw, 2.75rem); }
.main-nav a {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.25s var(--ease);
  padding-block: 0.4rem;
}
.main-nav a:hover { color: var(--brand-1); text-decoration: none; }
.main-nav a[aria-current="page"] {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; left: 0; }
.nav-toggle span::after { position: absolute; top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
  z-index: 90;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* 6. BREADCRUMB ---------------------------------------------- */
.breadcrumb {
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 0.5rem;
  font-size: 0.85rem;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}
.breadcrumb li { display: flex; gap: 0.5rem; align-items: center; margin: 0; }
.breadcrumb li + li::before { content: "/"; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-1); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* 7. SECTIONS ---------------------------------------------------- */

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 78% -10%, rgba(255, 90, 20, 0.20), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(255, 165, 0, 0.12), transparent 55%),
    linear-gradient(180deg, #0b0c10 0%, #0e1014 60%, #0b0c10 100%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
}

/* Voiture en fond de la section hero (accueil) */
.hero__car {
  position: absolute;
  right: -2%;
  bottom: -2%;
  width: min(72%, 1040px);
  aspect-ratio: 1200 / 660;
  z-index: -1;
  background: url("/assets/img/voiture.webp") right bottom / contain no-repeat;
  opacity: 0.95;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(160% 160% at 80% 85%, #000 48%, transparent 92%);
  mask-image: radial-gradient(160% 160% at 80% 85%, #000 48%, transparent 92%);
}

.hero__inner { max-width: 760px; }
.hero h1 { margin-bottom: 1rem; }
.hero .lead { max-width: 46ch; margin-bottom: 2rem; color: #d7deea; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero__scroll::before {
  content: "";
  width: 2px;
  height: 42px;
  background: var(--brand-grad);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--brand-grad);
  transition: width 0.4s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.card:hover::after { width: 100%; }
.card h3 { font-style: italic; }
.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  border: 1px solid var(--border);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 26px; height: 26px; stroke: var(--brand-1); }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-1);
}
.card__link:hover { text-decoration: none; gap: 0.7rem; }
.card--link { display: flex; flex-direction: column; }

/* Feature / check list */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin: 0;
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--brand-grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / 80% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / 80% no-repeat;
}

/* Steps */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem 4.5rem;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-title);
  font-weight: 800;
  color: #fff;
  background: var(--brand-grad);
}
.step h3 { margin-bottom: 0.35rem; }
.step p { color: var(--muted); margin: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); text-align: center; }
.stat__num { font-family: var(--font-title); font-weight: 800; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { color: var(--muted); font-size: 0.9rem; margin-top: 0.35rem; }

/* Zones list */
.zone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; list-style: none; padding: 0; margin: 0; }
.zone-grid li {
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
}
.zone-grid li::before {
  content: "";
  width: 16px; height: 16px; flex-shrink: 0;
  background: var(--brand-grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Callout / note (placeholders à compléter) */
.note {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.9rem;
}

/* CTA band */
.cta-band {
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(255, 90, 20, 0.18), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(2rem, 1.2rem + 4vw, 3.5rem);
  text-align: center;
}

/* 8. FAQ ------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 0.75rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 1.15rem 3rem 1.15rem 1.25rem;
  font-family: var(--font-title);
  font-weight: 700;
  color: #fff;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--brand-1);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 1.25rem 1.25rem; color: var(--muted); }
.faq details > div p { margin-bottom: 0.75rem; }

/* 9. CONTACT & FORM ----------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 3.5rem); align-items: start; }

.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.25rem; }
.contact-list li { margin: 0; display: flex; gap: 1rem; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; stroke: var(--brand-1); flex-shrink: 0; margin-top: 0.2rem; }
.contact-list .label { display: block; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem; }
.contact-list a { color: #fff; font-family: var(--font-title); font-weight: 700; }
.contact-list a:hover { color: var(--brand-1); text-decoration: none; }

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.field .req { color: var(--brand-2); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.2);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: #ef4444; }
.field .error { color: #fda4a4; font-size: 0.82rem; min-height: 1em; }

.consent { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.88rem; color: var(--muted); }
.consent input { width: 1.1rem; height: 1.1rem; margin-top: 0.25rem; flex-shrink: 0; accent-color: var(--brand-2); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  display: none;
}
.form-status.is-ok { display: block; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.4); color: #bbf7d0; }
.form-status.is-error { display: block; background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.4); color: #fecaca; }

.map-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.3) contrast(1.05); }

/* 10. FOOTER ------------------------------------------------- */
.site-footer {
  background: #06070a;
  border-top: 1px solid var(--border);
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem) 1.5rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(1.5rem, 1rem + 3vw, 3rem);
  margin-bottom: 2.5rem;
}
.site-footer h4 {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.6rem; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--brand-1); text-decoration: none; }
.footer-brand p { color: var(--muted); max-width: 34ch; margin-top: 1rem; }
.footer-brand .brand__word { font-size: 1.25rem; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.8rem;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--brand-1); }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text);
}
.footer-social svg { width: 17px; height: 17px; fill: currentColor; }
.footer-social a:hover { border-color: var(--brand-2); color: var(--brand-1); }

/* 11. BACK TO TOP ------------------------------------------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 0.5rem + 1.5vw, 2rem);
  bottom: clamp(1rem, 0.5rem + 1.5vw, 2rem);
  z-index: 80;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { filter: brightness(1.1); transform: translateY(-2px); }
.to-top svg { width: 20px; height: 20px; }

/* 12. PROSE (pages légales) -------------------------------- */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul { padding-left: 1.25rem; }
.prose a { text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.92rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 0.65rem 0.85rem; text-align: left; vertical-align: top; }
.prose th { background: var(--surface); }

.page-header {
  padding-top: calc(var(--header-h) + clamp(2rem, 1rem + 4vw, 4rem));
  padding-bottom: clamp(1.5rem, 1rem + 3vw, 3rem);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-header .container { max-width: 780px; }
.page-header p { color: var(--muted); font-size: 1.1rem; margin-top: 0.5rem; }

/* 13. REVEAL + REDUCED MOTION ----------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* 14. MEDIA QUERIES -------------------------------------- */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }

  .nav-toggle { display: inline-flex; }

  /* Hero mobile : texte à mi-hauteur, image dégagée en bas */
  .hero { align-items: flex-start; min-height: 88vh; }
  .hero .container { padding-top: clamp(1.5rem, 11vh, 6rem); }
  .hero .btn-row { margin-bottom: 0; }

  .hero__car {
    width: 150%;
    right: -25%;
    bottom: 0;
    height: 56%;
    aspect-ratio: auto;
    background-position: center bottom;
    opacity: 0.7;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 42%);
    mask-image: linear-gradient(to top, transparent 0%, #000 42%);
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    height: 100vh;
    height: 100dvh;
    width: min(320px, 84vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.25rem;
    padding: calc(var(--header-h) + 1.5rem) 1.5rem 2rem;
    background: var(--surface);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
    z-index: 95;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a {
    font-size: 0.95rem;
    padding: 0.9rem 0.25rem;
    border-bottom: 1px solid var(--border);
  }
  .main-nav .btn { margin-top: 1rem; }

  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .media-frame { order: -1; }
}

@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: flex-start; }
  .btn-row .btn { width: 100%; }
}

@media (min-width: 721px) and (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
