/* ============================================================
   Dablal Cars — Essaouira  |  Design system
   "Atlantique éditorial" — océan profond · sable/argan · blanc os
   Dark + Light via [data-theme], tokens CSS uniquement.
   ============================================================ */

:root {
  /* — Palette de marque (indépendante du thème) — */
  --ocean-900: #06262b;
  --ocean-700: #0d4751;
  --ocean-600: #0e5a63;
  --ocean-500: #16767f;
  --ocean-300: #6fb3b8;
  --argan-600: #b9772a;
  --argan-500: #d08a2e;
  --argan-300: #e9b566;
  --coral: #d65a3c;
  --sand-50:  #f6f1e7;
  --sand-100: #efe7d6;
  --sand-200: #e3d6bd;
  --bone:     #faf6ee;
  --ink-900:  #0c1416;
  --ink-800:  #141e21;
  --ink-700:  #1d2a2e;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --maxw: 1240px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow-sm: 0 1px 2px rgba(8,20,22,.06), 0 2px 8px rgba(8,20,22,.05);
  --shadow-md: 0 8px 24px -8px rgba(8,20,22,.18), 0 2px 8px rgba(8,20,22,.06);
  --shadow-lg: 0 30px 60px -22px rgba(8,20,22,.35);

  --font-display: "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, monospace;
}

