.home-h1 {
    padding-bottom: 10px;
    font-size: 0.8em;
    font-weight: normal;
    text-align: center;
    line-height: 1;
    color: white;
    opacity: 0.7;
}


/**
 * ========================================================
 * header vidéo huile-eau
 * ========================================================
 */

.video-huile-eau__container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: 1920px;
    background-color: #000816;
    overflow: hidden;
}

.video-huile-eau video {
    position: relative;
    width: 600px;
    max-width: 1920px;
}

.video-huile-eau__words {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0 0 25px 0;
    padding: 0;
    line-height: 1;
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    list-style: none;
    overflow: hidden;
    color: white;
    cursor: default;
}

.video-huile-eau__words li {
    position: absolute;
    margin: 0;
    --videoWordFontSize: 10vw;
    --videoWordFontSizeEndAnimation: 80vw;
    font-size: var(--videoWordFontSize);
    text-wrap: nowrap;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: subpixel-antialiased;

}

.video-huile-eau__words li:not([class]) {
    display: none;
}

.video-huile-eau__anim-word {
    animation: videoWord forwards;
    animation-duration: 1500ms;
    /* valeur identique à setTimeout de wordsList.forEach() dans le script JS */
}

@media screen and (min-width: 768px) {

    .video-huile-eau {
        background: linear-gradient(to right, #01000a, #01000a 30%, #110100 70%, #110100);
    }

    .video-huile-eau video {
        position: relative;
        width: 100%;
    }

    .video-huile-eau__words li {
        --videoWordFontSize: 4vw;
        --videoWordFontSizeEndAnimation: 40vw;
        font-size: var(--videoWordFontSize);
    }
}

@media screen and (min-width: 1920px) {

    .video-huile-eau {
        position: relative;
        z-index: 1;
        display: flex;
    }

    .video-huile-eau::before,
    .video-huile-eau::after {
        content: '';
        position: relative;
        z-index: 2;
        flex: 1;
        border-radius: 50%;
        filter: blur(80px);
        opacity: 0.4;
    }

    .video-huile-eau::before {
        margin-left: 5%;
        margin-right: -120px;
        background: radial-gradient(circle at 90%, #0779a6, #0779a6 10%, transparent);
    }

    .video-huile-eau::after {
        margin-left: -120px;
        margin-right: 5%;
        background: radial-gradient(circle at 10%, #915000, #915000 10%, transparent);

    }
}

@keyframes videoWord {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    20% {
        opacity: 1;
        transform: scale(1.1);
    }

    40% {
        opacity: 1;
    }

    60% {
        opacity: 0.5;
        font-size: var(--videoWordFontSize);
    }

    100% {
        opacity: 0;
        font-size: var(--videoWordFontSizeEndAnimation)
            /* Texte pixelisé avec le moteur de rendu de Firefox en utilisant transform:scale() */
    }
}


.video-huile-eau__picto-fa-scroll2bottom {
    display: none;
    position: absolute;
    bottom: 150px;
    color: white;
    opacity: 0;
    /* Par défaut, invisible */
    transition: opacity 1s ease-in-out;
    transition-delay: 4500ms;
}

.video-huile-eau__picto-fa-scroll2bottom--anim {
    opacity: 1;
    animation: scroll2bottom 1s alternate infinite;
    /* Animation verticale */
}

.video-huile-eau__picto-fa-scroll2bottom--fadeOut {
    opacity: 0;
    transition-delay: 0s;
}

@media (min-width: 600px) {
    .video-huile-eau__picto-fa-scroll2bottom {
        display: block;
    }
}

@keyframes scroll2bottom {
    from {
        bottom: 120px;
    }

    to {
        bottom: 150px;
    }
}


/**
 * Conteneur d'intro
 */
.home-intro {
    position: relative;
    margin: 60px auto 0;
    padding: 0 var(--page-spacing-x);
    text-align: center;
    max-width: 1300px;
}

.home-intro::after {
    content: '';
    display: block;
    height: 5px;
    background-image: linear-gradient(to right, #005ba8, #eee 40%, #ddd 60%, #aa1618);
}

.home-intro h1 {
    margin: auto;
    font-size: 1.4em;
}

.home-intro p {
    margin-top: 0;
    color: #005ba8;
    font-size: 0.82em;
    ;
}

@media (min-width: 1280px) {
    .home-intro {
        margin-top: 80px;
    }

    .home-intro h1 {
        font-size: 1.8em;
    }

    .home-intro p {
        font-size: 0.9em;
        ;
    }
}



/**
 * =============================================================================
 * Sliders
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 * - Slider des photos des camions (sur smartphone uniquement)
 * - Slider des produite
 * =============================================================================
 */

/**
 * Slider des camions
 */

.home-section-with-trucks__trucks-container {
    position: relative;
    z-index: 1;
}

.home-section-with-trucks__trucks-container__overlay-WeAreIPH {
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    color: #11baec;
}

.home-section-with-trucks__big-text {
    font-size: 2.5em;
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
    color: #005ba8;
}

.home-section-with-trucks__big-text span:nth-child(1),
.home-section-with-trucks__big-text span:nth-child(3) {
    color: #11baec;
}

.home-section-with-trucks__big-text span:nth-child(2) {
    color: #aa1618;
}

@media (min-width: 1280px) {
    .home-section-with-trucks {
        display: grid;
        align-items: center;
        grid-template-columns: 1fr 2fr;
        gap: 60px;
    }

    .home-section-with-trucks__big-text {
        padding-bottom: 0;
        font-size: 2.7em;
        border-bottom: none;
    }

    .home-section-with-trucks__trucks-container__overlay-WeAreIPH {
        position: absolute;
        z-index: 2;
        top: 50%;
        left: 50%;
        margin-top: -25px;
        margin-left: -130px;
        width: 260px;
        font-size: 2.4em;
        font-weight: bold;
        line-height: 50px;
        text-align: center;
        color: #11baec;
    }
}

.swiper--home-slider-trucks {
    padding-bottom: 10px;
}

@media (min-width: 600px) {
    .swiper--home-slider-trucks {
        padding-bottom: 30px;
    }
}

@media (min-width: 800px) {
    .swiper--home-slider-trucks {
        padding-bottom: 40px;
    }
}

@media (min-width: 1280px) {
    .swiper--home-slider-trucks {
        padding-bottom: 0;
    }
}

.swiper-pagination--home-slider-trucks > span {
    background-color: #11baec;
}



/**
 * Slider des produits
 */

.home-products {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
}

/* Pagination en bas du slider sur smartphone */
.home-products > div:nth-child(1) {
    order: 2
}

.home-products > div:nth-child(2) {
    order: 1
}

.home-products__card {
    display: flex;
    flex-direction: column;
    flex-basis: 85%;
    padding: 20px;
    height: auto;
    /* tous les slides de la même hauteur */
    background-color: white;
}

.home-products__card__images,
.home-products__card__content {
    display: flex;
    justify-content: space-between;
}

.home-products__card__images {
    flex-wrap: wrap;
    gap: 10px;
}

.home-products__card__images img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin: auto;
    width: calc(50% - 5px);
    border: #11baec solid 1px;
}

.home-products__card__content {
    flex-direction: column;
    flex-grow: 1;
}

@media (min-width: 1280px) {

    /* Repositionnement de la pagination en haut du slider */
    .home-products > div:nth-child(1) {
        order: 1
    }

    .home-products > div:nth-child(2) {
        order: 2
    }

    .home-products__card {
        flex-basis: auto;
    }

    .home-products__pagination-tabs-wrapper {
        order: 1;
    }

    .home-products__card {
        padding: 40px;
    }

    .home-products__card__images,
    .home-products__card__content  {
        display: grid;
        grid-template-columns: repeat(4, 210px);
    }

    .home-products__card__images img {
        width: 100%;
    }

    .home-products__card__content  {
        margin-top: 40px;
    }

    .home-products__card__text {
        grid-column: 1 / span 3;
    }

    .home-products__card__text h3 {
        margin-top: 0;
    }

    .home-products__card__btn-wrapper {
        grid-column: 4;
    }
}

@media (min-width: 1550px) {

    .home-products {
        max-width: 1600px;
    }

    .home-products__pagination-tabs-wrapper {
        padding-left: 190px;
    }
}

@keyframes cardBtnHover {
    0% {
        transform: rotate(45deg) scale(1) translate3d(0, 30px, 0);
    }

    50% {
        transform: rotate(45deg) scale(1.8) translate3d(0, 20px, 0);
        opacity: 0.5;
    }

    100% {
        transform: rotate(45deg) scale(1.5) translate3d(0, 10px, 0);
    }
}

.swiper-pagination--home-slider-products {
    container-name: swiperPaginationHomeSlider;
    container-type: inline-size;
    position: static;
}

.swiper-pagination--home-slider-products > span {
    background-color: #11baec;
}

.swiper-pagination--home-slider-products > span span {
    display: none;
}

@container swiperPaginationHomeSlider (min-width: 1200px) {
    .swiper-pagination--home-slider-products > span span {
        /* display: inline; */
        display: block;
        text-overflow: ellipsis;
        text-wrap: nowrap;
        overflow: hidden;
        font-size: 0.8em;
    }
}

@media (min-width: 1550px) {
    .swiper-pagination--home-slider-products > span span {
        font-size: 0.94em;
    }
}

/**
 * Ajout d'un overlay transparent pour rendre les liens sur les slides inactifs
 * inaccessibles par la souris pour les "désactiver" (ainsi que l'animation mouseover du bouton)
 */
.swiper-slide--product.swiper-slide-prev::before,
.swiper-slide--product.swiper-slide-next::before {
    content: '';
    display: block;
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.swiper-slide--product.swiper-slide-prev .home-products__card__btn-wrapper .has-corner-arrow::after {
    visibility: hidden;
}

/* Slide actif */
.swiper-slide--product.swiper-slide-active {
    opacity: 1 !important;
    transition: opacity 400ms ease;
}

.swiper-button-prev--products,
.swiper-button-next--products {
    visibility: hidden;
}


@media (min-width: 1280px) {

    /* Slides inactifs */
    .swiper-slide--product {
        opacity: 0.4;
    }

    .swiper-pagination--home-slider-products {
        /* position: static; */
        display: flex;
        gap: 10px;
        border-bottom: #11baec solid 1px;
    }

    .swiper-pagination--home-slider-products > span {
        margin: 0 !important;
        padding: 10px;
        width: auto;
        height: auto;
        color: #005ba8;
        background-color: white;
        border-bottom: transparent solid 3px;
        border-radius: 0;
        opacity: 1;
    }

    .swiper-pagination--home-slider-products > span {
        margin: 0 !important;
        padding: 10px;
        width: auto;
        height: auto;
        color: #005ba8;
        background-color: white;
        border-bottom: transparent solid 3px;
        border-radius: 0;
        opacity: 1;
    }

    .swiper-pagination--home-slider-products > span[aria-current] {
        opacity: 1;
        border-bottom-color: #11baec;
    }

    .swiper-wrapper--home-slider-products {
        order: 1;
    }

    .swiper-button-prev--products,
    .swiper-button-next--products {
        visibility: visible;
        width: 60px;
        height: 60px;
        color: #005ba8;
        background-color: white;
        border-radius: 50%;
        box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
        transition: background-color 150ms ease;
    }

    .swiper-button-prev--products::after,
    .swiper-button-next--products::after {
        font-size: 2rem;
    }

    .swiper-button-prev--products:hover,
    .swiper-button-next--products:hover {
        background-color: #f4f5f7;
    }

}


/**
 * News de page d'accueil
 */

.home-news article {
    padding: 0 20px;
}

.home-news article h3 {
    margin-top: 0;
}

.home-news figure {
    margin: 80px auto 20px;
    max-width: 250px;
    height: auto;
}

@media (min-width: 960px) {
    .home-news {
        display: flex;
        gap: 60px;
    }

    .home-news div {
        /* 2 <div> concernées (premier et deuxième wrappers) */
        flex: 1;
    }

    .home-news figure {
        flex-shrink: 0;
        margin: 0 20px 0 0;
    }
}

@media (min-width: 1280px) {
    .home-news {
        padding-left: 190px;
    }

    .home-news article {
        display: flex;
        gap: 60px;
        padding: 20px 40px;
    }

    .home-news figure {
        margin-right: 40px;
        max-width: none;
    }
}

@media (min-width: 1600px) {
    .home-news figure {
        margin-right: 80px;
    }
}