* {
    -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
      scrollbar-width: none;  /* Hide scrollbar for Firefox */
}

/* Colors */
:root {
    --color-primary: #322878;
    --color-secondary: #E6F1F6;
    --color-tertiary: #3EC1C7;
}

/* Pico overwrites */
div[role="button"] {
    background-color: initial;
    border: 0;
    padding: 0;
}

html,
body,
main,
article{
    background: white !important;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    padding-block: 0 !important;
}

/* Filters */
.filters {
    background: var(--color-primary);
    outline: 2px dashed green;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.filters .facetwp-facet {
    cursor: pointer;
    margin-bottom: 0;
    flex: 1;
    margin-right: 1rem;
    padding-left: 37px;
    position: relative;
    min-width: 150px;
}

.filters .facetwp-type-dropdown::before {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px;
    content: "";
    display:block;
    height: 30px;
    left: 0;
    filter: brightness(0) invert(1);
    position: absolute;
    top: 5px;
    width: 30px;
}

.filters .facetwp-facet:last-child {
    margin-right: 0;
}

.facetwp-facet select {
    background-color: var(--color-secondary);
    border-radius: 14px;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 10px !important;
}

.facetwp-facet-pays::before {
    background-image: url('img/pays.svg');
    background-size: 33px !important;
    height: 37px !important;
    top: 0 !important;
}

.facetwp-facet-echelle_geographique::before {
    background-image: url('img/echelle_geographique.svg');
}

.facetwp-facet-champs_intervention::before {
    background-image: url('img/champs_intervention.svg');
}

.facetwp-facet-thematiques::before {
    background-image: url('img/thematiques.svg');
}

.facetwp-facet-type_organisation::before {
    background-image: url('img/type_organisation.svg');
}

.facetwp-facet-odd_vises::before {
    background-image: url('img/odd_vises.svg');
}
.facetwp-facet-competences::before {
    background-image: url('img/domaines_competences.svg');
}

/* Fwp template */
.facetwp-template {
    display: none;
}

/* Map */

.gmnoprint .gm-style-mtc, /* Layers (map/satellite) */
.gmnoprint .gm-svpc{ /* Streetview buddy */
    display: none;
}

.facetwp-facet-map {
    margin:0 !important;
}

/* Popin */
.popin {
    padding-bottom: 40px;
}

.popin span {
    color: var(--color-tertiary);
    display: block;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}
.popin h3 {
    line-height: 30px;
    margin: 0 15px 0 0;
    min-width: 200px;
    padding: 0;
}

.popin h3 a {
    color: var(--color-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    line-height: 30px;
    text-decoration: none;
}

.popin .button {
    background: var(--color-tertiary);
    bottom: 0;
    border-radius: 20px 0 8px 0;
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 35px;
    right: 0;
    padding: 0 20px;
    position: absolute;
    text-transform: uppercase;
    text-decoration: none;
}

.facetwp-map-filtering {
    display: none;
}

.reset {
    background: var(--color-primary);
    color: var(--color-secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 20px;
}


/* Single */
article {
    box-shadow: none !important;
}
article header {
    background: linear-gradient(to top, var(--color-primary), var(--color-secondary)) !important;
    background-position: center;
    background-size: cover;
    border: 0 !important;
    height: 345px;
    margin-top: 0 !important;
    overflow: hidden;
    padding: 0 !important;
}
article header span {
    color: white;
    display: block;
    font-size: 14px;
    margin-top: 130px;
    text-transform: uppercase;
}
article header h1 {
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 40px;
    font-weight: bold;
    margin: 0;
    padding: 0;
}
article header .logo {
    background: white;
    border-radius: 50%;
    float: left;
    height: 280px;
    width: 280px;
    display: flex;
    justify-content: center;
    margin: 120px 40px 0 20px;
    align-items: center;
    overflow: hidden;
}
article header .logo img {
    margin-top: -50px;
    max-width: 55%;
    max-height: 55%;
    object-fit: contain;
}

article header .retour {
    background: var(--color-secondary) url('img/retour_carte.svg') no-repeat 0 center;
    color: var(--color-primary);
    display: block;
    line-height: 35px;
    height: 35px;
    font-size: 18px;
    font-weight: bold;
    padding-left: 40px;
    text-decoration: none;
    text-transform: uppercase;
    width: 100%;
}

article .content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    grid-template-areas:
        "missions odd_vises fiche"
        "partenaires domaines_competences fiche"
        "competences_geographiques beneficiaires fiche"
        "thematiques realisations fiche";
    margin: 0 auto;
}

article .content > div {
    background: var(--color-secondary);
    border-radius: 20px;
    color: black;
    max-width: 475px;
    padding: 20px;
}

article .content > div p,
article .content > div ul {
    max-height: 300px;
    overflow: scroll;
}

article .content > div p,
article .content > div li {
    color: black;
    font-size: 14px;
    font-weight: normal;
    font-family: 'Poppins', sans-serif;
}

article .content > div ul {
    margin: 0;
    padding: 0 20px 0 0;
}

article .content > div li {
    list-style-type: none;
    line-height: 17px;
    margin: 0 0 10px 0;
    position: relative;
    padding-left: 20px;
}

article .content > div li {
    padding-left: 20px;
    position: relative;
}

article .content > div li::before {
    content: "\2192"; /* Unicode character for an arrow (→) */
    color: #DE6D54;
    font-size: 1.2em; /* Adjust size as needed */
    position: absolute;
    left: 0;
    top: 0;
    line-height: 17px;
}

article .content > div li.odd {
    display: block;
    height: 117px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 122px 117px;
    float: left;
    padding: 0;
    margin: 5px;
    width: 122px;

    &.odd-1 {
        background-image: url('img/odd-1.svg');
    }
    &.odd-2 {
        background-image: url('img/odd-2.svg');
    }
    &.odd-3 {
        background-image: url('img/odd-3.svg');
    }
    &.odd-4 {
        background-image: url('img/odd-4.svg');
    }
    &.odd-5 {
        background-image: url('img/odd-5.svg');
    }
    &.odd-6 {
        background-image: url('img/odd-6.svg');
    }
    &.odd-7 {
        background-image: url('img/odd-7.svg');
    }
    &.odd-8 {
        background-image: url('img/odd-8.svg');
    }
    &.odd-9 {
        background-image: url('img/odd-9.svg');
    }
    &.odd-10 {
        background-image: url('img/odd-10.svg');
    }
    &.odd-11 {
        background-image: url('img/odd-11.svg');
    }
    &.odd-12 {
        background-image: url('img/odd-12.svg');
    }
    &.odd-13 {
        background-image: url('img/odd-13.svg');
    }
    &.odd-14 {
        background-image: url('img/odd-14.svg');
    }
    &.odd-15 {
        background-image: url('img/odd-15.svg');
    }
    &.odd-16 {
        background-image: url('img/odd-16.svg');
    }
    &.odd-17 {
        background-image: url('img/odd-17.svg');
    }
}

/* Special list items */
article .content > div li.odd::before {
    display: none;
}

article .content > div h2{
    color: var(--color-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 19px;
    font-weight: bold;
    margin: 0 0 15px;
    padding-left: 40px;
    position: relative;
}
article .content > div h2::before {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px;
    content: "";
    display:block;
    height: 30px;
    left: 0;
    position: absolute;
    top: -3px;
    width: 30px;
}

article .content > .missions {
    grid-area: missions;
}
article .content > .missions h2::before {
    background-image: url('img/missions.svg');
}

article .content > .partenaires {
    backgroud-image('img/partenaires.svg');
    grid-area: partenaires;
}
article .content > .partenaires ul li {
    background: white;
    border-radius: 20px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: bold;
    line-height: 17px;
    padding: 5px 10px;
    text-align: center;
    text-transform: uppercase;
}
article .content > .partenaires ul li::before {
    display: none;
}
article .content > .partenaires h2::before {
    background-image: url('img/partenaires.svg');
}

article .content > .competences_geographiques {
    grid-area: competences_geographiques;
}
article .content > .competences_geographiques h2::before {
    background-image: url('img/competences_geographiques.svg');
}

article .content > .thematiques {
    grid-area: thematiques;
}
article .content > .thematiques h2::before {
    background-image: url('img/thematiques.svg');
}

article .content > .odd_vises {
    grid-area: odd_vises;
}
article .content > .odd_vises h2::before {
    background-image: url('img/odd_vises.svg');
}

article .content > .domaines_competences {
    grid-area: domaines_competences;
}
article .content > .domaines_competences h2::before {
    background-image: url('img/domaines_competences.svg');
}

article .content > .beneficiaires {
    grid-area: beneficiaires;
}
article .content > .beneficiaires h2::before {
    background-image: url('img/beneficiaires.svg');
}

article .content > .realisations {
    grid-area: realisations;
}
article .content > .realisations h2::before {
    background-image: url('img/realisations.svg');
}

article .content > .fiche {
    background: #524FA2;
    color: white;
    grid-area: fiche;
    max-height: 100%;
}
article .content > .fiche h2 {
    color: white;
    font-size: 19px;
    padding: 0;
}
article .content > .fiche ul {
    margin: 0;
    padding: 0;
}
article .content > .fiche li {
    color: white;
    font-size: 16px;
}
article .content > .fiche li {
    line-height: 20px;
    padding-left: 30px;
}
article .content > .fiche .reseaux li::before,
article .content > .fiche .emails li::before,
article .content > .fiche .phones li::before {
    content: "";
    display: block;
    height: 20px;
    left: 0;
    position: absolute;
    top: 0;
    width: 20px;
}
article .content > .fiche .reseaux li.facebook::before {
    background-image: url('img/facebook.svg');
    background-size: 20px;
}
article .content > .fiche .reseaux li.instagram::before {
    background-image: url('img/instagram.svg');
    background-size: 20px;
}
article .content > .fiche .reseaux li.x::before {
    background-image: url('img/x.svg');
    background-size: 20px;
}
article .content > .fiche .reseaux li.linkedin::before {
    background-image: url('img/linkedin.svg');
    background-size: 20px;
}
article .content > .fiche .reseaux li.youtube::before {
    background-image: url('img/youtube.svg');
    background-size: 20px;
}
article .content > .fiche .emails li::before {
    background-image: url('img/mail.svg');
    background-size: 21px;
}
article .content > .fiche .phones li::before {
    background-image: url('img/phone.svg');
    background-size: 17px;
}


article .content > .fiche strong {
    color: white;
    font-size: 16px;
    line-height: 30px;
    opacity: .7;
}
article .content > .fiche p {
    color: white;
}
article .content > .fiche a{
    color: var(--color-tertiary);
    text-decoration: none;
}
article .content > .fiche strong {
    color: white;
}

/* Add this media query at the end of the file */
@media (max-width: 1800px) {
    .filters {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .filters .facetwp-facet {
        flex: 0 0 calc(33.33% - 1rem);
        margin-right: 1rem;
        margin-bottom: 1rem;
    }

    .filters .facetwp-facet:nth-child(3n) {
        margin-right: 0;
    }

    .filters .facetwp-facet:last-child {
        flex: 0 0 calc(33.33% - 1rem);
        margin-right: auto;
    }
}

@media (max-width: 900px) {
    .filters .facetwp-facet {
        flex: 0 0 calc(50% - 0.5rem);
        margin-right: 1rem;
    }

    .filters .facetwp-facet:nth-child(3n) {
        margin-right: 1rem;
    }

    .filters .facetwp-facet:nth-child(2n) {
        margin-right: 0;
    }

    .filters .facetwp-facet:last-child {
        flex: 0 0 calc(50% - 0.5rem);
        margin-right: 0;
    }
}

@media (max-width: 1023px) {
    article .content {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            "missions odd_vises"
            "partenaires domaines_competences"
            "competences_geographiques beneficiaires"
            "thematiques realisations"
            "fiche fiche";
    }

    article .content > .fiche {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .filters .facetwp-facet {
        flex: 0 0 100%;
        margin-right: 0;
    }

    .filters .facetwp-facet:nth-child(2n),
    .filters .facetwp-facet:nth-child(3n) {
        margin-right: 0;
    }

    .filters .facetwp-facet:last-child {
        flex: 0 0 100%;
    }
}