/* ---------- LIGHT (défaut) — charte Dablal : noir & or ---------- */
:root, [data-theme="light"] {
  --bg: #f4f1ea;
  --bg-soft: #ece7db;
  --bg-elev: #ffffff;
  --bg-inset: #f3eee3;
  --surface-line: #e4ddcc;
  --text: #15130d;
  --text-soft: #4b463a;
  --text-mute: #847c6c;
  --accent: #9a7416;          /* or foncé/bronze — lisible AA sur clair */
  --accent-strong: #7c5d0f;
  --accent-soft: #f3e9cf;
  --gold: #b8860b;
  --gold-soft: #f3e7c8;
  --ink: #15130d;
  --hero-grad: radial-gradient(120% 90% at 82% -10%, #f0e4c4 0%, transparent 55%),
               radial-gradient(95% 85% at -5% 0%, #e9e2d2 0%, transparent 52%);
  --ring: rgba(154,116,22,.32);
  --shadow-color: rgba(20,16,8,.16);
}

/* ---------- DARK — noir profond + or (identité forte) ---------- */
[data-theme="dark"] {
  --bg: #0b0b0c;
  --bg-soft: #131214;
  --bg-elev: #1a181b;
  --bg-inset: #100f11;
  --surface-line: #2c2925;
  --text: #f4efe3;
  --text-soft: #c1baab;
  --text-mute: #8b8478;
  --accent: #e6b53e;          /* or vif sur noir */
  --accent-strong: #f2c75a;
  --accent-soft: #2a2210;
  --gold: #e6b53e;
  --gold-soft: #2a2210;
  --ink: #0b0b0c;
  --hero-grad: radial-gradient(120% 90% at 82% -10%, #2c2207 0%, transparent 55%),
               radial-gradient(95% 85% at -5% 0%, #1a1a1c 0%, transparent 52%);
  --ring: rgba(230,181,62,.4);
  --shadow-color: rgba(0,0,0,.6);
  --shadow-md: 0 10px 30px -10px rgba(0,0,0,.65), 0 2px 8px rgba(0,0,0,.45);
  --shadow-lg: 0 36px 70px -24px rgba(0,0,0,.75);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .4s var(--ease), color .3s var(--ease);
  overflow-x: hidden;
}
/* Grain premium — texture fine sur tout le site */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="dark"] body::before { opacity: .07; }
body > * { position: relative; z-index: 2; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
.icon { width: 1em; height: 1em; stroke-width: 2; vertical-align: -.125em; }

/* ---------- Typo ---------- */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.022em; color: var(--text); }
.display { font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0; }
.eyebrow {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--gold); font-weight: 500;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); display: inline-block; opacity: .7; }
.lead { font-size: 1.18rem; color: var(--text-soft); line-height: 1.6; }
.mono { font-family: var(--font-mono); }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(56px, 9vw, 120px) 0; }
.grid { display: grid; gap: 24px; }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); margin: 14px 0 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.4em; border-radius: 999px; font-weight: 600;
  font-size: .96rem; letter-spacing: .01em; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  white-space: nowrap;
}
.btn .icon { width: 1.05em; height: 1.05em; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-md); }
[data-theme="dark"] .btn-primary { color: #04181a; }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #2a1c08; }
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-ghost { border: 1.5px solid var(--surface-line); color: var(--text); background: var(--bg-elev); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 1.05em 1.8em; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px) saturate(1.3);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--surface-line); }
.nav { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; letter-spacing: -.02em; white-space: nowrap; }
.brand .mark { width: 38px; height: 38px; flex: none; }
.brand small { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .26em; text-transform: uppercase; color: var(--text-mute); display: block; margin-top: 2px; font-weight: 500; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: .95rem; color: var(--text-soft); font-weight: 500; position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--gold); transition: width .3s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--surface-line); background: var(--bg-elev); color: var(--text-soft);
  transition: transform .4s var(--ease), color .3s, border-color .3s;
}
.theme-toggle:hover { color: var(--gold); border-color: var(--gold); transform: rotate(18deg); }
.theme-toggle .icon { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

.hamburger { display: none; width: 42px; height: 42px; border-radius: var(--r-sm); place-items: center; border: 1.5px solid var(--surface-line); background: var(--bg-elev); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(52px, 6vw, 78px); background: var(--hero-grad); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6.6vw, 5.4rem); letter-spacing: -.03em; margin: 18px 0 22px; }
.hero h1 .it { color: var(--accent); }
.hero .lead { max-width: 50ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-stats { display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats .s { display: flex; flex-direction: column; }
.hero-stats .n { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; color: var(--text); }
.hero-stats .l { font-size: .82rem; color: var(--text-mute); margin-top: 6px; letter-spacing: .02em; }

.hero-visual { position: relative; aspect-ratio: 4/4.4; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-visual .ph { position: absolute; inset: 0; }
.hero-visual .badge {
  position: absolute; left: 20px; bottom: 20px; right: 20px; padding: 16px 18px;
  background: color-mix(in srgb, var(--bg-elev) 86%, transparent); backdrop-filter: blur(10px);
  border-radius: var(--r-md); border: 1px solid var(--surface-line); display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-md);
}
.hero-visual .badge .dot { width: 10px; height: 10px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 4px rgba(52,199,89,.2); flex: none; }
.hero-visual .badge b { font-size: .92rem; }
.hero-visual .badge span { font-size: .8rem; color: var(--text-mute); }

/* ---------- Quick search bar ---------- */
.searchbar {
  margin-top: -38px; position: relative; z-index: 5;
  background: var(--bg-elev); border: 1px solid var(--surface-line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 14px;
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 10px; align-items: end;
}
.field { display: flex; flex-direction: column; gap: 6px; padding: 6px 14px; border-radius: var(--r-md); position: relative; }
.field + .field { border-left: 1px solid var(--surface-line); }
.field label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-mute); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.field label .icon { width: 14px; height: 14px; color: var(--accent); }
.field input, .field select { border: none; background: transparent; font-size: 1rem; font-weight: 600; padding: 2px 0; outline: none; width: 100%; }
.field input::placeholder { color: var(--text-mute); font-weight: 500; }

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 26px -8px rgba(0,0,0,.55);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 30px -8px rgba(37,211,102,.5); }
.wa-float .icon { width: 30px; height: 30px; }
@media (max-width: 900px) { .wa-float { bottom: calc(90px + env(safe-area-inset-bottom)); right: 14px; width: 52px; height: 52px; } .wa-float .icon { width: 28px; height: 28px; } }

/* ---------- Barre de réassurance ---------- */
.trustbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.trust { display: flex; align-items: center; gap: 13px; padding: 16px 18px; background: var(--bg-elev); border: 1px solid var(--surface-line); border-radius: var(--r-md); }
.trust .icon { width: 26px; height: 26px; color: var(--accent); flex: none; stroke-width: 1.8; }
.trust b { display: block; font-size: .92rem; font-weight: 700; }
.trust span { font-size: .8rem; color: var(--text-mute); }
@media (max-width: 900px) { .trustbar { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trustbar { grid-template-columns: 1fr; } }

/* ---------- Cards / fleet ---------- */
.price-note { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 26px; padding: 14px 18px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--surface-line)); border-radius: var(--r-md); }
.price-note span { font-size: .9rem; color: var(--text-soft); display: inline-flex; align-items: baseline; gap: 6px; }
.price-note span:not(:last-child)::after { content: ""; }
.price-note b { font-family: var(--font-display); font-size: 1.05rem; color: var(--gold); font-weight: 700; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.chip {
  padding: .55em 1.1em; border-radius: 999px; font-size: .88rem; font-weight: 600;
  border: 1.5px solid var(--surface-line); background: var(--bg-elev); color: var(--text-soft);
  display: inline-flex; align-items: center; gap: .5em; transition: all .25s var(--ease);
}
.chip .icon { width: 15px; height: 15px; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="dark"] .chip.active { color: #04181a; }

.fleet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.car {
  background: var(--bg-elev); border: 1px solid var(--surface-line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.car::after { /* filet or au sommet, révélé au survol */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 3;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity .4s var(--ease);
}
.car:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 32%, var(--surface-line)); }
.car:hover::after { opacity: 1; }
.car-media { aspect-ratio: 16/11; position: relative; overflow: hidden; background: #f1f2f2; }
[data-theme="dark"] .car-media { background: #0f1618; }
.car-media .ph { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .6s var(--ease); }
.car-media img.ph { object-fit: cover; }
.car:hover .car-media img.ph { transform: scale(1.04); }
.car-media .ph-soon { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; color: var(--text-mute); background: linear-gradient(170deg, var(--bg-soft), var(--bg-inset)); }
.car-media .ph-soon .icon { width: 42px; height: 42px; color: color-mix(in srgb, var(--accent) 60%, var(--text-mute)); stroke-width: 1.5; }
.car-media .ph-soon span { font-size: .72rem; letter-spacing: .1em; font-weight: 700; text-transform: uppercase; }
.car-tag {
  position: absolute; top: 14px; left: 14px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; padding: .4em .8em; border-radius: 999px; background: color-mix(in srgb, var(--bg-elev) 85%, transparent);
  backdrop-filter: blur(8px); border: 1px solid var(--surface-line); font-weight: 600;
}
.car-tag.premium { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.car-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.car-body h3 { font-size: 1.4rem; }
.car-sub { font-size: .85rem; color: var(--text-mute); margin-top: 3px; }
.car-specs { display: flex; gap: 16px; margin: 16px 0 18px; flex-wrap: wrap; }
.car-specs .sp { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--text-soft); }
.car-specs .sp .icon { width: 16px; height: 16px; color: var(--accent); }
.car-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 16px; border-top: 1px solid var(--surface-line); flex-wrap: wrap; }
.price { white-space: nowrap; }
.price b { font-family: var(--font-display); font-size: 1.7rem; }
.price span { font-size: .8rem; color: var(--text-mute); }
.car-foot .btn { flex: 1 1 auto; justify-content: center; min-width: 120px; }

/* ---------- Sections génériques ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-list { display: grid; gap: 22px; margin-top: 30px; }
.feat { display: flex; gap: 16px; }
.feat .fi { width: 46px; height: 46px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.feat .fi .icon { width: 22px; height: 22px; }
.feat h4 { font-size: 1.12rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 4px; }
.feat p { font-size: .92rem; color: var(--text-soft); }

.map-panel { aspect-ratio: 1/1; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--surface-line); box-shadow: var(--shadow-md); }
#siteMap, #clientMap { width: 100%; height: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: #0a0a0b; color: #c4bdae; padding: 72px 0 32px; margin-top: 40px; }
[data-theme="light"] .site-footer { background: #0a0a0b; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot-grid h5 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .95rem; margin-bottom: 16px; letter-spacing: .02em; }
.foot-grid a, .foot-grid p { color: #9d978a; font-size: .9rem; display: block; margin-bottom: 9px; }
.foot-grid a:hover { color: var(--gold); }
.foot-brand .brand { color: #fff; }
.foot-brand p { max-width: 32ch; margin-top: 14px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: .82rem; color: #7f928e; flex-wrap: wrap; gap: 12px; }

/* ---------- Reveal anim ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Modal / booking flow ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(6,18,20,.55);
  backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity .3s;
}
.modal-backdrop.open { display: flex; opacity: 1; }
.modal {
  background: var(--bg); border: 1px solid var(--surface-line); border-radius: var(--r-xl);
  width: min(720px, 100%); max-height: 92vh; overflow: hidden; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; transform: translateY(16px) scale(.98); transition: transform .35s var(--ease);
}
.modal-backdrop.open .modal { transform: none; }
.modal-head { padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--surface-line); }
.modal-head h3 { font-size: 1.3rem; }
.modal-close { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--text-mute); transition: background .2s, color .2s; }
.modal-close:hover { background: var(--bg-soft); color: var(--text); }
.modal-body { padding: 26px; overflow-y: auto; }
.modal-foot { padding: 18px 26px; border-top: 1px solid var(--surface-line); display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--bg-soft); }

/* steps */
.steps { display: flex; gap: 6px; margin-bottom: 26px; }
.steps .st { flex: 1; }
.steps .st .bar { height: 4px; border-radius: 2px; background: var(--surface-line); transition: background .3s; }
.steps .st.done .bar, .steps .st.active .bar { background: var(--accent); }
.steps .st .lbl { font-size: .72rem; margin-top: 8px; color: var(--text-mute); font-weight: 600; letter-spacing: .03em; }
.steps .st.active .lbl { color: var(--accent); }
.step-pane { display: none; animation: fade .35s var(--ease); }
.step-pane.show { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .82rem; font-weight: 600; color: var(--text-soft); }
.form-field input, .form-field select, .form-field textarea {
  padding: .8em .9em; border-radius: var(--r-sm); border: 1.5px solid var(--surface-line);
  background: var(--bg-elev); transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }

.dropzone {
  border: 2px dashed var(--surface-line); border-radius: var(--r-md); padding: 26px; text-align: center;
  background: var(--bg-inset); transition: border-color .25s, background .25s; cursor: pointer;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 8px; }
.dropzone b { display: block; font-size: .96rem; }
.dropzone span { font-size: .82rem; color: var(--text-mute); }
.dz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.uploaded { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--accent-soft); font-size: .85rem; }
.uploaded .icon { color: var(--accent); width: 16px; height: 16px; vertical-align: -.15em; }
.uploaded .doc-thumb { width: 60px; height: 38px; flex: none; border-radius: 5px; overflow: hidden; box-shadow: var(--shadow-sm); }
.uploaded .up-txt small { color: var(--text-mute); font-size: .76rem; }
.secure-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: .82rem; color: var(--text-mute); padding: 12px 14px; background: var(--gold-soft); border-radius: var(--r-sm); }

/* Acceptation des conditions générales */
.cgl-accept { display: flex; gap: 11px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; background: var(--bg-inset); border: 1.5px solid var(--surface-line); border-radius: var(--r-sm); font-size: .9rem; color: var(--text-soft); }
.cgl-accept input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: none; cursor: pointer; }
.cgl-accept.err { border-color: var(--coral); }
.cgl-link { color: var(--accent); font-weight: 600; text-decoration: underline; background: none; border: none; padding: 0; font: inherit; cursor: pointer; }
.foot-grid .cgl-link { display: block; margin-bottom: 9px; color: #9d978a; text-decoration: none; font-weight: 400; font-size: .9rem; }
.foot-grid .cgl-link:hover { color: var(--gold); }
.cgl-art { margin-bottom: 18px; }
.cgl-art h4 { font-family: var(--font-body); font-size: .98rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.cgl-art p { font-size: .9rem; color: var(--text-soft); line-height: 1.55; }
.secure-note .icon { width: 16px; height: 16px; color: var(--gold); flex: none; margin-top: 2px; }

/* recap */
.recap { background: var(--bg-elev); border: 1px solid var(--surface-line); border-radius: var(--r-md); padding: 20px; }
.recap-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--surface-line); font-size: .92rem; }
.recap-row:last-child { border: none; }
.recap-row .k { color: var(--text-mute); }
.recap-row .v { font-weight: 600; }
.recap-total { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 16px; border-top: 2px solid var(--accent); }
.recap-total .v { font-family: var(--font-display); font-size: 1.6rem; }

