/* css/sections.css — Sections épinglées 300dvh, scènes multi-plans superposées & offre B2B */

/* ==========================================================================
   1. ARCHITECTURE DES CHAPITRES ÉPINGLÉS (ARRÊT -> ANIMATION -> REPRISE)
   ========================================================================== */

.game-chapter {
    position: relative;
    scroll-margin-top: var(--nav-height);
    --sec-bg: #192b27;
    --sec-fg: #f4eedc;
    --sec-muted: rgba(244, 238, 220, 0.82);
    --sec-accent: #e8a812;
    --sec-cta-bg: #d6281c;
    --sec-cta-fg: #fff9ee;
    --sec-border: rgba(244, 238, 220, 0.22);
    --sec-surface: rgba(255, 255, 255, 0.08);
    background-color: var(--sec-bg);
    color: var(--sec-fg);
}

/* Rail généreux : la page s'immobilise ~2 écrans pendant le déroulé de la scène */
.game-chapter--pinned {
    height: 300dvh;
}

.game-stage {
    position: sticky;
    top: var(--nav-height);
    height: calc(100dvh - var(--nav-height));
    min-height: 490px;
    overflow: hidden;
    contain: layout paint;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(1rem, 2.5vh, 2.25rem) clamp(2.6rem, 5vh, 3.6rem);
}

.stage-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.stage-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.14fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.75rem);
}

.stage-grid--reverse .stage-copy {
    order: 2;
}

.stage-grid--reverse .stage-visual {
    order: 1;
}

/* En-tête éditorial */
.stage-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.75rem;
    margin-bottom: 0.75rem;
}

.chapter-num {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--sec-accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.chapter-kind {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--sec-muted);
}

/* Cartouche technique anguleux réservé aux vraies données dynamiques */
.telemetry-pill {
    margin-left: auto;
    padding: 0.24rem 0.6rem;
    border-radius: 4px;
    border: 1px solid var(--sec-border);
    background-color: var(--sec-surface);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--sec-accent);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.game-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.2vw, 3.45rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.025em;
    color: var(--sec-fg);
    margin-bottom: 0.75rem;
}

.game-lead {
    font-size: clamp(0.95rem, 1.15vw, 1.05rem);
    line-height: 1.58;
    color: var(--sec-muted);
    max-width: 52ch;
    margin-bottom: 1.1rem;
}

/* Deck d'actes séquentiels (cadre uniforme sans bordure gauche "virgule IA") */
.act-deck {
    position: relative;
    min-height: 146px;
    margin-bottom: 1.15rem;
}

.act-card {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--sec-border);
    background-color: var(--sec-surface);
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    pointer-events: none;
    transition: opacity 0.35s var(--ease-out), transform 0.42s var(--ease-out);
}

.game-chapter[data-phase="1"] .act-card[data-act="1"],
.game-chapter[data-phase="2"] .act-card[data-act="2"],
.game-chapter[data-phase="3"] .act-card[data-act="3"] {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}

.game-chapter[data-phase="2"] .act-card[data-act="1"],
.game-chapter[data-phase="3"] .act-card[data-act="1"],
.game-chapter[data-phase="3"] .act-card[data-act="2"] {
    opacity: 0;
    transform: translate3d(0, -28px, 0);
}

.act-card__step {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-display);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--sec-accent);
    margin-bottom: 0.32rem;
}

.act-card__step::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background-color: var(--sec-accent);
    flex-shrink: 0;
}

.act-card h3 {
    font-family: var(--font-display);
    font-size: 1.06rem;
    font-weight: 700;
    color: var(--sec-fg);
    margin-bottom: 0.3rem;
}

.act-card p {
    font-size: 0.9rem;
    line-height: 1.48;
    color: var(--sec-muted);
}

/* 3 familles visuelles distinctes pour casser l'effet clone entre les 9 démos */
.theme-racers .act-card,
.theme-spacepizza .act-card,
.theme-ponkanoid .act-card {
    border-radius: 4px;
    border-width: 1.5px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.28);
}

.theme-maze .act-card,
.theme-manifest .act-card,
.theme-waterland .act-card {
    border-radius: 3px;
    border-top: 2px solid var(--sec-accent);
}

.theme-alkimia .act-card,
.theme-submersible .act-card,
.theme-explorascience .act-card {
    border-radius: 10px;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.15rem;
}

