/* Styles de base */
#map-centres{
    display: flex;
    /*height: 90vh;*/
    width: 100%;
    position: relative;
    box-sizing: border-box;
    flex-direction: column;
    margin-top: 18px;
}

#map-centres *{
    box-sizing: border-box;
}

.search-centres{
    /*width: 415px;
    max-height: 90vh;
    overflow-y: auto;
    border-right: 1px solid #ccc;*/
    padding: 30px 30px 14px;
    position: relative;
    z-index: 2;
    background: #F2F7F7;
    min-height: 50vh;
}

.search-centres:has(.search-wrapper.active){
    overflow: hidden;
}

.search-centres .search-wrapper:not(.active){
    display: none;
}

.search-centres .search-wrapper h1{
    color:#00312D;
    text-align: center;
    font-size: 40px;
    line-height: 40px !important;
}

.search-centres .search-wrapper .wrapper > div{
    margin-top: 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.search-centres .search-wrapper .wrapper div label{
    margin-top: -8px;
    text-align: center;
    color: #949499;
    font-size: 12px;
    max-width: 230px;
}

.search-centres .search-wrapper .wrapper > div > button{
    background: #00AC45;
    border-radius: 25px;
    padding:13px 25px;
    border:0;
    color:#fff;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 13px;
    cursor: pointer;
}
.search-centres .search-wrapper .wrapper > div > button:hover{
    background: #008937;
}

.search-centres .search-wrapper .wrapper > div > span{
    background: #BDD4D3;
    color:#005045;
    border-radius: 100%;
    font-size: 15px;
    line-height: 8px;
    font-weight: bold;
    padding: 20px 13px;
}

.search-centres .search-wrapper .wrapper > div .input-wrapper,
.centres-list-wrapper .search-wrapper-list .input-wrapper{
    position: relative;
    background: #FFFFFF;
    border-radius: 23px;
    width: 100%;
    max-width: 320px;
}

.search-centres .search-wrapper .wrapper > div .input-wrapper input,
.centres-list-wrapper .search-wrapper-list .input-wrapper input{
    width: 100%;
    border: 0;
    background: transparent;
    outline: none;
    padding: 12.5px 60px 12.5px 21.5px;
}

.search-centres .search-wrapper .wrapper > div .input-wrapper input,
.centres-list-wrapper .search-wrapper-list .input-wrapper input{
    color:#005045;
    font-weight: 600;
    border-radius: 23px;
    border: 3px solid transparent;
}

.search-centres .search-wrapper .wrapper > div .input-wrapper input::placeholder,
.centres-list-wrapper .search-wrapper-list .input-wrapper input::placeholder{
    font-size: 15px;
    line-height: 14px;
    font-weight: 400;
    color: #949499;
}

.search-centres .search-wrapper .wrapper > div .input-wrapper input:focus,
.centres-list-wrapper .search-wrapper-list .input-wrapper input:focus{
    border: 3px solid #00AC45;
}

.search-centres .search-wrapper .wrapper > div .input-wrapper input:focus::placeholder,
.centres-list-wrapper .search-wrapper-list .input-wrapper input:focus::placeholder{
    color:#005045;
    font-weight: 600;
}

.search-centres .search-wrapper .wrapper > div .input-wrapper button,
.centres-list-wrapper .search-wrapper-list .input-wrapper button{
    position: absolute;
    right: 0;
    background: transparent;
    border: 0;
    transform: rotate(270deg) translate(55%, -10px);
    padding: 0;
    top: 50%;
    cursor: pointer;
}

.search-centres .search-wrapper .wrapper > div .input-wrapper button.remove-text,
.centres-list-wrapper .search-wrapper-list .input-wrapper button.remove-text{
    transform: translate(-40px, -50%);
    display: none;
}

.search-centres .search-wrapper .wrapper > div .input-wrapper button.remove-text svg,
.centres-list-wrapper .search-wrapper-list .input-wrapper button.remove-text svg{
    width: 7px;
    height: 7px;
}

.search-centres .search-wrapper .wrapper > div .input-wrapper button svg path,
.centres-list-wrapper .search-wrapper-list .input-wrapper button svg path{
    fill: #005045;
}


.centres-list-wrapper .search-wrapper-list .geolocalisation-button{
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #00AC45;
    min-width: 45px;
    height: 45px;
    border:0;
    cursor: pointer;
}

.centres-list-wrapper .search-wrapper-list .geolocalisation-button:hover{
    background: #008937;
}

.search-centres .search-wrapper .wrapper p{
    margin-top: 50px;
    text-align: center;
    color: #00312D;
    font-size: 14px;
    line-height: 20px;
    font-weight: bold;
    margin-bottom: 0;
}

.centres-list-wrapper{
    min-height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateX(100%);
    transition: transform .3 sease-in-out, height 1s ease-in-out;
    background: #F2F7F7;
    overflow: scroll;
}

.centres-list-wrapper:not(:has(#details.show)){
    height: 100%;
}

.centres-list-wrapper.active{
    transform: translateX(0);
}

.centres-list-wrapper .search-wrapper-list{
    border-bottom: 3px solid #fff;
    padding:20px 30px 22.5px;
    display: flex;
    align-items: center;
    gap: 13px;
    justify-content: center;
}

#centres-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 30px;
}

#centres-list .centre {
    position: relative;
    padding: 12px 30px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    background: #fff;
    border-radius: 3px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#centres-list .centre p {
   color: #00312D;
}

#centres-list .centre:hover {
    background-color: #00AC45; /* Vert clair */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

#centres-list .centre.active{
    background: #BDD4D3;
}

