/* Les guides gratuits de Re:Order, sous /ressources : variante A « objets rétro en volume », choisie par Evan le 19/11/2026 (refonte/maquettes3/A,
   MISSION_PRODUCTION_A_1911). Chargée après contenu.css, qui porte le système commun (écran à colonne de gauche, en-tête et son objet, boutons,
   encarts, étiquettes, hiérarchie des vides). Ici : la navigation des dossiers, les cartes des guides, les blocs du sommaire, le formulaire,
   la lecture (sommaire collant, fiches encadrées, images agrandies), la 404. Couleurs de la charte v3, l'ambre jamais en texte sur crème (R22).
   Générée avec sources/ressources/gen_ressources.py ; contrôle : seo/controle_espacement.mjs (échelle, haut = bas, hiérarchie, débordement). */
.dd { --vt: VT, monospace; --g: 48px; --inverse-3: rgba(247, 242, 235, .66); --bord-g: max(var(--g), (100vw - var(--large)) / 2); }

/* l'état d'accès (cookie ro_acces, réécrit par le Worker) : « Ouvrir le guide » au lieu du formulaire, « Ouvert » sur les cartes */
.dd .ouvert { display: none !important; }
html[data-acces="ouvert"] .ouvert, [data-ouvert] .ouvert { display: inline-flex !important; }
html[data-acces="ouvert"] .ouvert.porte { display: grid !important; }
html[data-acces="ouvert"] .verrou { display: none !important; }

/* ---------------------------------------------------------------- la colonne de gauche : bibliothèque et dossiers */
.nav-dossiers { display: flex; flex-direction: column; gap: 4px; }
.nav-dossiers .etiq { padding: 0 12px 8px; }
.nav-dossiers .etiq ~ .etiq { padding-top: 24px; }
.onglet { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 8px 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font: 500 15px/1.25 var(--sans); }
.onglet span { text-box: trim-both cap alphabetic; }
.onglet b { margin-left: auto; font: 500 13px/1 var(--mono); color: var(--muted); }
.onglet:hover { background: var(--warm); }
.onglet[aria-current] { background: var(--ambre); }
.onglet[aria-current] b { color: var(--ink); }

