@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400&family=MuseoModerno:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Allura&family=Cookie&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

/* Style pour la navigation */
.nav-link {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.1em;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #888;
}

/* Logo réduit lors du défilement */
.header.small .logo {
    width: 150px; /* Taille réduite du logo */
    transition: width 0.3s ease-in-out;
}
/* Image de fond  */
.background-image {
    width: 100%;
    height: 500px;
    margin-bottom: 100px;
    background-image: url('../images/SalleE.jpg');
    filter: contrast(60%);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    z-index: -1; /* Pour s'assurer que l'image est derrière le contenu principal */
    background-position: center;
}
/* Overlay blanc translucide sur l'image de fond */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.215); /* Couleur blanche avec opacité */
    z-index: 0; /* Pour placer l'overlay au-dessus de l'image de fond mais derrière le reste du contenu */
}
/* Styles supplémentaires */
.container-footer {
    background-color: rgb(116, 116, 116);
    padding-top: 20px;
    padding-bottom: 20px;
}
.bloc_contact {
    background-color: rgb(20, 20, 20);
    height: auto;
    padding-bottom: 100px; 
}

#cercle1 {
    width: 400px;
    height: 400px;
    border-radius: 400px;
    background: rgb(129, 131, 129,0.5);
    position: relative;
    left: 180px;
    top: 150px;

}
#cercle2 {
    width: 150px;
    height: 150px;
    border-radius: 150px;
    background: rgb(129, 131, 129,0.5);
    position: relative;
    left: 600px;
    bottom: 160px;
}
#cercle3 {
    width: 80px;
    height: 80px;
    border-radius: 80px;
    background: rgb(129, 131, 129,0.5);
    position: relative;
    left: 700px;
    bottom: 150px;
    z-index: 1;
}
.title{
    font-family: "Roboto Condensed", sans-serif;
    position: absolute;
    color: white;
    top:670px;
    left: 250px;
    z-index: +1;
    font-weight: bolder;
    font-size: 5em;
}
.ville{
    position: absolute;
    color: white;
    top: 770px;
    left: 250px;
    z-index: +1;
    font-weight: lighter;
    width: 550px;
    font-size: 1.5em;
}
.adress{
    color: white;
    font-family: "Roboto Condensed", sans-serif;
    position: absolute;
    color: white;
    top: 900px;
    left: 250px;
    z-index: +1;
    width: 280px;
}
.text{
    color: white;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 1.2em;
    position: absolute;
    color: white;
    top:780px;
    left: 990px;
    z-index: +1;
    width: 400px;
}
/* Contenu du formulaire */
.formulaire-container {
    position: relative;
    height: 700px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 50px; /* Pour espacer correctement du contenu précédent */
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 80%;
    padding: 20px;
    text-align: left;
    z-index: 1; /* Pour s'assurer que le texte est au-dessus de l'image */
    margin: auto;
    position: sticky;
}

/* Image en arrière-plan */
.imageformulaire {
    position: absolute;
    left: 0;
    width: 100%;
    height: 120%;
    object-fit: cover; /* Pour s'assurer que l'image couvre tout le conteneur */
    -webkit-filter: contrast(30%); 
     filter: contrast(30%);
    z-index: -1; /* Pour que le contenu soit visible au-dessus de l'image */

}
.titleformulaire {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: lighter;
    color: white;
    font-size: 4em;
    margin-bottom: 20px;
    width: 500px;
    margin: auto;
    padding-bottom: 50px;
    text-align: center;
}

.textformulaire {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: lighter;
    color: white;
    font-size: 1.5em;
    margin-bottom: 40px;
    width: 500px;
  margin: auto;
  text-align: center;
}
.formulaire {
    background-color: #ffffff6a;
    border-radius: 40px;
    padding: 30px;
    width: 500px;
    max-width: 100%; /* Pour que le formulaire s'adapte bien sur les petits écrans */
    z-index: 1; /* Pour que le formulaire soit au-dessus de l'image */
    margin: 30px 0px 30px 80px;
}
/* Style des groupes de champs */
.form-group {
    margin-bottom: 15px;
}
/* Style des labels */
.form-group label {
    display: block;
    font-family: "Roboto Condensed", sans-serif;
    margin-bottom: 5px;
}
/* Style des champs de saisie */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
/* Style du bouton d'envoi */
.submit-button {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background-color: #555;
    color: white;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}