.game-tags li {
    padding: 0.24rem 0.62rem;
    border-radius: 4px;
    border: 1px solid var(--sec-border);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--sec-fg);
}

.stage-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 46px;
    padding: 0.66rem 1.3rem;
    border-radius: 6px;
    background-color: var(--sec-cta-bg);
    color: var(--sec-cta-fg);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.94rem;
    border: 2px solid var(--sec-cta-bg);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.34);
    transition: transform 0.16s var(--ease-out), box-shadow 0.16s var(--ease-out), filter 0.2s ease;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.38);
    filter: brightness(1.06);
}

.btn-play:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.38);
}

.btn-next {
    font-family: var(--font-body);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--sec-muted);
    padding: 0.38rem 0.15rem;
    transition: color 0.2s ease, transform 0.2s var(--ease-out);
}

.btn-next:hover {
    color: var(--sec-fg);
    transform: translateX(3px);
}

/* Barre d'avancement en pied de scène épinglée */
.stage-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 0 var(--gutter) 0.9rem;
}

.stage-progress__meta {
    width: min(100%, var(--container-max));
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--sec-muted);
}

.stage-progress__step {
    font-family: var(--font-mono);
    color: var(--sec-accent);
}

.stage-progress__track {
    width: min(100%, var(--container-max));
    margin-inline: auto;
    height: 4px;
    border-radius: 2px;
    background-color: var(--sec-border);
    overflow: hidden;
}

.stage-progress__bar {
    height: 100%;
    width: 100%;
    background-color: var(--sec-accent);
    transform-origin: left center;
    transform: scaleX(0);
}

/* Empilement multi-plans (visuel principal + calques détourés superposés) */
.stage-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-stack {
    position: relative;
    width: 100%;
    padding: 1.25rem;
}

.float-layer {
    position: absolute;
    z-index: 4;
    pointer-events: none;
}

.visual-frame {
    position: relative;
    z-index: 2;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--sec-border);
    box-shadow: var(--shadow-card);
    background-color: rgba(0, 0, 0, 0.14);
}

.visual-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.visual-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.62rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    background-color: rgba(16, 26, 23, 0.94);
    color: var(--sec-fg);
    border-top: 1px solid var(--sec-border);
}

/* ==========================================================================
   2. SECTION PHARE : SURCOUCHE GAMIFICATION SUR SITE EXISTANT
   ========================================================================== */

.theme-overlay {
    --sec-bg: #eceff4;
    --sec-fg: #15171c;
    --sec-muted: #4c5260;
    --sec-accent: #1a5fd0;
    --sec-cta-bg: #1a5fd0;
    --sec-cta-fg: #ffffff;
    --sec-border: rgba(21, 23, 28, 0.14);
    --sec-surface: #ffffff;
}

.overlay-demo {
    position: relative;
    width: 100%;
    min-height: 410px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Miniature de boutique réelle épurée (zéro wireframe 3 ronds gris IA) */
.mock-site {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: #ffffff;
    border: 1.5px solid #15171c;
    box-shadow: var(--shadow-card);
}

.mock-site__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.58rem 0.95rem;
    background-color: #15171c;
    color: #f7f8fa;
}

.mock-site__brand {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffffff;
}

.mock-site__url {
    padding: 0.14rem 0.55rem;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.12);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #cfd5e2;
}

.mock-site__body {
    padding: 1.15rem;
    display: grid;
    gap: 0.9rem;
}

.mock-site__hero-box {
    padding: 1rem 1.1rem;
    border-radius: 6px;
    background-color: #f4f6fa;
    border: 1px solid rgba(21, 23, 28, 0.1);
    display: grid;
    gap: 0.25rem;
}

.mock-site__eyebrow {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a5fd0;
}

.mock-site__heading {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #15171c;
    line-height: 1.2;
}

.mock-site__sub {
    font-size: 0.78rem;
    color: #4c5260;
}

.mock-site__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.mock-card {
    padding: 0.65rem;
    border-radius: 6px;
    background-color: #f7f8fa;
    border: 1px solid rgba(21, 23, 28, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.45rem;
}

.mock-card__thumb {
    display: block;
    height: 36px;
    border-radius: 4px;
    background-color: #dce4f2;
}

.mock-card__thumb--b {
    background-color: #f2ddd9;
}

.mock-card__thumb--c {
    background-color: #dcebe3;
}

.mock-card__label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    color: #15171c;
}

