/* ==========================================================================
   IB-AUTO — Feuille de style principale
   Palette dérivée du logo : or (#B19540) + noir chaud + gris clair.
   ========================================================================== */

:root {
  /* Couleurs */
  --ink: #16140F;
  --ink-soft: #221F18;
  --ink-line: rgba(255,255,255,0.12);

  --paper: #FBFAF7;
  --paper-dim: #F1EEE7;
  --line: #E4DFD3;

  --gold: #B19540;
  --gold-deep: #8B7330;
  --gold-light: #D7BE72;

  --text: #221F18;
  --text-muted: #6B6656;
  --text-on-ink: #F3F1EA;
  --text-on-ink-muted: #B9B4A6;

  --danger: #9A3B2B;

  /* Typographie */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Echelle & rythme */
  --radius-s: 4px;
  --radius-m: 8px;
  --container: 1180px;
  --shadow-card: 0 1px 2px rgba(22,20,15,0.06), 0 10px 24px -12px rgba(22,20,15,0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
@media (max-width: 720px) {
  section { padding: 56px 0; }
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--gold-deep);
  margin: 0 0 10px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-gold {
  background: var(--gold);
  color: #1B1710;
}
.btn-gold:hover { background: var(--gold-light); }

.btn-ink {
  background: var(--ink);
  color: var(--text-on-ink);
}
.btn-ink:hover { background: var(--ink-soft); }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--text-on-ink); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(243,241,234,0.5);
  color: var(--text-on-ink);
}
.btn-outline-light:hover { background: rgba(243,241,234,0.12); border-color: var(--text-on-ink); }

.btn-whatsapp {
  background: #25D366;
  color: #0B1F13;
}
.btn-whatsapp:hover { background: #34e077; }

.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.btn svg { width: 18px; height: 18px; flex: none; }

/* --------------------------------------------------------------------
   Header
   -------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22,20,15,0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--ink-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 34px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-on-ink-muted);
  padding: 10px 14px;
  border-radius: var(--radius-s);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.main-nav a:hover { color: var(--text-on-ink); background: rgba(255,255,255,0.06); }
.main-nav a.active { color: var(--gold-light); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-s);
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  color: var(--text-on-ink);
}

@media (max-width: 920px) {
  .main-nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 8px; }
  .nav-toggle { display: flex; }
  .header-actions .btn span.long { display: none; }
}

/* --------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  color: var(--text-on-ink);
  background-size: cover;
  background-position: center 62%;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(11,10,7,0.92) 0%, rgba(11,10,7,0.55) 46%, rgba(11,10,7,0.35) 100%);
}
.hero .container { position: relative; padding-bottom: 56px; padding-top: 140px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.hero-kicker::before {
  content: ""; width: 26px; height: 1px; background: var(--gold-light);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  color: #fff;
  max-width: 15ch;
  margin-bottom: 20px;
}
.hero p.lede {
  font-size: 1.15rem;
  color: var(--text-on-ink-muted);
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 40px;
  border-top: 1px solid var(--ink-line);
  padding-top: 28px;
}
.hero-stats .stat b {
  display: block; font-family: var(--font-display); font-size: 1.6rem; color: #fff;
}
.hero-stats .stat span { font-size: 0.85rem; color: var(--text-on-ink-muted); }

@media (max-width: 720px) {
  .hero { min-height: 560px; }
  .hero .container { padding-top: 110px; }
  .hero-stats { grid-template-columns: repeat(2, auto); row-gap: 20px; }
}

/* --------------------------------------------------------------------
   Bandeau de confiance
   -------------------------------------------------------------------- */
.trust-strip {
  background: var(--ink);
  color: var(--text-on-ink-muted);
  padding: 22px 0;
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 36px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}
.trust-strip .item { display: flex; align-items: center; gap: 10px; }
.trust-strip svg { width: 18px; height: 18px; color: var(--gold-light); flex: none; }

/* --------------------------------------------------------------------
   Cartes véhicule
   -------------------------------------------------------------------- */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 980px) { .fleet-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .fleet-grid { grid-template-columns: 1fr; } }

