body {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    background-color: #000000;
}

/* Navbar principale */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 128px;
    background: linear-gradient(to bottom, #000000 0%, #00000000 100%);
    color: white;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    box-sizing: border-box;
}

.navbar-left h1 {
    margin: 0;
    font-size: 24px;
}

.baseline {
    margin: 0;
    font-size: 16px;
    font-weight: lighter;
}

/* Section droite de la navbar */
.navbar-right {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

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

.nav-links li {
    margin-right: 20px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 16px;
}

.contact-btn {
    background-color: white;
    color: black;
    padding: 16px 24px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-btn:hover {
    background-color: #f0f0f0;
}

/* Menu hamburger pour mobile */
.burger-menu {
    display: none;
    cursor: pointer;
}

.burger-icon {
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 6px 0;
    transition: 0.3s;
}

/* Menu mobile caché par défaut */
.mobile-menu {
    display: none;
    background-color: #000;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 5;
}

.mobile-nav-links {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin-top: 100px; /* Décale les liens pour ne pas qu'ils touchent le haut */
}

.mobile-nav-links li {
    margin: 20px 0;
}

.mobile-nav-links a {
    text-decoration: none;
    color: white;
    font-size: 20px;
}

/* Responsive */
@media (max-width: 767px) {
    /* Cacher les liens de la navbar principale en mobile */
    .navbar-right {
        display: none;
    }

    .navbar {
        padding: 16px 16px;
    }

    /* Afficher le burger menu */
    .burger-menu {
        display: block;
    }

    /* Menu mobile visible quand le burger est activé */
    .mobile-menu.active {
        display: block;
    }

    .burger-icon {
        width: 30px;
        height: 3px;
        background-color: white;
        margin: 6px 0;
    }

    /* Transformation de l'icône burger en croix quand le menu est ouvert */
    .burger-menu.active .burger-icon {
        transform: rotate(45deg);
        margin-bottom: -6px;
    }

    .burger-menu.active .burger-icon::after {
        content: '';
        position: absolute;
        width: 30px;
        height: 3px;
        background-color: white;
        top: 0;
        left: 0;
        transform: rotate(90deg);
    }
}

/* Pour les grands écrans : assure que tout reste visible */
@media (min-width: 768px) {
    .navbar-right {
        display: flex; /* Affiche les liens normalement sur les écrans de bureau */
    }

    .burger-menu {
        display: none; /* Cacher le burger menu sur les grands écrans */
    }

    .mobile-menu {
        display: none; /* Cacher le menu mobile sur les grands écrans */
    }
}


.hero-header {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 100%);
    z-index: 1;
}

.text-overlay {
    color: white;
    text-align: center;
    margin-bottom: 64px;
    z-index: 2;
}

.text-overlay h1 {
    font-size: 64px;
    font-weight: 200;
    margin: 0;
}

.mouse {
    width: 24px;
    height: 48px;
    border-radius: 10px;
    border: 2px solid #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 64px;
    z-index: 2;
}

.mouse .roll {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    margin-left: -2px;
    height: 8px;
    border-radius: 4px;
    background: #fff;
    animation: mouseScroll 0.8s cubic-bezier(.7, 0, .3, 1) infinite alternate;
    z-index: 2;
}

.mouse .rollshadow {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    margin-left: -2px;
    height: 8px;
    background: #aaa;
    border-radius: 4px;
    animation: mouseScroll 0.8s cubic-bezier(.7, 0, .3, 1) infinite alternate;
    animation-delay: 0.08s;
    z-index: 1;
}

@keyframes mouseScroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(14px);
    }
}

.vertical-content {
    padding: 128px 128px 128px 128px;
}

@media (max-width: 767px) {
.vertical-content {
    padding: 128px 24px 128px 24px;
}
}

@media (min-width: 768px) and (max-width: 1400px) {
    .vertical-content {
        padding: 128px 128px 128px 128px;
    }
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}

.section-header h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}

.baseline {
    font-size: 18px;
    font-weight: 200;
    width: 550px;
    color: white;
}

.video-carousel {
    display: flex;
    gap: 48px;
    padding-bottom: 16px;
    margin-top: 40px;
    margin-right: -128px;
}

.video-carousel {
    overflow-x: scroll; /* Permet le défilement horizontal */
    scrollbar-width: none; /* Firefox : Cache la scrollbar */
}

.video-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari : Cache la scrollbar */
}

.video-item {
    position: relative;
}

.horizontal-thumbnail {
    width: 800px;
    height: auto;
    border-radius: 16px;
}

