/*------------------------------ 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-container {
    position: relative;
    background-color: #505050;
    display: flex;
    padding: 20px;
    max-width: 80%; /* Largeur maximale du conteneur */
    margin: 0 auto; /* Centrer le conteneur sur la page */
    top: 100px;
}

.text-content {
    width: 500px;
    max-width: 80%; /* Ajuste la largeur maximale au besoin */
    text-align: center; /* Centre le texte horizontalement */
    color: white;
}

/* Style pour le titre du texte */
.text-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Style pour le paragraphe de texte */
.text-content p {
    font-size: 16px;
}

.additional-text {
    text-align: center;
    margin-top: 20px;
}

/* Style pour le titre du texte supplémentaire */
.additional-text h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/*css images*/

/* Slideshow container */
.slideshow-container {
  max-width: 50%;
  position: relative;
  margin: auto;
  float: left;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Number text (1/3 etc) */
.numbertext {
  color: white;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/*---------------------------------- TEXTE EN DESSOUS DU SLIDER ---------------------------------*/
.slider-text {
    width: 80%; /* Ajuste la largeur du texte selon tes préférences */
    text-align: center; /* Pour centrer le texte horizontalement */
    padding: 20px; /* Espacement interne autour du texte */
    margin-left: 8.7%; /* Ajoute de la marge à gauche pour centrer le texte */
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent pour le texte */
}

.slider-text h2 {
    font-size: 36px; /* Taille du titre */
    color: white; /* Couleur du texte du titre */
    text-align: left;
    margin-left: 20px;
    text-decoration: underline; /* Souligne le texte */
}

.slider-text h3 {
    font-size: 36px; /* Taille du titre */
    color: white; /* Couleur du texte du titre */
    text-align: left;
    margin-left: 20px;
    text-decoration: underline; /* Souligne le texte */
}

.slider-text p {
    font-size: 24px; /* Taille du texte */
    color: white; /* Couleur du texte du paragraphe */
    text-align: left;
    margin-left: 20px;
}
/*-----------------------------------------------------------------------------------------------*/


/*---------------------------------- 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;
}
/*---------------------------------------------------------------------------*/

/*------------------------- 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;
    }

    .slideshow-container {
        position: absolute;
        max-width: 80%;
        max-height: 80%;
        margin-left: 15px;
    }

    .text-content {
        margin-top: 200px;
        margin-left: 30px;
    }

    .text-content h2 {
        font-size: 24px;
    }

    .text-content p {
        font-size: 16px;
    }

    .slider-text {
        margin-top: 50px;
        margin-left: 20px;
    }

    .slider-text h2,
    .slider-text h3 {
        font-size: 24px;
    }

    .slider-text p {
        font-size: 16px;
    }

    /*--------------------------------------- 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;
    }
    /*----------------------------------------------------------------------------------*/
}