/* ───────────────────────────────────────────────────────────────────────────
   Presticar — site vitrine. Design repris de la maquette Accueil2.
   Tokens + composants réutilisables (le reste est en styles inline par page).
──────────────────────────────────────────────────────────────────────────── */
:root {
  --primary: #770816;
  --primary-dark: #4f0510;
  --primary-tint: #f6edee;
  --pink: #e4b9bf;
  --ink: #1e1d1e;
  --ink-2: #414042;
  --muted: #58595b;
  --muted-2: #8c9097;
  --bg: #f6f4f2;
  --surface: #ffffff;
  --border: #e2deda;
  --border-2: #cfcac6;
  --light: #efece9;
  --hero-dark: #22060c;
  --green: #1f6f43;
  --orange: #b35c00;
  --wa: #25d366;
  --radius: 10px;
  --shadow: 0 12px 32px rgba(65, 64, 66, 0.1);
  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Barlow Condensed', var(--font);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; line-height: 1.02; margin: 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 6px; border: 0;
  font: 600 14px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; font-weight: 700; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-dark { background: var(--ink-2); color: #fff; }
.btn-dark:hover { color: #fff; opacity: .92; }
.btn-light { background: var(--surface); color: var(--ink); border: 1px solid var(--border-2); }
.btn-outline { background: transparent; color: var(--ink-2); border: 1.5px solid var(--ink-2); }
.btn-wa { background: var(--wa); color: #0a2e17; font-weight: 700; }
.btn-block { width: 100%; }

/* Badges */
.badge { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 4px; }
.badge-primary { background: var(--primary); color: #fff; }
.badge-surface { background: #fff; color: var(--ink); }

/* Cartes */
.box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: .02em; color: var(--primary); text-decoration: none; text-transform: uppercase; }
.logo img { height: 30px; width: auto; display: block; }
.logo:hover { color: var(--primary-dark); }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--primary); }

/* Bandeau info */
.topbar { background: var(--primary); color: #fff; font-size: 13px; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding: 10px 24px; }
.topbar a { color: #fff; }

/* Champs */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.control, select.control, input.control {
  min-height: 46px; padding: 0 12px; border: 1px solid var(--border-2); border-radius: 6px;
  font: 15px var(--font); background: #fff; color: var(--ink); width: 100%;
}
.control:focus { outline: 2px solid var(--primary); outline-offset: -1px; }

/* Grille véhicules + carte */
.cars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.car { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); }
.car:hover { color: var(--ink); box-shadow: var(--shadow); }
.car__media { position: relative; height: 170px; background: #e6e3e0; display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.car__media img { width: 100%; height: 100%; object-fit: cover; }
.car__badge { position: absolute; top: 12px; left: 12px; }
.car__video { position: absolute; bottom: 12px; right: 12px; background: rgba(26,24,25,.85); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 4px; }
.car__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.car__title { font-size: 17px; font-weight: 700; margin: 0; }
.car__specs { font-size: 14px; color: var(--muted); }
.car__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; }
.car__price { font-family: var(--display); font-weight: 800; font-size: 28px; }

/* Segmented (toggle destinations/prix) */
.seg { display: inline-flex; background: var(--light); border-radius: 8px; padding: 4px; gap: 4px; }
.seg button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); font: 600 14px var(--font); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--primary); color: #fff; }

/* Footer */
.site-footer { background: var(--ink-2); color: #d7d4d2; font-size: 14px; margin-top: 64px; }
.site-footer a { color: #d7d4d2; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding: 48px 24px 28px; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 16px 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; color: #a7a3a0; }

/* WhatsApp flottant */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px 0 18px; background: var(--wa); color: #0a2e17; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.wa-float:hover { color: #0a2e17; transform: translateY(-2px); }

/* États (chargement, vide, erreur) */
.state { text-align: center; color: var(--muted); padding: 56px 16px; }
.spinner { display: inline-block; width: 26px; height: 26px; border: 3px solid var(--primary); border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Select2 (liste déroulante avec recherche) */
.s2-champ::placeholder { color: #8a8688; font-weight: 500; }
.s2-champ:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
.s2-option:hover { background: var(--primary-tint); }

@media (max-width: 768px) {
  .nav { display: none; }
  h1 { font-size: 34px; }
  .wa-float .wa-label { display: none; }
  .wa-float { padding: 0; width: 56px; justify-content: center; }
}
