/* ==========================================================================
   Ninja Stadium CAP3000 — Homepage
   Univers : arène nocturne, bleu nuit profond, rouge buzzer, stadium.
   ========================================================================== */

:root {
    --ns-night: #0c1630;
    --ns-night-2: #132040;
    --ns-night-3: #1c3058;
    --ns-red: #ff2d3a;
    --ns-red-dark: #c4121f;
    --ns-red-glow: rgba(255, 45, 58, 0.55);
    --ns-white: #f4f7ff;
    --ns-grey: #b0bbd4;
    --ns-glass: rgba(32, 52, 92, 0.38);
    --ns-glass-border: rgba(180, 192, 220, 0.22);
    --ns-font-display: 'Archivo Black', 'Arial Black', sans-serif;
    --ns-font-body: 'Barlow', 'Segoe UI', system-ui, sans-serif;
    --ns-radius: 14px;
    --ns-header-h: 80px;
    --ns-spot-size: min(52vw, 520px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--ns-header-h);
}

body.ns-body {
    font-family: var(--ns-font-body);
    background-color: var(--ns-night);
    background-image:
        radial-gradient(ellipse 110% 70% at 50% -15%, rgba(45, 80, 143, 0.22), transparent 58%),
        radial-gradient(ellipse 70% 50% at 100% 40%, rgba(255, 45, 58, 0.07), transparent 55%),
        radial-gradient(ellipse 60% 45% at 0% 70%, rgba(45, 80, 143, 0.1), transparent 50%);
    color: var(--ns-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

/* Accessibilité : focus visible fort */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--ns-red);
    outline-offset: 3px;
    border-radius: 4px;
}

.ns-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   Typographie sportive
   -------------------------------------------------------------------------- */

.ns-title {
    font-family: var(--ns-font-display);
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: 0.01em;
    transform: skewX(-6deg);
}

.ns-section-title {
    font-size: clamp(1.55rem, 3.2vw, 2.55rem);
    margin-bottom: 1rem;
}

.ns-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--ns-red);
    margin-bottom: 1rem;
}

.ns-section-kicker::before {
    content: '';
    width: 34px;
    height: 2px;
    background: var(--ns-red);
    box-shadow: 0 0 8px var(--ns-red-glow);
}

.ns-section-intro {
    color: var(--ns-grey);
    font-size: 1.08rem;
    max-width: 640px;
}

