/* ============================================
   Serrurier Auto Montpellier — Design sombre
   ============================================ */

:root {
  --bg: #0b0d10;
  --bg-elevated: #14171b;
  --bg-card: #191d22;
  --border: #262b32;
  --text: #e9e8e4;
  --text-muted: #a3a9b3;
  --text-faint: #6b7280;
  --accent: #d4a53c;
  --accent-light: #e8c165;
  --accent-dark: #a67f27;
  --accent-contrast: #14110a;
  --success: #4caf7d;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font-head: 'Poppins', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-muted); }

ul { padding: 0; margin: 0; list-style: none; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 10px 16px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
  color: var(--accent-contrast);
  box-shadow: 0 6px 20px rgba(212, 165, 60, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(212, 165, 60, 0.35); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-light); }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.brand-icon {
  display: flex;
  color: var(--accent);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.brand-tagline { font-size: 12px; color: var(--text-faint); }

.primary-nav { display: flex; align-items: center; gap: 32px; }
.primary-nav ul { display: flex; gap: 28px; }
.primary-nav a:not(.btn) {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}
.primary-nav a:not(.btn):hover { color: var(--text); }
.primary-nav a.active { color: var(--accent-light); }
.primary-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(212, 165, 60, 0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at -10% 100%, rgba(212, 165, 60, 0.08), transparent 60%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-light);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(212, 165, 60, 0.1);
  border: 1px solid rgba(212, 165, 60, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--accent-light); }
.hero-lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.hero-trust-item svg { color: var(--accent); flex-shrink: 0; }

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.hero-visual .glow-key {
  color: var(--accent);
  opacity: 0.9;
  width: 46%;
  height: auto;
}
.hero-badge {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  background: rgba(11, 13, 16, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-badge svg { color: var(--success); flex-shrink: 0; }
.hero-badge strong { display: block; font-size: 14px; }
.hero-badge span { font-size: 12.5px; color: var(--text-faint); }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-alt { background: var(--bg-elevated); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); }
.section-head p { font-size: 16.5px; }
.section-head.left { margin-left: 0; text-align: left; }

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(212, 165, 60, 0.4); transform: translateY(-4px); }
.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(212, 165, 60, 0.12);
  color: var(--accent-light);
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 14.5px; margin-bottom: 0; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery-card {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.gallery-card:hover { border-color: rgba(212, 165, 60, 0.4); transform: translateY(-4px); }
.gallery-card img { display: block; width: 100%; height: 230px; object-fit: cover; }
.gallery-card figcaption { padding: 16px 20px; font-size: 14.5px; color: var(--text-muted); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--accent-light);
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; margin-bottom: 0; }

/* ---------- Vehicle types ---------- */
.vehicle-list { display: flex; flex-wrap: wrap; gap: 12px; }
.vehicle-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
}
.vehicle-chip svg { color: var(--accent); }

/* ---------- Why us / list with checks ---------- */
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-muted);
}
.check-list svg { color: var(--success); flex-shrink: 0; margin-top: 2px; }
.check-list strong { color: var(--text); display: block; margin-bottom: 2px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, #1c1710, #0f0d09);
  border: 1px solid rgba(212, 165, 60, 0.35);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { margin-bottom: 8px; font-size: 26px; }
.cta-banner p { margin-bottom: 0; }
.cta-banner-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Zones ---------- */
.zones-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.zone-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14.5px;
}
.zone-card svg { color: var(--accent); flex-shrink: 0; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 14px; margin-bottom: 0; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-row { display: flex; align-items: flex-start; gap: 16px; }
.contact-row .icon-badge {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(212, 165, 60, 0.12);
  color: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-row h3 { font-size: 15px; margin-bottom: 4px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.contact-row a, .contact-row .value { font-size: 17px; font-weight: 600; color: var(--text); }
.contact-row a:hover { color: var(--accent-light); }

.zone-visual {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 30% 20%, rgba(212, 165, 60, 0.12), transparent 55%),
    var(--bg-card);
  min-height: 320px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
}
.zone-visual-icon { width: 48px; height: 48px; color: var(--accent); }
.zone-visual h3 { font-size: 20px; margin-bottom: 0; }
.zone-visual p { margin-bottom: 6px; }

/* ---------- Breadcrumb / page hero (inner pages) ---------- */
.page-hero {
  padding: 56px 0 48px;
  background: linear-gradient(180deg, rgba(212, 165, 60, 0.06), transparent);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 12px; }
.page-hero p { font-size: 17px; max-width: 60ch; }
.breadcrumb { font-size: 13.5px; color: var(--text-faint); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-faint); }
.breadcrumb a:hover { color: var(--accent-light); }

/* ---------- Legal page ---------- */
.legal-content h2 { margin-top: 2em; font-size: 20px; }
.legal-content p, .legal-content li { color: var(--text-muted); }
.legal-content ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-elevated); border-top: 1px solid var(--border); padding-top: 64px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .brand-name { font-family: var(--font-head); font-weight: 700; font-size: 17px; margin: 12px 0 10px; }
.footer-text { font-size: 14px; max-width: 40ch; }
.footer-col h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); margin-bottom: 16px; }
.footer-links li, .footer-contact li { margin-bottom: 12px; }
.footer-links a { font-size: 14.5px; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent-light); }
.footer-contact li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-muted); }
.footer-contact svg { color: var(--accent); flex-shrink: 0; }
.footer-contact a { color: var(--text-muted); }
.footer-contact a:hover { color: var(--accent-light); }

.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0 90px; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: 13px; color: var(--text-faint); }

/* ---------- Mobile call bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
  color: var(--accent-contrast);
  font-weight: 700;
  font-size: 15px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 0;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.3);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .grid-3, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .zones-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 28px;
    gap: 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .primary-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .primary-nav ul { flex-direction: column; gap: 16px; }
  .nav-toggle { display: flex; }
  .nav-cta { justify-content: center; }
  .grid-3, .grid-2, .gallery-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .zones-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { flex-direction: column; text-align: center; padding: 36px 24px; }
  .cta-banner-actions { justify-content: center; }
  section { padding: 56px 0; }
  .mobile-call-bar { display: flex; }
  .footer-bottom { padding-bottom: 90px; }
}

@media (max-width: 460px) {
  .zones-grid { grid-template-columns: 1fr 1fr; }
  .hero-trust { flex-direction: column; gap: 14px; }
}
