/*####################
##### GENERAL #########
######################*/

:root {
    /* Colors */
    --cl-white: #fff;
    --cl-beige: #E7E8E3;
    --cl-black: #363636;
    --cl-gray: #636363;
    --cl-blue-green: #15a69f;
    --cl-green: #b0d5d4;
    --cl-light-blue: #e5edf2;

    /* fonts */
    --ff-bold: 'Clash Grotesk Bold', sans-serif;
    --ff-semibold: 'Clash Grotesk Semi-bold', sans-serif;
    --ff-regular: 'Clash Grotesk Regular', sans-serif;
    --ff-medium: 'Clash Grotesk Medium', sans-serif;
    --ff-light: 'Clash Grotesk Light', sans-serif;
    --ff-x-light: 'Clash Grotesk X-Light', sans-serif;
    --ff-accent: 'Clash Grotesk Vable', sans-serif;

    scroll-behavior: smooth;
}

/*####################
#### MAIN LAYOUT #####
######################*/

body {
    background-color: #fff;
}

body>*,
main>*,
.alignwide {
    width: 90%;
    max-width: 1400px;
    margin: auto;
}

.alignfull,
main>.alignfull,
.alignfull .wp-block-group__inner-container {
    min-width: 100%;
}

main {
    position: relative;
}

main.page-int>*:not(#fil_kg)>*>*,
main.single-actus>*:not(#fil_kg)>*>* {
    z-index: 4;
    position: relative;
}

#fil_bkg {
    height: 100%;
    background: url(../images/fil.svg) no-repeat center;
    background-size: cover;
    z-index: 2;
    min-width: 100%;
    position: absolute;
    inset: 0;
}

#cboxOverlay {
    min-width: 100%;
}

.wp-block-group {
    position: relative;
}

/* .wp-block-group:after {
    content: '';
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
} */

.wp-block-group__inner-container {
    position: relative;
    z-index: 3;
}

.wp-block-group>* {
    z-index: 3;
}

.wp-block-group__inner-container>.alignfull {
    min-width: 100%;
}


/*####################
####### HEADER #######
######################*/

header {
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 50;
    transition: all 300ms ease-in-out;
}

body.home {
    background-color: var(--cl-light-blue);
}

body.home .custom-logo {
    opacity: 0;
    transition: all 300ms ease-in-out;
}

.custom-logo {
    border-radius: 0 0 8px;
}

#show_menu {
    display: none;
}

#open_menu_wrapper,
#close_menu_wrapper {
    background-color: var(--cl-blue-green);
    padding: 1.25rem;
    cursor: pointer;
    border-radius: 8px;
    height: 70px;
    width: 70px;
}

.smart-icon-menu::after {
    content: url(../images/menu_bars.svg);
    display: block;
    font-family: var(--ff-bold);
    text-align: center;
    cursor: pointer;
}

.menu_text {
    text-align: center;
    text-transform: uppercase;
    color: var(--cl-white);
    font-weight: 700;
    font-size: 8px;
}

#menu_principal>section {
    position: relative;
    padding: 4rem 9rem;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: url(../images/fil.svg) no-repeat center;
}

#close_menu_wrapper {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.smart-icon-menu-close::after {
    content: url(../images/menu_close.svg);
    display: block;
    font-family: var(--ff-bold);
    font-weight: 900;
    text-align: center;
    cursor: pointer;
}

#menu_principal {
    position: absolute;
    top: -200vh;
    left: 0;
    width: 100%;
    transition: all 400ms ease-in-out;
    background-color: var(--cl-light-blue);
    z-index: 60;
    display: flex;
    justify-content: space-between;
}

#menu_principal.show {
    top: 0;
}

#menu_principal ul {
    max-width: 40%;
}

#menu_principal .menu-menu-principal-container li {
    padding-block: 1.25rem;
    border-bottom: 1px solid var(--cl-black);
}

