/* Réinitialisation des marges */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    font-family: "Literata", serif;
    height: 100%;
    overflow: hidden;
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    z-index: -1;
}

/* Styles pour la vidéo */
video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    transform: translate(-50%, -50%); /* Centre la vidéo */
}

/* Overlay pour le texte */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    margin: 50px 75px;
    z-index: 1;
    line-height: 200%;
}

.overlay h1 {
    font-family: "Literata";
    color: white;
    font-weight: 500;
    font-size: 40px;
}

.overlay span {
    font-weight: 200;
}

.cta-button {
    position: fixed;
    bottom: 120px; /* Positionné un peu plus haut */
    left: 50%;
    transform: translateX(-50%); /* Centre horizontalement */
    padding: 8px 24px; /* Taille du bouton */
    padding-top: 4px;
    background-color: transparent; /* Fond transparent */
    color: #fff; /* Couleur du texte */
    text-decoration: none;
    font-size: 18px; /* Taille du texte */
    font-weight: 100;
    border: 1px solid #fff; /* Bordure blanche */
    border-radius: 25px; /* Coins arrondis */
    display: flex; /* Utiliser Flexbox pour centrer le texte */
    align-items: center; /* Centre verticalement */
    justify-content: center; /* Centre horizontalement */
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 1;
    box-sizing: border-box; /* Inclut les bordures et le padding dans la taille totale */
}

.cta-button:hover {
    color: rgb(182, 182, 182); /* Couleur du texte au survol */
    border: 1px solid rgb(182, 182, 182);
}

/* Media Query pour les petits écrans (mobiles) */
@media (max-width: 768px) {
    .video-container {
        height: 100vh; /* S'assure que la hauteur de la vidéo occupe toute la hauteur de l'écran */
        width: 100vw; /* La largeur de la vidéo occupe toute la largeur de l'écran */
    }

    video {
        top: 50%; /* Assure que la vidéo est centrée verticalement */
        left: 50%; /* Assure que la vidéo est centrée horizontalement */
        transform: translate(-50%, -50%); /* Centre la vidéo */
    }

    .overlay{
        margin: 50px;
    }
}
