/*------------------------------ HEADER -----------------------------------*/
.header {
    background-color: white;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    position: relative;
    top: 0;
    transition: top 0.3s;
    z-index: 1000;
}

.titre a {
    text-decoration: none; /* Retire le soulignement des liens */
    color: black; /* Couleur du texte par défaut */
    transition: color 0.3s ease; /* Ajoute une transition pour une animation fluide */
}

.titre a:hover {
    color: red; /* Change la couleur du texte en rouge lorsqu'il est survolé */
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('site_sae/img/canyon-gorge.jpeg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%; 
    color: white; 
    scroll-behavior: smooth;
}

.logo img {
    width: 50px;
    height: 50px;
}

.titre {
    color: black;
    font-size: 24px;
    font-weight: bold;
    margin-left: 20px;
}

/*---- menu tel -----*/
.menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.btn-line {
    width: 30px;
    height: 3px;
    background: #333;
    margin: 4px;
}

.menu-tel {
    display: none;
    justify-content: center;
    background: #333;
}

.menu-tel ul {
    list-style: none;
    display: flex;
    padding: 0;
}

.menu-tel ul li {
    margin: 0 20px;
}

.menu-tel ul li a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

.menu-tel ul li a:hover {
    color: red;
}

/*-----------------------*/
.menu ul {
    margin-left: 150px;
    align-items: center;
    list-style-type: none;
    display: flex;
}

.menu ul li {
    margin-right: 150px;
}

.menu ul li a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 18px;
    transition: color 0.3s ease;
}

.menu ul li a:hover {
    color: red; 
}

/*---------------------------------- RECHERCHE ----------------------------*/
.search-bar {
    display: flex;
    align-items: center;
    margin-left: 19px;
}

.search-bar input[type="text"] {
    padding: 10px 20px;
    font-size: 16px;
    border: 1px solid #505050;
    width: 150px; 
    margin-right: 5px;
}

.search-bar input[type="submit"] {
    padding: 10px 20px; /* Ajustez le padding pour correspondre à celui du champ de texte */
    font-size: 16px;
    background-color: #505050;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar input[type="submit"]:hover {
    background-color: red;
}
/*---------------------------------------------------------------------------*/


.content {
    padding: 15% 0;
    text-align: center;
    display: flex;
    flex-direction: column; /* Afficher les éléments en colonne */
    align-items: center; /* Centrer les éléments horizontalement */
}

.blurred-image img {
    width: 100%; /* Reduit la largeur de l'image pour s'ajuster à la div .blurred-image */
    height: auto; /* Permet à la hauteur de l'image de s'ajuster automatiquement tout en conservant les proportions */
    object-fit: cover; /* Couvre la totalité de la div .blurred-image tout en conservant les proportions de l'image */
    object-position: bottom; /* Aligne le bas de l'image avec le bas de la div */
}

.image-container img {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.overlay-text {
    position: relative;
    bottom: 100px;
    right: 200px;
    color: white;
    font-size: 36px;
    font-weight: bold;
}

.text-box {
    margin-top: 200px; /* Espacement entre blurred-image et text-box */
    color: white;
    padding: 150px;
    text-align: center;
    background-color: #505050; /* Couleur de fond avec une opacité (0.7) */
}

h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
}

p {
    color: white;
    font-size: 32px;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    word-wrap: break-word ;
}

/*---------------------------------- FOOTER ---------------------------------*/
.footer {
    background-color: white;
    color: white;
    text-align: center;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.social-icons {
    display: flex; /* Utilise un conteneur flex pour les éléments .social-icons */
    justify-content: center; /* Centre les éléments horizontalement */
    align-items: center; /* Centre les éléments verticalement */
}

.social-icons img {
    width: 40px; /* ou la largeur désirée pour vos images */
    height: 40px; /* ou la hauteur désirée pour vos images */
    margin-right: 20px; /* Espace entre les images (ajustez selon vos préférences) */
}

.legal-info a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    text-decoration: underline;
}
/*---------------------------------------------------------------------------*/

/*--------------- VIDEO ------------------*/
.video-container {
    position: relative;
    width: 100%;
    height: 600px; /* Ajustez la hauteur de la vidéo selon vos besoins */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 100px;
    margin-top: 250px;
}

#video {
    width: 100%;
    height: 100%;
}
/*-------------------------------------------*/

.text-video p{
    color: white;
    font-size: 24px;
    padding: 50px;
    text-align: center; /* Centre le texte horizontalement */
    background-color: rgba(80, 80, 80, 0.5); /* Couleur de fond avec une opacité (0.7) */
    margin-bottom: 0px;
}

/*------------------------- LANGUE -----------------------*/
.flag-icon-fr {
    background-image: url('site_sae/img/fr.png');
}

.flag-icon-en {
    background-image: url('site_sae/img/en.png');
}

.flag-icon {
    display: inline-block;
    width: 20px; /* Ajustez la largeur selon la taille de votre icône de drapeau */
    height: 20px; /* Ajustez la hauteur selon la taille de votre icône de drapeau */
    background-size: cover;
    margin-right: 5px; /* Espacement entre l'icône de drapeau et le texte */
}
/*-----------------------------------------------------------*/



















/*--------------------------------- MEDIA QUERIES --------------------------*/
@media (max-width: 400px) {
    .header {
        padding: 15px;
    }

    .logo img {
        width: 30px;
        height: 30px;
    }

    .titre {
        font-size: 15px;
        margin-left: 10px;
    }

    /* -------------- MENU -----------------*/
    .menu {
        display: none; /* Masque le menu principal */
    }

    .menu-btn {
        display: flex;
        position: absolute;
        flex-direction: column;
        cursor: pointer;
        width: 30px;
        height: 30px;
        top: 15px;
        right: 15px;
    }

    .menu-tel ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        text-align: center;
        position: absolute;
        top: 15px;
        background: #333;
    }

    .menu-tel ul.active {
        display: flex;
    }
    /*-----------------------------------------*/

    .search-bar input[type="text"] {
        position: absolute;
        font-size: 8px;
        width: 50px;
        top: 15px;
        right: 50px;
    }

    .search-bar input[type="submit"] {
        display: none;
    }

    .text-video p {
        font-size: 18px;
        padding: 30px;
        margin-top: 870px;
        margin-bottom: 0px;
    }

    .overlay-text {
        position: absolute;
        top: 280px;
        font-size: 16px;
        text-align: left; /* Aligne le texte vers la gauche */
        width: 100%; /* Fait en sorte que le texte occupe toute la largeur disponible */
        left: 10px;
    }

    .text-box {
        position: absolute;
        top: 200px;
        width: 100px;
        height: 100px;
    }
    .text-box h1{
        position: absolute;
        font-size: 24px;
        top: 10px;
        left: 30px;
    }

    .text-box p{
        position: absolute;
        font-size: 16px;
        left: 10px;
        right: 10px;
        top: 100px;
    }

    .video-container {
        position: absolute;
        top: 450px;
    }

    /*----------------- FOOTER --------------*/
    .social-icons img {
        width: 20px; /* ou la largeur désirée pour vos images */
        height: 20px; /* ou la hauteur désirée pour vos images */
        margin-right: 10px; /* Espace entre les images (ajustez selon vos préférences) */
        margin-left: 10px;
    }

    .legal-info a {
        font-size: 10px;
    }

    .language-switch a {
        font-size: 10px;
    }

    .language-switch .flag-icon {
        display: none;
    }
}