/* ============================================================
   RED9 — Landing sponsor
   Concept : tableau de bord moto réinterprété pour le sponsoring
   ============================================================ */

:root {
  --bg: #0A0A0B;
  --surface: #141416;
  --red: #E10600;
  --red-deep: #7A0000;
  --text: #F2F0EC;
  --text-muted: #8A8A8D;

  --surface-2: #1B1B1E;
  --hairline: rgba(242, 240, 236, 0.08);
  --hairline-strong: rgba(242, 240, 236, 0.14);
  --red-line: rgba(225, 6, 0, 0.35);

  --font-display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --font-cond: "Oswald", "Bebas Neue", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(56px, 9vw, 120px);
  --radius: 14px;
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; }
button { font: inherit; }

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

.site-header, main, .site-footer { position: relative; z-index: 1; }

/* ============================================================
   Ambiance — bulles rouges (transform only)
   ============================================================ */
.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bubble {
  position: absolute; border-radius: 50%; filter: blur(28px); opacity: 0.12;
  background: radial-gradient(circle at 50% 50%, var(--red), transparent 70%);
  will-change: transform;
}
.bubble--1 { width: 240px; height: 240px; left: 8%;  top: 12%; animation: drift1 26s ease-in-out infinite; }
.bubble--2 { width: 160px; height: 160px; left: 78%; top: 20%; opacity: 0.10; animation: drift2 32s ease-in-out infinite; }
.bubble--3 { width: 320px; height: 320px; left: 62%; top: 58%; opacity: 0.09; animation: drift3 38s ease-in-out infinite; }
.bubble--4 { width: 140px; height: 140px; left: 22%; top: 70%; opacity: 0.13; animation: drift1 30s ease-in-out infinite reverse; }
.bubble--5 { width: 200px; height: 200px; left: 45%; top: 34%; opacity: 0.08; animation: drift2 44s ease-in-out infinite; }
.bubble--6 { width: 120px; height: 120px; left: 88%; top: 78%; opacity: 0.11; animation: drift3 28s ease-in-out infinite reverse; }
@keyframes drift1 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(40px,-60px,0) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-50px,40px,0) scale(0.9); } }
@keyframes drift3 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(30px,50px,0) scale(1.08); } }

/* ============================================================
   Layout
   ============================================================ */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-y); }

.eyebrow {
  font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.22em;
  font-weight: 600; font-size: 0.82rem; color: var(--red); margin: 0 0 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); display: inline-block; }

.section__title {
  font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em;
  line-height: 0.98; font-size: clamp(2rem, 6vw, 3.4rem); text-transform: uppercase; margin-bottom: 8px;
}
.section__sub { color: var(--text-muted); font-size: 0.95rem; margin: 4px 0 0; }
.section__closer {
  margin-top: clamp(28px, 4vw, 44px); font-family: var(--font-cond); font-weight: 500;
  font-style: italic; color: var(--text); font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  text-align: center; opacity: 0.92;
}

/* Effet signature (Partenariat) — dégradé rouge balayé */
.signature-text {
  display: inline-block;
  background: linear-gradient(100deg, var(--red-deep) 0%, var(--red) 30%, #ff5a52 50%, var(--red) 70%, var(--red-deep) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: sig-sweep 7s linear infinite;
}
@keyframes sig-sweep { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }

/* ============================================================
   Boutons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-cond); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 0.95rem; padding: 14px 22px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}
.btn--cta { color: var(--text); background: var(--red); box-shadow: 0 6px 22px -6px rgba(225, 6, 0, 0.6); }
.btn--cta:hover { background: #ff0b04; transform: translateY(-2px); }
/* Rouge glass (semi-transparent, flouté) */
.btn--glass {
  color: var(--text);
  background: rgba(225, 6, 0, 0.14);
  border-color: rgba(225, 6, 0, 0.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn--glass:hover { background: rgba(225, 6, 0, 0.24); border-color: rgba(225, 6, 0, 0.7); transform: translateY(-1px); }

/* ============================================================
   Compte-tours + header
   ============================================================ */
.tacho { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: rgba(242, 240, 236, 0.06); z-index: 60; }
.tacho__fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--red-deep), var(--red)); box-shadow: 0 0 12px rgba(225, 6, 0, 0.8); transition: width 0.08s linear; }

