/* ==========================================================================
   Trial & Compagnie — feuille de style principale
   Sobre, clair, aéré : fond blanc cassé, texte noir, touches de rouge.
   ========================================================================== */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --alt: #f2f1ed;
  --ink: #111111;
  --ink-2: #3a3a3a;
  --muted: #6e6e73;
  --line: #e3e1db;
  --red: #c4161c;
  --red-dark: #9e1015;
  --radius: 22px;
  --radius-sm: 12px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Bandeau démonstration ---------- */
.demo-bar {
  background: var(--ink); color: #f5f5f5;
  font-size: 13px; text-align: center; padding: 8px var(--gutter);
  letter-spacing: .01em;
}
.demo-bar strong { color: #ff6b6b; font-weight: 600; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, .82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-name { font-weight: 650; letter-spacing: -.01em; font-size: 17px; }
.logo-img { height: 46px; width: auto; }
.logo-img--lg { height: 84px; }
@media (max-width: 400px) { .site-header .logo-img { height: 38px; } }

/* Emplacement réservé au logo officiel */
.logo-slot {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; min-width: 72px; padding: 0 10px;
  border: 1.5px dashed #b9b6ad; border-radius: 8px;
  font-size: 10px; line-height: 1.1; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); text-align: center; background: var(--surface);
}
.logo-slot--lg { height: 56px; min-width: 120px; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-size: 15px; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--alt); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.main-nav a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; width: 16px; margin: 3px auto 0;
  background: var(--red); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; cursor: pointer; text-decoration: none;
  transition: background .2s;
}
.icon-btn:hover { background: var(--alt); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  display: none; align-items: center; justify-content: center;
}
.cart-count.has-items { display: inline-flex; }
.menu-toggle { display: none; }

