/* ═════════════════════════════════════════════════════════════════
   performance.css — composants visuels uniques à /performance/
   Thème : cockpit Formule 1 / banc d'essai moteur / telemetry course
   ─────────────────────────────────────────────────────────────────
   Palette : marine très sombre dominante (cockpit), sauge (green zone),
   bordeaux (red zone / alerts), cream pour les digits, rose racing.
   Composants : chrono digital géant, gauges analogiques SVG, drag race
   2 voitures, telemetry chart, pit-crew dashboard, podium, comparateur
   poids d'images, bottleneck cards, optimization stages.
═════════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────────
   ROOT TOKENS — palette racing locale
───────────────────────────────────────────────────────────────── */
:root {
  --rc-bg:        #07091a;            /* fond cockpit très sombre */
  --rc-bg-2:      #0c1230;            /* secondary-950 alike */
  --rc-bg-3:      #13234f;            /* secondary-900 */
  --rc-chrome:    #adb4c2;            /* chrome métallique */
  --rc-chrome-d:  #5d6478;
  --rc-green:     #6b8169;            /* OK / dans le vert (accent) */
  --rc-green-l:   #93b58e;
  --rc-red:       #5a1224;            /* dans le rouge (primary) */
  --rc-red-l:     #c84e62;
  --rc-amber:     #f4b400;            /* warning yellow zone */
  --rc-cream:     #f5ecd9;
  --rc-coral:     #e2a8a0;
  --rc-cyan:      #22d3ee;            /* accent telemetry */
  --rc-orange:    #f97316;            /* boost / heat */
  --rc-line:      rgba(245, 236, 217, 0.12);
  --rc-line-d:    rgba(245, 236, 217, 0.06);
}


/* ─────────────────────────────────────────────────────────────────
   1 · COCKPIT FRAME — wrapper hero avec encadrement chrome
───────────────────────────────────────────────────────────────── */
.cockpit-frame {
  position: relative;
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.06), transparent 55%),
    radial-gradient(circle at 10% 100%, rgba(90, 18, 36, 0.22), transparent 60%),
    radial-gradient(circle at 90% 50%, rgba(19, 35, 79, 0.5), transparent 60%),
    linear-gradient(180deg, #050714 0%, #07091a 60%, #0a1024 100%);
  border-top: 1px solid var(--rc-line);
  border-bottom: 1px solid var(--rc-line);
  overflow: hidden;
  isolation: isolate;
}
.cockpit-frame::before {
  /* Grille subtile en arrière-plan */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(173, 180, 194, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(173, 180, 194, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}
.cockpit-frame::after {
  /* Scanline subtile */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(245, 236, 217, 0.012) 0px,
    rgba(245, 236, 217, 0.012) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 0;
}
.cockpit-frame > * { position: relative; z-index: 1; }


/* ─────────────────────────────────────────────────────────────────
   2 · SYSTEM BAR — barre cockpit du haut (mode / lap / sector)
───────────────────────────────────────────────────────────────── */
.system-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.7rem 1.2rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.55);
  background: rgba(7, 9, 26, 0.85);
  border-top: 1px solid var(--rc-line);
  border-bottom: 1px solid var(--rc-line);
  flex-wrap: wrap;
}
.system-bar-item { display: inline-flex; align-items: center; gap: 0.5rem; }
.system-bar-item strong {
  color: var(--rc-cream);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.system-bar-item .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rc-green);
  box-shadow: 0 0 6px var(--rc-green);
  animation: rc-dot-pulse 1.6s ease-in-out infinite;
}
.system-bar-item .dot.is-amber { background: var(--rc-amber); box-shadow: 0 0 6px var(--rc-amber); }
.system-bar-item .dot.is-red   { background: var(--rc-red-l); box-shadow: 0 0 6px var(--rc-red-l); }

@keyframes rc-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}


/* ─────────────────────────────────────────────────────────────────
   3 · CHRONO DISPLAY — gros chrono digital tabular-nums géant
───────────────────────────────────────────────────────────────── */
.chrono-display {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  padding: 1.5rem 2.4rem 1.4rem;
  background: linear-gradient(180deg, rgba(7, 9, 26, 0.9), rgba(12, 18, 48, 0.95));
  border: 1px solid var(--rc-line);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(245, 236, 217, 0.08),
    inset 0 -1px 0 rgba(7, 9, 26, 0.8),
    0 30px 60px -30px rgba(34, 211, 238, 0.25);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  color: var(--rc-cream);
}
.chrono-display::before {
  /* Mini LED indicator top-left */
  content: "REC";
  position: absolute;
  top: 0.7rem;
  left: 1rem;
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  color: var(--rc-red-l);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.chrono-display::after {
  /* Dot LED qui clignote */
  content: "";
  position: absolute;
  top: 0.83rem;
  left: 0.7rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rc-red-l);
  box-shadow: 0 0 6px var(--rc-red-l);
  animation: rc-led-blink 1.2s ease-in-out infinite;
}
@keyframes rc-led-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

.chrono-display-meta {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.5);
  position: absolute;
  bottom: 0.6rem;
  right: 1rem;
}

.chrono-digits {
  font-size: clamp(3.2rem, 9vw, 5.6rem);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--rc-cream);
  text-shadow:
    0 0 12px rgba(34, 211, 238, 0.35),
    0 0 22px rgba(34, 211, 238, 0.15);
}
.chrono-digits.is-good { color: var(--rc-green-l); text-shadow: 0 0 12px rgba(107, 129, 105, 0.5); }
.chrono-digits.is-bad  { color: var(--rc-red-l);   text-shadow: 0 0 12px rgba(200, 78, 98, 0.5); }

.chrono-millis {
  font-size: clamp(1.4rem, 4vw, 2.3rem);
  color: var(--rc-coral);
  font-weight: 500;
  margin-left: 0.15rem;
  letter-spacing: -0.02em;
  opacity: 0.95;
}
.chrono-unit {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.55);
  margin-left: 0.7rem;
}


