/* ── Couleurs : thème clair (par défaut) ── */
:root {
  --ruban-rouge: #7a1f1f;
  --ruban-noir: #111111;
  --sur-ruban: #ffffff;
  --sur-ruban-accent: #e8b3b3;
  --rouge: #7a1f1f;        /* liens, titres de section */
  --rouge-fonce: #5c1616;  /* intertitres */
  --papier: #ffffff;
  --texte: #1a1a1a;
  --texte-doux: #4a4a4a;   /* sous-titres, citations */
  --gris: #6f6f6f;
  --filet: #dddddd;
  --code-fond: #f4f0ea;
  --separateur-filtre: none;
  --voix-gauche: #b0261e;  /* passages ==…== alignés à gauche */
  --voix-droite: #2b6a34;  /* passages ==…== alignés à droite */
  --maxw: 46rem;
  color-scheme: light;
}
/* ── Thème sombre : suit le réglage de l'appareil, sauf choix explicite du lecteur ──
   (les deux blocs ci-dessous sont identiques à dessein : l'un pour « Système », l'autre pour « Sombre » ;
   modifier une couleur sombre = la modifier dans les deux) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ruban-rouge: #5e1a1a;
    --ruban-noir: #0d0c0b;
    --sur-ruban: #f1ebe4;
    --sur-ruban-accent: #eab0ac;
    --rouge: #e09a93;
    --rouge-fonce: #e3a59e;
    --papier: #171513;
    --texte: #e6e0d8;
    --texte-doux: #bdb5aa;
    --gris: #9a9187;
    --filet: #35302c;
    --code-fond: #25211e;
    --separateur-filtre: invert(0.9);
    --voix-gauche: #f0877c;
    --voix-droite: #86cc92;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --ruban-rouge: #5e1a1a;
    --ruban-noir: #0d0c0b;
    --sur-ruban: #f1ebe4;
    --sur-ruban-accent: #eab0ac;
    --rouge: #e09a93;
    --rouge-fonce: #e3a59e;
    --papier: #171513;
    --texte: #e6e0d8;
    --texte-doux: #bdb5aa;
    --gris: #9a9187;
    --filet: #35302c;
    --code-fond: #25211e;
    --separateur-filtre: invert(0.9);
    --voix-gauche: #f0877c;
    --voix-droite: #86cc92;
    color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--papier);
  font-family: Georgia, "Times New Roman", serif;
  color: var(--texte);
  line-height: 1.8;
}
img { max-width: 100%; height: auto; }

/* ── Ruban rouge : titre du blog ── */
.ruban-rouge { position: relative; z-index: 40; background: var(--ruban-rouge); text-align: center; padding: 3rem 1rem 2.4rem; }
.ruban-rouge .titre-site { margin: 0; font-weight: normal; font-size: 2.1rem; letter-spacing: 0.06em; line-height: 1.3; }
.ruban-rouge .titre-site a { color: var(--sur-ruban); text-decoration: none; }
.ruban-rouge .titre-site a:hover { color: var(--sur-ruban-accent); }

/* ── Ruban noir : sections (reste collé en haut de l'écran) ── */
.ruban-noir { position: sticky; top: 0; z-index: 30; background: var(--ruban-noir); text-align: center; padding: 0.55rem 1rem; }
html { scroll-padding-top: 6rem; } /* un lien vers un titre ne le cache pas sous le ruban et la bande */
.ruban-noir nav > a, .ruban-noir .fiction-menu > button {
  color: var(--sur-ruban); text-decoration: none; cursor: pointer;
  font: inherit; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase;
  margin: 0 1.1rem; padding: 0 0 0.55rem; background: none; border: none;
  border-bottom: 2px solid transparent; line-height: 1.8;
}
.ruban-noir nav > a:hover, .ruban-noir nav > a.actif,
.ruban-noir .fiction-menu > button:hover, .ruban-noir .fiction-menu > button.actif {
  color: var(--sur-ruban-accent); border-bottom-color: var(--sur-ruban-accent);
}

