/* ============================================================
   LE QG MOTORSPORT — Styles des sections
   ============================================================ */

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease), backdrop-filter 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 13px; }
.logo-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1.5px solid var(--accent);
  position: relative;
  flex: none;
}
.logo-mark::before {
  content: ""; position: absolute; inset: 4px;
  border: 1px solid var(--line-strong);
}
.logo-mark span {
  font-family: var(--font-display);
  font-weight: 700; font-size: 19px; line-height: 1;
  letter-spacing: 0.02em;
}
.logo-text { line-height: 1; }
.logo-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700; font-size: 21px; letter-spacing: 0.05em;
  text-transform: uppercase;
}
.logo-text small {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.42em;
  color: var(--text-2); text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 38px; }
.nav a {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-2);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 16px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line-strong);
  position: relative;
}
.burger span, .burger span::before, .burger span::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 18px; height: 2px; background: var(--white);
  transform: translate(-50%, -50%);
  transition: 0.3s var(--ease);
}
.burger span::before { transform: translate(-50%, -7px); }
.burger span::after  { transform: translate(-50%, 5px); }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { transform: translate(-50%, -50%) rotate(45deg); }
body.menu-open .burger span::after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* Menu mobile */
.mobile-nav {
  position: fixed; inset: 0; z-index: 55;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: var(--gutter);
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
}
body.menu-open .mobile-nav { transform: none; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 40px; text-transform: uppercase; font-weight: 700;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 30px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(48px, 7vw, 96px);
  padding-top: 140px;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
}
.hero-media .ph { width: 100%; height: 100%; }
.hero-photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0.15) 35%, rgba(5,5,5,0.85) 100%),
    linear-gradient(90deg, rgba(5,5,5,0.8) 0%, transparent 60%);
}
.hero .honeycomb { z-index: 1; }
.hero-inner { position: relative; z-index: 2; width: 100%; }

.hero h1 {
  font-size: clamp(58px, 12vw, 188px);
  line-height: 0.86;
  letter-spacing: -0.01em;
}
.hero .sub {
  color: var(--text-2);
  font-size: clamp(17px, 1.6vw, 23px);
  max-width: 56ch;
  margin: 30px 0 40px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-tag {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--silver);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 26px;
}
.hero-tag .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px rgba(225,6,0,0.25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(225,6,0,0); } }

/* Bandeau de stats bas de hero */
.hero-stats {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: 30px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 4vw, 56px); line-height: 1;
}
.hero-stats .stat span {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--text-2);
}

/* --- Variantes hero pilotées par [data-hero] sur <html> --- */
/* V1 cinematic (défaut) : titre en bas à gauche, image plein cadre */
/* V2 split : titre à gauche, panneau image/visuel à droite */
html[data-hero="split"] .hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
html[data-hero="split"] .hero { justify-content: center; }
html[data-hero="split"] .hero-media::after {
  background: linear-gradient(180deg, rgba(5,5,5,0.7), rgba(5,5,5,0.92));
}
.hero-panel { display: none; }
html[data-hero="split"] .hero-panel {
  display: block; position: relative;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  padding: 14px;
}
html[data-hero="split"] .hero-panel .ph { aspect-ratio: 4/3; }
html[data-hero="split"] .hero-panel .panel-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 6px 4px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-2);
}
html[data-hero="split"] .hero h1 { font-size: clamp(52px, 8vw, 116px); }
html[data-hero="split"] .hero-stats { grid-template-columns: repeat(2, 1fr); }

/* V3 centered : titre centré, image en fond, gros impact */
html[data-hero="center"] .hero { justify-content: center; align-items: center; text-align: center; }
html[data-hero="center"] .hero-tag { justify-content: center; }
html[data-hero="center"] .hero .sub { margin-inline: auto; }
html[data-hero="center"] .hero-actions { justify-content: center; }
html[data-hero="center"] .hero h1 { font-size: clamp(64px, 13vw, 210px); }
html[data-hero="center"] .hero-media::after {
  background: radial-gradient(90% 90% at 50% 50%, rgba(5,5,5,0.45), rgba(5,5,5,0.92));
}

