/* ============================================================
   BelDrive — Location de voitures en Belgique / Autoverhuur in België
   Design system — vanilla CSS, aucune dépendance externe
   ============================================================ */

:root {
  --navy: #0f2a4a;
  --navy-dark: #0a1f38;
  --navy-light: #1d406e;
  --blue: #1e5fa8;
  --blue-light: #eaf2fb;
  --yellow: #ffc72c;
  --yellow-dark: #e6ac00;
  --ink: #1a2433;
  --gray-700: #445061;
  --gray-500: #6b7789;
  --gray-300: #cfd6e0;
  --gray-100: #f2f5f9;
  --white: #ffffff;
  --green: #1e7d4e;
  --red: #b3261e;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 18px rgba(15, 42, 74, 0.10);
  --shadow-lg: 0 10px 34px rgba(15, 42, 74, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--blue); }
a:hover { color: var(--navy); }

h1, h2, h3, h4 { line-height: 1.25; color: var(--navy); margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 56px 0; }
.section--alt { background: var(--gray-100); }
.section__intro { max-width: 720px; color: var(--gray-700); margin-bottom: 2rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link — accessibilité */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--yellow); color: var(--navy);
  padding: 10px 18px; z-index: 200; font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ============ Header ============ */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.3px;
}
.brand__mark {
  width: 38px; height: 38px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--yellow);
  border-radius: 9px;
  color: var(--navy);
}
.brand strong { color: var(--yellow); font-weight: 800; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
  color: var(--white);
  padding: 8px 12px;
  font-size: 1rem;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 10px 13px;
  color: #dbe6f3;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  border-radius: var(--radius-sm);
}
.site-nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.10); }
.site-nav a[aria-current="page"] { color: var(--navy); background: var(--yellow); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 10px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 999px;
}
.lang-switch a, .lang-switch span {
  display: block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  color: #dbe6f3;
}
.lang-switch a:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.lang-switch .is-active { background: var(--yellow); color: var(--navy); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--navy-dark);
    padding: 10px 20px 18px;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 12px 14px; }
  .lang-switch { margin: 10px 0 0; justify-content: center; }
}

/* ============ Hero ============ */
.hero {
  background: linear-gradient(140deg, var(--navy-dark) 0%, var(--navy) 55%, #1a4a80 100%);
  color: var(--white);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; bottom: -160px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 199, 44, 0.18), transparent 65%);
}
.hero h1 { color: var(--white); max-width: 640px; }
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero p { max-width: 560px; color: #c8d6e8; font-size: 1.1rem; }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 30px;
  padding: 0;
  list-style: none;
}
.hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 0.9rem;
  font-weight: 600;
}
.hero__badges svg { color: var(--yellow); flex: none; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--yellow); color: var(--navy); }
.btn--primary:hover { background: var(--yellow-dark); color: var(--navy-dark); box-shadow: 0 6px 18px rgba(255, 199, 44, 0.35); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.btn--ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-dark); color: var(--white); }
.btn--sm { padding: 9px 18px; font-size: 0.92rem; }
.btn--block { width: 100%; }

/* ============ Cards / grids ============ */
.grid {
  display: grid;
  gap: 24px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0.4em; }
.card__icon {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--blue-light);
  color: var(--navy);
}

/* ============ Vehicle cards ============ */
.vehicle-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.vehicle-card__media {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 20px;
  min-height: 150px;
}
.vehicle-card__media svg { width: 150px; height: auto; }
.vehicle-card__media--photo { padding: 0; min-height: 0; background: var(--gray-100); }
.vehicle-card__media--photo img { display: block; width: 100%; height: auto; }
.vehicle-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.vehicle-card__cat {
  display: inline-block;
  align-self: flex-start;
  background: var(--blue-light);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 8px;
}
.vehicle-card h3 { margin: 0 0 6px; }
.vehicle-card__specs {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--gray-700);
  font-size: 0.9rem;
}
.vehicle-card__specs li { display: inline-flex; align-items: center; gap: 5px; }
.vehicle-card__specs svg { color: var(--blue); flex: none; }
.vehicle-card__price { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--gray-300); }
.vehicle-card__price strong { font-size: 1.5rem; color: var(--navy); }
.vehicle-card__price span { color: var(--gray-500); font-size: 0.88rem; }
.vehicle-card .btn { margin-top: 14px; }

/* ============ Steps ============ */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 26px 66px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -3px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li::after {
  content: "";
  position: absolute;
  left: 22px; top: 48px; bottom: 4px;
  width: 2px;
  background: var(--gray-300);
}
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--gray-700); margin: 0; }

/* ============ Tables ============ */
.table-wrap { overflow-x: auto; border: 1px solid var(--gray-300); border-radius: var(--radius); box-shadow: var(--shadow); }
table.pricing {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  min-width: 640px;
}
table.pricing caption {
  text-align: left;
  padding: 16px 20px 6px;
  font-weight: 700;
  color: var(--navy);
}
table.pricing th, table.pricing td {
  padding: 13px 20px;
  text-align: left;
  border-bottom: 1px solid var(--gray-300);
}
table.pricing thead th {
  background: var(--navy);
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
table.pricing tbody tr:nth-child(even) { background: var(--gray-100); }
table.pricing tbody tr:last-child td { border-bottom: none; }
table.pricing td strong { color: var(--navy); }

/* ============ Checklists ============ */
.checklist { list-style: none; margin: 0 0 1em; padding: 0; }
.checklist li {
  position: relative;
  padding: 5px 0 5px 32px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3"><circle cx="12" cy="12" r="10" fill="white" stroke="none"/><path d="M8 12.5l2.6 2.6L16 9.5" stroke="black"/></svg>') center/contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3"><circle cx="12" cy="12" r="10" fill="white" stroke="none"/><path d="M8 12.5l2.6 2.6L16 9.5" stroke="black"/></svg>') center/contain no-repeat;
}
.checklist--x li::before { background: var(--red);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="white"/><path d="M8.5 8.5l7 7M15.5 8.5l-7 7" stroke="black" stroke-width="2.5"/></svg>') center/contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="white"/><path d="M8.5 8.5l7 7M15.5 8.5l-7 7" stroke="black" stroke-width="2.5"/></svg>') center/contain no-repeat;
}

