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

html, body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

/* la vidéo */
.video-background {
    position: fixed; /* Garder la vidéo fixée */
    top: 0; /* Aligner au haut de l'écran */
    left: 0; /* Aligner à gauche de l'écran */
    width: 100vw; /* Recouvre la largeur */
    height: 100vh; /* Recouvre la hauteur */
    z-index: -1; /* Derrière les autres éléments */
    overflow: hidden; /* S'assurer qu'aucune bordure n'apparaît */
    background: black; /* Sécurité : fond noir si vidéo non chargée */   
}

.video-background video {
    width: 100%; /* Vidéo s'adapte à la largeur */
    height: 100%; /* Vidéo s'adapte à la hauteur */
    object-fit: cover; /* Remplir l'écran en gardant les proportions */
    object-position: center; /* Centrer la vidéo */
}

/* Overlay pour centrer le texte */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /*background: rgba(0, 0, 0, 0.8);  Couche sombre pour contraste 
    animation: fadeIn 2s ease-in-out; */
}

.overlay h1 {
    color: #ffffff;
    font-size: 6rem;
    text-transform: lowercase;
    letter-spacing: 5px;
    text-align: center;
    margin-bottom: 30px;
    opacity: 0;
    animation: slideDown 2s forwards;
}

/* Style du lien cliquable */
.custom-cursor {
    color: #ffffff;
    font-size: 1.5rem;
    text-decoration: none;
    border: 2px solid #ffffff;
    padding: 15px 30px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    opacity: 0;
    animation: slideUp 2.5s forwards;
}

.custom-cursor:hover {
    background-color: #ffffff;
    color: #000;
    transform: scale(1.05); /* Effet de zoom au survol */
}

/* Animations  */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideDown {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .overlay h1 {
        font-size: 5rem;
    }

    .custom-cursor {
        font-size: 1.2rem;
        padding: 12px 24px;
    }
}

/* Responsive pour les tablettes */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .overlay h1 {
        font-size: 5rem;
    }

    .custom-cursor {
        font-size: 1.4rem;
        padding: 12px 28px;
    }

    .video-background {
        width: 100vw; /* Toujours 100% de la largeur */
        height: 100vh; /* Toujours 100% de la hauteur */
    }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .overlay h1 {
        font-size: 4.5rem;
    }

    .custom-cursor {
        font-size: 1.3rem;
        padding: 10px 26px;
    }

    .video-background {
        width: 100vw; /* Toujours 100% de la largeur */
        height: 100vh; /* Toujours 100% de la hauteur */
    }
}


@media (max-width: 480px) {
    .overlay h1 {
        font-size: 3rem;
    }

    .custom-cursor {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}
