/* SMART DRIVE FACILITIES — premium dark theme */
:root {
  --bg: #0a0a0b;
  --bg-elevated: #121214;
  --bg-card: #16161a;
  --bg-card-hover: #1c1c22;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent: #c9a227;          /* restrained gold from logo filmstrip */
  --accent-soft: rgba(201, 162, 39, 0.15);
  --accent-hover: #dbb83a;
  --blue-hint: #3b82c4;       /* subtle blue from van lights */
  --success: #34d399;
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --header-h: 72px;
  --font: "Inter", "Noto Sans", "Noto Sans Arabic", "Noto Sans SC", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
button, input, select, textarea {
  font: inherit;
  color: inherit;
}
.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #000;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand-logo {
  height: 48px;
  width: auto;
  border-radius: 8px;
}
.brand-text {
  display: none;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.brand-text span {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (min-width: 480px) {
  .brand-text { display: flex; }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.35rem;
}
.nav-desktop a {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-desktop a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Language selector */
.lang-wrap { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] {
  border-color: var(--border-strong);
  background: var(--bg-card);
}
.lang-btn .chev { opacity: 0.6; transition: transform 0.15s; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0.35rem;
  box-shadow: var(--shadow);
  display: none;
  max-height: 70vh;
  overflow: auto;
  z-index: 120;
}
.lang-menu.open { display: block; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: start;
}
.lang-option:hover, .lang-option[aria-selected="true"] {
  background: var(--accent-soft);
  color: var(--text);
}
.lang-option .flag { font-size: 1.05rem; line-height: 1; }
.lang-option .code {
  margin-inline-start: auto;
  font-size: 0.7rem;
  opacity: 0.55;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #111;
}
.btn-primary:hover { background: var(--accent-hover); color: #111; }
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.btn-soft {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}
.btn-soft:hover {
  background: rgba(201, 162, 39, 0.25);
  color: var(--accent-hover);
}
.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.8rem; }
.header-cta { display: none; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  cursor: pointer;
  color: var(--text);
}
.menu-toggle svg { width: 20px; height: 20px; }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 0.75rem 0 1rem;
}
.nav-mobile.open { display: block; }
.nav-mobile .container {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-mobile a {
  color: var(--text);
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
}
.nav-mobile a:hover { background: rgba(255,255,255,0.04); color: var(--accent); }
.nav-mobile .btn { margin-top: 0.5rem; }

@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none !important; }
  .brand-logo { height: 52px; }
}

/* Hero */
.hero {
  position: relative;
  padding: 3rem 0 4rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201, 162, 39, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(59, 130, 196, 0.1), transparent 50%),
    linear-gradient(180deg, #0e0e12 0%, var(--bg) 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
[dir="rtl"] .eyebrow::before { order: 2; }
.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  font-weight: 700;
}
.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 38rem;
  margin: 0 0 1.75rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-visual {
  display: flex;
  justify-content: center;
}
.hero-card {
  background: linear-gradient(160deg, #1a1a1f 0%, #0f0f12 100%);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  width: min(100%, 420px);
  position: relative;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(201,162,39,0.45), transparent 40%, rgba(59,130,196,0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero-logo {
  width: 100%;
  border-radius: 12px;
  background: #000;
}
.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.1rem;
}
.hero-meta div {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
}
.hero-meta strong {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.15rem;
}
.hero-meta span {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Sections */
section { padding: 4rem 0; }
.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0;
  color: var(--text-muted);
}

/* Services */
.services-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s, background 0.2s;
}
.service-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.service-icon svg { width: 24px; height: 24px; }
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  width: fit-content;
}
.service-card h3 {
  margin: 0.35rem 0 0.4rem;
  font-size: 1.35rem;
}
.service-card .lead {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}
.service-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  flex: 1;
}
.service-card li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.service-card li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--accent);
  margin-top: 2px;
}
.service-card .btn { margin-top: 0.5rem; align-self: flex-start; }

/* Why */
.why { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015), transparent); }
.why-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); }
}
.why-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.why-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.why-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}
.why-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Zones */
.zones-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .zones-grid { grid-template-columns: 1fr 1fr; }
}
.zone-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 1.6rem;
  min-height: 160px;
}
.zone-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
}
.zone-vtc::before {
  background: radial-gradient(circle at 100% 0%, rgba(201,162,39,0.2), transparent 55%);
}
.zone-convoy::before {
  background: radial-gradient(circle at 0% 0%, rgba(59,130,196,0.18), transparent 55%);
}
.zone-card > * { position: relative; }
.zone-card h3 { margin: 0 0 0.5rem; }
.zone-card p { margin: 0; color: var(--text-muted); }