.ns-section {
    position: relative;
    padding: 6rem 0;
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.ns-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-family: var(--ns-font-body);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    padding: 0.95rem 2.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transform: skewX(-6deg);
    transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.ns-btn > span {
    display: inline-block;
    transform: skewX(6deg);
}

.ns-btn__icon {
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
    transform: skewX(6deg);
}

.ns-btn--buzzer {
    background: linear-gradient(160deg, var(--ns-red) 0%, var(--ns-red-dark) 100%);
    color: #fff;
    box-shadow: 0 0 22px var(--ns-red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    animation: ns-buzzer-pulse 2.6s ease-in-out infinite;
}

.ns-btn--buzzer:hover,
.ns-btn--buzzer:focus-visible {
    transform: skewX(-6deg) scale(1.045);
    box-shadow: 0 0 42px var(--ns-red-glow), 0 0 90px rgba(255, 45, 58, 0.3);
    animation-play-state: paused;
}

.ns-btn--ghost {
    background: rgba(244, 247, 255, 0.06);
    color: var(--ns-white);
    border: 1px solid rgba(244, 247, 255, 0.35);
    backdrop-filter: blur(8px);
}

.ns-btn--ghost:hover,
.ns-btn--ghost:focus-visible {
    background: rgba(244, 247, 255, 0.14);
    transform: skewX(-6deg) translateY(-2px);
}

@keyframes ns-buzzer-pulse {
    0%, 100% { box-shadow: 0 0 18px var(--ns-red-glow); }
    50%      { box-shadow: 0 0 34px var(--ns-red-glow), 0 0 70px rgba(255, 45, 58, 0.25); }
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.ns-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--ns-header-h);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(5, 10, 24, 0.08);
    box-shadow: 0 1px 0 rgba(5, 10, 24, 0.04);
    overflow: visible;
}

.ns-header__inner {
    height: var(--ns-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.ns-logo {
    font-family: var(--ns-font-display);
    font-size: 1.15rem;
    text-transform: uppercase;
    text-decoration: none;
    transform: skewX(-6deg);
    white-space: nowrap;
}

/* Logo image header — fond blanc du header, léger flottement */
.ns-header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 0;
}

.ns-header-logo .ns-logo-plate {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.ns-header-logo .ns-logo-img {
    display: block;
    height: 82px;
    width: auto;
    max-width: min(200px, 30vw);
    object-fit: contain;
    object-position: center left;
    animation: nsLogoFloat 4s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes nsLogoFloat {
    0%, 78%, 100% { transform: translateY(0); }
    10% { transform: translateY(2px); }
    40% { transform: translateY(-3px); }
}

.ns-logo em {
    font-style: normal;
    color: var(--ns-red);
    text-shadow: 0 0 12px var(--ns-red-glow);
}

.ns-nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.ns-nav a:not(.ns-btn) {
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: rgba(5, 10, 24, 0.62);
    transition: color 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.ns-nav__drop {
    position: relative;
}

.ns-nav__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    border: none;
    background: transparent;
    font-family: var(--ns-font-body);
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(5, 10, 24, 0.62);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.ns-nav__chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.ns-nav__trigger:hover,
.ns-nav__trigger:focus-visible,
.ns-nav__drop:hover .ns-nav__trigger,
.ns-nav__drop.is-open .ns-nav__trigger {
    color: var(--ns-night);
    outline: none;
}

.ns-nav__drop:hover .ns-nav__chevron,
.ns-nav__drop.is-open .ns-nav__chevron,
.ns-nav__trigger:focus-visible .ns-nav__chevron {
    transform: rotate(180deg);
}

.ns-nav__sub {
    list-style: none;
    margin: 0;
    padding: 0.45rem 0;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(5, 10, 24, 0.1);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(5, 10, 24, 0.1);
}

.ns-nav__sub a {
    display: block;
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: rgba(5, 10, 24, 0.62);
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.ns-nav__sub a:hover,
.ns-nav__sub a:focus-visible {
    color: var(--ns-night);
    background: rgba(255, 45, 58, 0.06);
    outline: none;
}

@media (min-width: 1101px) {
    .ns-nav__sub {
        position: absolute;
        top: calc(100% + 10px);
        left: 50%;
        transform: translateX(-50%) translateY(6px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
        z-index: 12;
    }

    .ns-nav__drop::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 12px;
    }

    .ns-nav__drop:hover .ns-nav__sub,
    .ns-nav__drop:focus-within .ns-nav__sub {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    .ns-nav__trigger::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -6px;
        width: 100%;
        height: 2px;
        background: var(--ns-red);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.25s ease;
    }

    .ns-nav__drop {
        position: relative;
    }

    .ns-nav__trigger {
        position: relative;
    }

    .ns-nav__drop:hover .ns-nav__trigger::after,
    .ns-nav__drop:focus-within .ns-nav__trigger::after {
        transform: scaleX(1);
    }
}

.ns-nav a:not(.ns-btn):hover,
.ns-nav a:not(.ns-btn):focus-visible {
    color: var(--ns-night);
}

.ns-nav a:not(.ns-btn)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--ns-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.ns-nav a:not(.ns-btn):hover::after {
    transform: scaleX(1);
}

.ns-nav .ns-btn {
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
}

.ns-header__actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.ns-header__reserve {
    padding: 0.52rem 0.95rem;
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.ns-header__reserve .ns-btn__icon {
    width: 16px;
    height: 16px;
}

.ns-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 9px;
    background: transparent;
    border: 1px solid rgba(5, 10, 24, 0.14);
    border-radius: 8px;
    cursor: pointer;
}

.ns-lb-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(5, 10, 24, 0.14);
    border-radius: 8px;
    color: rgba(5, 10, 24, 0.72);
    text-decoration: none;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

button.ns-lb-nav {
    padding: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.ns-lb-nav svg {
    width: 22px;
    height: 22px;
}

.ns-lb-nav:hover,
.ns-lb-nav:focus-visible {
    color: var(--ns-red);
    border-color: rgba(255, 45, 58, 0.45);
    background: rgba(255, 45, 58, 0.06);
    box-shadow: 0 0 14px rgba(255, 45, 58, 0.12);
    outline: none;
}

.ns-burger span {
    display: block;
    height: 2px;
    background: var(--ns-night);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.ns-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ns-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ns-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.ns-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: calc(var(--ns-header-h) + 3rem) 0 5rem;
    --hero-scroll: 0;
}

/* ------------------------------------------------------------------
   Séquence d'entrée : tunnel → scan → révélation → texte → ready
   ------------------------------------------------------------------ */

/* Phase 1 — tunnel fermé : rien ne transparaît tant que les images ne sont pas prêtes */
.ns-hero.is-boot .ns-hero__bg,
.ns-hero.is-boot .ns-hero__scoreboard,
.ns-hero.is-boot .ns-hero__hud,
.ns-hero.is-boot .ns-hero__particles,
.ns-hero.is-boot .ns-hero__content,
.ns-hero.is-boot .ns-hero__scroll {
    opacity: 0;
    visibility: hidden;
}

.ns-hero__tunnel {
    position: absolute;
    inset: 0;
    z-index: 6;
    background: #0c1630;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.9s ease;
}

.ns-hero.is-hero-loaded .ns-hero__tunnel,
.ns-hero.is-reveal .ns-hero__tunnel,
.ns-hero.is-ready .ns-hero__tunnel {
    opacity: 0;
}

/* Halos projecteurs rouges */
.ns-hero__halos {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.ns-hero__halos i {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 1.2s ease, transform 1.4s ease;
}

.ns-hero__halos i:nth-child(1) {
    top: -15%;
    left: 20%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(255, 45, 58, 0.35), transparent 65%);
}

.ns-hero__halos i:nth-child(2) {
    top: 10%;
    right: -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(255, 45, 58, 0.22), transparent 68%);
}

.ns-hero__halos i:nth-child(3) {
    bottom: -20%;
    left: 35%;
    width: 60vw;
    height: 40vw;
    background: radial-gradient(ellipse, rgba(255, 45, 58, 0.28), transparent 70%);
}

.ns-hero.is-reveal .ns-hero__halos i,
.ns-hero.is-ready .ns-hero__halos i {
    opacity: 1;
}

.ns-hero.is-reveal .ns-hero__halos i:nth-child(1) { transform: scale(1.08); }
.ns-hero.is-ready .ns-hero__halos i:nth-child(1) { transform: scale(1); }

.ns-hero__bg {
    position: absolute;
    inset: -6%;
    z-index: 0;
    background: #0c1630;
    will-change: transform, filter;
    transform: scale(calc(1 + var(--hero-scroll) * 0.07));
    transition: filter 0.4s ease;
    opacity: 0;
    transition: opacity 0.6s ease, filter 0.4s ease;
}

.ns-hero.is-hero-loaded .ns-hero__bg {
    opacity: 1;
}

.ns-hero.is-scrolling .ns-hero__bg {
    filter: brightness(calc(1 - var(--hero-scroll) * 0.35));
}

.ns-hero__texture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: overlay;
    opacity: 0;
    transition: opacity 1.4s ease 0.6s;
}

.ns-hero.is-reveal .ns-hero__texture,
.ns-hero.is-ready .ns-hero__texture {
    opacity: 0.1;
}

.ns-hero__slides {
    position: absolute;
    inset: 0;
}

.ns-hero__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: brightness(0.55) saturate(0.8);
    transform: scale(1.04);
    transition: opacity 0.55s ease,
                filter 0.9s ease,
                transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Step actif de la séquence (step-01 → step-02 → step-03), crossfade JS */
.ns-hero__slide.is-on {
    opacity: 0.85;
    filter: brightness(0.92) saturate(1);
    transform: scale(1.02);
}

/* Phase 1,4 s : léger zoom avant sur le step actif */
.ns-hero.is-zoom .ns-hero__slide.is-on {
    transform: scale(1.07);
}

.ns-hero.is-reveal .ns-hero__slide--final,
.ns-hero.is-reveal .ns-hero__slide.is-active-final {
    opacity: 0.72;
    filter: brightness(1) saturate(1.05);
    transform: scale(1);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                filter 1.4s ease,
                transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ns-hero.is-ready .ns-hero__slide--final,
.ns-hero.is-ready .ns-hero__slide.is-active-final {
    opacity: 0.78;
}

/* La révélation finale éteint les steps de transition */
.ns-hero.is-reveal .ns-hero__slide:not(.ns-hero__slide--final) {
    opacity: 0;
}

.ns-hero__scoreboard {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    mix-blend-mode: screen;
    pointer-events: none;
    transition: opacity 0.8s ease 0.3s, visibility 0s linear 0.3s;
}

/* Phase 0,6 s : overlay scoreboard opacity ~0.25 + pulse très léger */
.ns-hero.is-board .ns-hero__scoreboard {
    visibility: visible;
    opacity: 0.25;
    animation: ns-board-pulse 2.6s ease-in-out 0.8s infinite alternate;
}

@keyframes ns-board-pulse {
    from { opacity: 0.22; }
    to   { opacity: 0.3; }
}

.ns-hero.is-reveal .ns-hero__scoreboard,
.ns-hero.is-ready .ns-hero__scoreboard {
    opacity: 0.3;
    visibility: visible;
}

.ns-hero.is-ready .ns-hero__scoreboard {
    opacity: 0.34;
}

/* Overlay : plus sombre au boot, s'éclaircit à la révélation, re-s'assombrit au scroll */
.ns-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(12, 22, 48, 0.72) 0%, rgba(12, 22, 48, 0.52) 50%, var(--ns-night) 100%);
    transition: background 1.4s ease;
}

.ns-hero.is-reveal .ns-hero__overlay,
.ns-hero.is-ready .ns-hero__overlay {
    background: linear-gradient(180deg, rgba(12, 22, 48, 0.28) 0%, rgba(12, 22, 48, 0.14) 45%, rgba(12, 22, 48, 0.35) 100%);
}

.ns-hero.is-scrolling .ns-hero__overlay {
    background: linear-gradient(180deg,
        rgba(12, 22, 48, calc(0.32 + var(--hero-scroll) * 0.22)) 0%,
        rgba(12, 22, 48, calc(0.4 + var(--hero-scroll) * 0.18)) 60%,
        var(--ns-night) 100%);
}

/* Scan horizontal — phase 2 : le stadium s'active.
   PNG du brief si dispo, fallback dégradé CSS (le background reste en dessous). */
.ns-hero__scan-h {
    position: absolute;
    top: 50%;
    left: -30%;
    z-index: 3;
    width: 60%;
    height: 6px;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(90deg, transparent, var(--ns-red) 30%, #fff 50%, var(--ns-red) 70%, transparent);
    box-shadow: 0 0 24px var(--ns-red-glow), 0 0 60px rgba(255, 45, 58, 0.4);
    transform: translateY(-50%);
}

.ns-hero__scan-h img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    mix-blend-mode: screen;
}

.ns-hero.is-scan .ns-hero__scan-h {
    animation: ns-scan-h 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Mobile : pas de séquence multi-steps — arène directe + scan léger */
@media (max-width: 767px) {
    .ns-hero__slide:not(.ns-hero__slide--final) {
        display: none;
    }

    .ns-hero__scan-h img {
        display: none;
    }
}

@keyframes ns-scan-h {
    0%   { left: -30%; opacity: 0; }
    15%  { opacity: 1; }
    100% { left: 110%; opacity: 0.7; }
}

/* Scan vertical — ligne rouge fine en CSS uniquement */
.ns-hero__scanline {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
}

.ns-hero.is-scan .ns-hero__scanline {
    opacity: 1;
}

.ns-hero__scanline--css::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    top: -2%;
    background: linear-gradient(90deg, transparent 5%, var(--ns-red) 50%, transparent 95%);
    box-shadow: 0 0 16px var(--ns-red-glow), 0 0 40px rgba(255, 45, 58, 0.25);
    opacity: 0;
}

.ns-hero.is-scan .ns-hero__scanline--css::before {
    animation: ns-scan-boot 0.7s ease 0.35s forwards;
}

@keyframes ns-scan-boot {
    0%   { top: -2%; opacity: 0; }
    10%  { opacity: 1; }
    100% { top: 102%; opacity: 0; }
}

/* Pas de scan en boucle après la séquence — évite l'effet "barre qui descend" permanent */
.ns-hero.is-ready .ns-hero__scanline {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ns-hero__scanline img {
    display: none;
}

.ns-hero__scanline::before {
    display: none;
}

/* Particules discrètes — visibles après révélation */
.ns-hero__particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease 1s;
}

.ns-hero.is-reveal .ns-hero__particles,
.ns-hero.is-ready .ns-hero__particles {
    opacity: 1;
}

.ns-hero__particles i {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--ns-red);
    opacity: 0;
    box-shadow: 0 0 6px var(--ns-red-glow);
    animation: ns-particle 9s linear infinite;
}

.ns-hero__particles i:nth-child(1) { left: 12%; animation-delay: 0s; }
.ns-hero__particles i:nth-child(2) { left: 30%; animation-delay: 2.2s; }
.ns-hero__particles i:nth-child(3) { left: 52%; animation-delay: 4.6s; }
.ns-hero__particles i:nth-child(4) { left: 71%; animation-delay: 1.4s; }
.ns-hero__particles i:nth-child(5) { left: 88%; animation-delay: 5.8s; }

@keyframes ns-particle {
    0%   { bottom: -4%; opacity: 0; }
    12%  { opacity: 0.7; }
    85%  { opacity: 0.4; }
    100% { bottom: 108%; opacity: 0; }
}

/* HUD chrono — apparaît au scan */
.ns-hero__hud {
    position: absolute;
    z-index: 4;
    top: calc(var(--ns-header-h) + 1.6rem);
    right: 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s;
}

.ns-hero.is-reveal .ns-hero__hud,
.ns-hero.is-ready .ns-hero__hud {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.ns-hero__hud-time {
    font-family: var(--ns-font-display);
    font-size: 1.5rem;
    color: var(--ns-red);
    text-shadow: 0 0 14px var(--ns-red-glow);
    letter-spacing: 0.06em;
}

.ns-hero__hud-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--ns-grey);
}

.ns-hero__hud-bars {
    display: flex;
    gap: 4px;
    margin-top: 0.3rem;
}

.ns-hero__hud-bars i {
    width: 14px;
    height: 4px;
    background: rgba(154, 165, 196, 0.25);
}

.ns-hero__hud-bars i.on {
    background: var(--ns-red);
    box-shadow: 0 0 8px var(--ns-red-glow);
    animation: ns-hud-blink 1.6s ease-in-out infinite alternate;
}

@keyframes ns-hud-blink {
    from { opacity: 1; }
    to   { opacity: 0.35; }
}

.ns-hero__content {
    position: relative;
    z-index: 5;
    max-width: 820px;
    transform: scale(calc(1 - var(--hero-scroll) * 0.04));
    opacity: calc(1 - var(--hero-scroll) * 0.55);
    transition: transform 0.15s linear, opacity 0.15s linear;
}

/* Brand : masqué jusqu'à la phase texte */
.ns-hero__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.45rem 1.1rem;
    border: 1px solid var(--ns-glass-border);
    border-radius: 999px;
    background: var(--ns-glass);
    backdrop-filter: blur(8px);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--ns-grey);
    margin-bottom: 1.8rem;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.ns-hero.is-text .ns-hero__brand,
.ns-hero.is-ready .ns-hero__brand {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
}

.ns-hero.is-text .ns-hero__content,
.ns-hero.is-ready .ns-hero__content {
    visibility: visible;
}

.ns-hero__brand::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ns-red);
    box-shadow: 0 0 10px var(--ns-red-glow);
}