.mock-site__footer-hook {
    padding: 0.6rem 0.85rem;
    border-radius: 6px;
    background-color: #15171c;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1a5fd0;
}

.hook-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #ffffff;
}

/* 3 cartes saisonnières qui surgissent par-dessus la maquette de site */
.season-layer {
    position: absolute;
    left: 6%;
    right: 6%;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1.15rem;
    border-radius: var(--radius-md);
    border: 2px solid #15171c;
    box-shadow: 0 18px 36px rgba(15, 18, 24, 0.24);
}

.season-layer--noel {
    top: 12%;
    background-color: #163329;
    color: #f7f8fa;
    border-color: #469d71;
}

.season-layer--halloween {
    top: 38%;
    background-color: #241715;
    color: #fdf6f0;
    border-color: #df6424;
}

.season-layer--paques {
    bottom: 8%;
    background-color: #ffffff;
    color: #15171c;
    border-color: #1a5fd0;
}

.season-card__icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.12);
}

.season-layer--noel .season-card__icon {
    color: #6dbb8e;
}

.season-layer--halloween .season-card__icon {
    color: #e27424;
}

.season-layer--paques .season-card__icon {
    background-color: rgba(26, 95, 208, 0.12);
    color: #1a5fd0;
}

.season-card__kicker {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 0.15rem;
}

.season-card__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.season-card__desc {
    font-size: 0.85rem;
    line-height: 1.4;
    opacity: 0.88;
}

/* ==========================================================================
   3. THÈMES MATÉRIELS & CALQUES SUPERPOSÉS DES 9 DÉMONSTRATEURS
   ========================================================================== */

/* --- 01 · RACERS --- */
.theme-racers {
    --sec-bg: #192b27;
    --sec-fg: #f4eedc;
    --sec-muted: rgba(244, 238, 220, 0.82);
    --sec-accent: #e8a812;
    --sec-cta-bg: #d6281c;
    --sec-cta-fg: #fff9ee;
    --sec-border: rgba(244, 238, 220, 0.22);
    --sec-surface: rgba(244, 238, 220, 0.08);
}

.racers-stripe {
    position: absolute;
    top: -30%;
    bottom: -30%;
    width: 120px;
    opacity: 0.24;
    transform: skewX(-16deg);
}