/* ── Sous-menu Fiction ── */
.fiction-menu { position: relative; display: inline-block; }
.sous-menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--ruban-noir); padding: 0.5rem 1.2rem 0.6rem; white-space: nowrap; z-index: 10;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}
.sous-menu a {
  display: block; color: var(--sur-ruban); text-decoration: none; text-align: center;
  font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.3rem 0 0.15rem;
}
.sous-menu a:hover, .sous-menu a.actif { color: var(--sur-ruban-accent); }
.fiction-menu:hover .sous-menu, .fiction-menu:focus-within .sous-menu, .fiction-menu.ouvert .sous-menu { display: block; }
/* Statut des histoires dans le menu Fiction, sur la même ligne que le nom */
.sous-menu .statut-menu {
  margin-left: 0.5rem; color: var(--sur-ruban); opacity: 0.55;
  font-size: 0.68rem; font-style: italic; letter-spacing: 0.06em; text-transform: none;
}
.sous-menu .statut-menu::before { content: "· "; }
.sous-menu a:hover .statut-menu, .sous-menu a.actif .statut-menu { color: var(--sur-ruban-accent); opacity: 0.8; }

main { --gouttiere: 1.25rem; /* marge intérieure de chaque côté de la page */
  max-width: var(--maxw); margin: 0 auto; padding: 3rem var(--gouttiere) 5rem; }

/* ── Listes ── */
.categorie h1 {
  font-weight: normal; font-size: 1.5rem; color: var(--rouge);
  border-bottom: 1px solid var(--filet); padding-bottom: 0.4rem; margin: 0 0 0.4rem;
}
.statut { font-size: 0.75rem; color: var(--gris); font-style: italic; letter-spacing: 0.02em; }
ul.liste { list-style: none; margin: 0; padding: 0; }
ul.liste li { padding: 0.45rem 0; border-bottom: 1px dotted var(--filet); }
ul.liste a { display: block; color: var(--texte); text-decoration: none; }
ul.liste a:hover .titre-liste { color: var(--rouge); }
ul.liste .date { color: var(--gris); font-size: 0.82rem; margin-left: 0.5rem; white-space: nowrap; }
.sous-titre-liste { display: block; font-style: italic; color: var(--gris); font-size: 0.82rem; line-height: 1.3; margin-top: 0.1rem; }
.vide { color: var(--gris); font-style: italic; padding: 1rem 0; }

/* ── Colonne de texte centrée ── (la largeur des pages de texte est fixée par chaque lecteur :
   voir « Lecteur de fiction » et « Lecteur d'essais » plus bas) */
.apropos { max-width: 33rem; } /* ~12 mots par ligne */
article, .apropos, nav.voisins, .retour { margin-left: auto; margin-right: auto; }
.retour { display: block; margin-bottom: 1.5rem; color: var(--rouge); text-decoration: none; font-size: 0.88rem; letter-spacing: 0.05em; }
.retour:hover { text-decoration: underline; }
/* Triangles de navigation : 0,5em de haut, centrés sur la hauteur des capitales
   (≈ 0,35em au-dessus de la ligne de base), à bonne distance du mot */
.fleche { display: inline-block; width: 0.5em; height: 0.5em; vertical-align: 0.1em; }
.retour .fleche { margin-right: 0.6em; }
nav.voisins .prec .sens .fleche { margin-right: 0.6em; }
nav.voisins .suiv .sens .fleche { margin-left: 0.6em; }
.apropos p { font-size: 1.02rem; }