.ns-hero__title {
    font-size: clamp(2.6rem, 8.5vw, 6.2rem);
    margin-bottom: 0.6rem;
    overflow: visible;
    padding-right: 0.35em;
}

.ns-hero__title .line {
    display: block;
    overflow: visible;
}

.ns-hero__title .line > span {
    display: inline-block;
    transform: translateY(110%) scaleX(0.92);
    opacity: 0;
    filter: blur(4px);
}

/* Phase texte : affichage scoreboard / compétition */
.ns-hero.is-text .ns-hero__title .line > span {
    animation: ns-scoreboard-in 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ns-hero.is-text .ns-hero__title .line--accent > span {
    animation-delay: 0.22s;
    color: var(--ns-red);
    text-shadow: 0 0 30px var(--ns-red-glow);
}

@keyframes ns-scoreboard-in {
    0%   { transform: translateY(110%) scaleX(0.88); opacity: 0; filter: blur(6px); }
    55%  { transform: translateY(-5%) scaleX(1.02); opacity: 1; filter: blur(0); text-shadow: 4px 0 var(--ns-red), -4px 0 rgba(255,255,255,0.3); }
    70%  { transform: translateY(2%) scaleX(0.98); text-shadow: -2px 0 var(--ns-red), 2px 0 rgba(255,255,255,0.2); }
    100% { transform: translateY(0) scaleX(1); opacity: 1; filter: blur(0); text-shadow: none; }
}

.ns-hero__tagline {
    font-family: var(--ns-font-display);
    font-size: clamp(1.2rem, 3vw, 2rem);
    text-transform: uppercase;
    color: var(--ns-white);
    transform: skewX(-6deg) translateY(20px);
    margin-bottom: 1.2rem;
    opacity: 0;
}

.ns-hero.is-ready .ns-hero__tagline {
    animation: ns-rise 0.55s ease 0.35s forwards;
}

.ns-hero__tagline::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    margin-top: 0.7rem;
    background: var(--ns-red);
    box-shadow: 0 0 14px var(--ns-red-glow);
    transition: width 0.5s ease 0.55s;
}

.ns-hero.is-ready .ns-hero__tagline::after {
    width: 90px;
}

.ns-hero__text {
    font-size: 1.15rem;
    color: var(--ns-grey);
    max-width: 560px;
    margin-bottom: 2.2rem;
    opacity: 0;
    transform: translateY(20px);
}

.ns-hero.is-ready .ns-hero__text {
    animation: ns-rise 0.55s ease 0.55s forwards;
}

.ns-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
}

.ns-hero.is-ready .ns-hero__actions {
    animation: ns-rise 0.55s ease 0.75s forwards;
}

/* Buzzer hero : pulse renforcé après séquence */
.ns-btn--buzzer-hero {
    position: relative;
}

.ns-hero.is-ready .ns-btn--buzzer-hero {
    animation: ns-buzzer-pulse 2.4s ease-in-out infinite;
}

.ns-btn--buzzer-hero::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 10px;
    background: transparent;
    box-shadow: 0 0 0 0 rgba(255, 45, 58, 0.5);
    transition: box-shadow 0.2s ease;
    pointer-events: none;
}

.ns-btn--buzzer-hero:hover::before,
.ns-btn--buzzer-hero:focus-visible::before {
    box-shadow: 0 0 28px 6px rgba(255, 45, 58, 0.55);
}

.ns-btn--buzzer-hero:active {
    transform: skewX(-6deg) scale(0.94) translateY(3px) !important;
    filter: brightness(1.3);
    box-shadow: 0 0 50px var(--ns-red-glow), inset 0 4px 12px rgba(0, 0, 0, 0.45) !important;
}

@keyframes ns-rise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Indicateur de scroll — visible quand la séquence est terminée */
.ns-hero__scroll {
    position: absolute;
    z-index: 5;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--ns-grey);
    opacity: 0;
    transition: opacity 0.6s ease 1s;
}

.ns-hero.is-ready .ns-hero__scroll {
    opacity: 1;
    visibility: visible;
}

.ns-hero__scroll::after {
    content: '';
    width: 2px;
    height: 42px;
    background: linear-gradient(180deg, var(--ns-red), transparent);
    animation: ns-drop 1.8s ease-in-out infinite;
    animation-play-state: paused;
}

.ns-hero.is-ready .ns-hero__scroll::after {
    animation-play-state: running;
}

/* Pont rouge vers "Choisis ton run" — progresse au scroll */
.ns-hero__bridge {
    position: absolute;
    z-index: 4;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: calc(var(--hero-scroll) * 120px);
    pointer-events: none;
    opacity: calc(var(--hero-scroll) * 1.2);
}

.ns-hero__bridge-line {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--ns-red), rgba(255, 45, 58, 0.2));
    box-shadow: 0 0 14px var(--ns-red-glow);
}

.ns-hero__bridge-dot {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--ns-red);
    box-shadow: 0 0 18px var(--ns-red-glow);
}

.ns-hero.is-scrolling {
    transform: scale(calc(1 - var(--hero-scroll) * 0.015));
    transform-origin: center top;
}