.racers-stripe--left {
    left: 3%;
    background: repeating-linear-gradient(90deg, #d6281c 0 24px, #e8a812 24px 48px, #f4eedc 48px 66px, transparent 66px 120px);
}

.racers-stripe--right {
    right: 3%;
    background: repeating-linear-gradient(90deg, #e8a812 0 22px, #d6281c 22px 44px, #f4eedc 44px 62px, transparent 62px 120px);
}

.racers-track-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: rgba(232, 168, 18, 0.34);
}

.float-layer--racers-wheel {
    top: -18px;
    left: -10px;
    width: 92px;
}

.float-layer--racers-gaz {
    bottom: -16px;
    right: -8px;
    width: 88px;
}

.float-layer--racers-offroad {
    top: -14px;
    right: 12%;
    width: 92px;
}

/* --- 02 · ALKIMIA --- */
.theme-alkimia {
    --sec-bg: #eef4f9;
    --sec-fg: #1e1431;
    --sec-muted: #463c59;
    --sec-accent: #d93829;
    --sec-cta-bg: #1e1431;
    --sec-cta-fg: #ffffff;
    --sec-border: rgba(30, 20, 49, 0.16);
    --sec-surface: rgba(30, 20, 49, 0.06);
}

.alkimia-grid-bg {
    position: absolute;
    inset: -14%;
    background-image: radial-gradient(rgba(30, 20, 49, 0.16) 1.6px, transparent 1.6px);
    background-size: 28px 28px;
}

.alkimia-tile {
    position: absolute;
    z-index: 4;
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background-color: #ffffff;
    border: 2.5px solid #1e1431;
    box-shadow: 0 12px 24px rgba(30, 20, 49, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.alkimia-tile--ruby {
    top: -6px;
    left: 0;
    color: #d93829;
}

.alkimia-tile--gold {
    top: -10px;
    right: 0;
    color: #e5a41c;
}

.alkimia-tile--emerald {
    bottom: -8px;
    left: 2%;
    color: #1f9d55;
}

.alkimia-tile--cobalt {
    bottom: -10px;
    right: 2%;
    color: #1d84e5;
}

.visual-frame--clean {
    border-color: #1e1431;
    box-shadow: 0 18px 40px rgba(30, 20, 49, 0.18);
}

/* --- 03 · MAZE --- */
.theme-maze {
    --sec-bg: #efe6d4;
    --sec-fg: #231b14;
    --sec-muted: #524536;
    --sec-accent: #7d1f1a;
    --sec-cta-bg: #7d1f1a;
    --sec-cta-fg: #f8f2e6;
    --sec-border: rgba(35, 27, 20, 0.22);
    --sec-surface: rgba(125, 31, 26, 0.08);
}

.maze-hatch {
    position: absolute;
    inset: -15%;
    opacity: 0.24;
    background-image: repeating-linear-gradient(-45deg, transparent 0 18px, rgba(35, 27, 20, 0.1) 18px 19px);
}

.maze-parchment-box {
    position: relative;
    z-index: 2;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px double #231b14;
    background-color: #201710;
    box-shadow: var(--shadow-card);
}

.maze-shadow-layer {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(214, 142, 43, 0.2), rgba(20, 14, 10, 0.96) 72%);
}

.maze-torch-reveal {
    position: relative;
    z-index: 1;
}

.maze-torch-reveal img {
    width: 100%;
    height: auto;
}

.maze-secret-tag {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 3;
    padding: 0.35rem 0.78rem;
    border-radius: 6px;
    background-color: #7d1f1a;
    color: #f8f2e6;
    border: 1.5px solid #d68e2b;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.float-layer--maze-logo {
    top: -22px;
    left: -14px;
    width: 195px;
    background-color: rgba(245, 238, 223, 0.94);
    padding: 0.45rem 0.7rem;
    border-radius: 12px;
    border: 2px solid #231b14;
}

/* --- 04 · MANIFEST --- */
.theme-manifest {
    --sec-bg: #f1eadb;
    --sec-fg: #242628;
    --sec-muted: #504d46;
    --sec-accent: #8e2926;
    --sec-cta-bg: #8e2926;
    --sec-cta-fg: #fdf9f1;
    --sec-border: rgba(36, 38, 40, 0.22);
    --sec-surface: rgba(36, 38, 40, 0.06);
}

.manifest-artwork {
    position: relative;
    z-index: 2;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid #242628;
    box-shadow: 12px 12px 0 rgba(36, 38, 40, 0.2);
}

.manifest-route-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: #c45b3a;
    pointer-events: none;
}

.manifest-route-path {
    stroke-dasharray: 1600;
    stroke-dashoffset: 0;
}

.float-layer--mf-logo {
    top: -24px;
    left: 2%;
    width: 210px;
    background-color: rgba(251, 247, 238, 0.96);
    padding: 0.4rem 0.75rem;
    border-radius: 12px;
    border: 2px solid #242628;
}

.float-layer--mf-u1 {
    bottom: -16px;
    left: 4%;
    width: 78px;
    border-radius: 14px;
    border: 2px solid #242628;
    background-color: #fbf7ee;
}

.float-layer--mf-u2 {
    bottom: -16px;
    left: 42%;
    width: 78px;
    border-radius: 14px;
    border: 2px solid #242628;
    background-color: #fbf7ee;
}

.float-layer--mf-u3 {
    bottom: -16px;
    right: 4%;
    width: 78px;
    border-radius: 14px;
    border: 2px solid #242628;
    background-color: #fbf7ee;
}

/* --- 05 · WATERLAND --- */
.theme-waterland {
    --sec-bg: #144a47;
    --sec-fg: #f5f3ec;
    --sec-muted: rgba(245, 243, 236, 0.84);
    --sec-accent: #ecd9a9;
    --sec-cta-bg: #c44b27;
    --sec-cta-fg: #ffffff;
    --sec-border: rgba(245, 243, 236, 0.24);
    --sec-surface: rgba(245, 243, 236, 0.09);
}

.waterland-currents {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: rgba(109, 187, 177, 0.34);
}

.float-layer--water-hud {
    top: -22px;
    left: 0;
    width: 225px;
    background-color: rgba(14, 54, 52, 0.92);
    padding: 0.4rem 0.65rem;
    border-radius: 12px;
    border: 1.5px solid #ecd9a9;
}

.float-layer--water-radio {
    bottom: -18px;
    left: 2%;
    width: 96px;
}

.compass-dial {
    position: absolute;
    top: -20px;
    right: -4px;
    z-index: 4;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background-color: #0e3634;
    border: 2px solid #ecd9a9;
    color: #ecd9a9;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.visual-frame--nautical {
    border-color: rgba(236, 217, 169, 0.55);
}

/* --- 06 · SUBMERSIBLE --- */
.theme-submersible {
    --sec-bg: #0f2d33;
    --sec-fg: #eef3f5;
    --sec-muted: rgba(238, 243, 245, 0.82);
    --sec-accent: #7ad0c8;
    --sec-cta-bg: #eef4f5;
    --sec-cta-fg: #0f2d33;
    --sec-border: rgba(238, 243, 245, 0.22);
    --sec-surface: rgba(122, 208, 200, 0.09);
}

.depth-ruler {
    position: absolute;
    left: 1.25rem;
    top: 10%;
    display: flex;
    flex-direction: column;
    gap: 5.5rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(122, 208, 200, 0.34);
}

.porthole-stage {
    position: relative;
    z-index: 2;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid rgba(122, 208, 200, 0.45);
    box-shadow: var(--shadow-card);
    background-color: #0a1f24;
}

.porthole-beam {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(108deg, transparent 38%, rgba(122, 208, 200, 0.2) 62%, transparent 86%);
    transform-origin: 48% 52%;
}

.visual-caption--sub {
    background-color: rgba(9, 28, 32, 0.94);
    color: #eef3f5;
}

.float-layer--sub-craft {
    top: 40%;
    left: 38%;
    width: 132px;
    background-color: rgba(15, 45, 51, 0.9);
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    border: 2px solid #7ad0c8;
}

/* --- 07 · SPACE PIZZA --- */
.theme-spacepizza {
    --sec-bg: #121728;
    --sec-fg: #f5ebd6;
    --sec-muted: rgba(245, 235, 214, 0.82);
    --sec-accent: #f2b938;
    --sec-cta-bg: #d93829;
    --sec-cta-fg: #fff8ee;
    --sec-border: rgba(245, 235, 214, 0.22);
    --sec-surface: rgba(242, 185, 56, 0.1);
}

.orbit-rings {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: min(820px, 76vw);
    height: auto;
    color: rgba(242, 185, 56, 0.28);
}

.orbit-ring {
    transform-origin: 450px 450px;
}

.sp-stage-wrap {
    max-width: 590px;
}

.visual-frame--space {
    border-color: rgba(242, 185, 56, 0.5);
}

.sp-rocket-badge {
    position: absolute;
    top: 38%;
    left: 42%;
    z-index: 5;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background-color: #1c243d;
    border: 2.5px solid #f2b938;
    color: #f5ebd6;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
}

/* --- 08 · PONKANOÏD --- */
.theme-ponkanoid {
    --sec-bg: #141517;
    --sec-fg: #f3f2ed;
    --sec-muted: rgba(243, 242, 237, 0.8);
    --sec-accent: #e87722;
    --sec-cta-bg: #e87722;
    --sec-cta-fg: #141517;
    --sec-border: rgba(243, 242, 237, 0.2);
    --sec-surface: rgba(243, 242, 237, 0.07);
}

.ponk-arena {
    position: relative;
    width: 100%;
    padding-inline: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ponk-frame {
    position: relative;
    z-index: 2;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid rgba(243, 242, 237, 0.26);
    box-shadow: var(--shadow-card);
}

.ponk-paddle {
    position: absolute;
    z-index: 4;
    width: 16px;
    height: 118px;
    border-radius: 999px;
}

.ponk-paddle--left {
    left: 0;
    background-color: #1d9bd1;
    border: 2px solid #9bd8f2;
}

.ponk-paddle--right {
    right: 0;
    background-color: #e87722;
    border: 2px solid #f7c395;
}

.ponk-ball {
    position: absolute;
    z-index: 5;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 3px solid #e3b228;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

/* --- 09 · EXPLORASCIENCE --- */
.theme-explorascience {
    --sec-bg: #162238;
    --sec-fg: #f4f6fa;
    --sec-muted: rgba(244, 246, 250, 0.84);
    --sec-accent: #75b8ff;
    --sec-cta-bg: #75b8ff;
    --sec-cta-fg: #0e182b;
    --sec-border: rgba(244, 246, 250, 0.22);
    --sec-surface: rgba(117, 184, 255, 0.1);
}

.explora-spiral-svg {
    position: absolute;
    right: 2%;
    top: 50%;
    transform: translateY(-50%);
    width: min(640px, 56vw);
    height: auto;
    color: rgba(117, 184, 255, 0.32);
}

.explora-spiral-path {
    stroke-dasharray: 2200;
    stroke-dashoffset: 0;
}

.explora-constellation {
    position: relative;
    width: min(100%, 540px);
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
}

.explora-emblem {
    position: relative;
    z-index: 3;
    width: 42%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid #75b8ff;
    box-shadow: var(--shadow-card);
    background-color: #0e1626;
}

.explora-portrait {
    position: absolute;
    width: 22%;
    background-color: #1f304d;
    border: 2px solid rgba(244, 239, 228, 0.38);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    z-index: 2;
}

.explora-portrait figcaption {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 700;
    text-align: center;
    padding: 0.22rem 0.25rem;
    color: #f4efe4;
    background-color: #101a2c;
}

.explora-portrait--1 {
    top: 0;
    left: 39%;
}

.explora-portrait--2 {
    top: 20%;
    right: 0;
}

.explora-portrait--3 {
    bottom: 18%;
    right: 0;
}

.explora-portrait--4 {
    bottom: 0;
    left: 39%;
}

.explora-portrait--5 {
    bottom: 18%;
    left: 0;
}

.explora-portrait--6 {
    top: 20%;
    left: 0;
}

/* ==========================================================================
   4. SECTION ÉQUIPE & CONTACT B2B
   ========================================================================== */

.studio-band {
    background-color: var(--brand-paper);
    color: var(--brand-ink);
    padding-block: clamp(4rem, 9vh, 7rem);
    border-top: 1px solid var(--brand-line);
    scroll-margin-top: var(--nav-height);
}

.studio-band__wrap {
    display: grid;
    gap: clamp(2rem, 4.5vh, 3.25rem);
}

.studio-band__head {
    max-width: 780px;
}

.studio-band__eyebrow {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-cobalt);
    margin-bottom: 0.65rem;
}

.studio-band__title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    line-height: 1.08;
    margin-bottom: 1rem;
}

.studio-band__text {
    font-size: 1.02rem;
    color: var(--brand-ink-muted);
    max-width: 62ch;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.pillar-card {
    padding: 1.5rem 1.4rem;
    border-radius: var(--radius-md);
    background-color: var(--brand-surface);
    border: 1px solid var(--brand-line);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.pillar-card__num {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-vermilion);
}

.pillar-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-ink);
}

