[id] { /* Pour que les ancres prennent en compte la hauteur du menu + sous menu */
    scroll-margin-top: 130px;
}

:root {
    --hauteur-menu-secondaire: 66px;
}

/* BANDEAU TITRE */
.banner-contenu {
    height: 100%;
    padding-bottom: var(--hauteur-menu-secondaire); /* le menu secondaire chevauche le bandeau */
}

.banner-logo {
    width: 400px;
    height: 161px;
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .banner {
        height: auto;
    }

    .banner-contenu {
        flex-direction: column;
        justify-content: center;
        gap: 1rem;
        text-align: center;
        padding-top: 2rem;
        padding-bottom: calc(var(--hauteur-menu-secondaire) + 1.5rem);
    }

    .banner-logo {
        width: 300px;
        height: 121px;
    }

    .banner .banner-contenu h1 {
        font-size: 34px;
        line-height: 42px;
    }
}

@media (max-width: 575.98px) {
    .banner-logo {
        width: 220px;
        height: 89px;
    }

    .banner .banner-contenu h1 {
        font-size: 26px;
        line-height: 32px;
    }
}

/* MENU SECONDAIRE */
.anchors {
    position: relative;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    z-index: 4;
    background: white;
    height: var(--hauteur-menu-secondaire);
    margin-top: calc(1px - var(--hauteur-menu-secondaire))
}

.anchors ul {
    margin-top: 1vh;
    margin-left: 2vw;
    list-style-type: none;
}

.anchors ul li:hover {
    transform: scale(1.1);
    transition: transform 0.1s ease-in-out;
}

/* Sous 1200 px, les onglets défilent horizontalement au lieu de déborder */
@media (max-width: 1199.98px) {
    .anchors ul {
        max-width: calc(100% - 2vw);
        padding-right: 1rem;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .anchors ul::-webkit-scrollbar {
        display: none;
    }

    .anchors ul li:hover {
        transform: none;
    }
}

.fixe {
    position: fixed;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    width: 100%;
    height: 50px;
    left: 0;
    top: 145px;
    box-shadow: 0px 1px 1px rgba(3, 7, 18, 0.02),
    0px 5px 4px rgba(3, 7, 18, 0.03),
    0px 12px 9px rgba(3, 7, 18, 0.05),
    0px 20px 15px rgba(3, 7, 18, 0.06),
    0px 32px 24px rgba(3, 7, 18, 0.08);
}

/* FAQ */
#faq .row {
    border-radius: 40px;
    background-color: #EDFCF8;
}

/* CITATION*/

#citation {
    background: linear-gradient(#f0f0f0, var(--color-base-white));
}

/* TEMOIGNAGES */
.video-temoignage {
    width: 900px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 900 / 550;
}

/* COMMENT CA MARCHE */
.how-number {
    font-size: 50px;
}

/* Colonnes empilées sous 1200 px : les .row hors container ne débordent plus */
@media (max-width: 1199.98px) {
    .ligne-comment-ca-marche,
    .ligne-comment-ca-marche > .row,
    .ligne-citation {
        margin-left: 0;
        margin-right: 0;
    }

    .cadre-info {
        max-width: calc(100% - 2rem);
    }
}

/* Schéma des étapes en colonne sur téléphone : vignette à gauche, libellé à droite, flèches vers le bas */
@media (max-width: 575.98px) {
    .schema-fonctionnement .bloc-schema {
        width: 100%;
        max-width: 340px;
        height: auto !important;
        min-height: 0;
    }

    .schema-fonctionnement .bloc-schema-fonctionnement {
        display: flex;
        flex-shrink: 0;
        width: 96px !important;
        min-width: 96px;
        height: 96px;
        min-height: 96px;
        border-radius: 25px 0 0 25px;
    }

    .schema-fonctionnement .image-schema-fonctionnement {
        width: 64px !important;
    }

    .schema-fonctionnement .check-schema-fonctionnement {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px;
        left: auto;
        right: -10px;
        top: auto;
        bottom: -6px;
    }

    .schema-fonctionnement .span-schema-fonctionnement {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1 1 auto;
        width: auto !important;
        min-width: 0;
        max-width: none;
        padding: 0.5rem 0.75rem 0.5rem 1.25rem;
        border-radius: 0 25px 25px 0;
    }

    .schema-fonctionnement .fleche-schema-fonctionnement {
        width: 32px;
        min-width: 32px;
        margin: 0.25rem 0;
        transform: rotate(90deg);
    }
}

/* BLOC COLORÉ SUR PHOTO (« Devenez gestionnaire », « Contribuer ») : sous 1200 px, photo en haut et texte
   dessous sur fond uni. Chaque page fournit --fond-uni, --fond-photo (URL absolue) et --fond-photo-cadrage. */
@media (max-width: 1199.98px) {
    .fond-photo-haut {
        height: auto;
        padding-top: 200px;
        background: linear-gradient(180deg, transparent 40px, var(--fond-uni) 230px),
                    var(--fond-photo) var(--fond-photo-cadrage) no-repeat,
                    var(--fond-uni);
    }
}

/* RESSOURCES */

#ressources {
    .carte-ressource {
        width: 240px;
        height: 237px;
        margin-right: 50px;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
    }

    .preserv-card:first-child {
        margin-left: 30px;
    }
    .k-scrollview-nav > .k-link {
        box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
        background: var(--color-neutrals-600);
        border: var(--color-neutrals-600);

        &.k-primary {
            background: var(--color-primary-500);
            border: var(--color-primary-500);
        }
    }

    .k-scrollview-next, .k-scrollview-prev {
        .k-svg-icon > svg {
            fill: var(--bs-body-color);
        }
    }

    .k-scrollview {
        border-color: transparent;

        .img-wrapper {
            display: flex;
            width: 100%;
            height: 350px;
            align-items: center;
            justify-content: start;
            padding: 0 30px;
        }
    }
}

/* Sur téléphone, une seule carte par page de carrousel (cf. nombreRessourcesParPage), centrée */
@media (max-width: 767.98px) {
    #ressources {
        .k-scrollview .img-wrapper {
            justify-content: center;
            padding: 0;
        }

        .carte-ressource,
        .preserv-card:first-child {
            margin-left: 0;
            margin-right: 0;
        }
    }
}
