:root {
    --primary: #6366f1;
    --accent: #f43f5e;
    --white: #ffffff;
    --black: #000000;
    --overlay: rgba(0, 0, 0, 0.6);
}

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

body, html {
    height: 100%;
    font-family: 'Open Sans', sans-serif;
    color: var(--white);
    background: var(--black);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Parallax Structure --- */
.parallax-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay);
    z-index: 1;
}

.content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
    transform: translateZ(0); /* Fix for some parallax issues */
}

/* --- Hero Section with Video --- */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video-container video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 30px;
}

/* --- Static Image Sections (Parallax) --- */
.section-1 { background-image: url('image/img-intro/affiche-web.jpg'); }
.section-2 { background-image: url('image/img-intro/affiche-web-1.jpg'); }
.section-3 { background-image: url('image/img-intro/affiche-web-2.jpg'); }

/* --- Video Sections --- */
.video-middle {
    height: 80vh;
    background: #111;
}

.video-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* --- UI Elements --- */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.6);
}

/* New buttons styles */
.buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-web, .btn-android {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.btn-web:hover, .btn-android:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.scroll-down {
    font-size: 2rem;
    color: var(--white);
    animation: bounce 2s infinite;
    display: inline-block;
    margin-top: 20px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* --- Hero Section with Image --- */
.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Media Gallery --- */
.masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 50px 20px;
    background: var(--black);
}

.masonry-item {
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
    position: relative;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.masonry-item:hover img {
    transform: scale(1.1);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .parallax-section { background-attachment: scroll; } /* Better for mobile */
}

/* --- Floating Nav --- */
nav {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 100;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    background: rgba(0,0,0,0.5);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}