/* ===== Placeholder image ===== */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 14px, transparent 14px 28px),
    var(--bg-2);
  display: grid; place-items: center; overflow: hidden;
  border: 0;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  padding: 8px 12px; border: 1px solid var(--line);
  background: rgba(0,0,0,0.4);
}

/* ===== SERVICES ===== */
.services { background: var(--bg-2); }
.services .honeycomb { opacity: calc(var(--pattern-opacity) * 0.7); -webkit-mask-image: none; mask-image: none; }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  position: relative; z-index: 2;
}
.svc-card {
  background: var(--bg);
  padding: 44px 38px 48px;
  position: relative;
  transition: background 0.4s var(--ease);
  overflow: hidden;
}
.svc-card::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 100%; height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.svc-card:hover { background: var(--bg-3); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-num {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em;
  color: var(--text-2); margin-bottom: 30px;
}
.svc-icon {
  width: 52px; height: 52px; margin-bottom: 26px;
  color: var(--accent);
}
.svc-icon svg { width: 100%; height: 100%; }
.svc-card h3 { font-size: 28px; margin-bottom: 12px; }
.svc-card p { color: var(--text-2); font-size: 16px; margin: 0; }
.svc-card .more {
  margin-top: 26px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--silver);
  display: inline-flex; align-items: center; gap: 8px;
  opacity: 0; transform: translateY(6px);
  transition: 0.4s var(--ease);
}
.svc-card:hover .more { opacity: 1; transform: none; }

/* Modale « En savoir plus » */
body.modal-open { overflow: hidden; }
.svc-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.svc-modal[hidden] { display: none; }
.svc-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.72); backdrop-filter: blur(3px); }
.svc-modal-panel {
  position: relative; z-index: 2;
  width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--line-strong);
  padding: clamp(28px, 4vw, 44px);
  animation: svcModalIn 0.3s var(--ease);
}
@keyframes svcModalIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.svc-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: var(--text-2);
  font-size: 30px; line-height: 1; cursor: pointer; transition: color 0.3s var(--ease);
}
.svc-modal-close:hover { color: var(--white); }
.svc-modal-panel h3 { font-size: clamp(24px, 4vw, 32px); margin: 8px 0 16px; }
.svc-modal-body { color: var(--text-2); font-size: 15.5px; line-height: 1.7; margin-bottom: 24px; }
.svc-modal-body p { margin: 0 0 14px; }
.svc-modal-body ul { margin: 0; padding-left: 20px; }
.svc-modal-body li { margin-bottom: 7px; }
.svc-modal-body li::marker { color: var(--accent); }

/* ===== TARIFS ===== */
.tarifs {
  position: relative; z-index: 2;
  margin-top: 64px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 48px 44px;
}
.tarifs-head { margin-bottom: 32px; }
.tarifs-head h3 { font-size: 30px; margin: 10px 0 12px; }
.tarifs-head p { color: var(--text-2); font-size: 16px; max-width: 640px; margin: 0; }
.tarif-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  column-gap: 56px; row-gap: 2px;
}
.tarif {
  display: flex; align-items: baseline; gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.tarif-name { color: var(--text); font-size: 16px; flex-shrink: 1; }
.tarif-dots {
  flex: 1 1 auto; min-width: 16px;
  border-bottom: 1px dotted var(--line-strong);
  transform: translateY(-4px);
}
.tarif-price {
  font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.04em;
  color: var(--silver); white-space: nowrap;
}
.tarif-note {
  margin: 26px 0 0;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em;
  color: var(--text-2);
}
@media (max-width: 760px) {
  .tarifs { padding: 36px 24px; }
  .tarif-list { grid-template-columns: 1fr; column-gap: 0; }
}

/* ===== FIDÉLITÉ ===== */
.loyalty { background: var(--bg-2); position: relative; overflow: hidden; }
.loyalty-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; position: relative; z-index: 2;
  max-width: 940px; margin: 0 auto;
}
.loyalty-card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 38px 30px 34px;
  text-align: center;
  position: relative;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.loyalty-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 28px 70px -28px var(--accent);
  z-index: 3;
}
.loyalty-card:hover .loyalty-perk { color: var(--accent); }
.loyalty-card.featured {
  border-color: var(--accent);
  box-shadow: 0 24px 60px -30px var(--accent);
}
.loyalty-step {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-2); margin-bottom: 18px;
}
.loyalty-step sup { font-size: 0.7em; }
.loyalty-perk {
  font-size: 56px; line-height: 1; font-weight: 700;
  color: var(--white); letter-spacing: -0.02em;
}
.loyalty-card.featured .loyalty-perk { color: var(--accent); }
.loyalty-perk span { font-size: 26px; vertical-align: super; margin-left: 2px; }
.loyalty-card p { color: var(--text-2); font-size: 15px; margin: 14px 0 0; }
.loyalty-note {
  max-width: 720px; margin: 34px auto 0; text-align: center;
  color: var(--text-2); font-size: 14px; position: relative; z-index: 2;
}
.loyalty-note a { color: var(--silver); text-decoration: underline; }
.loyalty-note a:hover { color: var(--white); }
.loyalty-cta { text-align: center; margin-top: 28px; position: relative; z-index: 2; }
.loyalty-cta-stack { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 760px) {
  .loyalty-grid { grid-template-columns: 1fr; max-width: 360px; }
}

