/* ============================================================
   LE QG MOTORSPORT — Feuille de style
   Direction artistique : paddock de course, atelier premium.
   ============================================================ */

:root {
  /* Marque */
  --red: #E10600;
  --red-deep: #b00500;
  --white: #FFFFFF;
  --silver: #C0C0C0;
  --bg: #050505;
  --bg-2: #101010;
  --bg-3: #181818;
  --text: #FFFFFF;
  --text-2: #B0B0B0;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Accent pilotable via Tweaks */
  --accent: var(--red);

  /* Intensité des motifs (pilotable) */
  --pattern-opacity: 0.10;
  --speed-opacity: 0.55;

  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);

  --font-display: "Saira Condensed", "Arial Narrow", sans-serif;
  --font-body: "Saira", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Typo ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.center { justify-content: center; }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

section {
  position: relative;
  padding-block: clamp(80px, 11vw, 160px);
}

.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(40px, 6.2vw, 92px);
  line-height: 1.0;
  margin-top: 18px;
}
.section-head p {
  color: var(--text-2);
  font-size: clamp(16px, 1.4vw, 20px);
  margin: clamp(24px, 3vw, 34px) 0 0;
  max-width: 60ch;
}
.section-head.center p { margin-inline: auto; }

.text-red { color: var(--accent); }
.text-silver {
  background: linear-gradient(180deg, #fff 0%, var(--silver) 55%, #6f6f6f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Motifs : nid d'abeille + lignes de vitesse ---------- */
.honeycomb {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--pattern-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.4'%3E%3Cpath d='M28 0 L56 16 L56 50 L28 66 L0 50 L0 16 Z'/%3E%3Cpath d='M28 66 L56 82 L56 116 L28 132 L0 116 L0 82 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 100px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 75%);
}

.speedlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.speedlines::before,
.speedlines::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 140%;
  left: -20%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: var(--speed-opacity);
  transform: skewY(-8deg);
}
.speedlines::before { top: 32%; animation: dash 5.5s linear infinite; }
.speedlines::after  { top: 64%; width: 90%; left: 5%; opacity: calc(var(--speed-opacity) * 0.5); animation: dash 7s linear infinite reverse; }

@keyframes dash {
  0%   { transform: skewY(-8deg) translateX(-30%); opacity: 0; }
  15%  { opacity: var(--speed-opacity); }
  85%  { opacity: var(--speed-opacity); }
  100% { transform: skewY(-8deg) translateX(30%); opacity: 0; }
}

/* ---------- Boutons ---------- */
.btn {
  --bw: 1px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 30px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: var(--bw) solid var(--line-strong);
  background: transparent;
  color: var(--text);
  transition: all 0.4s var(--ease);
  overflow: hidden;
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); box-shadow: 0 0 0 1px var(--red-deep), 0 18px 40px -16px var(--accent); transform: translateY(-2px); }

.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.04); transform: translateY(-2px); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Logo QG Motorsport ---------- */
.logo-img { display: block; height: 62px; width: auto; }
.logo-img-lg { height: 96px; }

/* ---------- Reveal au scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
