/* ==========================================================================
   Ma Commande — Documentation (/documentation)
   Chargée par les seules pages de la documentation, après site.css dont elle reprend les jetons (couleurs, polices,
   arrondis). Mobile d'abord : menu replié derrière « Documentation » ; menu latéral à partir de 1024 px ;
   sommaire « Sur cette page » à droite à partir de 1280 px.
   ========================================================================== */

:root {
    --doc-header: 4.3rem;
    --doc-sidebar: 16.5rem;
    --doc-toc: 13.5rem;
    --doc-measure: 46rem;
    --doc-info: #1e5b45;
    --doc-info-soft: #eaf3ee;
    --doc-tip: #7a5a00;
    --doc-tip-soft: #fdf6dc;
    --doc-note: #2f4f6f;
    --doc-note-soft: #edf2f8;
    --doc-warn: #9b2c1f;
    --doc-warn-soft: #fcefec;
}

html {
    scroll-padding-top: calc(var(--doc-header) + 4rem);
}

/* --- Coquille ---------------------------------------------------------------- */

.doc-shell {
    width: 100%;
    max-width: calc(88rem + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.doc-main {
    min-width: 0;
    padding-block: 1.75rem 5rem;
}

.doc-sidebar {
    display: none;
}

/* Barre mobile : bouton « Documentation » qui déplie recherche et plan. */
.doc-mobilebar {
    position: sticky;
    top: var(--doc-header);
    z-index: 40;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0.6rem var(--gutter);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(1.4) blur(10px);
}

.doc-drawer__toggle {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.75rem;
    padding: 0.4rem 0.9rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-s);
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.doc-drawer__toggle::-webkit-details-marker {
    display: none;
}

.doc-drawer__toggle .icon {
    width: 1.15rem;
    height: 1.15rem;
    color: var(--accent);
}

.doc-drawer__chevron {
    margin-left: auto;
    transition: transform 0.15s ease;
}

.doc-drawer[open] .doc-drawer__chevron {
    transform: rotate(180deg);
}

.doc-drawer[open] .doc-drawer__toggle {
    border-color: var(--ink);
}

.doc-drawer__panel {
    max-height: calc(100vh - var(--doc-header) - 6rem);
    max-height: calc(100dvh - var(--doc-header) - 6rem);
    overflow-y: auto;
    padding: 1rem 0.25rem 0.5rem;
    overscroll-behavior: contain;
}

@media (min-width: 1024px) {
    .doc-shell {
        display: grid;
        grid-template-columns: var(--doc-sidebar) minmax(0, 1fr);
        gap: clamp(2rem, 1rem + 2vw, 3.5rem);
    }

    .doc-mobilebar {
        display: none;
    }

    .doc-sidebar {
        display: block;
        border-right: 1px solid var(--line);
    }

    .doc-sidebar__inner {
        position: sticky;
        top: var(--doc-header);
        max-height: calc(100vh - var(--doc-header));
        overflow-y: auto;
        padding: 1.75rem 1.25rem 2.5rem 0;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }

    .doc-main {
        padding-block: 2.25rem 6rem;
    }

    html {
        scroll-padding-top: calc(var(--doc-header) + 1.5rem);
    }
}

/* --- Plan (menu des rubriques) ------------------------------------------------- */

.doc-nav {
    margin-top: 1.25rem;
    font-size: 0.9375rem;
}

.doc-nav__home {
    display: block;
    padding: 0.4rem 0.7rem;
    border-radius: var(--radius-s);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.doc-nav__section {
    margin-top: 1.1rem;
}

.doc-nav__title {
    margin: 0 0 0.3rem;
    padding-inline: 0.7rem;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.doc-nav ul {
    list-style: none;
}

.doc-nav ul a {
    display: block;
    padding: 0.32rem 0.7rem;
    border-left: 2px solid transparent;
    border-radius: 0 var(--radius-s) var(--radius-s) 0;
    color: var(--text);
    line-height: 1.4;
    text-decoration: none;
}

.doc-nav a:hover {
    background: var(--mist);
    color: var(--ink);
}

.doc-nav a.is-current {
    background: var(--accent-soft);
    border-left-color: var(--accent);
    color: var(--accent-strong);
    font-weight: 600;
}

/* --- Recherche ------------------------------------------------------------------ */

.doc-search {
    position: relative;
    display: flex;
    align-items: center;
}

.doc-search__icon {
    position: absolute;
    left: 0.75rem;
    width: 1.1rem;
    height: 1.1rem;
    color: var(--muted);
    pointer-events: none;
}

.doc-search__input {
    width: 100%;
    min-height: 2.6rem;
    padding: 0.45rem 0.8rem 0.45rem 2.35rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-s);
    background: var(--paper);
    color: var(--ink);
    font: 500 0.9375rem/1.3 var(--font-body);
}

.doc-search__input::placeholder {
    color: #6d7872;
}

.doc-search__input:focus {
    border-color: var(--accent);
    outline: 3px solid rgba(30, 91, 69, 0.18);
    outline-offset: 0;
}

.doc-search--large .doc-search__icon {
    left: 1.1rem;
    width: 1.3rem;
    height: 1.3rem;
}

.doc-search--large .doc-search__input {
    min-height: 3.4rem;
    padding: 0.7rem 8rem 0.7rem 3.1rem;
    border-radius: var(--radius);
    font-size: 1.0625rem;
    box-shadow: 0 1px 2px rgba(20, 35, 28, 0.05), 0 10px 24px -18px rgba(20, 35, 28, 0.35);
}

.doc-search__submit {
    position: absolute;
    right: 0.4rem;
    min-height: 2.6rem;
    padding: 0.4rem 1rem;
    border: 0;
    border-radius: calc(var(--radius) - 4px);
    background: var(--accent);
    color: #fff;
    font: 600 0.9375rem/1 var(--font-body);
    cursor: pointer;
}

.doc-search__submit:hover {
    background: var(--accent-strong);
}

.doc-search__suggestions {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 60;
    max-height: min(26rem, 70vh);
    overflow-y: auto;
    padding: 0.35rem;
    list-style: none;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 40px -18px rgba(20, 35, 28, 0.4);
}

.doc-search__suggestions[hidden] {
    display: none;
}

.doc-search__suggestions a {
    display: block;
    padding: 0.55rem 0.7rem;
    border-radius: var(--radius-s);
    color: var(--text);
    text-decoration: none;
}

.doc-search__suggestions [aria-selected="true"] a,
.doc-search__suggestions a:hover {
    background: var(--accent-soft);
}

.doc-suggestion__title {
    display: block;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.35;
}

.doc-suggestion__meta {
    display: block;
    margin-top: 0.1rem;
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 550;
}

.doc-suggestion__excerpt {
    display: -webkit-box;
    margin-top: 0.2rem;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.8438rem;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.doc-suggestion--empty {
    padding: 0.7rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

.doc-suggestion--all a {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
}

/* --- Accueil de la documentation --------------------------------------------------- */

.doc-home__head {
    padding: clamp(1.75rem, 1rem + 3vw, 3rem) clamp(1.25rem, 0.5rem + 3vw, 3rem);
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(242, 201, 76, 0.16), transparent 55%),
        var(--mist);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
}

.doc-home__head h1 {
    font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
    line-height: 1.08;
}

.doc-home__lead {
    margin: 0.85rem 0 1.5rem;
    color: var(--muted);
    font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.doc-home__head .doc-search {
    max-width: 40rem;
}

.doc-kicker {
    margin: 0 0 0.5rem;
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.doc-home__grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.doc-panel {
    padding: 1.35rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.doc-panel p {
    font-size: 0.9688rem;
}

.doc-panel p + p {
    margin-top: 0.85rem;
}

.doc-panel__title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
    font-size: 1.1875rem;
    letter-spacing: -0.01em;
}

.doc-panel__title .icon {
    color: var(--accent);
}

.doc-startlist {
    counter-reset: etape;
    list-style: none;
}

.doc-startlist li {
    position: relative;
    counter-increment: etape;
    padding: 0.55rem 0 0.55rem 2.6rem;
}

.doc-startlist li + li {
    border-top: 1px solid var(--line);
}

.doc-startlist li::before {
    content: counter(etape);
    position: absolute;
    top: 0.6rem;
    left: 0;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
}

.doc-startlist a {
    color: var(--ink);
    font-weight: 650;
    text-decoration: none;
}

.doc-startlist a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.doc-startlist span {
    display: block;
    color: var(--muted);
    font-size: 0.9063rem;
    line-height: 1.45;
}

.doc-tasklist {
    display: grid;
    gap: 0.15rem;
    list-style: none;
}

.doc-tasklist a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    border-radius: var(--radius-s);
    color: var(--ink);
    font-weight: 550;
    text-decoration: none;
}

.doc-tasklist a:hover {
    background: var(--mist);
}

.doc-tasklist .icon {
    width: 1rem;
    height: 1rem;
    color: var(--accent);
}

.doc-home__sections {
    margin-top: 2.75rem;
}

.doc-home__subtitle {
    margin-bottom: 1.1rem;
    font-size: 1.5rem;
}

.doc-sections {
    display: grid;
    gap: 1rem;
}

.doc-section-card {
    padding: 1.2rem 1.3rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.doc-section-card:hover {
    border-color: #b9c6bd;
    box-shadow: 0 10px 24px -20px rgba(20, 35, 28, 0.45);
}

.doc-section-card__head {
    display: flex;
    gap: 0.85rem;
}

.doc-section-card__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: var(--radius-s);
    background: var(--accent-soft);
    color: var(--accent);
}

.doc-section-card h3 {
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
}

.doc-section-card h3 a {
    color: var(--ink);
    text-decoration: none;
}

.doc-section-card h3 a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.doc-section-card__head p {
    margin-top: 0.15rem;
    color: var(--muted);
    font-size: 0.9063rem;
    line-height: 1.45;
}

.doc-section-card ul {
    margin-top: 0.8rem;
    padding-left: 3.25rem;
    list-style: none;
    font-size: 0.9375rem;
}

.doc-section-card li + li {
    margin-top: 0.3rem;
}

.doc-home__aside {
    display: grid;
    gap: 1.25rem;
    margin-top: 2.75rem;
}

@media (min-width: 760px) {
    .doc-home__grid,
    .doc-home__aside {
        grid-template-columns: 1fr 1fr;
    }

    .doc-sections {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1440px) {
    .doc-sections {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Article ------------------------------------------------------------------------ */

.doc-page {
    max-width: var(--doc-measure);
}

.doc-article {
    min-width: 0;
}

@media (min-width: 1280px) {
    .doc-page--toc {
        display: grid;
        grid-template-columns: minmax(0, var(--doc-measure)) var(--doc-toc);
        gap: 3.5rem;
        max-width: none;
    }
}

.doc-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    list-style: none;
    color: var(--muted);
    font-size: 0.875rem;
}

.doc-breadcrumb li + li::before {
    content: "›";
    margin-right: 0.5rem;
    color: #9aa59f;
}

.doc-breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.doc-breadcrumb a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.doc-article__head {
    margin: 0.85rem 0 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.doc-article__head h1 {
    font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.625rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.doc-article__lead {
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 1.125rem;
    line-height: 1.55;
}

/* Sommaire replié, sous le titre, tant que la colonne de droite n'existe pas. */
.doc-toc-mobile {
    margin-bottom: 1.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    background: var(--mist);
}

.doc-toc-mobile summary {
    padding: 0.65rem 0.9rem;
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
}

.doc-toc-mobile .doc-toc__list {
    padding: 0 0.9rem 0.8rem;
}

@media (min-width: 1280px) {
    .doc-toc-mobile {
        display: none;
    }
}

.doc-toc {
    display: none;
}

@media (min-width: 1280px) {
    .doc-toc {
        display: block;
        position: sticky;
        top: calc(var(--doc-header) + 2.25rem);
        align-self: start;
        max-height: calc(100vh - var(--doc-header) - 4rem);
        overflow-y: auto;
        padding-left: 1rem;
        border-left: 1px solid var(--line);
        scrollbar-width: thin;
    }
}

.doc-toc__title {
    margin-bottom: 0.6rem;
    color: var(--ink);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.doc-toc__list {
    list-style: none;
    font-size: 0.875rem;
    line-height: 1.4;
}

.doc-toc__item + .doc-toc__item {
    margin-top: 0.45rem;
}

.doc-toc__item--3 {
    padding-left: 0.85rem;
}

.doc-toc__list a {
    color: var(--muted);
    text-decoration: none;
}

.doc-toc__list a:hover,
.doc-toc__list a.is-active {
    color: var(--accent);
}

.doc-toc__list a.is-active {
    font-weight: 600;
}

/* --- Contenu rédigé ------------------------------------------------------------------- */

.doc-content {
    color: var(--text);
    font-size: 1.0313rem;
    line-height: 1.7;
}

.doc-content > * + * {
    margin-top: 1.05rem;
}

.doc-content p {
    max-width: none;
}

.doc-content h2 {
    margin-top: 2.75rem;
    padding-top: 0.25rem;
    font-size: clamp(1.4rem, 1.25rem + 0.6vw, 1.6875rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.doc-content h3 {
    margin-top: 2rem;
    font-size: 1.1875rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.doc-content h2 + *,
.doc-content h3 + * {
    margin-top: 0.7rem;
}

.doc-content ul,
.doc-content ol {
    padding-left: 1.4rem;
}

.doc-content li + li {
    margin-top: 0.4rem;
}

.doc-content li > ul,
.doc-content li > ol {
    margin-top: 0.4rem;
}

.doc-content li::marker {
    color: var(--accent);
}

.doc-content code {
    padding: 0.1em 0.35em;
    border-radius: 5px;
    background: var(--mist);
    color: var(--ink);
    font-size: 0.875em;
    overflow-wrap: anywhere;
}

.doc-content strong {
    color: var(--ink);
}

/* Étapes : liste numérotée précédée de {.etapes}. */
.doc-content ol.etapes {
    counter-reset: etape;
    padding-left: 0;
    list-style: none;
}

.doc-content ol.etapes > li {
    position: relative;
    counter-increment: etape;
    padding-left: 2.4rem;
}

.doc-content ol.etapes > li + li {
    margin-top: 0.7rem;
}

.doc-content ol.etapes > li::before {
    content: counter(etape);
    position: absolute;
    top: 0.1rem;
    left: 0;
    display: grid;
    place-items: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
}

/* Tableaux : pleine largeur, dans un cadre (Documentation/DocumentationLibrary, WrapTables) qui défile
   horizontalement plutôt que de faire déborder la page. Sur téléphone, un tableau de quatre colonnes ou plus garde
   une largeur minimale lisible. */
.doc-table {
    max-width: 100%;
    overflow-x: auto;
}

.doc-table:focus-visible {
    outline-offset: 2px;
}

.doc-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    line-height: 1.5;
}

@media (max-width: 759.98px) {
    .doc-content table {
        font-size: 0.875rem;
    }

    .doc-table--large table {
        min-width: 38rem;
    }

    .doc-table--large {
        padding-bottom: 0.4rem;
        background:
            linear-gradient(to right, var(--paper) 30%, rgba(255, 255, 255, 0)) left center / 1.5rem 100% no-repeat local,
            linear-gradient(to left, var(--paper) 30%, rgba(255, 255, 255, 0)) right center / 1.5rem 100% no-repeat local,
            linear-gradient(to right, rgba(20, 35, 28, 0.14), transparent) left center / 0.6rem 100% no-repeat scroll,
            linear-gradient(to left, rgba(20, 35, 28, 0.14), transparent) right center / 0.6rem 100% no-repeat scroll;
    }

    .doc-content td code {
        overflow-wrap: anywhere;
    }
}

.doc-content th,
.doc-content td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.doc-content th {
    border-bottom: 2px solid var(--line);
    color: var(--ink);
    font-size: 0.8438rem;
    font-weight: 700;
}

.doc-content tbody tr:hover {
    background: #f8faf8;
}

/* Encadrés. */
.doc-callout {
    padding: 0.95rem 1.1rem;
    border-left: 4px solid var(--doc-info);
    border-radius: 0 var(--radius-s) var(--radius-s) 0;
    background: var(--doc-info-soft);
    font-size: 0.9688rem;
}

.doc-callout > * + * {
    margin-top: 0.55rem;
}

.doc-callout ul {
    padding-left: 1.2rem;
}

.doc-callout li + li {
    margin-top: 0.3rem;
}

.doc-callout__title {
    color: var(--doc-info);
    font-size: 0.8125rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.doc-callout--astuce {
    border-left-color: #c79a12;
    background: var(--doc-tip-soft);
}

.doc-callout--astuce .doc-callout__title {
    color: var(--doc-tip);
}

.doc-callout--a-savoir {
    border-left-color: var(--doc-note);
    background: var(--doc-note-soft);
}

.doc-callout--a-savoir .doc-callout__title {
    color: var(--doc-note);
}

.doc-callout--attention {
    border-left-color: var(--doc-warn);
    background: var(--doc-warn-soft);
}

.doc-callout--attention .doc-callout__title {
    color: var(--doc-warn);
}

/* Captures. */
.doc-capture {
    margin: 1.75rem 0 1.9rem;
}

.doc-capture__zoom {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 1px 2px rgba(20, 35, 28, 0.05), 0 12px 28px -22px rgba(20, 35, 28, 0.45);
    cursor: zoom-in;
}

.doc-capture__zoom:hover {
    border-color: #b9c6bd;
}

.doc-capture__zoom img {
    width: 100%;
}

.doc-capture--portrait .doc-capture__zoom {
    max-width: 20rem;
    margin-inline: auto;
    border-radius: 1.4rem;
}

.doc-capture figcaption {
    margin-top: 0.6rem;
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.45;
}

.doc-capture--portrait figcaption {
    text-align: center;
}

/* Agrandissement (js/documentation.js). */
.doc-zoom {
    width: fit-content;
    max-width: 96vw;
    max-height: 94vh;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.55);
    overflow: auto;
}

.doc-zoom::backdrop {
    background: rgba(20, 35, 28, 0.72);
}

.doc-zoom img {
    display: block;
    max-width: min(96vw, 1600px);
    max-height: calc(94vh - 3.25rem);
    width: auto;
    height: auto;
}

.doc-zoom__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0.6rem 0.45rem 1rem;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.875rem;
}

.doc-zoom__close {
    min-height: 2.25rem;
    padding: 0.3rem 0.85rem;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font: 600 0.875rem/1 var(--font-body);
    cursor: pointer;
}

.doc-zoom__close:hover {
    border-color: var(--ink);
}

/* --- Bas d'article ------------------------------------------------------------------- */

.doc-related {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.doc-related h2 {
    font-size: 1.1875rem;
}

.doc-related ul {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.9rem;
    list-style: none;
}

.doc-related a {
    font-weight: 600;
}

.doc-related span {
    display: block;
    color: var(--muted);
    font-size: 0.9063rem;
    line-height: 1.45;
}

.doc-prevnext {
    display: grid;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.doc-prevnext__link {
    display: block;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.doc-prevnext__link:hover {
    border-color: var(--accent);
    color: var(--ink);
}

.doc-prevnext__label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 600;
}

.doc-prevnext__label .icon {
    width: 0.95rem;
    height: 0.95rem;
}

.doc-prevnext__title {
    display: block;
    margin-top: 0.2rem;
    color: var(--accent);
    font-weight: 650;
    line-height: 1.35;
}

.doc-prevnext__link--next {
    text-align: right;
}

.doc-prevnext__link--next .doc-prevnext__label {
    justify-content: flex-end;
}

@media (min-width: 640px) {
    .doc-prevnext {
        grid-template-columns: 1fr 1fr;
    }

    .doc-prevnext__link--next:only-child {
        grid-column: 2;
    }
}

.doc-help {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9063rem;
}

/* --- Résultats de recherche ------------------------------------------------------------- */

.doc-results__count {
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

.doc-results {
    margin-top: 1rem;
    list-style: none;
}

.doc-results li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.doc-results a {
    font-size: 1.0625rem;
    font-weight: 650;
}

.doc-results__section {
    margin-top: 0.1rem;
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.doc-results__excerpt {
    margin-top: 0.35rem;
    font-size: 0.9375rem;
}

.doc-results__empty {
    margin-top: 1.25rem;
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius);
    background: var(--mist);
}

.doc-results__empty p + p {
    margin-top: 0.6rem;
}

@media print {
    .site-header,
    .site-footer,
    .doc-sidebar,
    .doc-mobilebar,
    .doc-toc,
    .doc-toc-mobile,
    .doc-prevnext {
        display: none !important;
    }
}
