/* Ethan COLLIN 30/08/2024 Alternants 🥸 */
/* Dernière modif 11/12/2024 par Ethan COLLIN Alternants 😎 */

body{
    user-select: none; /* permet de ne pas sélectionner le texte */
}


/* -----------------------------------------Header----------------------------------------- */

header {
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    background-color: #F7F7F7;
}



.titre-header {
    color: black;
    text-align: center;
    line-height: 60px;
    font-size: 3rem;

}

.couleur-titre {
    color: #D10667;
}

.div-recherche{
    display: flex;
    align-items: center;
    flex-direction: column;
    max-width: 1440px;
    margin: 0 auto;
}



.select-departement {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: #D10667;
    font-family: 'Lexend Deca', sans-serif !important;
    border-radius: 12px !important;
    padding: 15px 90px 15px 10px;
    font-size: 1.5rem;
}


.select-departement  option {
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    outline: none;
    color: black;
}


.select-departement  option:checked {
    background-color: #D10667;
    color: white;
}





/* -----------------------------------------Fin du header----------------------------------------- */


/*----------------------------------------- Main----------------------------------------- */

.main-partenaire {
    margin: 0 auto;
    padding-top: 30px;
    display: grid;
    grid-template-columns: auto auto auto auto;
    grid-gap: 40px;
    grid-auto-rows: minmax(100px, auto);
    justify-content: center;
    padding-top: 50px;
    padding-bottom: 30px;
}

.map-container{
    position: -webkit-sticky; /* pour Safari */
  position: sticky;
  top: 0px;
  height: 100vh; 
  overflow-y: clip; 
  
  
}


#map {
    display: flex;
    background-color: white;
    border-radius: 15px;
    z-index: 2;
    border-radius: 20px;
    width: 600px;
    height: 1065px;
    flex-wrap: wrap;
    max-height: 953px;
    /* margin-left: 50px; */

}



/*----------------------------------------- bloc partenaire-------------------------------------- */




.container-partenaire {
    margin-bottom: 20px;
    max-width: 1200px;
    margin: 0 auto;

}

.content-Partenaire {
    display: flex;
    justify-content: space-between;
    background-color: #F3F3F3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:  10px 10px 20px #e6e6e6,
             -10px -10px 20px #ffffff;

    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.3s;

}


.active, .content-Partenaire:hover {
    transform: translateY(-3px);
    border: 1px solid #D10667;
}



.info-partenaire {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.nom-partenaire {
    color: #D10667;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
}


.adresse-partenaire,
.type-partenaire,
.code-partenaire,
.tel-partenaire,
.mail-partenaire {
    font-size: 1em;
    margin-bottom: 5px;
}

.type-partenaire {
    color: #D10667;
    /* font-weight: bold; */
    text-transform : uppercase;
}


.image-partenaire img {
    height: auto;
    object-fit: cover;
    border-radius: 20px 0 0 20px;
}



#horaires {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.horaires-content {
    color: #D10667;
    font-size: 0.9em;
    text-align: right;
}

.horaires-content span {
    display: block;
    margin-bottom: 5px;
}


.next-partenaire {
    background-color: #D10667;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 10px;
    align-self: start;
}

.next-partenaire span {
    margin-right: 4px;
    position: relative;
}

.next-partenaire>span::before {
    content: '';
    position: absolute;
    width: 100%;
    margin-bottom: -1px;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: white;
    visibility: hidden;
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
}

.next-partenaire:hover>span::before {
    visibility: visible;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
}

/* -----------------------------------------fin bloc partenaire-------------------------------------- */


/* ----------------------------------------- pagination -----------------------------------------*/

.none{
    display: none;
}

/* .chevron{
    list-style: none !important;
    text-decoration: none !important;
} */


.paginationPartenaire {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    user-select: none; /* permet de ne pas sélectionner le texte */
}