#menu_principal li:not(.footer_rs) a {
    font-family: var(--ff-bold);
    font-size: clamp(1.2rem, 3vw, 1.65rem);
    font-weight: 900;
    color: var(--cl-black);
    transition: all 300ms ease-in-out;
}

#menu_principal li:not(.footer_rs):hover a {
    color: var(--cl-blue-green);
}

#bottom_header_nav {
    margin-top: auto;
}

#nav_search {
    max-width: 40%;
}

#searchform {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--cl-black);
    position: relative;
}

#s {
    border: none;
    background-color: transparent;
    padding: 1rem;
    width: 100%;
    font-size: clamp(1.2rem, 3vw, 1.65rem);
    color: var(--cl-black);
    accent-color: var(--cl-blue-green);
}

input#s::placeholder {
    color: var(--cl-black);
}

#search_icon {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-70%);
    cursor: pointer;
}

#searchsubmit {
    display: none;
}

#main_anv_rs_wrapper {
    margin-top: 2rem;
}

#bottom_header_nav .footer__follow {
    color: var(--cl-black);
}

.footer__follow {
    font-family: var(--ff-bold);
    font-weight: 800;
    font-size: 1.1rem;
}

#bottom_header_nav .footer_rs {
    color: var(--cl-black);
}

#bottom_header_nav .footer_rs.facebook a:after {
    content: url(../images/facebook_black.svg);
}

#bottom_header_nav .footer_rs.instagram a:after {
    content: url(../images/instagram_black.svg);
}

#bottom_header_nav .footer_rs.youtube a:after {
    content: url(../images/youtube_black.svg);
}

/* Accessibilité */

#accessconfig {
    display: none;
}

#top_nav__accessibility {
    width: 38px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background-color: var(--cl-light-blue);
    margin-left: auto;
    margin-top: 20px;
}

/*####################
### FRONT PAGE #######
######################*/

main.homepage {
    background-color: var(--cl-light-blue);
}

#home_hero {
    --hero_margin_left: 80px;
    position: relative;
    padding-top: 120px;
}

#home_hero_title mark {
    display: block;
}

#home_hero_title span {
    max-width: 60%;
    display: inline-block;
}

#home_hero_title span mark:nth-child(2) {
    text-align: right;
}

#home_hero_title>mark {
    width: fit-content;
    position: relative;
}

#home_hero_title>mark:after {
    content: '';
    background-image: url(../images/hero_title_mark.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom;
    display: inline;
    position: absolute;
    margin-left: 10px;
    right: 0;
    top: -100%;
    width: 33%;
    height: 100%;
}

#home_hero img {
    border-radius: 8px;
}

.hero_title {
    padding-left: var(--hero_margin_left);
}

.homepage h1 {
    line-height: 88%;
    font-size: clamp(1.9rem, 5vw, 8rem);
}

#home_arrow_down {
    position: absolute;
    bottom: 7%;
    left: 7%;
    z-index: 4;
    animation: upDown 2s infinite;
    transition: all 200ms ease-in-out;
}

@keyframes upDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


div.leaflet-popup-content p:first-of-type {
    margin: 10px 0;
}

div.leaflet-popup-content p {
    margin: 0;
}

.artiste_pop_up__name:after {
    position: absolute;
    bottom: 0;
}


/* Section actus */

/*####################
##### CAROUSEL ####
######################*/

/* SCROLLBAR */
/* Firefox */
#carousel {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

/* Chrome */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--page-color);
    border-radius: 6px;
}

::-webkit-scrollbar-track {
    background-color: var(--page-color);
}

/* CAROUSEL GENERAL STYLING */
/* See internal CSS for specifics */
#carousel {
    position: relative;
    width: inherit;
}

.carousel_arrows.previous,
.carousel_arrows.next {
    background-image: url(../images/fleche_vide_gauche.svg);
    width: 48px;
    aspect-ratio: 1;
    background-position: center;
    display: inline-block;
    background-repeat: no-repeat;
    cursor: pointer;
}

#carousel.galerie .carousel_arrows.previous,
#carousel.galerie .carousel_arrows.next {
    background-image: url(../images/slider_arrow_black.svg);
}