.success { text-align: center; padding: 12px 0; }
.success .ring { width: 78px; height: 78px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 18px; }
.success .ring .icon { width: 40px; height: 40px; }
.success h3 { font-size: 1.7rem; margin-bottom: 8px; }
.ref-code { font-family: var(--font-mono); font-size: 1.1rem; letter-spacing: .1em; color: var(--accent); margin-top: 10px; padding: 8px 16px; background: var(--accent-soft); border-radius: var(--r-sm); display: inline-block; }

/* ---------- Mobile nav ---------- */
.mobile-menu { display: none; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .fleet { grid-template-columns: repeat(2, 1fr); }
  .searchbar { grid-template-columns: 1fr 1fr; }
  .field + .field { border-left: none; }
  .nav-links { display: none; }
  .hamburger { display: grid; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .fleet { grid-template-columns: 1fr; }
  .searchbar { grid-template-columns: 1fr; }
  .form-row, .dz-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .nav { gap: 12px; height: 68px; }
  .nav-actions .btn-primary { display: none; }
  .brand { font-size: 1.12rem; }
  .brand small { font-size: .52rem; letter-spacing: .2em; }
}

/* ============ Barre de navigation mobile (bas d'écran) ============ */
.botbar { display: none; }
@media (max-width: 900px) {
  .hamburger { display: none !important; }
  .nav-actions .btn-primary { display: none; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .site-footer { margin-bottom: 0; }

  .botbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
    align-items: flex-end; justify-content: space-around; gap: 2px;
    padding: 9px 8px calc(9px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
    backdrop-filter: blur(20px) saturate(1.5);
    border-top: 1px solid var(--surface-line);
    box-shadow: 0 -10px 30px -16px var(--shadow-color);
  }
  .botbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
    font-size: .62rem; font-weight: 600; letter-spacing: .02em; color: var(--text-mute);
    padding: 4px 0; transition: color .2s;
  }
  .botbar a .icon { width: 22px; height: 22px; stroke-width: 1.9; }
  .botbar a.active { color: var(--accent); }
  .botbar .bb-fab { flex: 0 0 auto; align-self: flex-start; margin-top: -30px; }
  .botbar .bb-fab .fab {
    width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(160deg, var(--argan-300), var(--gold)); color: #2a1c08;
    box-shadow: 0 12px 28px -8px rgba(0,0,0,.55), 0 0 0 5px var(--bg);
  }
  .botbar .bb-fab .fab .icon { width: 25px; height: 25px; stroke-width: 2.2; }
  .botbar .bb-fab .lbl { display: block; text-align: center; margin-top: 6px; font-size: .6rem; font-weight: 700; color: var(--gold); letter-spacing: .04em; }
}