/* ─────────────────────────────────────────────────────────────────
   4 · GAUGE ANALOG — gauge circulaire analogique SVG
───────────────────────────────────────────────────────────────── */
.gauge-analog {
  position: relative;
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.gauge-analog svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.gauge-analog-face {
  fill: rgba(7, 9, 26, 0.85);
  stroke: rgba(173, 180, 194, 0.25);
  stroke-width: 1.5;
}
.gauge-analog-rim {
  fill: none;
  stroke: rgba(173, 180, 194, 0.5);
  stroke-width: 1;
}
.gauge-analog-zone-green {
  fill: none;
  stroke: var(--rc-green);
  stroke-width: 7;
  opacity: 0.85;
}
.gauge-analog-zone-amber {
  fill: none;
  stroke: var(--rc-amber);
  stroke-width: 7;
  opacity: 0.85;
}
.gauge-analog-zone-red {
  fill: none;
  stroke: var(--rc-red-l);
  stroke-width: 7;
  opacity: 0.85;
}
.gauge-analog-tick {
  stroke: rgba(245, 236, 217, 0.55);
  stroke-width: 1;
}
.gauge-analog-tick-major {
  stroke: var(--rc-cream);
  stroke-width: 1.5;
}
.gauge-analog-needle {
  stroke: var(--rc-coral);
  stroke-width: 2.4;
  stroke-linecap: round;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 4px rgba(226, 168, 160, 0.6));
  transform: rotate(var(--needle-angle, -90deg));
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gauge-analog-hub {
  fill: var(--rc-cream);
  stroke: var(--rc-bg);
  stroke-width: 1.5;
}
.gauge-analog-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 6px;
  fill: rgba(245, 236, 217, 0.55);
  text-anchor: middle;
}

.gauge-value {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, 0);
  font-family: "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--rc-cream);
  text-align: center;
  letter-spacing: -0.01em;
  line-height: 1;
}
.gauge-value small {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.5);
  margin-top: 0.25rem;
  font-weight: 400;
}
.gauge-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.6);
  text-align: center;
  margin-top: 0.5rem;
}


/* ─────────────────────────────────────────────────────────────────
   5 · CWV BAR — Core Web Vitals barre avec marqueur target
───────────────────────────────────────────────────────────────── */
.cwv-row {
  display: grid;
  grid-template-columns: 90px 1fr 80px;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem 0;
}
.cwv-row + .cwv-row { border-top: 1px dashed rgba(245, 236, 217, 0.1); }
.cwv-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rc-cream);
  font-weight: 500;
}
.cwv-bar {
  position: relative;
  height: 10px;
  background: rgba(245, 236, 217, 0.06);
  border-radius: 5px;
  overflow: visible;
}
.cwv-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--rc-green) 0%, var(--rc-green-l) 100%);
  width: var(--cwv-fill, 25%);
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cwv-bar-fill.is-good { background: linear-gradient(90deg, var(--rc-green), var(--rc-green-l)); }
.cwv-bar-fill.is-okay { background: linear-gradient(90deg, var(--rc-amber), #ffd566); }
.cwv-bar-fill.is-fail { background: linear-gradient(90deg, var(--rc-red), var(--rc-red-l)); }
.cwv-marker {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 18px;
  background: var(--rc-cream);
  left: var(--cwv-target, 60%);
}
.cwv-marker::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--rc-cream);
}
.cwv-marker::after {
  content: "TARGET";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  color: rgba(245, 236, 217, 0.6);
  white-space: nowrap;
}
.cwv-value {
  font-family: "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  color: var(--rc-cream);
  text-align: right;
  font-weight: 500;
}
.cwv-value.is-good { color: var(--rc-green-l); }
.cwv-value.is-bad  { color: var(--rc-red-l); }


/* ─────────────────────────────────────────────────────────────────
   6 · TELEMETRY CHART — courbe SVG de telemetry
───────────────────────────────────────────────────────────────── */
.telemetry-chart {
  position: relative;
  background: rgba(7, 9, 26, 0.6);
  border: 1px solid var(--rc-line);
  border-radius: 12px;
  padding: 1rem 1.1rem 0.9rem;
  font-family: "JetBrains Mono", monospace;
}
.telemetry-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.55);
  margin-bottom: 0.5rem;
}
.telemetry-chart-head strong {
  color: var(--rc-cyan);
  font-weight: 500;
}
.telemetry-chart svg {
  width: 100%;
  height: auto;
  display: block;
}
.telemetry-grid line {
  stroke: rgba(173, 180, 194, 0.08);
  stroke-width: 1;
}
.telemetry-line {
  fill: none;
  stroke: var(--rc-cyan);
  stroke-width: 1.8;
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.55));
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: rc-trace 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.4s;
}
.telemetry-line.is-shadow {
  stroke: var(--rc-red-l);
  opacity: 0.55;
  filter: drop-shadow(0 0 4px rgba(200, 78, 98, 0.45));
  stroke-dasharray: 4 4;
  animation-delay: 0.2s;
}
.telemetry-area {
  fill: url(#telemetry-fade);
  opacity: 0.5;
}
.telemetry-dot {
  fill: var(--rc-cyan);
  filter: drop-shadow(0 0 5px var(--rc-cyan));
}

@keyframes rc-trace {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .telemetry-line { animation: none; stroke-dashoffset: 0; }
}

.telemetry-axis {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.52rem;
  fill: rgba(245, 236, 217, 0.45);
  letter-spacing: 0.12em;
}


/* ─────────────────────────────────────────────────────────────────
   7 · PIT CREW CARD — carnet pit-crew (rôle + status + count)
───────────────────────────────────────────────────────────────── */
.pit-crew-card {
  position: relative;
  background: rgba(12, 18, 48, 0.6);
  border: 1px solid var(--rc-line);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.pit-crew-card:hover {
  border-color: rgba(34, 211, 238, 0.3);
  transform: translateY(-1px);
}
.pit-crew-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.1);
  color: var(--rc-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  border: 1px solid rgba(34, 211, 238, 0.25);
  flex: none;
}
.pit-crew-card-icon.is-red    { background: rgba(200, 78, 98, 0.1); color: var(--rc-red-l); border-color: rgba(200, 78, 98, 0.25); }
.pit-crew-card-icon.is-green  { background: rgba(107, 129, 105, 0.15); color: var(--rc-green-l); border-color: rgba(107, 129, 105, 0.3); }
.pit-crew-card-icon.is-coral  { background: rgba(226, 168, 160, 0.12); color: var(--rc-coral); border-color: rgba(226, 168, 160, 0.3); }
.pit-crew-card-body { flex: 1; min-width: 0; }
.pit-crew-card-role {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.55);
}
.pit-crew-card-value {
  font-family: "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  color: var(--rc-cream);
  font-weight: 500;
  line-height: 1.1;
  margin-top: 1px;
}
.pit-crew-card-value em {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
  color: var(--rc-coral);
}


