@charset "UTF-8";

/*
* Theme Name: Charlotte - Zones et carte
* Author: Charlotte Dujardin
* Description: Thème de la carte et des zones de Charlotte
* Version: 1.0
* License: GNU General Public License v3 or later
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/

section.map {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
    -ms-flex-flow: column-reverse nowrap;
    flex-flow: column-reverse nowrap;
}

section.map div {
    margin-bottom: 2rem;
}

section.map div.map__image path {
    fill: rgba(var(--code--gris), 0.9);
    stroke: var(--blanc);
    stroke-width: 1px;
    -webkit-transition: fill 0.3s;
    -o-transition: fill 0.3s;
    transition: fill 0.3s;
}

section.map div.map__image path:hover {
    fill: var(--gris) !important;
}

section.map div.zone {
    position: relative;
    background-color: var(--gris);
    padding: 2rem;
    color: var(--blanc);
}

section.map div.zone h3 {
    color: inherit;
    font-size: var(--police-taille-xxl);
    border-bottom: 3px solid var(--blanc);
}

section.map div.zone h3 span {
    color: inherit;
    font-size: var(--police-taille-xxl);
    font-family: var(--police-decorative);
}

section.map div.zone div p,
section.map div.zone p,
section.map div.zone p span,
section.map div.zone p a {
    color: inherit;
}

section.map div.zone div:not(.loader) {
    display: none;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row nowrap;
    flex-flow: row nowrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    color: inherit;
}

section.map div.zone div p {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 50%;
    flex: 1 1 50%;
}

section.map div.zone div p span:first-child {
    text-decoration: underline;
    padding-right: 0.2rem;
}

section.map div.zone div p a:hover {
    font-weight: bold;
}

section.map div.zone p.description {
    text-align: justify;
    font-size: var(--police-taille-sm);
    padding: 1rem 0;
}

section.map div.zone img {
    display: none;
    width: 100%;
    height: 120px;
    -o-object-fit: cover;
    object-fit: cover;
}


/* Écrans larges (ordinateurs portables et fixes, 992px et plus) */

@media only screen and (min-width: 992px) {
    section.map {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-flow: row nowrap;
        flex-flow: row nowrap;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
    }
    section.map div {
        -webkit-box-flex: 1;
        -ms-flex: 1 1 50%;
        flex: 1 1 50%;
        margin-bottom: 0;
    }
    section.map div.map__image {
        margin-right: 1rem;
    }
    section.map div.zone {
        margin-left: 1rem;
    }
}