.submit-button:hover {
    background-color: #333;
}

/* Styles d'animation de fondu */
.fade-in {
    opacity: 0;
    transition: opacity 2s ease-in-out;
}
.fade-in.show {
    opacity: 1;
}
.map-and-info {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(20, 20, 20);
    padding: 50px 50px 30px 50px;
    margin-bottom: 150px;
}
.map-container {
    border: 5px solid #888;
    border-radius: 15px;
    overflow: hidden;
    margin-right: 150px;
}
.info-container {
    display: flex;
    flex-direction: column;
    gap: 35px;
}
.info-box {
    background-color: #555;
    border-radius: 15px;
    padding: 20px;
    color: #fff;
    width: 250px;
    text-align: center;
    transition: transform 0.3s ease;
}
.info-box:hover {
    transform: scale(1.05);
}
.info-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.icon {
    font-size: 2em;
    margin-bottom: 10px;
}
.contact-button {
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.contact-button:hover {
    background-color: #222;
}
.discover-button:hover {
    background-color: #555;
}
.discover-section{
 padding: 50px;
 background-color: rgb(129, 131, 129);
 margin-bottom: 50px;
}
.text_consent{
    font-size: 0.8em;
}
#consentement{
    width: 20%;
    margin-right: 10px;
}

/* Styles pour la section des conseils santé */
.conseils-sante-section {
    text-align: center;
    margin-top: 110px;
}
/* Carte des articles */
.article-card {
    position: relative;
    height: 280px;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    max-width: 300px;  /* Réduit la largeur maximale de la carte */
    max-height: 300px; /* Réduit la hauteur maximale de la carte */
    margin: auto;      /* Centre la carte dans la colonne */
}
.cards-container {
    display: flex;
    justify-content: center; /* Aligne les cartes au centre */
    align-items: center;
    gap: 20px;               /* Espacement entre les cartes */
    flex-wrap: wrap;         /* Autorise le retour à la ligne si nécessaire */
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.article-card:hover .card-img-top {
    transform: scale(1.05); /* Un léger zoom sur hover pour un effet sympa */
}
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: end;
    opacity: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    transition: opacity 0.3s ease-in-out;
    z-index: 2; /* S'assurer que la loupe est au-dessus */
}
.article-card:hover .card-overlay {
    opacity: 1;
}
.card-title-overlay {
    position: absolute;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    z-index: 3; /* S'assurer que le titre est visible au-dessus de l'image */
}
.card-title {
    font-size: 1.3em;
    color: #333;
    margin: 0;
    font-weight: bold;
}

.fa-magnifying-glass-plus {
    margin-bottom: 80px;
    font-size: 2.5em;
    color: #ffffffb2;
}
.card-link {
    text-decoration: none; /* Enlève le soulignement du lien */
    color: inherit; /* Conserve la couleur originale */
}
.card-link:hover .article-card {
    transform: scale(1.02);
    transition: transform 0.3s ease-in-out;
}
.titleSante {
    font-family: "Roboto Condensed", sans-serif;
    color: rgb(255, 255, 255);
    text-align: center;
    font-weight: lighter;
    font-size: 3em;
    margin: 70px 0px 70px 0px;
}

.no-articles-text {
    font-size: 1.2em;
    color: #fff;
    margin-top: 40px;
}


@media (max-width: 1400px) {
    .card-title {
        font-size: 1.2em;
    }

    .card-title-overlay {
        bottom: 140px;
        width: 80%;
    }
}


/* Media Queries */

@media (max-width: 1450px) {
#cercle1{
    left: 40px;
    top: 110px;
}
#cercle2{
    left: 480px;
}
#cercle3{
    left: 600px;
}
.text{
    left: 800px;
}
.title{
    left: 170px;
}
.ville{
    left: 170px;
}
.adress{
 left: 170px;
}
.formulaire-container{
max-width: 90%;
}
.formulaire{
    margin: 0px 0px 0px 50px;
}
}
@media (max-width: 1220px) {
    #cercle1{
  width: 300px;
  height: 300px;
    }