/* Formulaire d'adhésion fidélité */
.loyalty-form-card {
  position: relative; z-index: 2;
  max-width: 720px; margin: 36px auto 0;
  background: var(--bg); border: 1px solid var(--line-strong);
  padding: clamp(26px, 4vw, 44px);
}
.loyalty-form-intro { text-align: center; margin-bottom: 28px; }
.loyalty-form-intro h3 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 10px; }
.loyalty-form-intro p { color: var(--text-2); font-size: 15px; margin: 0 auto; max-width: 520px; }
.lform-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 18px; margin-bottom: 8px;
}
.loyalty-form-card .btn-block { margin-top: 22px; }
@media (max-width: 560px) { .lform-grid { grid-template-columns: 1fr; } }

/* Écran de succès + code fidélité */
.loyalty-success { display: none; text-align: center; padding: 8px 0; }
.loyalty-success.show { display: block; }
.loyalty-success svg { width: 54px; height: 54px; color: var(--accent); margin-bottom: 10px; }
.loyalty-success h3 { font-size: 26px; margin: 0 0 8px; }
.loyalty-success p { color: var(--text-2); font-size: 15px; margin: 0 auto 18px; max-width: 460px; }
.loyalty-code {
  display: inline-block;
  font-family: var(--font-mono); font-size: clamp(28px, 6vw, 40px);
  letter-spacing: 0.14em; font-weight: 700; color: var(--white);
  background: var(--bg-2); border: 1px dashed var(--accent);
  padding: 16px 28px; margin: 4px 0 14px;
}
.loyalty-code-hint { font-size: 13px !important; color: var(--text-2); }

