/* ============================================================
   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-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; }

/* ===== 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-card:hover .build-media .ph { 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; }
.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; }

/* ===== FOOTER ===== */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 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; }
}
