/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

#loader img {
    width: 200px;
    height: 200px;
}

/* Vidéo en arrière-plan */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Overlay sombre sur la vidéo pour meilleure lisibilité */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

/* Navigation */
.navbar {
    background-color: transparent !important;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.3) !important;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: rgba(255, 255, 255, 0.6) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
}

.navbar-dark .dropdown-menu {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
}

.navbar-dark .dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.navbar-dark .dropdown-menu .dropdown-item:hover,
.navbar-dark .dropdown-menu .dropdown-item:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-icons .nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.social-icons .nav-link:hover {
    color: #fff;
}

/* Contenu centré */
.centered-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Liens audiovisuels */
.audio-links {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.audio-link {
    position: relative;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Playfair Display', serif;
}

.link-text {
    display: inline-block;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.audio-link:hover .link-text {
    color: #fff;
    letter-spacing: 12px;
    transform: translateX(10px);
}

/* Soulignement animé */
.link-underline {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.audio-link:hover .link-underline {
    width: 100%;
}

/* Effet de focus pour accessibilité */
.audio-link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 8px;
}

/* Responsive Mobile */
@media (max-width: 991px) {
    .navbar {
        padding: 1.5rem 0;
        background-color: rgba(0, 0, 0, 0.8) !important;
    }

    .navbar-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
    }

    .navbar-toggler {
        position: absolute;
        right: 1rem;
        z-index: 2;
        border: none;
        padding: 0.5rem;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        text-align: center;
        z-index: 10;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .navbar-collapse.show {
        max-height: 500px;
    }

    .navbar-nav {
        padding: 1rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 768px) {
    .audio-links {
        gap: 2.5rem;
    }

    .audio-link {
        letter-spacing: 6px;
    }

    .audio-link:hover .link-text {
        letter-spacing: 10px;
    }
}

@media (max-width: 640px) {
    .audio-links {
        gap: 2rem;
    }

    .audio-link {
        letter-spacing: 4px;
    }

    .audio-link:hover .link-text {
        letter-spacing: 8px;
        transform: translateX(5px);
    }
}

@media (max-width: 480px) {
    .audio-links {
        gap: 1.5rem;
    }

    .audio-link {
        letter-spacing: 3px;
    }

    .audio-link:hover .link-text {
        letter-spacing: 6px;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }
}

/* Animation de chargement */
body.loaded .audio-links {
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}