/* ==========================================================================
   Mécanique LPC — feuille de style
   Thème sombre « atelier » : noir et chrome de Mécanique LPC, rouge de Tréma, dessin technique.
   Approche « mobile d'abord » : les styles de base visent le cellulaire,
   les @media (min-width) ajoutent la tablette puis l'ordinateur.
   ========================================================================== */

/* ---------- 1. Variables ---------- */
:root {
  /* Couleurs */
  --bg: #16171A;            /* fond principal (graphite) */
  --bg-alt: #1B1C20;        /* sections alternées */
  --surface: #212328;       /* cartes */
  --surface-2: #2A2D33;     /* éléments surélevés */
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #F3F2EE;
  --muted: #A4A8AE;
  --accent: #DC1E28;        /* rouge Tréma : actions et points clés */
  --accent-hover: #C41424;
  --accent-ink: #FFFFFF;    /* texte sur fond rouge (contraste 4,9:1) */
  --accent-text: #FF4757;   /* rouge éclairci pour le petit texte sur fond foncé (5,4:1) */
  --chrome: linear-gradient(180deg, #FFFFFF 0%, #C9CDD2 45%, #8E949B 55%, #E4E6E9 100%); /* rappel du logo LPC */
  --green: #45D38A;
  --red: #FF7A6E;

  /* Typographie : une seule famille variable (graisse + largeur) */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Divers */
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 68px;
  --container: 1200px;
  --section-pad: clamp(72px, 9vw, 128px);
  --ease-out: cubic-bezier(.16, .84, .24, 1);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px; /* espace pour la barre d'action fixe sur cellulaire */
}

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

a { color: var(--text); text-underline-offset: 4px; }
a:hover { color: var(--accent-text); }

h1, h2, h3 { margin: 0; color: var(--text); }

h2 {
  font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.75rem);
  font-weight: 800;
  font-stretch: 108%;
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

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

::selection { background: var(--accent); color: var(--accent-ink); }

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

.container {
  width: min(var(--container), 100% - 40px);
  margin-inline: auto;
}

.muted { color: var(--muted); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--accent-ink); }

/* ---------- 3. Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 650 1rem/1.2 var(--font);
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 12px 32px -14px rgba(220, 30, 40, .65);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }

.btn-ghost {
  background: rgba(255, 255, 255, .04);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .28); color: var(--text); }

.btn-dark { background: var(--bg); color: var(--text); }
.btn-dark:hover { background: #000; color: var(--text); }

/* ---------- 4. En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 23, 26, .78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(var(--progress, 0));
  pointer-events: none;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(22, 23, 26, .9);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  flex: 0 0 auto;
}
.brand:hover { color: var(--text); }
.brand-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45));
}
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-name {
  font-size: 1.25rem;
  font-weight: 500;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-name strong {
  font-weight: 850;
  /* Lettres « LPC » en chrome, comme le logo */
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-sub {
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .01em;
}
.brand-sub b { color: var(--accent-text); font-weight: 750; }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-cta { display: none; }

/* Bouton du menu (cellulaire et tablette) */
.menu-toggle {
  width: 46px;
  height: 46px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
}
.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu : panneau plein écran sur cellulaire */
.main-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  height: calc(100dvh - var(--header-h));
  padding: 8px 20px 28px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.main-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .2s ease, transform .2s ease;
}
.main-nav a:not(.btn) {
  display: block;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 1.75rem;
  font-weight: 750;
  font-stretch: 108%;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.main-nav a:not(.btn):hover { color: var(--accent-text); }
.nav-cta-mobile { display: grid; gap: 12px; }

body.menu-open { overflow: hidden; }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
  isolation: isolate;
}
/* Quadrillage de plan technique, fondu vers les bords */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
}
/* Lueur chaude derrière la roue */
.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  width: 720px;
  height: 720px;
  right: -260px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 30, 40, .14), transparent 62%);
}