/* ─────────────────────────────────────────────────────────────────
   8 · BEFORE / AFTER — comparaison avec barres horizontales
───────────────────────────────────────────────────────────────── */
.before-after {
  background: var(--rc-cream);
  border: 1px solid rgba(12, 15, 26, 0.1);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
}
.before-after.is-ink {
  background: rgba(12, 18, 48, 0.7);
  border-color: var(--rc-line);
  color: var(--rc-cream);
}
.before-after-row {
  display: grid;
  grid-template-columns: 130px 1fr 1fr 90px;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0;
}
.before-after-row + .before-after-row {
  border-top: 1px dashed rgba(12, 15, 26, 0.12);
}
.before-after.is-ink .before-after-row + .before-after-row {
  border-top-color: rgba(245, 236, 217, 0.08);
}
.before-after-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(12, 15, 26, 0.7);
  font-weight: 500;
}
.before-after.is-ink .before-after-label { color: rgba(245, 236, 217, 0.7); }

.before-after-bar {
  position: relative;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding-left: 0.6rem;
  font-family: "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: var(--rc-cream);
  background: var(--rc-red);
  font-weight: 500;
  width: var(--bar-width, 100%);
  overflow: hidden;
}
.before-after-bar.is-after {
  background: var(--rc-green);
}
.before-after-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent 0,
    transparent 6px,
    rgba(245, 236, 217, 0.08) 6px,
    rgba(245, 236, 217, 0.08) 7px
  );
}
.before-after-delta {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--rc-red);
  text-align: right;
  letter-spacing: -0.01em;
}
.before-after-delta.is-positive { color: var(--rc-green); }
.before-after.is-ink .before-after-delta { color: var(--rc-red-l); }
.before-after.is-ink .before-after-delta.is-positive { color: var(--rc-green-l); }

@media (max-width: 720px) {
  .before-after-row { grid-template-columns: 1fr; gap: 0.4rem; }
}


/* ─────────────────────────────────────────────────────────────────
   9 · DRAG RACE — 2 voitures se courant sur ligne d'arrivée
───────────────────────────────────────────────────────────────── */
.drag-race {
  position: relative;
  background: linear-gradient(180deg, #07091a, #0c1230);
  border: 1px solid var(--rc-line);
  border-radius: 16px;
  padding: 2rem 1.5rem 1.5rem;
  overflow: hidden;
}
.drag-race::before {
  /* Lumières de stade ambiantes */
  content: "";
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 380px; height: 200px;
  background: radial-gradient(ellipse, rgba(34, 211, 238, 0.12), transparent 70%);
  pointer-events: none;
}
.drag-race-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.55);
}
.drag-race-head strong {
  color: var(--rc-cream);
  font-weight: 500;
}

.race-lane {
  position: relative;
  height: 90px;
  margin: 0.5rem 0 0.4rem;
}
.race-track {
  position: absolute;
  top: 50%;
  left: 0; right: 70px;
  transform: translateY(-50%);
  height: 38px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(245, 236, 217, 0.18) 0,
      rgba(245, 236, 217, 0.18) 14px,
      transparent 14px,
      transparent 28px
    ),
    linear-gradient(180deg, #1a1f2e, #0c1230);
  background-position: center, 0 0;
  background-repeat: repeat-x, no-repeat;
  background-size: 28px 2px, 100% 100%;
  border-top: 1px solid rgba(245, 236, 217, 0.15);
  border-bottom: 1px solid rgba(245, 236, 217, 0.15);
}
.race-finish-line {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  width: 14px;
  height: 56px;
  background:
    repeating-linear-gradient(
      0deg,
      var(--rc-cream) 0,
      var(--rc-cream) 7px,
      var(--rc-bg) 7px,
      var(--rc-bg) 14px
    ),
    repeating-linear-gradient(
      90deg,
      var(--rc-cream) 0,
      var(--rc-cream) 7px,
      var(--rc-bg) 7px,
      var(--rc-bg) 14px
    );
  background-blend-mode: difference;
  border: 1px solid rgba(245, 236, 217, 0.3);
}
.race-finish-line::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 14px;
  background: var(--rc-cream);
}
.race-finish-line::after {
  content: "🏁";
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  filter: grayscale(0.4);
}

.race-car {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 32px;
  width: 70px;
  left: var(--car-pos, 0%);
  transition: left 3s cubic-bezier(0.34, 1.2, 0.6, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.race-car svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}
.race-car-meta {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rc-cream);
  white-space: nowrap;
  margin-bottom: 4px;
  padding: 2px 6px;
  background: rgba(7, 9, 26, 0.85);
  border: 1px solid var(--rc-line);
  border-radius: 3px;
}
.race-car-meta.is-cyan  { color: var(--rc-cyan); border-color: rgba(34, 211, 238, 0.3); }
.race-car-meta.is-red   { color: var(--rc-red-l); border-color: rgba(200, 78, 98, 0.3); }

.race-lane-meta {
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  font-family: "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  color: var(--rc-cream);
  font-weight: 500;
  text-align: right;
  width: 78px;
  padding-right: 4px;
}
.race-lane-meta small {
  display: block;
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.45);
  margin-top: 1px;
}
.race-lane-meta.is-cyan { color: var(--rc-cyan); }
.race-lane-meta.is-red  { color: var(--rc-red-l); }