@keyframes ns-drop {
    0%   { transform: scaleY(0); transform-origin: top; }
    55%  { transform: scaleY(1); transform-origin: top; }
    100% { transform: scaleY(1); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Révélations au scroll (JS ajoute .is-visible)
   -------------------------------------------------------------------------- */

[data-animate] {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--stagger, 0s);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Section offres — "Choisis ton run"
   -------------------------------------------------------------------------- */

.ns-offers {
    background:
        radial-gradient(ellipse 55% 45% at 50% 0%, rgba(255, 45, 58, 0.1), transparent 72%),
        radial-gradient(ellipse 40% 35% at 80% 60%, rgba(45, 80, 143, 0.12), transparent 65%),
        var(--ns-night);
}

.ns-offers__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
    margin-top: 3rem;
    align-items: stretch;
}

.ns-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--ns-glass);
    border: 1px solid var(--ns-glass-border);
    border-radius: var(--ns-radius);
    backdrop-filter: blur(10px);
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Apparition au scroll : translateY + scale + glow progressif (stagger via --stagger) */
.ns-card[data-animate] {
    transform: translateY(48px) scale(0.94);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 1.1s ease 0.25s, border-color 0.3s ease;
    transition-delay: var(--stagger, 0s);
}

.ns-card[data-animate].is-visible {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 26px rgba(255, 45, 58, 0.1), 0 14px 34px rgba(0, 0, 0, 0.35);
}

.ns-card:hover,
.ns-card:focus-within {
    border-color: rgba(255, 45, 58, 0.65);
    box-shadow: 0 0 34px rgba(255, 45, 58, 0.18), 0 18px 44px rgba(0, 0, 0, 0.45);
}

/* Ligne rouge qui parcourt le haut de la carte au hover */
.ns-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ns-red), transparent);
    transition: left 0.6s ease;
    z-index: 2;
}

.ns-card:hover::before {
    left: 100%;
}

.ns-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(ellipse 80% 90% at 30% 20%, rgba(255, 45, 58, 0.18), transparent 60%),
        linear-gradient(150deg, var(--ns-night-3), var(--ns-night-2));
}

.ns-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.ns-card__img--hover {
    opacity: 0;
}

.ns-card:hover .ns-card__img:not(.ns-card__img--hover),
.ns-card:focus-within .ns-card__img:not(.ns-card__img--hover) {
    opacity: 0;
}

.ns-card:hover .ns-card__img--hover,
.ns-card:focus-within .ns-card__img--hover {
    opacity: 1;
    transform: scale(1.04);
}

.ns-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 18, 40, 0.92) 100%);
}

.ns-card__badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ns-badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(5, 10, 24, 0.8);
    border: 1px solid rgba(154, 165, 196, 0.35);
    border-radius: 4px;
    transform: skewX(-6deg);
    backdrop-filter: blur(6px);
}

.ns-badge--red {
    background: var(--ns-red);
    border-color: var(--ns-red);
    color: #fff;
    box-shadow: 0 0 14px var(--ns-red-glow);
}

.ns-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.8rem;
    padding: 1.6rem;
}

.ns-card__title {
    font-size: 1.4rem;
}

.ns-card__price {
    font-family: var(--ns-font-display);
    font-size: 2.1rem;
    color: var(--ns-red);
    text-shadow: 0 0 16px var(--ns-red-glow);
    transform: skewX(-6deg);
}

.ns-card__text {
    color: var(--ns-grey);
    font-size: 0.98rem;
    flex: 1;
}

.ns-card--featured {
    border-color: rgba(255, 45, 58, 0.5);
    box-shadow: 0 0 26px rgba(255, 45, 58, 0.14);
    background: linear-gradient(180deg, rgba(255, 45, 58, 0.06), transparent 40%), var(--ns-glass);
}

@media (min-width: 901px) {
    .ns-card--featured,
    .ns-card--featured[data-animate].is-visible {
        transform: translateY(-14px) scale(1.03);
    }
}

/* --------------------------------------------------------------------------
   Section parcours — timeline 5 checkpoints
   -------------------------------------------------------------------------- */

.ns-course {
    background:
        radial-gradient(ellipse 60% 50% at 20% 20%, rgba(45, 80, 143, 0.14), transparent 65%),
        radial-gradient(ellipse 50% 45% at 85% 70%, rgba(255, 45, 58, 0.08), transparent 60%),
        linear-gradient(180deg, var(--ns-night) 0%, var(--ns-night-2) 50%, var(--ns-night) 100%);
    position: relative;
    overflow: hidden;
}

/* Bandeau de progression du run (images run-progress) */
.ns-course__progress-strip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 220px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.22;
    overflow: hidden;
}

.ns-course__progress-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
    filter: saturate(0.8);
}

.ns-course__progress-img.is-active {
    opacity: 1;
}

.ns-course .ns-container {
    position: relative;
    z-index: 1;
}

.ns-course__track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
    margin-top: 4rem;
}

/* Ligne de fond + ligne de progression rouge */
.ns-course__track::before,
.ns-course__line {
    content: '';
    position: absolute;
    top: 27px;
    left: 2%;
    right: 2%;
    height: 3px;
    background: rgba(154, 165, 196, 0.18);
    z-index: 0;
}

.ns-course__line {
    right: auto;
    width: 96%;
    background: linear-gradient(90deg, var(--ns-red-dark), var(--ns-red));
    box-shadow: 0 0 12px var(--ns-red-glow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ns-course__track.is-active .ns-course__line {
    transform: scaleX(1);
}

.ns-checkpoint {
    position: relative;
    z-index: 1;
    text-align: center;
}

.ns-checkpoint__dot {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ns-font-display);
    font-size: 1.05rem;
    color: var(--ns-grey);
    background: var(--ns-night-2);
    border: 2px solid rgba(154, 165, 196, 0.3);
    border-radius: 50%;
    transition: border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.ns-checkpoint.is-lit .ns-checkpoint__dot {
    color: #fff;
    border-color: var(--ns-red);
    box-shadow: 0 0 20px var(--ns-red-glow);
    transform: scale(1.08);
}

.ns-checkpoint__card {
    position: relative;
    padding: 1.1rem 0.9rem 1.2rem;
    background: var(--ns-glass);
    border: 1px solid var(--ns-glass-border);
    border-radius: 10px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.ns-checkpoint.is-lit .ns-checkpoint__card {
    border-color: rgba(255, 45, 58, 0.45);
}

.ns-checkpoint__media {
    aspect-ratio: 4 / 3;
    margin-bottom: 0.9rem;
    border-radius: 6px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 90% at 50% 10%, rgba(255, 45, 58, 0.14), transparent 65%),
        linear-gradient(160deg, var(--ns-night-3), var(--ns-night-2));
    position: relative;
}

.ns-checkpoint__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    clip-path: polygon(0 0, 0 0, -40% 100%, -40% 100%);
    transition: clip-path 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease;
}

/* Reveal diagonal quand le checkpoint s'active */
.ns-checkpoint.is-lit .ns-checkpoint__media img {
    opacity: 1;
    clip-path: polygon(0 0, 140% 0, 100% 100%, -40% 100%);
}

.ns-checkpoint__label {
    font-family: var(--ns-font-display);
    font-size: 1rem;
    text-transform: uppercase;
    transform: skewX(-6deg);
}

/* Checkpoint final : le buzzer */
.ns-checkpoint--buzzer .ns-checkpoint__dot {
    background: radial-gradient(circle at 35% 30%, var(--ns-red), var(--ns-red-dark));
    border-color: var(--ns-red);
    color: #fff;
}

.ns-checkpoint--buzzer.is-lit .ns-checkpoint__dot {
    animation: ns-buzzer-hit 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    box-shadow: 0 0 34px var(--ns-red-glow), 0 0 80px rgba(255, 45, 58, 0.35);
}

.ns-checkpoint--buzzer.is-lit .ns-checkpoint__card {
    border-color: var(--ns-red);
    box-shadow: 0 0 30px rgba(255, 45, 58, 0.25);
}

.ns-checkpoint--buzzer .ns-checkpoint__label {
    color: var(--ns-red);
    text-shadow: 0 0 14px var(--ns-red-glow);
}

@keyframes ns-buzzer-hit {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.35); }
    60%  { transform: scale(0.95); }
    100% { transform: scale(1.12); }
}

/* Micro-flash rouge sur toute la section quand le buzzer est frappé */
.ns-course::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(255, 45, 58, 0.4), transparent 70%);
    opacity: 0;
}

.ns-course.is-buzzer-hit::after {
    animation: ns-course-flash 0.7s ease;
}

.ns-course.is-buzzer-hit .ns-course__progress-strip {
    opacity: 0.32;
}

@keyframes ns-course-flash {
    0%   { opacity: 0; }
    30%  { opacity: 1; }
    100% { opacity: 0; }
}