.car-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}
.car-card .thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--paper-dim);
}
.car-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.car-card .badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.car-card .badge {
  background: rgba(22,20,15,0.82);
  color: var(--gold-light);
  font-size: 0.72rem; font-weight: 700;
  padding: 5px 9px; border-radius: 100px;
  letter-spacing: 0.01em;
}
.car-card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.car-card .cat { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.car-card h3 { font-size: 1.2rem; margin: 0; }
.car-card .specs {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  font-size: 0.83rem; color: var(--text-muted);
  padding: 10px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
}
.car-card .specs span { display: flex; align-items: center; gap: 6px; }
.car-card .specs svg { width: 15px; height: 15px; color: var(--gold-deep); }
.car-card .price-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; }
.car-card .price b { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }
.car-card .price span { font-size: 0.8rem; color: var(--text-muted); }
.car-card .actions { display: flex; gap: 8px; }
.car-card .actions .btn { flex: 1; padding: 11px 14px; font-size: 0.88rem; }

/* --------------------------------------------------------------------
   Filtres (page véhicules)
   -------------------------------------------------------------------- */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 34px;
}
.filter-chip {
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 18px;
  border-radius: 100px;
  font-weight: 600; font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
}
.filter-chip.active { background: var(--ink); color: var(--text-on-ink); border-color: var(--ink); }

/* --------------------------------------------------------------------
   Etapes / process
   -------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 8px; }
.step .num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold-deep);
  border: 1px solid var(--gold);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* --------------------------------------------------------------------
   Section sombre / pourquoi nous
   -------------------------------------------------------------------- */
.section-ink { background: var(--ink); color: var(--text-on-ink); }
.section-ink .section-head p { color: var(--text-on-ink-muted); }
.section-ink .section-head h2 { color: #fff; }
.section-ink .eyebrow { color: var(--gold-light); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
}
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--ink);
  padding: 28px 24px;
}
.feature svg { width: 26px; height: 26px; color: var(--gold-light); margin-bottom: 16px; }
.feature h3 { color: #fff; font-size: 1.02rem; margin-bottom: 8px; }
.feature p { color: var(--text-on-ink-muted); font-size: 0.92rem; }

/* --------------------------------------------------------------------
   CTA bandeau
   -------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(120deg, var(--gold-deep), var(--gold));
  color: #1B1710;
  padding: 56px 0;
}
.cta-banner .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-banner h2 { color: #1B1710; font-size: 1.7rem; margin-bottom: 6px; }
.cta-banner p { color: rgba(27,23,16,0.75); }
.cta-banner .btn-ink:hover { background: #000; }

/* --------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--text-on-ink-muted); padding-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--ink-line);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.03em; margin-bottom: 16px; font-family: var(--font-body); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand img { height: 30px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; max-width: 32ch; }
.footer-bottom {
  padding: 22px 0 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.82rem;
}
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--ink-line);
  display: flex; align-items: center; justify-content: center;
}
.social-row svg { width: 16px; height: 16px; }
.social-row a:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* --------------------------------------------------------------------
   Pages secondaires — bandeau de titre
   -------------------------------------------------------------------- */
.page-head {
  background: var(--ink);
  color: var(--text-on-ink);
  padding: 64px 0 40px;
}
.page-head .eyebrow { color: var(--gold-light); }
.page-head h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 8px; }
.page-head p { color: var(--text-on-ink-muted); max-width: 56ch; }
.breadcrumb { font-size: 0.85rem; color: var(--text-on-ink-muted); margin-bottom: 16px; }
.breadcrumb a:hover { color: #fff; }

/* --------------------------------------------------------------------
   Fiche véhicule (détail)
   -------------------------------------------------------------------- */
.detail-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 940px) { .detail-layout { grid-template-columns: 1fr; } }