/* ─────────────────────────────────────────────────────────────────
   10 · LAP TIMES — liste de lap times (best/diff)
───────────────────────────────────────────────────────────────── */
.lap-times {
  background: rgba(7, 9, 26, 0.6);
  border: 1px solid var(--rc-line);
  border-radius: 12px;
  overflow: hidden;
  font-family: "JetBrains Mono", monospace;
}
.lap-times-head {
  display: grid;
  grid-template-columns: 60px 1fr 100px 80px;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: rgba(245, 236, 217, 0.04);
  border-bottom: 1px solid var(--rc-line);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.55);
}
.lap-row {
  display: grid;
  grid-template-columns: 60px 1fr 100px 80px;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  align-items: center;
  font-size: 0.78rem;
  color: var(--rc-cream);
  border-bottom: 1px solid rgba(245, 236, 217, 0.04);
  opacity: 0;
  transform: translateY(8px);
  animation: rc-lap-in 0.5s ease-out forwards;
}
.lap-row:nth-child(2) { animation-delay: 0.08s; }
.lap-row:nth-child(3) { animation-delay: 0.16s; }
.lap-row:nth-child(4) { animation-delay: 0.24s; }
.lap-row:nth-child(5) { animation-delay: 0.32s; }
.lap-row:nth-child(6) { animation-delay: 0.4s; }
.lap-row:nth-child(7) { animation-delay: 0.48s; }
@keyframes rc-lap-in { to { opacity: 1; transform: translateY(0); } }

.lap-row.is-best { background: rgba(107, 129, 105, 0.1); }
.lap-row .lap-num {
  color: rgba(245, 236, 217, 0.55);
  font-variant-numeric: tabular-nums;
}
.lap-row .lap-name { color: var(--rc-cream); }
.lap-row .lap-time {
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-weight: 500;
}
.lap-row.is-best .lap-time { color: var(--rc-coral); }
.lap-row .lap-diff {
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-size: 0.7rem;
  color: rgba(245, 236, 217, 0.5);
}
.lap-row .lap-diff.is-positive { color: var(--rc-green-l); }
.lap-row .lap-diff.is-negative { color: var(--rc-red-l); }


/* ─────────────────────────────────────────────────────────────────
   11 · PODIUM — 3 marches (1er marche centrale plus haute)
───────────────────────────────────────────────────────────────── */
.podium {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  align-items: end;
  gap: 0.6rem;
  max-width: 540px;
  margin: 0 auto;
}
.podium-step {
  position: relative;
  background: linear-gradient(180deg, rgba(173, 180, 194, 0.2), rgba(173, 180, 194, 0.05));
  border: 1px solid rgba(173, 180, 194, 0.25);
  border-radius: 6px 6px 0 0;
  padding: 1.1rem 0.8rem 1rem;
  text-align: center;
  color: var(--rc-cream);
}
.podium-step-1 {
  height: 175px;
  background: linear-gradient(180deg, rgba(244, 180, 0, 0.25), rgba(244, 180, 0, 0.05));
  border-color: rgba(244, 180, 0, 0.5);
  box-shadow: 0 0 30px -8px rgba(244, 180, 0, 0.4);
}
.podium-step-2 { height: 130px; }
.podium-step-3 { height: 105px; opacity: 0.85; }
.podium-rank {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.podium-step-1 .podium-rank { color: var(--rc-amber); font-size: 2.8rem; }
.podium-step-2 .podium-rank { color: var(--rc-chrome); }
.podium-step-3 .podium-rank { color: var(--rc-coral); opacity: 0.85; }
.podium-name {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.85);
  margin-bottom: 0.25rem;
}
.podium-time {
  font-family: "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: var(--rc-cream);
}


/* ─────────────────────────────────────────────────────────────────
   12 · ENGINE SPEC — fiche specs moteur (HP / Top Speed / 0-100)
───────────────────────────────────────────────────────────────── */
.engine-spec {
  background: rgba(7, 9, 26, 0.7);
  border: 1px solid var(--rc-line);
  border-radius: 12px;
  overflow: hidden;
}
.engine-spec-head {
  padding: 0.7rem 1.1rem;
  background: rgba(245, 236, 217, 0.04);
  border-bottom: 1px solid var(--rc-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.6);
}
.engine-spec-head strong { color: var(--rc-coral); font-weight: 500; }
.engine-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 1.1rem;
  border-top: 1px dashed rgba(245, 236, 217, 0.07);
  gap: 1rem;
}
.engine-spec-row:first-of-type { border-top: none; }
.engine-spec-row .label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.55);
}
.engine-spec-row .value {
  font-family: "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  color: var(--rc-cream);
  font-weight: 500;
  text-align: right;
}
.engine-spec-row .value em {
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--rc-coral);
}


/* ─────────────────────────────────────────────────────────────────
   13 · IMAGE WEIGHT COMPARATOR — comparateur poids JPG vs AVIF
───────────────────────────────────────────────────────────────── */
.image-weight-comparator {
  background: var(--rc-cream);
  border: 1px solid rgba(12, 15, 26, 0.12);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
}
.image-weight-row {
  display: grid;
  grid-template-columns: 110px 1fr 100px;
  align-items: center;
  gap: 0.9rem;
  padding: 0.65rem 0;
}
.image-weight-row + .image-weight-row { border-top: 1px dashed rgba(12, 15, 26, 0.12); }
.image-weight-format {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(12, 15, 26, 0.7);
}
.image-weight-format strong {
  color: var(--rc-red);
  font-weight: 500;
}
.image-weight-format.is-good strong { color: var(--rc-green); }
.image-weight-bar {
  position: relative;
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--rc-red), #8a2238);
  overflow: hidden;
  width: var(--weight-pct, 100%);
}
.image-weight-bar.is-good {
  background: linear-gradient(90deg, var(--rc-green), var(--rc-green-l));
}
.image-weight-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 5px,
    rgba(255, 255, 255, 0.1) 5px,
    rgba(255, 255, 255, 0.1) 6px
  );
}
.image-weight-value {
  font-family: "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  color: var(--rc-bg);
  font-weight: 500;
  text-align: right;
}