/* Boutons / CTAs — pas d’effet projecteur souris par-dessus */
.ns-btn,
.ns-buzzer-btn,
.ns-burger,
.ns-lb-nav,
.ns-booking__tab,
.ns-mbar__bar,
.ns-back-top,
.ns-nav a.ns-btn {
    position: relative;
    z-index: 78;
    isolation: isolate;
}

/* --------------------------------------------------------------------------
   Galerie — mur média stadium
   -------------------------------------------------------------------------- */

.ns-gallery {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 55% at 50% 0%, rgba(45, 80, 143, 0.16), transparent 68%),
        var(--ns-night-2);
}

.ns-gallery__spotlight {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.ns-gallery__spotlight img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    mix-blend-mode: screen;
    filter: saturate(1.08);
}

.ns-gallery .ns-container {
    position: relative;
    z-index: 1;
}

.ns-gallery__wall {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 190px;
    gap: 1.1rem;
    margin-top: 3rem;
}

.ns-gallery__item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--ns-glass-border);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
    background:
        radial-gradient(ellipse 80% 80% at 40% 25%, rgba(255, 45, 58, 0.14), transparent 60%),
        linear-gradient(155deg, var(--ns-night-3), var(--ns-night-2));
    transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Reveal clip-path diagonal en stagger au scroll (la photo se dévoile dans son cadre) */
.ns-gallery__item[data-animate] .ns-gallery__photo {
    opacity: 0;
    clip-path: polygon(0 0, 0 0, -35% 100%, -35% 100%);
    transition: clip-path 0.8s cubic-bezier(0.4, 0, 0.2, 1) var(--stagger, 0s),
                opacity 0.5s ease var(--stagger, 0s),
                transform 0.5s ease;
}

.ns-gallery__item[data-animate].is-visible .ns-gallery__photo {
    opacity: 1;
    clip-path: polygon(0 0, 135% 0, 100% 100%, -35% 100%);
}

.ns-gallery__item--wide { grid-column: span 2; }
.ns-gallery__item--tall { grid-row: span 2; }

.ns-gallery__item img.ns-gallery__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.35s ease;
    z-index: 1;
}

.ns-gallery__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 3;
    opacity: 0.85;
    mix-blend-mode: screen;
}

/* Spotlight : l'item survolé s'éclaire, les autres s'assombrissent */
.ns-gallery__wall:hover .ns-gallery__item {
    opacity: 0.45;
}

.ns-gallery__wall .ns-gallery__item:hover,
.ns-gallery__wall .ns-gallery__item:focus-within {
    opacity: 1;
    transform: scale(1.02);
    border-color: rgba(255, 45, 58, 0.6);
    box-shadow: 0 0 30px rgba(255, 45, 58, 0.2);
    z-index: 2;
}

.ns-gallery__item:hover .ns-gallery__photo,
.ns-gallery__item:focus-within .ns-gallery__photo {
    transform: scale(1.06);
}

.ns-gallery__label {
    position: absolute;
    left: 0.9rem;
    bottom: 0.9rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 0.4rem 0.95rem;
    transform: skewX(-6deg);
}

.ns-gallery__label-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    opacity: 0.9;
    pointer-events: none;
}

.ns-gallery__label span {
    position: relative;
    z-index: 1;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ns-white);
    white-space: nowrap;
}

.ns-gallery__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(12, 22, 48, 0.65) 100%);
}

/* --------------------------------------------------------------------------
   Anniversaire Ninja
   -------------------------------------------------------------------------- */

.ns-birthday {
    background:
        radial-gradient(ellipse 55% 60% at 80% 30%, rgba(255, 140, 60, 0.1), transparent 60%),
        radial-gradient(ellipse 50% 50% at 15% 80%, rgba(255, 45, 58, 0.12), transparent 65%),
        radial-gradient(ellipse 45% 40% at 50% 50%, rgba(45, 80, 143, 0.1), transparent 70%),
        var(--ns-night-2);
}

.ns-birthday__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.ns-birthday__pack {
    position: relative;
    border-radius: var(--ns-radius);
    overflow: hidden;
    border: 1px solid var(--ns-glass-border);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
    background:
        radial-gradient(ellipse 90% 70% at 60% 20%, rgba(255, 45, 58, 0.15), transparent 60%),
        linear-gradient(160deg, var(--ns-night-3), var(--ns-night));
    aspect-ratio: 4 / 3.4;
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.ns-birthday__pack:hover {
    border-color: rgba(255, 45, 58, 0.55);
    box-shadow: 0 0 40px rgba(255, 45, 58, 0.18);
}

.ns-birthday__pack img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Reveal diagonal de la grande photo au scroll */
.ns-birthday__pack .ns-birthday__photo {
    opacity: 0;
    clip-path: polygon(0 0, 0 0, -40% 100%, -40% 100%);
    transition: clip-path 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.15s, opacity 0.5s ease 0.15s, transform 0.5s ease;
}

.ns-birthday__pack.is-visible .ns-birthday__photo {
    opacity: 1;
    clip-path: polygon(0 0, 140% 0, 100% 100%, -40% 100%);
}

.ns-birthday__pack:hover img {
    transform: scale(1.04);
}

.ns-birthday__pack-tag {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    z-index: 2;
}

/* Visuel du pack anniversaire : vignette flottante, hover zoom + contour rouge */
.ns-birthday__pack-card {
    position: absolute;
    right: 1.1rem;
    bottom: 1.4rem;
    z-index: 2;
    width: 36%;
    border: 1px solid rgba(255, 45, 58, 0.4);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.ns-birthday__pack-card img {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.ns-birthday__pack:hover .ns-birthday__pack-card {
    transform: scale(1.06) translateY(-4px);
    border-color: var(--ns-red);
    box-shadow: 0 0 26px rgba(255, 45, 58, 0.35), 0 14px 34px rgba(0, 0, 0, 0.5);
}

.ns-missions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0 2.4rem;
}

.ns-mission {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 0.95rem 1.2rem;
    background: var(--ns-glass);
    border: 1px solid var(--ns-glass-border);
    border-radius: 10px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

/* Vignette visuelle de la mission */
.ns-mission__thumb {
    flex-shrink: 0;
    width: 64px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--ns-glass-border);
}

.ns-mission__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ns-mission__badge {
    flex-shrink: 0;
    min-width: 128px;
    text-align: center;
    padding: 0.35rem 0.8rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ns-red);
    border: 1px solid rgba(255, 45, 58, 0.5);
    border-radius: 4px;
    transform: skewX(-6deg);
}

.ns-mission--done .ns-mission__badge {
    background: var(--ns-red);
    color: #fff;
    box-shadow: 0 0 16px var(--ns-red-glow);
}

.ns-mission__label {
    flex: 1;
    font-weight: 600;
    font-size: 1.02rem;
}

/* Badge "mission accomplie" : apparition glow en fin de cascade */
.ns-mission__complete {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px var(--ns-red-glow));
    opacity: 0;
    transform: scale(0.4) rotate(-14deg);
    transition: opacity 0.5s ease calc(var(--stagger, 0s) + 0.5s),
                transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--stagger, 0s) + 0.5s);
}

.ns-mission.is-visible .ns-mission__complete {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* --------------------------------------------------------------------------
   Groupes & scolaires
   -------------------------------------------------------------------------- */

.ns-groups {
    background:
        radial-gradient(ellipse 50% 45% at 50% 100%, rgba(45, 80, 143, 0.12), transparent 65%),
        repeating-linear-gradient(90deg, rgba(180, 192, 220, 0.05) 0 1px, transparent 1px 120px),
        repeating-linear-gradient(0deg, rgba(180, 192, 220, 0.05) 0 1px, transparent 1px 120px),
        var(--ns-night-2);
}

.ns-groups__grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 3rem;
}

.ns-groups__photo {
    position: sticky;
    top: calc(var(--ns-header-h) + 2rem);
    aspect-ratio: 4 / 5;
    border-radius: var(--ns-radius);
    overflow: hidden;
    border: 1px solid var(--ns-glass-border);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
    background:
        radial-gradient(ellipse 80% 70% at 40% 20%, rgba(255, 45, 58, 0.12), transparent 60%),
        linear-gradient(160deg, var(--ns-night-3), var(--ns-night-2));
}

.ns-groups__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Colonne bénéfices : fond matrice en opacity maîtrisée */
.ns-groups__matrix {
    position: relative;
}

