/* ==========================================================================
   EV-WAVE — Design system
   Sobre, blanc, technique. Pas de couleurs vives.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --surface: #f6f7f8;
  --surface-2: #eef0f2;
  --border: #e3e5e9;
  --text: #12141a;
  --text-muted: #63666f;
  --text-faint: #9a9ca3;
  --accent: #1f3b57;      /* bleu graphite sobre */
  --accent-2: #3d6690;    /* variante plus claire pour hovers/accents */
  --accent-soft: #eef2f6; /* fond très pâle teinté accent */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(18, 20, 26, 0.04), 0 1px 1px rgba(18, 20, 26, 0.03);
  --shadow-md: 0 8px 24px rgba(18, 20, 26, 0.06), 0 2px 6px rgba(18, 20, 26, 0.04);
  --shadow-lg: 0 20px 60px rgba(18, 20, 26, 0.09);
  --container: 1180px;
  --nav-h: 76px;
  font-size: 16px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01" on;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

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

section { position: relative; }

/* ---------- Typography ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: var(--text);
}

h1 { font-size: clamp(2.1rem, 3.6vw, 3.4rem); line-height: 1.08; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.16; }
h3 { font-size: 1.28rem; line-height: 1.3; }
h4 { font-size: 1.05rem; margin-bottom: 8px; }

p { margin: 0 0 16px; color: var(--text-muted); }
.lead { font-size: 1.18rem; color: var(--text-muted); max-width: 640px; }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: #fff;
}
.btn-primary:hover { background: var(--accent); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--text); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- Header / Nav ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand .mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--text);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand .mark svg { width: 16px; height: 16px; }
.brand span.sub {
  font-weight: 400;
  color: var(--text-faint);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  display: block;
  margin-top: 1px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }

nav.primary {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav.primary > ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

nav.primary a.top-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 999px;
  transition: background 0.15s ease;
}
nav.primary a.top-link:hover { background: var(--surface); }
nav.primary a.top-link svg { width: 12px; height: 12px; opacity: 0.6; }

.nav-item { position: relative; }

.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 560px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.nav-item:hover .mega,
.nav-item:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-col h5 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin: 0 0 12px;
  font-weight: 600;
  padding: 0 10px;
}

.mega-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.mega-link:hover { background: var(--surface); }
.mega-link .ic {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mega-link .ic svg { width: 18px; height: 18px; color: var(--accent); }
.mega-link .tt { display: block; font-weight: 600; font-size: 0.9rem; color: var(--text); }
.mega-link .dd { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  align-items: center;
  justify-content: center;
}
.burger svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 84px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { margin-bottom: 22px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 36px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stats .stat b {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}
.hero-stats .stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Illustrations (SVG scenes / photos) ---------- */

.art-frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
.art-frame svg { width: 100%; height: auto; max-width: 460px; }

.art-frame.compact { min-height: 280px; padding: 28px; }

.art-frame.photo {
  padding: 0;
  overflow: hidden;
}
.art-frame.photo img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  border-radius: 19px;
  display: block;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0 0;
}
.photo-gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.photo-gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
.photo-gallery .art-frame { min-height: 200px; }

.wide-photo {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
  margin: 40px 0 0;
}

@media (max-width: 720px) {
  .photo-gallery { grid-template-columns: 1fr; }
}

/* ---------- Logo / trust strip ---------- */

.strip {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.strip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.strip-label {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.strip-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
}

/* ---------- Sections generic ---------- */

.section { padding: 100px 0; }
.section.tight { padding: 72px 0; }
.section.surface { background: var(--surface); }
.section.dark {
  background: var(--text);
  color: #fff;
}
.section.dark p { color: rgba(255,255,255,0.66); }
.section.dark h2 { color: #fff; }

/* ---------- Cards grid ---------- */

.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); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #d8dade; }

.card .ic {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card .ic svg { width: 24px; height: 24px; color: var(--accent); }

.card.link-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card.link-card .go {
  margin-top: auto;
  padding-top: 18px;
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--accent);
}
.card.link-card .go svg { width: 14px; height: 14px; transition: transform 0.15s ease; }
.card.link-card:hover .go svg { transform: translateX(3px); }

/* ---------- Vehicle picker (home) ---------- */

.vehicle-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.vehicle-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: left;
  background: #fff;
  transition: all 0.18s ease;
}
.vehicle-tile:hover {
  border-color: var(--text);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.vehicle-tile .ic-wrap {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.vehicle-tile .ic-wrap svg { width: 26px; height: 26px; color: var(--accent); }
.vehicle-tile h4 { margin-bottom: 6px; }
.vehicle-tile p { font-size: 0.88rem; margin-bottom: 0; }

/* ---------- Process / steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 0 24px 0 0;
  border-right: 1px solid var(--border);
}
.step:last-child { border-right: none; padding-right: 0; }
.step .num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  display: block;
}

/* ---------- Feature rows (alternating) ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-row + .feature-row { margin-top: 96px; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-art { order: 1; }

.feature-list { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text);
}
.feature-list svg {
  width: 18px; height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Table (specs) ---------- */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.spec-table th { color: var(--text-faint); font-weight: 500; width: 45%; }
.spec-table td { font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

/* ---------- Product cards ---------- */

.product-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  background: #fff;
}
.product-card .badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.team-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  background: #fff;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.avatar.photo {
  width: 88px; height: 88px;
  overflow: hidden;
  background: var(--surface);
}
.avatar.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card h3 { margin-bottom: 8px; }
.team-role {
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  display: inline-block;
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}
.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.skill-tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-2);
  background: var(--accent-soft);
  padding: 6px 11px;
  border-radius: var(--radius-sm);
}

/* ---------- CTA band ---------- */

.cta-band {
  border-radius: 24px;
  background: var(--text);
  color: #fff;
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.65); margin-bottom: 0; }
.cta-band .btn-primary { background: #fff; color: var(--text); }
.cta-band .btn-primary:hover { background: var(--surface); }

/* ---------- Breadcrumb / page header ---------- */

.page-head {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}
.page-head h1 { max-width: 760px; }
.page-head .lead { max-width: 680px; }
.crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 20px;
}
.crumbs a:hover { color: var(--text); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.contact-info-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .ic {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-item .ic svg { width: 20px; height: 20px; color: var(--accent); }
.contact-info-item h4 { margin-bottom: 3px; font-size: 0.95rem; }
.contact-info-item p { font-size: 0.88rem; margin-bottom: 0; }

form.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.field-note { font-size: 0.78rem; color: var(--text-faint); }

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
  background: var(--surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer-grid h5 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-grid ul { display: flex; flex-direction: column; gap: 11px; }
.footer-grid a { font-size: 0.9rem; color: var(--text-muted); }
.footer-grid a:hover { color: var(--text); }
.footer-brand p { max-width: 280px; font-size: 0.88rem; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Mobile ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse .feature-copy { order: 1; }
  .feature-row.reverse .feature-art { order: 2; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .photo-gallery.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .vehicle-tiles { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .step { border-right: none; padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  nav.primary, .nav-cta .btn-outline { display: none; }
  .burger { display: flex; }
  .container { padding: 0 20px; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 64px 0; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .vehicle-tiles { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 28px; flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

/* ---------- Mobile nav drawer ---------- */

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  padding: 24px 24px 40px;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer .drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.mobile-drawer nav ul { display: flex; flex-direction: column; }
.mobile-drawer nav a {
  display: block;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 1.02rem;
  font-weight: 500;
}
.mobile-drawer .sub-list a {
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-bottom: none;
}
.mobile-drawer .group-label {
  padding: 14px 4px 4px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  font-weight: 600;
}
