.page-content {
    min-height: 500px;
}

.home .page-cintent {
    min-height: auto;
}

#wpc-weather .today {
    display: none;
}

section.main-content {
    position: relative;
    background: var(--maincontent);
}

section.main-content .container-fluid {
    padding: 0 5%;
    position: relative;
    z-index: 2;
}

section.main-content .ancres {
    position: sticky;
    top: 100px;
    z-index: 3 !important;
    padding: 20px 0 30px 0;
    background: var(--maincontent);
    font-size: 0;
}

section.main-content .ancres a.btn {
    position: relative;
    color: #bcb9af;
    padding: 9px 20px;
    margin: 0 -1px -2px;
    background: #f2f0e9;
    -webkit-box-shadow: inset 0px 0px 0px 2px #bcb9af;
    -moz-box-shadow: inset 0px 0px 0px 2px #bcb9af;
    box-shadow: inset 0px 0px 0px 2px #bcb9af;
    border: 0;
}

section.main-content .ancres a.btn:hover, section.main-content .ancres a.btn.active {
    background: #bcb9af;
    color: #fff;
    outline: 0;
    -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

section.main-content .sommaire a.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    line-height: 1.3rem;
    text-align: center;
    text-transform: uppercase;
    min-height: 80px;
}

body.page-template-page-vivre section.main-content .sommaire a.btn,
body.page-template-page-vivre-details section.main-content .sommaire a.btn {
    border-color: var(--vivre);
    color: var(--vivre);
}

body.page-template-page-mairie section.main-content .sommaire a.btn,
body.page-template-page-mairie-details section.main-content .sommaire a.btn {
    border-color: var(--mairie);
    color: var(--mairie);
}

body.page-template-page-decouvrir section.main-content .sommaire a.btn,
body.page-template-page-decouvrir-details section.main-content .sommaire a.btn {
    border-color: var(--decouvrir);
    color: var(--decouvrir);
}

body.page section.main-content .sommaire a.btn:hover {
    color: #FFFFFF;
}

section.main-content .linking .title {
    font-family: "Poppins";
    font-size: 2rem;
    line-height: 42px;
    color: #535353;
    margin: 0 0 35px;
}

section.today {
    text-align: center;
    padding: 50px 0;
}

section.header {
    padding: 240px 0 140px 0;
    text-align: center;
}

section.header .title, section.header h1 {
    font-size: 3rem;
    color: var(--blanc);
    line-height: 1.2;
    text-transform: uppercase;
    margin: 1rem;
    font-weight: bold;
}

/*BREADCRUMB*/

.bread-crumb {
    padding: 0 5%;
    background-color: var(--blanc);
}

.bread-crumb .fontsize a {
    display: inline-block;
    vertical-align: top;
    border-left: 1px solid var(--blanc);
    padding: 1.2rem;
    font-size: 0.875rem;
    color: #fff;
    line-height: 1.2rem;
    background: var(--bleufonce);
}

.bread-crumb .links {
    padding: 20px 15px;
    font-size: 0.8rem;
    color: #000;
    line-height: 1rem;
}

.bread-crumb .links a, .bread-crumb span {
    color: #303030;
    display: inline-block;
    padding: 0 0.8rem;
}

.bread-crumb .links i {
    display: inline-block;
    color: inherit
}

.bread-crumb .links a.current-menu-parent {
    text-transform: uppercase;
}

body.page-template-page-mairie .bread-crumb .links {
    color: var(--mairie);
}

body.page-template-page-mairie .bread-crumb .links a.current-menu-parent,
body.page-template-page-mairie .bread-crumb .links a {
    color: var(--mairie) !important;
}

body.page-template-page-mairie h2,
body.page-template-page-mairie .infos-sup i {
    color: var(--mairie);
}

body.page-template-page-vivre h2,
body.page-template-page-vivre .infos-sup i {
    color: var(--vivre);
}

