﻿:root {
    --primary-color: #b23993;
    --dark-color: #404040;
    --light-color: #8079790a;
    --accent-color: #9e8652;
    --text-color: #525252;
    --secondary-color: #c6c1c1;
    --background-color: #ffff;
    --modal-background-color: rgba(0,0,0,0.4);
    --box-shadow: 0px 0px 8px -3px #bfbaba;
    --border-radius: 15px;
}

#map {
    height: 250px;
}

/*******************************
*********************
    MAIN PAGE
*********************
********************************/
.eserviceheader.empty {
    display: none;
}

h2 {
    margin-top: 0 !important;
}

.profil h3 {
    font-size: 2.5rem;
}

.profil .selected .asso {
    display: block;
}

.profil .unselected .asso {
    display: none;
}

.annuairewpc p, .annuairewpc div {
    font-family: 'Overpass';
}

.topButton i {
    position: fixed;
    display: none;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    color: var(--background-color);
    cursor: pointer;
    padding: 15px;
    border-radius: var(--border-radius);
    font-size: 18px;
    background-color: var(--primary-color);
}

    .topButton i:hover {
        background-color: var(--secondary-color);
    }

/******************
    SELECT OPTION
******************/
.asso-filter select {
    background-color: transparent;
    border: 0;
    font-family: 'Overpass';
    display: block;
    width: 100%;
}


.asso-selects {
    display: block;
}

.asso-filter {
    padding: 2%;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    grid-row: 1;
}

.bloc-asso {
    grid-row: 1/3;
}

/******************
    SEARCH
******************/

.asso-search {
    display: flex;
    margin-bottom: 3%;
    padding: .5%;
    border: 1.5px solid var(--secondary-color);
    border-radius: var(--border-radius);
    position: sticky;
    top: 0;
}

    .asso-search .fa-search {
        color: var(--secondary-color);
        display: block;
        margin: auto;
    }

#input-search {
    border: 0;
    width: 100%;
    background: transparent;
}

    #input-search:focus {
        border: 0;
        outline: none;
    }


.mobile-type-list, .mobile-pratique-list {
    display: none !important;
}

/*******************************
*********************
    ASSOCIATIONS
*********************
********************************/
.profil h3 {
    margin-bottom: 10px;
    text-align: left;
    background-color: var(--light-color);
    padding: 1%;
    border-radius: var(--border-radius);
    color: var(--secondary-color);
    box-shadow: var(--box-shadow);
}

    .profil h3:hover {
        cursor: pointer;
    }

.asso-select {
    margin-bottom: 3%;
}

    .asso-select input:hover, .asso-select label:hover {
        cursor: pointer;
    }

.assos-secteur {
    position: relative;
    column-gap: 50px;
    row-gap: 50px;
}

.asso {
    box-shadow: var(--box-shadow);
    height: 10vh;
    display: grid;
    margin-bottom: 1%;
    grid-template-columns: 10% auto;
    padding: 1%;
    align-content: center;
}


.asso-filter h4 {
    font-size: 2rem;
    margin-top: 0;
}

.asso:hover, .asso:focus {
    cursor: pointer;
    -webkit-transform: scale(1.02);
    transform: scale(1.02);
}

    .asso:hover .asso-title, .asso:focus .asso-title {
        color: var(--primary-color);
    }

p.asso-title {
    color: var(--text-color);
    text-align: left;
    padding: 0 2%;
    vertical-align: middle;
    margin: auto 0;
}

.img-background {
    display: block;
    margin: auto;
    max-height: 10vh;
}

i.img-background {
    font-size: 2em;
    color: var(--secondary-color);
}

.linear-gradient {
    position: absolute;
    background-image: linear-gradient(#bdb9bc, #353134);
    height: 100%;
    width: 100%;
    opacity: 0.7;
    top: 0;
    border-radius: 5px;
}

/*******************************
*********************
    MODAL PAGE
*********************
********************************/
/******************
    BACKGROUND
******************/
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--modal-background-color);
}

