@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400..700;1,400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --white: #ffffff;
    --red: #d3232b;
    --green: #f7f9f4;
    --green-success: #a2f722;
    --green-button: #d9dcd0;
    --black: #2d3031;
    --gray: #4a5153;
    --container-max-width: 1200px;
    --transition: all 0.5s;
    --mobile-padding: 30px;
}

html,
body {
    color: var(--gray);
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-size: 16px;
    margin: 0;
    padding: 0;
    position: relative;
}

.button,
a.button,
button {
    background-color: var(--red);
    color: var(--white);
    text-transform: uppercase;
    border: 2px solid var(--red);
    transition: var(--transition);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    padding: 15px 38px;
    border-radius: 100px;
    letter-spacing: 2px;
    display: inline-block;
    text-decoration: none;
}

.button:hover,
a.button:hover,
button:hover {
    background-color: var(--white);
    color: var(--red);
}

ul {
    padding-left: 16px;
}

h2 {
    font-family: "Libre Baskerville", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-size: 32px;
    line-height: 38px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

h2 .txt-italic {
    text-transform: lowercase;
    font-weight: normal;
}

*+p,
*+ul {
    margin-top: 17px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    padding: 20px 15px;
    border-radius: 10px;
    width: 100%;
    font-weight: 500;
}

textarea {
    height: 100%;
}

/* Helpers */
.bold {
    font-weight: bold;
}

.center {
    text-align: center;
}

.txt-italic {
    font-style: italic;
}

.txt-uppercase {
    text-transform: uppercase;
}

.txt-white {
    color: var(--white);
}

.txt-size-18 {
    font-size: 18px;
    line-height: 25px;
}

.txt-size-20 {
    font-size: 20px;
    line-height: 29px;
}

.txt-size-21 {
    font-size: 21px;
    line-height: 29px;
}

.txt-size-29 {
    font-size: 29px;
    line-height: 37px;
}

.font-w-medium {
    font-weight: 500;
}

.font-w-semi-bold {
    font-weight: 600;
}

.font-baskerville {
    font-family: "Libre Baskerville", serif;
    font-optical-sizing: auto;
}

.bg-color-white {
    background-color: var(--white);
}

.bg-color-green {
    background-color: var(--green);
}


/* Commom classes */
.container {
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--mobile-padding);
    padding-right: var(--mobile-padding);
}

@media screen and (min-width: 1230px) {
    .container {
        padding-left: 0;
        padding-right: 0;
    }
}

.double-left-border-big,
.top-double-bar {
    position: relative;
}

.double-left-border-big:before,
.top-double-bar:before {
    position: absolute;
    display: block;
    font-size: 0;
    content: " ";
    line-height: 0;
}

.double-left-border-big {
    padding-left: 50px;
}

@media screen and (min-width: 700px) {
    .double-left-border-big {
        padding-left: 78px;
    }
}


.double-left-border-big:before {
    background-image: url(../img/big-double-bar.png);
    height: 347px;
    width: 33px;
    left: 0;
    bottom: 0;
}

.top-double-bar:before {
    background-image: url(../img/double-bar.png);
    height: 135px;
    width: 13px;
    top: -80px;
    left: 5px;
}

@media screen and (min-width: 700px) {

    .top-double-bar:before {
        left: 30px;
    }
}

/* Side button */
a.side-button {
    text-decoration: none;
    color: var(--black);
    font-size: 19px;
    text-transform: uppercase;
    background-color: var(--green-button);
    border: 2px solid var(--white);
    border-left-color: var(--green-button);
    border-right-color: var(--green-button);
    display: inline-block;
    position: fixed;
    padding: 20px 15px;
    line-height: 22px;
    bottom: 0;
    right: 0;
    left: 0;
    text-align: center;
    z-index: 100;

    -webkit-box-shadow: 1px 6px 10px 1px rgba(0, 0, 0, 0.28);
    box-shadow: 1px 6px 10px 1px rgba(0, 0, 0, 0.28);
}

a.side-button br {
    display: none;
}

@media screen and (min-width: 768px) {
    a.side-button {
        border-left-color: var(--white);
        border-right-color: var(--white);
        border-radius: 39px;
        top: calc(50% - 42px);
        right: -35px;
        left: auto;
        bottom: auto;
        padding: 15px 50px 15px 27px;
    }

    a.side-button br {
        display: block;
    }
}