.pillar-card p {
    font-size: 0.92rem;
    color: var(--brand-ink-muted);
    line-height: 1.55;
}

.contact-banner {
    padding: clamp(1.75rem, 3.8vw, 2.75rem);
    border-radius: var(--radius-md);
    background-color: var(--brand-dark);
    color: #f7f8fa;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 4px solid var(--brand-cobalt);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

.contact-banner__copy {
    max-width: 620px;
}

.contact-banner__kicker {
    font-family: var(--font-display);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9dc4ff;
    margin-bottom: 0.45rem;
}

.contact-banner h3 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.15;
    margin-bottom: 0.45rem;
}

.contact-banner p {
    color: rgba(247, 248, 250, 0.8);
    font-size: 0.96rem;
}

.contact-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.contact-banner .btn--primary {
    background-color: var(--brand-vermilion);
    border-color: #b52c19;
    color: #ffffff;
}

.contact-banner .btn--primary:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--brand-ink);
}

.contact-banner .btn--outline {
    background-color: transparent;
    border-color: rgba(247, 248, 250, 0.45);
    color: #f7f8fa;
}

.contact-banner .btn--outline:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--brand-ink);
}

/* ==========================================================================
   5. RESPONSIVE & ACCESSIBILITÉ (ÉPINGLAGE ACTIF SUR TOUS LES PC PORTABLES)
   ========================================================================== */