/* ---------------------------------------------------------------- les cartes : le titre domine ; fonds espresso, crème et ambre en alternance ; l'objet dessous */
.grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; list-style: none; }
@container principal (min-width: 880px) { .grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.carte { display: flex; container: carte / inline-size; }
.carte-corps { display: flex; flex-direction: column; width: 100%; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); text-decoration: none; color: var(--ink); transition: translate .2s; }
a.carte-corps:hover { translate: 0 -4px; }
.carte-couv { position: relative; z-index: 0; display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.carte-couv::before { content: ''; position: absolute; z-index: -1; inset: 0; background: var(--fond-carte); }
.carte-texte { position: relative; z-index: 1; padding: 24px 24px 24px; }
.carte-etiq { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-box: trim-both cap alphabetic; }
.carte-etiq .ouvert { align-items: center; padding: 0 8px; border-radius: 4px; background: var(--ink); color: var(--paper); }
.carte-titre { margin-top: 24px; font: 600 clamp(26px, 10.4cqi, 44px)/1 var(--sans); letter-spacing: -.035em; text-wrap: balance; }
.carte-hook { margin-top: 12px; font: 500 12px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; text-wrap: balance; }
.carte-couv img { position: relative; margin-top: auto; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transform: scale(1.24) translateY(8%); transform-origin: 50% 100%; }  /* l'objet en grand, qui déborde du bas de la carte, comme l'inspiration 17 */
/* derrière l'objet, un pan en biais du ton de la carte (plus de bande ambre sur chaque carte : Evan, 19/11). z-index -1 : il passe DERRIÈRE l'objet
   (Evan, 19/11, capture 9 : le pan coupait le téléphone et les enveloppes) ; contrôle « pan derrière l'objet » de seo/controle_espacement.mjs */
.carte-couv::after { content: ''; position: absolute; z-index: -1; left: 40%; right: -20%; bottom: 0; height: 64%; transform: skewX(-24deg); transform-origin: 0 100%; }
.ton-sombre .carte-couv { --fond-carte: radial-gradient(120% 90% at 25% 15%, #46301F 0%, #312016 55%, #22170F 100%) #312016; color: var(--inverse); }
.ton-sombre .carte-couv::after { background: rgba(247, 242, 235, .06); }
.ton-sombre .carte-etiq, .ton-sombre .carte-hook { color: #D9CCBC; }
.ton-clair .carte-couv { --fond-carte: #EFE6D8; }
.ton-clair .carte-couv::after { background: #E4D6C0; }
.ton-clair .carte-etiq, .ton-clair .carte-hook { color: var(--texte-2); }
.ton-ambre .carte-couv { --fond-carte: var(--ambre); }
.ton-ambre .carte-couv::after { background: #C98236; }
.ton-ambre .carte-etiq, .ton-ambre .carte-hook { color: #2A1D12; }
.carte-pied { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; min-height: 48px; padding: 12px 20px; background: var(--white); border-top: 1px solid var(--line); font: 500 11px/1 var(--mono); letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.carte-pied span { display: inline-flex; align-items: center; gap: 8px; }
.carte-pied { text-box: trim-both cap alphabetic; }
.carte-pied .fleche { margin-left: auto; color: var(--ink); }
@container carte (max-width: 400px) { .carte-pied span .ico { display: none; } .carte-pied { gap: 8px 12px; } }
.carte.prepa .carte-couv img { filter: grayscale(.8) opacity(.55); }

/* ---------------------------------------------------------------- les blocs du sommaire (dossier, guide) : deux colonnes, chaque partie dans sa carte */
/* (Evan, 19/11, capture 11) une grille, plus des colonnes de journal : jamais un bloc seul sur la moitié de la largeur. Trois guides : trois colonnes */
.blocs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; align-items: start; }
.blocs.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@container principal (max-width: 879px) { .blocs.n3 { grid-template-columns: minmax(0, 1fr); } }
.blocs > .bloc { margin-bottom: 0; }
.bloc { break-inside: avoid; margin-bottom: 48px; padding: 32px; border-radius: var(--rayon); background: var(--white); box-shadow: var(--ombre); }
.bloc-tete { margin-bottom: 24px; }
.bloc-tete > .etiq { text-box: trim-start cap alphabetic; }
.bloc h3 { margin-top: 12px; font: 600 22px/1.2 var(--sans); letter-spacing: -.02em; text-wrap: balance; }
.liste-fiches { list-style: none; display: grid; counter-reset: n; }
.liste-fiches li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.liste-fiches li:last-child { padding-bottom: 0; }
.liste-fiches li > span:first-child { flex: none; font: 500 12px/1.75 var(--mono); color: var(--muted); }
.liste-fiches li > span:only-child::before { counter-increment: n; content: counter(n, decimal-leading-zero); margin-right: 12px; font: 500 12px/1.75 var(--mono); color: var(--muted); }
.liste-fiches li > span:last-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.bloc:not(:has(.lien)) .liste-fiches li:last-child > span { text-box: trim-end cap alphabetic; }
.bloc .lien { margin-top: 24px; }

/* ---------------------------------------------------------------- le formulaire d'un guide */
.ouvrir { display: grid; gap: 16px; width: 100%; max-width: 560px; }
.porte { display: grid; gap: 8px; }
.porte-label { display: flex; align-items: center; gap: 8px; font: 600 15px/1.3 var(--sans); color: var(--ink); }
.champ-ligne { display: flex; gap: 8px; }
.champ-ligne input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 1px solid #BFB3A6; border-radius: 10px; background: var(--white); font: 400 16px/1 var(--sans); color: var(--ink); }
.champ-ligne input::placeholder { color: var(--muted); opacity: 1; }
.champ-ligne input:focus { outline: 2px solid var(--cocoa); outline-offset: 1px; }
.champ-ligne .bouton { min-height: 52px; }
.porte-mention { margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.porte-mention a { color: var(--texte-2); }
.porte-msg { font-size: 15px; line-height: 1.45; color: var(--ink); }
.porte-msg:empty { display: none; }
.porte-msg.erreur { color: #9A3B21; }
.porte-ouverte { justify-items: start; gap: 16px; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.deja summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: 14px; line-height: 1.4; color: var(--ink); }
.deja summary::-webkit-details-marker { display: none; }
.deja summary span { text-decoration: underline; text-underline-offset: 4px; }
.deja details[open] > :is(.champ-ligne, .porte-msg) { margin-top: 12px; }
.tete-guide .ouvrir { margin-top: 8px; }

/* ---------------------------------------------------------------- la lecture : le sommaire collant à gauche, le document à droite */
.lecture .doc { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }  /* copie désactivée (Evan, 18/11) ; les champs gardent la sélection */
.lecture :is(input, textarea) { -webkit-user-select: text; user-select: text; }
.sommaire > summary { display: none; }
.sommaire-tete { display: flex; justify-content: space-between; gap: 16px; padding: 0 0 16px 16px; border-bottom: 1px solid var(--line); }
.sommaire .compteur { color: var(--ink); }
.sommaire .liste { max-height: calc(100vh - 200px); overflow-y: auto; padding: 8px 0; scrollbar-width: thin; }
.sommaire ol { list-style: none; display: grid; }
.sommaire a { display: block; padding: 8px 16px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.35; color: var(--texte-2); text-decoration: none; }
.sommaire a:hover { color: var(--ink); }
.sommaire a.ici { border-left-color: var(--ambre); color: var(--ink); font-weight: 600; }
.sommaire .chap > span { display: block; padding: 24px 16px 8px; font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.sommaire .chap:first-child > span { padding-top: 8px; }
.sommaire .groupe > span { display: block; padding: 8px 16px 4px; font: 600 13px/1.35 var(--sans); color: var(--ink); }
.sommaire .groupe > ol { margin-left: 16px; border-left: 1px solid var(--line); }
.doc { min-width: 0; }
/* le document : chaque fiche dans sa carte blanche. Textes rognés (haut des capitales, ligne de base) : le vide vu est la marge écrite.
   (Evan, 19/11, capture 2) des paliers nets et visibles. Un vide entre deux textes ne se voit que s'il dépasse l'interligne (à 18 px sur 1,65 : 17 px
   de blanc entre deux lignes d'un même paragraphe ; la capture 2 montrait les points 01, 02, 03 « collés » avec 16). L'échelle d'Evan (12 entre deux points,
   16 entre deux paragraphes, 24 sous un sous-titre, 32 sous le titre d'une fiche, 48 au-dessus d'un sous-titre) est donc posée EN PLUS de l'interligne,
   arrondie à la charte : 24 entre deux points, 32 entre deux paragraphes (et avant ou après un bloc de la fiche), 40 sous un sous-sous-titre,
   48 sous un sous-titre, 56 sous le titre d'une fiche, 72 au-dessus de tout sous-titre (16 de plus que sous le titre : règle 7) ;
   48 entre deux blocs voisins de la colonne (fiches, « Guide suivant » : le palier des blocs de tout le site), 64 sous le titre d'un chapitre, 128 au-dessus.
   Tout texte prend la largeur de sa colonne ou de son bloc (Evan, 19/11 : aucun max-width qui coupe les phrases et laisse un vide à droite).
   Contrôle : seo/controle_espacement.mjs (échelle, haut = bas, hiérarchie, largeur, séparation, sous-titres, blocs voisins). */
.doc .prose { --pad: 48px; font-size: 18px; line-height: 1.65; overflow-wrap: break-word; }
.doc .prose :is(p, li, h2, h3, h4, h5, h6, figcaption > *, blockquote) { text-box: trim-both cap alphabetic; }
.doc .prose :where(.doc-intro, .fiche-lecture, blockquote, .encadre > div, .lettre > div) > * + * { margin-top: 32px; }
.doc .prose li > * + * { margin-top: 24px; }
.doc .prose .doc-intro { font-size: 20px; line-height: 1.55; color: var(--texte-2); }
.doc .prose p { text-wrap: pretty; }
.doc .prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--argile); text-underline-offset: 4px; }
.doc .prose a.renvoi { text-decoration: none; background: linear-gradient(transparent 62%, rgba(223, 151, 69, .55) 62%); }  /* un renvoi vers un autre guide : surlignage ambre sous l'encre */
.doc .prose .chapitre { margin-top: 128px; }
.doc .prose .chapitre-titre { font: 600 clamp(32px, 4.4cqi, 48px)/1.05 var(--sans); letter-spacing: -.03em; color: var(--ink); text-wrap: balance; scroll-margin-top: 96px; }
.doc .prose .num { display: block; margin-bottom: 16px; font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.doc .prose .fiche-lecture { margin-top: 48px; padding: var(--pad); border-radius: var(--rayon); background: var(--white); box-shadow: var(--ombre); overflow: clip; }
.doc .prose .doc-intro + .fiche-lecture { margin-top: 48px; }
.doc .prose .chapitre-titre + .fiche-lecture { margin-top: 64px; }
/* le titre de la fiche (son premier élément, h2 ou h3) ; dans la fiche, les intertitres (h3, h4) et les phrases en gras qui annoncent un bloc (.inter) */
.doc .prose .fiche-lecture > :is(h2, h3):first-child { font: 600 clamp(26px, 3.2cqi, 32px)/1.12 var(--sans); letter-spacing: -.025em; color: var(--ink); text-wrap: balance; scroll-margin-top: 112px; }
.doc .prose .fiche-lecture > :is(h2, h3):first-child + * { margin-top: 56px; }
.doc .prose .fiche-lecture > :is(h2, h3):first-child + :is(h3, h4, h5, h6):not(:first-child) { margin-top: 56px; }  /* un sous-titre juste sous le titre : le vide sous le titre */
.doc .prose .fiche-lecture > :is(ul, ol):last-child > li:last-child { text-box: trim-both cap alphabetic; }  /* les deux bords : « trim-end » seul rendait au dernier point ses 8 px du haut (filet de la règle 17) */
.doc .prose :is(.fiche-lecture, .doc-intro, .encadre > div, .lettre > div) > :is(h3, h4, h5, h6):not(:first-child) { margin-top: 72px; }
/* le sous-titre d'une fiche (un niveau sous son titre) : 48 dessous ; le sous-sous-titre : 40 */
.doc .prose :is(.fiche-lecture:has(> h2:first-child) > h3, .fiche-lecture:has(> h3:first-child) > h4) + * { margin-top: 48px; }
.doc .prose :is(h3, h4, h5, h6):not(.fiche-lecture > :first-child) { font: 600 20px/1.35 var(--sans); color: var(--ink); }
.doc .prose :is(h3, h4, h5, h6):not(.fiche-lecture > :first-child) + * { margin-top: 40px; }
/* une phrase en gras qui annonce un bloc (.inter) : 32 au-dessus, comme un paragraphe ; 12 sous elle, collée à ce qu'elle annonce */
.doc .prose .inter { font: 600 18px/1.4 var(--sans); color: var(--ink); }
.doc .prose :where(.fiche-lecture, .doc-intro) > .inter:not(:first-child) { margin-top: 32px; }
.doc .prose .inter + * { margin-top: 12px; }
.doc .prose :is(.fiche-lecture, .doc-intro) > :is(h4, .inter):first-child { margin-top: 0; }
.doc .prose strong { font-weight: 600; color: var(--ink); }
.doc .prose em { font-style: italic; }
/* listes : un élément par ligne, puce carrée ou numéro */
.doc .prose :is(ul, ol) { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.doc .prose li { position: relative; padding-left: 24px; }
.doc .prose ul > li::before { content: ''; position: absolute; left: 4px; top: calc(.35em - 3px); width: 6px; height: 6px; background: var(--cocoa); }
.doc .prose ol { counter-reset: n; }
.doc .prose ol > li { counter-increment: n; padding-left: 40px; }
.doc .prose ol > li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: -2px; font: 500 14px/1 var(--mono); color: var(--muted); }
/* une liste dont chaque point commence par un mot en gras : un tableau de définitions à filets */
.doc .prose ul:has(> li > strong:first-child) { gap: 0; border-top: 1px solid var(--line); }
/* le filet entre deux paragraphes à intitulé gras (relecture du parent, 19/11 au soir : 12 px sous le texte contre 32 entre deux paragraphes) :
   le même vide au-dessus et au-dessous du filet, celui de deux paragraphes (32) ; contrôle : règle 17 de seo/controle_espacement.mjs */
.doc .prose ul:has(> li > strong:first-child) > li { padding: 32px 0; border-bottom: 1px solid var(--line); }
.doc .prose ul:has(> li > strong:first-child) > li:last-child { padding-bottom: 0; border-bottom: 0; }
.doc .prose ul:has(> li > strong:first-child) { border-top: 0; } .doc .prose ul:has(> li > strong:first-child) > li:first-child { padding-top: 0; }
.doc .prose ul:has(> li > strong:first-child) > li::before { display: none; }
.doc .prose li > :is(ul, ol) { margin-top: 24px; }
/* « Idées d'objets » : chaque objet comme une ligne de boîte de réception */
.doc .prose ul.objets > li { padding: 12px 16px 12px 48px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-weight: 500; line-height: 1.45; }
.doc .prose ul.objets > li::before { left: 16px; top: calc(50% - 8px); width: 16px; height: 16px; background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7'/%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7'/%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3C/svg%3E") center / contain no-repeat; }
/* l'encadré (conseil) et la lettre (e-mail modèle) : une icône, le texte à côté */
.doc .prose :is(.encadre, .lettre) { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 16px; padding: 24px; border-radius: 12px; max-width: none; }
.doc .prose .encadre { background: var(--warm); }
.doc .prose .lettre { background: var(--paper); border: 1px solid var(--line); font-size: 17px; }
.doc .prose :is(.encadre, .lettre) > .ico { width: 24px; height: 24px; margin: -8px 0; color: var(--cocoa); }  /* centrée sur la première ligne, sans grandir la rangée */
.doc .prose :is(.encadre, .lettre) > div > :first-child { margin-top: 0; }
.doc .prose blockquote { padding: 4px 0 4px 24px; border-left: 3px solid var(--cocoa); font-size: 19px; font-style: italic; line-height: 1.55; }
/* les images : toute la largeur de la fiche, sans cadre ; la légende dessous ; un clic l'agrandit */
.doc .prose figure { margin-inline: calc(-1 * var(--pad)); }
.doc .prose .doc-intro figure { margin-inline: 0; }
.doc .prose .loupe { display: block; cursor: zoom-in; }
.doc .prose figure img { width: 100%; border: 0; border-radius: 0; box-shadow: none; background: none; }
.doc .prose .doc-intro figure img { border-radius: 12px; }
.doc .prose figcaption { margin-top: 16px; padding-inline: var(--pad); font-size: 16px; line-height: 1.55; color: var(--muted); }
.doc .prose .doc-intro figcaption { padding-inline: 0; }
.doc .prose figcaption > * + * { margin-top: 12px; }
.doc .prose figcaption .source { font: 500 12px/1.4 var(--mono); letter-spacing: .04em; }
.doc .prose ol.reperes { gap: 24px; color: var(--ink); }
/* les annotations des repères (Evan, 19/11, MISSION_EMAILS_ANNOTES_1911) : interligne normal dans un point, 24 entre deux points (au moins 8 de plus
   que l'interligne vu : contrôle outils/controle_emails_annotes.mjs), pastille centrée sur la première ligne (le point est rogné au haut des capitales) */
.doc .prose ol.reperes > li { padding-left: 40px; font-size: 16px; line-height: 1.5; text-wrap: wrap; }
.doc .prose ol.reperes > li::before { top: calc(.35em - 12px); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ambre); color: var(--ink); font: 600 13px/1 var(--sans); content: counter(n); }
/* un e-mail de marque annoté : l'e-mail à une largeur fixe (560 px quand la place le permet ; 20 à 30 % de moins qu'avant), sans cadre ni fond autour (son filet seul), ses annotations dans une colonne
   collante à côté (sous l'e-mail quand la fiche est étroite), une zone active sur chaque pastille dessinée, sa bulle au survol, au focus et au toucher */
.doc .prose .annotee { margin-inline: calc(16px - var(--pad)) 0; container: annotee / inline-size; }  /* les pastilles à 16 px du bord de la fiche ; les annotations s'arrêtent avec le texte */
.doc .prose .doc-intro .annotee { margin-inline: 0; }  /* l'introduction n'est pas dans une fiche : pas de marge à reprendre */
.doc .prose .annotee > figure.email { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; background: none; }  /* ni fond ni marge autour de l'e-mail (Evan, 18/11) : l'image commence à la gouttière, l'e-mail à son filet */
.doc .prose figure.email .planche { position: relative; container-type: inline-size; }
.doc .prose figure.email .loupe img { display: block; }
.doc .prose figure.email .source { margin-top: 16px; font: 500 12px/1.4 var(--mono); letter-spacing: .04em; color: var(--muted); }
.doc .prose figure.email figcaption { margin-top: 32px; padding: 0; color: var(--ink); }
.doc .prose figure.email figcaption > * + * { margin-top: 24px; }
@container annotee (min-width: 700px) {
  .doc .prose .annotee > figure.email { grid-template-columns: min(var(--pv), 100% - 256px) minmax(0, 1fr); column-gap: 32px; align-items: start; }
  .doc .prose figure.email .planche { grid-area: 1 / 1; }
  .doc .prose figure.email .source { grid-area: 2 / 1; }
  .doc .prose figure.email figcaption { grid-area: 1 / 2 / 3 / 3; margin-top: 0; position: sticky; top: 96px; }
}
.doc .prose figure.email li { cursor: pointer; }
.repere { position: absolute; z-index: 1; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: max(calc(var(--d) * 1%), 24px); aspect-ratio: 1; translate: -50% -50%;
  padding: 0; border: 0; border-radius: 50%; background: none; cursor: help; }
.repere:is(:hover, :focus-visible, .montre), figure:has(li[data-n="1"]:hover) .repere[data-n="1"], figure:has(li[data-n="2"]:hover) .repere[data-n="2"], figure:has(li[data-n="3"]:hover) .repere[data-n="3"], figure:has(li[data-n="4"]:hover) .repere[data-n="4"], figure:has(li[data-n="5"]:hover) .repere[data-n="5"], figure:has(li[data-n="6"]:hover) .repere[data-n="6"], figure:has(li[data-n="7"]:hover) .repere[data-n="7"], figure:has(li[data-n="8"]:hover) .repere[data-n="8"], figure:has(li[data-n="9"]:hover) .repere[data-n="9"] {
  outline: none; box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.repere .bulle { display: none; position: absolute; z-index: 2; left: calc(100% + 12px); top: 50%; translate: 0 -50%; width: max-content;
  max-width: min(320px, (100 - var(--x)) * 1cqi - 40px); padding: 12px 16px; border-radius: 8px; background: var(--ink); color: var(--inverse);
  font: 400 15px/1.45 var(--sans); text-align: left; text-wrap: pretty; box-shadow: var(--ombre); pointer-events: none; }
.repere .bulle strong { color: var(--inverse); font-weight: 600; }
.repere:is(:hover, :focus-visible, .montre) .bulle { display: block; }
.doc .prose figure.email li:hover::before, figure:has(.repere[data-n="1"]:is(:hover, :focus-visible, .montre)) li[data-n="1"]::before, figure:has(.repere[data-n="2"]:is(:hover, :focus-visible, .montre)) li[data-n="2"]::before, figure:has(.repere[data-n="3"]:is(:hover, :focus-visible, .montre)) li[data-n="3"]::before, figure:has(.repere[data-n="4"]:is(:hover, :focus-visible, .montre)) li[data-n="4"]::before, figure:has(.repere[data-n="5"]:is(:hover, :focus-visible, .montre)) li[data-n="5"]::before, figure:has(.repere[data-n="6"]:is(:hover, :focus-visible, .montre)) li[data-n="6"]::before, figure:has(.repere[data-n="7"]:is(:hover, :focus-visible, .montre)) li[data-n="7"]::before, figure:has(.repere[data-n="8"]:is(:hover, :focus-visible, .montre)) li[data-n="8"]::before, figure:has(.repere[data-n="9"]:is(:hover, :focus-visible, .montre)) li[data-n="9"]::before {
  background: var(--ink); color: var(--paper); }
.doc .prose .cadre { position: relative; }
.doc .prose figure.coupe:not(.deplie) .cadre img { height: var(--coupe, 960px); object-fit: cover; object-position: top; }  /* l'image elle-même coupée (sa boîte aussi) */
.doc .prose figure.coupe:not(.deplie) .cadre::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(rgba(255, 255, 255, 0), var(--white) 80%); pointer-events: none; }
.doc .prose .deplier { position: absolute; z-index: 1; left: 50%; bottom: 24px; translate: -50% 0; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 0; border-radius: 8px;
  background: var(--cocoa); color: var(--inverse); font: 600 14px/1 var(--sans); white-space: nowrap; cursor: pointer; }
.doc .prose figure.deplie .deplier { position: sticky; display: flex; width: fit-content; margin: 16px auto 0; translate: none; bottom: 24px; }
.doc .prose .tableau { max-width: none; box-shadow: 0 0 0 1px var(--line); }
.doc .prose .tableau table { font-size: 15px; line-height: 1.5; }
.doc .prose code { font-size: .86em; }
/* prompts et modèles : un « terminal » de l'ordinateur Re:Order, avec « Copier ». (Evan, 19/11, capture 3) le filet sous l'en-tête fait toute la largeur
   du bloc (il est le haut du texte, qui occupe les deux colonnes) ; 20 de marge interne partout : en haut, en bas, à gauche, à droite */
.doc .prose .code { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; max-width: none; border-radius: 12px; background: var(--dark-card); overflow: hidden; }
.doc .prose .code-tete { grid-row: 1; grid-column: 1; padding: 0 20px; font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--inverse-2); text-box: trim-both cap alphabetic; }
.doc .prose .code pre { grid-column: 1 / -1; margin: 0; padding: 20px; border-top: 1px solid var(--line-dark); text-box: trim-both cap alphabetic; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 14px/1.7 var(--mono); color: var(--inverse); }
.doc .prose .code code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.doc .prose .copier { grid-row: 1; grid-column: 2; margin: 20px 20px 20px 0; height: 24px; padding: 0 8px; border: 1px solid var(--line-dark); border-radius: 4px; background: var(--cocoa); font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--inverse); cursor: pointer; }
.doc .prose .copier:hover { border-color: var(--ambre); }
/* (Evan, 19/11, capture 5) les listes de contrôle : de vraies cases à cocher, gardées dans le navigateur, la partie clé en gras, « 7 sur 12 en place » */
.doc .prose ul.cocher { gap: 32px; }  /* la case dépasse de 4 px au-dessus du texte : 28 de blanc vu entre deux points */
.doc .prose ul.cocher > li { padding-left: 0; }
.doc .prose ul.cocher > li::before { content: none; }
.case-ligne { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 16px; cursor: pointer; }
.case-ligne input { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin: -4px 0 0; padding: 0; border: 1.5px solid var(--argile); border-radius: 4px;
  background: var(--white) center / 14px 14px no-repeat; cursor: pointer; }
.case-ligne input:checked { border-color: var(--cocoa); background-color: var(--cocoa);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-7' fill='none' stroke='%23F7F2EB' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E"); }
.case-ligne input:focus-visible { outline: 2px solid var(--cocoa); outline-offset: 2px; }
.case-ligne > span { text-box: trim-both cap alphabetic; }  /* rogné : la case (20 px, 4 px au-dessus) se centre sur les capitales de la première ligne */
.case-ligne:has(input:checked) > span { color: var(--texte-2); }
.doc .prose .cases-compte > span:first-child { text-box: trim-both cap alphabetic; }
.doc .prose .cases-compte { display: flex; align-items: center; gap: 16px; font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cases-compte b { font-weight: 600; color: var(--ink); }
.cases-compte .jauge { flex: 1; height: 4px; border-radius: 4px; background: var(--warm); overflow: hidden; }
.cases-compte .jauge > span { display: block; width: var(--p, 0%); height: 100%; background: var(--ambre); transition: width .2s; }
/* (Evan, 19/11, capture 6) les zones à remplir : un vrai formulaire (champs, listes de choix), gardé dans le navigateur, puis le résultat mis en forme */
.doc .prose .formulaire td { vertical-align: middle; }
.doc .prose .formulaire td.case-champ { text-box: none; }
.doc .prose .formulaire .champ { display: block; }
.doc .prose .formulaire .lab { text-box: trim-both cap alphabetic; }
.doc .prose .champ { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid #BFB3A6; border-radius: 8px; background: var(--white); font: 400 15px/1.4 var(--sans); color: var(--ink); }
.doc .prose select.champ { -webkit-appearance: none; appearance: none; padding-right: 32px; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23312016' stroke-width='1.75'/%3E%3C/svg%3E") no-repeat right 12px center; }
.doc .prose .champ:focus { outline: 2px solid var(--cocoa); outline-offset: 1px; }
.doc .prose .champ::placeholder { color: var(--muted); opacity: 1; }
.doc .prose textarea.champ { display: block; min-height: 80px; resize: vertical; }
.doc .prose .saisie { display: grid; gap: 12px; }
.doc .prose .saisie-libelle { font: 600 16px/1.4 var(--sans); color: var(--ink); text-box: trim-both cap alphabetic; }
.doc .prose ol.saisie-liste { gap: 8px; }
.doc .prose ol.saisie-liste > li { text-box: none; }
.doc .prose ol.saisie-liste > li::before { top: 12px; }
.doc .prose .resultat-carte { display: grid; gap: 24px; padding: 24px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.resultat-tete { display: grid; gap: 12px; }
.resultat-tete > .etiq { text-box: trim-both cap alphabetic; }
.doc .prose .resultat-titre { font: 600 22px/1.25 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.resultat-corps { display: grid; gap: 24px; }
.resultat-groupe { display: grid; gap: 12px; }
.doc .prose .resultat-groupe > .resultat-nom { font: 600 16px/1.4 var(--sans); color: var(--ink); }
.resultat-liste { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); align-items: baseline; gap: 4px 24px; font-size: 15px; line-height: 24px; }
.resultat-liste dt { color: var(--texte-2); }
.resultat-liste dd { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.resultat-liste dd.vide { color: var(--muted); font-weight: 400; font-style: italic; }
.doc .prose ol.resultat-ordre { gap: 8px; font-size: 15px; }
.doc .prose ol.resultat-ordre > li { padding-left: 32px; }
.doc .prose .resultat-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.doc .prose .resultat-note { font-size: 13px; line-height: 1.5; color: var(--muted); }
@media print {
  html.imprime body * { visibility: hidden !important; }
  html.imprime .a-imprimer, html.imprime .a-imprimer * { visibility: visible !important; }
  html.imprime .a-imprimer { position: absolute; left: 0; top: 0; width: 100%; border: 0; }
  html.imprime .a-imprimer :is(.resultat-actions, .resultat-note) { display: none; }
}
/* la page d'un guide (Evan, 19/11, capture 11 : le sommaire seul sur la moitié gauche, un grand vide à droite) : le sommaire à gauche,
   à droite un aperçu collant du guide (deux de ses schémas, ses chiffres, le bouton) ; une seule colonne de sommaire, lisible dans l'ordre */
.dedans-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 32px; align-items: start; }
.dedans-grille > .blocs { display: block; }
.dedans-grille > .blocs > .bloc + .bloc { margin-top: 48px; }
.dedans-grille > .blocs > .bloc:last-child { margin-bottom: 0; }
.apercu { position: sticky; top: 96px; display: grid; gap: 24px; padding: 24px; border-radius: var(--rayon); background: var(--white); box-shadow: var(--ombre); }
.apercu > .etiq { text-box: trim-start cap alphabetic; }
.apercu-images { display: grid; gap: 12px; }
.apercu-images img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0; border-radius: 8px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.apercu .chiffres { gap: 8px 16px; }
.apercu .bouton { width: 100%; }
/* la fin : le guide suivant, au palier des blocs voisins (Evan, 19/11, capture 7 : 128 de vide avant lui). Depuis le 20/11 au soir (capture 4), le bloc
   d'appel brun le précède : le guide suivant passe en carte blanche, pour que les deux ne se prennent pas l'un pour l'autre (capture 3). */
.fin { margin-top: 48px; }
.suivant { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: center; padding: 24px; border-radius: var(--rayon); background: var(--white); box-shadow: var(--ombre); color: var(--ink); text-decoration: none; }
.suivant .couv { display: block; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--pan); }
.suivant .couv img { width: 100%; height: 100%; object-fit: cover; }
.suivant-t { display: grid; gap: 12px; }
.suivant .etiq { color: var(--muted); text-box: trim-start cap alphabetic; }
.suivant .titre { font: 600 clamp(28px, 3.6cqi, 40px)/1.05 var(--sans); letter-spacing: -.03em; color: var(--ink); }
.suivant .hook { font: 500 12px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--texte-2); text-box: trim-end cap alphabetic; }
.suivant:hover .titre { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---------------------------------------------------------------- la vue agrandie d'une image : molette, pincement, boutons, glisser ; Échap ferme */
.vue { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(18, 13, 9, .94); color: var(--inverse); overflow: hidden; }
.vue::backdrop { background: transparent; }
.vue-scene { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
.vue-scene.glisse { cursor: grabbing; }
.vue-plan { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.vue-plan img { display: block; width: 100%; height: 100%; max-width: none; user-select: none; -webkit-user-drag: none; }
.vue-plan .bulle { max-width: 320px; transform-origin: 0 50%; scale: calc(1 / var(--s, 1)); }
.vue.notes .vue-scene { right: 360px; }
.vue-notes { position: absolute; top: 0; right: 0; bottom: 0; width: 360px; overflow-y: auto; padding: 32px 24px; background: var(--dark-card); border-left: 1px solid var(--line-dark); color: var(--inverse); }
.vue-notes ol { list-style: none; display: grid; gap: 24px; counter-reset: n; }
.vue-notes li { position: relative; padding-left: 40px; counter-increment: n; font-size: 16px; line-height: 1.5; text-box: trim-both cap alphabetic; cursor: pointer; }
.vue-notes li::before { content: counter(n); position: absolute; left: 0; top: calc(.35em - 12px); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ambre); color: var(--ink); font: 600 13px/1 var(--sans); }
.vue-notes li:hover::before, .vue:has(.repere[data-n="1"]:is(:hover, :focus-visible, .montre)) .vue-notes li[data-n="1"]::before, .vue:has(.repere[data-n="2"]:is(:hover, :focus-visible, .montre)) .vue-notes li[data-n="2"]::before, .vue:has(.repere[data-n="3"]:is(:hover, :focus-visible, .montre)) .vue-notes li[data-n="3"]::before, .vue:has(.repere[data-n="4"]:is(:hover, :focus-visible, .montre)) .vue-notes li[data-n="4"]::before, .vue:has(.repere[data-n="5"]:is(:hover, :focus-visible, .montre)) .vue-notes li[data-n="5"]::before, .vue:has(.repere[data-n="6"]:is(:hover, :focus-visible, .montre)) .vue-notes li[data-n="6"]::before, .vue:has(.repere[data-n="7"]:is(:hover, :focus-visible, .montre)) .vue-notes li[data-n="7"]::before, .vue:has(.repere[data-n="8"]:is(:hover, :focus-visible, .montre)) .vue-notes li[data-n="8"]::before, .vue:has(.repere[data-n="9"]:is(:hover, :focus-visible, .montre)) .vue-notes li[data-n="9"]::before { background: var(--inverse); }
.vue-notes strong { font-weight: 600; }
.vue-notes p { font-size: 16px; line-height: 1.5; margin-bottom: 24px; }
.vue:has(.vue-notes li[data-n="1"]:hover) .repere[data-n="1"], .vue:has(.vue-notes li[data-n="2"]:hover) .repere[data-n="2"], .vue:has(.vue-notes li[data-n="3"]:hover) .repere[data-n="3"], .vue:has(.vue-notes li[data-n="4"]:hover) .repere[data-n="4"], .vue:has(.vue-notes li[data-n="5"]:hover) .repere[data-n="5"], .vue:has(.vue-notes li[data-n="6"]:hover) .repere[data-n="6"], .vue:has(.vue-notes li[data-n="7"]:hover) .repere[data-n="7"], .vue:has(.vue-notes li[data-n="8"]:hover) .repere[data-n="8"], .vue:has(.vue-notes li[data-n="9"]:hover) .repere[data-n="9"] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.vue-outils { position: absolute; left: 50%; bottom: 24px; translate: -50% 0; display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--dark-card); border: 1px solid var(--line-dark); }
.vue-outils button { display: grid; place-items: center; min-width: 44px; white-space: nowrap; height: 44px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--inverse); font: 400 20px/1 var(--vt); cursor: pointer; }
.vue-outils button:hover { background: rgba(247, 242, 235, .08); }
.vue-outils .ico { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- 404 (idée 1) : l'ordinateur du hero de reorder.fr, l'écran en panne ; la photo couvre toute la largeur */
.erreur .dd-main { background: var(--ink); }
.e404 { background: var(--ink); }
/* la scène : tout l'écran sous la barre ; la photo (2 400 × 1 370) la couvre, l'écran en panne suit l'écran de l'ordinateur quel que soit le format */
.e404 .scene { --dw: max(100cqw, 100cqh * 1.7518); --dh: max(100cqh, 100cqw / 1.7518); --px: .70; --py: .60;
  position: relative; container-type: size; height: max(600px, 100svh - 64px); overflow: hidden; }
.e404 .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
.ecran-crt { position: absolute; z-index: 2; left: calc((100cqw - var(--dw)) * var(--px) + .591 * var(--dw)); top: calc((100cqh - var(--dh)) * var(--py) + .452 * var(--dh));
  width: calc(.226 * var(--dw)); height: calc(.30 * var(--dh)); margin: 0; padding: calc(.022 * var(--dh)) calc(.018 * var(--dw)); overflow: hidden; background: #0E0A07;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .8); font: 400 clamp(12px, .0132 * var(--dw), 26px)/1.22 var(--vt); color: var(--inverse-2); }
.ecran-crt::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, .25) 2px 4px); pointer-events: none; }
.ecran-crt .err { color: var(--inverse); }
.ecran-crt .q { display: block; margin-top: .7em; color: var(--ambre); }
/* le texte : sur la partie sombre de la photo, à gauche, calé sur la largeur commune ; il s'arrête avant l'ordinateur */
.e404 .texte { position: absolute; z-index: 2; left: var(--bord-g); top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; gap: 20px; align-items: flex-start;
  width: min(680px, calc((100cqw - var(--dw)) * var(--px) + .53 * var(--dw) - var(--bord-g) - 32px)); }
.e404 .fantome { font-size: clamp(120px, 22cqh, 260px); line-height: .8; text-box: trim-both cap alphabetic; margin-bottom: 8px; }
.e404 h1 { font: 400 clamp(44px, 6cqh, 68px)/.92 var(--vt); color: var(--inverse); text-wrap: balance; }
.e404 .chapo { font-size: 18px; text-align: left; }
.touches { display: flex; flex-wrap: wrap; gap: 8px; }
.touche { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 16px; border-radius: 10px; background: var(--dark-card); border: 1px solid var(--line-dark);
  box-shadow: 0 3px 0 var(--ink); text-decoration: none; color: var(--inverse); }
.touche:hover { border-color: rgba(247, 242, 235, .35); }
.touche .k { font: 400 28px/1 var(--vt); }
.touche .k u { text-decoration-color: var(--ambre); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.touche .d { font-size: 14px; color: var(--inverse-2); }
.touche.prime { background: var(--inverse); color: var(--ink); border-color: var(--inverse); box-shadow: inset 0 -4px 0 var(--line), 0 3px 0 var(--ink); }
.touche.prime .d { color: var(--muted); }

/* le mot fantôme de la 404, en VT323 tramé */
.fantome { font: 400 min(13vw, 236px)/.86 var(--vt); letter-spacing: -.01em; white-space: nowrap; text-transform: uppercase; user-select: none; pointer-events: none; color: transparent; }
.fantome > span { -webkit-background-clip: text; background-clip: text; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.97 0 0 0 0 0.95 0 0 0 0 0.92 0 0 0 0.14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(rgba(247, 242, 235, .16) 0 25%, rgba(247, 242, 235, .11) 25% 50%, rgba(247, 242, 235, .07) 50% 75%, rgba(247, 242, 235, .035) 75% 100%);
  background-size: 150px 150px, 100% 100%; }
.erreur .etiq { color: var(--argile); }
.erreur .dd-main { min-width: 0; }
.e404 .chapo { color: var(--inverse-2); }

/* ---------------------------------------------------------------- tablette */
@media (max-width: 1199px) {
  .blocs, .blocs.n3 { grid-template-columns: minmax(0, 1fr); }
  .dedans-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 24px; }
  .doc .prose { --pad: 32px; }
  .suivant { grid-template-columns: minmax(0, 1fr); }
  .suivant .couv { max-width: 320px; }
}
/* ---------------------------------------------------------------- mobile : les dossiers en onglets qui défilent, le sommaire de la lecture replié */
@media (max-width: 899px) {
  .nav-dossiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }  /* tous les dossiers visibles en deux colonnes, sans rangée qui défile ni onglet coupé au bord */
  .nav-dossiers .etiq { display: none; }
  .onglet { min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); font-size: 14px; }
  .onglet .ico { display: none; }
  .onglet[aria-current] { border-color: var(--ambre); }
  .grille { grid-template-columns: minmax(0, 1fr); gap: 48px; }  /* une seule colonne de cartes : le palier des blocs voisins */
  .carte-titre { font-size: clamp(30px, 10cqi, 40px); }
  .champ-ligne { flex-direction: column; }
  .dedans-grille { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .apercu { position: static; }
  .resultat-liste { grid-template-columns: minmax(0, 1fr); }
  .resultat-liste dd + dt { margin-top: 8px; }
  .champ-ligne input { flex: none; }
  .sommaire { border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
  .sommaire > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 12px 16px; cursor: pointer; list-style: none; font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
  .sommaire > summary::-webkit-details-marker { display: none; }
  .sommaire[open] > summary .ico { rotate: 180deg; }
  .sommaire-tete { display: none; }
  .sommaire .liste { max-height: none; overflow: visible; padding: 0 0 20px; }
  .sommaire > summary > span { text-box: trim-both cap alphabetic; }
  .doc .prose { --pad: 24px; font-size: 17px; }
  .doc .prose .doc-intro { font-size: 18px; }
  .doc .prose .chapitre { margin-top: 96px; }
  .doc .prose .fiche-lecture { margin-left: -8px; margin-right: -8px; }
  .doc .prose :is(.encadre, .lettre) { gap: 12px; padding: 20px; }
  .vue-outils { bottom: 16px; }
  .vue.notes .vue-scene { right: 0; bottom: 35dvh; }
  .vue-notes { top: auto; left: 0; width: auto; height: 35dvh; padding: 24px 16px; border-left: 0; border-top: 1px solid var(--line-dark); }
  .vue.notes .vue-outils { bottom: calc(35dvh + 16px); }
}
/* la 404 en portrait ou sur un écran étroit : la photo en bandeau, recadrée sur l'ordinateur, le texte dessous */
@media (max-width: 899px), (max-aspect-ratio: 5 / 4) {
  .e404 .scene { --ph: clamp(260px, 56cqw, 560px); --dw: max(100cqw, var(--ph) * 1.7518); --dh: max(var(--ph), 100cqw / 1.7518); --px: .76; --py: .5;
    container-type: inline-size; height: auto; }
  .e404 .photo { position: static; height: var(--ph); object-position: 76% 50%; }
  .ecran-crt { top: calc((var(--ph) - var(--dh)) * var(--py) + .452 * var(--dh)); font-size: calc(.0132 * var(--dw)); }
  .e404 .texte { position: relative; left: auto; top: auto; bottom: auto; width: auto; max-width: 720px; padding: 40px var(--g) 64px; }
  .e404 .fantome { font-size: clamp(110px, 24cqw, 200px); }
}
@media (max-width: 767px) {
  .dd { --g: 20px; }
  .e404 h1 { font-size: 46px; }
  .fantome { font-size: 25vw; white-space: normal; line-height: .82; }
}
@media (prefers-reduced-motion: reduce) { .carte-corps { transition: none; } a.carte-corps:hover { translate: none; } }