/* La roue (dessin technique) */
.wheel {
  position: absolute;
  z-index: -1;
  width: 440px;
  right: -230px;
  top: 8px;
  opacity: .22;
  overflow: visible;
}
.w-guides line,
.w-guides circle { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 1; stroke-dasharray: 6 9; }
.w-tire { fill: none; stroke: #0D0E10; stroke-width: 48; }
.w-tread { fill: none; stroke: #2A2D33; stroke-width: 16; stroke-dasharray: 9 7; }
.w-line { fill: none; stroke: rgba(243, 242, 238, .34); stroke-width: 1.5; }
.w-rim { fill: #1B1C20; stroke: rgba(243, 242, 238, .55); stroke-width: 2; }
.w-disc { fill: #2C2F35; stroke: rgba(243, 242, 238, .42); stroke-width: 1.5; }
.w-holes { fill: none; stroke: #16171A; stroke-width: 9; stroke-linecap: round; stroke-dasharray: .1 26; }
.w-holes-2 { stroke-dashoffset: 13; }
.w-caliper { fill: var(--accent); stroke: #0D0E10; stroke-width: 2; stroke-linejoin: round; }
.w-spokes { fill: #1B1C20; stroke: rgba(243, 242, 238, .62); stroke-width: 1.5; stroke-linejoin: round; }
.w-hub { fill: #212328; stroke: rgba(243, 242, 238, .55); stroke-width: 1.5; }
.w-nuts { fill: #2C2F35; stroke: rgba(243, 242, 238, .6); stroke-width: 1.2; }
.w-cap-ring { fill: #0D0E10; stroke: rgba(243, 242, 238, .55); stroke-width: 1.5; }

/* Le seul mouvement automatique de la page : la roue arrive en tournant */
.w-turn {
  transform-box: view-box;
  transform-origin: 300px 300px;
  animation: wheel-in 2.2s var(--ease-out) both;
  rotate: var(--spin, 0deg);              /* la roue tourne quand on fait défiler la page */
}
.wheel { translate: 0 var(--py, 0px); }    /* léger effet de profondeur */
@keyframes wheel-in {
  from { transform: rotate(-160deg); }
  to   { transform: rotate(0deg); }
}

.hero-inner { position: relative; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.hero-place { color: var(--muted); font-size: .9375rem; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font-size: .9375rem;
  font-weight: 600;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex: 0 0 auto;
}
.status[data-state="open"] .status-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(69, 211, 138, .18); }
.status[data-state="closed"] .status-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(255, 122, 110, .16); }
.status-sm { font-size: .8125rem; padding: 5px 12px 5px 10px; }

.hero-title {
  margin-top: 28px;
  font-size: clamp(2.875rem, 12.5vw, 4.5rem);
  font-weight: 850;
  font-stretch: 100%;
  line-height: .92;
  letter-spacing: -0.04em;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  /* marge pour ne pas couper les accents et les jambages pendant l'animation */
  padding: .12em 0 .08em;
  margin: -.12em 0 -.08em;
}
.hero-title .word { display: inline-block; }
.hero-title .dot { color: var(--accent); }

/* ---- Entrée du hero : le titre monte ligne par ligne, puis le reste apparaît ---- */
html.js .hero-title .word {
  animation: word-rise 1s var(--ease-out) both;
  animation-delay: calc(150ms + var(--i, 0) * 110ms);
}
html.js .intro {
  animation: fade-up .9s var(--ease-out) both;
  animation-delay: calc(520ms + var(--i, 0) * 110ms);
}
@keyframes word-rise {
  from { transform: translateY(108%); }
  to   { transform: none; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.hero-lead {
  margin-top: 26px;
  max-width: 50ch;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.6;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Aujourd'hui à l'atelier */
.today {
  margin-top: clamp(40px, 6vw, 72px);
  padding: 18px 20px 30px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(33, 35, 40, .72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.today-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.today-title { font-weight: 700; }
.today-note { color: var(--muted); font-size: .9375rem; }

.today-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}
.today-end { display: flex; flex-direction: column; line-height: 1.1; }
.today-end-right { text-align: right; }
.today-time {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.today-label { margin-top: 4px; color: var(--muted); font-size: .8125rem; }

.today-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}
.today-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pos, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(220, 30, 40, .45), var(--accent));
  transition: width 1.4s var(--ease-out);
}
.today-now {
  position: absolute;
  top: 50%;
  left: var(--pos, 0%);
  transition: left 1.4s var(--ease-out);
}
.today-pin {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px #24262B, 0 8px 18px rgba(0, 0, 0, .45);
}
.today-pin svg {
  width: 20px; height: 20px;
  fill: none; stroke: var(--accent-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.today-now-label {
  position: absolute;
  top: 26px;
  left: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: .8125rem;
  font-weight: 650;
  color: var(--text);
}
.today-now[data-align="start"] .today-now-label { transform: translateX(-18px); }
.today-now[data-align="end"] .today-now-label { transform: translateX(calc(-100% + 18px)); }

/* ---------- 6. Chiffres ---------- */
.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  /* Motif « plaque d'acier » discret, rappel du fond du logo LPC */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg fill='%23FFFFFF' fill-opacity='.045'%3E%3Crect x='3' y='5' width='10' height='3.2' rx='1.6' transform='rotate(45 8 6.6)'/%3E%3Crect x='15' y='19' width='10' height='3.2' rx='1.6' transform='rotate(-45 20 20.6)'/%3E%3C/g%3E%3C/svg%3E"),
    var(--bg-alt);
}
.facts-grid { display: grid; }
.fact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 0;
}
.fact + .fact { border-top: 1px solid var(--line); }
.fact-value {
  flex: 0 0 auto;
  min-width: 3.4ch;
  font-size: clamp(2.5rem, 1.8rem + 2.6vw, 3.75rem);
  font-weight: 850;
  font-stretch: 112%;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
}
.fact-label { color: var(--muted); max-width: 30ch; line-height: 1.45; }

/* ---------- 7. Sections communes ---------- */
.section { padding: var(--section-pad) 0; }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.1875rem;
}

/* ---------- 8. Services ---------- */
.cards {
  display: grid;
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 60%), var(--surface);
  transition: border-color .2s ease;
}
.card { position: relative; overflow: hidden; }
.card > * { position: relative; }
/* Reflet rouge qui suit la souris */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, -40%), rgba(220, 30, 40, .2), transparent 55%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgba(220, 30, 40, .45); }
.card-icon { transition: transform .4s var(--ease-out); }
.card:hover .card-icon { transform: rotate(-8deg) scale(1.08); }
.card-icon {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { margin-top: 22px; }
.card p { margin-top: 8px; color: var(--muted); font-size: 1rem; }
/* Bande défilante des marques */
.brands {
  margin-top: clamp(56px, 7vw, 88px);
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brands-track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.brands:hover .brands-track { animation-play-state: paused; }
.brands-list {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
}
.brands-list li {
  font-size: clamp(1.375rem, 1rem + 1.4vw, 2.125rem);
  font-weight: 750;
  font-stretch: 112%;
  letter-spacing: -0.03em;
  color: rgba(243, 242, 238, .3);
  white-space: nowrap;
}
.brands-list li:nth-last-child(-n+2) { color: rgba(220, 30, 40, .55); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- 9. Comment ça marche (bande rouge) ---------- */
.process { padding-top: 0; }
.process-inner {
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 28px;
  background: var(--accent);
  color: var(--accent-ink);
}
.process-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.process h2 { color: var(--accent-ink); max-width: 18ch; }
/* La route : asphalte, ligne pointillée et auto qui avance au défilement */
.road {
  position: relative;
  /* la route traverse toute la bande, d'un bord à l'autre */
  margin: clamp(28px, 4vw, 44px) calc(-1 * clamp(32px, 5vw, 64px)) 0;
  height: clamp(70px, 9vw, 120px);
}
.road svg { width: 100%; height: 100%; overflow: visible; }
.road-asphalt {
  fill: none;
  stroke: #17181B;
  stroke-width: clamp(22px, 3vw, 34px);
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.road-dash {
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 2.5px;
  stroke-dasharray: 16 14;
  stroke-dashoffset: var(--dash, 0);
  vector-effect: non-scaling-stroke;
}
.road-car {
  position: absolute;
  left: var(--car-x, 4%);
  top: var(--car-y, 74%);
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 0 5px rgba(23, 24, 27, .9), 0 10px 22px rgba(0, 0, 0, .35);
  transform: rotate(var(--car-r, 0deg));
}
.road-car svg {
  width: 24px; height: 24px;
  fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}

.steps {
  margin-top: clamp(20px, 3vw, 36px);
  display: grid;
  gap: 28px;
}
.step {
  padding-top: 20px;
  border-top: 2px solid rgba(255, 255, 255, .3);
}
.step-num {
  display: block;
  font-size: 3.25rem;
  font-weight: 850;
  font-stretch: 112%;
  line-height: 1;
  letter-spacing: -0.04em;
}
.step h3 { margin-top: 14px; color: var(--accent-ink); font-size: 1.3125rem; }
.step p { margin-top: 8px; color: rgba(255, 255, 255, .9); }

/* ---------- 10. Pourquoi nous ---------- */
.why { padding-top: 0; }
.why-grid { display: grid; gap: 40px; }

.why-lead {
  margin-top: 22px;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.1875rem;
}

.badges {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.badges li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font-size: .9375rem;
  font-weight: 600;
}
/* Petit écrou rouge devant chaque affiliation */
.badges li::before {
  content: "";
  width: 12px;
  height: 13px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.reasons {
  display: grid;
  gap: 28px;
}
.reasons li { padding-top: 20px; border-top: 1px solid var(--line); }
.reasons svg {
  width: 26px; height: 26px;
  fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.reasons h3 { margin-top: 14px; font-size: 1.125rem; }
.reasons p { margin-top: 6px; color: var(--muted); font-size: 1rem; }

/* ---------- 11. Avis ---------- */
.reviews { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.review-feature { display: grid; gap: 32px; }
.review {
  margin: 0;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
.review-mark { width: 48px; height: 36px; fill: var(--accent); }
.review blockquote { margin: 0; }
.review blockquote p {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  line-height: 1.3;
  font-weight: 650;
  font-stretch: 104%;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.review figcaption {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.review figcaption span { color: var(--muted); font-size: .9375rem; }

/* ---------- 12. Contact ---------- */
.contact-grid { display: grid; gap: 48px; }

.contact-lead { margin-top: 18px; color: var(--muted); font-size: 1.1875rem; }
.big-phone {
  display: inline-block;
  margin-top: 10px;
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
  font-weight: 850;
  font-stretch: 112%;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.big-phone:hover { color: var(--accent-text); }

.info-block {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.info-block > p { margin-top: 10px; }
.info-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hours { width: 100%; margin-top: 14px; border-collapse: collapse; }
.hours th,
.hours td {
  padding: 12px 14px;
  text-align: left;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.hours td { text-align: right; white-space: nowrap; color: var(--muted); }
.hours tr.is-today th,
.hours tr.is-today td {
  background: rgba(220, 30, 40, .1);
  color: var(--text);
  font-weight: 700;
}
.hours tr.is-today th { box-shadow: inset 3px 0 0 var(--accent); }

.map {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
/* Carte Google assombrie pour suivre le thème */
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(.92) contrast(.88) brightness(.95);
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent-text);
  font-weight: 650;
}

.info-inline { display: flex; flex-wrap: wrap; gap: 20px 40px; }
.info-inline div { display: grid; gap: 2px; }
.info-inline .muted { font-size: .875rem; }
.info-inline a { text-decoration: none; }
.info-inline a:hover { text-decoration: underline; }

/* Colonne de droite : heures et carte */
.contact-side { display: grid; gap: 16px; align-content: start; }
.hours-card {
  padding: clamp(22px, 3.5vw, 32px);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 40%), var(--surface);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
}
.hours-card .hours { margin-top: 18px; }
.hours-card .hours tr:last-child th,
.hours-card .hours tr:last-child td { border-bottom: 0; }

/* ---------- 13. Pied de page ---------- */
.site-footer {
  background: #111215;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-cta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(56px, 7vw, 88px) 0;
  border-bottom: 1px solid var(--line);
}
.footer-cta-title {
  max-width: 20ch;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--text);
}
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: 0 0 auto; }

.footer-grid {
  display: grid;
  gap: 36px;
  padding: 56px 0 48px;
}
.footer-brand p { margin-top: 16px; max-width: 38ch; }
.site-footer .brand-logo { width: 56px; height: 56px; }



.footer-col h2 {
  font-size: .9375rem;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0;
  color: var(--text);
}
.footer-col ul { margin-top: 14px; display: grid; gap: 10px; }
.site-footer a:not(.btn) { color: var(--muted); text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--text); text-decoration: underline; }
.site-footer a.brand,
.site-footer a.brand:hover { color: var(--text); text-decoration: none; }

/* Plaque « Une entreprise Tréma » : logo Tréma sur fond blanc, comme fourni */
.site-footer a.trema-plaque {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px 12px 16px;
  border-radius: 14px;
  background: #FFFFFF;
  color: #1B1C20;
  text-decoration: none;
  transition: box-shadow .2s ease;
}
.site-footer a.trema-plaque:hover { color: #1B1C20; text-decoration: none; box-shadow: 0 0 0 3px var(--accent); }
.trema-plaque span { font-size: .8125rem; font-weight: 700; line-height: 1.2; max-width: 7ch; color: #1B1C20; }
.trema-plaque img { width: 150px; height: auto; }

.footer-giant {
  padding-top: 24px;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
  font-size: 11.6vw;
  font-weight: 900;
  font-stretch: 100%;
  letter-spacing: -0.055em;
  line-height: .82;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .9;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  user-select: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 26px;
  border-top: 1px solid var(--line);
  font-size: .875rem;
}

/* ---------- 14. Barre d'action fixe (cellulaire) ---------- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(22, 23, 26, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.mobile-bar a {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
}
.mobile-bar svg {
  width: 19px; height: 19px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.mobile-bar-map { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong); }
.mobile-bar-map:hover { color: var(--text); }
.mobile-bar-call { background: var(--accent); color: var(--accent-ink); }
.mobile-bar-call:hover { color: var(--accent-ink); }

/* ---------- 15. Apparition au défilement (seulement si JavaScript) ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), border-color .2s ease;
  transition-delay: calc(var(--d, 0) * 90ms);
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Tablette
   ========================================================================== */
@media (min-width: 560px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .today { padding: 20px 26px 32px; }
}

@media (min-width: 640px) {
  .header-cta { display: inline-flex; }
}

@media (min-width: 760px) {
  .wheel { width: 560px; right: -200px; top: 20px; opacity: .45; }
  .hero-title {
    font-size: clamp(4.5rem, 1.6rem + 5vw, 6rem);
    font-stretch: 110%;
  }
  .facts-grid { grid-template-columns: repeat(3, 1fr); }
  .fact { gap: 10px; padding: 34px 28px; }
  .fact:first-child { padding-left: 0; }
  .fact + .fact { border-top: 0; border-left: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .reasons { grid-template-columns: 1fr 1fr; gap: 32px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-cta { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
}

/* ==========================================================================
   Ordinateur
   ========================================================================== */
@media (min-width: 980px) {
  :root { --header-h: 78px; }

  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .menu-toggle { display: none; }

  /* Menu horizontal */
  .main-nav {
    position: static;
    height: auto;
    padding: 0;
    border: 0;
    flex-direction: row;
    align-items: center;
    gap: 0;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transform: none;
    background: transparent;
    margin-left: 28px;
  }
  .main-nav ul { display: flex; gap: 2px; }
  .main-nav a:not(.btn) {
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    color: var(--muted);
    font-size: .9688rem;
    font-weight: 550;
    font-stretch: 100%;
    letter-spacing: 0;
  }
  .main-nav a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, .05); }
  .nav-cta-mobile { display: none; }

  .hero { padding-top: 56px; padding-bottom: 56px; }
  .hero-title { margin-top: 22px; }
  .hero-lead { margin-top: 22px; }
  .hero-actions { margin-top: 30px; }
  .today { margin-top: 44px; }
  .wheel { width: 700px; right: -150px; top: 50%; transform: translateY(-58%); opacity: 1; }
  .hero-text { max-width: 640px; }
  .today { max-width: 760px; }

  .cards { grid-template-columns: repeat(3, 1fr); }
  .process-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }

  .why-grid { grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }

  .review-feature { grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }

  .contact-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }

  .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 40px; }
}

@media (min-width: 1280px) {
  .wheel { width: 760px; right: -120px; }
}

/* ---------- Mouvement réduit : on coupe les animations ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .brands-track { animation: none; flex-wrap: wrap; width: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  html.js .hero-title .word,
  html.js .intro { animation: none; }
  .w-turn { rotate: 0deg; }
  .wheel { translate: none; }
  .brands-list[aria-hidden="true"] { display: none; }
  .brands-list { flex-wrap: wrap; gap: 12px 32px; padding: 0 20px; }
}