@media (max-width: 767px), (max-height: 480px) {
    .game-chapter--pinned {
        height: auto;
    }

    .game-stage {
        position: relative;
        top: 0;
        height: auto;
        min-height: 0;
        padding-block: 3.25rem;
    }

    .stage-grid,
    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .stage-grid--reverse .stage-copy,
    .stage-grid--reverse .stage-visual {
        order: initial;
    }

    .act-deck {
        min-height: 0;
        display: grid;
        gap: 0.65rem;
    }

    /* Révélation progressive 1 -> 2 -> 3 sur mobile sans jamais faire disparaître les cartes déjà apparues */
    .game-chapter .act-card,
    .game-chapter[data-phase] .act-card[data-act] {
        position: relative;
        inset: auto;
        pointer-events: auto;
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }

    .game-chapter[data-phase="1"] .act-card[data-act="2"],
    .game-chapter[data-phase="1"] .act-card[data-act="3"],
    .game-chapter[data-phase="2"] .act-card[data-act="3"] {
        opacity: 0.24;
        transform: translate3d(0, 14px, 0);
    }

    .stage-progress {
        display: none;
    }

    /* Conserver tous les éléments animés visibles et bien proportionnés sur petit écran */
    .parallax-stack {
        padding: 1.5rem 0.65rem;
    }

    .float-layer--racers-wheel {
        width: 64px;
        top: 0;
        left: 2px;
    }

    .float-layer--racers-gaz {
        width: 58px;
        bottom: 2px;
        right: 2px;
    }

    .float-layer--racers-offroad {
        width: 66px;
        top: 0;
        right: 8px;
    }

    .alkimia-tile {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .alkimia-tile svg {
        width: 20px;
        height: 20px;
    }

    .alkimia-tile--ruby {
        top: 4px;
        left: 6px;
    }

    .alkimia-tile--gold {
        top: 4px;
        right: 6px;
    }

    .alkimia-tile--emerald {
        bottom: 4px;
        left: 10px;
    }

    .alkimia-tile--cobalt {
        bottom: 4px;
        right: 10px;
    }

    .float-layer--maze-logo {
        width: 136px;
        top: -6px;
        left: 6px;
    }

    .maze-secret-tag {
        right: 0.65rem;
        bottom: 0.65rem;
        font-size: 0.66rem;
        padding: 0.25rem 0.55rem;
    }

    .float-layer--mf-logo {
        width: 140px;
        top: 2px;
        right: 8px;
    }

    .float-layer--mf-u1 {
        width: 52px;
        bottom: 2px;
        left: 8px;
    }

    .float-layer--mf-u2 {
        width: 48px;
        bottom: 2px;
        left: 42%;
    }

    .float-layer--mf-u3 {
        width: 52px;
        bottom: 2px;
        right: 8px;
    }

    .float-layer--water-hud {
        width: 138px;
        top: 4px;
        left: 8px;
    }

    .float-layer--water-radio {
        width: 62px;
        bottom: 2px;
        left: 8px;
    }

    .compass-dial {
        width: 54px;
        height: 54px;
        top: 0;
        right: 6px;
    }

    .compass-dial svg {
        width: 30px;
        height: 30px;
    }

    .float-layer--sub-craft {
        width: 96px;
        top: 36%;
        left: 36%;
        padding: 0.35rem 0.55rem;
    }

    .sp-rocket-badge {
        width: 52px;
        height: 52px;
        top: 38%;
        left: 42%;
    }

    .sp-rocket-badge svg {
        width: 28px;
        height: 28px;
    }

    .ponk-arena {
        padding-inline: 1.35rem;
    }

    .ponk-paddle {
        width: 11px;
        height: 74px;
    }

    .ponk-ball {
        width: 16px;
        height: 16px;
    }

    .overlay-demo {
        min-height: 0;
        display: grid;
        gap: 0.75rem;
    }

    .season-layer {
        position: relative;
        inset: auto;
    }

    .telemetry-pill {
        margin-left: 0;
    }
}

html[data-motion="reduced"] .game-chapter--pinned {
    height: auto;
}

html[data-motion="reduced"] .game-stage {
    position: relative;
    top: 0;
    height: auto;
    min-height: 0;
    padding-block: 4rem;
}

html[data-motion="reduced"] .act-deck {
    min-height: 0;
    display: grid;
    gap: 0.75rem;
}

html[data-motion="reduced"] .game-chapter .act-card,
html[data-motion="reduced"] .game-chapter[data-phase] .act-card[data-act] {
    position: relative;
    inset: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

html[data-motion="reduced"] .stage-progress {
    display: none;
}

html[data-motion="reduced"] .overlay-demo {
    min-height: 0;
    display: grid;
    gap: 0.75rem;
}

html[data-motion="reduced"] .season-layer {
    position: relative;
    inset: auto;
}
