html{
    scroll-behavior: smooth;
}
#scroll{
    scroll-margin-top: 150px;
}
svg{
    flex-shrink: 0;
}
figure, img{
    max-height: 700px;
    width: 100%;
}
img{
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}
div:has(.white-screen-img){
    position: relative;
}
.img-hover{
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}
.img-hover:hover{
    opacity: 0.7;
}
.white-screen, .white-screen-img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--wp--preset--color--light);
    z-index: 50;
}
.white-screen-img{
    transform-origin: top ;
}
.hero-anim{
    transform: scale(1, 1);
    transform-origin: bottom;
    transition: transform 1s ease-in-out;
}
.hero-anim.loaded{
    transform: scale(1, 0);
}
.text-scale{
    opacity: 0;
}
.bg-filter{
    position: relative;
}
.bg-filter::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}
.mot-svg{
    flex-shrink: 1;
    width: 100%;
}
.mot-svg-vertical{
    flex-shrink: 1;
    height: 100%;
    width: 24%;
}

.text-rotate{
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 0;
    transform: rotate(-90deg);
    line-height: 1;
    transform-origin: left bottom;
    font-size: clamp(70px, 4.5dvw, 90px);
    opacity: 0.5;
}

.simple-link{
    position: relative;
}
 .simple-link a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--wp--preset--color--light);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
  }
  .simple-link a:hover::after{
    transform: scaleX(1);
    transform-origin: bottom left;
  }

div:has(.strech-img), .strech-img{
    align-self: stretch;
}
.img-cover img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.text-clamp{
    font-size: clamp(70px, 4.5dvw, 100px);
    line-height: 0.7;
    opacity: 0.5;
    width: 100%;
    display: block;
    text-align: center;
}
.partenaire-wrapper a svg{
    transition: scale 0.3s ease-in-out;
}
.partenaire-wrapper a:hover svg {
    scale: 0.8;
}
.logo-rugby{
    width: auto !important;
    height: 100% !important; 
}
.logo-rugby a{
    display: flex;
    width: fit-content;
}
.logo-rugby img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}
.logo-rugby a:hover img{
    transform: scale(0.9);
}


@media not all and (min-width: 1537px) {
    :root{
        --wp--custom--px: 160px;
        --wp--custom--gap: 90px;
        --wp--custom--block-gap: 120px;
        --wp--custom--padding-hero: 100px;
    }
}

@media not all and (min-width: 1281px) {
    :root{
        --wp--custom--px: 120px;
        --wp--custom--gap: 80px;
        --wp--custom--block-gap: 100px;
        --wp--custom--padding-hero: 60px;
        --wp--preset--font-size--h-1:40px ;
        --wp--preset--font-size--h-2: 36px;
        --wp--preset--font-size--h-3: 28px;
    }
    figure, img{
        max-height: 600px;
    }
}
@media not all and (min-width: 1025px) {
    :root{
        --wp--custom--px: 40px;
        --wp--custom--gap: 60px;
        --wp--custom--block-gap: 60px;
        --wp--custom--padding-hero: 60px;
        --wp--preset--font-size--h-1:36px ;
        --wp--preset--font-size--h-2: 32px;
    }
    figure, img{
        max-height: 550px;
    }
    .white-screen-img{
        display: none ;
    }
}
@media not all and (min-width: 769px) {
    :root{
        --wp--custom--px: 40px;
        --wp--custom--gap: 40px;
        --wp--custom--block-gap: 40px;
        --wp--custom--padding-hero: 40px;
    }
    .text-rotate{
        left: 60px ;
    }
    .strech-img{
        height: 350px;
    }
    .text-clamp{
        line-height: 0.9;
    }
    .mot-svg-vertical{
        flex-shrink: 1;
        height: 100%;
        width: 13%;
    }
    figure, img{
        max-height: 400px;
    }

}
@media not all and (min-width: 641px) {
    :root{
        --wp--custom--px: 20px;
        --wp--custom--gap: 40px;
        --wp--custom--block-gap: 40px;
        --wp--custom--padding-hero: 40px;
        --wp--preset--font-size--h-1:32px ;
        --wp--preset--font-size--h-2: 28px;
        --wp--preset--font-size--h-3: 24px;
    }
    .text-rotate{
        display: none;
    }
    figure, img{
        max-height: 350px;
    }
}
@media not all and (min-width: 391px) {
    figure, img{
        max-height: 250px;
    }

}
