/* Ici, les styles concernant les blocs de l'éditeur créés dans le thème enfant */



/*******************************/
/******Bloc Vimeo RGPD**********/
/*******************************/

.vimeo-player-block.banner{
    height: 23.75rem;
    overflow: hidden;
    margin : 8rem 0;
}

.vimeo-wrapper.jarallax{
    height: 23.75rem;
    overflow: hidden;
}

.vimeo-player-block iframe{
    max-width : 100%;
}

.vimeo-player-block.banner span.vimeo_player__title{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: transparent;
    text-align: center;
    font-size: var(--font-size-large);
    z-index: 20;
}

.vimeo-player-block.banner span.vimeo_player__title strong{
    color: var(--couleur-4);
}

.vimeo-player-block .cache-misere{
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: none;
}

.vimeo-player-block.not-loaded .cache-misere{
    display: block;
}

/**********************************/
/******Bloc "références"***********/
/**********************************/

:root{
    --logo-wrapper-width : 12.5vw;
}

#references.bloc-references-wrapper{
    overflow: hidden;
    max-width: 100%;
}

.bloc-references-wrapper h2{
    margin-top: 2rem;
    margin-bottom: 0;
}

body:not(.home) .bloc-references-wrapper h2.references-title{
    text-align: left;
}

.references-wrapper{
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap : wrap;
    padding : 0 6vw;
    position: relative;
    color : var(--couleur-texte);
    padding-bottom: 4rem;
}

.references__logo-wrapper{
    width : var(--logo-wrapper-width);
    height : var(--logo-wrapper-width);
    border-radius : 999rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding : 1rem;
    margin : 1rem;
    overflow: hidden;
    position: relative;
    background-color: #fff;
}

.references__logo-wrapper .reference-logo{
    transition : transform var(--transition-basic-duration);
    display: inline-block;
    width: 60%;
    height: 60%;
    background-repeat : no-repeat;
    background-size : contain;
    background-position : center;
}

.references__logo-wrapper:hover a.reference-logo{
    transform: scale(1.05);
}

a.logo__curtain,
span.logo__curtain
{
    position: absolute;
    text-decoration: none;
    border-radius : 999em;
    width: 0;
    height: 0;
    left: 50%;
    top: 50%;
    background-color: var(--couleur-2);
    display: flex;
    justify-content: center;
    align-items: center;
    color : #fff;
    font-family : var(--font-titre);
    font-size : var(--font-size-medium);
    font-weight: 600;
    transition : all var(--transition-basic-duration);
    z-index : 20;
    overflow: hidden;
    white-space : nowrap;
}

.references__logo-wrapper:hover .logo__curtain,
.references__logo-wrapper .no-logo + .logo__curtain
{
    left : 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.references__container{
    width: 100%;
    flex-wrap: wrap;
}

.references__container--secondaires{
    background-color: var(--couleur-9);
    margin-top: 3rem;
    flex-wrap: nowrap;
    height: fit-content;
}

.secondaires__wrapper{
    min-width: 100%;
    flex-wrap: wrap;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    opacity: 0;
    transform: translateX(100%);
    height: fit-content;
    transition: opacity calc(1 * var(--transition-basic-duration)), transform calc(3 * var(--transition-basic-duration));
}

.secondaires__wrapper.active{
    transform: translateX(0%);
    opacity: 1;
}

.switch-button{
    top: 50%;
    width: 2.25rem;
    height: 2.25rem;
    transform: translateY(-50%);
    background-image: url('../images/pictos/next-btn.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    z-index: 20;
}

.switch-button--next{
    right: 1rem;
}

.switch-button--prev{
    left: 1rem;
    transform: translateY(-50%) scaleX(-1);
}

.switch-button:hover{
    cursor: pointer;
}


#references{
    background-color: var(--couleur-1);
    margin-top: 0;
    padding-top: 4.25rem;
}

#references h2{
    text-transform: uppercase;
    color: var(--couleur-titre);
    width: fit-content;
    margin: 0 5rem;
}

#references .switch-button{
    background-color: var(--couleur-1);
    position: absolute;
    top: 50%;
    width: 2.25rem;
    height: 2.25rem;
    background-image: url('../images/pictos/next-btn.svg');
    background-repeat: no-repeat;
    background-size: 50% 50%;
    background-position: center;
    border-radius: 999rem;
    transition: all var(--transition-basic-duration);
}

#references #references__switcher--left{
    transform: scale(1);
    left: 1rem;
    right: auto;
}

#references #references__switcher--left:hover{
    transform: scale(1.1);
}

#references__switcher--right{
    transform: scale(-1);
    left: auto;
    right: 1rem;
}

#references #references__switcher--right:hover{
    transform: scale(-1.1);
}