#cercle2{
    width: 120px;
    height: 120px;
    bottom: 120px;
    left: 380px;
        }
    #cercle3{
    left: 480px; 
    bottom: 120px;
        }
    .text{
        left: 730px;
        width: 300px;
        font-size: 1em;
    }
    .title{
        font-size: 4em;
        left: 120px;
    }
    .ville{
        font-size: 1.2em;
         top: 750px;
         left: 120px;
    }
    .adress{
        left: 120px;
        font-size: 1.2em;
        width: 150px;
        top: 830px;
    }
}
@media (max-width: 1050px) {
    .text{ 
    left: 600px;
    width: 280px;
}
.titleformulaire{
    width: 400px;
    font-size: 3em;
}
.textformulaire{
    width: 400px;
    font-size: 1.3em;
}
   
}
@media (max-width: 885px) {
    .text {
        position: relative; /* Change la position de absolue à relative */
        text-align: center; /* Centre le texte sous les autres éléments */
        top: 550px; /* Supprime les valeurs précédentes */
        left: auto; /* Supprime les valeurs précédentes */
        width: 70%; /* Réduit la largeur pour qu'il s'adapte mieux aux petits écrans */
        margin: auto;
    }
    .background-image{
        margin-bottom: 0px;
        height: 300px; /* Réduire la hauteur de l'image sur les petits écrans */
    }
    .title{
        top: 450px;
        font-size: 3em;
    }
    .ville{
        font-size: 1em;
        top: 510px;
    }
    .adress{
        top: 580px;
    }
    
.map-and-info{
    margin-top: 80px;
}
.map-container{
    margin-right: 50px;
}
.formulaire-container{
    flex-direction: column;
}
.titleformulaire{
    width: 600px;
    font-size: 2.5em;
    padding-bottom: 0px;
}
.textformulaire{
    margin-bottom: 10px;
}
.form-group input{
    padding: 5px;
}
.form-group label{
    margin-bottom: 0px;
}
.submit-button{
    margin-top: 0px;
}
.form-group textarea{
    height: 60px;
}
.formulaire{
    margin: 0px;
}
}


@media (max-width: 600px) {
    .title{
        left: 70px;
        font-size: 2.5em;
    }
    .ville{
        left: 70px;
        width: 300px;
    }
    .adress{
        left: 70px;
    }
    .text{
        top: 450px;
    }
    #cercle1{
        width: 250px;
        height: 250px;
        left: 20px;
        top: 10px;
      }
    #cercle2{
        width: 90px;
        height: 90px;
        bottom: 190px;
        left: 290px;
        bottom: 130px;
          }
    #cercle3{
        width: 50px;
        height: 50px;
        left: 350px;
        bottom: 100px;
          }
          .map-and-info{
            display: flex;
            flex-direction:column-reverse;
            padding: 0px;

          }
          .info-container{
            display: flex;
            flex-direction: row;
            margin-top: 50px;
          }
          .map-container{
            width: 80%;
            margin: auto;
          }
          .info-box{
            width: 170px;
            padding: 15px;
          }
          .info-container{
            gap: 15px;
            margin-bottom: 50px;
          }
          .icon{
            font-size: 1.5em;
          }
          .info-content>h3{
            font-size: 1.2em;
          }
          .info-content>h3{
            font-size: 1em;
          }
          .titleformulaire{
            width: 350px;
            font-size: 1.5em;
        }
        .textformulaire{
            width: 300px;
            font-size: 1em;
        }

      }
      @media (max-width: 370px) {
        .ville{
            width: 250px;
            left: 40px;
        }
        .title{
            left: 40px;
            font-size:2.2em;
        }
        #cercle1{
        width: 200px;
        height: 200px;
        left: 20px;
        top: -30px;
        }
    #cercle2{
        width: 50px;
        height: 50px;
        left: 230px;
        bottom: 150px;
        }
    #cercle3{
        width: 30px;
        height: 30px;
        left: 260px;
        bottom: 130px;
        }
    .text{
        top:380px;
        width: 80%;
    }
    .info-box{
        width: 140px;
        padding: 5px;
            font-size: 0.9em;
    }
    .imageformulaire{
height: 125%;
    }
    .bloc_contact{
        padding-bottom: 130px;
    }
    .card-container{
        width: 70%;
        height: 200px;
        margin: auto;
    }
    .card-title{
        font-size: 1em;
    }
    .text-service{
        font-size: 1.2em !important;
    }
    .discover-button{
        font-size: 1em !important;
    }
      }