/* couleurs */
:root {
    --blanc: #FFF;
    --blanc-fin: rgba(255,255,255,0.5);
    --noir: #000;
    --orange: #FEAD78;
    --rouge: #C2063B;
    --gris-1: #2A2A2A;
    --gris-2: #5D5D5D;
    --gris-3: rgba(255,255,255,0.14);
    --gris-4: #D2D2D2;
    --gris-5: #2F2F2F;
    --gris-6: #030303;
    --gris-7: #404040;
}

/* general */
html, body{
    overflow-x: hidden;
}
section{
    margin-top: 50px;
}
.contour, .contour h1, .contour h2 {
    text-shadow:
        -1px -1px 0 var(--blanc-fin), /* Ombre vers le haut-gauche */
        1px -1px 0 var(--blanc-fin),  /* Ombre vers le haut-droite */
        -1px 1px 0 var(--blanc-fin),  /* Ombre vers le bas-gauche */
        1px 1px 0 var(--blanc-fin);   /* Ombre vers le bas-droite */
}
.contour h4 {
    font-size: 96px !important;
    line-height: 0.7;
    text-shadow:
        -1px -1px 0 var(--gris-7), /* Ombre vers le haut-gauche */
        1px -1px 0 var(--gris-7),  /* Ombre vers le haut-droite */
        -1px 1px 0 var(--gris-7),  /* Ombre vers le bas-gauche */
        1px 1px 0 var(--gris-7);   /* Ombre vers le bas-droite */
}
.contour, .contour h1, .contour h4{
    color: var(--noir) !important;
}

.p-nomargin p{
    margin-bottom: 0;
}

.orange{
    color: var(--orange) !important;
}
.upper{
    text-transform: uppercase;
}

/* boutons */
a.trophee-bouton, .trophee-bouton a{
    background-color: var(--rouge);
    border: solid 1px var(--rouge);
    color: var(--blanc);
    font-size: 16px !important;
    font-weight: bold;
    border-radius: 44px;
    padding: 10px 20px;
    transition: ease 0.5s all;
}
a.trophee-bouton:hover, .trophee-bouton a:hover{
    background-color: transparent;
}

.contenu-legende a {
    text-decoration: underline;
}
.contenu-legende a:hover {
    text-decoration: none;
}

/* header home video */
.video-container{
    filter: contrast(80%) brightness(90%);
}

/* home > titre */
h1 .grand{
    font-size: 54px;
}
.intro-texte{
    max-width: 940px !important;
}
.meta-info{
    border: solid 1px var(--gris-1);
    text-align: center;
    width: 100%;
}
.meta-info .elementor-widget-text-editor{
    width: 100%;
}
#meta-info-1{
    max-width: 218px;
}
#meta-info-2{
    max-width: 300px;
}

/* home > cartouche */
.cartouche-intro{
    font-size: 13px;
}

/* blocs */
.home-blocs-liste{
    position: relative;
}
.home-blocs-liste__bloc{
    margin-bottom: 50px;
}
.home-blocs-liste__intro{
    color: var(--orange);
    font-size: 16px;
    margin: 50px 0 20px 0;
}
.home-blocs-liste__date{
    font-weight: bold;
    text-transform: uppercase;
}
.home-blocs-liste__sous-titre{
    font-weight: 300;
}
.home-blocs-liste__titre-ligne{
    display: inline-flex;
    align-items: center;
    gap: 20px;
    width: fit-content;
}
h2.home-blocs-liste__titre{
    font-weight: bold;
    font-size: 36px;
    margin: 0 0 20px 0;
    border-top: solid 1px var(--gris-2);
    border-bottom: solid 1px var(--gris-2);
    padding: 20px 0;
}
.home-blocs-liste__titre-ligne .home-blocs-liste__icone{
    flex-shrink: 0;
}
.home-blocs-liste__image{
    position: relative;
}
.home-blocs-liste__image img{
    border-radius: 10px;
    width: 100%;
}
.home-blocs-liste__texte{
    max-width: 475px;
    font-size: 16px;
}
.home-blocs-liste__icone--mobile{
    display: none;
}

/* trophee-cartouche */
.trophee-cartouche{
    background-color: #1C1C1C;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.trophee-cartouche__texte{
    color: var(--blanc);
    font-family: "Jost", sans-serif;
    font-weight: bold;
    font-size: 20px;
}
.trophee-cartouche__bouton{
    display: inline-block;
    background-color: var(--orange);
    border: solid 1px var(--orange);
    color: var(--blanc) !important;
    font-family: "Jost", sans-serif;
    font-weight: bold !important;
    font-size: 16px;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 33px;
    transition: 0.5s all ease;
}
.trophee-cartouche__bouton:hover{
    background-color: transparent;
    color: var(--orange) !important;
}