.ns-groups__matrix-bg {
    position: absolute;
    inset: -1.5rem;
    z-index: 0;
    border-radius: var(--ns-radius);
    overflow: hidden;
    pointer-events: none;
    opacity: 0.12;
}

.ns-groups__matrix-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.7);
}

.ns-groups__matrix > .ns-skill-family,
.ns-groups__matrix > .ns-btn {
    position: relative;
    z-index: 1;
}

.ns-skill-family {
    margin-bottom: 2rem;
}

.ns-skill-family__name {
    font-family: var(--ns-font-display);
    font-size: 1.05rem;
    text-transform: uppercase;
    color: var(--ns-red);
    transform: skewX(-6deg);
    margin-bottom: 1rem;
}

.ns-skill {
    margin-bottom: 0.9rem;
    padding: 0.7rem 1rem;
    background: var(--ns-glass);
    border: 1px solid var(--ns-glass-border);
    border-radius: 8px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.ns-skill:hover {
    border-color: rgba(255, 45, 58, 0.4);
    transform: translateX(4px);
}

.ns-skill__head {
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.ns-skill__name {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Icône jauge (PNG) quand elle existe */
.ns-skill__gauge {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(255, 45, 58, 0.35));
}

.ns-skill__value {
    color: var(--ns-grey);
    font-variant-numeric: tabular-nums;
}

.ns-skill__bar {
    height: 6px;
    border-radius: 3px;
    background: rgba(154, 165, 196, 0.18);
    overflow: hidden;
}

.ns-skill__fill {
    height: 100%;
    width: var(--level, 0%);
    border-radius: 3px;
    background: linear-gradient(90deg, var(--ns-red-dark), var(--ns-red));
    box-shadow: 0 0 10px var(--ns-red-glow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}

.is-visible .ns-skill__fill,
.ns-skill.is-visible .ns-skill__fill {
    transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   Challenge du moment — scoreboard
   -------------------------------------------------------------------------- */

.ns-event {
    background:
        radial-gradient(ellipse 55% 50% at 30% 30%, rgba(255, 45, 58, 0.1), transparent 60%),
        var(--ns-night-2);
    overflow: hidden;
}

.ns-event__card {
    position: relative;
    margin-top: 3rem;
    border-radius: var(--ns-radius);
    border: 1px solid var(--ns-glass-border);
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
    background:
        radial-gradient(ellipse 70% 80% at 75% 25%, rgba(255, 45, 58, 0.14), transparent 60%),
        linear-gradient(155deg, var(--ns-night-3) 0%, var(--ns-night) 80%);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.ns-event__visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.ns-event__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    mix-blend-mode: luminosity;
}

.ns-event__card:hover {
    transform: scale(1.01);
    border-color: rgba(255, 45, 58, 0.55);
    box-shadow: 0 0 44px rgba(255, 45, 58, 0.18);
}

.ns-event__card:hover .ns-event__visual img {
    opacity: 0.38;
}

/* Bandeau scoreboard défilant */
.ns-event__ticker {
    position: relative;
    z-index: 1;
    display: flex;
    overflow: hidden;
    border-bottom: 1px solid var(--ns-glass-border);
    background: rgba(5, 10, 24, 0.6);
    padding: 0.55rem 0;
}

.ns-event__ticker-track {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: ns-ticker 22s linear infinite;
    font-family: var(--ns-font-display);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--ns-grey);
}

.ns-event__ticker-track em {
    font-style: normal;
    color: var(--ns-red);
}

@keyframes ns-ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.ns-event__body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    padding: 2.4rem;
    align-items: center;
}

.ns-event__title {
    font-size: clamp(1.6rem, 3.4vw, 2.6rem);
    margin: 0.8rem 0;
}

.ns-event__period {
    display: inline-block;
    margin: 0.4rem 0 1.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ns-grey);
}

.ns-countdown {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
}

.ns-countdown__unit {
    min-width: 78px;
    padding: 0.9rem 0.6rem;
    text-align: center;
    background: rgba(5, 10, 24, 0.75);
    border: 1px solid rgba(255, 45, 58, 0.35);
    border-radius: 10px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.ns-countdown__value {
    font-family: var(--ns-font-display);
    font-size: 1.9rem;
    color: var(--ns-red);
    text-shadow: 0 0 16px var(--ns-red-glow);
    font-variant-numeric: tabular-nums;
    display: block;
}

.ns-countdown__label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--ns-grey);
}

/* --------------------------------------------------------------------------
   Sécurité & réservation — cockpit
   -------------------------------------------------------------------------- */

.ns-safety {
    background:
        radial-gradient(ellipse 55% 50% at 50% 100%, rgba(255, 45, 58, 0.1), transparent 70%),
        radial-gradient(ellipse 45% 40% at 20% 30%, rgba(45, 80, 143, 0.1), transparent 65%),
        var(--ns-night-2);
}

.ns-safety__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
    margin-top: 3rem;
}

.ns-safety__layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: center;
}

.ns-module {
    position: relative;
    padding: 1.6rem;
    background: var(--ns-glass);
    border: 1px solid var(--ns-glass-border);
    border-radius: var(--ns-radius);
    backdrop-filter: blur(10px);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ns-module.is-visible {
    border-color: rgba(255, 45, 58, 0.3);
}

.ns-module:hover {
    border-color: rgba(255, 45, 58, 0.55);
    box-shadow: 0 0 26px rgba(255, 45, 58, 0.14);
}

.ns-module__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 10px;
    background: rgba(255, 45, 58, 0.12);
    border: 1px solid rgba(255, 45, 58, 0.35);
    color: var(--ns-red);
}

.ns-module__icon svg {
    width: 24px;
    height: 24px;
}

.ns-module__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ns-module__text {
    font-size: 0.92rem;
    color: var(--ns-grey);
}

/* Signal lumineux du bracelet */
.ns-module--bracelet .ns-module__icon {
    position: relative;
}

.ns-module--bracelet .ns-module__icon::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ns-red);
    box-shadow: 0 0 8px var(--ns-red-glow);
    animation: ns-hud-blink 1.4s ease-in-out infinite alternate;
}

/* Mockup téléphone avec timer CSS */
.ns-phone {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    aspect-ratio: 9 / 18;
    border-radius: 34px;
    border: 3px solid rgba(154, 165, 196, 0.35);
    background: linear-gradient(170deg, var(--ns-night-3), #0c1630);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(255, 45, 58, 0.08);
    padding: 1.4rem 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    overflow: hidden;
}

.ns-phone::before {
    content: '';
    width: 84px;
    height: 20px;
    border-radius: 999px;
    background: #0c1630;
    border: 1px solid rgba(154, 165, 196, 0.25);
}

.ns-phone__label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--ns-grey);
    margin-top: 0.6rem;
}

.ns-phone__timer {
    font-family: var(--ns-font-display);
    font-size: 2.4rem;
    color: var(--ns-red);
    text-shadow: 0 0 18px var(--ns-red-glow);
    font-variant-numeric: tabular-nums;
}

.ns-phone__ring {
    position: relative;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        conic-gradient(var(--ns-red) 0deg, var(--ns-red) 260deg, rgba(154, 165, 196, 0.15) 260deg);
    animation: ns-ring 3.4s linear infinite;
}

.ns-phone__ring::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: var(--ns-night-2);
}

.ns-phone__ring span {
    position: relative;
    font-family: var(--ns-font-display);
    font-size: 0.85rem;
    color: var(--ns-white);
}

@keyframes ns-ring {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Notification qui apparaît dans le mockup */
.ns-phone__notif {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-size: 0.72rem;
    background: rgba(5, 10, 24, 0.85);
    border: 1px solid rgba(255, 45, 58, 0.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    opacity: 0;
    transform: translateY(14px);
    animation: ns-notif 6s ease-in-out infinite;
}

.ns-phone__notif::before {
    content: '';
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ns-red);
    box-shadow: 0 0 8px var(--ns-red-glow);
}

@keyframes ns-notif {
    0%, 18%  { opacity: 0; transform: translateY(14px); }
    28%, 82% { opacity: 1; transform: translateY(0); }
    92%, 100%{ opacity: 0; transform: translateY(-8px); }
}

/* --------------------------------------------------------------------------
   CTA final — Prêt à buzzer ?
   -------------------------------------------------------------------------- */

.ns-final {
    position: relative;
    padding: 8rem 0;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 55% 55% at 50% 55%, rgba(255, 45, 58, 0.26), transparent 65%),
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(28, 48, 88, 0.35), transparent 70%),
        var(--ns-night);
}

