/* ---------- Écran de jeu (HUD) ---------- */
.screen {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background: #05060a; box-shadow: 0 40px 120px -40px rgba(255, 90, 31, .35);
  container-type: inline-size;
}
.screen > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lane { animation: lane .45s linear infinite; }
@keyframes lane { to { stroke-dashoffset: -120; } }
.hud { position: absolute; inset: 0; font-family: var(--font-display); color: #fff; pointer-events: none; font-size: clamp(8px, 1.45cqi, 15px); }
.hud .box { position: absolute; background: rgba(5, 7, 12, .62); border: 1px solid rgba(255,255,255,.12); border-radius: .7em; backdrop-filter: blur(4px); padding: .6em .9em; }
.hud .lbl { font-size: .72em; letter-spacing: .16em; color: #aab3c6; text-transform: uppercase; }
.hud-wanted { top: 3.5%; left: 2.5%; }
.hud-wanted .chev { display: flex; gap: .3em; margin: .35em 0 .2em; }
.hud-wanted .chev i { width: 1.6em; height: .7em; background: rgba(255,255,255,.14); clip-path: polygon(0 0, 70% 0, 100% 50%, 70% 100%, 0 100%, 30% 50%); }
.hud-wanted .chev i.on { background: var(--siren-red); animation: chev 1s infinite; }
.hud-wanted .chev i.on:nth-child(2n) { animation-delay: .5s; }
@keyframes chev { 50% { background: var(--siren-blue); } }
.hud-wanted b { font-size: 1.05em; }
.hud-mirror { top: 3%; left: 50%; transform: translateX(-50%); width: 24%; aspect-ratio: 4 / 1; padding: 0; overflow: hidden; border-radius: 1.2em; border: 2px solid #2b3140; }
.hud-mirror svg { width: 100%; height: 100%; display: block; }
.hud-race { top: 3.5%; right: 2.5%; text-align: right; }
.hud-race .pos { font-size: 2.3em; line-height: 1; }
.hud-race .pos small { font-size: .45em; color: #aab3c6; }
.hud-race .time { font-variant-numeric: tabular-nums; font-size: 1.05em; }
.hud-map { top: 26%; right: 2.5%; width: 15%; aspect-ratio: 1; padding: 0; border-radius: 50%; overflow: hidden; }
.hud-map svg { width: 100%; height: 100%; }
.hud-alert { bottom: 5%; left: 2.5%; max-width: 34%; border-color: rgba(255, 45, 74, .55); background: rgba(40, 6, 12, .7); }
.hud-alert b { color: #ff8a96; display: block; font-size: 1.05em; }
.hud-alert span { font-family: var(--font-body); font-size: .9em; color: #e3e6ee; }
.hud-speed { bottom: 5%; right: 2.5%; width: 19%; aspect-ratio: 1.15; padding: 0; border-radius: 50% 50% 1em 1em; display: grid; place-items: center; }
.hud-speed svg { position: absolute; inset: 6%; width: 88%; height: 88%; }
.hud-speed .val { position: relative; text-align: center; margin-top: 10%; }
.hud-speed .val b { display: block; font-size: 3em; line-height: 1; font-variant-numeric: tabular-nums; }
.hud-speed .gear { position: absolute; bottom: 9%; left: 50%; transform: translateX(-50%); font-size: .9em; color: var(--accent-2); }
.hud-nitro { bottom: 5%; right: 23.5%; width: 3%; height: 30%; padding: .3em; display: flex; flex-direction: column-reverse; }
.hud-nitro i { display: block; width: 100%; height: 70%; border-radius: .3em; background: linear-gradient(0deg, var(--accent), #3fd0ff); animation: nitro 3s ease-in-out infinite; }
@keyframes nitro { 50% { height: 40%; } }
.screen-caption { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.screen-caption div { padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.screen-caption b { display: block; color: var(--text); font-size: 15px; margin-bottom: 2px; }
@media (max-width: 820px) { .screen-caption { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .hud-alert, .hud-nitro { display: none; } }

/* ---------- Bande-annonce ---------- */
.trailer { background: #030407; border-block: 1px solid var(--line); }
.stage {
  position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 18px; overflow: hidden;
  background: #000; border: 1px solid var(--line); container-type: inline-size; isolation: isolate;
}
.stage::after { /* bandes cinéma */
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  box-shadow: inset 0 6cqi 0 #000, inset 0 -6cqi 0 #000;
}
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; display: grid; place-items: center; text-align: center; }
.scene.active { opacity: 1; }
.scene > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene .title { position: relative; z-index: 2; font-family: var(--font-display); text-transform: uppercase; font-size: 5cqi; line-height: 1.05; text-shadow: 0 0 2cqi rgba(0,0,0,.8); padding: 0 6%; }
.scene .title small { display: block; font-size: .38em; letter-spacing: .3em; color: var(--accent-2); margin-bottom: .6em; }
.scene.active .title { animation: titleIn 1.1s cubic-bezier(.2,.8,.2,1) both .25s; }
@keyframes titleIn { from { opacity: 0; transform: translateY(1.5cqi) scale(1.04); letter-spacing: .12em; } to { opacity: 1; transform: none; } }
.scene.active .drive-in { animation: driveIn 3.6s cubic-bezier(.3,.7,.3,1) both; }
@keyframes driveIn { from { transform: translateX(-70%); } to { transform: translateX(8%); } }
.scene.active .chase { animation: chase 3.6s linear both; }
@keyframes chase { from { transform: translateX(-120%); } to { transform: translateX(-12%); } }
.scene.active .flash-r { animation: fr .5s steps(1) infinite; }
.scene.active .flash-b { animation: fr .5s steps(1) infinite .25s; }
@keyframes fr { 50% { opacity: 0; } }
.scene.active .zoom { animation: zoom 4s ease-out both; transform-origin: 50% 60%; }
@keyframes zoom { from { transform: scale(1.25); } to { transform: scale(1); } }
.heat-steps { position: relative; z-index: 2; display: flex; gap: 1.2cqi; justify-content: center; margin-top: 2cqi; }
.heat-steps span { font-family: var(--font-display); font-size: 1.6cqi; padding: .6cqi 1.2cqi; border-radius: .6cqi; border: 1px solid #333; color: #555; }
.scene.active .heat-steps span { animation: heatOn .3s both; }
.scene.active .heat-steps span:nth-child(1) { animation-delay: .5s; } .scene.active .heat-steps span:nth-child(2) { animation-delay: 1s; }
.scene.active .heat-steps span:nth-child(3) { animation-delay: 1.5s; } .scene.active .heat-steps span:nth-child(4) { animation-delay: 2s; }
.scene.active .heat-steps span:nth-child(5) { animation-delay: 2.5s; }
@keyframes heatOn { to { color: #fff; border-color: var(--siren-red); background: rgba(255,45,74,.3); } }
.parade { position: absolute; left: 0; right: 0; bottom: 14%; height: 34%; z-index: 1; }
.parade .car-svg { position: absolute; bottom: 0; width: 38%; left: 31%; opacity: 0; }
.scene.active .parade .car-svg { animation: parade 4.2s both; }
.scene.active .parade .car-svg:nth-child(2) { animation-delay: .7s; } .scene.active .parade .car-svg:nth-child(3) { animation-delay: 1.4s; }
.scene.active .parade .car-svg:nth-child(4) { animation-delay: 2.1s; } .scene.active .parade .car-svg:nth-child(5) { animation-delay: 2.8s; }
.scene.active .parade .car-svg:nth-child(6) { animation-delay: 3.5s; }
@keyframes parade { 0% { opacity: 0; transform: translateX(-60%); } 8%, 16% { opacity: 1; transform: translateX(0); } 24%, 100% { opacity: 0; transform: translateX(60%); } }
.logo-slam { position: relative; z-index: 2; font-family: var(--font-display); font-weight: 700; font-size: 9cqi; letter-spacing: .02em; }
.logo-slam b { color: var(--accent); }
.scene.active .logo-slam { animation: slam .7s cubic-bezier(.2,1.4,.4,1) both .2s; }
@keyframes slam { from { opacity: 0; transform: scale(2.2); filter: blur(1cqi); } to { opacity: 1; transform: none; filter: none; } }
.end-partners { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 1cqi 2.4cqi; justify-content: center; margin-top: 2.4cqi; font-family: var(--font-display); font-size: 2.1cqi; color: #d9dde6; }
.end-partners span { opacity: 0; }
.scene.active .end-partners span { animation: fadeUp .5s both; }
.scene.active .end-partners span:nth-child(2) { animation-delay: .25s; } .scene.active .end-partners span:nth-child(3) { animation-delay: .5s; }
.scene.active .end-partners span:nth-child(4) { animation-delay: .75s; } .scene.active .end-partners span:nth-child(5) { animation-delay: 1s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(.8cqi); } to { opacity: 1; transform: none; } }
.end-note { position: relative; z-index: 2; margin-top: 1.4cqi; font-size: 1.3cqi; color: #8a92a6; font-family: var(--font-body); }
.stage.paused * { animation-play-state: paused !important; }

.play-overlay {
  position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,.2), rgba(0,0,0,.65)); border: 0; color: #fff; width: 100%;
}
.play-overlay .pbtn { width: 11cqi; height: 11cqi; min-width: 56px; min-height: 56px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 0 1.4cqi rgba(255,90,31,.2); transition: transform .2s; }
.play-overlay:hover .pbtn { transform: scale(1.06); }
.play-overlay .pbtn svg { width: 40%; height: 40%; margin-left: 8%; }
.play-overlay .plabel { position: absolute; bottom: 12%; font-family: var(--font-display); letter-spacing: .2em; text-transform: uppercase; font-size: max(12px, 1.4cqi); }
.controls { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.controls button { flex: 0 0 auto; }
.progress { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.tcode { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; min-width: 76px; text-align: right; }

/* ---------- Garage ---------- */
.garage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .garage-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .garage-grid { grid-template-columns: 1fr; } }
.car-card { border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: border-color .2s, transform .2s; }
.car-card:hover { border-color: rgba(255,90,31,.5); transform: translateY(-3px); }
.car-card .pic { padding: 22px 14px 6px; background: radial-gradient(80% 90% at 50% 100%, var(--glow, rgba(255,90,31,.25)), transparent 70%), #0b0d14; }
.car-card .info { padding: 16px 20px 20px; }
.car-card h3 { margin: 0; font-family: var(--font-display); text-transform: uppercase; font-size: 20px; }
.car-card .cls { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.car-card p { margin: 4px 0 14px; font-size: 14px; color: var(--muted); }
.stats { display: grid; gap: 7px; }
.stat { display: grid; grid-template-columns: 92px 1fr 28px; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); }
.stat .bar { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.stat .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.stat b { color: var(--text); font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; }

/* ---------- Partenaires ---------- */
.partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 820px) { .partners-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .partners-grid { grid-template-columns: 1fr; } }
.partner { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.partner .pname { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: .02em; }
.partner .prole { font-size: 14px; color: var(--muted); }
.partner .status { align-self: flex-start; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px dashed rgba(255,178,31,.5); color: var(--accent-2); }
.partner.open { border-style: dashed; background: transparent; align-items: flex-start; }
.partner.open .pname { color: var(--muted); }
.partners-note { margin-top: 18px; font-size: 13px; color: var(--muted); }
.m-flash { animation: fr .5s steps(1) infinite; }
.glow { filter: blur(70px); }
.nav .btn { gap: 0; }
.partner { justify-content: flex-start; }
@media (max-width: 600px) { .hud-speed .gear, .hud-speed .lbl { display: none; } .hud-speed .val { margin-top: 0; } .hud-speed .val b { font-size: 2.4em; } }
/* bouton de lecture en bas à gauche pour laisser le logo visible */
.play-overlay { display: flex; align-items: flex-end; justify-content: flex-start; gap: 2cqi; padding: 0 0 8cqi 5cqi; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 55%); }
.play-overlay .pbtn { width: 8cqi; height: 8cqi; box-shadow: 0 0 0 1cqi rgba(255,90,31,.2); }
.play-overlay .plabel { position: static; align-self: flex-end; line-height: 8cqi; }

/* Villes */
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 28px; }
.city { background: var(--panel, #12141c); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.city svg { display: block; width: 100%; height: auto; aspect-ratio: 32 / 15; }
.city .info { padding: 16px 18px 20px; }
.city h3 { margin: 8px 0 2px; font-size: 1.3rem; }
.city .where { margin: 0 0 8px; font-size: .85rem; color: var(--accent-2, #ffb21f); }
.city p { margin: 0; color: var(--muted, #a9b0c0); font-size: .95rem; line-height: 1.5; }
.city .status { display: inline-block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; border: 1px solid rgba(255,255,255,.16); color: var(--muted, #a9b0c0); }
.city .status.on { border-color: var(--accent, #ff5a1f); color: #fff; background: rgba(255,90,31,.18); }
.city.open { border-color: rgba(255,90,31,.45); }
.scene.active .heat-steps span { animation-name: stepOn; }
@keyframes stepOn { to { color: #fff; border-color: var(--accent, #ff5a1f); background: rgba(255,90,31,.25); } }