/* Header */
header {
    background-image: url(../img/chateau.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding-top: 60px;
    padding-bottom: 162px;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 3px;
}

@media screen and (min-width: 768px) {
    header {
        margin-bottom: 64px;
    }
}


header img {
    margin-bottom: 32px;
}

header img+p+p {
    margin-top: 20px;
    margin-bottom: 23px;
}

header a.button {
    font-size: 20px;
}

@media screen and (min-width: 768px) {
    header {
        padding-left: 0;
        padding-right: 0;
    }
}

@media screen and (max-width: 768px) {
    header .txt-size-29 {
        font-size: 21px;
        line-height: 26px;
    }

    header .txt-size-21 {
        font-size: 15px;
        line-height: 20px;
    }

    a.button {
        width: 100%;
        text-align: center;
    }
}

/* seminaires/evenements */
.seminaires-evenements {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 107px;
}

.seminaires-evenements.container {
    padding-left: 0;
    padding-right: 0;
}

.seminaires-evenements>* {
    width: 100%;
}

.seminaires-evenements h2 {
    color: var(--black);
}

.seminaires-evenements .button {
    margin-top: 41px;
}

.seminaires-evenements-content {
    padding: 25px var(--mobile-padding) 25px var(--mobile-padding);
}

.seminaires-evenements div:first-child {
    padding: 0;
    z-index: 1;
}

.seminaires-evenements div:first-child+div {
    z-index: 2;
}

@media screen and (min-width: 768px) {

    .seminaires-evenements {
        flex-wrap: nowrap;
    }

    .seminaires-evenements div:first-child+div {
        margin-left: -184px;
        margin-top: 63px;
    }

    .seminaires-evenements-content {
        padding: 25px 25px 25px 69px;
    }
}

/* Lieu */
.lieu {
    padding-top: 79px;
    padding-bottom: 87px;
    text-align: center;
}

.lieu h2 {
    margin-bottom: 46px;
    color: var(--black);
}

.lieu .types {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 53px;
}

.lieu .types .card {
    width: 100%;
}

.lieu .types .card-top {
    display: block;
    height: 270px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.lieu h3 {
    text-align: left;
    padding: 27px 27px 51px 27px;
    text-transform: uppercase;
    font-size: 18px;
    line-height: 23px;
    font-weight: 600;
    background-color: var(--white);
}

@media screen and (min-width: 768px) {
    .lieu .types {
        flex-wrap: nowrap;
    }

    .lieu .types .card {
        width: 33.33%;
    }
}

/* PROLONGEZ votre événement */
.prolongez {
    padding-top: 92px;
    margin-bottom: 90px;
}

.prolongez>.container {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.prolongez>.container div:first-child {
    padding: 0 0 51px 45px;
    order: 2;
    width: 100%;
}

.prolongez>.container div:first-child+div {
    order: 1;
    width: 100%;
}

.prolongez>.container div:first-child:before {
    top: -50px;
}

.prolongez ul {
    margin-bottom: 55px;
}

.prolongez ul li+li {
    margin-top: 16px;
}

.prolongez a.button {
    padding: 16px 20px;
}

.prolongez img {
    margin: 0 auto;
}

@media screen and (min-width: 768px) {
    .prolongez>.container {
        flex-wrap: nowrap;
    }

    .prolongez>.container div:first-child {
        padding: 51px 50px 51px 67px;
        order: 1;
        width: 50%;
    }

    .prolongez>.container div:first-child+div {
        order: 2;
        width: 50%;
    }

    .prolongez>.container div:first-child:before {
        top: -10px;
    }

    .prolongez a.button {
        padding: 16px 90px;
    }
}

@media screen and (min-width: 1200px) {
    .prolongez>.container {
        gap: 150px;
    }
}


/* Galerie photos */
.galerie-photos {
    margin-bottom: 83px;
}

.galerie-photos.container {
    padding-left: 5px;
    padding-right: 5px;
}



.galerie-photos h2 {
    color: var(--black);
    font-size: 34px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 44px;
}



.gallery .image {
    display: block;
    text-decoration: none;
    width: auto;
    margin: 0;
    opacity: 1;
    transition: opacity 0.6s ease-out;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    overflow: hidden;
    cursor: pointer;
}

/* Ligne de 3 images */
.gallery .image:nth-child(5n+1),
.gallery .image:nth-child(5n+2),
.gallery .image:nth-child(5n+3),
.gallery .image:nth-child(5n+4) {
    grid-column: span 3 !important;
    height: 135px;
}

/* Ligne de 2 images */

.gallery .image:nth-child(5n+5) {
    grid-column: span 6 !important;
    height: 276px;
}

.gallery .image:nth-child(n+6) {
    display: none;
}

@media screen and (min-width: 768px) {
    .galerie-photos.container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .gallery {
        gap: 15px;
    }

    /* Ligne de 3 images */
    .gallery .image:nth-child(5n+1),
    .gallery .image:nth-child(5n+2),
    .gallery .image:nth-child(5n+3) {
        grid-column: span 2 !important;
        height: 282px;
    }

    /* Ligne de 2 images */
    .gallery .image:nth-child(5n+4),
    .gallery .image:nth-child(5n+5) {
        grid-column: span 3 !important;
        height: 486px;
    }
}

@media screen and (min-width: 1230px) {
    .galerie-photos.container {
        padding-left: 0;
        padding-right: 0;
    }
}

.gallery .description {
    opacity: 0;
    transition: all 0.5s;
    height: 100%;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.72);
    position: relative;
    -webkit-transition: -webkit-all 0.35s;
    transition: all 0.35s;
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.gallery .description:before {
    background-image: url(../img/double-bar-white.png);
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    content: " ";
    font-size: 0;
    line-height: 0;
    height: 95px;
    width: 13px;
    top: 0;
    left: 10%;
    position: absolute;
    opacity: 0;

    -webkit-transition: -webkit-all 0.2s;
    transition: all 0.2s;
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
}

.gallery .description .title {
    color: var(--white);
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 12px;
    position: relative;
    text-align: center;
}

.gallery .description .title:before {
    display: block;
    position: absolute;
    content: " ";
    font-size: 0;
    line-height: 0;
    width: 46px;
    height: 1px;
    background-color: var(--white);
    bottom: 0;
    left: calc(50% - 23px);
}

.gallery .image:hover .description {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.gallery .image:hover .description:before {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-transition-delay: 0.35s;
    transition-delay: 0.35s;
    opacity: 1;
}

button.gallery-load-more,
button.gallery-load-more:hover {
    background-color: transparent;
    border: 0;
    color: var(--black);
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 81px;
    padding-bottom: 70px;
    background-image: url(../img/load-more.png);
    background-repeat: no-repeat;
    background-position: center bottom;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* FAQ */
.faq {
    padding: 80px 0;
}

.faq h2 {
    color: var(--black);
    font-size: 34px;
}

.accordion {
    margin-top: 73px;
    margin-bottom: 50px;
}

.accordion .accordion-item {
    background-color: var(--white);
    padding: 0 20px;
    border-radius: 10px;
}

.accordion .accordion-item+.accordion-item {
    margin-top: 10px;
}

.accordion .title {
    font-size: 20px;
    padding: 25px 0;
    cursor: pointer;
    position: relative;
    padding-right: 40px;
}

.accordion .accordion-item.open .title {
    font-weight: 600;
}

.accordion .title:before {
    background-image: url(../img/accordion-icon.png);
    background-repeat: no-repeat;
    height: 19px;
    width: 19px;
    display: block;
    top: 34px;
    right: 10px;
    content: " ";
    font-size: 0;
    line-height: 0;
    position: absolute;
    transition: all 0.4s;
}

.accordion .accordion-item.open .title:before {
    transform: rotate(90deg);
}

.accordion .content {
    display: none;
    padding: 15px 90px 40px 0;
}

.faq-footer p {
    font-size: 20px;
    margin-bottom: 34px;
}

/* Confiances */
.confiance {
    padding: 80px 0 90px 0;
}

.confiance h2 {
    margin-bottom: 87px;
    color: var(--black);
    font-size: 28px;
}

.logos {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    padding-left: 20px;
    padding-right: 20px;
}

.logos>img {
    width: 34%;
    height: auto;
    margin-bottom: 20px;
}

@media screen and (min-width: 768px) {
    .logos>img {
        width: 28%;
    }
}

@media screen and (min-width: 1230px) {
    .logos {
        flex-wrap: nowrap;
        justify-content: space-between;
        padding-left: 0;
        padding-right: 0;
    }

    .logos>img {
        width: auto;
        margin-bottom: 0;
    }
}

/* Footer top */
.main-footer {
    background-color: var(--black);
    color: var(--white);
    padding: 77px 0 121px 0;
}

.main-footer a,
.main-footer a:hover,
.main-footer a:visited,
.main-footer a:active {
    color: var(--white);
    text-decoration: none;
}

.footer-logo {
    margin-bottom: 67px;
}

.main-footer .contact {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}



.main-footer .contact-card {
    width: 100%;
    margin-bottom: 29px;
    padding-bottom: 29px;
    border-bottom: 1px solid #484f51;
}

.main-footer .contact-form {
    width: 100%;
}

@media screen and (min-width: 1024px) {
    .main-footer .contact {
        flex-wrap: nowrap;
    }

    .main-footer .contact-card {
        width: 33%;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: 0;
    }

    .main-footer .contact-form {
        width: 66%;
    }
}

.main-footer .contact-infos {
    margin-bottom: 29px;
    padding-bottom: 29px;
    border-bottom: 1px solid #484f51;
}

@media screen and (min-width: 1024px) {
    .main-footer .contact-infos {
        border-bottom: 0;
    }
}

.main-footer .contact-infos .row {
    display: flex;
    gap: 10px;
    flex-direction: column;
    text-align: center;
}

.main-footer .contact-infos .row img {
    margin: 0 auto;
}

@media screen and (min-width: 768px) {
    .main-footer .contact-infos .row {
        flex-direction: row;
        text-align: left;
    }

    .main-footer .contact-infos .row img {
        margin: 0;
    }
}

.main-footer .contact-infos .row .bold {
    display: inline-block;
    padding-bottom: 15px;
}

.main-footer .contact-infos .row+.row {
    margin-top: 22px;
}

.main-footer .contact-rs p {
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 25px;
}

.main-footer .contact-infos .row .bold {
    font-size: 20px;
}

.contact-rs {
    text-align: center;
}

.main-footer .logos-rs {
    display: flex;
    gap: 20px;
    justify-content: center;
}

@media screen and (min-width: 768px) {
    .contact-rs {
        text-align: left;
    }

    .main-footer .logos-rs {
        justify-content: left;
    }
}

.main-footer .logos-rs>a {
    display: block;
    height: 61px;
    width: 61px;
}


.contact-form {
    text-align: center;
}



.contact-form .row+.row {
    margin-top: 20px;
}

.contact-form form {
    margin-top: 23px;
}

.contact-form form>div {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 20px;
}

.contact-form form>div>* {
    width: 100%;
}

.contact-form form>div+div {
    margin-top: 20px;
    align-items: center;
}

.contact-form form>div+div p {
    font-style: italic;
    text-align: left;
}

.contact-form .title {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 20px;
}

.contact-form .row input+input {
    margin-top: 20px;
}

@media screen and (min-width: 768px) {
    .contact-form .row {
        display: flex;
        gap: 20px
    }

    .contact-form .row input+input {
        margin-top: 0;
    }
}

@media screen and (min-width: 1024px) {
    .contact-form {
        text-align: left;
    }

    .contact-form form>div>* {
        width: 50%;
    }

    .contact-form form>div {
        flex-wrap: nowrap;
        flex-direction: row;
    }
}

.contact-form .success {
    color: var(--green-success);
}

.contact-form .hasErrors {
    color: var(--red);
}

.contact-form .hasErrors {
    border-color: var(--red);
}

/* Footer bottom */
.bottom-footer {
    color: var(--black);
    padding: 30px 0 20px 0;
    margin-bottom: 65px;
}

@media screen and (min-width: 768px) {
    .bottom-footer {
        margin-bottom: 0;
    }
}

.bottom-footer .container div:first-child {
    font-size: 20px;
    margin-bottom: 15px;
}