
/**** ACCUEIL *****/
@import url('../css/style.css');

/* Banniere */


.accueil .banniere {
    background-image: 
    linear-gradient(90deg, rgba(30, 30, 30, 0.80) 0%, rgba(30, 30, 30, 0.00) 100%),
    linear-gradient(180deg, rgba(150, 82, 122, 0.00) 0%, #96527A 100%),
    url('../img/accueil/bann_accueil.jpg') /*image de la banniere*/;
    
    background-size: 
    60% 100%, /* Taille du 1er dégradé (40% largeur, 100% hauteur) */
    100% 30%,
    cover;   /*taille de l'image*/
    
    background-position: 
    left,
    bottom,
    center; 
    background-repeat: no-repeat;     /* Empêche la répétition de l'image */
    height: auto;                     /* Ajuste la hauteur selon le contenu */
    width: auto;                      /* Ajuste la largeur selon le texte */
    color: #FFFDF2;
    width: 100%;
    position: relative;
    height: 40rem;
    overflow: hidden;
}

.titreBann {
    display: flex;
    align-items: center;
}
.titreBann img {
    height: 100px;
}

#logo_bann_phone {
    display:none
}
.accueil .textPhare {
    width: 80%;
    display: flex;
    margin: 0 auto;
    height: 80%;
    justify-content: center;
    flex-direction: column;
}


.textPhare p, .titreBann, .lieu {
    opacity: 0; /* Les éléments sont invisibles au départ */
    transform: translateX(-100%); /* Positionnement initial pour l'animation */
    transition: opacity 0.5s,    transform 0.5s; /* Transition pour le fondu et le déplacement */
}

@keyframes slideInAndFade {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.show {
    animation: slideInAndFade 0.5s ease-out forwards; /* Animation de glissement et de fondu */
}


#textXP{
    border-radius: 5px;
    border: 1px solid #FFFDF2;
    font-style:italic;
    width: 200px;
    padding: 10px;
    text-align: center;
    font-weight: 400;
    font-size: var(--texte1);
}


.banniere .lieu img {
    height:100%;
    width: auto;
}

.banniere .lieu  {
    position: relative;
    position: absolute;
    bottom:-30px;;
    height: 35%;
}

.lieu p{
    position: absolute;
    font-size: var(--texte1);
    top:-1rem;
    right:2rem;
}

.banniere #formeBann {
    width:100%;
    min-width:1100px;
    position: absolute;
    right: 0;
    bottom: -50px;
    object-fit: cover;
}


/* intro */

.intro {
    width: 60%;
    margin: 50px auto 150px auto;
    display: flex; 
    align-items: center; 
    justify-content: center;
    gap: 50px; /* Espacement entre l'image et le texte */

}

#imgMax{
    width: 350px;
    aspect-ratio: 1 / 1; 
    overflow: hidden; 
    border-radius: 50%; /* Crée un effet de cercle */
    display: flex; 
    justify-content: flex-start; 
}

#imgMax img{
    height: 100%;
    object-fit: cover; 
}

.intro h1 {
    font-size: var(--titre1);
    color: var(--gris);
    font-weight: 600;
    margin-bottom: 5px;
    margin-top: 0;
    font-style: italic;
}

.intro h2 {
    font-size: var(--titre2);
    color: var(--gris);
    font-weight: 400;
    margin: 0;
    font-style: italic;
}

.intro p {
    color: var(--gris);
    font-size: var(--texte1);
    font-style: normal;
    font-weight: 400;
    margin: 20px 0;
    line-height: 1.5;
}