/* ─────────────────────────────────────────────────────────────────
   14 · NETWORK THROTTLE — 4G / Fiber / LTE
───────────────────────────────────────────────────────────────── */
.network-throttle {
  background: rgba(7, 9, 26, 0.7);
  border: 1px solid var(--rc-line);
  border-radius: 12px;
  padding: 1.2rem 1.3rem;
}
.network-row {
  display: grid;
  grid-template-columns: 90px 1fr 80px;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0;
  font-family: "JetBrains Mono", monospace;
}
.network-row + .network-row { border-top: 1px dashed rgba(245, 236, 217, 0.07); }
.network-row .net-name {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rc-cream);
  font-weight: 500;
}
.network-row .net-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  margin-left: 0.5rem;
}
.network-row .net-bars span {
  width: 3px;
  background: var(--rc-green);
  border-radius: 1px;
}
.network-row .net-bars span:nth-child(1) { height: 4px; }
.network-row .net-bars span:nth-child(2) { height: 7px; }
.network-row .net-bars span:nth-child(3) { height: 10px; }
.network-row .net-bars span:nth-child(4) { height: 13px; }
.network-row.is-mid .net-bars span:nth-child(3),
.network-row.is-mid .net-bars span:nth-child(4) { background: rgba(245, 236, 217, 0.15); }
.network-row.is-slow .net-bars span:nth-child(2),
.network-row.is-slow .net-bars span:nth-child(3),
.network-row.is-slow .net-bars span:nth-child(4) { background: rgba(245, 236, 217, 0.15); }
.network-row.is-slow .net-bars span:nth-child(1) { background: var(--rc-red-l); }

.network-row .net-bar {
  position: relative;
  height: 8px;
  background: rgba(245, 236, 217, 0.06);
  border-radius: 4px;
  overflow: hidden;
}
.network-row .net-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--net-fill, 100%);
  background: linear-gradient(90deg, var(--rc-cyan), var(--rc-green-l));
  border-radius: 4px;
}
.network-row.is-mid .net-bar::before { background: linear-gradient(90deg, var(--rc-amber), #ffd566); }
.network-row.is-slow .net-bar::before { background: linear-gradient(90deg, var(--rc-red), var(--rc-red-l)); }

.network-row .net-time {
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: var(--rc-cream);
  text-align: right;
  font-weight: 500;
}


/* ─────────────────────────────────────────────────────────────────
   15 · SCORE CARD — carte score Lighthouse avec gauge circulaire
───────────────────────────────────────────────────────────────── */
.score-card {
  position: relative;
  background: linear-gradient(180deg, rgba(7, 9, 26, 0.85), rgba(12, 18, 48, 0.85));
  border: 1px solid var(--rc-line);
  border-radius: 14px;
  padding: 1.3rem 1.3rem 1.2rem;
  text-align: center;
  overflow: hidden;
}
.score-card::before {
  /* Glow d'arrière-plan */
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(107, 129, 105, 0.18), transparent 70%);
  pointer-events: none;
}
.score-card-gauge {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 0.6rem;
}
.score-card-gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  display: block;
}
.score-card-gauge .track {
  fill: none;
  stroke: rgba(245, 236, 217, 0.08);
  stroke-width: 8;
}
.score-card-gauge .fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.score-card.is-good .score-card-gauge .fill { stroke: var(--rc-green-l); filter: drop-shadow(0 0 6px rgba(107, 129, 105, 0.5)); }
.score-card.is-okay .score-card-gauge .fill { stroke: var(--rc-amber); filter: drop-shadow(0 0 6px rgba(244, 180, 0, 0.4)); }
.score-card.is-fail .score-card-gauge .fill { stroke: var(--rc-red-l); filter: drop-shadow(0 0 6px rgba(200, 78, 98, 0.5)); }

.score-card-score {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--rc-cream);
  letter-spacing: -0.02em;
  line-height: 1;
}
.score-card.is-good .score-card-score { color: var(--rc-green-l); }
.score-card.is-okay .score-card-score { color: var(--rc-amber); }
.score-card.is-fail .score-card-score { color: var(--rc-red-l); }
.score-card-score small {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: rgba(245, 236, 217, 0.5);
  margin-top: 4px;
  font-weight: 400;
  text-transform: uppercase;
}
.score-card-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.7);
  margin-top: 0.3rem;
}
.score-card-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.4);
  margin-top: 0.2rem;
}


/* ─────────────────────────────────────────────────────────────────
   16 · BOTTLENECK CARD — ce qui ralentit votre site (icon + ms)
───────────────────────────────────────────────────────────────── */
.bottleneck-card {
  position: relative;
  background: rgba(245, 236, 217, 0.04);
  border: 1px solid var(--rc-line);
  border-radius: 10px;
  padding: 0.95rem 1.1rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  transition: border-color 0.3s ease;
}
.bottleneck-card.is-flag {
  border-color: rgba(200, 78, 98, 0.45);
  background: linear-gradient(180deg, rgba(90, 18, 36, 0.18), rgba(7, 9, 26, 0.7));
}
.bottleneck-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(200, 78, 98, 0.15);
  color: var(--rc-red-l);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex: none;
  border: 1px solid rgba(200, 78, 98, 0.3);
}
.bottleneck-card.is-flag .bottleneck-card-icon {
  background: rgba(200, 78, 98, 0.25);
  animation: rc-flag-pulse 1.8s ease-in-out infinite;
}
@keyframes rc-flag-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 78, 98, 0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(200, 78, 98, 0); }
}

.bottleneck-card-body { flex: 1; min-width: 0; }
.bottleneck-card-name {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.92rem;
  color: var(--rc-cream);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 0.2rem;
}
.bottleneck-card-desc {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.74rem;
  color: rgba(245, 236, 217, 0.65);
  line-height: 1.45;
}
.bottleneck-card-time {
  font-family: "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  color: var(--rc-cream);
  font-weight: 500;
  text-align: right;
  flex: none;
  white-space: nowrap;
}
.bottleneck-card.is-flag .bottleneck-card-time { color: var(--rc-red-l); }


/* ─────────────────────────────────────────────────────────────────
   17 · OPTIMIZATION STAGE — timeline d'optimisation (6 stages)
───────────────────────────────────────────────────────────────── */
.opt-stage {
  position: relative;
  background: var(--rc-cream);
  border: 1px solid rgba(12, 15, 26, 0.1);
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.4rem;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.opt-stage:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 18, 36, 0.35);
}
.opt-stage-num {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 4.2rem;
  font-weight: 500;
  line-height: 0.85;
  color: rgba(90, 18, 36, 0.08);
  pointer-events: none;
  user-select: none;
}
.opt-stage-tag {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rc-red);
  padding: 0.2rem 0.45rem;
  background: rgba(90, 18, 36, 0.08);
  border-radius: 3px;
  margin-bottom: 1rem;
}
.opt-stage-title {
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  line-height: 1.2;
  color: #0c0f1a;
  margin-bottom: 0.5rem;
  font-weight: 500;
  position: relative;
}
.opt-stage-title em {
  font-style: italic;
  color: var(--rc-red);
}
.opt-stage-desc {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #2a2e3a;
  margin-bottom: 0.9rem;
}
.opt-stage-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(12, 15, 26, 0.6);
  padding-top: 0.7rem;
  border-top: 1px dashed rgba(12, 15, 26, 0.12);
}
.opt-stage-meta strong {
  color: var(--rc-red);
  font-weight: 500;
}


