/* Style général */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

/* Conteneur vidéo */
.video-container {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background-color: black;
}

#background-video {
    object-fit: cover;
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Conteneur du titre */
.title-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
}

.title-image {
    width: 100%; /* Largeur flexible */
    height: auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.h2 {
    color: #FFFFFF;
    font-family: "carbona-variable", sans-serif;
    font-weight: normal;
    font-style: normal;
    font-stretch: ultra-expanded;
    font-variation-settings: "MONO" 200, "slnt" 0, "wght" 800;
}

/* Bouton de contrôle du son */
#sound-toggle {
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
}

/* Bouton image (modifié) */
#image-button {
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.button-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0px 0px 30px 20px rgba(0, 0, 0, 0.7);
    transform: scale(0.005);
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 1;
}

#image-button:hover .button-image {
    box-shadow: 0px 0px 50px 30px rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
    opacity: 1;
}

#image-button:focus {
    outline: none;
}

/* Media Queries pour la responsivité */
@media (max-width: 768px) {
    .title-container {
        top: 40%;
    }

    .h2 {
        font-size: 1.5rem;
    }

    #sound-toggle {
        font-size: 12px;
        bottom: 15%;
    }

    .video-container {
        top: 60px;
        bottom: 60px;
        height: calc(100% - 120px);
    }

    #image-button {
        top: 65%;
    }

    .button-image {
        width: 30px;
        height: 30px;
    }
}

/* Media Queries pour les très petits écrans */
@media (max-width: 480px) {
    .title-container {
        top: 35%;
    }

    .h2 {
        font-size: 1.25rem;
    }

    #sound-toggle {
        font-size: 10px;
        bottom: 20%;
    }

    .video-container {
        top: 50px;
        bottom: 50px;
        height: calc(100% - 100px);
    }

    #image-button {
        top: 70%;
    }

    .button-image {
        width: 25px;
        height: 25px;
    }
}

/* Media Queries pour les orientations */
@media (orientation: landscape) {
    .video-container {
        top: 40px;
        bottom: 40px;
        height: calc(100% - 80px);
    }

    .title-container {
        top: 30%;
    }

    #sound-toggle {
        bottom: 5%;
    }

    #image-button {
        left: 70%;
    }

    .button-image {
        width: 35px;
        height: 35px;
    }
}
