/* ============================================================
   Garage Elite-Auto DRN Sarl — Système de design
   ============================================================ */

:root {
  --ink: #1B1F23;
  --ink-soft: #3A4048;
  --paper: #F5F4F1;
  --paper-alt: #EAE7E0;
  --signal: #D62828;
  --signal-dark: #A81E1E;
  --steel: #35566B;
  --steel-light: #E8EEF1;
  --line: #D8D5CE;
  --white: #FFFFFF;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 4px;
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

a { color: inherit; }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 0.4em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.8em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--signal);
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--signal); color: var(--white); }
.btn-primary:hover { background: var(--signal-dark); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-outline-light { background: transparent; border-color: var(--paper); color: var(--paper); }
.btn-outline-light:hover { background: var(--paper); color: var(--ink); }
.btn-block { width: 100%; }

/* ---------------- Language switcher (dropdown) ---------------- */
.lang-dropdown {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.lang-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  padding: 8px 12px;
  cursor: pointer;
  text-transform: uppercase;
}
.lang-dropdown-toggle::after { content: "▾"; font-size: 0.7rem; color: var(--ink-soft); }
.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 140px;
  box-shadow: 0 12px 24px rgba(27,31,35,0.12);
  z-index: 50;
  overflow: hidden;
}
.lang-dropdown.open .lang-dropdown-menu { display: block; }
.lang-dropdown-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  text-align: left;
  padding: 10px 14px;
  cursor: pointer;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.lang-dropdown-menu button:hover, .lang-dropdown-menu button.active { background: var(--steel-light); color: var(--ink); }

/* ---------------- Hero slider (3 bannières) ---------------- */
.hero-slider {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
@media (prefers-reduced-motion: reduce) {
  .slider-track { transition: none; }
}
.slide {
  min-width: 100%;
  padding: 96px 0 80px;
  position: relative;
}
.slide::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(214,40,40,0.25), transparent 70%);
  pointer-events: none;
}
.slide .container { position: relative; z-index: 1; }
.slide p.lead { color: #C9CDD2; font-size: 1.1rem; max-width: 50ch; }
.slide .eyebrow { }

.slider-controls {
  position: absolute;
  bottom: 24px;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 2;
}
.slider-dots { display: flex; gap: 8px; }
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.slider-dot.active { background: var(--signal); border-color: var(--signal); }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(245,244,241,0.12);
  border: 1px solid rgba(245,244,241,0.35);
  color: var(--paper);
  width: 42px; height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  z-index: 2;
}
.slider-arrow:hover { background: rgba(245,244,241,0.24); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }
@media (max-width: 700px) { .slider-arrow { display: none; } }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo span { color: var(--signal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); border-color: var(--signal); }

.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-cta .btn { padding: 11px 18px; font-size: 0.72rem; }

.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 12px 24px rgba(27,31,35,0.1);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: 10px 12px; border-radius: 4px; border: none; }
.dropdown a:hover { background: var(--steel-light); border: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

.mobile-only-cta { display: none; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-cta #nav-client-area, .nav-cta > a.btn-primary { display: none; }
  .nav-toggle { display: block; }
  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }
  body.nav-open .dropdown { display: block; position: static; border: none; box-shadow: none; padding-left: 12px; }
  body.nav-open .mobile-only-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
}

@media (max-width: 380px) {
  .lang-dropdown-toggle { padding: 8px 9px; font-size: 0.7rem; }
  .logo { font-size: 1.25rem; }
}

