:root {
    --bg-white: #ffffff;
    --bg-soft: #fcfcfc;
    --bg-gray: #f5f5f7;
    --text-main: #000000;
    --text-muted: #555555;
    --accent: #4dc4a4;
    /* Effet Liquid Glass */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    /* Marges Dynamiques */
    --container-padding: clamp(1.5rem, 8vw, 10rem);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- HELPER CLASSES & ANIMATIONS --- */
.section {
    padding: clamp(4rem, 10vw, 8rem) var(--container-padding);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem var(--container-padding);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    padding: 1rem 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--accent);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 1rem;
    min-width: 280px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.2, 1, 0.3, 1);
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    border-radius: 10px;
    transition: background 0.3s;
}

.dropdown-link:hover {
    background: var(--bg-gray);
    color: var(--accent);
}

.dropdown-link span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: black;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

/* --- HERO SECTION --- */
.hero {
    padding-top: clamp(8rem, 15vw, 12rem);
    text-align: center;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-soft) 100%);
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

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

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.hero p.subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 850px;
    margin: 0 auto 2.5rem;
    color: var(--text-muted);
}

/* --- HERO STUDIO --- */
.hero-studio {
    padding-top: clamp(8rem, 15vw, 12rem);
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-soft) 100%);
}

.hero-studio h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.tagline {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: block;
}

/* --- BOUTONS --- */
.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    padding: 1.1rem 2.2rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
}

.btn-black {
    background: var(--text-main);
    color: white;
    border: 1px solid var(--text-main);
    text-decoration: none;
    padding: 1.1rem 2.2rem;
    border-radius: 100px;
    font-weight: 600;
    display: inline-flex;
    transition: 0.3s;
}

.btn-black:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.btn-accent {
    background: var(--accent);
    color: white;
    border: 1px solid var(--accent);
    text-decoration: none;
    padding: 1.1rem 2.2rem;
    border-radius: 100px;
    font-weight: 700;
    display: inline-flex;
    transition: 0.3s;
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(77, 196, 164, 0.2);
}

.btn-accent-outline {
    background: white;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    text-decoration: none;
    padding: 1.1rem 2.2rem;
    border-radius: 100px;
    font-weight: 700;
    display: inline-flex;
    transition: 0.3s;
}

.btn-accent-outline:hover {
    background: var(--accent);
    color: var(--text-main);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(77, 196, 164, 0.2);
}

.btn-hover-white:hover {
    background: white !important;
    color: black !important;
    border-color: black !important;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1.5px solid var(--text-main);
}

.btn-outline:hover {
    background: var(--text-main);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* --- VIDEO YOUTUBE --- */
.video-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

.video-glass-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08);
}

.video-glass-wrapper iframe {
    position: absolute;
    top: 12px;
    left: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    border-radius: 30px;
}

/* --- GRID & CARDS --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 40px;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.accent-bar {
    width: 40px;
    height: 4px;
    background: var(--accent);
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

/* --- SECTIONS --- */
.section-gray {
    background: var(--bg-gray);
    border-radius: 60px;
    margin: 0 1.5rem;
}

.accessibility-box {
    background: var(--bg-gray);
    border-radius: 60px;
    padding: clamp(3rem, 6vw, 5rem);
    margin-top: 4rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.accessibility-content {
    flex: 1;
    min-width: 300px;
}

/* --- FOOTER --- */
footer {
    background: var(--text-main);
    color: white;
    padding: 5rem var(--container-padding) 2rem;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #222;
}

.footer-col h4 {
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: #888;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    color: #444;
    font-size: 0.85rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    :root {
        --container-padding: 1.5rem;
    }

    .btn {
        width: 100%;
    }

    .section-gray {
        border-radius: 0;
        margin: 0;
    }
}

/* --- VIRTUAL WORLDS SPECIFIC --- */
.hero-worlds {
    padding-top: clamp(8rem, 15vw, 12rem);
    text-align: center;
}

.hero-worlds h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--bg-gray);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

.grid-usage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.split-box {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 5vw, 6rem);
    margin-bottom: clamp(4rem, 8vw, 8rem);
    flex-wrap: wrap;
}

.split-box.reverse {
    flex-direction: row-reverse;
}

.split-text {
    flex: 1;
    min-width: 320px;
}

.split-visual {
    flex: 1.2;
    min-width: 320px;
    height: clamp(300px, 40vw, 450px);
    background: var(--bg-gray);
    border-radius: 50px;
    box-shadow: var(--glass-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    border: 1px solid var(--glass-border);
}

.cta-dark {
    background: var(--text-main);
    color: white;
    border-radius: 60px;
    padding: 5rem 3rem;
    text-align: center;
    margin-top: 4rem;
}

.btn-turquoise {
    background: var(--accent);
    color: var(--text-main);
    padding: 1.1rem 2.5rem;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
    margin-top: 2rem;
}

.btn-turquoise:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 206, 209, 0.3);
}

@media (max-width: 768px) {
    .split-visual {
        border-radius: 30px;
    }
}

/* --- LOGO SLIDER --- */
.logo-slider {
    overflow: hidden;
    padding: 6rem 0 3rem;
    background: var(--bg-white);
    white-space: nowrap;
    position: relative;
    text-align: center;
}

.logo-slider-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #bbb;
    margin-bottom: 3rem;
    display: block;
}

.logo-track {
    display: inline-flex;
    animation: scroll-logos 50s linear infinite;
    gap: 8rem;
    align-items: center;
}

.logo-item {
    padding: 0 2.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.logo-item img {
    height: 100px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: grayscale(0.8) opacity(0.8);
    transition: all 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0) opacity(1);
    transform: scale(1.1);
}

.text-accent {
    color: var(--accent);
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.logo-slider::before,
.logo-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
}

.logo-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-white), transparent);
}

.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-white), transparent);
}

/* --- MOBILE NAVIGATION --- */
.mobile-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.mobile-toggle .bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--text-main);
    transition: all 0.3s ease-in-out;
}

body.no-scroll {
    overflow: hidden;
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 1.5rem;
    }

    .mobile-toggle {
        display: block;
    }

    /* Animate Hamburger to X */
    .toggle-active .bar:nth-child(2) {
        opacity: 0;
    }

    .toggle-active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .toggle-active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 40px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        z-index: 1000;
        overflow-y: auto;
        gap: 2rem;
    }

    nav.nav-active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .nav-item {
        width: 100%;
        padding: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        display: block;
        padding: 0.8rem 0;
        width: 100%;
    }

    /* Mobile Dropdown styles (Accordion) */
    .dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        border: none;
        padding: 0 0 1rem 1rem;
        width: 100%;
        border-left: 1.5px solid var(--bg-gray);
        background: transparent;
        transition: none;
    }

    .dropdown-active .dropdown {
        display: block;
    }

    .nav-item:hover .dropdown {
        transform: none;
    }

    .dropdown-link {
        padding: 0.6rem 0;
    }

    header nav .btn-black {
        margin-left: 0;
        width: 100%;
        margin-top: 2rem;
    }
}