.site-header {
  position: fixed; top: 3px; left: 0; right: 0; height: var(--header-h); z-index: 50;
  display: flex; align-items: center;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(10, 10, 11, 0.55);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--hairline);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; font-family: var(--font-display); font-size: 1.7rem; letter-spacing: 0.06em; color: var(--text); line-height: 1; }
/* Logo image RED9 (si présent) ; sinon fallback texte "RED9" */
.brand__logo { height: 30px; width: auto; max-width: 150px; object-fit: contain; display: block; border-radius: 8px; }
.brand__logo.is-missing { display: none; }
.brand__text { display: inline-flex; align-items: center; }
.brand__logo.is-loaded ~ .brand__text { display: none; }
.brand__text::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 5px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px rgba(225, 6, 0, 0.9); vertical-align: middle; }
.site-header__cta { padding: 10px 16px; font-size: 0.82rem; }

/* Grain */
.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* Diviseur bande de pneu */
.divider {
  height: 16px; width: 100%;
  background: repeating-linear-gradient(90deg, var(--hairline-strong) 0, var(--hairline-strong) 10px, transparent 10px, transparent 22px);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); opacity: 0.7;
}

/* Emplacements photo */
.photo-slot {
  position: relative; background: var(--surface); border: 1px dashed var(--hairline-strong);
  border-radius: var(--radius); display: grid; place-items: center; min-height: 220px; overflow: hidden;
}
.photo-slot::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 70% 0%, rgba(122, 0, 0, 0.22), transparent 60%); pointer-events: none;
}
.photo-slot__label { font-family: var(--font-cond); text-transform: none; letter-spacing: 0.04em; font-size: 0.75rem; color: var(--text-muted); z-index: 1; text-align: center; padding: 0 16px; }
/* Image réelle : couvre l'emplacement ; si absente (404), on la masque et
   le libellé (nom de fichier attendu) reste visible en fallback. */
.photo-slot__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.photo-slot__img.is-missing { display: none; }
.photo-slot__img.is-loaded ~ .photo-slot__label { display: none; }
.photo-slot--hero { min-height: clamp(240px, 42vw, 460px); }
.photo-slot--square { aspect-ratio: 1 / 1; min-height: 0; width: 100%; }
.photo-slot--wide { aspect-ratio: 4 / 3; min-height: 0; width: 100%; }

/* Icônes mask */
.foll-row__icon, .case__icon, .why-card__icon, .contact-card__icon {
  display: inline-block; background: currentColor;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}

/* ============================================================
   1. HERO
   ============================================================ */
.hero { padding-top: calc(var(--header-h) + var(--section-y)); background: radial-gradient(90% 60% at 15% -10%, rgba(122, 0, 0, 0.35), transparent 55%), var(--bg); }
.hero__inner { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.hero__title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: 0.92; letter-spacing: 0.01em; font-size: clamp(2.6rem, 11vw, 5.4rem); margin: 0 0 18px; }
.hero__title .x { color: var(--text-muted); font-size: 0.7em; padding: 0 0.1em; }
.hero__sponsor { color: var(--text); display: inline-block; }
.hero__sponsor:empty { display: none; }
.hero__subtitle { color: var(--text-muted); font-size: clamp(1rem, 2.4vw, 1.2rem); max-width: 44ch; margin: 0 0 26px; }
.hero__subtitle strong { color: var(--text); font-weight: 600; }

/* Bloc chiffres centré */
.hero__stats {
  display: flex; flex-wrap: wrap; justify-content: center; text-align: center;
  gap: clamp(20px, 4vw, 40px); margin-top: clamp(26px, 4vw, 38px);
  padding-top: clamp(22px, 3vw, 30px); border-top: 1px solid var(--hairline);
}
.hero__stats li { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hero__stat-num { font-family: var(--font-cond); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.03em; font-size: clamp(1.5rem, 4.5vw, 2.1rem); line-height: 1; color: var(--text); text-shadow: 0 0 16px rgba(225, 6, 0, 0.25); }
.hero__stat-lbl { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--text-muted); }