article h1 { font-weight: normal; font-size: 1.8rem; line-height: 1.3; margin: 0 0 0.3rem; }
article .meta { color: var(--gris); font-size: 0.85rem; margin-bottom: 2.2rem; letter-spacing: 0.05em; }
article .meta .sep { margin: 0 0.15em; }
article .sous-titre { font-style: italic; color: var(--texte-doux); font-size: 1.05rem; margin: 0 0 0.4rem; }
.corps h1, .corps h2 { font-weight: normal; font-size: 1.5rem; line-height: 1.4; color: var(--rouge-fonce); margin: 2.6rem 0 0.9rem; }
.corps h3 { font-weight: normal; font-size: 1.35rem; line-height: 1.4; color: var(--rouge-fonce); margin: 2.4rem 0 0.8rem; }
.corps h4 { font-weight: bold; font-size: 1.15rem; line-height: 1.4; color: var(--rouge-fonce); margin: 2rem 0 0.7rem; }
.corps h5 { font-weight: bold; font-size: 1.05rem; line-height: 1.4; font-style: italic; color: var(--texte); margin: 1.8rem 0 0.6rem; }
.corps h6 { font-weight: normal; font-size: 1.03rem; line-height: 1.4; font-style: italic; color: var(--texte-doux); margin: 1.6rem 0 0.5rem; }
.corps p, .corps li { font-size: 1.03rem; }
.corps a { color: var(--rouge); }
.corps hr { border: none; text-align: center; margin: 2rem 0; }
.corps hr::after { content: "⁂"; color: var(--gris); }
.corps .separateur { margin: 2.2rem 0; text-align: center; text-indent: 0; }
.corps .separateur img { display: inline-block; width: min(20rem, 75%); height: auto; filter: var(--separateur-filtre); }
.corps blockquote { margin: 1.6rem 0; padding: 0.2rem 1.3rem; border-left: 3px solid var(--rouge); color: var(--texte-doux); font-style: normal; }
.corps blockquote p { margin: 1em 0; }
.corps blockquote p:first-child { margin-top: 0.4rem; }
.corps blockquote p:last-child { margin-bottom: 0.4rem; }
.corps code { font-family: "Courier New", monospace; font-size: 0.92em; background: var(--code-fond); padding: 0.1rem 0.3rem; border-radius: 2px; }
.corps pre { background: var(--code-fond); padding: 1rem; border-radius: 3px; overflow-x: auto; font-family: "Courier New", monospace; font-size: 0.88rem; line-height: 1.5; }
.corps pre code { background: none; padding: 0; }
.corps figure { margin: 2rem 0; text-align: center; }
.corps figure img { display: block; margin: 0 auto; border-radius: 2px; }
.corps figcaption { margin-top: 0.6rem; color: var(--gris); font-size: 0.85rem; font-style: normal; line-height: 1.5; text-indent: 0; }

/* ── Dialogues à deux voix : <p class="left_text|right_text|centered_text"> + ==texte== ── */
.corps p.left_text, article.fiction .corps > p.left_text { text-align: left; text-indent: 0; margin: 0.9rem 15% 0.9rem 0; }
.corps p.right_text, article.fiction .corps > p.right_text { text-align: right; text-indent: 0; margin: 0.9rem 0 0.9rem 15%; }
.corps p.centered_text, article.fiction .corps > p.centered_text { text-align: center; text-indent: 0; margin: 0.9rem 0; }
.corps mark { background: none; color: inherit; }
.corps .left_text mark { color: var(--voix-gauche); }
.corps .right_text mark { color: var(--voix-droite); }

/* ── Précédent / suivant ── */
/* Icône « Partager ce texte », dernier élément de la ligne « par … · date »
   (la marge négative compense le rembourrage : zone à toucher confortable, sans décaler l'icône) */
.partage[hidden] { display: none; }
.bouton-partager {
  display: inline;
  margin: -0.4rem -0.4rem -0.4rem -0.47rem; padding: 0.4rem; /* -0.47 : l'icône a un peu de vide à gauche dans son dessin */
  background: none; border: none; border-radius: 2px; cursor: pointer;
  color: inherit; font: inherit; letter-spacing: inherit;
}
.bouton-partager:hover { color: var(--rouge); }
.bouton-partager:focus-visible { outline: 2px solid var(--rouge); outline-offset: 0; }
.bouton-partager svg { display: inline-block; width: 0.95rem; height: 0.95rem; vertical-align: -0.23em; }
.bouton-partager .message { margin: 0 0.45em 0 0.07rem; }
.bouton-partager .message:empty { display: none; }
nav.voisins { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--filet); }
nav.voisins a { color: var(--rouge); text-decoration: none; font-size: 0.88rem; line-height: 1.5; max-width: 46%; }
nav.voisins a:hover { text-decoration: underline; }
nav.voisins .sous-titre-voisin { display: block; margin-top: 0.15rem; color: var(--gris); font-style: italic; font-size: 0.8rem; line-height: 1.45; }
nav.voisins a:hover .sous-titre-voisin { text-decoration: none; }
nav.voisins a.suiv { text-align: right; margin-left: auto; }
nav.voisins .sens { display: block; color: var(--gris); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }

footer { border-top: 1px solid var(--filet); text-align: center; padding: 1.6rem 1rem 2.4rem; color: var(--gris); font-size: 0.82rem; }
footer a { color: var(--rouge); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Apparence : clair / sombre / système ── */
.choix-theme { position: absolute; top: 0.3rem; right: 0.7rem; z-index: 20; } /* dans le ruban noir, aligné sur le menu */
.bouton-theme {
  width: 2.6rem; height: 2.6rem; padding: 0; border: none; border-radius: 50%;
  background: transparent; color: var(--sur-ruban); cursor: pointer; opacity: 0.75;
  display: flex; align-items: center; justify-content: center;
}
.bouton-theme:hover, .bouton-theme:focus-visible, .bouton-theme[aria-expanded="true"] { opacity: 1; background: rgba(255,255,255,0.1); }
.choix-theme button:focus-visible { outline: 2px solid var(--sur-ruban-accent); outline-offset: 2px; }
.choix-theme .icone { width: 1.25rem; height: 1.25rem; flex: none; }
.bouton-theme .icone { display: none; }
[data-choix="light"] .bouton-theme .icone-light,
[data-choix="dark"] .bouton-theme .icone-dark,
[data-choix="system"] .bouton-theme .icone-system { display: block; }
:root:not([data-choix]) .bouton-theme .icone-system { display: block; }
.menu-theme {
  display: none; position: absolute; top: calc(100% + 0.35rem); right: 0;
  background: var(--ruban-noir); padding: 0.35rem; min-width: 9.5rem;
  box-shadow: 0 6px 14px rgba(0,0,0,0.3); border-radius: 3px;
}
.choix-theme.ouvert .menu-theme { display: block; }
.menu-theme button {
  display: flex; align-items: center; gap: 0.7rem; width: 100%;
  background: none; border: none; color: var(--sur-ruban); cursor: pointer; text-align: left;
  font: inherit; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.5rem 0.7rem; border-radius: 2px;
}
.menu-theme .icone { width: 1rem; height: 1rem; }
.menu-theme button:hover { background: rgba(255,255,255,0.08); }
.menu-theme button[aria-checked="true"] { color: var(--sur-ruban-accent); }
.menu-theme button[aria-checked="true"]::after { content: "✓"; margin-left: auto; }

@media (max-width: 600px) {
  .ruban-rouge { padding: 2.2rem 1rem 1.8rem; }
  .ruban-noir { padding-left: 2.9rem; padding-right: 2.9rem; } /* place pour le bouton d'apparence */
  .choix-theme { right: 0.3rem; }
  .ruban-rouge .titre-site { font-size: 1.6rem; }
  .ruban-noir nav > a, .ruban-noir .fiction-menu > button { margin: 0 0.6rem; }
  main { --gouttiere: 1rem; padding: 2rem var(--gouttiere) 4rem; }
}
/* Petits écrans : le menu Fiction s'ouvre vers la gauche pour ne pas déborder de l'écran */
@media (max-width: 30rem) { .sous-menu { left: auto; right: 0; transform: none; } }
/* Très petits téléphones : le menu reste sur une ligne à côté du bouton d'apparence */
@media (max-width: 380px) {
  .ruban-noir { padding-left: 0.4rem; padding-right: 2.7rem; }
  .ruban-noir nav > a, .ruban-noir .fiction-menu > button { margin: 0 0.45rem; letter-spacing: 0.1em; }
}

/* ── Listes longues : 20 textes d'abord, la suite sur demande ── */
.js ul.liste[data-par]:not(.geree) li:nth-child(n+21) { display: none; }
.plus-de-textes {
  display: block; margin: 1.6rem auto 0; padding: 0.55rem 1.3rem;
  background: none; border: 1px solid var(--filet); border-radius: 2px; cursor: pointer;
  color: var(--rouge); font: inherit; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.plus-de-textes:hover, .plus-de-textes:focus-visible { border-color: var(--rouge); }
.plus-de-textes[hidden] { display: none; }

/* ── Bouton « revenir en haut » (pages de texte) ── */
.haut-de-page {
  position: fixed; z-index: 25;
  right: calc(1.1rem + env(safe-area-inset-right, 0px)); bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  width: 2.9rem; height: 2.9rem; padding: 0; border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--ruban-noir); color: var(--sur-ruban); opacity: 0.85;
  border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}
.haut-de-page:hover, .haut-de-page:focus-visible { opacity: 1; color: var(--sur-ruban-accent); }
.haut-de-page:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; }
.haut-de-page[hidden] { display: none; }
.haut-de-page svg { width: 1.3rem; height: 1.3rem; }