/* ─────────────────────────────────────────────────────────────────
   18 · KPI CARD TELEMETRY — KPI grands chiffres style telemetry
───────────────────────────────────────────────────────────────── */
.kpi-telemetry {
  position: relative;
  background: rgba(7, 9, 26, 0.85);
  border: 1px solid var(--rc-line);
  border-radius: 12px;
  padding: 1.2rem 1.3rem 1.1rem;
  overflow: hidden;
}
.kpi-telemetry::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--rc-cyan), var(--rc-coral));
  opacity: 0.7;
}
.kpi-telemetry-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.5);
}
.kpi-telemetry-value {
  font-family: "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 500;
  color: var(--rc-cream);
  margin-top: 0.5rem;
  letter-spacing: -0.02em;
}
.kpi-telemetry-value em {
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--rc-coral);
  font-size: 1.3rem;
  font-weight: 500;
  margin-left: 0.15rem;
}
.kpi-telemetry-value.is-cyan  { color: var(--rc-cyan); }
.kpi-telemetry-value.is-green { color: var(--rc-green-l); }
.kpi-telemetry-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.5);
  margin-top: 0.6rem;
}
.kpi-telemetry-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.55rem;
  font-family: "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--rc-green-l);
}
.kpi-telemetry-trend.is-down { color: var(--rc-red-l); }


/* ─────────────────────────────────────────────────────────────────
   19 · BUTTON RACING — bouton primaire racing
───────────────────────────────────────────────────────────────── */
.btn-race {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  background: linear-gradient(180deg, #6e1730, var(--rc-red));
  color: var(--rc-cream);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid rgba(245, 236, 217, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(245, 236, 217, 0.18),
    0 18px 36px -18px rgba(90, 18, 36, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.btn-race::before {
  /* Strip rouge / cream sur le côté */
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--rc-cream) 0%, var(--rc-cream) 33%, var(--rc-red) 33%, var(--rc-red) 66%, var(--rc-cream) 66%);
}
.btn-race:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(245, 236, 217, 0.18),
    0 24px 48px -20px rgba(90, 18, 36, 0.85);
}


/* ─────────────────────────────────────────────────────────────────
   20 · STAT TILE — petite tuile stat avec gauge mini
───────────────────────────────────────────────────────────────── */
.stat-tile {
  background: rgba(7, 9, 26, 0.6);
  border: 1px solid var(--rc-line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-family: "JetBrains Mono", monospace;
}
.stat-tile-label {
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.55);
}
.stat-tile-value {
  font-variant-numeric: tabular-nums;
  font-size: 1.35rem;
  color: var(--rc-cream);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 0.25rem;
}
.stat-tile-value.is-cyan  { color: var(--rc-cyan); }
.stat-tile-value.is-green { color: var(--rc-green-l); }
.stat-tile-value.is-coral { color: var(--rc-coral); }


/* ─────────────────────────────────────────────────────────────────
   21 · INCIDENT REPORT — fiche incident style FIA
───────────────────────────────────────────────────────────────── */
.incident-card {
  position: relative;
  background: var(--rc-cream);
  border: 1px solid rgba(12, 15, 26, 0.12);
  border-radius: 12px;
  padding: 1.4rem 1.5rem 1.3rem;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.incident-card:hover {
  border-color: rgba(90, 18, 36, 0.4);
  transform: translateY(-2px);
}
.incident-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    -45deg,
    var(--rc-red) 0,
    var(--rc-red) 10px,
    #2a0710 10px,
    #2a0710 20px
  );
}
.incident-card-no {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rc-red);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.incident-card-no::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--rc-red);
  border-radius: 50%;
}
.incident-card-title {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
  color: #0c0f1a;
  margin-bottom: 0.5rem;
}
.incident-card-title em {
  font-style: italic;
  color: var(--rc-red);
}
.incident-card-desc {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #2a2e3a;
}
.incident-card-meta {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(12, 15, 26, 0.12);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(12, 15, 26, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.incident-card-meta strong {
  color: var(--rc-red);
  font-weight: 500;
}


/* ─────────────────────────────────────────────────────────────────
   22 · RULEBOOK CARD — pit-crew rulebook (5 principes)
───────────────────────────────────────────────────────────────── */
.rulebook-card {
  position: relative;
  background: rgba(7, 9, 26, 0.85);
  border: 1px solid var(--rc-line);
  border-radius: 12px;
  padding: 1.6rem 1.4rem 1.3rem;
  color: var(--rc-cream);
  overflow: hidden;
}
.rulebook-card::before {
  /* Numéro Fraunces filigrane */
  content: attr(data-rule);
  position: absolute;
  bottom: -30px;
  right: -10px;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 8rem;
  font-weight: 500;
  line-height: 1;
  color: rgba(245, 236, 217, 0.05);
  pointer-events: none;
  user-select: none;
}
.rulebook-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(226, 168, 160, 0.12);
  color: var(--rc-coral);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  border: 1px solid rgba(226, 168, 160, 0.3);
  margin-bottom: 0.9rem;
}
.rulebook-card-title {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  line-height: 1.25;
  margin-bottom: 0.45rem;
  font-weight: 500;
  position: relative;
}
.rulebook-card-title em {
  font-style: italic;
  color: var(--rc-coral);
}
.rulebook-card-desc {
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(245, 236, 217, 0.72);
  position: relative;
}


/* ─────────────────────────────────────────────────────────────────
   23 · CHASSIS CARD — typologie de chassis (POUR QUI)
───────────────────────────────────────────────────────────────── */
.chassis-card {
  position: relative;
  background: var(--rc-cream);
  border: 1px solid rgba(12, 15, 26, 0.1);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.chassis-card:hover {
  transform: translateY(-3px);
  border-color: rgba(90, 18, 36, 0.45);
}
.chassis-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0c1230, #1a1f2e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 3.2rem;
  font-weight: 500;
  color: rgba(226, 168, 160, 0.85);
  overflow: hidden;
}
.chassis-card-thumb.is-red    { background: linear-gradient(135deg, #5a1224, #2a0710); }
.chassis-card-thumb.is-green  { background: linear-gradient(135deg, #3a4a35, #1f2a1b); }
.chassis-card-thumb.is-coral  { background: linear-gradient(135deg, #e2a8a0, #b87e72); color: var(--rc-bg); }
.chassis-card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 24px,
    rgba(245, 236, 217, 0.04) 24px,
    rgba(245, 236, 217, 0.04) 25px
  );
}
.chassis-card-tag {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  background: rgba(7, 9, 26, 0.7);
  border: 1px solid rgba(245, 236, 217, 0.25);
  color: var(--rc-coral);
  border-radius: 3px;
  z-index: 1;
}
.chassis-card-body {
  padding: 1.2rem 1.3rem 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.chassis-card-title {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
  color: #0c0f1a;
  margin-bottom: 0.5rem;
}
.chassis-card-title em {
  font-style: italic;
  color: var(--rc-red);
}
.chassis-card-desc {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #2a2e3a;
  flex: 1;
  margin-bottom: 0.9rem;
}
.chassis-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(12, 15, 26, 0.12);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(12, 15, 26, 0.6);
}
.chassis-card-meta strong { color: var(--rc-red); font-weight: 500; }


/* ─────────────────────────────────────────────────────────────────
   24 · REFUSAL CARD — anti-promesses (red flag list)
───────────────────────────────────────────────────────────────── */
.refusal-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px dashed rgba(245, 236, 217, 0.12);
}
.refusal-row:first-of-type { padding-top: 0; }
.refusal-row:last-of-type { border-bottom: none; }
.refusal-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(200, 78, 98, 0.15);
  border: 1px solid rgba(200, 78, 98, 0.35);
  border-radius: 6px;
  color: var(--rc-red-l);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  flex: none;
  text-transform: uppercase;
}
.refusal-row .refusal-body {
  color: var(--rc-cream);
  padding-top: 0.15rem;
}
.refusal-row .refusal-name {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.refusal-row .refusal-name em {
  font-style: italic;
  color: var(--rc-red-l);
}
.refusal-row .refusal-desc {
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(245, 236, 217, 0.7);
}


/* ─────────────────────────────────────────────────────────────────
   25 · TOOL CARD — stack outils utilisés (Lighthouse, WebPageTest…)
───────────────────────────────────────────────────────────────── */
.tool-card {
  background: rgba(7, 9, 26, 0.6);
  border: 1px solid var(--rc-line);
  border-radius: 12px;
  padding: 1.4rem 1.3rem 1.2rem;
  color: var(--rc-cream);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.tool-card:hover {
  border-color: rgba(34, 211, 238, 0.3);
  transform: translateY(-2px);
}
.tool-card-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
.tool-card-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.1);
  color: var(--rc-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid rgba(34, 211, 238, 0.25);
  flex: none;
}
.tool-card-name {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.2;
}
.tool-card-name em { font-style: italic; color: var(--rc-coral); }
.tool-card-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.5);
  margin-top: 2px;
}
.tool-card-desc {
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(245, 236, 217, 0.72);
  margin-bottom: 0.7rem;
}
.tool-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.7rem;
  border-top: 1px dashed rgba(245, 236, 217, 0.1);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.5);
}
.tool-card-foot strong { color: var(--rc-green-l); font-weight: 500; }