/* Compteur */
.counter { font-family: var(--font-cond); font-weight: 700; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; letter-spacing: 0.04em; line-height: 1; color: var(--text); text-shadow: 0 0 18px rgba(225, 6, 0, 0.28); }

/* ============================================================
   2. FONDATEUR — 2 lignes : photo carrée + callouts reliés
   ============================================================ */
.founder { margin-top: clamp(28px, 4vw, 44px); display: grid; gap: clamp(32px, 5vw, 56px); }
.founder-row { display: grid; grid-template-columns: 1fr; gap: clamp(18px, 4vw, 40px); align-items: center; }
.founder__photo { margin: 0; width: 100%; }
.callouts { display: grid; gap: 18px; }
.callout { display: flex; align-items: center; gap: 14px; color: var(--text-muted); font-size: 0.98rem; }
.callout strong { color: var(--text); font-weight: 600; }
.callout__text { flex: 1; }
.callout__line {
  height: 1px; background: var(--red-line); flex: 0 0 auto; width: clamp(30px, 7vw, 80px);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.callout.is-drawn .callout__line { transform: scaleX(1); }

/* ============================================================
   3. FOLLOWERS — liste + téléphone
   ============================================================ */
.followers-grid { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: 1fr; gap: clamp(30px, 5vw, 56px); align-items: center; }

/* Liste followers (compteurs animés) */
.foll-list { display: grid; gap: 12px; }
.foll-row {
  display: grid; grid-template-columns: 40px auto 1fr; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--hairline); border-left: 3px solid transparent;
  border-radius: var(--radius); padding: clamp(14px, 2.5vw, 20px) clamp(16px, 3vw, 24px);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.foll-row.is-live { border-left-color: var(--red); background: var(--surface-2); }
.foll-row__icon { width: 26px; height: 26px; color: var(--text-muted); transition: color 0.3s ease; }
.foll-row.is-live .foll-row__icon { color: var(--red); }
.foll-row__num { font-family: var(--font-cond); font-weight: 700; font-variant-numeric: tabular-nums; font-size: clamp(1.8rem, 6vw, 2.6rem); color: var(--text); }
.foll-row__label { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.82rem; color: var(--text-muted); justify-self: end; }

/* Camembert (section Audience — graphique Vues) */
.pie-wrap { display: grid; gap: clamp(16px, 3vw, 24px); align-items: center; }
.pie { position: relative; width: clamp(150px, 44vw, 200px); aspect-ratio: 1 / 1; margin-inline: auto; }
.pie svg { width: 100%; height: 100%; display: block; overflow: visible; }
.pie__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.pie__total { font-family: var(--font-cond); font-weight: 700; font-variant-numeric: tabular-nums; font-size: clamp(1.5rem, 6vw, 2rem); color: var(--text); line-height: 1; }
.pie__label { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.68rem; color: var(--text-muted); }
.pie__seg { transition: stroke-dasharray 1.1s cubic-bezier(0.22, 1, 0.36, 1), stroke-width 0.2s ease, filter 0.2s ease; cursor: pointer; }
.pie__seg.is-hot { stroke-width: 6.4; filter: brightness(1.25); }

.pie-legend { display: grid; gap: 6px; width: 100%; }
.pie-legend__item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; border: 1px solid transparent; transition: background 0.25s ease, border-color 0.25s ease; cursor: pointer; }
.pie-legend__item.is-hot { background: var(--surface-2); border-color: var(--red-line); }
.pie-legend .sw { width: 12px; height: 12px; border-radius: 3px; flex: 0 0 auto; }
.pie-legend b { color: var(--text); font-weight: 600; font-size: 0.88rem; }
.pie-legend .val { margin-left: auto; font-family: var(--font-cond); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); font-size: 1rem; }
.pie-legend .pct { color: var(--text-muted); font-size: 0.78rem; min-width: 3em; text-align: right; }