/* Form */
.form-section {
  background: linear-gradient(180deg, rgba(201,162,39,0.04), transparent 40%);
}
.form-shell {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .form-shell { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}
.form-intro .hint {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  gap: 0.9rem;
}
@media (min-width: 560px) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}
.field .req { color: var(--accent); }
.field input,
.field select,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { min-height: 100px; resize: vertical; }
.field .hint-sm {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.field.error input,
.field.error select,
.field.error textarea {
  border-color: var(--danger);
}
.field-error {
  display: none;
  font-size: 0.75rem;
  color: var(--danger);
}
.field.error .field-error { display: block; }
.vehicle-field { display: none; }
.vehicle-field.show { display: flex; }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}
.form-status {
  margin-top: 0.85rem;
  font-size: 0.875rem;
  min-height: 1.25rem;
}
.form-status.error { color: var(--danger); }
.form-status.ok { color: var(--success); }

/* Contact */
.contact-grid {
  display: grid;
  gap: 0.9rem;
}
@media (min-width: 700px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}
.contact-card:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}
.contact-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.contact-card .icon svg { width: 20px; height: 20px; }
.contact-card strong { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.contact-card span { font-size: 0.95rem; word-break: break-word; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  background: #070708;
}
.footer-inner {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
  }
}
.footer-brand {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}
.footer-brand img {
  height: 56px;
  width: auto;
  border-radius: 10px;
}
.footer-brand p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  justify-content: flex-start;
}
@media (min-width: 700px) {
  .footer-meta { justify-content: flex-end; }
}
.footer-meta a { color: var(--text-muted); }
.footer-meta a:hover { color: var(--accent); }

/* Legal page */
.legal-page {
  min-height: 70vh;
  padding: 3rem 0 4rem;
}
.legal-page h1 { margin-top: 0; }
.legal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--text-muted);
  max-width: 48rem;
  display: grid;
  gap: 1.5rem;
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* RTL fine-tuning */
[dir="rtl"] .nav-desktop,
[dir="rtl"] .hero-actions,
[dir="rtl"] .header-actions,
[dir="rtl"] .form-actions,
[dir="rtl"] .footer-meta {
  flex-direction: row-reverse;
}
[dir="rtl"] .lang-menu { inset-inline-end: auto; inset-inline-start: 0; }
[dir="rtl"] .service-card li,
[dir="rtl"] .brand,
[dir="rtl"] .footer-brand {
  flex-direction: row-reverse;
}
[dir="rtl"] body { letter-spacing: 0; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* Legal page content */
.legal-intro {
  color: var(--text-muted);
  max-width: 48rem;
  margin: 0 0 1.5rem;
}
.legal-section h2 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  color: var(--text);
}
.legal-section p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section a { color: var(--accent); }
.legal-host-placeholder {
  border: 1px dashed rgba(201, 162, 39, 0.45);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
}
.legal-company-line {
  margin-top: 1.75rem;
  color: var(--text-dim);
  font-size: 0.875rem;
}
.footer-legal-line {
  width: 100%;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ===== Fleet / Nos véhicules ===== */
.fleet-section {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.fleet-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .fleet-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
.fleet-card {
  background: var(--surface, #141416);
  border: 1px solid rgba(212, 175, 95, 0.18);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.fleet-card:hover {
  border-color: rgba(212, 175, 95, 0.45);
  transform: translateY(-2px);
}
.fleet-card picture,
.fleet-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #0a0a0b;
}
.fleet-body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.fleet-body h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--gold, #d4af5f);
}
.fleet-body p {
  margin: 0;
  color: var(--text-muted, #b8b8bc);
  line-height: 1.55;
}
.legal-credit-links {
  margin: 0.75rem 0 0;
  padding-inline-start: 1.2rem;
  color: var(--text-muted, #b8b8bc);
}
.legal-credit-links a { color: var(--gold, #d4af5f); }
.legal-host-source {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted, #b8b8bc);
}