.carousel_arrows.next {
    transform: rotate(180deg);
    margin-left: 1.5rem;
}

#carousel .carousel_controls {
    position: absolute;
    bottom: -60px;
    right: 5%;
    width: 140px;
}


#carousel .carousel-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.2rem;
    overflow-x: scroll;
    padding-block: 1.5rem;
    padding-right: 1.2rem;
}

.actu>*,
.galerie_image {
    user-select: none;
}

.actus_wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.galerie_image {
    flex: 0 0 auto;
    cursor: pointer;
    transition: all 300ms ease-in-out;
    object-fit: contain;
    height: 40vh;
}

.actu {
    flex: 0 0 calc(33.33% - 13.33px);
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    grid-template-rows: 250px 1fr;
    position: relative;
    cursor: pointer;
    transition: all 300ms ease-in-out;
    z-index: 2;
}

.actu:hover {
    scale: 1.01;
}

.actu img {
    width: 100%;
    object-fit: cover;
    height: 250px;
    border-radius: 8px 8px 0 0;
}

.actu_infos {
    background-color: var(--cl-light-blue);
    padding: 1.25rem 2.5rem 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.actu__date {
    color: var(--cl-black);
    font-size: 12px;
}

.actu__tags {
    gap: 6px;
}

.actu__tags .tag {
    background-color: var(--cl-blue-green);
    color: var(--cl-beige);
    padding: 6px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
}

.actu__title {
    color: var(--cl-black);
    font-family: var(--ff-bold);
    font-weight: 900;
    font-size: clamp(1.1rem, 3vw, 1.75rem);
}

.actu__fake_link {
    margin-top: auto;
    color: var(--cl-blue-green);
    font-weight: 600;
}

.actu__link {
    position: absolute;
    inset: 0;
    z-index: 4;
}

/* Section parcours */

#home_parcours {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

#home_parcours_texte {
    height: 100%;
    display: grid;
    place-content: center;
}

#map {
    width: 100%;
    height: 800px;
    z-index: 32;
}

.artiste_numbers {
    font-size: 150%;
}

.leaflet-tile-pane {
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
}

.circle-text {
    color: white;
    font-weight: bold;
}

.leaflet-tooltip {
    background-color: transparent !important;
    color: var(--cl-white) !important;
    font-family: var(--ff-semibold) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: none !important;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: var(--cl-green) !important;
}


.leaflet-popup.lieu_pop_up.leaflet-zoom-animated {
    width: 250px !important;
}

.lieu_pop_up .leaflet-popup-content-wrapper,
.lieu_pop_up .leaflet-popup-tip {
    background-color: var(--cl-black) !important;
}

.lieu_pop_up__name {
    color: var(--cl-white);
    font-family: var(--ff-medium);
    font-family: 600;
    font-size: 14px;
    line-height: 146%;
}

.lieu_pop_up__name::before {
    display: inline-block;
    margin-right: 10px;
    vertical-align: sub;
}

.lieu_pop_up__name[data-lieu_picto='Point de vue']::before {
    content: url(../images/point_de_vue.svg);
}

.lieu_pop_up__name[data-lieu_picto='Musée']::before {
    content: url(../images/musee.svg);
}

.lieu_pop_up__name[data-lieu_picto='Monument historique']::before {
    content: url(../images/picto_monument.svg);
}

.lieu_pop_up__name[data-lieu_picto='Musée']::before {
    content: url(../images/musee.svg);
}

.lieu_pop_up__name[data-lieu_picto="Bureau de l'Office de Tourisme intercommunal"]::before {
    content: url(../images/musee.svg);
}

.lieu_pop_up__name[data-lieu_picto='Château visitable']::before {
    content: url(../images/musee.svg);
}

.lieu_pop_up__name[data-lieu_picto='Église/Cathédrale visitable']::before {
    content: url(../images/musee.svg);
}

.pop_up_icon {
    transition: all 200ms ease-in-out;
}