.phone-wrap { display: flex; justify-content: center; }
.phone {
  position: relative; width: clamp(230px, 62vw, 280px); aspect-ratio: 9 / 19;
  background: #050506; border: 2px solid #26262a; border-radius: 38px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.9), inset 0 0 0 6px #0d0d0f;
  padding: 10px; overflow: hidden;
}
/* Dynamic Island : pilule noire centrée */
.phone__island { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 34%; height: 15px; background: #000; border-radius: 999px; z-index: 4; }
.phone__live { position: absolute; top: 22px; right: 22px; z-index: 4; font-family: var(--font-cond); font-weight: 700; letter-spacing: 0.14em; font-size: 0.62rem; color: var(--text); background: var(--red); padding: 3px 9px 3px 18px; border-radius: 999px; }
.phone__live::before { content: ""; position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; background: var(--text); animation: live-blink 1.4s ease-in-out infinite; }
@keyframes live-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #0b0b0d; }
.pscreen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 40px 18px 24px; text-align: center; opacity: 0; transform: scale(1.02); transition: opacity 0.6s ease, transform 0.6s ease; }
.pscreen.is-active { opacity: 1; transform: none; }
.pscreen__bar { position: absolute; top: 44px; left: 0; right: 0; font-family: var(--font-cond); text-transform: lowercase; letter-spacing: 0.02em; font-size: 0.9rem; color: rgba(255,255,255,0.9); font-weight: 600; }
.pscreen__num { font-family: var(--font-cond); font-weight: 700; font-size: clamp(2.4rem, 12vw, 3.4rem); color: #fff; line-height: 1; }
.pscreen__cap { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.pscreen__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 14px; width: 78%; }
.pscreen__grid i { aspect-ratio: 1; background: rgba(255,255,255,0.22); border-radius: 4px; }
.pscreen__play { margin-top: 14px; width: 0; height: 0; border-style: solid; border-width: 14px 0 14px 24px; border-color: transparent transparent transparent rgba(255,255,255,0.9); }
.pscreen__wave { display: flex; align-items: flex-end; gap: 4px; height: 34px; margin-top: 14px; }
.pscreen__wave i { width: 5px; background: rgba(255,255,255,0.85); border-radius: 3px; }
.pscreen__wave i:nth-child(1){height:40%} .pscreen__wave i:nth-child(2){height:75%} .pscreen__wave i:nth-child(3){height:55%}
.pscreen__wave i:nth-child(4){height:100%} .pscreen__wave i:nth-child(5){height:60%} .pscreen__wave i:nth-child(6){height:85%} .pscreen__wave i:nth-child(7){height:45%}
.pscreen__lines { margin-top: 14px; width: 70%; display: grid; gap: 7px; }
.pscreen__lines i { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.28); }
.pscreen__lines i:nth-child(2){ width: 80%; } .pscreen__lines i:nth-child(3){ width: 55%; }
.pscreen--ig { background: linear-gradient(150deg, #833ab4 0%, #e1306c 55%, #f77737 100%); }
.pscreen--yt { background: radial-gradient(120% 90% at 50% 20%, #2a0000, #0b0b0d 70%); }
.pscreen--yt .pscreen__bar { color: #ff3b30; }
.pscreen--tt { background: #0b0b0d; }
.pscreen--tt .pscreen__num { text-shadow: 2px 0 #25f4ee, -2px 0 #fe2c55; }
.pscreen--xf { background: linear-gradient(160deg, #16181c 0%, #1d9bf0 130%); }

/* ============================================================
   4. AUDIENCE — graphiques en courbes
   ============================================================ */
.charts { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: 1fr; gap: clamp(18px, 3vw, 26px); }
.chart { position: relative; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: clamp(18px, 3vw, 26px); margin: 0; }

/* Info-bulle graphiques */
.chart-tip {
  position: absolute; z-index: 5; pointer-events: none;
  transform: translate(-50%, -130%);
  background: #000; border: 1px solid var(--hairline-strong); border-radius: 8px;
  padding: 7px 11px; font-size: 0.82rem; color: var(--text); white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  opacity: 0; transition: opacity 0.15s ease; box-shadow: 0 8px 24px -10px rgba(0,0,0,0.9);
}
.chart-tip.is-visible { opacity: 1; }
.chart-tip__dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.chart-tip b { font-weight: 700; }
.chart__title { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.9rem; color: var(--text); margin: 0 0 16px; }
/* Diagramme en barres */
.bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 3vw, 22px); align-items: end; }
.bar-col { display: flex; flex-direction: column; gap: 10px; }
.bar-plot { height: clamp(120px, 26vw, 180px); display: flex; align-items: flex-end; border-bottom: 1px solid var(--hairline-strong); }
.bar-fill { width: 100%; min-height: 3px; border-radius: 6px 6px 0 0; transform: scaleY(0); transform-origin: bottom; transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1); }
.bars.is-drawn .bar-fill { transform: scaleY(1); }
.bar-info { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.bar-plat { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; color: var(--text-muted); }
.bar-value { font-family: var(--font-cond); font-weight: 700; font-variant-numeric: tabular-nums; font-size: clamp(1.05rem, 3.2vw, 1.5rem); color: var(--text); line-height: 1.1; }
.bar-metric { font-size: 0.68rem; color: var(--text-muted); line-height: 1.25; }
.bar-col { cursor: pointer; }
.bar-col .bar-fill { transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s ease; }
.bar-col.is-hot .bar-fill { filter: brightness(1.35) saturate(1.1); }
.bar-col.is-hot .bar-value { color: var(--red); }

/* ============================================================
   5. RÉSULTATS — carrousel horizontal continu
   ============================================================ */
.cases-carousel {
  margin-top: clamp(28px, 4vw, 44px); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.cases-track { display: flex; gap: 16px; width: max-content; animation: case-scroll 44s linear infinite; }
/* Le défilement est piloté en JS (boucle fluide + ralenti au survol sans à-coup) ;
   l'animation CSS ci-dessus ne sert que de repli si le JS ne s'exécute pas. */
.case {
  flex: 0 0 auto; width: clamp(240px, 74vw, 300px);
  background: var(--surface); border: 1px solid var(--hairline); border-top: 2px solid var(--red-line);
  border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); display: flex; flex-direction: column;
}
/* Emplacement logo de marque (au-dessus du nom) */
.case__logo { position: relative; height: 42px; margin-bottom: 12px; display: flex; align-items: center; }
.case__logo-img { height: 30px; width: auto; max-width: 150px; object-fit: contain; border-radius: 8px; }
.case__logo-img.is-missing { display: none; }
.case__logo-fallback { position: absolute; left: 0; top: 0; height: 42px; display: flex; align-items: center; font-family: var(--font-cond); font-size: 0.66rem; letter-spacing: 0.02em; color: var(--text-muted); }
.case__logo-img.is-loaded ~ .case__logo-fallback { display: none; }
.case__brand { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; font-size: clamp(1rem, 2.6vw, 1.2rem); color: var(--text); margin-bottom: 8px; }
.case__amount { font-family: var(--font-cond); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; line-height: 0.95; font-size: clamp(2.2rem, 6.5vw, 3rem); color: var(--text); }
.case__amount .counter { color: var(--text); text-shadow: none; }
.case__metric { margin: 4px 0 0; font-size: 0.86rem; color: var(--text-muted); }
.case__note { margin: 12px 0 0; font-size: 0.9rem; color: var(--text-muted); }
@keyframes case-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Marquee partenaires */
.marquee { margin-top: clamp(30px, 5vw, 48px); }
.marquee__label { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; color: var(--text-muted); margin: 0 0 16px; }
.marquee__viewport { 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); }
.marquee__track { display: flex; width: max-content; gap: 14px; animation: marquee 26s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { position: relative; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 180px; height: 72px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; transition: border-color 0.2s ease; }
.marquee__item:hover { border-color: var(--red-line); }
/* Logo : object-fit contain (jamais rogné) + padding autour */
/* Hauteur d'affichage uniforme pour tous les logos, quel que soit le fichier source */
.marquee__img { height: 34px; width: auto; max-width: 130px; object-fit: contain; border-radius: 8px; }
.marquee__img.is-missing { display: none; }
.marquee__fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 12px; font-family: var(--font-cond); font-size: 0.68rem; letter-spacing: 0.02em; color: var(--text-muted); text-align: center; word-break: break-word; }
.marquee__img.is-loaded ~ .marquee__fallback { display: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   6. POURQUOI — photos alternées
   ============================================================ */
.why-block { display: grid; grid-template-columns: 1fr; gap: clamp(20px, 4vw, 44px); align-items: center; margin-top: clamp(28px, 4vw, 44px); }
.why-photo { margin: 0; }
.why-text { display: flex; flex-direction: column; }
.why-card__icon { width: 34px; height: 34px; color: var(--red); margin-bottom: 16px; transform: translateY(8px) scale(0.8); opacity: 0; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s, opacity 0.6s ease 0.1s; }
.why-block.is-in .why-card__icon { transform: none; opacity: 1; }
.why-card__title { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; font-size: clamp(1.3rem, 3.6vw, 1.8rem); margin-bottom: 12px; }
.why-card__body { color: var(--text-muted); margin: 0; }

/* ============================================================
   7. CTA final
   ============================================================ */
.final-cta { background: radial-gradient(80% 70% at 50% 120%, rgba(122, 0, 0, 0.4), transparent 60%), var(--bg); text-align: center; }
.final-cta__inner { max-width: 820px; margin-inline: auto; }
.final-cta__title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: 1.02; font-size: clamp(2rem, 7vw, 4rem); margin: 6px 0 34px; }
.final-cta__contacts { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.contact-card { display: inline-flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: 14px; padding: 16px 24px; min-width: 260px; transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease; }
.contact-card:hover { transform: translateY(-2px); border-color: var(--red-line); background: var(--surface-2); }
.contact-card__icon { width: 26px; height: 26px; color: var(--red); flex: 0 0 auto; }
.contact-card__meta { display: flex; flex-direction: column; text-align: left; }
.contact-card__label { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.68rem; color: var(--text-muted); }
.contact-card__value { font-size: clamp(1.05rem, 3vw, 1.35rem); font-weight: 600; color: var(--text); }

/* Rotator (audience + CTA) */
.rotator { position: relative; }
.rotator__item { opacity: 0; transform: translateY(0.5em); transition: opacity 0.5s ease, transform 0.5s ease; }
.rotator__item.is-active { opacity: 1; transform: none; }
.rotator--block { display: block; min-height: 2.6em; }
.rotator--block .rotator__item { position: absolute; left: 0; right: 0; }
.rotator--block .rotator__item.is-active { position: relative; }
.rotator--inline { display: inline-block; vertical-align: bottom; text-align: left; transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.rotator--inline .rotator__item { position: absolute; left: 0; top: 0; white-space: nowrap; }
.rotator--inline .rotator__item.is-active { position: relative; }
.final-cta__rotator .rotator__item { color: var(--red); text-shadow: 0 0 24px rgba(225, 6, 0, 0.4); }

/* ============================================================
   Footer — mention discrète "Made by RED9"
   ============================================================ */
.site-footer { position: relative; overflow: hidden; background: var(--bg); border-top: 1px solid var(--hairline); }

.footer-credit {
  width: 100%;
  text-align: center;
  padding: 24px 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.footer-nine {
  color: var(--red);
  text-shadow: 0 0 8px var(--red);
}

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   Desktop
   ============================================================ */
@media (min-width: 760px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; }
  .followers-grid { grid-template-columns: 1.1fr 0.9fr; }

  /* Fondateur : alternance photo / infos, sans chevauchement */
  .founder-row { grid-template-columns: 300px 1fr; align-items: center; }
  .founder-row--reverse { grid-template-columns: 1fr 300px; }
  .founder-row--reverse .founder__photo { order: 2; }
  .founder-row--reverse .callouts { order: 1; }
  .founder-row--reverse .callout { flex-direction: row-reverse; text-align: right; }
  .founder-row--reverse .callout__line { transform-origin: right center; }

  /* Pourquoi : photo / texte alterné */
  .why-block { grid-template-columns: 1fr 1fr; }
  .why-block--reverse .why-photo { order: 2; }
}

@media (min-width: 860px) {
  .charts { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   prefers-reduced-motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .callout__line { transform: scaleX(1); }
  .rotator__item { opacity: 0; }
  .rotator__item.is-active { opacity: 1; }
  .tacho__fill { transition: none; }
  .ambient { display: none; }
  .cases-track, .marquee__track { animation: none; }
}