.gallery-main {
  aspect-ratio: 4/3;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--paper-dim);
  margin-bottom: 12px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery-thumbs button {
  width: 84px; height: 64px; padding: 0; border-radius: var(--radius-s);
  overflow: hidden; border: 2px solid transparent; cursor: pointer; background: none;
}
.gallery-thumbs button.active { border-color: var(--gold); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.spec-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table td { padding: 12px 4px; font-size: 0.94rem; }
.spec-table td:first-child { color: var(--text-muted); width: 45%; }
.spec-table td:last-child { font-weight: 600; }

.equip-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.equip-list li { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; }
.equip-list svg { width: 16px; height: 16px; color: var(--gold-deep); flex: none; }

.booking-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #fff;
  padding: 26px;
  position: sticky;
  top: 96px;
  box-shadow: var(--shadow-card);
}
.booking-card .price-lead { display: flex; align-items: baseline; gap: 6px; margin-bottom: 18px; }
.booking-card .price-lead b { font-family: var(--font-display); font-size: 1.8rem; }
.booking-card .price-lead span { color: var(--text-muted); font-size: 0.9rem; }

/* --------------------------------------------------------------------
   Formulaires
   -------------------------------------------------------------------- */
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; color: var(--ink);
}
.field .hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

input[type=text], input[type=tel], input[type=email], input[type=date], input[type=number], select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--paper);
  color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-deep); background: #fff; }
textarea { resize: vertical; min-height: 100px; }

.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pill {
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 9px 16px;
  font-size: 0.87rem; font-weight: 600;
  cursor: pointer; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
}
.radio-pill input { accent-color: var(--gold-deep); }
.radio-pill.active { border-color: var(--gold-deep); color: var(--ink); background: var(--paper-dim); }

.summary-box {
  background: var(--paper-dim);
  border: 1px dashed var(--line);
  border-radius: var(--radius-s);
  padding: 16px 18px;
  margin: 20px 0;
  font-size: 0.9rem;
}
.summary-box .row { display: flex; justify-content: space-between; padding: 5px 0; }
.summary-box .row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-weight: 700; font-size: 1.05rem; color: var(--ink); font-family: var(--font-display); }

.form-msg { font-size: 0.88rem; padding: 12px 14px; border-radius: var(--radius-s); margin-top: 14px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: #E8F3EA; color: #235B32; }
.form-msg.error { background: #FBEAE7; color: var(--danger); }

/* --------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.contact-info-list li { display: flex; gap: 14px; }
.contact-info-list .icon {
  width: 42px; height: 42px; border-radius: 50%; background: var(--paper-dim);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.contact-info-list svg { width: 19px; height: 19px; color: var(--gold-deep); }
.contact-info-list h4 { margin: 0 0 3px; font-size: 0.95rem; }
.contact-info-list p { color: var(--text-muted); font-size: 0.92rem; }
.map-embed { border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); margin-top: 28px; }
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }

/* --------------------------------------------------------------------
   A propos / valeurs (page d'accueil - bloc supplémentaire)
   -------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.split img { border-radius: var(--radius-m); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.stat-row { display: flex; gap: 34px; margin-top: 28px; flex-wrap: wrap; }
.stat-row b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); }
.stat-row span { font-size: 0.84rem; color: var(--text-muted); }

/* --------------------------------------------------------------------
   WhatsApp bouton flottant
   -------------------------------------------------------------------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { background: #1fbd5a; }

/* --------------------------------------------------------------------
   Empty state (aucun véhicule après filtre)
   -------------------------------------------------------------------- */
/* --------------------------------------------------------------------
   FAQ (accueil)
   -------------------------------------------------------------------- */
.faq-list { max-width: 760px; display: flex; flex-direction: column; gap: 10px; }
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 18px 22px;
  background: #fff;
}
.faq-list summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--gold-deep);
  flex: none;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { margin-top: 12px; color: var(--text-muted); font-size: 0.95rem; }

.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
  border: 1px dashed var(--line); border-radius: var(--radius-m);
}

/* Utilitaires */
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