/* Carte fidélité / parrainage à conserver */
.qg-card {
  width: 360px; max-width: 100%; margin: 6px auto 16px;
  aspect-ratio: 1.6 / 1;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(225,6,0,0.28), transparent 55%),
    linear-gradient(150deg, #1c1c1c 0%, #0e0e0e 100%);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 22px 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  text-align: left; box-shadow: 0 26px 60px -28px rgba(0,0,0,0.9);
  position: relative; overflow: hidden;
}
.qg-card::after {
  content: ""; position: absolute; right: -40px; bottom: -60px;
  width: 180px; height: 180px; border: 1px solid rgba(255,255,255,0.05); border-radius: 50%;
}
.qg-card-top { display: flex; align-items: center; justify-content: space-between; }
.qg-card-top img { height: 30px; }
.qg-card-type {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
}
.qg-card-code {
  font-family: var(--font-mono); font-size: 27px; font-weight: 700;
  letter-spacing: 0.1em; color: #fff;
}
.qg-card-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.qg-card-foot span { display: block; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); margin-bottom: 3px; }
.qg-card-foot b { font-size: 13px; color: #fff; font-weight: 600; }
.qg-cards-row { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.qg-card-print {
  background: none; border: 1px solid var(--line-strong); color: var(--text);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 11px 22px; cursor: pointer; transition: 0.3s var(--ease); margin-top: 4px;
}
.qg-card-print:hover { border-color: var(--accent); color: #fff; }

/* Parrainage : intitulés de sous-sections + double code */
.lform-legend {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
  margin: 22px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.lform-legend:first-of-type { margin-top: 4px; }
.referral-codes {
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-bottom: 10px;
}
.referral-codes > div { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.referral-codes > div > span {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-2);
}
.referral-codes .loyalty-code { font-size: clamp(22px, 4vw, 30px); margin: 0; }

/* Bons plans : offre de bienvenue + parrainage */
.offers {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 22px; max-width: 720px; margin: 30px auto 0;
  position: relative; z-index: 2;
}
.offer-card {
  background: var(--bg); border: 1px solid var(--line);
  padding: 30px 30px 28px; position: relative;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.offer-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 28px 70px -28px var(--accent);
  z-index: 3;
}
.offer-card:hover .offer-deal { color: var(--accent); }
.offer-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 100px; padding: 4px 12px; margin-bottom: 18px;
}
.offer-deal {
  font-size: 40px; font-weight: 700; color: var(--white);
  line-height: 1; letter-spacing: -0.02em; margin-bottom: 12px;
}
.offer-deal span { font-size: 22px; vertical-align: super; margin: 0 1px; }
.offer-card h3 { font-size: 20px; margin: 0 0 8px; }
.offer-card p { color: var(--text-2); font-size: 14.5px; margin: 0; }
@media (max-width: 620px) { .offers { grid-template-columns: 1fr; max-width: 360px; } }

/* Petits plus (services additionnels) */
.perks {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); margin-top: 28px;
  position: relative; z-index: 2;
}
.perk {
  background: var(--bg); padding: 26px 24px;
  display: flex; gap: 14px; align-items: flex-start;
}
.perk svg { width: 26px; height: 26px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.perk b { display: block; font-size: 15px; margin-bottom: 4px; }
.perk span { color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
@media (max-width: 900px) { .perks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .perks { grid-template-columns: 1fr; } }

/* ===== PARTENAIRES (bandeau défilant) ===== */
.partners { background: var(--bg); padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.partners-label {
  text-align: center; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-2);
  margin: 0 0 18px;
}
.partners-marquee { position: relative; width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.partners-track { display: flex; width: max-content; align-items: center; gap: 60px; animation: partnersScroll 26s linear infinite; }
.partners-track span {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--text-2);
  white-space: nowrap; transition: color 0.3s var(--ease);
}
.partners-track span::before { content: ""; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); flex: none; }
.partners-track span:hover { color: var(--white); }
/* Logos partenaires (wordmarks SVG) */
.partners-track .partner-logo {
  height: 26px; width: auto; flex: none; color: var(--text-2); opacity: 0.72;
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.partners-track .partner-logo text { fill: currentColor; font-family: var(--font-display, "Arial Narrow", sans-serif); }
.partners-track .partner-logo:hover { color: var(--white); opacity: 1; }
@keyframes partnersScroll { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }
.partners-marquee:hover .partners-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .partners-track { animation: none; } }

/* ===== RÉALISATIONS ===== */
.real-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 28px; position: relative; z-index: 2;
}
.build-card {
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.build-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.build-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.build-media .ph { width: 100%; height: 100%; transition: transform 0.7s var(--ease); }
.build-media .build-photo { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.build-card:hover .build-media .ph,
.build-card:hover .build-media .build-photo { transform: scale(1.05); }
.build-badge {
  position: absolute; top: 18px; left: 18px; z-index: 3;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--accent); color: #fff;
  padding: 7px 13px;
}
.build-body { padding: 30px 30px 34px; }
.build-body .car {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-2);
}
.build-body h3 { font-size: 30px; margin: 8px 0 26px; }
.build-desc { color: var(--text-2); font-size: 15.5px; margin: -10px 0 20px; max-width: 52ch; }
.build-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.build-list li {
  position: relative; padding-left: 26px;
  font-size: 15px; color: var(--text);
}
.build-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 14px; height: 2px; background: var(--accent);
}
.dyno {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px;
}
.dyno .col span {
  display: block; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-2); margin-bottom: 6px;
}
.dyno .col strong {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1;
}
.dyno .col.to strong { color: var(--accent); }
.dyno .col.to { text-align: right; }
.dyno .gain {
  display: grid; place-items: center; text-align: center;
  border: 1px solid var(--line-strong); padding: 8px 14px;
}
.dyno .gain b {
  font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--white); line-height: 1;
}
.dyno .gain em {
  font-family: var(--font-mono); font-style: normal; font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--silver);
}
.dyno-bar {
  margin-top: 24px; height: 6px; background: var(--bg-3); position: relative; overflow: hidden;
}
.dyno-bar i {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, var(--red-deep), var(--accent));
  transition: width 1.4s var(--ease);
}