/* ── Lecture, commun aux deux lecteurs : progression, section en cours, sommaire ──
   (ce qui diffère entre fiction et essais est regroupé plus bas, un bloc par lecteur) */
/* Ligne de progression : barre en segments. Chaque début de section est un repère clair tant qu'il est
   devant le lecteur, puis devient une coupure dans la barre une fois atteint. */
.progression { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; pointer-events: none; background: rgba(255,255,255,0.13); }
.progression .barre { display: block; height: 100%; background: var(--sur-ruban-accent); transform-origin: left; transform: scaleX(0); }
.progression .encoche { position: absolute; top: 0; width: 2px; height: 100%; margin-left: -1px; background: rgba(255,255,255,0.7); }
.progression .encoche.passee { width: 3px; margin-left: -1.5px; background: var(--ruban-noir); }

.section-courante {
  display: block; position: absolute; top: 100%; left: 0; right: 0; width: 100%; margin: 0; padding: 0.4rem 2.4rem 0.45rem 1rem;
  background: var(--ruban-noir); box-shadow: inset 0 0 0 999px rgba(255,255,255,0.07), 0 4px 10px rgba(0,0,0,0.18);
  border: none; cursor: pointer;
  color: var(--sur-ruban); font: inherit; font-size: 0.8rem; font-style: italic; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.section-courante::after { content: "▾"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-style: normal; opacity: 0.6; }
.section-courante[aria-expanded="true"]::after { content: "▴"; }
.section-courante[hidden] { display: none; }

.sommaire { display: none; font-size: 0.8rem; line-height: 1.45; }
.sommaire-titre { margin: 0 0 0.6rem; color: var(--gris); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; }
.sommaire ol { list-style: none; margin: 0; padding: 0; }
.sommaire li { margin: 0; }
.sommaire a { display: block; padding: 0.3rem 0 0.3rem 0.8rem; border-left: 2px solid var(--filet); color: var(--gris); text-decoration: none; }
.sommaire li.niveau-2 a { padding-left: 1.6rem; }
.sommaire li.niveau-3 a { padding-left: 2.4rem; font-size: 0.76rem; }
.sommaire li.niveau-4 a, .sommaire li.niveau-5 a { padding-left: 3.2rem; font-size: 0.74rem; }
.sommaire a:hover { color: var(--texte); }
.sommaire a.actuel { color: var(--texte); border-left-color: var(--rouge); }

/* Grands écrans : le sommaire se place dans la marge de droite et suit la lecture.
   Son emplacement exact et sa largeur dépendent du lecteur (voir plus bas). */
@media (min-width: 1180px) {
  article { position: relative; }
  .sommaire { display: block; position: absolute; top: -4.6rem; bottom: 0; }
  .sommaire-contenu { position: sticky; top: calc(var(--bas-ruban, 3.5rem) + 0.6rem); max-height: calc(100vh - var(--bas-ruban, 3.5rem) - 2rem); overflow-y: auto; }
  .section-courante { display: none; }
}
/* Écrans plus petits : le sommaire s'ouvre sous la bande « section en cours » */
@media (max-width: 1179px) {
  main.avec-bande { padding-top: 4.6rem; } /* la bande « Sommaire » ne cache pas le lien de retour */
  .sommaire.ouvert {
    display: block; position: fixed; z-index: 35; top: var(--bas-bande, 6rem); left: 0.75rem; right: 0.75rem;
    max-width: 30rem; margin: 0 auto; max-height: 65vh; overflow-y: auto;
    padding: 1rem 1.1rem; background: var(--papier); border: 1px solid var(--filet); box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  }
}

/* ══ Lecteur de fiction ══ */
main.fiction {
  --colonne-fiction: 33rem;      /* largeur du texte : ~12 mots par ligne */
}
main.fiction article, main.fiction nav.voisins, main.fiction .retour { max-width: var(--colonne-fiction); }
/* Alinéas, texte justifié */
article.fiction .corps > p { margin: 0; text-align: justify; hyphens: auto; -webkit-hyphens: auto; text-indent: 1.6em; }
article.fiction .corps blockquote p { text-indent: 0; }
/* Grands écrans : la colonne reste centrée ; le sommaire est collé au bord droit de l'écran */
@media (min-width: 1180px) {
  main.fiction .sommaire { right: calc((var(--colonne-fiction) - 100vw) / 2 + 1.75rem); width: 14rem; }
}

/* ══ Lecteur d'essais ══
   Mesures nommées une seule fois ici ; tous les calculs ci-dessous en découlent. */
main.essai {
  --colonne-essai: 42rem;        /* largeur du texte : ~15-16 mots par ligne */
  --ecart-sommaire: 8rem;        /* espace entre le texte et le sommaire */
  --largeur-sommaire: 18rem;     /* largeur du sommaire ; les titres plus longs passent à la ligne */
  --largeur-reference: 59rem;    /* largeur imaginaire centrée qui fixe la marge de gauche (voir plus bas) */
  --marge-bord-droit: 2.5rem;    /* espace minimal entre le sommaire et le bord droit de l'écran */
  max-width: calc(var(--colonne-essai) + 2 * var(--gouttiere)); /* --gouttiere : définie avec main */
}
main.essai article, main.essai nav.voisins, main.essai .retour { max-width: var(--colonne-essai); }

/* Grands écrans, essai avec sommaire : le texte est décalé vers la gauche et le sommaire
   prend place à sa droite.
   - Marge de gauche : on centre un bloc imaginaire de --largeur-reference ; la marge ne dépend
     donc que de la largeur de l'écran, jamais de l'essai : le texte est au même endroit sur
     tous les essais.
   - Sommaire : placé à --ecart-sommaire du texte, large de --largeur-sommaire, mais rétréci
     si besoin pour ne jamais dépasser le bord droit de l'écran moins --marge-bord-droit.
   Pour élargir le texte ou l'écart, changer les mesures ci-dessus ; si le sommaire manque
   alors de place sur les écrans de 1180 px, augmenter aussi --largeur-reference. */
@media (min-width: 1180px) {
  main.essai.avec-bande { max-width: none; }
  main.essai.avec-bande article, main.essai.avec-bande nav.voisins, main.essai.avec-bande .retour {
    margin-left: max(0px, calc((100% - var(--largeur-reference)) / 2)); margin-right: auto;
  }
  main.essai .sommaire {
    left: calc(100% + var(--ecart-sommaire)); width: var(--largeur-sommaire);
    /* bord droit de l'écran, moins tout ce qui est à gauche du sommaire, moins la marge */
    max-width: calc(100vw
      - var(--gouttiere)
      - max(0px, (100vw - 2 * var(--gouttiere) - var(--largeur-reference)) / 2)
      - var(--colonne-essai) - var(--ecart-sommaire)
      - var(--marge-bord-droit));
  }
}
