/* Mes Poèmes — reconstruction 2026 du recueil de 2005.
   Le livre ouvert est rebâti en CSS grid à partir des tuiles d'origine
   (manuscrit_*.jpg) : coins dorés, tranches de cuir, reliure, papier. */

:root {
    --paper:        #f5ebca;
    --paper-edge:   #e6d9b0;
    --ink:          #3a2e1e;
    --ink-soft:     #6b5a42;
    --leather:      #80542a;
    --dark:         #120d07;
    --gold:         #8a6d1f;
    --gold-bright:  #e9dca7;
    --band:         #a1745d;

    --chrome-side:  48px;
    --chrome-cap:   40px;
    --spine:        60px;
    --book-max:     920px;

    --font-body:    'EB Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    --font-display: 'Tangerine', 'Monotype Corsiva', 'Apple Chancery', cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--dark);
    color: var(--gold-bright);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; height: auto; }

a { color: var(--gold); }
a:hover, a:focus-visible { text-decoration-thickness: 2px; }

:focus-visible {
    outline: 3px solid #d9b45b;
    outline-offset: 2px;
    border-radius: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--paper);
    color: var(--ink);
    padding: .6rem 1rem;
    z-index: 100;
}
.skip-link:focus { left: .5rem; top: .5rem; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Bandeau ---------- */

.masthead { text-align: center; padding: 0 0 .25rem; }
.masthead a { display: inline-block; line-height: 0; }
.masthead img { width: 750px; max-width: 100%; height: auto; }

/* ---------- Couverture (page d'accueil) ---------- */

.cover-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem 3rem;
    gap: 1.5rem;
}

.cover {
    display: block;
    position: relative;
    /* Format d'un livre de poche fermé : 11 cm sur 18 cm. */
    width: min(340px, 78vw);
    aspect-ratio: 11 / 18;
    background: url('/assets/img/cover-leather.jpg') repeat;
    background-size: 200px 90px;
    border: 10px solid #8f3a2e;
    box-shadow: 0 0 0 1px #4a2a12, 0 18px 46px rgba(0, 0, 0, .75);
    text-decoration: none;
    color: var(--gold-bright);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: clamp(2rem, 7vw, 3.5rem) 1.5rem clamp(1.75rem, 5vw, 2.75rem);
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}
.cover:hover, .cover:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px #4a2a12, 0 24px 56px rgba(0, 0, 0, .85);
}

/* Les 4 ornements dorés, repris du visuel de couverture d'origine. */
.cover::before, .cover::after,
.cover .cover__inner::before, .cover .cover__inner::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: url('/assets/img/cover-corner.png') no-repeat center / contain;
    pointer-events: none;
}
.cover::before { top: 0; left: 0; }
.cover::after  { top: 0; right: 0; transform: scaleX(-1); }
.cover .cover__inner::before { bottom: 0; left: 0; transform: scaleY(-1); }
.cover .cover__inner::after  { bottom: 0; right: 0; transform: scale(-1); }

.cover__inner { position: absolute; inset: 0; pointer-events: none; }