/* ─────────────────────────────────────────────────────────────────
   26 · CASE CHIP — fiche cas client compact
───────────────────────────────────────────────────────────────── */
.case-chip {
  background: var(--rc-cream);
  border: 1px solid rgba(12, 15, 26, 0.1);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.case-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(90, 18, 36, 0.4);
}
.case-chip-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.2rem 0.7rem;
}
.case-chip-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--rc-red);
  color: var(--rc-cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  flex: none;
}
.case-chip-avatar.is-secondary { background: var(--rc-bg-3); }
.case-chip-avatar.is-accent { background: var(--rc-green); }
.case-chip-name {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #0c0f1a;
  line-height: 1.15;
}
.case-chip-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(12, 15, 26, 0.55);
  margin-top: 2px;
}

.case-chip-body { padding: 0 1.2rem 1rem; flex: 1; }
.case-chip-result {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #2a2e3a;
  margin-bottom: 0.9rem;
}
.case-chip-result strong { color: var(--rc-red); }

.case-chip-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid rgba(12, 15, 26, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.case-chip-stat {
  padding: 0.6rem 0.5rem;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  border-right: 1px solid rgba(12, 15, 26, 0.07);
}
.case-chip-stat:last-child { border-right: none; }
.case-chip-stat-label {
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(12, 15, 26, 0.55);
}
.case-chip-stat-value {
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  color: var(--rc-red);
  font-weight: 500;
  margin-top: 2px;
  letter-spacing: -0.01em;
}
.case-chip-stat-value.is-green { color: var(--rc-green); }
.case-chip-foot {
  padding: 0.7rem 1.2rem 1rem;
  border-top: 1px dashed rgba(12, 15, 26, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.case-chip-foot a {
  color: var(--rc-red);
  text-decoration: none;
  font-weight: 500;
}
.case-chip-foot a:hover { text-decoration: underline; }


/* ─────────────────────────────────────────────────────────────────
   27 · RADIO LINE — radio pit-crew (chat mock)
───────────────────────────────────────────────────────────────── */
.radio-card {
  background: rgba(7, 9, 26, 0.9);
  border: 1px solid var(--rc-line);
  border-radius: 14px;
  overflow: hidden;
  font-family: "JetBrains Mono", monospace;
}
.radio-card-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.2rem;
  background: rgba(7, 9, 26, 0.95);
  border-bottom: 1px solid var(--rc-line);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.6);
}
.radio-card-head .live-dot { display: inline-block; }
.radio-card-head strong { color: var(--rc-cream); font-weight: 500; }
.radio-card-body {
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.radio-line {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.radio-line-from {
  flex: none;
  width: 80px;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rc-cyan);
  padding-top: 2px;
}
.radio-line-from.is-pilot { color: var(--rc-coral); }
.radio-line-from.is-pit { color: var(--rc-green-l); }
.radio-line-msg {
  flex: 1;
  background: rgba(245, 236, 217, 0.05);
  border: 1px solid rgba(245, 236, 217, 0.08);
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(245, 236, 217, 0.92);
}
.radio-line-msg .ts {
  display: block;
  margin-top: 0.25rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.4);
}
.radio-card-foot {
  border-top: 1px solid var(--rc-line);
  padding: 0.7rem 1.2rem;
  background: rgba(7, 9, 26, 0.95);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* ─────────────────────────────────────────────────────────────────
   28 · CHECKERED STRIP — bandeau drapeau d'arrivée (top/bot section)
───────────────────────────────────────────────────────────────── */
.checkered-strip {
  height: 14px;
  background:
    repeating-conic-gradient(var(--rc-cream) 0 25%, #07091a 0 50%) 0 0 / 14px 14px;
  border-top: 1px solid rgba(245, 236, 217, 0.15);
  border-bottom: 1px solid rgba(245, 236, 217, 0.15);
}


/* ─────────────────────────────────────────────────────────────────
   29 · STACK FONT-AWESOME PARITY (live-dot reused dark)
───────────────────────────────────────────────────────────────── */
.live-dot.is-cyan { background: var(--rc-cyan); box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6); animation-name: live-pulse-cyan; }
@keyframes live-pulse-cyan {
  0%   { box-shadow: 0 0 0 0   rgba(34, 211, 238, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(34, 211, 238, 0);    }
  100% { box-shadow: 0 0 0 0   rgba(34, 211, 238, 0);    }
}


/* ─────────────────────────────────────────────────────────────────
   30 · CTA FINAL — récap pit lane
───────────────────────────────────────────────────────────────── */
.cta-recap {
  background: rgba(7, 9, 26, 0.5);
  border: 1px solid var(--rc-line);
  border-radius: 14px;
  overflow: hidden;
}
.cta-recap-head {
  padding: 1rem 1.4rem;
  background: rgba(245, 236, 217, 0.04);
  border-bottom: 1px solid var(--rc-line);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cta-recap-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.4rem;
  border-bottom: 1px dashed rgba(245, 236, 217, 0.08);
}
.cta-recap-row:last-of-type { border-bottom: none; }
.cta-recap-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.1);
  color: var(--rc-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 1px solid rgba(34, 211, 238, 0.25);
  flex: none;
}
.cta-recap-icon.is-coral { background: rgba(226, 168, 160, 0.12); color: var(--rc-coral); border-color: rgba(226, 168, 160, 0.3); }
.cta-recap-icon.is-green { background: rgba(107, 129, 105, 0.15); color: var(--rc-green-l); border-color: rgba(107, 129, 105, 0.3); }
.cta-recap-name {
  font-family: "Inter", sans-serif;
  color: var(--rc-cream);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.25;
}
.cta-recap-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.55);
  margin-top: 2px;
}
.cta-recap-price {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: var(--rc-coral);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.cta-recap-price.is-free { color: var(--rc-green-l); }
.cta-recap-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.1rem 1.4rem;
  background: rgba(34, 211, 238, 0.05);
  border-top: 1px solid rgba(34, 211, 238, 0.18);
  font-family: "JetBrains Mono", monospace;
}
.cta-recap-total-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 236, 217, 0.65);
}
.cta-recap-total-value {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--rc-cream);
  letter-spacing: -0.02em;
}