/* ============ FAQ / accordion ============ */
.faq details {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 16px 20px;
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--blue);
  font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { background: var(--blue-light); }
.faq details > div { padding: 14px 20px 18px; color: var(--gray-700); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ============ Forms ============ */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.form-field label .req { color: var(--red); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
.form-field .hint { font-size: 0.84rem; color: var(--gray-500); }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--gray-700); }
.form-consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.form-error { color: var(--red); font-size: 0.86rem; display: none; }
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: var(--red); }
.form-field.has-error .form-error { display: block; }

.form-status {
  display: none;
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.form-status.is-success { display: block; background: #e6f4ec; color: var(--green); border: 1px solid #bfe3cf; }
.form-status.is-error { display: block; background: #fdecea; color: var(--red); border: 1px solid #f5c6c2; }

/* ============ Notice / info boxes ============ */
.notice {
  border-left: 4px solid var(--blue);
  background: var(--blue-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  color: var(--navy);
  font-size: 0.95rem;
  margin: 1.2em 0;
}
.notice--warn { border-left-color: var(--yellow-dark); background: #fff8e1; color: #6b5200; }

/* ============ CTA band ============ */
.cta-band {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy-light, #1d4a7e));
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cta-band h2 { color: var(--white); margin: 0 0 4px; }
.cta-band p { margin: 0; color: #c8d6e8; }

/* ============ Legal pages ============ */
.legal { max-width: 820px; }
.legal h2 { margin-top: 1.8em; font-size: 1.35rem; }
.legal h3 { margin-top: 1.4em; }
.legal ul { color: var(--ink); }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 0.93rem; }
.legal table th, .legal table td { border: 1px solid var(--gray-300); padding: 9px 12px; text-align: left; vertical-align: top; }
.legal table th { background: var(--gray-100); }
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 46px 0 40px;
}
.page-header h1 { color: var(--white); margin-bottom: 6px; }
.page-header p { color: #c8d6e8; margin: 0; max-width: 640px; }
.page-header .breadcrumb { font-size: 0.87rem; margin-bottom: 12px; color: #9db4cd; }
.page-header .breadcrumb a { color: #c8d6e8; }

/* ============ Footer ============ */
.site-footer {
  background: var(--navy-dark);
  color: #b9c8da;
  padding: 52px 0 0;
  font-size: 0.94rem;
}
.site-footer a { color: #d7e3f0; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding-bottom: 36px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-contact li { display: flex; gap: 9px; align-items: flex-start; }
.footer-contact svg { flex: none; margin-top: 4px; color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #8fa3ba;
}
.footer-bottom a { color: #8fa3ba; }

/* ============ Cookie banner (RGPD / Consent Mode v2) ============ */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 620px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px 24px;
  z-index: 1000;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner h2 { font-size: 1.05rem; margin-bottom: 6px; }
.cookie-banner p { font-size: 0.9rem; color: var(--gray-700); margin-bottom: 14px; }
.cookie-banner__choices { display: none; margin: 0 0 14px; }
.cookie-banner.show-choices .cookie-banner__choices { display: block; }
.cookie-banner__choices label {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.9rem; padding: 7px 0; color: var(--gray-700);
}
.cookie-banner__choices input { width: 17px; height: 17px; margin-top: 2px; flex: none; }
.cookie-banner__choices strong { color: var(--navy); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner__actions .btn { padding: 10px 18px; font-size: 0.92rem; }
.btn--outline {
  background: var(--white); color: var(--navy);
  border-color: var(--gray-300);
}
.btn--outline:hover { border-color: var(--navy); }
.cookie-banner__link { font-size: 0.84rem; }

/* Bouton "gérer les cookies" dans le footer */
.cookie-manage-btn {
  background: none; border: none; padding: 0;
  color: #8fa3ba; text-decoration: underline; cursor: pointer;
  font: inherit; font-size: 0.85rem;
}
.cookie-manage-btn:hover { color: var(--yellow); }

/* ============ Language splash (racine) ============ */
.lang-splash {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--navy-dark) 0%, var(--navy) 55%, #1a4a80 100%);
  padding: 24px;
}
.lang-splash__card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 44px 40px;
  max-width: 460px;
  width: 100%;
  text-align: center;
}
.lang-splash__card .brand { color: var(--navy); justify-content: center; margin-bottom: 18px; font-size: 1.6rem; }
.lang-splash__card .brand strong { color: var(--yellow-dark); }
.lang-splash__buttons { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }

/* ============ Utility ============ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-2 { margin-bottom: 2rem; }
.small { font-size: 0.88rem; color: var(--gray-500); }