/* ---------------- Hero ---------------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 96px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(214,40,40,0.25), transparent 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: end;
  position: relative;
}
.hero p.lead { color: #C9CDD2; font-size: 1.1rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------------- Ticket (signature element) ---------------- */
.ticket {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  font-family: var(--font-mono);
}
.ticket::before, .ticket::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--ink);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.ticket::before { left: -12px; }
.ticket::after { right: -12px; }
.ticket-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line);
  padding: 8px 0;
  font-size: 0.85rem;
}
.ticket-row:last-of-type { border-bottom: none; }
.ticket-label { color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.72rem; }
.ticket-stamp {
  position: absolute;
  top: 18px;
  right: 24px;
  border: 3px solid var(--signal);
  color: var(--signal);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  transform: rotate(8deg);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

/* ---------------- Sections ---------------- */
.section { padding: 80px 0; }
.section-alt { background: var(--paper-alt); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark p { color: #C9CDD2; }
.section-head { max-width: 640px; margin-bottom: 48px; }

.divider {
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 24px, transparent 24px 32px);
  margin: 0;
}

/* ---------------- Grids / Cards ---------------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 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(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card-service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  border-top: 4px solid var(--signal);
}
.card-service .code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}

.vehicle-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.vehicle-card .thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--steel), var(--ink));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.vehicle-card .body { padding: 20px; }
.vehicle-card .price {
  font-family: var(--font-mono);
  color: var(--signal);
  font-weight: 700;
  font-size: 1.15rem;
}
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--steel-light);
  color: var(--steel);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ---------------- Hours table ---------------- */
.hours-table { font-family: var(--font-mono); font-size: 0.92rem; width: 100%; border-collapse: collapse; }
.hours-table td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours-table td:last-child { text-align: right; color: var(--ink-soft); }

/* ---------------- Forms ---------------- */
.form-group { margin-bottom: 18px; }
label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  color: var(--ink-soft);
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.checkbox-line { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-line input { width: auto; margin-top: 4px; }
.checkbox-line label { text-transform: none; font-family: var(--font-body); font-size: 0.9rem; color: var(--ink-soft); }

.form-msg { padding: 12px 14px; border-radius: var(--radius); font-size: 0.9rem; margin-bottom: 16px; display: none; }
.form-msg.show { display: block; }
.form-msg.success { background: #E4F3E8; color: #1E6B3A; }
.form-msg.error { background: #FCE7E7; color: var(--signal-dark); }

/* Tabs */
.tabs { display: flex; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.tab-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-mono); text-transform: uppercase; font-size: 0.8rem;
  letter-spacing: 0.05em; padding: 12px 4px; color: var(--ink-soft);
  border-bottom: 2px solid transparent; margin-right: 20px;
}
.tab-btn.active { color: var(--ink); border-color: var(--signal); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: #8A9099; margin-bottom: 16px; font-family: var(--font-mono); font-weight: 500;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; color: #C9CDD2; font-size: 0.92rem; }
.site-footer a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid #333A42;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #8A9099;
}
.footer-bottom a { color: #8A9099; }

.social-icons { display: flex; gap: 12px; margin-top: 18px; }
.social-icons a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #333A42;
  border-radius: 50%;
  color: #C9CDD2;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.social-icons a:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
.social-icons svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------------- Install app banner (PWA) ---------------- */
.install-banner {
  position: fixed;
  bottom: 90px; left: 24px; right: 24px;
  max-width: 420px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: none;
  align-items: center;
  gap: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  z-index: 199;
}
.install-banner.show { display: flex; }
.install-banner p { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.install-banner .btn { flex-shrink: 0; padding: 10px 16px; font-size: 0.75rem; }
.install-banner-close { background: none; border: none; cursor: pointer; color: var(--ink-soft); font-size: 1.1rem; padding: 0 4px; }

/* ---------------- Cookie banner ---------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 18px 24px;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.2);
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; color: #C9CDD2; font-size: 0.88rem; max-width: 640px; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ---------------- Page hero (inner pages) ---------------- */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 48px;
}
.page-hero p { color: #C9CDD2; max-width: 60ch; }

@media (max-width: 600px) {
  .slide { padding: 64px 0 48px; }
  .page-hero { padding: 48px 0 32px; }
  .section { padding: 56px 0; }
  .hero-actions .btn, .btn-block { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}

/* Breadcrumb-ish util */
.small-caps {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.status-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.status-pending { background: #FCEFD8; color: #8A5A00; }
.status-confirmed { background: #E4F3E8; color: #1E6B3A; }
.status-cancelled { background: #FCE7E7; color: var(--signal-dark); }
