/* ==========================================================================
   ScootLab — feuille de style principale
   Palette : encre profonde + vert "volt" électrique
   ========================================================================== */

:root {
  --ink:        #0d1321;   /* fond sombre principal */
  --ink-soft:   #1a2233;
  --ink-border: #2a3550;
  --volt:       #c8f542;   /* accent électrique */
  --volt-dark:  #9fd41f;
  --volt-ink:   #1d2607;
  --paper:      #f7f8f4;   /* fond clair des sections */
  --white:      #ffffff;
  --text:       #232a38;
  --text-soft:  #5b6474;
  --line:       #e4e7de;
  --danger:     #d64545;
  --ok:         #2e9e5b;
  --radius:     14px;
  --radius-lg:  22px;
  --shadow:     0 6px 24px rgba(13, 19, 33, .08);
  --shadow-lg:  0 18px 50px rgba(13, 19, 33, .16);
  --font-head:  "Space Grotesk", system-ui, sans-serif;
  --font-body:  "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -.015em; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

.container { width: min(1160px, 92%); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--volt); color: var(--volt-ink); padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--volt); color: var(--volt-ink);
  box-shadow: 0 4px 18px rgba(200, 245, 66, .35);
}
.btn-primary:hover { background: var(--volt-dark); }
.btn-ghost { border-color: var(--ink-border); color: var(--white); }
.btn-ghost:hover { border-color: var(--volt); color: var(--volt); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Topbar ---------- */
.topbar { background: var(--volt); color: var(--volt-ink); font-size: .85rem; font-weight: 600; }
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; }
.topbar-right { display: flex; gap: .6rem; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 19, 33, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .8rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-logo { width: 44px; height: 44px; flex: none; }
.logo-bg     { fill: var(--volt); }
.logo-stroke { stroke: var(--ink); stroke-width: 2.6; }
.logo-wheel  { fill: var(--ink); }
.logo-bolt   { stroke: var(--ink); stroke-width: 2.2; }
.brand-text {
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--white);
  letter-spacing: -.01em;
}
.brand-text em { font-style: normal; color: var(--volt); }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav > a:not(.btn) {
  color: #c6cddc; font-weight: 500; font-size: .95rem; position: relative; padding: .3rem 0;
}
.main-nav > a:not(.btn):hover { color: var(--white); }
.main-nav > a.active { color: var(--volt); }
.main-nav > a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--volt); border-radius: 2px;
}
.nav-cta { font-size: .88rem; padding: .65rem 1.2rem; }
.nav-phone { display: none; color: var(--volt); font-weight: 700; font-family: var(--font-head); }
.mobile-cta { display: none; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  padding: .5rem; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--white); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 75% 20%, rgba(200, 245, 66, .13), transparent 60%),
    var(--ink);
  color: #d7ddea; overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
  padding: 4.5rem 0 5rem;
}
.hero h1 { color: var(--white); }
.hero h1 .accent { color: var(--volt); }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--ink-soft); border: 1px solid var(--ink-border);
  color: var(--volt); font-weight: 600; font-size: .82rem;
  padding: .35rem .9rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.hero-lead { font-size: 1.12rem; max-width: 34rem; color: #aab3c5; }
.hero-actions { display: flex; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 2.8rem; flex-wrap: wrap; }
.hero-stat strong {
  display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--volt);
}
.hero-stat span { font-size: .85rem; color: #8c96ab; }
.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45)); }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-dark { background: var(--ink); color: #c6cddc; }
.section-dark h2 { color: var(--white); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-kicker {
  font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--volt-dark); display: block; margin-bottom: .6rem;
}
.section-dark .section-kicker { color: var(--volt); }
.section-sub { color: var(--text-soft); font-size: 1.05rem; }
.section-dark .section-sub { color: #8c96ab; }

/* ---------- Cartes services ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.8rem; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--ink); margin-bottom: 1.1rem; font-size: 1.5rem;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--text-soft); font-size: .95rem; margin-bottom: .8rem; }
.card-price { font-family: var(--font-head); font-weight: 700; color: var(--volt-dark); }
.card-link { font-weight: 600; font-size: .9rem; color: var(--ink); }
.card-link:hover { color: var(--volt-dark); }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step {
  background: var(--ink-soft); border: 1px solid var(--ink-border); border-radius: var(--radius-lg);
  padding: 1.6rem; position: relative;
}
.step-num {
  font-family: var(--font-head); font-weight: 700; font-size: 2.2rem; color: var(--volt);
  opacity: .9; line-height: 1;
}
.step h3 { color: var(--white); margin: .8rem 0 .3rem; font-size: 1.05rem; }
.step p { font-size: .9rem; color: #8c96ab; margin: 0; }

/* ---------- Marques ---------- */
.brands-row {
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center;
}
.brand-pill {
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: .55rem 1.3rem; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); color: var(--text-soft);
}

/* ---------- Avis ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.review {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.review-stars { color: #f5b301; letter-spacing: 2px; margin-bottom: .6rem; }
.review p { font-size: .95rem; color: var(--text); }
.review footer { font-size: .85rem; color: var(--text-soft); font-weight: 600; }

/* ---------- Bandeau CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--volt), #a8e02b);
  border-radius: var(--radius-lg); padding: 3rem; text-align: center; color: var(--volt-ink);
}
.cta-band h2 { color: var(--volt-ink); }
.cta-band p { max-width: 32rem; margin: 0 auto 1.5rem; font-weight: 500; }

/* ---------- Page hero (pages internes) ---------- */
.page-hero { background: var(--ink); color: #aab3c5; padding: 3.2rem 0; }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { max-width: 38rem; margin: 0; }

/* ---------- Tableau tarifs ---------- */
.price-table { width: 100%; border-collapse: collapse; background: var(--white);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .price-table td { padding: 1rem 1.3rem; text-align: left; }
.price-table thead th {
  background: var(--ink); color: var(--white); font-family: var(--font-head);
  font-size: .85rem; letter-spacing: .05em; text-transform: uppercase;
}
.price-table tbody tr { border-top: 1px solid var(--line); }
.price-table tbody tr:hover { background: #fbfcf7; }
.price-table .price { font-family: var(--font-head); font-weight: 700; color: var(--ink); white-space: nowrap; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); }

/* ---------- Boutique ---------- */
.shop-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter-btn {
  font-family: var(--font-head); font-weight: 600; font-size: .88rem;
  padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer;
  background: var(--white); border: 1.5px solid var(--line); color: var(--text-soft);
  transition: .15s;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: var(--volt); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.product {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-img {
  aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 3rem;
  background: linear-gradient(150deg, #eef2e4, #f9faf5);
  position: relative; overflow: hidden;
}
.product-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 8%;
  mix-blend-mode: multiply; /* fond blanc des photos fondu dans la carte */
}
.product-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--volt-dark); }
.product h3 { font-size: 1.02rem; margin: .3rem 0 .35rem; }
.product-compat { font-size: .82rem; color: var(--text-soft); margin: 0 0 .9rem; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.product-price { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.stock { font-size: .78rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; }
.stock-in  { background: #e5f5eb; color: var(--ok); }
.stock-cmd { background: #fdf3e0; color: #b47b12; }

/* ---------- Formulaires ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.2rem; box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-field { display: flex; flex-direction: column; gap: .35rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: .9rem; }
.form-field label .req { color: var(--danger); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; padding: .75rem .95rem; border: 1.5px solid var(--line);
  border-radius: var(--radius); background: var(--paper); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--volt-dark); box-shadow: 0 0 0 3px rgba(200, 245, 66, .3);
}
.form-hint { font-size: .8rem; color: var(--text-soft); }
.honeypot { position: absolute; left: -9999px; opacity: 0; }

.alert { border-radius: var(--radius); padding: 1rem 1.3rem; margin-bottom: 1.5rem; font-weight: 500; }
.alert-error { background: #fdeaea; color: #a33232; border: 1px solid #f3c6c6; }
.alert-ok    { background: #e5f5eb; color: #1f6e40; border: 1px solid #bfe5cd; }

/* ---------- Prise de RDV ---------- */
.rdv-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.rdv-aside {
  background: var(--ink); color: #c6cddc; border-radius: var(--radius-lg); padding: 1.8rem;
  position: sticky; top: 100px;
}
.rdv-aside h3 { color: var(--white); }
.rdv-aside ul { list-style: none; padding: 0; margin: 0; }
.rdv-aside li { padding: .5rem 0; border-bottom: 1px solid var(--ink-border); font-size: .92rem; display: flex; gap: .6rem; }
.rdv-aside li:last-child { border-bottom: 0; }
.rdv-aside .volt { color: var(--volt); }

.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: .6rem; margin-top: .6rem; }
.slot {
  font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  padding: .6rem .4rem; text-align: center; border-radius: 10px; cursor: pointer;
  background: var(--paper); border: 1.5px solid var(--line); transition: .12s;
}
.slot:hover { border-color: var(--volt-dark); }
.slot.selected { background: var(--volt); border-color: var(--volt); color: var(--volt-ink); }
.slots-empty { color: var(--text-soft); font-size: .92rem; padding: .6rem 0; }

.confirm-box {
  text-align: center; max-width: 34rem; margin-inline: auto;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 3rem 2.5rem; box-shadow: var(--shadow-lg);
}
.confirm-check {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 1.2rem;
  background: var(--volt); display: grid; place-items: center; font-size: 2rem;
}
.confirm-ref {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  background: var(--ink); color: var(--volt); padding: .45rem 1.1rem; border-radius: 999px;
  margin: .6rem 0 1.2rem;
}
.confirm-details { text-align: left; background: var(--paper); border-radius: var(--radius); padding: 1.2rem 1.5rem; margin-bottom: 1.5rem; }
.confirm-details dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-soft); font-weight: 700; }
.confirm-details dd { margin: 0 0 .8rem; font-weight: 600; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.info-card {
  background: var(--ink); color: #c6cddc; border-radius: var(--radius-lg); padding: 2rem;
}
.info-card h3 { color: var(--white); }
.info-card a { color: var(--volt); }
.info-row { display: flex; gap: .9rem; padding: .8rem 0; border-bottom: 1px solid var(--ink-border); }
.info-row:last-of-type { border-bottom: 0; }
.info-row .ico { font-size: 1.3rem; }
.map-placeholder {
  margin-top: 1.4rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--ink-border);
}
.map-placeholder iframe { display: block; width: 100%; height: 240px; border: 0; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: .8rem; padding: 0 1.3rem; box-shadow: var(--shadow);
}
.faq summary {
  font-family: var(--font-head); font-weight: 700; padding: 1.1rem 0; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--volt-dark); transition: .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-soft); padding-bottom: 1.1rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #8c96ab; margin-top: 4rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem;
}
.footer-col h3 {
  color: var(--white); font-size: .95rem; text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55rem; font-size: .92rem; }
.footer-col a:hover { color: var(--volt); }
.footer-hours li { display: flex; justify-content: space-between; gap: 1rem; }
.footer-brand p { font-size: .92rem; }
.brand-text-footer { font-size: 1.35rem; display: inline-block; margin-bottom: .8rem; }
address { font-style: normal; font-size: .92rem; line-height: 1.9; }
.footer-bottom { border-top: 1px solid var(--ink-border); padding: 1.1rem 0; font-size: .82rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .card-grid, .reviews { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; padding: 3rem 0; }
  .hero-visual { max-width: 420px; }
  .rdv-layout { grid-template-columns: 1fr; }
  .rdv-aside { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar-inner { justify-content: center; }
  .topbar-inner > span:first-child { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 0; top: 0; z-index: 60;
    background: var(--ink); flex-direction: column; justify-content: center;
    gap: 2rem; font-size: 1.2rem; transform: translateX(100%); transition: transform .3s ease;
  }
  .main-nav.open { transform: none; }
  .main-nav .nav-phone { display: inline-flex; }
  .nav-toggle { position: relative; z-index: 70; }
  .card-grid, .reviews, .steps { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .cta-band { padding: 2rem 1.4rem; }
  .cta-band h2 { font-size: 1.45rem; }
  .form-card { padding: 1.5rem; }

  /* Héro compact : l'illustration cède la place au contenu */
  .hero-visual { display: none; }
  .hero-inner { gap: 0; padding: 2.6rem 0 3rem; }
  .hero-lead { font-size: 1rem; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 1rem; justify-content: space-between; margin-top: 2.2rem; }
  .hero-stat strong { font-size: 1.35rem; }
  .hero-stat span { font-size: .78rem; }

  /* Sections et tableaux resserrés */
  .section { padding: 3rem 0; }
  .page-hero { padding: 2.2rem 0; }
  .price-table th, .price-table td { padding: .7rem .85rem; font-size: .9rem; }
  .confirm-box { padding: 2rem 1.3rem; }
  .rdv-aside { padding: 1.4rem; }

  /* Barre d'action fixe : appeler / réserver toujours à portée de pouce */
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom, 0px));
    background: rgba(13, 19, 33, .96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--ink-border);
  }
  .mobile-cta .btn { width: 100%; padding: .75rem .5rem; font-size: .95rem; }
  body { padding-bottom: 74px; }
}
@media (max-width: 440px) {
  .product-grid { grid-template-columns: 1fr; }
}

.footer-note { font-size: .8rem; color: #6b7488; font-style: italic; }