.ns-final__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.ns-final__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
    mix-blend-mode: luminosity;
    transform: scale(1);
    transition: transform 9s ease-out;
}

/* Slow scale du fond quand la section entre à l'écran */
.ns-final.is-inview .ns-final__bg img {
    transform: scale(1.09);
}

.ns-final .ns-container {
    position: relative;
    z-index: 1;
}

/* Lignes de lumière convergentes */
.ns-final__rays {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ns-final__rays i {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46vw;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 45, 58, 0.5));
    transform-origin: right center;
    animation: ns-ray 4.5s ease-in-out infinite;
}

.ns-final__rays i:nth-child(1) { transform: translate(-100%, -50%) rotate(12deg); animation-delay: 0s; }
.ns-final__rays i:nth-child(2) { transform: translate(-100%, -50%) rotate(-14deg); animation-delay: 0.7s; }
.ns-final__rays i:nth-child(3) { transform: translate(-100%, -50%) rotate(38deg); animation-delay: 1.5s; }
.ns-final__rays i:nth-child(4) { transform: translate(-100%, -50%) rotate(-40deg); animation-delay: 2.1s; }
.ns-final__rays i:nth-child(5) { transform: translate(-100%, -50%) rotate(70deg); animation-delay: 2.9s; }
.ns-final__rays i:nth-child(6) { transform: translate(-100%, -50%) rotate(-72deg); animation-delay: 3.6s; }

@keyframes ns-ray {
    0%, 100% { opacity: 0.15; }
    50%      { opacity: 0.85; }
}

.ns-final__title {
    font-size: clamp(2.4rem, 7vw, 5rem);
    margin-bottom: 1.2rem;
}

.ns-final__text {
    color: var(--ns-grey);
    font-size: 1.15rem;
    max-width: 520px;
    margin: 0 auto 3rem;
}

/* Buzzer XXL */
.ns-buzzer-btn {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    text-decoration: none;
    font-family: var(--ns-font-display);
    font-size: 1.25rem;
    text-transform: uppercase;
    color: #fff;
    background: radial-gradient(circle at 35% 28%, #ff6b74, var(--ns-red) 45%, var(--ns-red-dark) 100%);
    box-shadow:
        0 0 50px var(--ns-red-glow),
        0 0 120px rgba(255, 45, 58, 0.35),
        inset 0 -14px 32px rgba(0, 0, 0, 0.4),
        inset 0 10px 22px rgba(255, 255, 255, 0.28);
    transition: transform 0.15s ease, box-shadow 0.25s ease;
}

/* Socle du buzzer */
.ns-buzzer-btn::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 270px;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255, 45, 58, 0.3), transparent 70%);
    z-index: -1;
}

.ns-buzzer-btn small {
    font-family: var(--ns-font-body);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    opacity: 0.85;
}

.ns-buzzer-btn:hover,
.ns-buzzer-btn:focus-visible {
    transform: scale(1.05) translateY(2px);
    box-shadow:
        0 0 80px var(--ns-red-glow),
        0 0 170px rgba(255, 45, 58, 0.45),
        inset 0 -10px 26px rgba(0, 0, 0, 0.45),
        inset 0 8px 18px rgba(255, 255, 255, 0.3);
    animation: ns-buzzer-flash 0.35s ease;
}

.ns-buzzer-btn:active {
    transform: scale(0.97) translateY(5px);
}

@keyframes ns-buzzer-flash {
    0%   { filter: brightness(1); }
    30%  { filter: brightness(1.45); }
    100% { filter: brightness(1); }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.ns-footer {
    background: var(--ns-night-2);
    border-top: 1px solid rgba(180, 192, 220, 0.14);
    padding: 4rem 0 2rem;
}

.ns-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.ns-footer__brand p {
    color: var(--ns-grey);
    font-size: 0.92rem;
    margin-top: 0.9rem;
    max-width: 320px;
}

.ns-footer__col h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ns-grey);
    margin-bottom: 1.1rem;
}

.ns-footer__col ul {
    list-style: none;
}

.ns-footer__col li {
    margin-bottom: 0.6rem;
}