body.page-template-page-vivre .bread-crumb .links {
    color: var(--vivre);
}

body.page-template-page-vivre .bread-crumb .links a.current-menu-parent,
body.page-template-page-vivre .bread-crumb .links a {
    color: var(--vivre) !important;
}

body.page-template-page-decouvrir h2, body.page-template-page-decouvrir .infos-sup i {
    color: var(--decouvrir);
}

body.page-template-page-decouvrir .bread-crumb .links {
    color: var(--decouvrir);
}

body.page-template-page-decouvrir .bread-crumb .links a.current-menu-parent,
body.page-template-page-decouvrir .bread-crumb .links a {
    color: var(--decouvrir) !important;
}


section.news-content::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: #e9e6dd;
}

@media screen and (min-width: 992px) {
    section.news-content::before {
        width: 50%;
    }
}

section.main-content .sidebar {
    padding: 3.125rem 0;
    z-index: 1
}

section.main-content .sidebar .wrapper {
    position: sticky;
    top: 100px;
    padding: 2rem 1rem;
    text-align: left;
}

section.main-content .sidebar .wrapper .categ {
    background-color: var(--jaune);
    padding: 0.25rem 0.75rem;
    display: inline-block;
    margin: 1rem 0;
    font-size: 0.8rem;
    font-weight: 500;
}

section.main-content .content {
    background: var(--maincontent);
    padding: 50px 5%;
    text-align: left;
    position: relative;
    z-index: 2
}

section.main-content .content img {
    margin-bottom: 1rem;
}


section.main-content .sidebar ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

section.main-content .sidebar ul li {
    text-align: left;
    font-size: 0.85rem;
    display: block;
}

section.main-content .sidebar ul li a {
    display: flex;
    justify-content: space-between;
    color: var(--blanc);
    padding: 9px 30px 9px 15px;
    margin: 0;
}

section.main-content .sidebar ul li a:hover {
    color: #000000;
}

.page-template-page-decouvrir section.main-content .sidebar ul li a {
    color: #0D3F35;
}

section.main-content .sidebar ul li > a .toggle-menu {
    visibility: hidden;
}

section.main-content .sidebar ul li.menu-item-has-children > a .toggle-menu {
    display: inline-block;
    background: url(../img/ico-plus.svg) no-repeat center center;
    background-size: 18px 18px;
    width: 25px;
    height: 25px;
    visibility: visible;
    position: relative;
    z-index: 5;
    cursor: pointer;
}

section.main-content .sidebar ul li.menu-item-has-children > a .toggle-menu:hover {
    opacity: 0.8;
}

section.main-content .sidebar ul li:hover, section.main-content .sidebar ul li.menu-item-has-children:hover {
    background-color: rgba(0, 0, 0, .1);
}

section.main-content .sidebar ul.sub-menu li:hover {
    background-color: transparent
}

section.main-content .sidebar ul li ul.sub-menu {
    display: none;
    padding: 0.4rem;
    margin-left: 1rem;
}

section.main-content .sidebar ul li ul.sub-menu.open {
    display: block;
}

section.main-content .sidebar li.current-menu-item {
    background-color: rgba(0, 0, 0, .2);
}

section.main-content .sidebar ul li.menu-item-has-children > a.is-active .toggle-menu {
    background-image: url(../img/ico-minus.svg);
}

section.main-content .sidebar ul li.current-menu-item.menu-item-has-children > a,
section.main-content .sidebar ul li.current_page_ancestor > a {
    font-weight: bold;
}

section.main-content .sidebar ul.sub-menu li a {
    background: none !important
}

section.main-content .sidebar ul.sub-menu li.current-menu-item {
    font-weight: 500;
}

section.main-content .linking {
    margin: 3rem 0 0 0;
}

section.main-content .linking .title {
    font-size: 2.125rem;
    color: var(--noir);
    margin: 0 0 35px;
    font-weight: bold;
}

section.main-content .linking a.bloc-type .wrapper, .bloc-type .wrapper {
    display: block;
    background: var(--blanc);
    padding: 1.25rem;
    text-align: center;
    height: auto;
}

a.bloc-type .wrapper h2, .bloc-type .wrapper h2, a.bloc-type .wrapper h3, .bloc-type .wrapper h3, a.bloc-type .wrapper h4, .bloc-type .wrapper h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: 500;
    margin: 0;
    min-width: 100%;
}

body.page-template-page-mairie section.main-content ul.sub-menu li a,
body.page-template-page-vivre section.main-content ul.sub-menu li a,
body.page-template-page-decouvrir section.main-content ul.sub-menu li a {
    background-image: none !important;
    background-color: transparent !important;
}

/*SHARE SECTION*/
section.main-content .share a {
    display: inline-block;
    vertical-align: middle;
    height: 40px;
    width: 40px;
    margin: .5rem;
}

section.main-content .share a.facebook {
    background: url(../img/ico-facebook.png) no-repeat center center / cover;
}

section.main-content .share a.twitter {
    background: url(../img/ico-twitter.png) no-repeat center center / cover;
}

section.main-content .share a.email {
    background: url(../img/ico-email.png) no-repeat center center / cover;
}

section.main-content .share a.google {
    background: url(../img/ico-google.png) no-repeat center center / cover;
    display: none;
}

section.main-content .share {
    border-top: 1px solid #cecbc3;
    border-bottom: 1px solid #cecbc3;
    padding: 15px 0;
    margin: 50px 0 0 0;
    font-size: 0.8rem;
    color: var(--noir);
    font-weight: 500;
    text-transform: uppercase;
    text-align: left;
}

body.page-template-page-mairie section.main-content::before,
body.page-template-page-vivre section.main-content::before,
body.page-template-page-decouvrir section.main-content::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 50%;
    height: 100%;
}

body.page-template-page-mairie section.main-content::before {
    background: var(--mairie);
}

body.page-template-page-vivre section.main-content::before {
    background: var(--vivre);
}

body.page-template-page-decouvrir section.main-content::before {
    background: var(--decouvrir);
}

body.page-template-page-recherche section.main-content .title, body.page-template-page-faq section.main-content .title, body.page-template-page-contact section.main-content .title {
    padding: 0 0 40px;
    font-size: 2.25rem;
    line-height: 2.5rem;
    color: var(--bleufonce);
}

/*TABS*/

.tabs .group {
    margin-bottom: 20px;
}

.tabs .group a.trigger {
    display: block;
    position: relative;
    font-size: 1.5rem;
    line-height: 1.875rem;
    color: var(--noir);
    font-weight: 500;
    padding: 35px 110px 35px 30px;
    background: var(--blanc);
    position: relative;
}

.collapse {
    display: none;
}

.tabs .group .wrapper {
    background: var(--blanc);
    padding: 30px 30px 20px;
}

.tabs .group a.trigger span {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    height: 100%;
    width: 100px;
    background: var(--blanc) url(../img/ico-plus-tab.svg) no-repeat center center;
}

.tabs .group a.trigger.collapsed span {
    background: var(--jaune) url(../img/ico-minus-tab.svg) no-repeat center center;
}


@media screen and (min-width: 992px) {
    .bread-crumb {
        padding: 0 10%;
    }

    section.main-content .container-fluid {
        padding-left: 10%;
        padding-right: 10%;
    }

    section.main-content .ancres a.btn:hover, section.main-content .ancres a.btn.active {
        color: #fff;
    }

    section.main-content .ancres a.btn span.text {
        position: relative;
        z-index: 2;
    }

    section.main-content .ancres a.btn span.bar {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        width: 0;
        height: 100%;
        background: var(--noir);
    }

    body.page-template-page-mairie section.main-content .ancres a.btn span.bar,
    body.page-template-page-mairie-details section.main-content .ancres a.btn span.bar {
        background: var(--mairie);
    }

    body.page-template-page-vivre section.main-content .ancres a.btn span.bar,
    body.page-template-page-vivre-details section.main-content .ancres a.btn span.bar {
        background: var(--vivre);
    }

    body.page-template-page-decouvrir section.main-content .ancres a.btn span.bar,
    body.page-template-page-decouvrir-details section.main-content .ancres a.btn span.bar {
        background: var(--decouvrir);
    }
}


@media screen and (min-width: 1200px) {
    section.search {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 999;
        width: 100%;
        height: 100%;
        background: rgba(18, 31, 57, 0.95);
        overflow: auto;
        padding: 100px 20px 50px;
    }

    section.search h2 {
        font-weight: 300;
        text-align: left;
        font-size: 2.5rem;
        color: var(--blanc);
    }

    section.search form {
        position: relative;
    }

    section.search form input[type="text"] {
        display: block;
        font-size: 24px;
        line-height: 30px;
        color: #121f39;
        font-weight: 500;
        padding: 30px 90px 30px 30px;
        border: 0;
        width: 100%;
    }

    section.search form input[type="submit"] {
        position: absolute;
        z-index: 2;
        top: 0;
        right: 0;
        display: block;
        border: 0;
        width: 90px;
        height: 90px;
        text-indent: -9999px;
        background: url(../img/ico-search-b.svg) no-repeat center center;
    }

    section.search a.btn-close {
        display: block;
        position: absolute;
        top: 4%;
        left: 96%;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
        z-index: 2;
        width: 50px;
        height: 50px;
        background: url(../img/ico-close.svg) no-repeat center center;
        background-size: cover;
        border-radius: 50%;
        border: 2px solid var(--blanc);
    }
}


@media screen and (min-width: 1921px) {
    section.main-content .container-fluid, .bread-crumb {
        padding-left: 15%;
        padding-right: 15%;
    }
}

@media screen and (min-width: 2500px) {
    section.main-content .container-fluid, .bread-crumb {
        padding-left: 20%;
        padding-right: 20%;
    }
}

/*SEARCH*/
.main-search {
    position: relative;
    background: #f2f0e9;
    padding: 50px 0;
}

.main-search .title {
    padding: 0 0 40px;
    font-family: 'Poppins';
    font-size: 36px;
    line-height: 40px;
    color: #535353;
}

.search-results .results {
    margin-bottom: 50px;
    border-bottom: 1px solid #cecbc3;
}

.search-results form {
    position: relative;
    width: 80%;
    margin: 0 auto;
}


.search-results input[type="text"] {
    display: block;
    font-size: 24px;
    line-height: 30px;
    color: #121f39;
    font-weight: 500;
    padding: 30px 90px 30px 30px;
    border: 0;
    width: 100%;
}

.search-results form input[type="submit"] {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    display: block;
    border: 0;
    width: 90px;
    height: 90px;
    text-indent: -9999px;
    background: url(../img/ico-search-b.svg) no-repeat center center;
}

.results a {
    position: relative;
    display: block;
    font-size: 24px;
    color: #121f39;
    line-height: 30px;
    font-weight: 500;
    padding: 35px 20px;
    border-top: 1px solid #cecbc3;
}

.results .nav-links a {
    display: inline-block;
    border: none;
    padding: 5px 10px;
}

.results a:hover {
    background: #ffed00;
}

.results a span {
    display: inline-block;
    text-transform: uppercase;
    font-size: 14px;
    line-height: 22px;
    color: #333;
    font-weight: 400;
    margin-top: 15px;
}

.results .nav-links span.current {
    font-size: 24px;
    color: #121f39;
    line-height: 30px;
    font-weight: 500;
    padding: 5px 10px;
    background: #ffed00;
}

/*AGENDA*/
.main-agenda, .main-news {
    background: #f2f0e9;
}

.main-agenda .filters {
    margin: 2rem 0;
}
