html.page-docs-categorie {
    scroll-snap-type: none;
}

html.page-docs-categorie,
html.page-docs-categorie body {
    background: #fff;
}

.liste-articles-categorie {
    width: 100%;
    margin: 0;
    padding: 0 0 64px;
    color: #24343b;
}

.liste-articles-entete {
    box-sizing: border-box;
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    place-items: center;
    margin: 0;
    padding: calc(var(--hauteur-menu, 80px) + 20px) 20px 20px;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
        url("../images/doc4.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
}

.liste-articles-entete::before {
    display: block;
    width: 100%;
    height: 120px;
    margin-bottom: 8px;
    background-image:
        linear-gradient(to bottom, transparent 55%, #fff 100%),
        url("../images/doc4.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    content: "";
}

.liste-articles-entete h1 {
    margin: 0 16px 30px;
    color: navy;
    font-family: "Roboto", Arial, sans-serif;
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    font-style: italic;
    font-weight: 500;
    text-shadow: 1px 1px #fff;
    text-transform: uppercase;
}

.liste-articles-infos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: navy;
    font-size: 1rem;
    font-style: italic;
}

.liste-articles-infos p {
    margin: 0;
}

.liste-articles-infos strong {
    font-style: normal;
}

.lien-recherche-categorie {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    color: #666;
}

.lien-recherche-categorie svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.liste-articles-grille {
    display: grid;
    width: min(1000px, calc(100% - 48px));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px 44px;
    margin: 0 auto;
}

.liste-articles-parent h2 {
    margin: 0 0 6px;
    color: #de4969;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.liste-articles-parent ul {
    margin: 0;
    padding-left: 22px;
}

.liste-articles-parent li {
    margin: 3px 0;
    line-height: 1.45;
}

.liste-articles-parent a {
    color: navy;
    text-decoration: none;
}

.liste-articles-parent a:hover,
.liste-articles-parent a:focus-visible {
    text-decoration: underline;
}

@media (max-width: 800px) {
    .liste-articles-grille {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }
}

@media (max-width: 520px) {
    .liste-articles-entete::before {
        height: 100px;
    }

    .liste-articles-entete h1 {
        margin-bottom: 22px;
    }

    .liste-articles-infos {
        gap: 14px;
        font-size: 0.9rem;
    }

    .liste-articles-grille {
        width: calc(100% - 36px);
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

.liste-articles-entete::before {
    display: none;
    content: none;
}

.liste-articles-infos {
    margin: 44px auto 64px;
    padding: 0 16px;
}

.liste-articles-categorie a[data-infobulle]:not([data-infobulle=""]) {
    position: relative;
}

.liste-articles-categorie a[data-infobulle]:not([data-infobulle=""])::after {
    content: attr(data-infobulle);
    position: absolute;
    z-index: 20;
    bottom: calc(100% + 10px);
    left: 50%;
    width: max-content;
    max-width: min(280px, 75vw);
    box-sizing: border-box;
    padding: 8px 12px;
    transform: translateX(-50%);
    border: 2px solid #aaa;
    border-radius: 6px;
    background: #fff;
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.liste-articles-categorie a[data-infobulle]:not([data-infobulle=""])::before {
    content: "";
    position: absolute;
    z-index: 21;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border-top: 8px solid #aaa;
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.liste-articles-categorie a[data-infobulle]:not([data-infobulle=""]):hover::after,
.liste-articles-categorie a[data-infobulle]:not([data-infobulle=""]):focus-visible::after,
.liste-articles-categorie a[data-infobulle]:not([data-infobulle=""]):hover::before,
.liste-articles-categorie a[data-infobulle]:not([data-infobulle=""]):focus-visible::before {
    opacity: 1;
    visibility: visible;
}