/* Réseaux sociaux dans l'en-tête (ordinateur) et dans le menu (téléphone) */
.header-social .social { margin: 0 6px 0 0; gap: 6px; flex-wrap: nowrap; }
.header-social .social-link { width: 32px; height: 32px; }
.header-social .social-link svg { width: 17px; height: 17px; }
.nav-social { display: none; }
@media (min-width: 861px) {
  .header-inner { gap: 16px; }
  .main-nav ul { gap: 2px; }
  .main-nav a { padding: 8px 12px; }
  .header-actions { gap: 2px; }
}
@media (max-width: 1240px) { .header-social { display: none; } }
@media (min-width: 861px) and (max-width: 1100px) { .main-nav a { padding: 8px 7px; font-size: 14px; } }
@media (min-width: 861px) and (max-width: 960px) {
  .main-nav a { padding: 8px 5px; }
  .site-header .logo-img { height: 40px; }
  .header-actions .icon-btn { width: 38px; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
  }
  .main-nav.is-open { max-height: 80vh; }
  .main-nav ul { flex-direction: column; padding: 8px var(--gutter) 24px; gap: 0; }
  .main-nav a { font-size: 22px; font-weight: 600; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .main-nav a:hover { background: transparent; }
  .main-nav a[aria-current="page"] { color: var(--red); }
  .main-nav a[aria-current="page"]::after { display: none; }
  .nav-social { display: block; padding: 0 var(--gutter) 24px; }
  .nav-social .social { margin: 0; }
  .main-nav .nav-social .social-link {
    display: inline-flex; font-size: 15px; font-weight: 600; padding: 0 18px 0 14px;
    border: 0; border-radius: 999px; height: 44px; color: #fff;
  }
  .main-nav .nav-social .social-link:hover { background: var(--brand); }
  .header-actions { margin-left: auto; }
}

/* ---------- Typographie ---------- */
.eyebrow {
  display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--red); margin: 0 0 14px;
}
h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.06; font-weight: 700; }
.display { font-size: clamp(2.6rem, 7vw, 5.6rem); letter-spacing: -.035em; }
.h1 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); }
.h2 { font-size: clamp(1.8rem, 3.8vw, 3rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -.015em; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--ink-2); line-height: 1.45; max-width: 40ch; }
.muted { color: var(--muted); }
.red { color: var(--red); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #333; }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn[aria-disabled="true"], .btn:disabled {
  background: var(--alt); color: #9a9890; border-color: var(--line); cursor: not-allowed; transform: none;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }
.link-arrow { color: var(--red); font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " ›"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-alt { background: var(--surface); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .h2 + p { margin-top: 16px; }

.page-hero { padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(32px, 5vw, 56px); }
.page-hero .lead { margin-top: 18px; }

/* ---------- Zones photo réservées ---------- */
.ph {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,.025) 14px 15px),
    var(--alt);
  border: 1.5px dashed #c9c6bd;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3;
  color: var(--muted);
}
.ph::after {
  content: attr(data-label);
  max-width: 80%; text-align: center;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.85);
}
.ph.has-photo { border: 0; background: var(--alt); }
.ph.has-photo::after { display: none; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--wide { aspect-ratio: 16 / 7; }
.ph--hero { aspect-ratio: 16 / 8; border-radius: calc(var(--radius) + 6px); }
.ph--square { aspect-ratio: 1 / 1; }
.ph--tall { aspect-ratio: 4 / 5; }
@media (max-width: 640px) {
  .ph--hero, .ph--wide { aspect-ratio: 4 / 3; }
}

/* ---------- Accueil ---------- */
.hero { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(40px, 6vw, 72px); text-align: center; }
.hero .display { margin: 0 auto; max-width: 14ch; }
.hero .lead { margin: 22px auto 34px; }
.hero-media { margin-top: clamp(40px, 6vw, 72px); }

.tiles { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.tile {
  display: flex; flex-direction: column; gap: 20px;
  background: var(--surface); border-radius: var(--radius); padding: 28px;
  text-decoration: none; border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(0,0,0,.25); }
.tile .ph { border-radius: var(--radius-sm); }
.tile p { margin: 8px 0 0; color: var(--muted); }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split .lead { margin: 18px 0 28px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--surface); padding: 32px 28px; }
.fact strong { display: block; font-size: 20px; letter-spacing: -.01em; margin-bottom: 6px; }
.fact span { color: var(--muted); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* Badge officiel posé en pastille sur la photo du garage */
.media-badge { position: relative; }
.badge-sticker {
  position: absolute; left: -28px; bottom: -28px; width: 160px; height: auto;
  background: var(--surface); border-radius: 50%; padding: 10px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.35);
  transform: rotate(-8deg);
}
@media (max-width: 860px) { .badge-sticker { left: auto; right: 16px; bottom: -24px; width: 120px; } }

.cta-mark { height: 70px; width: auto; margin: 0 auto 22px; opacity: .95; }

.cta-band { background: var(--ink); color: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 72px); }
.cta-band .lead { color: #c9c9c9; }
.cta-band .btn-ghost { border-color: #fff; color: #fff; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--ink); }
.cta-band .btn[aria-disabled="true"] { background: #2a2a2a; color: #8a8a8a; border-color: #3a3a3a; }

/* ---------- Notice de démonstration ---------- */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid #f0c9ca; background: #fdf3f3; color: #5b1215;
  padding: 16px 20px; border-radius: var(--radius-sm); font-size: 15px;
}
.notice::before {
  content: "Démo"; flex-shrink: 0;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px; margin-top: 1px;
}
.notice p { margin: 0; }

/* ---------- Filtres / recherche ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 8px 16px; font-size: 15px; cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.search {
  flex: 1 1 260px; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; height: 46px;
}
.search:focus-within { border-color: var(--ink); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; height: 100%; font-size: 16px; }
.select {
  height: 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  padding: 0 40px 0 18px; font-size: 15px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23111' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
@media (max-width: 640px) { .toolbar .select { flex: 1 1 calc(50% - 6px); min-width: 0; } }
.result-count { color: var(--muted); font-size: 15px; margin: 0 0 20px; }

/* ---------- Onglets Neuf / Occasion (boutique) ---------- */
.segmented { display: inline-flex; gap: 4px; padding: 4px; margin-top: 28px; border-radius: 999px; background: var(--alt); border: 1px solid var(--line); max-width: 100%; }
.segmented button {
  border: 0; background: transparent; border-radius: 999px; padding: 10px 20px; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: background .25s var(--ease), color .25s, box-shadow .25s;
}
.segmented button span { font-weight: 500; color: var(--muted); }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px -3px rgba(0,0,0,.2); }
@media (max-width: 640px) {
  .segmented { display: flex; width: 100%; }
  .segmented button { flex: 1; padding: 10px 6px; font-size: 14px; line-height: 1.2; white-space: normal; }
  .segmented button span { display: none; }
}
.badge-occasion { background: var(--ink); color: #fff; }

/* ---------- Recherche par véhicule (boutique) ---------- */
.vehicle {
  margin-top: 28px; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.vehicle-head p { margin: 8px 0 0; font-size: 15px; }
.vehicle-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; margin-top: 20px; }
.vehicle-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vehicle-field span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.vehicle-field .select { width: 100%; }
.vehicle-field .select:disabled { opacity: .5; cursor: not-allowed; }
.vehicle-status { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--alt); font-size: 15px; }
.vehicle-status strong { color: var(--ink); }
@media (max-width: 760px) {
  .vehicle { padding: 22px 18px; }
  .vehicle-fields { grid-template-columns: 1fr; }
  .vehicle-fields .btn { justify-self: start; }
}
.badge-ok { background: #e8f3ec; color: #1d6b3a; }
.card-compat { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.stock-line { margin: 6px 0 0; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.stock-line::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock-ok { color: #1d6b3a; }
.stock-low { color: #b45309; }
.stock-out { color: var(--muted); }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }

/* ---------- Cartes catalogue ---------- */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(0,0,0,.28); }
.card .ph { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-meta { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.card-title { font-size: 19px; font-weight: 650; letter-spacing: -.01em; margin: 0; line-height: 1.25; }
.card-price { margin-top: auto; padding-top: 12px; font-weight: 600; }
.card-actions { padding: 0 22px 22px; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px; background: var(--alt); color: var(--ink-2);
}
.badge-red { background: #fdecec; color: var(--red); }
.placeholder-value { color: #a19e95; font-style: italic; font-weight: 500; }

/* ---------- Fiche moto ---------- */
/* Fil d'Ariane (généré par main.js) */
.breadcrumb { font-size: 14px; color: var(--muted); padding-top: 28px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumb li { display: inline-flex; align-items: center; min-width: 0; }
.breadcrumb li + li::before { content: "›"; margin: 0 9px; color: #b9b6ad; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current="page"] { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
/* En tête de page, le fil d'Ariane remplace une partie de la marge haute du titre. */
.crumbs + .page-hero { padding-top: clamp(24px, 3.5vw, 40px); }
.product { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 72px); padding: 28px 0 clamp(56px, 8vw, 96px); align-items: start; }
.gallery { display: grid; gap: 12px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-thumbs .ph { border-radius: var(--radius-sm); }
.gallery-thumbs .ph::after { font-size: 10px; padding: 4px 8px; }
.product-info .h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 10px 0 18px; }
.specs { list-style: none; padding: 0; margin: 28px 0; border-top: 1px solid var(--line); }
.specs li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs li span:first-child { color: var(--muted); }
.price-line { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.thumb { padding: 0; cursor: pointer; border: 2px solid transparent !important; opacity: .7; transition: opacity .2s, border-color .2s; }
.thumb:hover, .thumb.is-active { opacity: 1; }
.thumb.is-active { border-color: var(--ink) !important; }
.description { margin-top: 24px; color: var(--ink-2); }
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
}

/* ---------- Atelier ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.service .num { display: block; font-size: 14px; font-weight: 700; color: var(--red); margin-bottom: 18px; }
.service p { margin: 10px 0 0; color: var(--muted); }
@media (max-width: 900px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 20px; }
.steps li::before { content: "0" counter(s); display: block; font-weight: 700; color: var(--red); margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 8px 0 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Pilotes ---------- */
.riders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.rider { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rider .ph { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.rider-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rider-body .h3 { margin-top: 2px; }
.rider-moto { margin: 0; font-weight: 600; color: var(--red); font-size: 15px; }
.rider-body p.muted { margin: 4px 0 0; font-size: 15px; }
.rider-palmares { margin-top: 8px; }
.rider-palmares .label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rider-palmares ul { margin: 6px 0 0; padding-left: 18px; font-size: 15px; }
.rider-actions { margin-top: auto; padding-top: 14px; }
@media (max-width: 1000px) { .riders { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .riders { grid-template-columns: 1fr; } }

/* ---------- Éclatés de pièces ---------- */
/* Index des éclatés en miniatures */
.ecl-index { margin-top: 32px; }
.ecl-index:empty { display: none; }
.ecl-index-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.ecl-index-search { flex: 0 1 380px; height: 46px; }
.ecl-index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.ecl-card {
  display: flex; flex-direction: column; text-align: left; padding: 0; cursor: pointer; font: inherit; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s;
}
.ecl-card:hover, .ecl-card:focus-visible { transform: translateY(-4px); box-shadow: 0 20px 40px -26px rgba(0,0,0,.35); border-color: #d4d1c9; }
.ecl-card-img { display: block; aspect-ratio: 16 / 10; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.ecl-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .6s var(--ease); }
.ecl-card:hover .ecl-card-img img { transform: scale(1.06); }
.ecl-card-body { display: flex; align-items: center; gap: 10px; padding: 12px 14px 14px; position: relative; }
.ecl-card-num {
  flex-shrink: 0; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 10px; background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.ecl-card:hover .ecl-card-num { background: var(--red); }
.ecl-card-text { display: grid; gap: 1px; min-width: 0; }
.ecl-card-text strong { font-size: 15px; line-height: 1.25; }
.ecl-card-text .muted { font-size: 13px; }
.ecl-card-hits { position: absolute; top: -14px; right: 12px; box-shadow: 0 4px 10px -4px rgba(0,0,0,.3); }
@media (max-width: 520px) { .ecl-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .ecl-card-body { padding: 10px; gap: 8px; } .ecl-card-num { min-width: 28px; height: 28px; font-size: 12px; } .ecl-card-text strong { font-size: 13px; } }

/* Barre de navigation de l'éclaté ouvert */
.ecl-nav { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.ecl-nav-title { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.ecl-nav-title > div { display: grid; }
.ecl-nav-title strong { font-size: 18px; letter-spacing: -.01em; }
.ecl-nav-title .muted { font-size: 13px; }
.ecl-nav-arrows { display: flex; gap: 6px; }
.ecl-nav-arrows .icon-btn { border: 1px solid var(--line); background: var(--surface); font-size: 24px; line-height: 1; }
.ecl-nav-arrows .icon-btn:disabled { opacity: .35; cursor: default; }
@media (max-width: 520px) { .ecl-back { order: 3; width: 100%; } }
.chip-sub { display: block; font-size: 12px; font-weight: 500; opacity: .7; margin-top: 1px; }
.chip:has(.chip-sub) { border-radius: 16px; text-align: left; padding: 8px 16px; line-height: 1.25; }
.ecl-empty { grid-column: 1 / -1; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.ecl-empty .link-arrow { display: inline-block; margin-left: 6px; }
.ecl { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.ecl-stage {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  overflow: hidden; box-shadow: 0 30px 60px -40px rgba(0,0,0,.35);
}
.ecl-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ecl-bar .segmented { margin: 0; }
.ecl-zoom { display: flex; gap: 6px; }
.ecl-zoom .icon-btn { border: 1px solid var(--line); background: var(--surface); font-size: 20px; line-height: 1; width: 40px; height: 40px; }
.ecl-canvas {
  position: relative; aspect-ratio: 1000 / 660; cursor: default; user-select: none; -webkit-user-select: none;
  background:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,.09) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(180deg, #fff, #f6f5f1);
}
.ecl-canvas.is-zoomed { cursor: grab; }
.ecl-canvas.is-dragging { cursor: grabbing; }
.ecl-canvas > .empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; }
.ecl-svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.ecl-hint { margin: 0; padding: 10px 16px 14px; font-size: 13px; color: var(--muted); text-align: center; }
.ecl-credit { margin: -6px 0 0; padding: 0 16px 14px; font-size: 12px; color: var(--muted); text-align: center; }

/* Pièces : position éclatée par défaut, ramenées en position assemblée par --ax / --ay */
.ecl-svg .part { transition: transform 1.1s cubic-bezier(.2, .85, .2, 1), opacity .35s, filter .35s; }
.is-assembled .ecl-svg .part { transform: translate(var(--ax), var(--ay)); }
.ecl-svg .ecl-axes { transition: opacity .6s .7s; }
.is-assembled .ecl-svg .ecl-axes { opacity: 0; transition-delay: 0s; }
.has-selection .ecl-svg .part:not(.is-active) { opacity: .22; }
.ecl-svg .part.is-active { filter: drop-shadow(0 0 10px rgba(196, 22, 28, .55)) drop-shadow(0 0 2px rgba(196, 22, 28, .9)); }

/* Repères numérotés : trait qui se dessine, pastille qui apparaît, pulsation légère */
.hotspot { cursor: pointer; outline: none; }
/* Disparition immédiate ; apparition en cascade (délais --d) seulement avec .show-hotspots */
.hotspot-line { stroke: #8f8c84; stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .2s ease, stroke .2s; }
.hotspot-dot { fill: #1a1a1a; opacity: 0; transition: opacity .15s; }
.hotspot-pop { transform: scale(0); transform-box: fill-box; transform-origin: center; transition: transform .2s ease; }
.show-hotspots .hotspot-line { transition: stroke-dashoffset .5s ease calc(var(--d) + .1s), stroke .2s; }
.show-hotspots .hotspot-dot { transition: opacity .3s calc(var(--d) + .4s); }
.show-hotspots .hotspot-pop { transition: transform .45s cubic-bezier(.3, 1.6, .5, 1) var(--d); }
.hotspot-circle { fill: #fff; stroke: #1a1a1a; stroke-width: 2; transition: fill .2s, stroke .2s; }
.hotspot-text { font: 700 17px var(--font); fill: #1a1a1a; pointer-events: none; transition: fill .2s; }
.hotspot-pulse { fill: none; stroke: var(--red); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.show-hotspots .hotspot-line { stroke-dashoffset: 0; }
.show-hotspots .hotspot-dot { opacity: 1; }
.show-hotspots .hotspot-pop { transform: scale(var(--hs, 1)); }
.show-hotspots .hotspot-pulse { animation: ecl-pulse 2.6s ease-out calc(var(--d) + 1s) infinite; }
@keyframes ecl-pulse { 0% { opacity: .55; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.9); } }
.hotspot:hover .hotspot-circle, .hotspot:focus-visible .hotspot-circle, .hotspot.is-active .hotspot-circle { fill: var(--red); stroke: var(--red); }
.hotspot:hover .hotspot-text, .hotspot:focus-visible .hotspot-text, .hotspot.is-active .hotspot-text { fill: #fff; }
.hotspot.is-active .hotspot-line, .hotspot:hover .hotspot-line { stroke: var(--red); stroke-width: 2; }
.show-hotspots .hotspot.is-active .hotspot-pop { transform: scale(calc(var(--hs, 1) * 1.15)); }
.hotspots-ready .hotspot-pop { transition: transform .18s ease; }
.has-selection .hotspot:not(.is-active) { opacity: .45; }

/* Mode image (éclaté constructeur) : voile « projecteur » + contour animé de la pièce */
.is-image .ecl-mode { display: none; }
.is-image .ecl-bar { justify-content: flex-end; }
.ecl-dim { fill: #fbfaf7; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }
.has-spot .ecl-dim { opacity: .74; }
.ecl-variantes { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.ecl-variantes li { padding: 6px 10px; background: var(--surface); border-radius: 8px; border: 1px solid var(--line); }
.ecl-var-prix { float: right; font-weight: 700; margin-left: 8px; }
.ecl-prix-note { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.ecl-zone { fill: rgba(196, 22, 28, 0); stroke: transparent; stroke-width: 2.5; pointer-events: none; transition: fill .3s, stroke .3s; }
.ecl-zone.is-active { fill: rgba(196, 22, 28, .05); stroke: var(--red); stroke-dasharray: 8 6; animation: ecl-march 1s linear infinite; }
@keyframes ecl-march { to { stroke-dashoffset: -14; } }
.ecl-provisoire {
  font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #9a4b07; background: #fff1de; padding: 2px 6px; border-radius: 5px; margin-left: 4px; vertical-align: 2px; white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) { .ecl-zone.is-active { animation: none; } }

/* Liste des pièces */
.ecl-list { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); overflow: hidden; position: sticky; top: calc(var(--header-h) + 16px); }
.ecl-list-head { padding: 20px 20px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.ecl-search { height: 42px; margin-top: 6px; }
.ecl-rows { list-style: none; margin: 0; padding: 6px; max-height: min(62vh, 560px); overflow-y: auto; }
.ecl-row { border-radius: 14px; transition: background .25s; }
.ecl-row-main { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; cursor: pointer; border-radius: 14px; }
.ecl-row-main:hover { background: var(--alt); }
.ecl-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; transition: all .25s;
}
.ecl-row-text { display: grid; gap: 1px; min-width: 0; }
.ecl-row-text strong { font-size: 15px; }
.ecl-row-text .muted { font-size: 13px; }
.ecl-row-more { display: none; padding: 0 12px 14px 56px; }
.ecl-row.is-active { background: #fdf3f3; }
.ecl-row.is-active .ecl-num { background: var(--red); border-color: var(--red); color: #fff; transform: scale(1.08); }
.ecl-row.is-active .ecl-row-more { display: grid; gap: 8px; animation: ecl-reveal .35s var(--ease); }
@keyframes ecl-reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ecl-row-price { font-weight: 700; }
.ecl-achat { display: grid; gap: 8px; }
.ecl-achat-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ecl-var-select { width: 100%; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: inherit; font: inherit; font-size: 14px; }
.ecl-row-more .btn { justify-self: start; min-height: 40px; font-size: 14px; }
@media (max-width: 960px) {
  .ecl { grid-template-columns: 1fr; }
  .ecl-list { position: static; }
  .ecl-rows { max-height: none; }
}

/* Pastilles trop serrées (petit écran) : simples points ; un toucher zoome et les numéros réapparaissent */
.hs-mini .hotspot-text, .hs-mini .hotspot-pulse { display: none; }
.hs-mini .hotspot-circle { fill: var(--red); stroke: #fff; stroke-width: 5; }

/* Fiche de la pièce choisie, sous le schéma (téléphone et plein écran ; sur ordinateur, la liste suffit) */
.ecl-fiche { display: grid; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); background: var(--surface); animation: ecl-reveal .3s var(--ease); }
.ecl-fiche[hidden] { display: none; }
.ecl-fiche-tete { display: flex; align-items: center; gap: 12px; }
.ecl-fiche-tete .ecl-num { background: var(--red); border-color: var(--red); color: #fff; }
.ecl-fiche-tete .ecl-row-text { flex: 1; }
.ecl-fiche-fermer { flex-shrink: 0; border: 1px solid var(--line); background: var(--surface); width: 36px; height: 36px; font-size: 16px; }
.ecl-fiche .btn { justify-self: start; min-height: 40px; font-size: 14px; }
@media (min-width: 961px) { .ecl-stage:not(.is-plein) .ecl-fiche { display: none; } }

/* Plein écran : le schéma occupe tout l'écran (bouton ⤢, fermeture par ✕ ou « retour ») */
html.ecl-plein-ouvert, html.ecl-plein-ouvert body { overflow: hidden; }
.ecl-stage.is-plein { position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: column; border: 0; border-radius: 0; box-shadow: none; }
.ecl-stage.is-plein .ecl-canvas { flex: 1; min-height: 0; aspect-ratio: auto !important; }
.ecl-stage.is-plein .ecl-fiche { max-height: 42vh; overflow-y: auto; }
.ecl-stage.is-plein .ecl-hint { display: none; }
.ecl-stage.is-plein .ecl-credit { margin: 0; padding: 8px 16px; }
.ecl-stage.is-plein [data-zoom="plein"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 520px) {
  .ecl-bar { padding: 10px; }
  .ecl-bar .segmented button { padding: 9px 12px; font-size: 13px; }
  .ecl-zoom .icon-btn { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .show-hotspots .hotspot-pulse { animation: none; }
}

/* ---------- Actualités ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card .card-meta time { font-size: 13px; color: var(--muted); align-self: center; }
.news-resume { font-size: 15px; margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-more { margin-top: auto; padding-top: 14px; font-size: 15px; }
.news-head { padding-top: 28px; margin-bottom: 32px; }
.news-head .card-meta time { font-size: 14px; color: var(--muted); align-self: center; }
.news-head .h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 14px 0 16px; }
.news-photo { margin-bottom: 36px; }
.news-body p { font-size: 18px; line-height: 1.65; color: var(--ink-2); margin: 0 0 18px; }
.news-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
@media (max-width: 1000px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .news-grid, .news-gallery { grid-template-columns: 1fr; } }

.liens-rapides { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }

/* ---------- Formulaires (demande de pièce, reprise) ---------- */
.form-wrap { max-width: 860px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(22px, 4vw, 40px); }
.form-card .h3 { margin: 28px 0 14px; }
.form-card .h3:first-child { margin-top: 0; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.f-full { grid-column: 1 / -1; }
.f-field { display: flex; flex-direction: column; gap: 6px; }
.f-field label { font-size: 14px; font-weight: 600; }
.f-field label small { font-weight: 400; color: var(--muted); }
.f-field input, .f-field textarea, .f-field select { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 12px 14px; font-size: 16px; width: 100%; }
.f-field textarea { resize: vertical; line-height: 1.5; }
.f-field input:focus, .f-field textarea:focus, .f-field select:focus { outline: 2px solid var(--ink); outline-offset: -1px; background: var(--surface); }
.f-field.is-invalid input, .f-field.is-invalid textarea { border-color: var(--red); background: #fdf3f3; }
.f-hint { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.f-actions { margin-top: 28px; }
@media (max-width: 640px) { .f-grid { grid-template-columns: 1fr; } .f-actions .btn { flex: 1 1 100%; } }

/* ---------- Recherche ---------- */
.rq-form { margin-top: 26px; max-width: 720px; }
.rq-search { height: 58px; font-size: 18px; }
.rq-search input { font-size: 18px; }
.rq-section { margin-bottom: 40px; }
.rq-section .h3 { margin-bottom: 14px; }
.rq-section .h3 .muted { font-weight: 500; font-size: 16px; }
.rq-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rq-list li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rq-list li:last-child { border-bottom: 0; }
.rq-list li > a:first-child, .rq-list li > span:first-child { flex: 1 1 260px; display: grid; gap: 2px; text-decoration: none; }
.rq-list li > a:first-child:hover strong { color: var(--red); }
.rq-list .muted { font-size: 14px; }
.rq-list .stock-line { margin: 0; }
.rq-prix { font-weight: 700; white-space: nowrap; }
.rq-btn { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- Agenda ---------- */
.agenda-titre { margin: 8px 0 16px; }
.agenda-list { display: grid; gap: 14px; }
.evt { display: flex; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.evt-date { flex-shrink: 0; width: 76px; height: 86px; border-radius: 16px; background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.evt-date strong { font-size: 30px; }
.evt-date span { text-transform: uppercase; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: #ff8a8a; }
.evt-date small { font-size: 11px; opacity: .7; margin-top: 2px; }
.evt-body { display: grid; gap: 6px; min-width: 0; }
.evt-body p { margin: 0; color: var(--ink-2); }
.evt-quand { font-size: 15px; }
.agenda-passes { margin-top: 36px; }
.agenda-passes summary { cursor: pointer; font-weight: 600; margin-bottom: 14px; }
.agenda-passes .evt { opacity: .7; }
@media (max-width: 520px) { .evt { flex-direction: column; } .evt-date { flex-direction: row; gap: 6px; width: auto; height: auto; padding: 8px 14px; align-self: flex-start; } }

/* ---------- Fiche moto : reprise, financement, entretien ---------- */
.fiche-liens { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: 15px; }
.fiche-entretien { margin-top: 20px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.fiche-entretien .label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fiche-entretien p { margin: 6px 0 0; }

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 8px;
  background: #25d366; color: #fff; text-decoration: none; font-weight: 700; padding: 12px 18px 12px 14px; border-radius: 999px;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.45); transition: transform .2s var(--ease);
}
.wa-float svg { width: 24px; height: 24px; }
.wa-float:hover { transform: translateY(-2px); }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

/* ---------- Pied de page : navigation sur deux colonnes ---------- */
@media (min-width: 761px) {
  .footer-grid { grid-template-columns: 1.1fr 1.5fr 1fr; }
  .footer-grid > div:nth-child(2) ul { display: block; columns: 2; column-gap: 24px; }
  .footer-grid > div:nth-child(2) li { break-inside: avoid; margin-bottom: 8px; }
}

/* ---------- Pages légales ---------- */
.legal-wrap { max-width: 860px; }
.legal h2 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); letter-spacing: -.015em; margin: 48px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0 0 14px; color: var(--ink-2); }
.legal a { color: var(--red); }
.legal .specs { margin: 8px 0 16px; }
.legal .specs li span:last-child { text-align: right; }
.legal-list { padding-left: 20px; color: var(--ink-2); }
.legal-list li { margin-bottom: 10px; }
.legal-date { margin-top: 48px !important; font-size: 14px; }
@media (max-width: 640px) { .legal .specs li { flex-direction: column; gap: 2px; } .legal .specs li span:last-child { text-align: left; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; }
.contact-card .label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-card .value { font-size: 20px; font-weight: 600; letter-spacing: -.01em; word-break: break-word; }
.contact-card .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .contact-grid--2 { grid-template-columns: 1fr; } }
.hours { width: 100%; border-collapse: collapse; }

/* ---------- Réseaux sociaux ---------- */
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; background: var(--surface); transition: all .2s;
}
.social-link svg { width: 20px; height: 20px; }
.social-link:hover { border-color: var(--red); color: var(--red); }
.social-link--label { width: auto; padding: 0 18px 0 14px; font-weight: 600; font-size: 15px; }
/* Couleurs officielles des réseaux */
.social-link--instagram, .social-link--facebook { color: #fff; border-color: transparent; }
.social-link--instagram { --brand: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); background: var(--brand); }
.social-link--facebook { --brand: #1877f2; background: var(--brand); }
.social-link--youtube { --brand: #ff0000; background: var(--brand); color: #fff; border-color: transparent; }
.social-link--youtube:hover { color: #fff; border-color: transparent; filter: brightness(1.1); transform: translateY(-1px); }

/* ---------- Vidéo (aperçu cliquable puis lecteur YouTube) ---------- */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: calc(var(--radius) + 6px); overflow: hidden; background: #111; }
.video.scroll-zoom { transform: scale(calc(.94 + .06 * var(--z, 1))); will-change: transform; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { position: absolute; inset: 0; padding: 0; border: 0; cursor: pointer; background: #111; width: 100%; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; filter: brightness(.88); }
.video-facade:hover img { transform: scale(1.03); filter: brightness(1); }
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(64px, 9vw, 92px); height: clamp(64px, 9vw, 92px); border-radius: 50%;
  background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.55); transition: transform .3s var(--ease);
}
.video-play svg { width: 42%; height: 42%; margin-left: 6%; }
.video-facade:hover .video-play { transform: translate(-50%, -50%) scale(1.08); }
@media (max-width: 640px) { .video { border-radius: var(--radius); } }
.social-link--instagram:hover, .social-link--facebook:hover { color: #fff; border-color: transparent; filter: brightness(1.1); transform: translateY(-1px); }

/* ---------- Avis Google ---------- */
.stars { position: relative; display: inline-block; line-height: 0; white-space: nowrap; }
.stars svg { width: 20px; height: 20px; }
.stars-bg svg { fill: #dedbd3; }
.stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; }
.stars-fill svg { fill: #f2b01e; }
.rating-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; text-decoration: none; color: var(--ink); }
.rating-line--small { margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--muted); }
.rating-line--small .stars svg { width: 15px; height: 15px; }
.reviews { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(36px, 6vw, 64px) 24px; }
.reviews-score { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 6px 0 10px; }
.reviews-score strong { font-size: clamp(3rem, 7vw, 4.5rem); letter-spacing: -.04em; line-height: 1; }
.reviews-score .stars svg { width: 30px; height: 30px; }
.hours td { padding: 14px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; }
.subject-box { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--radius-sm); padding: 16px 20px; margin-top: 28px; }

/* ---------- Panier (démo) ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.cart-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item .ph { border-radius: 10px; aspect-ratio: 1; }
.cart-item .ph::after { display: none; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer; font-size: 18px; }
.qty span { min-width: 24px; text-align: center; font-weight: 600; }
.remove { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; text-decoration: underline; padding: 6px 0 0; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: sticky; top: calc(var(--header-h) + 24px); }
.summary .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary .btn { width: 100%; margin-top: 20px; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } .summary { position: static; } }

/* ---------- Page 404 : le pilote du logo franchit le « 0 » comme un obstacle de trial ---------- */
.err { padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(72px, 10vw, 128px); }
.err .lead { margin: 18px auto 0; }
.err-scene { position: relative; display: flex; width: fit-content; align-items: flex-end; gap: clamp(4px, 1.5vw, 16px); padding-top: clamp(64px, 10vw, 90px); margin: 0 auto 40px; }
.err-num { font-size: clamp(7rem, 24vw, 15rem); font-weight: 800; line-height: .8; letter-spacing: -.06em; color: var(--ink); }
.err-obstacle { position: relative; display: inline-block; }
.err-obstacle .err-num { color: var(--red); }
.err-rider {
  position: absolute; left: 50%; bottom: 100%; width: clamp(54px, 9vw, 80px); height: auto; margin-left: calc(clamp(54px, 9vw, 80px) / -2);
  transform-origin: 50% 100%; animation: err-hop 2.4s var(--ease) infinite;
}
.err-track { position: absolute; left: -6%; right: -6%; bottom: -14px; height: 2px; background: var(--line); border-radius: 2px; }
.err-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 40px; }
@keyframes err-hop {
  0%, 100% { transform: translateY(0) rotate(0); }
  20% { transform: translateY(4px) rotate(-4deg); }
  45% { transform: translateY(-34px) rotate(-14deg); }
  65% { transform: translateY(-10px) rotate(6deg); }
  80% { transform: translateY(2px) rotate(-2deg); }
}
@media (prefers-reduced-motion: reduce) { .err-rider { animation: none; } }

/* ---------- Liens internes « À voir aussi » (bas de page, géré dans main.js) ---------- */
.related { border-top: 1px solid var(--line); }
.related .h3 { margin-bottom: 20px; }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-link {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 22px; text-decoration: none;
  transition: border-color .2s, transform .3s var(--ease);
}
.related-link strong { font-size: 17px; letter-spacing: -.01em; }
.related-link strong::after { content: " ›"; color: var(--red); transition: margin .2s; }
.related-link span { font-size: 15px; color: var(--muted); }
.related-link:hover { border-color: var(--ink); transform: translateY(-2px); }
.related-link:hover strong::after { margin-left: 4px; }
@media (max-width: 760px) { .related-list { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Bandeau cookies (Google Analytics, géré dans main.js) ---------- */
.cookies {
  position: fixed; left: 18px; bottom: 18px; z-index: 90; width: min(420px, calc(100% - 36px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: 0 24px 60px -24px rgba(0,0,0,.35); font-size: 15px;
}
.cookies p { margin: 0; color: var(--ink-2); }
.cookies a { color: var(--ink); }
.cookies-titre { font-weight: 700; color: var(--ink) !important; margin-bottom: 6px !important; }
/* Refuser et Accepter ont la même taille et la même place : le refus doit être aussi simple que l'accord. */
.cookies-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.cookies-actions .btn { min-height: 42px; padding: 0 12px; }
@media (max-width: 520px) { .cookies { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 18px; } }

/* ---------- Plan d'accès (page Contact, Google Maps chargé au clic) ---------- */
.plan-carte {
  position: relative; aspect-ratio: 16 / 7; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  border: 1px solid var(--line);
  /* Fond « carte » décoratif, en attendant le vrai plan */
  background:
    linear-gradient(115deg, transparent 46%, #fff 46% 48.5%, transparent 48.5%),
    linear-gradient(20deg, transparent 58%, #fff 58% 60%, transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(0,0,0,.035) 46px 47px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(0,0,0,.035) 46px 47px),
    #ecebe5;
}
.plan-carte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.plan-facade { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; }
.plan-pin { width: 56px; height: 56px; color: var(--red); filter: drop-shadow(0 10px 14px rgba(196, 22, 28, .35)); }
.plan-pin svg { width: 100%; height: 100%; }
.plan-adresse { margin: 0; font-weight: 600; line-height: 1.4; background: rgba(255,255,255,.88); padding: 8px 16px; border-radius: var(--radius-sm); }
.plan-note { margin: 0; font-size: 13px; color: var(--muted); }
.plan-liens { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.plan-liens .label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.plan-liens .btn { min-height: 40px; padding: 0 18px; font-size: 15px; }
@media (max-width: 640px) { .plan-carte { aspect-ratio: 4 / 5; border-radius: var(--radius); } }

/* ---------- Page de remerciement (merci.html) ---------- */
.merci { padding: clamp(56px, 9vw, 112px) var(--gutter) clamp(72px, 10vw, 128px); }
.merci .lead { margin: 18px auto 0; max-width: 46ch; }
.merci-check {
  width: 84px; height: 84px; margin: 0 auto 26px; border-radius: 50%;
  background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 18px 40px -16px rgba(196, 22, 28, .55);
  animation: merci-pop .7s var(--ease) both;
}
.merci-check svg { width: 42px; height: 42px; stroke-dasharray: 24; stroke-dashoffset: 24; animation: merci-trait .5s .35s var(--ease) forwards; }
@keyframes merci-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes merci-trait { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .merci-check, .merci-check svg { animation: none; stroke-dashoffset: 0; } }
.merci-etape {
  max-width: 560px; margin: 36px auto 0; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--red);
  border-radius: var(--radius-sm); padding: 18px 22px;
}
.merci-etape p { margin: 6px 0 0; color: var(--ink-2); }
.merci-etape p.muted { color: var(--muted); font-size: 15px; }
.merci-etape p:empty { display: none; }
.merci-aide { margin: 32px 0 14px; font-size: 15px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 15px;
  opacity: 0; pointer-events: none; transition: all .35s var(--ease); z-index: 80;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; color: var(--muted); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--ink); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Animations discrètes ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Effets liés au défilement (--p de 0 à 1, calculé dans main.js) ---------- */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left center;
  pointer-events: none;
}

/* Zoom : la photo s'agrandit et ses coins s'adoucissent en arrivant à l'écran */
.scroll-zoom { --z: clamp(0, (var(--p, .5) - .15) * 3.2, 1); }
.scroll-zoom > .ph {
  transform: scale(calc(.9 + .1 * var(--z)));
  border-radius: calc(var(--radius) * 2 - var(--radius) * var(--z));
  will-change: transform;
}

/* Parallaxe : la photo glisse un peu moins vite que le texte */
.scroll-parallax > .ph { transform: translateY(calc((.5 - var(--p, .5)) * 60px)); will-change: transform; }

/* Badge « Depuis 2011 » qui tourne doucement */
.media-badge .badge-sticker { transform: rotate(calc(-22deg + var(--p, .5) * 28deg)); }

/* Le pilote du logo traverse l'écran pendant le défilement */
.ride { position: relative; height: 120px; --m: clamp(0, (var(--p, 0) - .12) / .66, 1); }
.ride-track { position: absolute; left: 0; right: 0; bottom: 10px; height: 2px; background: var(--line); border-radius: 2px; }
.ride-track::after {
  content: ""; position: absolute; inset: 0; background: var(--red); border-radius: 2px;
  transform: scaleX(var(--m)); transform-origin: left center;
}
.ride-rider {
  position: absolute; bottom: 4px; height: 104px; width: 80px;
  left: calc(var(--m) * (100% - 80px));
  transform: rotate(calc(4deg - var(--m) * 10deg));
  transform-origin: 30% 100%;
}
@media (max-width: 640px) {
  .ride { height: 92px; }
  .ride-rider { height: 80px; width: 62px; left: calc(var(--m) * (100% - 62px)); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .scroll-zoom > .ph, .scroll-parallax > .ph, .media-badge .badge-sticker { transform: none; }
  .ride-rider { transform: none; left: calc(100% - 80px); }
  .ride-track::after { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Ma moto & campagnes de rappel ---------- */
.rappel-dot { position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--surface); }
.rappel-dot[hidden] { display: none; }
.rappel-banner { display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter); background: #fff4e5; color: #6b3b00; font-size: 14px; text-decoration: none; border-bottom: 1px solid #f3d9b1; }
.rappel-banner strong { color: var(--red); }
.rappel-banner-go { margin-left: auto; font-weight: 600; text-decoration: underline; }
.mm-note { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0 0 20px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--alt); font-size: 15px; }
.mm-list { display: grid; gap: 20px; }
.mm-moto { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); display: grid; gap: 16px; }
.mm-moto-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.mm-moto-head h2 { margin: 0; }
.mm-moto-head p { margin: 2px 0 0; font-size: 14px; word-break: break-all; }
.mm-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--alt); display: inline-flex; align-items: center; justify-content: center; }
.mm-ico svg { width: 28px; height: 28px; }
.mm-statut { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: #e8f5ec; color: #1f6b3a; white-space: nowrap; }
.mm-statut.is-alerte { background: #fde8e8; color: var(--red); }
.mm-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mm-actions .btn { min-height: 40px; font-size: 14px; }
.rappel { border-left: 4px solid var(--red); background: #fff7f7; border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 14px; }
.rappel--possible { border-left-color: #e08a00; background: #fffaf0; }
.mm-list .rappel { margin: 0; }
#mm-toutes .rappel { border-left-color: var(--line); background: var(--surface); border: 1px solid var(--line); border-left-width: 4px; }
.rappel h3 { margin: 4px 0; font-size: 18px; }
.rappel p { margin: 6px 0; }
.rappel-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--red); margin: 0 !important; }
.rappel--possible .rappel-tag { color: #a35f00; }
#mm-toutes .rappel-tag { color: var(--muted); }
.rappel-meta { font-size: 14px; }
.rappel .btn-row { margin-top: 10px; }
.rappel .btn { min-height: 40px; font-size: 14px; }
@media (max-width: 430px) {
  .header-actions { gap: 0; }
  .header-actions .icon-btn { width: 36px; }
}
@media (max-width: 560px) {
  .mm-moto-head { grid-template-columns: auto 1fr; }
  .mm-statut { grid-column: 1 / -1; justify-self: start; }
}

/* Rappels d'entretien (Ma moto) */
.mm-ent { border-top: 1px solid var(--line); padding-top: 14px; }
.mm-ent-titre { font-size: 16px; margin: 0 0 10px; }
.mm-ent-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.mm-ent-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--alt); border-left: 4px solid transparent; }
.mm-ent-item > div:first-child { display: grid; gap: 2px; }
.mm-ent-item .muted { font-size: 14px; }
.mm-ent-item.is-retard { background: #fff7f7; border-left-color: var(--red); }
.mm-ent-item.is-retard .muted { color: var(--red); }
.mm-ent-item.is-bientot { background: #fffaf0; border-left-color: #e08a00; }
.mm-ent-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mm-ent-btns .btn { min-height: 36px; font-size: 14px; padding-left: 14px; padding-right: 14px; }
.mm-ent-form { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 8px; }
.mm-ent-form input, .mm-ent-form select { min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: inherit; font: inherit; font-size: 14px; min-width: 0; }
.mm-ent-form .is-invalid { border-color: var(--red); }
.mm-ent-form .btn { min-height: 40px; font-size: 14px; }
@media (max-width: 640px) { .mm-ent-form { grid-template-columns: 1fr 1fr; } .mm-ent-form input[name="type"] { grid-column: 1 / -1; } }

/* ---------- Configurateur 3D ---------- */
.cfg { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 24px; }
.cfg-stage { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); overflow: hidden; }
.cfg-canvas { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(ellipse at 50% 35%, #ffffff 0%, var(--alt) 75%); touch-action: none; cursor: grab; }
.cfg-canvas:active { cursor: grabbing; }
.cfg-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.cfg-chargement { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 24px; text-align: center; color: var(--muted); }
.cfg-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.cfg-vues { margin-top: 0; }
.cfg-astuce { margin: 0; font-size: 13px; color: var(--muted); }
.cfg-side { display: grid; gap: 20px; }
.cfg-options { display: grid; gap: 14px; }
.cfg-famille { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cfg-famille legend { float: left; width: 100%; padding: 0; margin: 0 0 4px; }
.cfg-famille legend + p { clear: both; margin: 0 0 12px; font-size: 14px; }
.cfg-summary { position: static; }
.cfg-lignes { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.cfg-lignes li { display: flex; justify-content: space-between; gap: 12px; }
.cfg-total { font-size: 17px; border-bottom: 0 !important; }
.cfg-note { font-size: 13px; margin: 4px 0 0; }
.cfg-actions { display: grid; gap: 10px; margin-top: 16px; }
.cfg-actions .btn { width: 100%; margin-top: 0; }
@media (max-width: 900px) {
  .cfg { grid-template-columns: 1fr; }
  .cfg-stage { position: sticky; top: calc(var(--header-h) + 4px); z-index: 5; }
  .cfg-canvas { aspect-ratio: 16 / 11; }
  .cfg-astuce { display: none; }
}