/* ===== POURQUOI NOUS ===== */
.why { background: var(--bg-2); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); position: relative; z-index: 2; }
.why-card { background: var(--bg); padding: 46px 32px; position: relative; }
.why-card .idx {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 40px;
}
.why-card .why-icon { width: 44px; height: 44px; color: var(--silver); margin-bottom: 22px; }
.why-card .why-icon svg { width: 100%; height: 100%; }
.why-card h3 { font-size: 24px; margin-bottom: 12px; }
.why-card p { color: var(--text-2); font-size: 15px; margin: 0; }

/* ===== TÉMOIGNAGES ===== */
.testi { overflow: hidden; }
.testi-viewport { position: relative; z-index: 2; overflow: hidden; }
.testi-track { display: flex; transition: transform 0.7s var(--ease); }
.testi-slide { min-width: 100%; padding: 4px; }
.testi-card {
  border: 1px solid var(--line); background: var(--bg-2);
  padding: clamp(36px, 5vw, 64px);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 4vw, 54px); align-items: center;
}
.testi-avatar { width: 120px; height: 120px; flex: none; }
.testi-avatar .ph { width: 100%; height: 100%; border-radius: 50%; }
.testi-avatar .ph::after { font-size: 9px; padding: 4px 7px; }
.stars { display: flex; gap: 6px; margin-bottom: 22px; color: var(--accent); }
.stars svg { width: 20px; height: 20px; }
.testi-quote { font-family: var(--font-display); font-weight: 600; text-transform: none; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.18; letter-spacing: 0; }
.testi-meta { margin-top: 24px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
.testi-meta b { color: var(--white); }
.testi-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; position: relative; z-index: 2; }
.testi-dots { display: flex; gap: 10px; }
.testi-dots button { width: 30px; height: 4px; background: var(--line-strong); border: 0; padding: 0; transition: background 0.3s; }
.testi-dots button.active { background: var(--accent); }
.testi-arrows { display: flex; gap: 12px; }
.testi-arrows button { width: 52px; height: 52px; border: 1px solid var(--line-strong); background: transparent; color: var(--white); display: grid; place-items: center; transition: 0.3s var(--ease); }
.testi-arrows button:hover { border-color: var(--accent); background: var(--accent); }
.testi-arrows svg { width: 18px; height: 18px; }

/* ===== CONTACT ===== */
.contact { background: var(--bg-2); }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 5vw, 72px); position: relative; z-index: 2; }
.coords { display: flex; flex-direction: column; gap: 4px; }
.coord-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.coord-item:first-of-type { border-top: 1px solid var(--line); }
.coord-item span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-2); display: block; margin-bottom: 7px; }
.coord-item a, .coord-item p { font-size: 19px; margin: 0; color: var(--white); transition: color 0.3s; }
.coord-item a:hover { color: var(--accent); }
.map-ph { margin-top: 28px; height: 200px; border: 1px solid var(--line); }
.map-ph .ph { width: 100%; height: 100%; }

.form-card { border: 1px solid var(--line); background: var(--bg); padding: clamp(30px, 4vw, 48px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2); }
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  background: var(--bg-2); border: 1px solid var(--line-strong); color: var(--white);
  font-family: var(--font-body); font-size: 16px; padding: 14px 16px; width: 100%;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: var(--bg-3); }
.field.error input, .field.error textarea, .field.error select { border-color: var(--accent); }
.field .err { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; height: 0; overflow: hidden; transition: height 0.3s; }
.field.error .err { height: 14px; }
.form-note { margin-top: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--text-2); letter-spacing: 0.04em; }
.form-success {
  border: 1px solid var(--accent); background: rgba(225,6,0,0.07);
  padding: 22px 24px; display: none; align-items: center; gap: 16px;
  margin-bottom: 24px;
}
.form-success.show { display: flex; }
.form-success svg { width: 28px; height: 28px; color: var(--accent); flex: none; }
.form-success p { margin: 0; font-size: 15px; }