.ns-footer__col a {
    text-decoration: none;
    color: var(--ns-white);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.ns-footer__col a:hover,
.ns-footer__col a:focus-visible {
    color: var(--ns-red);
}

.ns-footer__social {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.ns-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(154, 165, 196, 0.25);
    color: var(--ns-grey);
    transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.ns-footer__social a:hover,
.ns-footer__social a:focus-visible {
    border-color: var(--ns-red);
    color: var(--ns-red);
    box-shadow: 0 0 14px rgba(255, 45, 58, 0.25);
}

.ns-footer__social svg {
    width: 18px;
    height: 18px;
}

.ns-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(154, 165, 196, 0.1);
    font-size: 0.82rem;
    color: var(--ns-grey);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .ns-safety__layout {
        grid-template-columns: 1fr;
    }

    .ns-phone {
        margin-top: 2rem;
    }

    .ns-gallery__wall {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }
}

@media (max-width: 1100px) {
    .ns-section {
        padding: 4.5rem 0;
    }

    .ns-header-logo .ns-logo-img {
        height: 48px;
        max-width: min(240px, 62vw);
    }

    /* Menu mobile */
    .ns-header__inner {
        display: flex;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .ns-nav {
        position: fixed;
        top: var(--ns-header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid rgba(5, 10, 24, 0.08);
        box-shadow: 0 12px 28px rgba(5, 10, 24, 0.08);
        padding: 1rem 1.5rem 1.5rem;
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
    }

    .ns-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .ns-nav a:not(.ns-btn),
    .ns-nav__trigger {
        padding: 0.9rem 0;
        border-bottom: 1px solid rgba(5, 10, 24, 0.08);
        white-space: normal;
        width: 100%;
        justify-content: space-between;
    }

    .ns-nav__drop {
        border-bottom: 1px solid rgba(5, 10, 24, 0.08);
    }

    .ns-nav__sub {
        display: none;
        min-width: 0;
        margin: 0;
        padding: 0 0 0.5rem;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .ns-nav__drop.is-open .ns-nav__sub {
        display: block;
    }

    .ns-nav__sub a {
        padding: 0.75rem 0 0.75rem 1rem;
        border-bottom: 1px solid rgba(5, 10, 24, 0.06);
        font-size: 0.84rem;
    }

    .ns-nav__sub li:last-child a {
        border-bottom: none;
    }

    .ns-header__reserve {
        padding: 0.48rem 0.72rem;
        font-size: 0.72rem;
    }

    .ns-burger {
        display: flex;
    }

    .ns-hero__hud {
        right: 1.2rem;
        top: calc(var(--ns-header-h) + 1rem);
    }

    .ns-hero__hud-time {
        font-size: 1.1rem;
    }

    .ns-offers__grid {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Timeline verticale sur mobile */
    .ns-course__track {
        grid-template-columns: 1fr;
        gap: 1.6rem;
        margin-left: 0.4rem;
    }

    .ns-course__track::before,
    .ns-course__line {
        top: 2%;
        bottom: 2%;
        left: 27px;
        right: auto;
        width: 3px;
        height: 96%;
    }

    .ns-course__line {
        transform: scaleY(0);
        transform-origin: top;
    }

    .ns-course__track.is-active .ns-course__line {
        transform: scaleY(1);
    }

    .ns-checkpoint {
        display: grid;
        grid-template-columns: 56px 1fr;
        gap: 1.1rem;
        text-align: left;
        align-items: start;
    }

    .ns-checkpoint__dot {
        margin: 0;
    }

    .ns-birthday__grid,
    .ns-groups__grid,
    .ns-event__body {
        grid-template-columns: 1fr;
    }

    .ns-groups__photo {
        position: static;
        aspect-ratio: 16 / 10;
    }

    .ns-safety__grid {
        grid-template-columns: 1fr;
    }

    .ns-countdown {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .ns-footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 560px) {
    .ns-gallery__wall {
        grid-template-columns: 1fr;
        grid-auto-rows: 210px;
    }

    .ns-gallery__item--wide,
    .ns-gallery__item--tall {
        grid-column: auto;
        grid-row: auto;
    }

    .ns-hero__actions .ns-btn {
        width: 100%;
    }

    .ns-buzzer-btn {
        width: 190px;
        height: 190px;
        font-size: 1.05rem;
    }

    .ns-countdown__unit {
        min-width: 64px;
    }

    .ns-countdown__value {
        font-size: 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   Accessibilité : réduction des animations
   -------------------------------------------------------------------------- */

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

    *:not(.ns-laser-text):not(.ns-laser-char),
    *:not(.ns-laser-text):not(.ns-laser-char)::before,
    *:not(.ns-laser-text):not(.ns-laser-char)::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }

    .ns-course__line,
    .ns-skill__fill {
        transform: scaleX(1) !important;
    }

    .ns-checkpoint__media img {
        opacity: 1;
        clip-path: none;
    }

    .ns-gallery__item[data-animate] .ns-gallery__photo,
    .ns-birthday__pack .ns-birthday__photo {
        opacity: 1;
        clip-path: none;
    }

    .ns-mission__complete {
        opacity: 1;
        transform: none;
    }

    .ns-final__bg img {
        transform: none;
        transition: none;
    }

    .ns-hero__title .line > span {
        transform: none;
        animation: none;
    }

    .ns-hero__tagline,
    .ns-hero__text,
    .ns-hero__actions {
        opacity: 1;
        animation: none;
        transform: none;
    }

    .ns-hero__tunnel {
        display: none;
    }

    .ns-hero__slide--final,
    .ns-hero__slide.is-active-final {
        opacity: 0.72;
        filter: none;
        transform: none;
    }

    .ns-hero__slide.is-on {
        transform: none;
    }

    .ns-hero__scan-h {
        display: none;
    }

    .ns-hero__hud,
    .ns-hero__particles,
    .ns-hero__scoreboard,
    .ns-hero__brand,
    .ns-hero__scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ns-hero__title .line > span {
        transform: none;
        opacity: 1;
        filter: none;
        animation: none;
    }

    .ns-hero.is-scrolling {
        transform: none;
    }

    .ns-hero__bridge {
        display: none;
    }

    .ns-card__img--hover {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Retour en haut — desktop
   -------------------------------------------------------------------------- */

.ns-back-top {
    display: none;
}

@media (min-width: 901px) {
    .ns-back-top {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        position: fixed;
        right: 1.75rem;
        bottom: 1.75rem;
        z-index: 85;
        width: 52px;
        height: 52px;
        padding: 0;
        border: 1px solid rgba(45, 80, 143, 0.45);
        border-radius: 16px;
        background: linear-gradient(165deg, var(--ns-night-3) 0%, var(--ns-night) 55%, #0a1228 100%);
        color: var(--ns-white);
        cursor: pointer;
        box-shadow:
            0 8px 24px rgba(5, 10, 24, 0.45),
            0 0 0 1px rgba(244, 247, 255, 0.06) inset;
        opacity: 0;
        visibility: hidden;
        transform: translateY(16px) scale(0.92);
        transition:
            opacity 0.3s ease,
            visibility 0.3s ease,
            transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
            box-shadow 0.25s ease,
            border-color 0.25s ease;
    }

    .ns-back-top.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .ns-back-top__ring {
        position: absolute;
        inset: -3px;
        border-radius: 18px;
        border: 1px solid transparent;
        background: linear-gradient(165deg, rgba(255, 45, 58, 0.5), rgba(26, 53, 104, 0.2)) border-box;
        -webkit-mask:
            linear-gradient(#fff 0 0) padding-box,
            linear-gradient(#fff 0 0);
        mask:
            linear-gradient(#fff 0 0) padding-box,
            linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0.65;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .ns-back-top__icon {
        width: 24px;
        height: 28px;
        color: var(--ns-white);
        filter: drop-shadow(0 0 6px rgba(255, 45, 58, 0.35));
        transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), filter 0.25s ease;
    }

    .ns-back-top__sai {
        transform-origin: 12px 14px;
        transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .ns-back-top__label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .ns-back-top:hover,
    .ns-back-top:focus-visible {
        border-color: rgba(255, 45, 58, 0.55);
        box-shadow:
            0 10px 32px rgba(5, 10, 24, 0.5),
            0 0 28px var(--ns-red-glow);
        outline: none;
    }

    .ns-back-top:hover .ns-back-top__ring,
    .ns-back-top:focus-visible .ns-back-top__ring {
        opacity: 1;
    }

    .ns-back-top:hover .ns-back-top__icon,
    .ns-back-top:focus-visible .ns-back-top__icon {
        filter: drop-shadow(0 0 10px rgba(255, 45, 58, 0.65));
    }

    .ns-back-top:hover .ns-back-top__sai,
    .ns-back-top:focus-visible .ns-back-top__sai {
        transform: translateY(-3px) rotate(-6deg);
    }

    body.ns-booking-open .ns-back-top {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ns-back-top {
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .ns-back-top.is-visible {
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   Éclairage stadium — spots additifs uniquement (pas d’assombrissement)
   -------------------------------------------------------------------------- */

.ns-lights {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    overflow: hidden;
    contain: strict;
}

.ns-lights__pool {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.52;
    mix-blend-mode: screen;
}

.ns-lights__pool--red {
    top: 8%;
    left: -5%;
    width: min(70vw, 640px);
    height: min(70vw, 640px);
    background: radial-gradient(circle, rgba(255, 45, 58, 0.75) 0%, rgba(255, 45, 58, 0.16) 40%, transparent 70%);
    animation: nsLightRed 22s ease-in-out infinite;
}

.ns-lights__pool--blue {
    top: 48%;
    right: -8%;
    width: min(65vw, 580px);
    height: min(65vw, 580px);
    background: radial-gradient(circle, rgba(45, 80, 143, 0.72) 0%, rgba(26, 53, 104, 0.24) 42%, transparent 72%);
    animation: nsLightBlue 26s ease-in-out infinite;
    animation-delay: -8s;
}

.ns-lights__pool--warm {
    bottom: 5%;
    left: 28%;
    width: min(55vw, 500px);
    height: min(55vw, 500px);
    background: radial-gradient(circle, rgba(255, 230, 210, 0.38) 0%, rgba(255, 45, 58, 0.14) 45%, transparent 72%);
    animation: nsLightWarm 30s ease-in-out infinite;
    animation-delay: -14s;
}

@keyframes nsLightRed {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(42vw, 28vh) scale(1.12); }
}

@keyframes nsLightBlue {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-38vw, -18vh) scale(1.08); }
}

@keyframes nsLightWarm {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(22vw, -32vh) scale(1.15); }
}

/* Projecteur souris — lumière en plus, le site reste inchangé */
.ns-cursor-spot {
    position: fixed;
    inset: 0;
    z-index: 76;
    pointer-events: none;
    --ns-spot-x: 50%;
    --ns-spot-y: 40%;
    opacity: 0;
    transition: opacity 0.3s ease;
    contain: strict;
}

.ns-cursor-spot.is-active {
    opacity: 1;
}

.ns-cursor-spot__halo,
.ns-cursor-spot__beam,
.ns-cursor-spot__core {
    position: absolute;
    left: var(--ns-spot-x);
    top: var(--ns-spot-y);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.ns-cursor-spot__halo {
    width: calc(var(--ns-spot-size) * 1.6);
    height: calc(var(--ns-spot-size) * 1.6);
    background: radial-gradient(
        circle,
        rgba(255, 200, 180, 0.26) 0%,
        rgba(255, 45, 58, 0.14) 30%,
        rgba(45, 80, 143, 0.08) 50%,
        transparent 68%
    );
    filter: blur(28px);
}

.ns-cursor-spot__beam {
    width: calc(var(--ns-spot-size) * 1.15);
    height: calc(var(--ns-spot-size) * 1.15);
    background: radial-gradient(
        circle,
        rgba(255, 252, 245, 0.58) 0%,
        rgba(255, 235, 220, 0.38) 14%,
        rgba(255, 180, 160, 0.22) 32%,
        rgba(255, 45, 58, 0.12) 48%,
        transparent 66%
    );
    filter: blur(10px);
}

.ns-cursor-spot__core {
    width: calc(var(--ns-spot-size) * 0.42);
    height: calc(var(--ns-spot-size) * 0.42);
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.65) 0%,
        rgba(255, 248, 240, 0.35) 45%,
        transparent 72%
    );
    filter: blur(4px);
}

body.ns-booking-open .ns-lights,
body.ns-booking-open .ns-cursor-spot {
    opacity: 0 !important;
    visibility: hidden;
}

@media (max-width: 520px) {
    .ns-header__reserve {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
    }

    .ns-header__reserve span {
        display: none;
    }

    .ns-header__reserve .ns-btn__icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 900px) {
    :root {
        --ns-spot-size: min(78vw, 380px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ns-lights__pool {
        animation: none !important;
        opacity: 0.36;
    }

    .ns-cursor-spot {
        display: none;
    }
}
