/* ===========================================================
   SOS AUTO RÉPARATION — Design tokens
   Palette : asphalte + gyrophare ambre + plaque EU
   Display : Oswald / Corps : Work Sans / Data : IBM Plex Mono
   =========================================================== */

:root {
  --ink: #12151b;
  --ink-2: #191d25;
  --ink-3: #21262f;
  --steel-line: #2b3140;
  --amber: #ffb020;
  --amber-deep: #e08e0a;
  --eu-blue: #1d3f91;
  --white: #eef0f4;
  --muted: #9aa3b2;

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 10px;
  --wrap: 1180px;
}

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

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

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

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: 0.2px;
}

h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 16px; color: var(--muted); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 10px;
}
.eyebrow--dark { color: var(--eu-blue); }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.btn--primary {
  background: var(--amber);
  color: #191204;
}
.btn--primary:hover { background: var(--amber-deep); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--steel-line);
}
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn--full { width: 100%; justify-content: center; }

/* ===== License-plate badge (signature motif) ===== */
.plate-badge {
  display: inline-flex;
  align-items: stretch;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 0 rgba(0,0,0,0.25);
  border: 1px solid #0d1b4a;
}
.plate-band {
  background: var(--eu-blue);
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}
.plate-number {
  background: var(--white);
  color: #14161c;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  display: flex;
  align-items: center;
}
.plate-badge--sm .plate-number { font-size: 0.85rem; padding: 6px 12px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 21, 27, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--steel-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  line-height: 1;
  display: flex;
  flex-direction: column;
}
.logo-sub {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--amber);
  margin-top: 3px;
}
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--white); }
.header-plate { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 130px 0 90px;
  background:
    radial-gradient(ellipse at 78% 15%, rgba(255,176,32,0.10), transparent 55%),
    repeating-linear-gradient(120deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 90px),
    linear-gradient(180deg, #14171d 0%, var(--ink) 55%);
  border-bottom: 1px solid var(--steel-line);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  margin-bottom: 22px;
}
.hero-lead {
  font-size: 1.08rem;
  max-width: 620px;
  color: #c3c9d4;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 30px 0 36px; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
  border: 1px solid var(--steel-line);
  border-radius: 999px;
  padding: 7px 14px;
  letter-spacing: 0.02em;
}

/* Beacon (rotating tow-truck light) */
.beacon {
  position: absolute;
  top: -60px;
  right: -40px;
  width: 420px;
  height: 420px;
  z-index: 1;
  pointer-events: none;
}
.beacon-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,176,32,0.35) 0%, rgba(255,176,32,0.08) 45%, transparent 70%);
  animation: pulse 3.2s ease-in-out infinite;
}
.beacon-lamp {
  position: absolute;
  top: 150px;
  right: 150px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 24px 6px rgba(255,176,32,0.7);
}
.beacon-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255,176,32,0.22), transparent 35%, transparent 65%, rgba(255,176,32,0.22));
  animation: spin 4.5s linear infinite;
  mix-blend-mode: screen;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* ===== Services ===== */
.services { padding: 100px 0; background: var(--ink-2); }
.services h2 { max-width: 560px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--steel-line);
  border: 1px solid var(--steel-line);
  margin-top: 46px;
}
.service-card {
  background: var(--ink-2);
  padding: 34px 28px;
  transition: background 0.2s ease;
}
.service-card:hover { background: var(--ink-3); }
.service-icon { width: 40px; height: 40px; margin-bottom: 18px; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.93rem; margin: 0; }

/* ===== Zone / route ===== */
.zone { padding: 100px 0; background: var(--ink); }
.zone-lead { max-width: 560px; }
.route {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 56px;
  flex-wrap: wrap;
}
.route-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 110px;
  text-align: center;
}
.route-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255,176,32,0.15);
}
.route-node--origin .route-dot {
  width: 18px;
  height: 18px;
  background: var(--ink);
  border: 3px solid var(--amber);
}
.route-flag { font-size: 1.8rem; }
.route-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--white);
  line-height: 1.4;
}
.route-label small { color: var(--muted); font-size: 0.72rem; }
.route-line {
  flex: 1;
  min-width: 40px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--steel-line) 0 8px, transparent 8px 14px);
  margin: 0 4px;
  align-self: flex-start;
  margin-top: 6px;
}

/* ===== Process ===== */
.process { padding: 100px 0; background: var(--ink-2); border-top: 1px solid var(--steel-line); border-bottom: 1px solid var(--steel-line); }
.process-list {
  list-style: none;
  margin: 46px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.process-list li { display: flex; flex-direction: column; gap: 14px; }
.process-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--amber);
  border-bottom: 1px solid var(--steel-line);
  padding-bottom: 12px;
}
.process-list h3 { margin-bottom: 6px; font-size: 1.05rem; }
.process-list p { font-size: 0.9rem; margin: 0; }

/* ===== Atelier ===== */
.atelier { padding: 100px 0; background: var(--ink); }
.atelier-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}
.atelier-text p { max-width: 480px; }
.atelier-visual { display: flex; justify-content: center; }
.atelier-visual svg { width: 220px; height: 220px; }

/* ===== Contact ===== */
.contact { padding: 100px 0; background: var(--ink-2); border-top: 1px solid var(--steel-line); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}
.contact-lead { max-width: 420px; }
.contact-plate { margin: 20px 0 30px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: 0.94rem; color: var(--white); }
.contact-list svg { flex-shrink: 0; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--ink-3);
  border: 1px solid var(--steel-line);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--steel-line);
  border-radius: 6px;
  padding: 12px 14px;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--amber);
  outline: none;
}

/* ===== Footer ===== */
.site-footer { padding: 44px 0; border-top: 1px solid var(--steel-line); }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-address, .footer-copy {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}
.footer-copy { font-family: var(--font-mono); font-size: 0.72rem; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 960px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .atelier-inner { grid-template-columns: 1fr; text-align: left; }
  .atelier-visual { order: -1; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--steel-line);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--steel-line);
  }
  .nav-toggle { display: flex; }
  .header-plate { display: none; }
  .service-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .route { flex-direction: column; align-items: flex-start; gap: 22px; }
  .route-line { display: none; }
  .hero { padding: 110px 0 70px; }
  .beacon { width: 300px; height: 300px; top: -40px; right: -80px; }
}

@media (prefers-reduced-motion: reduce) {
  .beacon-sweep, .beacon-glow { animation: none; }
  html { scroll-behavior: auto; }
}
