:root {
    --primary-color: #00A3E0;
    --secondary-color: #003B5C;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow: hidden;
    height: 100%;
    height: 100dvh; /* Dynamic viewport height - s'adapte aux barres mobiles */
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    height: 100dvh; /* Dynamic viewport height */
    overflow: hidden;
    position: fixed;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-image: url('../assets/images/background_enedis.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000000; /* Couleur de fond de secours, couleur noire */
    background-attachment: fixed; /* Fixe le background sur mobile */
}


/* Conteneur principal */
.main-container {
    position: relative;
    width: 100%;
    height: 100%;
    height: 100dvh; /* Dynamic viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

/* Conteneur de la vidéo */
.video-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
}

/* Vidéo principale */
.voeux-video {
    max-width: 90%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}



/* Responsive - Tablette */
@media screen and (max-width: 1024px) {
    .video-container {
        padding: 0;
    }
    
    .voeux-video {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 65vh;
    }
}

/* Responsive - Mobile */
@media screen and (max-width: 768px) {
    .video-container {
        padding: 0;
    }
    
    .voeux-video {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 60vh;
        border-radius: 6px;
    }
}

/* Très petits écrans */
@media screen and (max-width: 480px) {
    .video-container {
        padding: 0;
    }
    
    .voeux-video {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 55vh;
        border-radius: 4px;
    }
}

/* Mode paysage sur mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .video-container {
        padding: 10px;
    }
    
    .voeux-video {
        max-height: 70vh;
        max-width: 80%;
    }
}