/**************/
/***Slider*****/
/**************/

:root{
    --slider-width: 100vw;
    --slider-height: calc(var(--slider-width) * .3125);
}

.fwf-slider-container{
    position: relative;
    height: var(--slider-height);
    background-color: var(--couleur-5);
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.slider__image-wrapper{
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0;
    transition: opacity .2s;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.slider__title-wrapper{
    position: absolute;
    left: 10rem;
    bottom: 3rem;
    font-size: var(--font-size-x-large);
    color: #fff;
    z-index: 10;
}

.slider__curtain{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background: linear-gradient(to bottom,  rgba(125,185,232,0) 0%,rgba(91,133,177,0) 32%,rgba(38,51,89,0.6) 83%,rgba(20,23,59,0.6) 100%);
}


/*****************************/
/******Bloc Compteur**********/
/*****************************/

.counter__number{
    font-size: 4.375em;
    font-weight: 700;
    line-height: .9;
    margin-right: .11em;
    white-space: nowrap;
    min-width: 1.8em;
}

.counter-wrapper{
    min-height: 4.5rem;
}

.counter__caption{
    font-size: .8em;
    color: var(--couleur-2);
    word-break: keep-all;
}

.counter-wrapper.d-flex-column span.counter__number{
    text-align: left;
}

.counter__jauge + .counter__content{
    margin-left: 2rem;
}

.counter__jauge{
    height: 0%;
    width: 2rem;
    left: 0;
    bottom: 0;
    background-color: var(--couleur-1);
}





/*******************/
/***Avant/après*****/
/*******************/

:root{
    --ba-slider-width: 1000px;
}

.ba-container{
    width: fit-content;
    height: fit-content;
    max-width: 100%;
    margin: 4rem auto;
}

.ba-container figcaption{
    font-style: italic;
    text-align: center;
    margin-bottom: 1em;
    margin-top: .5em;
    font-size: calc(.8 * var(--font-size-medium));
}

.ba-slider{
    max-width: var(--ba-slider-width);
}

.ba-slider__image{
    top: 0;
    bottom: 0;
    pointer-events: none;
}

.ba-slider__image--before{
    left: 0;
    z-index: 5;
    width: 50%;
    height: 100%; 
}

.ba-slider__image--after{
    background-color: red;
}

.ba-slider__image--after img{
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    user-select: none;
}

.ba-slider__separator{
    left: 50%;
    width: 4px;
    top: 0;
    bottom: 0;
    background-color: var(--couleur-4);
    box-shadow: 0 5px 10px rgba(0,0,0,.5);
    cursor: ew-resize;
    z-index: 10;
    transform: translate(-50%);
}

.separator__arrow{
    width: 50%;
    height: 100%;
    border-top : solid 2px #fff;
    border-bottom : solid 2px #fff;
    transition: transform var(--transition-basic-duration);
}

.separator__arrow--left{
    right: auto;
    left: 0;
    border-left : solid 2px #fff;
    border-top-left-radius: 99rem;
    border-bottom-left-radius: 99rem;
}

.separator__arrow--right{
    left: auto;
    right: 0;
    border-right : solid 2px #fff;
    border-top-right-radius: 99rem;
    border-bottom-right-radius: 99rem;
}

.ba-slider__separator:hover .separator__arrow--left{
    transform: translateX(-50%);
}

.ba-slider__separator:hover .separator__arrow--right{
    transform: translateX(50%);
}

.separator__logo{
    width: 2rem;
    height: 2rem;
    background-color: #fff;
    border-radius: 999rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.ba-slider__range{
    width: 100%;
    bottom: 0;
    z-index: 60;
    appearance: none;
    background-color: rgba(255,255,255,.3);
    outline: none;
    margin: 0;
    display: none;
}





/**************************************/
/******Bloc Derniers articles**********/
/**************************************/

.post-extrait-container{
    align-items: stretch;
    gap: 8%;
    flex-wrap: wrap;
}

.post-extrait-wrapper{
    width: 26.5%;
    min-width: 15rem;
    height: auto;
    align-items: flex-start;
    background-color: var(--couleur-fond);
    color: var(--couleur-texte);
}

.post-extrait-wrapper a.post-extrait__link{
    color: var(--couleur-texte) !important;
    display: block;
    width: 100%;
    height: 100%;
    padding: 4rem 2rem 1rem;
}

.post-extrait__thumbnail{
    width: 100%;
    height: auto;
}

.post-extrait__thumbnail > a{
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.post-extrait__thumbnail img{
    transition: all var(--transition-basic-duration);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-extrait__thumbnail > a:hover img{
    transform: scale(1.1);
}

.post-extrait__metas{
    font-size: var(--font-size-small);
    margin-top: -1.5rem;
    margin-bottom: 2rem;
    justify-content: space-between;
}


/*********************************/
/******Bloc train/tunnel**********/
/*********************************/

:root{
    --tunnel-width: 80vw;
    --train-padding: 3vw;
}

.identifier__tunnel{
    width: var(--tunnel-width);
    min-width: var(--tunnel-width);
    max-width: var(--tunnel-width);
}

.identifier__train{
    flex-wrap: no-wrap;
    padding: 2rem 0;
}

.identifier__wagon{
    width: calc(var(--nos-metiers-width) / 4);
}

.shift-btn--identifier{
    top: 0;
    bottom: 0;
    background-image: url('../images/pictos/fleche.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    color: var(--couleur-6);
    height: 5rem;
    width: 5rem;
    transition: all var(--transition-basic-duration);
    z-index: 10;
}


#prev-btn--identifier{
    left: calc(50% - 47vw);
    transform: scale(-1,1);
}

#prev-btn--identifier:hover{
    cursor: pointer;
    transform: scale(-.9,.9);
}

#next-btn--identifier:hover{
    cursor: pointer;
    transform: scale(.9);
}

#next-btn--identifier{
    right: calc(50% - 47vw);
}

#identifier-container{
    height: 20rem;
    margin-top: 10rem;
}

.identifier-container *{
    height: 100%;
}



/*******************************/
/******Bloc Liste pictos********/
/*******************************/

span.item-pictos__picto{
    display: inline-block;
    width: 2rem;
}

span.item-pictos__picto svg{
    width: 100%;
    height: auto;
}

span.item-pictos__picto svg :where(path, circle, rect){
    fill: var(--couleur-1);
}

.entry-content ul li.item-pictos__li::before{
    display: none;
}

li + li.item-pictos__li{
    margin-top: var(--large-padding);
}

.item_pictos__text{
    margin-left: var(--normal-padding);
    display: inline-block;
}

.item_pictos__text :where(h4,p){
    padding: 0;
    margin: 0;
}

li.item-pictos__li a.coordonnees{
    margin-left: 0;
    padding-left: 0;
    font-weight: 700;
}


/*************************/
/******Bloc tarifs********/
/*************************/

.tarifs-container{
    background-color: var(--couleur-2);
    padding: var(--large-padding);
    color: var(--couleur-6);
    border-radius: var(--arrondi-large);
}

.tarifs-container h2{
    font-size: var(--font-size-xx-large);
    font-weight: 800;
}

.tarifs-container h2 strong{
    color: var(--couleur-5);
    font-weight: 800;
}

.tarifs-container h2 + p{
    font-size: var(--font-size-large);
    font-weight: 700;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--couleur-6);
    display: block;
    width: fit-content;
    margin: 0 auto;
}