/* trophee-chiffres */
.trophee-chiffres__titre{
    font-family: "Jost", Sans-serif !important;
    font-size: 40px !important;
    font-weight: 700 !important;
    margin-bottom: 40px !important;
}
.trophee-chiffres{
    display: flex;
    flex-direction: column;
}
.trophee-chiffres__item{
    display: flex;
    align-items: center;
    gap: 15px;
    width: fit-content;
    border: solid 1px #414141;
    padding: 10px 25px 10px 10px;
    margin: 0;
    font-size: 20px;
}
.trophee-chiffres__icone{
    flex-shrink: 0;
}
.trophee-chiffres__icone img{
    display: block;
    max-width: 100%;
    height: auto;
}
.trophee-chiffres__contenu .texte{
    font-weight: 300;
    line-height: 1;
}

/* trophee-galerie */
.trophee-galerie__une img{
    display: block;
    width: 100%;
    margin-bottom: 20px;
    cursor: pointer;
}
.trophee-galerie{
    margin-bottom: 50px;
}
.trophee-galerie--mobile{
    display: none;
}
@media screen and (max-width:767.98px){
    .trophee-galerie--desktop{
        display: none;
    }
    .trophee-galerie--mobile{
        display: block;
    }
}
.trophee-galerie__grille{
    width: 100%;
    max-width: min(100%, 1440px);
    margin: 0 auto;
    padding: 0 80px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media screen and (max-width:767.98px){
    .trophee-galerie__grille{
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    .home-distance{
        color: var(--blanc) !important;
    }
}
.trophee-galerie__item img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    border-radius: 10px;
}
.trophee-galerie__popup{
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
}
.trophee-galerie__popup.is-open{
    display: flex;
}
.trophee-galerie__popup-image{
    display: block;
    max-width: 90vw;
    max-height: 90vh;
}
.trophee-galerie__fermer,
.trophee-galerie__precedent,
.trophee-galerie__suivant{
    position: absolute;
    background: none !important;
    border: none !important;
    color: var(--blanc);
    font-size: 35px !important;
    line-height: 1;
    cursor: pointer;
    padding: 10px;
}
.trophee-galerie__fermer{
    top: 20px;
    right: 20px;
}
.trophee-galerie__precedent{
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.trophee-galerie__suivant{
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* FAQ */
.faq-intro{
    max-width: 900px !important;
    margin: 0 auto !important;
}

/* trophee-faq */
.trophee-faq__item{
    width: 100%;
    background-color: #1C1C1C;
    padding: 50px;
    text-align: center;
    transition: background-color 0.3s ease;
}
.trophee-faq__item + .trophee-faq__item{
    margin-top: 2px;
}
button.trophee-faq__question{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    background: none !important;
    border: none !important;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: var(--orange);
    font-family: "Jost", sans-serif;
    font-weight: 500;
    font-size: 24px;
    text-transform: uppercase;
    text-align: center;
}
.trophee-faq__question span{
    min-width: 0;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}
.trophee-faq__icone{
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    transition: transform 0.4s ease;
}
.trophee-faq__item.is-open .trophee-faq__icone{
    transform: rotate(90deg);
}
.trophee-faq__reponse{
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    max-width: 940px;
    margin: 0 auto;
}
.trophee-faq__reponse-inner{
    color: var(--blanc);
    font-family: "Jost", sans-serif;
    font-weight: 300;
    font-size: 20px;
    padding-top: 30px;
}
.trophee-faq__reponse-inner a{
    font-size: 20px;
}
.trophee-faq__reponse-inner ul,
.trophee-faq__reponse-inner ol{
    padding: 0;
    margin: 0;
}
.trophee-faq__reponse-inner li{
    list-style-image: url('../img/arrow-right-circle.svg');
    list-style-position: inside;
    margin-bottom: 0;
}

.contenu-texte ul{
    margin-bottom: 10pxf
}
.footer-faq a:hover{
    color: var(--orange) !important;
}

/* header-contenu : passe en fond noir à partir de 550px de scroll */
.header-contenu{
    transition: background-color 0.4s ease;
}
.header-contenu.is-scrolled{
    background-color: #000 !important;
}
@media screen and (min-width:768px){
    .header-contenu{
        transition: background-color 0.4s ease, height 0.4s ease;
    }
    body.home .elementor-widget-theme-site-logo{
        transition: margin-top 0.4s ease;
    }
    body.home .header-contenu.is-scrolled .elementor-widget-theme-site-logo{
        margin-top: 40px;
    }
    .header-contenu.is-scrolled{
        height: 175px;
    }
    body.home .trophee-menu{
        top: 100px;
        transition: top 0.4s ease;
    }
    body.home .header-contenu.is-scrolled .trophee-menu{
        top: 75px;
    }
    .contenu-texte a{
        font-size: 20px;
    }
}
@media screen and (max-width:767.98px){
    .elementor-widget-theme-site-logo,
    .trophee-logo{
        transition: margin-top 0.4s ease;
    }
    .trophee-menu{
        transition: top 0.4s ease;
    }
    .trophee-menu__toggle{
        width: 123px !important;
        height: 39px !important;
    }
    body.home .trophee-menu{
        top: 95px;
    }
    .header-contenu.is-scrolled{
        height: 100px;
    }
    .header-contenu.is-scrolled .elementor-widget-theme-site-logo,
    .header-contenu.is-scrolled .trophee-logo{
        margin-top: 10px;
    }
    .header-contenu.is-scrolled .trophee-menu{
        top: 30px;
    }
    body:not(.home) .header-contenu.is-scrolled .trophee-menu{
        top: 40px;
    }
}

/* trophee-menu */
.trophee-menu{
    position: absolute;
    top: 75px;
    right: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 15px;
}
.trophee-reseaux{
    display: flex;
    align-items: center;
    gap: 12px;
}
.trophee-reseaux img{
    display: block;
    width: 44px;
    height: 44px;
}
footer .trophee-reseaux img{
    opacity: 0.8;
}
.trophee-menu__reseaux{
    position: relative;
    z-index: 1001;
    margin-right: 30px;
}
.trophee-menu__toggle{
    position: relative;
    z-index: 1001;
    background: none !important;
    border: none !important;
    padding: 0;
    cursor: pointer;
    width: 160px;
    height: 44px;
    flex-shrink: 0;
}
.trophee-menu__icone{
    position: absolute;
    top: 0;
    left: 0;
}
.trophee-menu__icone--ouvert{
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.trophee-menu.is-open .trophee-menu__icone--ferme{
    opacity: 0;
    visibility: hidden;
}
.trophee-menu.is-open .trophee-menu__icone--ouvert{
    opacity: 1;
    visibility: visible;
}

.trophee-menu__panel{
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(237, 237, 237, 0.09);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.6s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 170px 30px 40px;
    overflow-y: auto;
}
.trophee-menu.is-open .trophee-menu__panel{
    transform: translateX(0);
}
.trophee-menu__liste{
    list-style: none;
    margin: 0;
    padding: 0;
}
.trophee-menu__liste a{
    display: block;
    padding: 12px 0;
    color: var(--blanc);
    font-family: "Jost", sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 1;
    text-decoration: none;
    transition: color 0.3s ease;
}
.trophee-menu__liste a:hover{
    color: var(--orange);
}
@media screen and (min-width:768px){
    .trophee-menu__panel{
        width: 347px;
        height: 823px;
        padding-top: 220px;
    }
}

/* footer */

/* masquer parallaxe sur pages : Parcours, Inscription ouvertes et Inscriptions fermées */
body.page-id-393 .footer-parallax,
body.page-id-401 .footer-parallax,
body.page-id-911 .footer-parallax{
    display: none;
}
#footer-contact-form-container,
#footer-newsletter-form-container{
    width: 100% !important;
    max-width: 465px !important;
    margin: 10px auto !important;
}
#footer-newsletter-form-container{
    max-width: 353px !important;
}

/* postfooter */
.postfooter {
    border-top: solid 1px var(--gris-3);
}
.footer-contact{
    border-bottom: solid 1px var(--gris-3);
}
/* contact */
.wpcf7-form p{
    margin-bottom: 10px;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus{
    outline: none !important;
    box-shadow: none !important;
}
.wpcf7-form input[type=text],
.wpcf7-form input[type=email],
.wpcf7-form textarea{
    color: var(--gris-4);
    background-color: var(--gris-5);
    border: none !important;
}
.wpcf7-form input.wpcf7-submit{
    font-weight: 400;
    color: var(--blanc);
    background-color: var(--gris-6);
    border-color: var(--gris-6);
    font-size: 16px;
    padding: 0 16px;
}
.wpcf7-form input[type=text],
.wpcf7-form input[type=email],
.wpcf7-form input.wpcf7-submit{
    height: 30px;
    box-sizing: border-box;
}
.wpcf7-form textarea{
    height: 70px;
    box-sizing: border-box;
}
@media screen and (max-width:767.98px){
    .wpcf7-form textarea{
        resize: none;
    }
    .footer-parallax{
        background-position: right center !important;
    }
}

/* contact : formulaire Brevo, même rendu que le formulaire wpcf7 */
.sib_signup_form .sib_msg_disp{
    display: contents;
}
.sib_signup_form [class*="sib_signup_box_inside"],
body [class*="sib_signup_box_inside"],
body .sib_signup_form [class*="sib_signup_box_inside"]{
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px;
}
.sib_signup_form p,
body .sib_signup_form p{
    width: 100% !important;
    margin: 0;
}
.sib_signup_form p.sib-FIRSTNAME-area,
.sib_signup_form p.sib-LASTNAME-area,
body .sib_signup_form p.sib-FIRSTNAME-area,
body .sib_signup_form p.sib-LASTNAME-area{
    width: calc(50% - 5px) !important;
}
.sib_signup_form input:focus,
.sib_signup_form textarea:focus,
.sib_signup_form select:focus{
    outline: none !important;
    box-shadow: none !important;
}
.sib_signup_form input[type=text],
.sib_signup_form input[type=email],
.sib_signup_form textarea{
    color: var(--gris-4);
    background-color: var(--noir);
    border: solid 1px var(--gris-5) !important;
}
.sib_signup_form input.sib-default-btn{
    font-weight: 400;
    color: var(--blanc);
    background-color: #1C1C1C;
    border-color: #1C1C1C;
    font-size: 16px;
    padding: 0 16px;
}
.sib_signup_form input[type=text],
.sib_signup_form input[type=email],
.sib_signup_form input.sib-default-btn{
    height: 30px;
    box-sizing: border-box;
}
.sib_signup_form textarea{
    height: 70px;
    box-sizing: border-box;
}

/* mentions */
.mentions-contenu h2{
    margin: 40px 0 20px 0;
}

@media screen and (max-width: 767.98px) {
    .home-blocs-liste__bloc{
        text-align: center;
    }
    .home-blocs-liste__texte{
        margin-left: auto;
        margin-right: auto;
    }
    .home-blocs-liste__titre-ligne .home-blocs-liste__icone{
        display: none;
    }
    .home-blocs-liste__image{
        width: 110vw;
        margin-left: 50%;
        transform: translateX(-50%);
    }
    .home-blocs-liste__image img{
        height: auto;
        display: block;
    }
    .home-blocs-liste__icone--mobile{
        display: block;
        position: absolute;
        left: 50%;
        bottom: -27px;
        transform: translateX(-50%);
    }

    /* trophee-faq */
    .trophee-faq__item{
        padding: 25px 20px;
    }
    button.trophee-faq__question{
        font-size: 18px;
        gap: 12px;
    }
    /* reseaux sociaux */
    header .trophee-menu__reseaux{
        display: none;
    }
    footer .trophee-reseaux{
        justify-content: center;
    }
    #footer-newsletter-form-container{
        margin-bottom: 50px !important;
    }
}

@media screen and (min-width: 768px) {
    h1 .grand{
        font-size: 128px;
    }
    /* fond carte */
    .meta-container{
        height: 311px;
        background-image: url('../img/carte-fond-2.png');
        background-position: left 45px top 0;
        background-repeat: no-repeat;
        background-size: auto;
        margin-bottom: 50px;
    }
    .meta-info{
        margin-top: 35px;
        text-align: left;
    }
    /* blocs en flex */
    .home-blocs-liste{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        top: -100px;
    }
    .home-blocs-liste__bloc{
        width: calc(50% - 12.5px);
    }

    /* ligne 1 (blocs 1 et 2) : intro / titre / texte alignés sur la même hauteur */
    .home-blocs-liste__ligne-1{
        display: grid;
        grid-template-columns: calc(50% - 12.5px) calc(50% - 12.5px);
        column-gap: 25px;
        width: 100%;
        margin-bottom: 200px;
    }
    .home-blocs-liste__ligne-1 .home-blocs-liste__bloc{
        display: contents;
    }
    .home-blocs-liste__ligne-1 .home-blocs-liste__bloc:nth-child(1) .home-blocs-liste__image{
        grid-column: 1;
        grid-row: 1;
        align-self: end;
        transform: scale(1.2);
        transform-origin: right bottom;
        position: relative;
        z-index: 1;
    }
    .home-blocs-liste__ligne-1 .home-blocs-liste__bloc:nth-child(1) .home-blocs-liste__image img{
        max-height: 550px;
        object-fit: cover;
    }
    .home-blocs-liste__ligne-1 .home-blocs-liste__bloc:nth-child(1) .home-blocs-liste__intro{
        grid-column: 1;
        grid-row: 2;
    }
    .home-blocs-liste__ligne-1 .home-blocs-liste__bloc:nth-child(1) .home-blocs-liste__titre-ligne{
        grid-column: 1;
        grid-row: 3;
    }
    .home-blocs-liste__ligne-1 .home-blocs-liste__bloc:nth-child(1) .home-blocs-liste__texte{
        grid-column: 1;
        grid-row: 4;
    }
    .home-blocs-liste__ligne-1 .home-blocs-liste__bloc:nth-child(2) .home-blocs-liste__image{
        grid-column: 2;
        grid-row: 1;
        align-self: end;
        transform: scale(1.2);
        transform-origin: left bottom;
        position: relative;
        z-index: 1;
    }
    .home-blocs-liste__ligne-1 .home-blocs-liste__bloc:nth-child(2) .home-blocs-liste__image img{
        max-height: 550px;
        object-fit: cover;
    }
    .home-blocs-liste__ligne-1 .home-blocs-liste__bloc:nth-child(2) .home-blocs-liste__intro{
        grid-column: 2;
        grid-row: 2;
    }
    .home-blocs-liste__ligne-1 .home-blocs-liste__bloc:nth-child(2) .home-blocs-liste__titre-ligne{
        grid-column: 2;
        grid-row: 3;
    }
    .home-blocs-liste__ligne-1 .home-blocs-liste__bloc:nth-child(2) .home-blocs-liste__texte{
        grid-column: 2;
        grid-row: 4;
    }

    /* ligne 2 (blocs 3 et 4) */
    .home-blocs-liste__bloc--3 .home-blocs-liste__image{
        transform: scale(1.2);
        transform-origin: right top;
        position: relative;
        z-index: 1;
        margin-bottom: 130px;
    }
    .home-blocs-liste__bloc--3 .home-blocs-liste__image img{
        max-height: 500px;
        object-fit: cover;
    }
    .home-blocs-liste__bloc--4{
        position: relative;
        top: -100px;
    }
    .home-blocs-liste__bloc--4 .home-blocs-liste__image{
        transform: scale(1.2);
        transform-origin: left top;
        position: relative;
        z-index: 1;
        margin-bottom: 130px;
    }
    .home-blocs-liste__bloc--4 .home-blocs-liste__image img{
        max-height: 500px;
        object-fit: cover;
    }
    /* footer */
    .footer-bloc-1{
        border-right: solid 1px var(--gris-3);
    }
    #footer-contact-form-container,
    #footer-newsletter-form-container{
        margin: 10px 30px !important;
    }
}

@media screen and (min-width: 1200px){
    /* footer */
    #footer-contact-form-container,
    #footer-newsletter-form-container{
        margin: 10px 10px 10px 115px !important;
    }
}