.bouton {
    padding: 10px 15px 10px 20px;
    background-color: var(--vert);
    display: flex;
    border-radius: 50px;
    width: fit-content;
    margin: 20px 0 0 auto;
    align-items: center;
    flex-direction: row;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.bouton:hover {
    transform: translateX(10px);

}

.bouton a{
    font-size: var(--texte1);
    color: var(--blanc);
    text-decoration: none;
}
.bouton i {
    color: var(--blanc);
    font-size: 2em;
    margin-top: 4px;

}

.textIntro {
    height: 80%;
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* domaines */

.domaines {
    margin: 100px auto 100px auto;
    /*background-image: linear-gradient(rgba(150, 82, 122, 0.1), rgba(150, 82, 122, 0.1)); 
    background-size: 100% 50%;
    background-position: bottom;*/
    overflow: visible;
    background-repeat: no-repeat; /* Optionnel : évite la répétition */
}

.domaines .titre h3, .zonesInt h3, .monParcours .titre h3 {
    font-size: var(--titre3);
    color: var(--gris);
    font-weight: 400;
    margin-bottom: 1rem;
}

.titre {
    position: relative;
}

.titre::before {
    content: "";
    position: absolute;
    left: -72%; /* adapte selon ta section */
    top: 50%;
    transform: translateX(-10px);
    height: 5px;
    width: 70%; /* même valeur que ta section pour "revenir" au bord */
    background-color: var(--vert);
    border-radius: 50px;
  }



.cartes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 3rem auto 4em auto;
    width: 100%;
}

.carte {
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    padding: 4%;
    overflow: hidden;
    max-width: 400px;
    height: 300px;
    margin: 15px auto;
    opacity: 0; 
    flex: 0 1 250px;
    transform: translateY(100%); /* Positionnement initial pour l'animation */
    transition: opacity 0.5s, transform 0.5s; /* Transition pour le fondu et le déplacement */
}

@keyframes slideUpAndFade {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.carte.show {
    animation: slideUpAndFade 0.5s ease-out forwards; /* Animation de glissement et de fondu */
}

.carte .button {
    margin-top: 0px;
    display: flex;
    width: 220px;
    height: 40px;
    align-items: center;
    border-radius: 100px;
    padding: 0;
    transform-origin: left;
    position: relative;
    background: linear-gradient(to right, #FFFDF2 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
    cursor: pointer;
}

.carte .fleche {
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease-in-out;
}
.carte .button:hover {
    margin-top: 0px;
    background-color: #FFFDF2;
    color: var(--vert);
}

.carte a {
    padding: 0 0 0 50px;
    font-size: var(--texte1);
    text-decoration: none;
    color: var(--blanc);
    width: 100%;
    transition: color 0.1s ease-in-out; /* Ajout des transitions */
}

.carte .button:hover a {
    color: var(--vert);
}

.accueil .carte i {
    color:#333333;
    font-size: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 5px;
    border-radius: 100px;
    background-color: var(--blanc);
    transition: transform 0.3s ease-in-out; /* Ajout des transitions */

}

.carte .button:hover .fleche {
    transform: translateX(180px); /* Déplace l'élément .fleche de 150px vers la droite */
}

.accueil .carte h2 {
    font-size: var(--texte3);
    color: var(--blanc);
    margin: 0;
    max-height: 80px;
    font-weight: 600;
    flex-grow: 1;
    display: flex;
}


#botanique {
    background-image: 
    linear-gradient(180deg, rgba(0, 56, 56, 0.90) 14.1%, rgba(5, 52, 52, 0.76) 54.6%, rgba(30, 30, 30, 0.00) 100%),
    url('../img/accueil/fritilaria.JPG');
    
    background-position: 
    top,
    left;
    
    background-size: 
    100% 80%,
    cover;   /*taille de l'image*/
    
    background-repeat: no-repeat;                    
    width: auto;    
    margin-left: 0;      
}

#zonesH {
    background-image: 
    linear-gradient(180deg, rgba(0, 56, 56, 0.90) 14.1%, rgba(5, 52, 52, 0.76) 54.6%, rgba(30, 30, 30, 0.00) 100%),
    url('../img/accueil/lac.JPG');
    
    background-position: 
    top,
    top;
    
    background-size: 
    100% 80%,
    cover;   /*taille de l'image*/
    
    background-repeat: no-repeat;                   
    width: auto;
}

#suiviSc {
    background-image: 
    linear-gradient(180deg, rgba(0, 56, 56, 0.90) 14.1%, rgba(5, 52, 52, 0.76) 54.6%, rgba(30, 30, 30, 0.00) 100%),
    url('../img/accueil/gagea.jpg');
    
    background-position: 
    top,
    top;
    
    background-size: 
    100% 80%,
    cover;   /*taille de l'image*/
    
    background-repeat: no-repeat;                  
    width: auto;
    margin-right: 0;
}