.tarifs__ul{
    color: var(--couleur-5);
    background-color: var(--couleur-6);
    padding: var(--normal-padding);
    border-radius: var(--arrondi-large);
    width: fit-content;
    margin : 3rem auto;
}

.tarifs__li{
    width: 60%;
    min-width: 50rem;
    gap: 1rem;
}

.tarifs-container ul li.tarifs__li::before{
    display: none;
}

.tarifs__line{
    flex: 4;
    background-color: rgba(0,0,0,.2);
    height: 1px;
    width: 4rem;
}

.tarifs__price{
    font-weight: 700;
}

/* Ecrans moyens */
@media (min-width: 992px) and (max-width: 1600px) {}

/* Tablettes et Smartphones */
@media (max-width: 991px) {

    .post-extrait-container{
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .post-extrait-wrapper{
        width: 80%;
    }

    .post-extrait-wrapper + .post-extrait-wrapper{
        margin-top: 4rem;
    }


/****************************/
/******Bloc Counter**********/
/****************************/

    .counter__content .counter__number {
        font-size: 3em;
        text-align: center;
    }




/**********************************/
/******Bloc "références"***********/
/**********************************/

    :root{
        --logo-wrapper-width: 20vw
    }

}

/* Tablettes */
@media (min-width: 768px) and (max-width: 991px) {}

/* Smartphones */
@media (max-width: 767px) {

    :root{
        --logo-wrapper-width: 50vw;
    }

    .references-wrapper{
        padding: 0;
        margin: 0;
    }

    .references__logo-wrapper{
        padding: 0;
        margin: 2rem 0;
    }

    .references__logo-wrapper .reference-logo {
        width: 60%;
        height: 60%;
    }

    .references__container--principales,
    .references__container--secondaires
    {
        height: fit-content;
    }

}



/*******************************/
/******ChatGPT Effect***********/
/*******************************/

.chatgpt-effect-container span{
    opacity: 0;
}

.chatgpt-effect-container span.active{
    opacity: 1;
}


/* Petit Smartphones */
@media (max-width: 540px) {}