span.page-number {
    /*  background-color:white; 
    color: #D10667; */
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    list-style: none;
    /* color: #D10667; */
    font-size: 1.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

.active{
    background-color: #D10667;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 150px;
    cursor: pointer;
    list-style: none;
}

 span.page-number svg {
    height: 20px;
    width: 20px;
} 

/* ----------------------------------------- fin de la pagination -----------------------------------------*/



/*----------------------------------------- fin du main---------------------------------- */



/* ----------------------------------------- Footer-----------------------------------------  */

.footer-partenaire {
    margin: 50px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.titre-footer {
    color: black;
    text-align: center;
    user-select: none; /* permet de ne pas sélectionner le texte */
}




.next span {
    margin-right: 4px;
    position: relative;
}

.next>span::before {
    content: '';
    position: absolute;
    width: 100%;
    margin-bottom: -1px;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: white;
    visibility: hidden;
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
}

.next:hover>span::before {
    visibility: visible;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
}

.arrowRight::after {
    content: '';
    display: inline-block;
    margin-left: 10px;
    width: 8px;
    height: 8px;
    border-right: solid 2px white;
    border-top: solid 2px white;
    transform: rotateZ(45deg);
}


.Icon-ICG{
    background-image: url('./images/Vector.png');
    background-repeat: no-repeat !important; /* Do not repeat the image */

    object-fit: cover;
}


/* test logo cluster  */
.mycluster {
    background-color: rgba(255, 255, 255, 0.6) !important;
    border: 2px solid #000 !important;
    border-radius: 20px !important;
    text-align: center !important;
    line-height: 40px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    color: #000 !important;
}
 

.marker-cluster-medium div {
    background-color: #D10667 !important ;
}

.marker-cluster-medium  {
    color: white !important ;
    background-color: #d106688a !important ;
}


.marker-cluster-large{
    color: white !important ;
    background-color: #d106688a !important ;
}

.marker-cluster-large div{
    background-color: #D10667 !important ;
}

.marker-cluster-small div{
    background-color: #D10667 !important ;
}

.marker-cluster-small{
    color: white !important ;
    background-color: #d106688a !important ;
}
 
/* -----------------------------------------  fin du footer -----------------------------------------  */




@media (max-width: 1400px) {
    #map {
        order: 0;
        /* width: 75%; */
        height: 300px;

        margin: 0 auto;
    }

    .main-partenaire {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        padding: 20px;
        gap: 20px;
    }

    .titre-header {
        line-height: 50px;
        font-size: 2.5em;
    }

   

    .titre-footer {
        font-size: 1.6em;

    }

    .image-partenaire img {
        max-width: 100%;
        height: auto;
    }

    .map-container {
        position: relative;
        order: 2;
        width: 100%;
        margin-bottom: 20px;
        top:0;
       height: auto;
    }

    
}

@media (max-width: 800px){
    

    .main-partenaire {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        padding: 20px;
        gap: 20px;
    }

    .map-container {
        position: relative;
        order: 2;
        width: 100%;
        margin-bottom: 20px;
        top:0;
       height: auto;
    }

    #map {
        margin: 0 auto;
        width: 100%;
        height: 300px;
        
    }

    .container-partenaire {
        flex-direction: row;
        flex-wrap: wrap;
        align-content: center;
        justify-content: center;
        align-items: center;
    }


    .info-partenaire {
        text-align: center;
    }

    .image-partenaire {
        display: none;
    }

    .image-partenaire img {
        width: 100%;
        height: 90px;
        object-fit: cover;
         border-radius: 0px; 
    }

    .info-partenaire {
        padding: 15px;
    }

    .nom-partenaire {
        color: #D10667;
        font-size: 1.5em;
        font-weight: bold;
        margin-bottom: 5px;
    }



    .adresse-partenaire,
    .code-partenaire,
    .tel-partenaire,
    .mail-partenaire {
        margin-bottom: 5px;
    }

    #horaires {
        display: none;
    }

    .next-partenaire {
        background-color: #D10667;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 10px;
        cursor: pointer;
        align-self: center;
    }
}


@media (max-width: 600px) {
     header {
        padding-bottom: 20px;
    } 

    .titre-header {
        font-size: 2.3rem;
        line-height: 40px;
    }

    #sousTitre-header {
        display: none;
    }

   

    .titre-footer{
        font-size: 1.2em;
        padding: 0 20px;
    }

    .paginationPartenaire {
        gap: 0px;
    }

    span.page-number {
        padding: 10px 15px;
    }
}



/* Animation de transition pour le swipe */
@keyframes swipe-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes swipe-right {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(50%);
    }
}

.swipe-left {
    animation: swipe-left 0.5s forwards;
}

.swipe-right {
    animation: swipe-right 0.5s forwards;
}