/* ZONES INTERVENTION */

.zonesInt, .domaines {
    margin:150px auto;
    width: 80%;
}


.infosPratiques {
    display: flex;
    flex-direction: column;
    background-color: var(--vert);

}

.bandeau {
    display: grid;
    grid-template-columns: 75% 25%;
    margin: 3rem auto;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    grid-template-rows: 27rem; 

}

.map {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../img/accueil/Prairie_sans_GPS.jpg') ;   
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    color: var(--blanc);
    font-weight: 600;
}

.map #France {
    width: 60%;
    position: absolute;
    right: -100px;
    top : 50px
}

.france, .frontiere, .saumur {
    fill: var(--blanc);
}

.region {
    fill: var(--vert);
}

.region:hover, .pays_de_la_loire.hover {
    fill:var(--jaune);
}

.infosPratiques p {
    color: var(--blanc);
    padding-left: 2rem;
    font-size: var(--texte1);
    font-weight: 300;
}

.bandeau .mainInfo {
    font-size: var(--texte3);
    font-weight: 500;
    margin: 0;
}

.map .regions {
    list-style: none;
    font-size: var(--texte1);
    gap:25px;    
    position: absolute;
    margin: 0;
    top: 0;
    left: 0;
    text-align: right;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-direction: column;
    padding-left: 25%;
    height: 100%;
}

.regions li {
    margin: 0;
    position: relative;
    width: fit-content;
    padding: 0;
    color: var(--blanc);
    font-size: var(--texte1);
    font-weight: 400;
}

.PDLL.hover::after, .CVDL.hover::after, .IDF.hover::after, .B.hover::after, .NA.hover::after, .N.hover::after {
    width: 100%;
}

.PDLL::after, .CVDL::after, .IDF::after, .B::after, .NA::after, .N::after {
    background-color: var(--jaune);
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px; /* Ajuste la distance du trait par rapport au texte */
    width: 0;
    height: 3px;
    border-radius: 50px;
    transition: width 0.3s ease;
}

.bandeau .info {
    padding-top: 3rem;
    line-height: 1rem;
}



@media (max-width:800px) {


    .botanique .textPhare {
        width: 100%;
    }

    .titreBann img:first-child {
        display: none;
    }

    .accueil .textPhare {
        width: 94%;
        height: 70%;;
    }
    #textXP {
        font-size: 18px;
        width: 180px;
    }

    .banniere .lieu img {
        height: 180px;
        transform: translateX(-60px);
    }
    .lieu p {
        right: 100px;
        font-size: 18px;
        top: -5px;
    }

    .intro {
        flex-direction: column;
        width:94%;
    }


    #logo_bann_phone {
        display: flex;
        height: auto;
        width: 90%;
        margin-bottom: 20px;
    }


    .carte {
        height:300px;
        margin: 20px 0;
        padding:15%;
    }

    .zonesInt, .domaines {
        width: 94%;
    }

    .bandeau {
        grid-template-columns: 100%;
        grid-template-rows: 2fr 1fr;
        width: 90%;
    }

    .infosPratiques {
        display: flex;
        padding: 20px 0 40px 0;
        background-color: var(--vert);
    }

    .bandeau .info {
        padding-top: 40px;
    }
    .infosPratiques p {
        font-size: var(--texte1);
    }

    .bandeau .mainInfo {
        padding-top: 20px;
        padding-bottom: 20px;

    }
    .map .regions {
        justify-content: flex-start;
        padding-top:50px;
        align-items: flex-start;
        padding-left: 50px;
    }

    .map #France {
        width: 100%;
        top: auto;
        bottom : -80px;
    }

}

