*, html {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
    transition: color 0.3s ease;
}

*::before,
*::after{
    box-sizing: border-box;
}

html{
    --page-scroll-progress: 0;
}

body {
    margin: 0;
    color: #000;
    transition: background-color 1s;
    padding: 0 var(--wp--preset--spacing--40);
    background-color: var(--wp--preset--color--base);
}

hr{
    width: 100%;
}

.is-style-arrow-icon-details summary{
    list-style-type: "\2192\00a0\00a0\00a0";
}
.is-style-arrow-icon-details summary:hover{
    color: var(--wp--preset--color--accent-2);
}

.is-style-arrow-icon-details[open]>summary{
    list-style-type: "\2193\00a0\00a0\00a0";
}

.no-break{
    white-space: nowrap;
}

::-moz-selection {
    background-color:#fff;
    color: #000;
}
/* pour Safari et Chrome */
::selection {
    background-color:#fff;
    color: #000;
}

.nowrap{
    text-wrap: nowrap;
}

.grecaptcha-badge{
    display: none !important;
}

.separator{
    width: 60%;
    height: 1px;
    background-color: var(--wp--preset--color--base-2);
}

.txt-accent{
    color: var(--wp--preset--color--accent);
}

.txt-big{
    font-size: 1.2em;
    text-transform: uppercase;
}

.minus {
    font-size: 0.5em;
}

.flex-align-start{
    align-items: flex-start;
}

.mix-luminosity{
    mix-blend-mode: luminosity;
}

.line{
    width: 50px;
    height: 1px;
    background-color: var(--wp--preset--color--base);
}


.line-flex{
    width: auto;
    flex: 1;
}

.no-results{
    padding: 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.pagination-container a.prev,
.pagination-container a.next{
    display: none;
}

a,
.btn{
    transition: all .2s ease-out;
    text-decoration: none;
}

.swiper-container{
    overflow: hidden;
}

.swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
}

.swiper-slide{
    flex-shrink: 0;
    position: relative;
}


/*****************
MENU
 */

header{
    position: relative;
    padding: 30px 0;
    margin-bottom: 0;
    font-size: 14px;
    z-index: 10;
}

header .wp-block-site-logo img{
    max-width: 250px;
}

.has-modal-open .wp-block-navigation__responsive-close{
    max-width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open{
    padding-top: 30px;
}

.wp-block-navigation__responsive-container-close svg, .wp-block-navigation__responsive-container-open svg{
    width: 44px;
    height: 44px;
}

.wp-block-navigation ul li{
    padding: 20px 0;
}

.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container, .wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container, .wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within>.wp-block-navigation__submenu-container{
    min-width: 300px;
}

.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container{
    padding: 20px 40px;
    border-radius: 40px;
    border: 0;
}

.wp-block-navigation__submenu-container .wp-block-navigation-item{
    padding: 10px 0;
}

footer nav ul li a{
    font-family: "Figtra";
    text-transform: uppercase;
}

/********************
HOME
 */

.allover{
    z-index: 1000;
}

.bank-h-border{
    position: absolute;
    width: 50px;
    top: 50px;
    right: 0;
    bottom: 0;
}

.home-top-svg-container {
    position: relative;
    height: 300px;
}

.home-txt-container{
    position: absolute;
    inset: 0;
}

.home-txt-container div{
    position: absolute;
}

.home-txt-container div p{
    overflow: hidden;
    transition: all 0.3s ease;
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
    white-space: nowrap;
    line-height: 1em;
}
.home-txt-container div p.appear{
    transition: all 1.3s ease;
}

.home-txt-container div:nth-of-type(1) p{
    opacity: 0;
}

.home-txt-container div:nth-of-type(1) p.appear{
    opacity: 1;
}

.home-txt-container div:nth-of-type(2) p{
    width: 0;
}

.home-txt-container div:nth-of-type(2) p.appear{
    width: 100%;
}

/* Positionnement de tous les textes */
.home-txt-container div.txt-top-right:nth-of-type(1){
    top: 20px;
    left: 30px;
}
.home-txt-container div.txt-top-right:nth-of-type(2){
    bottom: 20px;
    left: 35%;
}

.home-txt-container div.txt-bottom-right:nth-of-type(1){
    bottom: 20px;
    left: 30px;
}
.home-txt-container div.txt-bottom-right:nth-of-type(2){
    top: 0;
    left: 40%;
}

.home-txt-container div.txt-bottom-left:nth-of-type(1){
    bottom: 20px;
    left: 60%;
}
.home-txt-container div.txt-bottom-left:nth-of-type(2){
    top: 0;
    left: 30px;
}

.home-txt-container div.txt-top-left:nth-of-type(1){
    top:20px;
    left: 75%;
}
.home-txt-container div.txt-top-left:nth-of-type(2){
    bottom: 20px;
    left: 30px;
}

.home-top-svg{
    width: 20%;
    position: absolute;
    top: -1%;
    right: -1%;
    fill: var(--wp--preset--color--base);
    transition: transform 1s ease;
}

.home-top-svg.move-top-left {
    transform: translateX(calc(100vw - 100px)); /* déplace à droite moins la largeur du bloc */
}

.home-top-svg svg{
    width: 100%;
    height: auto;
    transition: transform 1s ease;
}

form {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 17px;
    margin-top: 20px;
}
form label {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
form label span {
    text-transform: uppercase;
}
form label input,
form label select,
form label textarea{
    border: 1px solid var(--wp--preset--color--black);
    color: var(--wp--preset--color--contrast-2);
    padding: 10px 10px;
    width: 100%;
}

input, select, textarea{
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #fff;
    border: 1px solid var(--wp--preset--color--black);
    color: var(--wp--preset--color--contrast-2);
    border-radius: 0;
    text-shadow: none;
    -webkit-appearance: none;
}


form input::placeholder,
form textarea::placeholder {
    font-style: italic;
}

form .wpcf7-not-valid-tip{
    color: var(--wp--preset--color--accent);
    font-size: .8em;
}

.wpcf7 form .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output{
    margin: 10px 0;
    padding: 10px;
    border: 1px solid var(--wp--preset--color--accent);
}


form input.submit{
    border: 1px solid var(--wp--preset--color--black);
    background: var(--wp--preset--color--contrast-2);
    color: var(--wp--preset--color--base);
    padding-left: 10px;
    padding-right: 10px;
    font-size: 30px;
    font-family: "Canelo";
}

.history .hentry{
    position: relative;
}

.history .hentry .wp-block-post-featured-image {
    isolation: isolate;
}

.history .hentry .history-content{
    position: relative;
}

.history .hentry .wp-block-group{
    z-index: 10;
}

.history .hentry .wp-block-group.big-date{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 0;
}

.history .hentry .wp-block-group.big-date time{
    font-size: 35vw;
    color: var(--wp--preset--color--contrast-2);
}

.post-template-single-history time{
    font-family: "Canelo";
}

.single .wp-block-post-featured-image img{
    border-radius: 80px;
}

@media (min-width: 768px) {
    .history .hentry .history-alternate{
        margin-top: -130px;
        padding-left: 60%;
    }

    .history .hentry:nth-child(even) .history-alternate{
        padding-left: 0;
        padding-right: 60%;
    }
}

/* Au niveau le plus haut du code */
@media screen and (min-width: 1024px) {

}

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

@media screen and (min-width: 1600px) {
    main{
        padding: 0 5% ;
    }

    h1{
        font-size: 5vw;
    }

    .home-top-svg-container{
        height: 20vw;
    }
}
