:root {
    --bg-color: #030305;
    --accent-color: #818cf8;
    --mouse-x: 50%;
    --mouse-y: 50%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: #f8fafc;
    overflow-x: hidden;
    line-height: 1.5;
}

h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}





/* Halo centré et intense */
body.mnu101 .glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle 350px at var(--mouse-x) var(--mouse-y),
        rgba(99, 102, 241, 0.15) 0%,
        transparent 80%
        );
    z-index: -1;
    pointer-events: none;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
}

.container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 60px;
}

/* --- Éléments Box & Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 28px;
    padding: 40px;
    backdrop-filter: blur(15px);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.box:hover {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

/* --- Parallaxe Inversé Accentué --- */
figure {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #111;
}

.parallax-img {
    position: absolute;
    top: -30%; /* Plus de marge pour un mouvement ample */
    left: 0;
    width: 100%;
    height: 160%; /* Ratio agrandi pour supporter le décalage */
    object-fit: cover;
    will-change: transform;
    transition: filter 0.5s ease;
    filter: saturate(0.8) brightness(0.9);
}

figure:hover .parallax-img {
    filter: saturate(1.2) brightness(1.1);
}

figcaption {
    margin-top: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-color);
    opacity: 0.8;
}

/* --- Animation de flottement aléatoire --- */
@keyframes floating {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(var(--rx), var(--ry));
    }
    66% {
        transform: translate(var(--ry), var(--rx));
    }
}

.float-anim {
    animation: floating 8s ease-in-out infinite;
}