.pop_up_icon:hover {
    filter: grayscale();
}

.artistes_pop_up {
    background-color: var(--cl-green) !important;
    display: flex;
    gap: 10px;
    height: 130px !important;
    width: 300px !important;
    position: relative;
}

.artiste_pop_up__pict {
    max-width: 120px;
    max-height: 100%;
    object-fit: cover;
    flex-basis: calc(30% - 5px);
    border-radius: 8px;
}

.artiste_pop_up__info {
    flex-basis: calc(70% - 5px);
}

.artiste_pop_up__city {
    font-family: var(--ff-bold);
    font-weight: 900;
    font-size: 1.2rem;
    line-height: 100%;
    color: var(--cl-black);
}

.artiste_pop_up__name {
    font-family: var(--ff-medium);
    font-weight: 500;
    font-size: 1rem;
    line-height: 146%;
    color: var(--cl-gray);
}

.artiste_pop_up__name:after {
    content: url(../images/arrow_up.svg);
    display: block;
    margin-top: 1rem;
}

.artiste_pop_up__link {
    position: absolute !important;
    inset: 0 !important;
    z-index: 4 !important;
}

/* Section Les artistes*/
#artiste_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(calc(20% - 40px), 1fr));
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 1064px;
    margin-inline: auto;
    padding-inline: 20px;
}

#artiste_grid_mobile {
    display: none;
    flex-wrap: wrap;
    gap: 20px;
    padding-inline: 20px;
}

.grid_col {
    display: grid;
    gap: 20px;
    justify-content: center;
    position: relative;
}

.firstcol_title {
    color: var(--cl-black);
    font-family: var(--ff-bold);
    font-size: 45px;
    font-weight: 900;
    line-height: 100%;
    position: absolute;
    top: -50%;
    margin-block: 0 !important;
}

.firstcol_title_mobile {
    color: var(--cl-black);
    font-family: var(--ff-bold);
    font-size: 45px;
    font-weight: 900;
    line-height: 100%;
}

.home_artiste {
    display: grid;
    grid-template-areas: 'cell';
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    place-items: center;
    width: 200px;
    aspect-ratio: 1;
    cursor: pointer;
}

.home_artiste.mobile,
.firstcol_title_mobile {
    flex: 0 0 calc(33.33% - 14px);
}

.home_artiste>* {
    grid-area: cell;
}

.home_artiste__pict {
    width: 100%;
    object-fit: cover;
    object-position: top;
    height: 100%;
    position: absolute;
}

.home_artiste__name {
    font-family: var(--ff-bold);
    font-weight: 900;
    color: var(--cl-white);
    line-height: 100%;
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    z-index: 3;
    opacity: 0;
    transition: all 200ms ease-in-out;
}

.home_artiste__name:after {
    display: block;
    content: url(../images/arrow_up_white.svg   );
    text-align: center;
    margin-top: 10px;
}

.home_artiste__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    transition: all 200ms ease-in-out;
    opacity: 0;
    z-index: 2;
}

.home_artiste:hover .home_artiste__overlay,
.home_artiste:hover .home_artiste__name {
    opacity: 1;
}

.home_artiste__link {
    position: absolute;
    inset: 0;
    z-index: 4;
}

/*####################
### PAGE INT #######
######################*/

#archive__intro {
    padding-top: 100px;
}

#archive__intro h1 {
    color: var(--cl-black);
    font-weight: 900;
    font-size: clamp(1.5rem, 6vw, 3.5rem);
    margin-bottom: 3rem;
    z-index: 4;
    position: relative;
}


/*################
## Back to top ##
##################*/
/* #to_top {
    position: fixed;
    bottom: 2rem;
    right: 3rem;
    z-index: 3;
    color: var(--cl-yellow);
    font-size: 2.5rem;
    cursor: pointer;
} */

/*################
## Cookie banner ##
##################*/
#cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    border-top: 1px solid var(--cl-gray);
    padding: 10px 15%;
    z-index: 2000;
    background-color: #fff;
    text-align: left;
    display: none;
}