.modal-content {
    background-color: var(--background-color);
    margin: auto;
    border: 1px solid #888;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 50px 0 rgba(0, 0, 0, 0.19);
    max-width: 1180px;
}

.modal-header {
    display: grid;
    grid-template-columns: 15% auto;
    background-color: var(--dark-color);
    grid-column-gap: 1%;
}

    .modal-header i {
        font-size: 5vw;
        margin: 0;
        display: block;
        color: var(--background-color);
    }

.modal-header, .modal-more {
    padding: 2%;
}

.close {
    color: var(--secondary-color);
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 0;
}

    .close:hover, close:focus {
        color: var(--background-color);
        cursor: pointer;
    }

i {
    padding-right: 1%;
    color: var(--primary-color);
}

/******************
    HEADER
******************/
#logo {
    margin: auto;
}

    #logo img {
        width: 8vw;
        background-color: var(--background-color);
        border-radius: var(--border-radius);
        box-shadow: 2px 2px 8px rgba(0,0,0,.3);
        padding: 5px;
        margin: auto;
    }

#denomination p {
    font-size: 2rem;
    margin: 2% 0;
    color: var(--background-color);
    font-weight: bolder;
    text-transform: uppercase;
}


    #denomination p::after {
        content: "";
        border-top: 3px solid var(--accent-color);
        display: block;
        width: 5%;
        margin-top: 1%;
    }

#pratique p {
    color: var(--background-color);
    font-size: 1.5rem;
}

/******************
    CONTACT
******************/
.modal-body {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-column-gap: 5%;
    padding: 2%;
    grid-template-rows: auto auto;
}

.i-contact a {
    color: var(--text-color);
}

.modal-contact {
    display: grid;
    padding: 3%;
    word-break: break-word;
    box-shadow: var(--box-shadow);
    line-height: 50px;
    grid-row: 1;
}

.modal-banner:after {
    content: "";
    border-right: 30px solid transparent;
    border-top: 30px solid var(--dark-color);
    position: absolute;
}

.modal-contact a {
    text-decoration: none;
}

.modal-contact .i-contact {
    color: var(--text-color);
}

.modal-more {
    margin-top: 3%;
    grid-row: 1/3;
}

    .modal-more p {
        text-align: justify;
    }


.asso-main {
    display: grid;
    grid-template-columns: 35% auto;
    grid-column-gap: 4%;
    grid-template-rows: auto auto;
}

.simple-asso-main {
    display: block;
}

.toggler {
    position: absolute;
    right: 0;
    padding: 1%;
    font-size: 1em;
    cursor: pointer;
}

    .toggler i {
        color: var(--secondary-color);
    }

/*******************************
*********************
    MEDIA QUERIES
*********************
********************************/
@media (max-width: 600px) {

    .modal-header {
        display: block;
    }

    .profil h3 {
        font-size: large !important;
    }

    .modal-header, .modal-contact {
        grid-column: 1/3;
    }

        .modal-header i {
            font-size: 15vw;
        }

    .asso-title {
        font-size: x-small !important;
    }

    .asso {
        grid-column-gap: 2%;
    }
}

@media screen and (max-width: 991px) {

    .modal-body {
        display: flex;
        flex-direction: column-reverse;
    }

    .asso-main {
        display: block;
    }

    .profil h3 {
        font-size: 2.5rem;
    }

    #denomination p {
        font-size: 2rem;
    }

    #pratique p {
        font-size: 1.5rem;
    }

    .modal-contact a, .modal-more p {
        font-size: 1.2rem;
    }

    .modal-contact {
        word-break: break-word;
    }

    .asso-search i {
        margin: 0;
    }

    .asso-select select {
        width: 100%;
    }

    #logo img {
        width: 15vw;
    }

    .type-list, .pratique-list {
        display: none;
    }

    .mobile-pratique-list, .mobile-type-list {
        display: block !important;
    }

    .asso-filter {
        margin-bottom: 3%;
        box-shadow: none;
        background-color: transparent;
        padding: 0;
    }

        .asso-filter .asso-select {
            padding: 2%;
            background-color: var(--light-color);
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
        }
}