/* ─────────────────────────────────────────────────────────────────
   31 · COUNT-UP — chiffres animés au scroll
───────────────────────────────────────────────────────────────── */
[data-countup] {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}


/* ─────────────────────────────────────────────────────────────────
   32 · DECORATIVE — séparateurs et detail design
───────────────────────────────────────────────────────────────── */
.dec-line {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rc-line), transparent);
  margin: 2rem 0;
}
.dec-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rc-coral);
}


/* ─────────────────────────────────────────────────────────────────
   RESPONSIVE — micro-ajustements
───────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .lap-times-head,
  .lap-row { grid-template-columns: 36px 1fr 80px 60px; padding-left: 0.7rem; padding-right: 0.7rem; gap: 0.4rem; font-size: 0.7rem; }
  .system-bar { gap: 1rem; padding: 0.6rem 0.8rem; font-size: 0.6rem; letter-spacing: 0.14em; }
  .chrono-display { padding: 1.2rem 1.6rem 1.2rem; }
  .before-after-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .race-car,
  .gauge-analog-needle,
  .cwv-bar-fill,
  .score-card-gauge .fill { transition: none !important; }
  .lap-row { animation: none; opacity: 1; transform: none; }
  .bottleneck-card.is-flag .bottleneck-card-icon { animation: none; }
  .chrono-display::after,
  .system-bar-item .dot { animation: none; }
}


/* ─────────────────────────────────────────────────────────────────
   33 · LIVE NOTIF — toast flottant bas-gauche (radio pit-crew)
   (variante racing du composant ecommerce, autonome car ecommerce.css
   n'est pas chargé sur cette page)
───────────────────────────────────────────────────────────────── */
.live-notif {
  position: fixed;
  bottom: 1.2rem;
  left: 1.2rem;
  max-width: 340px;
  padding: 0.85rem 2rem 0.85rem 0.85rem;
  background: rgba(7, 9, 26, 0.94);
  backdrop-filter: blur(10px);
  color: var(--rc-cream);
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.7);
  z-index: 50;
  opacity: 0;
  transform: translateY(20px) translateX(-10px);
  transition: opacity 0.5s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.live-notif.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
  pointer-events: auto;
}
.live-notif-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.15);
  color: var(--rc-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  border: 1px solid rgba(34, 211, 238, 0.35);
  flex: none;
}
.live-notif-body {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--rc-cream);
}
.live-notif-body strong { color: var(--rc-cyan); font-weight: 600; }
.live-notif-body small {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  color: rgba(245, 236, 217, 0.55);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}
.live-notif-close {
  position: absolute;
  top: 0.3rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  color: rgba(245, 236, 217, 0.4);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.2rem;
}
.live-notif-close:hover { color: var(--rc-coral); }

@media (max-width: 720px) {
  .live-notif { display: none; }
}
