/* 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;
    display: flex;
    flex-direction: column;
}

/* 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;
}

/* Navigation */
.navbar {
    background-color: #000 !important;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: lowercase;
}

.navbar-dark .navbar-nav .nav-link {
    color: #fff;
    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: #ff9900;
}

.navbar-dark .dropdown-menu {
    background-color: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
}

.navbar-dark .dropdown-menu .dropdown-item {
    color: #fff;
    transition: all 0.3s ease;
}

.navbar-dark .dropdown-menu .dropdown-item:hover,
.navbar-dark .dropdown-menu .dropdown-item:focus,
.navbar-dark .dropdown-menu .dropdown-item.active {
    color: #ff9900;
    background-color: rgba(255, 153, 0, 0.1);
}

.social-icons .nav-link {
    color: #fff;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.social-icons .nav-link:hover {
    color: #ff9900;
}

/* Section Introduction */
.intro {
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(20, 20, 20, 0.95));
    text-align: center;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: bold;
    letter-spacing: 6px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-family: 'Playfair Display', serif;
}

.intro-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #ccc;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Galerie de projets */
.video-gallery {
    padding: 4rem 0;
    flex: 1;
}

.project-card {
    position: relative;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(255, 153, 0, 0.2);
    border-color: rgba(255, 153, 0, 0.3);
}

/* Image wrapper */
.project-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 140%;
    overflow: hidden;
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image {
    transform: scale(1.08);
}

/* Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-info {
    transform: translateY(0);
}

.project-role {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 153, 0, 0.2);
    border: 1px solid #ff9900;
    border-radius: 20px;
    color: #ff9900;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Contenu du projet */
.project-content {
    padding: 1.5rem;
    background: #000;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
    color: #fff;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: #ff9900;
}

/* Footer */
.footer {
    padding: 3rem 0 0;
    background-color: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.footer .text-uppercase {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: #999;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer .text-light {
    color: #ccc !important;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer .text-light:hover {
    color: #ff9900 !important;
    text-decoration: none;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.3) !important;
}

/* Responsive Mobile */
@media (max-width: 991px) {
    .navbar {
        padding: 1.5rem 0;
    }

    .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.98);
        backdrop-filter: blur(10px);
        text-align: center;
        z-index: 10;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        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;
    }

    .dropdown-menu {
        background-color: rgba(0, 0, 0, 0.95) !important;
    }
}

@media (max-width: 768px) {
    .intro {
        padding: 3rem 0 2rem;
    }

    .page-title {
        letter-spacing: 4px;
    }

    .video-gallery {
        padding: 3rem 0;
    }

    .project-image-wrapper {
        padding-top: 130%;
    }

    .project-overlay {
        padding: 1.5rem;
    }

    .project-content {
        padding: 1.2rem;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .footer {
        padding: 2rem 0 0;
    }

    .footer .col-lg-6 {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 640px) {
    .page-title {
        letter-spacing: 3px;
    }

    .intro-subtitle {
        font-size: 1rem;
    }

    .project-card {
        border-radius: 12px;
    }

    .project-image-wrapper {
        padding-top: 135%;
    }

    .project-role {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .intro {
        padding: 2rem 0 1.5rem;
    }

    .page-title {
        letter-spacing: 2px;
    }

    .video-gallery {
        padding: 2rem 0;
    }

    .project-overlay {
        padding: 1rem;
    }

    .project-content {
        padding: 1rem;
    }

    .project-title {
        font-size: 1rem;
    }

    .footer {
        padding: 1.5rem 0 0;
    }

    .footer .text-uppercase {
        font-size: 1rem;
    }
}

/* Animation au chargement */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeInUp 0.6s ease backwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }