/* ----- GENERAL ------ */
body {
    font-family: 'Avenir', sans-serif;
    overflow-x: hidden;
}

.center {
    text-align: center;
}

.hidden {
    display: none;
}

h1 {
    font-size: 3.2rem;
    font-weight: 700;
}

h2 {
    font-size: 2.4rem;
    font-weight: 600;
}

h3 {
    font-size: 1.4rem;
    font-weight: 500;
}

#form-response {
    font-style: italic;
    font-size: 1.2rem;
    padding-bottom: 1rem;
}

.error {
    color: red;
}

h1,
h2,
h2 {

    line-height: 1;
    word-break: break-word;
}

p {
    font-size: 1.2rem;
}

.right-align {
    text-align: right;
}

.link-arrow {
    display: inline-block;
    padding-right: 0.5rem;
    font-size: 1.8rem;
    vertical-align: middle;
}

.orange {
    color: #f1880b;
}

.w-full,
.w-full>img {
    width: 100%;
}

.w-two-third {
    width: 50%;
}

.w-half {
    width: 50%;
}

.w-third {
    width: 33%;
}

.w-quarter {
    width: 25%;
}

/* ----- FLEX-ROW-WIDTH ------ */
.gap-1 {
    column-gap: 1rem;
}

.gap-1 .w-two-third {
    width: calc(66% - 1rem);
}

.gap-1 .w-half {
    width: calc(50% - 1rem);
}

.gap-1 .w-third {
    width: calc(33% - 1rem);
}

.gap-1 .w-quarter {
    width: calc(25% - 1rem);
}

.gap-2 {
    column-gap: 2rem;
}

.gap-2 .w-two-third {
    width: calc(66% - 2rem);
}

.gap-2 .w-half {
    width: calc(50% - 2rem);
}

.gap-2 .w-third {
    width: calc(33% - 2rem);
}

.gap-2 .w-quarter {
    width: calc(25% - 2rem);
}

/* ----- HEADER ------ */
#main-header {
    position: relative;
    height: 70px;
    padding: 0 50px;
    z-index: 2;
}

#header-logo {
    background-color: #fff;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    float: left;
}

#header-logo img {
    width: 260px;
}

#main-header nav {
    font-size: 1.1rem;
    float: right;
    height: 100%;
}

#main-header nav ul {
    display: flex;
    gap: 30px;
    height: 100%;
    align-items: center;
}

button.featured,
a.featured {
    background-color: #f1880b;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    padding: 8px 20px;
}

/* ----- MAIN ------ */
.with-background {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right;
}

main {
    min-height: calc(100vh - 282px);
    position: relative;
    z-index: 1;
    margin-bottom: 100px;
}

main>div {
    padding: 0 50px;
}

.wrapper {
    padding-top: 50px;
    /* padding-bottom: 50px; */
}

.wrapper.title {
    padding-bottom: 0px;
}

.wrapper .content {
    position: relative;
    padding: 0 50px;
}

.wrapper>.content,
.wrapper>.fit-content,
.content-small {
    margin: 0 auto;
    max-width: 850px;
}

.fit-content {
    border-radius: 30px;
    overflow: hidden;
    margin: 0 auto;

}

.flex-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.flex-wrapper.row {
    flex-direction: row;
}

/* ----- CARROUSEL ------ */
.carrousel-wrapper {
    position: relative;
}

.carrousel-item {
    background-size: cover;
    background-position: center;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
    width: 100%;
}

.carrousel-item.fade {
    animation-name: fadeAnimation;
}

@keyframes fadeAnimation {

    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* ----- CUSTOM TEXT ------ */
.custom-text {
    margin-bottom: 75px;
    padding-bottom: 50px;
}

.custom-text .title {
    margin: 0 auto;
    padding-bottom: 50px;
}

.custom-text h1 {
    font-weight: 500;
}

.custom-text .flex-wrapper {
    margin: 50px 0;
    gap: 100px;
}

.custom-text>.content {
    max-width: 670px;
}

/* ----- FILE ------ */
.wrapper.file a {
    font-size: 1.2rem;
}

/* ----- TEXT ------ */
.wrapper.text .content {
    padding: 0 50px;
}

/* ----- QUOTE ------ */
blockquote {
    position: relative;
    font-size: 1.4rem;
    font-weight: 900;
    max-width: 360px;
    padding: 50px 0;
    margin: 0 auto;
    text-align: center;
}

blockquote:before,
blockquote:after {
    content: '';
    position: absolute;
}

blockquote:before {
    top: 30px;
    left: -48px;
    background: url('/quote_left_red.png') no-repeat center center;
    background-size: cover;
    height: 38px;
    width: 48px;
}

blockquote.white:before {
    background: url('/quote_left_white.png') no-repeat center center;
}

blockquote:after {
    bottom: 30px;
    right: -48px;
    background: url('/quote_left_red.png') no-repeat center center;
    background-size: cover;
    height: 38px;
    width: 48px;
}

blockquote.white:after {
    background: url('/quote_left_white.png') no-repeat center center;
}

/* ----- PAGE ACTU ------ */
.actualites .title .content {
    padding: 0 0 0 50px;
    width: 100%;
    max-width: 100%;
}

.actualite .wrapper {
    padding-top: 25px;
}

.actualite .post-list {
    padding-top: 75px;
}

/* ----- POST ------ */
.post .fit-content {
    border-radius: 20px;
    overflow: hidden;
    margin: 50px 0;
}

/* ----- POST LIST ------ */

.post-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 100px 50px;
    width: 100%;
}

.post-list .title {
    padding-bottom: 50px;
}

.post-content h3 {
    line-height: 1;
    padding-bottom: 0.5rem;
}

.posts.flex-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
    align-items: stretch;
}

.flex-wrapper.post {
    position: relative;
    align-items: flex-start;
    overflow: hidden;
    justify-content: space-between;
}

.post-title:hover {
    text-decoration: underline;
}

.post-image-background {
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    height: 280px;
    width: 100% !important;
}

.post-content {
    padding: 0 0 2rem;
    width: auto;
}

.post-link {
    display: inline-block;
    font-size: 1.1rem;
    padding-top: 1rem;
    position: absolute;
    bottom: 70px;
}

.bottom-link {
    text-align: right;
}

.share-box {
    background: #01633a;
    color: #fff;
    flex-direction: row;
    font-size: 1.2rem;
    height: 60px;
    line-height: 60px;
    padding: 0 1rem;
    position: absolute;
    bottom: 0;
}

.share-block {
    position: relative;
    border-radius: 20px;
    width: auto;
    width: 320px;
    float: right;

}

.share-icons {
    flex-grow: 1;
    text-align: right;
}

/* ----- PAGINATION ------ */
nav[role=navigation] {
    padding: 1rem 0;
    width: 100%;
}

nav[role=navigation]>span {
    opacity: .2;
}

/* ----- LIST ------ */
.list-content.flex-wrapper,
fieldset.flex-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start
}

.list.wrapper .title {
    padding: 30px 0;
}

.list-item {
    border: 1px solid #f3f3f8;
    border-radius: 10px;
    height: 135px;
    overflow: hidden;
}

.list-item a {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    height: 100%;
}

/* ----- FORM ------ */
form {
    margin-bottom: 100px;
}

form:after {
    clear: both;
    content: "";
    display: block;
}

.input-wrapper {
    margin: .5rem 0;
}

[multiple],
[type=date],
[type=datetime-local],
[type=email],
[type=month],
[type=number],
[type=password],
[type=search],
[type=tel],
[type=text],
[type=time],
[type=url],
[type=week],
input:where(:not([type])),
select,
textarea {
    background: #f3f3f8;
    border: none;
    /* border: 1px solid #f3f3f8; */
    border-radius: 10px;
    width: 100%;
}

[type=checkbox],
[type=radio] {
    background: #f3f3f8;
    border: none;
    color: #a91449;
    margin-right: 1rem;
}

[type=submit] {
    float: right;
    width: 140px;
}

textarea {
    height: 240px;
}


/* ----- VIDEO ------ */
.video-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
}

.video-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

/* ----- FOOTER ------ */
footer {
    background: #a91449;
    color: #fff;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 212px;
    width: 100vw;
}

footer>.flex-wrapper {
    flex-grow: 1;
    line-height: 1.6rem;
    padding: 50px;
    position: relative;
}

.social-link {
    display: inline-block;
    padding-left: .5rem;
    vertical-align: middle;
}

footer .social-link {
    display: inline-block;
    padding-left: 0;
    padding-right: .5rem;
}

footer>div .image {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top left;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
}

.mobile {
    display: none;
}

@media screen and (orientation: portrait),
screen and (max-width: 1100px) {
    main>div {
        padding: 0 3rem;
    }

    .flex-wrapper:not(.row) {
        flex-direction: column !important;
    }

    .wrapper>.content {
        min-width: auto;
    }

    .wrapper .content {
        padding: 0;
    }

    .two-columns .wrapper .content,
    .two-columns .flex-wrapper>div {
        width: 100%;
    }

    blockquote {
        width: 60vw;
    }

    .post-list.wrapper {
        padding: 50px 3rem;
    }

    .wrapper>.content,
    .wrapper>.fit-content,
    .content-small {
        min-width: auto;
        width: 100%;
    }

    .wrapper.text .content {
        padding: 0;
    }

    .post-image-background {
        width: 100% !important;
    }

    .gap-2 {
        gap: 3rem;
    }

    .w-two-third,
    .w-half,
    .w-third,
    .w-quarter {
        width: calc(50% - 2rem) !important;
    }

    footer {
        height: auto;
    }

    footer>.flex-wrapper {
        align-items: flex-start;
        padding: 3rem 0;
    }

    footer>.flex-wrapper:first-child>div {
        padding-left: 2rem;
        font-size: .8rem;
    }

    footer>.flex-wrapper:first-child>div:first-child {
        padding-bottom: 1rem;
    }

    footer>div .image {
        width: 100%;
    }
}

@media screen and (max-width: 900px) {
    .mobile {
        display: block;
    }

    .desktop {
        display: none;
    }

    #main-header {
        background: #fff;
        position: fixed;
        top: 0;
        left: 0;
        padding: 0 24px;
        width: 100vw;
    }

    #main-header #nav-trigger {
        position: absolute;
        top: 0;
        right: 0;
        padding: 15px;
        z-index: 2;
    }

    #main-header #nav-trigger svg {
        position: absolute;
        top: 15px;
        right: 15px;
        height: 40px;
        width: 40px;
    }

    #main-header.active .open,
    #main-header .close {
        display: none;
    }

    #main-header .open,
    #main-header.active .close {
        display: block;
    }

    #main-header nav {
        position: fixed;
        width: 100vw;
        background: #fff;
        height: 100vh;
        top: 0;
        left: 100vw;
        transition: left .5s;
        z-index: 1;
    }

    #main-header.active nav {
        left: 0;
    }

    #main-header nav ul {
        display: block;
        text-align: left;
        justify-content: center;
        font-size: 2rem;
        padding: 0 2rem;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        height: auto;
        width: 100%;
    }

    #main-header nav ul li {
        border: 3px solid #e0e0e5;
        border-style: solid none none;
        padding: 1rem 0;
        width: 100%;
    }

    #main-header nav ul li:last-child {
        border-style: solid none;
    }

    #main-header nav ul li a.featured {
        background-color: transparent;
        color: #f1880b;
        padding: 0;
    }
}

@media screen and (max-width: 640px) {
    #header-logo img {
        width: 210px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .posts.flex-wrapper {
        grid-template-columns: 1fr;
    }

    .w-two-third,
    .w-half,
    .w-third,
    .w-quarter {
        width: 100% !important;
    }

    .share-block {
        float: none;
        width: 100%;
    }
}