/* Toits etc — Page d'accueil.
   Feuille issue de user.scss (sortie du SCSS, 2026-11-30).
   CSS natif, hors @layer : il doit l'emporter sur Cassiopeia à spécificité égale, comme user.css.
   Ordre de chargement significatif : voir templates/index.php. */

/* ---------------------- ACCUEIL */
.accueil {
    & main {
        display: block;
        margin-bottom: var(--spacing-large) !important;
    }

    .item-pageaccueil {
        margin-bottom: 0;
    }

    .tuiles-accueil {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: var(--spacing-normal);
        width: fit-content;
        margin: 0 auto;
        overflow: visible;

        @media (width >=1200px) {
            margin-left: 0;
        }

        /* pour avoir une bordure différente sur chaque tuile */
        & li {
            margin-bottom: 0;

            &:nth-child(2) {
                .bordure {
                    left: -10rem;
                }

                .tuile-accueil:after {
                    background-color: var(--couleur-emeraude);
                }
            }

            &:nth-child(3) {
                .bordure {
                    left: -20rem;
                }

                .tuile-accueil:after {
                    background-color: var(--couleur-orange);
                }
            }

            &:nth-child(4) {
                .bordure {
                    left: -30rem;
                }

                .tuile-accueil:after {
                    background-color: var(--couleur-violet);
                }
            }
        }
    }

    .site-grid {
        position: relative; /* pour le positionnement de l'image de fond */
    }

    @media (width >=1600px) {
        & h1 {
            position: relative;
            right: 4vw;
        }
    }

    /* logo mobile uniquement */
    .thumbnail {
        width: fit-content;
        margin: 0 auto;
        overflow: hidden;
        width: 20rem;
        height: 8rem;
        margin-bottom: var(--spacing-large);

        & img {
            width: 28rem;
            max-width: unset;
            position: relative;
            left: -8rem;
        }

        @media (width >=992px) {
            display: none;
        }
    }

    /* titre */
    .page-header {
        max-width: 80rem;





        @media (width <992px) {
            margin: 0 auto;

            & h1 {
                text-align: center;
            }
        }
    }

    @media (width >=1200px) {
        & h1 {
            font-size: var(--fontsize-xxxlarge);
            line-height: var(--lineheight-xxxlarge);
        }
    }

    /* titre + paragraphes */
    .page-header,
    .com-content-article__body {
        margin-bottom: var(--spacing-large);
        z-index: 1;
        position: relative;

        @media (width >=992px) {
            width: 45vw;
        }
    }

    /* paragraphes */
    .com-content-article__body {
        max-width: 80rem;
    }

    .image-fond-accueil {
        position: absolute;
        right: 0;
        display: none;
        width: clamp(85rem, 80vw, 106rem);
        height: 100vh;
        top: 8rem;
        transform: translateX(44%);
        /* -webkit-mask-image: linear-gradient(to top, transparent 15%, black 55%); */
        /* mask-image: linear-gradient(to top, transparent 15%, black 55%); */

        @media (width>=992px) {
            display: block;
        }

        @media (width>=1400px) {
            top: 5rem;
            width: fit-content;
        }

        & img {
            mask-image: url("../images/logo-mask.svg");
            mask-position: top left;
            mask-size: contain;
            mask-repeat: no-repeat;
            -webkit-mask-image: url("../images/logo-mask.svg");
            -webkit-mask-position: top left;
            -webkit-mask-size: contain;
            -webkit-mask-repeat: no-repeat;
            /* object-fit: contain; */
            height: 100%;
            width: 100%;
            max-height: 100%;
        }
    }

    .item-content {
        position: relative;
        z-index: 1;
    }
}

/* ---------------------- FIN ACCUEIL */