.cover__title {
    display: block;
    font-family: var(--font-display);
    /* Calibré pour tenir sur une seule ligne dans la couverture 11 × 18. */
    font-size: clamp(2.2rem, 8.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.05;
    margin: 0;
    color: #f0e4bd;
    text-shadow: 0 2px 3px rgba(0, 0, 0, .55);
}
.cover__author {
    display: block;
    margin: .35rem 0 0;
    font-size: clamp(1rem, 3.4vw, 1.2rem);
    font-style: italic;
    letter-spacing: .04em;
    color: #e7d3a2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.cover__intro {
    display: block;
    max-width: 30ch;
    margin: 1.25rem 0 0;
    font-size: 1rem;
    color: #eadcb4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.cover__cta {
    display: block;
    margin: 0;
    font-size: clamp(1rem, 3.2vw, 1.15rem);
    font-style: italic;
    color: #e7d9ab;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
    border-bottom: 1px solid rgba(231, 217, 171, .45);
    padding-bottom: .15rem;
}

.cover-caption {
    max-width: 46ch;
    text-align: center;
    color: #c9b98c;
    font-size: .95rem;
    margin: 0;
}

/* ---------- Le livre ouvert ---------- */

.book-wrap { flex: 1; padding: 0 .75rem 2.5rem; }

.book {
    max-width: var(--book-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: var(--chrome-side) 1fr var(--spine) 1fr var(--chrome-side);
    grid-template-rows: var(--chrome-cap) 1fr var(--chrome-cap);
    filter: drop-shadow(0 16px 34px rgba(0, 0, 0, .7));

    /* Format d'un livre de poche ouvert : 2 pages de 11 cm sur 18 cm de haut.
       Le livre garde donc toujours la même silhouette — ce sont les pages qui
       défilent, pas le livre qui s'allonge avec la table des matières. */
    aspect-ratio: 22 / 18;
}

.book__c        { background-repeat: no-repeat; background-size: 100% 100%; }
.book__c--tl    { background-image: url('/assets/img/manuscrit_01.jpg'); }
.book__c--tr    { background-image: url('/assets/img/manuscrit_05.jpg'); }
.book__c--bl    { background-image: url('/assets/img/manuscrit_11.jpg'); }
.book__c--br    { background-image: url('/assets/img/manuscrit_12.jpg'); }

.book__edge--top    { background: url('/assets/img/manuscrit_02.jpg') repeat-x top center / auto 100%; }
.book__edge--bottom { background: url('/assets/img/manuscrit_13.jpg') repeat-x bottom center / auto 100%; }
.book__cap--top     { background: url('/assets/img/manuscrit_03.jpg') no-repeat top center / 100% 100%; }
.book__cap--bottom  { background: url('/assets/img/manuscrit_14.jpg') no-repeat bottom center / 100% 100%; position: relative; }

/* Le signet qui dépasse sous la reliure. */
.book__cap--bottom::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 49px;
    background: url('/assets/img/manuscrit_17.jpg') no-repeat top center / 100% 100%;
}

.book__side--left  { background: url('/assets/img/manuscrit_09.jpg') repeat-y left center / 100% auto; }
.book__side--right { background: url('/assets/img/manuscrit_10.jpg') repeat-y right center / 100% auto; }
.book__spine       { background: url('/assets/img/manuscrit_07.jpg') repeat-y center / 100% auto; }

.book__page {
    background: url('/assets/img/manuscrit_06.jpg') repeat center top;
    color: var(--ink);
    padding: 1.6rem 1.9rem 1.8rem;
    /* min-*: 0 est indispensable — sans lui, un élément de grille refuse de
       descendre sous la hauteur de son contenu et le défilement n'a pas lieu. */
    /* min-*: 0 est indispensable — sans lui, un élément de grille refuse de
       descendre sous la hauteur de son contenu. */
    min-width: 0;
    min-height: 0;
    /* Repli sans JavaScript : le texte reste atteignable en défilant.
       Dès que la pagination s'active, .is-paginated coupe le défilement. */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.book__page.is-paginated { overflow: hidden; }
.book__page a { color: var(--gold); text-underline-offset: .18em; }

/* ---------- Table des matières (page de gauche) ---------- */

.toc__title {
    font-family: var(--font-display);
    font-size: 2.9rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 1rem;
    color: #5a4520;
    line-height: 1;
}

.toc__section { margin: 0 0 .9rem; }

.toc__chapter {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #7a6034;
    margin: 0 0 .3rem;
    border-bottom: 1px solid rgba(122, 96, 52, .35);
    padding-bottom: .2rem;
}

.toc__list { list-style: none; margin: 0; padding: 0; }
.toc__list li { margin: 0; }

.toc__list a {
    display: block;
    padding: .08rem .3rem .08rem .9rem;
    font-size: .97rem;
    text-decoration: none;
    color: var(--ink);
    position: relative;
    border-radius: 2px;
}
.toc__list a::before {
    content: '·';
    position: absolute;
    left: .25rem;
    color: var(--gold);
}
.toc__list a:hover { background: rgba(138, 109, 31, .12); text-decoration: underline; }
.toc__list a[aria-current='page'] {
    font-weight: 600;
    background: rgba(138, 109, 31, .16);
}

.toc__link {
    display: block;
    padding: .16rem .3rem;
    color: var(--ink);
    font-weight: 600;
}

/* ---------- Poème (page de droite) ---------- */

.poem__title {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
    margin: 0 0 1.4rem;
    color: #4a3a1c;
}

.poem__body { font-size: 1.08rem; line-height: 1.62; }
.poem__body .stanza { margin: 0 0 1.25rem; }

.poem__signature {
    margin: 1.75rem 0 0;
    text-align: right;
    font-style: italic;
    color: var(--ink-soft);
}

.poem__nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.25rem;
    padding-top: .9rem;
    border-top: 1px solid rgba(122, 96, 52, .3);
    font-size: .95rem;
}
.poem__nav a { text-decoration: none; font-weight: 600; }
.poem__nav a:hover { text-decoration: underline; }
.poem__nav .is-empty { visibility: hidden; }

.page__folio {
    margin-top: 1.25rem;
    text-align: center;
    font-size: .85rem;
    color: var(--ink-soft);
    font-variant-numeric: oldstyle-nums;
}

/* Contenu libre des pages (introduction, conclusion, pages légales) */
.prose h2 { font-size: 1.5rem; margin: 1.6rem 0 .5rem; color: #4a3a1c; }
.prose h3 { font-size: 1.2rem; margin: 1.3rem 0 .4rem; color: #4a3a1c; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose blockquote {
    margin: 1rem 0;
    padding: .3rem 0 .3rem 1rem;
    border-left: 3px solid rgba(138, 109, 31, .5);
    font-style: italic;
}
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid rgba(122, 96, 52, .35); padding: .4rem .6rem; text-align: left; }

/* ---------- Contrôle du son (opt-in, jamais d'autoplay) ---------- */

.page-ctls { display: contents; }

.page-ctl {
    position: absolute;
    top: .5rem;
    background: rgba(245, 235, 202, .55);
    border: 1px solid rgba(122, 96, 52, .4);
    color: var(--ink);
    font: inherit;
    font-size: .8rem;
    padding: .2rem .5rem;
    border-radius: 3px;
    cursor: pointer;
    z-index: 2;
}
.page-ctl:hover { background: rgba(245, 235, 202, .85); }
.page-ctl--sound { right: .6rem; }
.page-ctl--menu  { left: .6rem; }

.toc__close {
    position: absolute;
    top: .75rem;
    right: 1rem;
    background: rgba(245, 235, 202, .7);
    border: 1px solid rgba(122, 96, 52, .45);
    color: var(--ink);
    font: inherit;
    font-size: .85rem;
    padding: .3rem .7rem;
    border-radius: 3px;
    cursor: pointer;
}

/* ---------- Pied de page ---------- */

.site-footer {
    background: #0b0804;
    border-top: 1px solid #2a2013;
    padding: 2rem 1rem 2.5rem;
    color: #b7a67c;
    font-size: .92rem;
}
.site-footer__inner {
    max-width: var(--book-max);
    margin: 0 auto;
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.site-footer h2 {
    font-size: 1rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gold-bright);
    margin: 0 0 .6rem;
}
.site-footer a { color: #d9c58f; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 .3rem; }
.site-footer__legal {
    max-width: var(--book-max);
    margin: 1.75rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid #241b10;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.25rem;
    justify-content: space-between;
    font-size: .85rem;
    color: #8f8161;
}

/* Formulaires : libellé DEVANT le champ (charte serveur §23) */
.form-grid { display: grid; gap: 10px; }
.form-row {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 10px;
    align-items: start;
}
.form-row > label { padding-top: .4rem; font-size: .9rem; }
.form-row input, .form-row textarea, .form-row select {
    font: inherit;
    padding: .45rem .6rem;
    border: 1px solid #4a3d27;
    background: #171008;
    color: #eadcb4;
    border-radius: 3px;
    width: 100%;
}

.newsletter-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter-form input[type='email'] {
    flex: 1 1 12rem;
    font: inherit;
    padding: .5rem .65rem;
    border: 1px solid #4a3d27;
    background: #171008;
    color: #eadcb4;
    border-radius: 3px;
}
.newsletter-form button, .btn {
    font: inherit;
    padding: .5rem 1rem;
    border: 1px solid #8a6d1f;
    background: #2a1f0c;
    color: var(--gold-bright);
    border-radius: 3px;
    cursor: pointer;
}
.newsletter-form button:hover, .btn:hover { background: #3a2b10; }

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px; overflow: hidden;
}

.notice {
    margin: 0 0 1rem;
    padding: .6rem .8rem;
    border-radius: 3px;
    border: 1px solid;
}
.notice--ok    { border-color: #4d7a3a; background: rgba(77, 122, 58, .16); color: #cfe6bf; }
.notice--error { border-color: #9a4a3a; background: rgba(154, 74, 58, .16); color: #f0cfc7; }
.book__page .notice--ok    { color: #2f5220; background: rgba(77, 122, 58, .2); }
.book__page .notice--error { color: #6d2c1e; background: rgba(154, 74, 58, .18); }

/* ---------- Bandeau cookies ---------- */

.cookie-banner {
    position: fixed;
    inset: auto 0 0 0;
    background: #17100a;
    border-top: 2px solid var(--gold);
    color: #e6d9b6;
    padding: 1rem;
    z-index: 50;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .6);
}
.cookie-banner__inner {
    max-width: var(--book-max);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
    justify-content: space-between;
}
.cookie-banner p { margin: 0; flex: 1 1 22rem; font-size: .92rem; }
.cookie-banner .actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- 404 ---------- */

.error-page { text-align: center; padding: 3rem 1rem 4rem; }
.error-page h1 { font-family: var(--font-display); font-size: 4rem; margin: 0 0 .5rem; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
    :root { --chrome-side: 22px; --chrome-cap: 20px; --spine: 0px; }

    body { font-size: 17px; }

    .book {
        grid-template-columns: var(--chrome-side) 1fr var(--chrome-side);
        grid-template-rows: var(--chrome-cap) auto auto var(--chrome-cap);
    }
    /* Une seule colonne de papier : la reliure et sa tranche disparaissent. */
    .book__spine, .book__cap--top, .book__cap--bottom { display: none; }
    .book__c--tl  { grid-area: 1 / 1; }
    .book__c--tr  { grid-area: 1 / 3; }
    .book__edge--top    { grid-area: 1 / 2; }
    .book__side--left   { grid-area: 2 / 1 / 4 / 2; }
    .book__side--right  { grid-area: 2 / 3 / 4 / 4; }
    .book__page--left   { grid-area: 2 / 2; padding-bottom: 1rem; }
    .book__page--right  { grid-area: 3 / 2; padding-top: 1rem; }
    .book__c--bl  { grid-area: 4 / 1; }
    .book__c--br  { grid-area: 4 / 3; }
    .book__edge--bottom { grid-area: 4 / 2; }

    /* Sur téléphone, un format fixe n'a pas de sens : on laisse le contenu
       s'écouler dans la page, c'est le document qui défile. */
    .book { aspect-ratio: auto; }
    .book__page { padding-left: 1.25rem; padding-right: 1.25rem; overflow-y: visible; }

    /* La table des matières se replie en accordéon au-dessus du poème. */
    .toc { border-bottom: 1px solid rgba(122, 96, 52, .35); }
    .toc > summary {
        cursor: pointer;
        font-family: var(--font-display);
        font-size: 2.2rem;
        text-align: center;
        color: #5a4520;
        list-style: none;
        padding: .25rem 0 .75rem;
    }
    .toc > summary::-webkit-details-marker { display: none; }
    .toc > summary::after { content: ' ▾'; font-family: var(--font-body); font-size: 1rem; }
    .toc[open] > summary::after { content: ' ▴'; }
    .toc__title { display: none; }

    .poem__title { font-size: 2.2rem; }
}

@media (min-width: 861px) {
    /* Sur grand écran la table des matières est toujours dépliée. */
    .toc > summary { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    body { background: #fff; color: #000; }
    .book__c, .book__edge--top, .book__edge--bottom, .book__side--left,
    .book__side--right, .book__spine, .book__cap--top, .book__cap--bottom,
    .site-footer, .cookie-banner, .page-ctl, .toc__close, .poem__nav,
    .masthead { display: none !important; }
    .book { display: block; }
    .book__page { background: none; padding: 0; }
    .book__page--left { display: none; }
}

/* ---------- Compléments (aucun style inline : CSP stricte) ---------- */

.book__page--right { position: relative; }

.form-grid--narrow { max-width: 26rem; }

.input--paper {
    background: #fffdf5;
    color: var(--ink);
    border-color: #a8946a;
}

.footer-legal-links { display: flex; gap: 1rem; flex-wrap: wrap; }

.notice--page { max-width: var(--book-max); margin: 0 auto 1rem; }

/* ---------- Tourner la page ---------- */

/* La barre de navigation est collée en bas de la page, comme dans un livre.
   ⚠️ `flex: 1 0 auto` et surtout PAS `1 1 auto` : un article qui rétrécit sous
   son contenu déborde par-dessus la barre de navigation, et la page, elle, ne
   déborde plus — la mesure de pagination croit alors que tout tient. */
.poem { flex: 1 0 auto; }
.poem__nav, .page__folio { flex: 0 0 auto; }

.poem__nav {
    /* Hauteur stable : la mesure de pagination se fait avant que les boutons
       « tourner la page » ne remplacent les liens vers les poèmes voisins.
       Si cette barre changeait de hauteur ensuite, la coupure serait fausse. */
    min-height: 2.5rem;
    align-items: center;
}
.poem__slot {
    flex: 0 1 48%;
    min-width: 0;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.poem__slot--next { text-align: right; }
.poem__slot > .is-empty { visibility: hidden; }

.leaf-btn {
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    color: var(--gold);
    background: none;
    border: 0;
    border-bottom: 1px solid rgba(138, 109, 31, .45);
    padding: 0 0 .1rem;
    cursor: pointer;
}
.leaf-btn:hover { color: #5a4520; border-bottom-color: #5a4520; }
.leaf-btn[disabled] { opacity: .35; cursor: default; }

.leaf-btn--sm {
    font-size: 1.15rem;
    line-height: 1;
    padding: .1rem .5rem;
    border: 1px solid rgba(122, 96, 52, .4);
    border-radius: 3px;
}

.toc { display: flex; flex-direction: column; flex: 1 0 auto; }
.toc__flow { flex: 1 0 auto; }
.toc__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-top: auto;
    padding-top: .7rem;
    border-top: 1px solid rgba(122, 96, 52, .3);
}
.toc__nav-label {
    font-size: .85rem;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
    min-width: 3.2rem;
    text-align: center;
}

@media (max-width: 860px) {
    /* Sur téléphone aussi on tourne les pages : la page du poème occupe une
       hauteur fixe, et le balayage horizontal la fait tourner. */
    .book__page--right {
        height: 66svh;
        min-height: 340px;
        max-height: 640px;
    }
    @supports not (height: 1svh) {
        .book__page--right { height: 66vh; }
    }
    /* La table des matières reste un menu dépliant qui s'écoule. */
    .book__page--left { overflow-y: visible; }
    .toc__nav { display: none; }
}

/* ---------- Mobile : la table des matières devient un panneau ---------- */

@media (max-width: 860px) {
    /* Une barre de commandes en haut de page, à la place des boutons flottants. */
    .page-ctls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: .5rem;
        margin: 0 0 .5rem;
        flex: 0 0 auto;
    }
    .page-ctl {
        position: static;
        font-size: .82rem;
        padding: .3rem .65rem;
    }
    /* Seul le bouton « Son » est présent : le garder à droite. */
    .page-ctl--menu[hidden] + .page-ctl--sound { margin-left: auto; }

    .book__page--right { padding-top: .9rem; height: 70svh; }
    @supports not (height: 1svh) { .book__page--right { height: 70vh; } }
    .poem__title { margin-top: .2rem; margin-bottom: 1rem; }

    /* `js-drawer` est posé par site.js : sans JavaScript, la table des matières
       reste dans le flux au-dessus du poème et demeure donc accessible. */
    body.js-drawer .book {
        grid-template-rows: var(--chrome-cap) auto var(--chrome-cap);
    }
    body.js-drawer .book__side--left  { grid-area: 2 / 1; }
    body.js-drawer .book__side--right { grid-area: 2 / 3; }
    body.js-drawer .book__page--right { grid-area: 2 / 2; }
    body.js-drawer .book__c--bl       { grid-area: 3 / 1; }
    body.js-drawer .book__edge--bottom { grid-area: 3 / 2; }
    body.js-drawer .book__c--br       { grid-area: 3 / 3; }

    body.js-drawer .book__page--left {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 60;
        overflow-y: auto;
        padding: 3.4rem 1.4rem 2.5rem;
        background: url('/assets/img/manuscrit_06.jpg') repeat center top;
        box-shadow: none;
    }
    body.js-drawer.toc-open .book__page--left { display: block; }
    body.js-drawer.toc-open { overflow: hidden; }

    /* ⚠️ Un `filter` crée un bloc conteneur pour les descendants en
       `position: fixed` : sans ce `filter: none`, le panneau se cale sur le
       livre au lieu de couvrir l'écran. */
    body.js-drawer.toc-open .book { filter: none; }

    /* Dans le panneau, le titre remplace le résumé dépliant. */
    body.js-drawer .toc > summary { display: none; }
    body.js-drawer .toc__title { display: block; font-size: 2.4rem; }
    body.js-drawer .toc__close { display: block; }
    body.js-drawer .toc__list a { padding-top: .34rem; padding-bottom: .34rem; }
}

@media (min-width: 861px) {
    /* Sur grand écran les deux pages sont visibles : pas de panneau. */
    .page-ctl--menu, .toc__close { display: none !important; }

    /* Gouttière pour le bouton « Son », flottant en haut à droite : un titre
       long passerait dessous sans elle. Symétrique, le titre étant centré. */
    .poem__title { padding: 0 5.5rem; }
}