/* parcours > video */
.video-portrait .elementor-wrapper {
    aspect-ratio: 890 / 1200 !important;
    height: auto !important;
    max-width: 450px;
    margin: 0 auto;
}
.video-portrait video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* [footer-video] : bandeau vidéo pleine largeur, proportions d'origine 1920 x 480 (place réservée dès le chargement) */
.footer-video{
    width: 100%;
    aspect-ratio: 1920 / 480;
    overflow: hidden;
    line-height: 0; /* pas d'espace sous la vidéo */
    background: url("../img/bandeau-video-chateau-desktop.jpg") center / cover no-repeat;
}
.footer-video__video{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* remplit le bloc en restant centrée : zoom depuis le centre si le bloc est plus haut que la vidéo */
    object-position: center;
    border: none;
}
/* mobile : hauteur doublée, la vidéo est agrandie depuis son centre (côtés rognés) ; aperçu = centre de la vidéo (960 x 480) */
@media screen and (max-width:767.98px){
    .footer-video{
        aspect-ratio: 960 / 480;
        background-image: url("../img/bandeau-video-chateau-mobile.jpg");
    }
}

/* [section-inscription] : fond noir + image par-dessus (contain), titre et bouton centrés */
.section-inscription{
    min-height: 656px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 60px 20px;
    box-sizing: border-box;
    text-align: center;
    background: #000 url("../img/footer-inscription-fond.png") center / 100% no-repeat;
}
h2.section-inscription__titre{
    margin: 0;
    font-family: "Jost", sans-serif;
    font-weight: bold;
    font-size: 115px;
    line-height: 1;
    color: var(--blanc, #FFF);
}
@media screen and (max-width:767.98px){
    /* mobile : fond noir sans image, pas de hauteur minimale */
    .section-inscription{
        min-height: 0;
        padding: 50px 20px;
        background-image: none;
    }
    h2.section-inscription__titre{
        font-size: 48px;
    }
}