@media (max-width: 767px) {
    .horizontal-thumbnail {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }
}

@media (min-width: 768px) and (max-width: 1400px) {
    .horizontal-thumbnail {
        width: 640px;
        height: auto;
        border-radius: 16px;
    }


}

.vertical-thumbnail {
    width: 375px;
    height: 600px;
    border-radius: 16px;
}

.carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 30px;
}

.carousel-btn {
    background: none;
    border: 2px solid white;
    color: white;
    padding: 16px 16px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.carousel-btn:hover {
    background-color: #000000;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.popup-content {
    position: relative;
    width: 80%;
    max-width: 800px;
    height: 450px;
    background: #000000;
    border-radius: 8px;
}

#popup-video {
    width: 100%;
    height: 100%;
}

.close-popup-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #000;
    font-size: 30px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.close-popup-btn:hover {
    opacity: 0.7;
}

.about-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: #000; /* Conserve le fond noir */
    color: white;
    padding: 80px 128px;
    gap: 50px;
}

.about-text {
    max-width: 50%;
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
}

.about-text h2 {
    font-size: 48px;
    margin: 0 0 20px 0; /* Supprime la marge au-dessus, garde une marge en bas */
    line-height: 1.2; /* Ajuste l'espacement vertical des lignes */
}

.about-text p {
    font-size: 18px;
    margin-bottom: 16px;
}

.about-image img {
    height: 500px;
    width: 400px;
    border-radius: 12px; /* Arrondi léger des coins */
    object-fit: cover;
}

@media (max-width: 767px) {
    .about-section {
        flex-direction: column;
        align-items: center;
        padding: 80px 16px;
        gap: 30px;
    }

    .about-text {
        max-width: 100%;
    }

    .about-image img {
        width: 100%;
        height: auto;
    }
}

@media (min-width: 768px) and (max-width: 1400px) {
    .about-section {
        flex-direction: column;
        align-items: center;
        padding: 80px 128px;
        gap: 30px;
    }

    .about-text {
        max-width: 100%;
    }

    .about-image img {
        width: 100%;
        height: auto;
    }
}


.contact-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Alignement en haut */
    background-color: #000; /* Fond noir */
    color: white;
    padding: 128px 128px;
    gap: 50px;
}

.contact-text {
    max-width: 40%;
    font-family: 'DM Sans', sans-serif;
}

.contact-text h2 {
    font-size: 48px;
    margin: 0 0 20px 0; /* Supprime la marge au-dessus, garde une marge en bas */
    line-height: 1.2; /* Ajuste l'espacement vertical des lignes */
}

.contact-text p {
    font-size: 18px;
    line-height: 1.6;
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    background: none;
    border: 1px solid #aaa;
    color: white;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: white;
}

.contact-form textarea {
    resize: none;
}

@media (max-width: 767px) {
    .contact-section {
        flex-direction: column;
        align-items: center;
        padding: 80px 16px;
        gap: 30px;
    }

    .contact-text {
        max-width: 100%;
    }

    .contact-form {
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1400px) {
    .contact-section {
        flex-direction: column;
        align-items: center;
        padding: 80px 128px;
        gap: 30px;
    }

    .contact-text {
        max-width: 100%;
    }

    .contact-form {
        width: 80%;
    }
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 128px;
    background-color: #000; /* Fond noir */
    color: #fff; /* Texte blanc */
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    flex-wrap: wrap; /* Permet aux éléments de s'adapter à plusieurs lignes */
}

.footer-left,
.footer-center,
.footer-right {
    flex: 1; /* Assure que chaque section prend une largeur égale */
}

.footer-left h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.footer-left p {
    margin: 5px 0 0 0;
    font-size: 14px;
    color: #aaa;
}

.footer-center ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.footer-center a {
    text-decoration: none;
    color: #ccc;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-center a:hover {
    color: #fff;
}

.footer-right p {
    margin: 0;
    color: #aaa;
    font-size: 14px;
}

/* Règles spécifiques pour les écrans mobiles */
@media (max-width: 767px) {
    .footer {
        padding: 20px 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        flex: none;
        width: 100%;
        margin-bottom: 20px;
    }

    .footer-center ul {
        flex-direction: column;
    }

    .footer-center a {
        font-size: 16px; 
    }

    .footer-right p {
        font-size: 12px
    }
}

@media (min-width: 768px) and (max-width: 1400px) {
    .footer {
        padding: 30px 128px;
    }

    .footer-center ul {
        gap: 15px;
    }

    .footer-right p {
        font-size: 13px; /* Ajuste la taille de la police */
    }
}
