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

html {
    scroll-behavior: smooth;
}

body {
    background: #000;
    color: #eaeaea;
    font-family: "Inter", system-ui, sans-serif;
    overflow-x: hidden;
}

#stage {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}

.vignette {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .75) 100%);
}

#loader {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #000;
    display: grid;
    place-items: center;
    font: 600 14px monospace;
    letter-spacing: .3em;
    color: #ff7acb;
    transition: opacity .8s;
}

#loader.done {
    opacity: 0;
    pointer-events: none;
}

/* NAV (même style que le site principal) */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(35, 35, 35, .8);
    backdrop-filter: blur(12px);
}

.nav-logo {
    font-weight: 700;
    letter-spacing: .12em;
    color: #fff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: #eaeaea;
    text-decoration: none;
    font-size: .85rem;
    letter-spacing: .1em;
    transition: color .2s;
}

.nav-links a:hover {
    color: #ff7acb;
}

/* SECTIONS */
main {
    position: relative;
    z-index: 10;
}

.panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 8vw 60px;
}

.panel.left {
    justify-content: flex-start;
}

.panel.right {
    justify-content: flex-end;
}

.panel.center {
    justify-content: center;
    align-items: flex-end;
}

.panel.center-bottom {
    justify-content: center;
    align-items: flex-end;
}

.card {
    max-width: 440px;
    padding: 34px;
    border-radius: 20px;
    background: rgba(15, 15, 15, .55);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 122, 203, .25);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .7s, transform .7s;
}

.panel.active .card {
    opacity: 1;
    transform: none;
}

.card h2 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 26px;
    position: relative;
}

.card h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 70px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, #ff7acb, #ff4fa3);
}

.card p {
    line-height: 1.6;
    color: #cfcfcf;
    margin-bottom: 14px;
}

.card b {
    color: #ff7acb;
    font-weight: 700;
}

.row {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.row span {
    display: block;
    margin-top: 4px;
    color: #fff;
}

.row small {
    display: block;
    color: #9a9a9a;
    margin-top: 2px;
}

.btn {
    display: inline-block;
    margin-top: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    background: linear-gradient(135deg, #ff7acb, #ff4fa3);
    box-shadow: 0 8px 24px rgba(255, 79, 163, .35);
    transition: .2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.hint {
    font: 600 12px monospace;
    letter-spacing: .4em;
    color: #ff7acb;
    animation: blink 1.6s infinite;
}

.back-btn {
    margin-left: 20px;    margin-left: 20px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #ff7acb, #ff4fa3);
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(255, 79, 163, 0.35);
    transition: 0.2s ease;
    z-index: 10000; /* au-dessus du canvas */
}

.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 79, 163, 0.45);
}

/* BOUTON BURGER */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1000;
}

.burger span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: 0.35s ease;
}

/* ANIMATION EN CROIX */
.burger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* MENU MOBILE */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(35, 35, 35, 0.95);
    backdrop-filter: blur(12px);
    padding: 100px 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: 0.4s ease;
    z-index: 9999;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    opacity: 0.85;
}

.mobile-menu a:hover {
    opacity: 1;
}

/* ÉTAT OUVERT */
.mobile-menu.open {
    right: 0;
}

/* MOBILE */
@media (max-width: 800px) {
    .nav-links {
        display: none;
    }

    .burger {
        display: flex;
    }
}

@keyframes blink {
    50% {
        opacity: .2;
    }
}

/* MOBILE : la TV reste en haut, le texte passe en bas */
@media (max-width: 800px) {
    .nav {
        padding: 16px 20px;
    }

    .nav-links {
        display: none;
    }

    .panel {
        align-items: flex-end;
        justify-content: center !important;
        padding: 80px 16px 24px;
    }

    .card {
        max-width: 100%;
        padding: 22px;
        background: rgba(10, 10, 10, .75);
    }
}

@media (max-width: 768px) {
    .back-btn {
        padding: 12px 24px;
        font-size: 1.1rem;
        top: 16px;
        left: 16px;
    }
}