/* Consentement RGPD */
.field-consent .consent {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--text-2); cursor: pointer;
  text-transform: none; letter-spacing: 0; font-family: var(--font-body);
}
.field-consent input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 3px; flex: none;
  accent-color: var(--accent); cursor: pointer;
}
.form-note a { color: var(--silver); text-decoration: underline; }
.form-note a:hover { color: var(--white); }

/* Erreur d'envoi */
.form-error {
  display: none; border: 1px solid var(--accent);
  background: rgba(225,6,0,0.07); padding: 18px 22px; margin-top: 20px;
}
.form-error.show { display: block; }
.form-error p { margin: 0; font-size: 15px; }
.form-error a { color: var(--white); text-decoration: underline; }

/* Carte : chargement après consentement (Google Maps) */
.map-load {
  width: 100%; height: 100%; min-height: 220px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--bg-2); border: 1px dashed var(--line-strong);
  color: var(--text); padding: 24px; text-align: center;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.map-load:hover { border-color: var(--accent); background: var(--bg-3); }
.map-load strong { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; }
.map-load small { color: var(--text-2); font-size: 12.5px; line-height: 1.5; max-width: 42ch; }
.map-load small a { color: var(--silver); text-decoration: underline; }

/* ===== AVIS GOOGLE ===== */
.gbadge {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin: -16px auto 56px; position: relative; z-index: 2;
}
.gbadge .glogo { width: 38px; height: 38px; flex: none; }
.gbadge-note { display: flex; align-items: center; gap: 14px; }
.gbadge-note strong {
  font-family: var(--font-display); font-weight: 700;
  font-size: 44px; line-height: 1;
}
.gbadge-note > span {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2);
}
.gbadge-stars {
  position: relative; font-size: 26px; line-height: 1;
  color: rgba(255,255,255,0.18); letter-spacing: 2px; white-space: nowrap;
}
.gbadge-stars .stars-fill {
  position: absolute; inset: 0 auto 0 0; overflow: hidden;
  color: #fbbc04; width: 0;
}
.gbadge-stars.small { font-size: 17px; letter-spacing: 1px; }

.greviews {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  position: relative; z-index: 2;
}
.greview {
  border: 1px solid var(--line); background: var(--bg-2);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.greview:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.greview-head { display: flex; align-items: center; gap: 14px; }
.greview-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--bg-3); border: 1px solid var(--line-strong);
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  color: var(--silver);
}
.greview-who b { display: block; font-size: 15.5px; }
.greview-who span {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2);
}
.greview p {
  margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.greview-src {
  margin-top: auto; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2);
  transition: color 0.3s var(--ease);
}
.greview-src:hover { color: var(--white); }

.greviews-fallback { text-align: center; position: relative; z-index: 2; }
.greviews-fallback p { color: var(--text-2); margin: 0; }

.gactions {
  display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
  margin-top: 44px; position: relative; z-index: 2;
}

@media (max-width: 900px) {
  .greviews { grid-template-columns: 1fr; }
  .gbadge { flex-direction: column; gap: 12px; margin-bottom: 40px; }
}

/* ===== FOOTER ===== */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px 32px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-top p { color: var(--text-2); font-size: 15px; max-width: 38ch; margin: 20px 0 0; }
.footer-col h4 { font-size: 16px; letter-spacing: 0.12em; margin-bottom: 20px; color: var(--silver); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--text-2); font-size: 15px; transition: color 0.3s; }
.footer-col a:hover { color: var(--white); }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a { width: 42px; height: 42px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--silver); transition: 0.3s var(--ease); }
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; flex-wrap: wrap; }
.footer-bottom small, .footer-bottom a { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .nav { display: none; }
  .header-cta .btn { display: none; }
  .burger { display: block; }
  html[data-hero="split"] .hero-inner { grid-template-columns: 1fr; }
  html[data-hero="split"] .hero-panel { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
}
@media (max-width: 680px) {
  .svc-grid, .why-grid, .real-grid, .form-grid { grid-template-columns: 1fr; }
  .testi-card { grid-template-columns: 1fr; text-align: center; }
  .testi-avatar { margin: 0 auto; }
  .stars { justify-content: center; }
  .dyno { gap: 12px; }
}