#centres-list .centre.active p{
    color: #00312D;
}

#centres-list .centre .hover-info {
    opacity: 0;
    display: flex;
    position: absolute;
    top: 0;
    height: 100%;
    padding: 20px;
    background: #00AC45;
    left: 0;
    font-size: 13px;
    color: #fff;
    flex-direction: column;
    justify-content: space-between;
    gap: 5px;
    transition: .3s;
}

#centres-list .centre:hover .hover-info {
    opacity: 1;
}

#centres-list .centre .hover-info .action{
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    color: #fff;
}
#centres-list .centre .hover-info .action img {
    border: 1px solid white;
    width: 20px;
    height: 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}


#centres-list .centre h3{
    color: #00AC45;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 800;
    margin: 0;
}

#centres-list .centre strong{
    color: #00AC45;
}

#centres-list .centre p{
    font-size: 14px;
    line-height: 20px;
    margin: 0;
}

#map-placeholder {
    flex-grow: 1;
    height: 90vh;
    background: #dcdcdc;
    position: relative;
    z-index: 1;
}

/* Volet d'information */
#details {
    /*t: -40%;
    top: 0;
    width: 400px;
    height: 90vh;
    background: #F8FBFB;
    border-left: 1px solid #ccc;
    padding: 20px;
    overflow-y: auto;
    z-index: 1;
    transition: left 0.3s ease;
    position: absolute;*/

    width: 100%;
    height: 0;
    background: #F2F7F7;
    transition: all 0.3s ease-in-out;
    transform: translateX(-120%);
    padding: 30px;
}

#details.show {
    /*left: 415px; /* Arrive sous le volet de la liste */
    transform: translateX(0);
    height: 100%;
}

#close-details {
    z-index: 999999;
    position: absolute;
    top: 10px; /* Positionnement relatif au conteneur parent */
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    transition: color 0.2s ease;
    background: white;
    border-radius: 50px;
    padding: 2px;
    height: 28px;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#close-details svg{
    width: 8px;
    height: 8px;
}

#details h2 {
    margin-top: 0;
    font-size: 30px;
}

#details h2:after{
    content: none;
}

#details #details-address{
    line-height: 18px;
}

#details #coordonnes{
    display: flex;
    gap: 10px;
}

#details #coordonnes img{
    width: 17px;
}

#details #coordonnes > p + p{
    border-left: 1px solid black;
    padding-left: 10px;
}

#details #coordonnes p span{
    color: #00AC45;
}

#details .btn{
    border: none;
    background: #00AC45;
    padding: 8px 18px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#details #contact-equipe h3,
#details #vous-etes-pro h3,
#details #vous-etes-particulier h3{
    margin-bottom: 8px;
}

#details #vous-etes-pro{
    margin-bottom: 30px;
}

#details #vous-etes-pro #pro-rdv:hover{
    background: #02312E;
}

#details #vous-etes-pro .btn {
    background: #005B56;
}

#details #contact-equipe{
    margin-bottom: 35px;
}

#details #contact-equipe #show-pro-phone:hover{
    background: #008937;
}

#details #contact-equipe #show-pro-phone img{
    transform: rotate(125deg);
}

#details #contact-equipe #title-contact-equipe{
    display: flex;
    gap: 10px;
}

#details #vous-etes-particulier .btn {
    background: #F2F7F7;
    border: 1px solid #005B56;
    color: #005B56;
    font-weight: 500;
}

#details #vous-etes-particulier h3{
    font-size: 14px;
}

#details #services-list{
    margin-top: 45px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#details #services-list .single-service{
    display: flex;
    align-items: center;
}

#details #services-list .single-service > div{
    display: flex;
    flex-direction: column;
}

#details #services-list .single-service img{
    max-height: 42px;
}

#details #services-list .single-service .title-service{
    font-size: 14px;
}

#details #services-list .single-service .service-name{
    font-size: 18px;
    font-weight: bold;
    color: #00AC45;
}

#details #horaires,
#details #more-info{
    margin-bottom: 30px;
}

#details #horaires h3,
#details #more-info h3 {
    font-weight: bold;
    font-size: 14px;
    color: #00312D;
    margin-bottom: 5px;
}

#details #horaires #opening-hours{
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Surbrillance */
.highlight {
    background-color: #dff0d8;
}

@media screen and (max-width: 992px){
    .search-centres:has(#details.show) .centres-list-wrapper #centres-list{
        height: 0;
        overflow: hidden;
        padding: 0;
    }
}

@media screen and (min-width: 992px){

    #map-centres{
        flex-direction: row;
        margin-top: 25px;
    }

    .search-centres{
        width: 415px;
        max-height: 90vh;
        /*overflow-y: auto;*/
        /*padding: 30px 30px 14px;
        position: relative;
        z-index: 2;
        background: #F2F7F7;
        min-height: 50vh;*/
        border-right: 3px solid #fff;
    }

    .centres-list-wrapper{
        overflow: unset;
    }

    .centres-list-wrapper .search-wrapper-list{
        position: relative;
        z-index: 2;
        background: #F2F7F7;
    }

    #centres-list{
        overflow-y: scroll;
        max-height: calc(90vh - 90.5px);
        z-index: 2;
        background: #F2F7F7;
        position: relative;
    }

    #details {
        left: -200%;
        top: 0;
        width: 400px;
        height: 90vh;
        background: #F2F7F7;
        padding: 20px;
        overflow-y: auto;
        z-index: 1;
        transition: left 0.3s ease;
        position: absolute;
        transform: unset;
    }

    #details.show {
        left: calc(100% + 3px);
    }
}