#cookie-banner a {
    color: var(--cl-dark-black);
    text-decoration: none;
}

#cookie-banner a.cookie-banner-close {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    height: 100%;
    background-color: var(--cl-dark-gray);
    color: var(--cl-white);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    text-decoration: none;
}

/* Au dessus de 1600px */
@media all and (min-width:1600px) {}

@media all and (max-width: 1600px) {}

@media all and (max-width:1500px) {}

@media all and (max-width: 1400px) {}

@media all and (max-width:1250px) {
    #bottom_footer {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}

@media all and (max-width: 1200px) {
    #menu_principal>section {
        padding: 4rem 6rem;
    }

    #menu_principal ul,
    #nav_search {
        max-width: 50%;
    }
}

@media all and (max-width: 1150px) {

    .home_artiste {
        width: 180px;
    }
}

@media all and (max-width: 1000px) {

    #menu_principal>section {
        padding: 4rem 4rem;
    }

    #menu_principal ul,
    #nav_search {
        max-width: 60%;
    }

    #carousel.actus .carousel-inner {
        gap: 1rem;
    }

    .actu {
        flex: 0 0 calc(50% - 10px);
    }

    .home_artiste {
        width: 150px;
    }

    .firstcol_title {
        font-size: 35px;
        top: -65%;
    }

    .firstcol_title_mobile {
        font-size: 35px;
    }
}

@media all and (max-width: 995px) {}

@media all and (max-width:900px) {

    #open_menu_wrapper,
    #close_menu_wrapper {
        padding: 0.5rem;
    }
}

@media all and (max-width: 860px) {
    #home_hero figure:not(#home_arrow_down) {
        display: none;
    }

    #home_hero_title span mark:nth-child(2) {
        text-align: left;
    }

    #home_arrow_down {
        position: initial;
        padding-left: var(--hero_margin_left);
        margin-top: 15px;
    }

    #home_hero_title>mark {
        margin-bottom: 4rem;
    }

    #home_hero_title>mark::after {
        background-position: left;
        display: block;
        position: absolute;
        width: 100%;
        height: 200%;
        bottom: 100%;
        top: 100%;
        left: 0;
        right: 100%;
        margin-left: 0;
    }

    #artiste_grid {
        display: none;
    }

    #artiste_grid_mobile {
        display: flex;
    }
}

@media all and (max-width: 791px) {
    #menu_principal>section {
        padding: 2rem;
    }

    #menu_principal ul,
    #nav_search {
        max-width: 80%;
    }

    #home_parcours {
        grid-template-columns: repeat(1, 1fr);
    }

    #home_parcours_texte {
        padding: 70px 20px;
        place-content: inherit;
    }
}


@media all and (max-width:781px) {
    .wp-block-spacer:not(.no_modify_height) {
        max-height: 80px;
    }
}


@media all and (max-width: 700px) {
    .actu {
        flex: 1 0 85%;
        margin-inline: auto;
    }
}

@media all and (max-width: 600px) {

    #home_hero {
        --hero_margin_left: 40px;
    }

    #menu_principal ul:not(#menu-menu-reseaux-sociaux),
    #nav_search {
        max-width: 90%;
        padding-top: 50px;
    }

    .green_button_link a {
        font-size: 1rem;
    }

    .wp-block-spacer:not(.no_modify_height) {
        max-height: 50px;
    }
}

@media all and (max-width: 550px) {
    #footer__menu_legals ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    #footer__menu_legals .imageurs {
        margin-left: 0;
    }
}

@media all and (max-width: 500px) {
    .gap_80 {
        gap: 40px;
    }

    #nav_search {
        padding-top: 0px;
    }


    #home_hero {
        --hero_margin_left: 20px;
    }

    .home_artiste.mobile,
    .firstcol_title_mobile {
        flex: 0 0 calc(50% - 10px);
    }

    .carousel_controls {
        display: none;
    }

}

@media all and (max-width: 450px) {}

@media all and (max-width:400px) {}