/* colophon-app.com — feuille unique.
   Couleurs : les quatre éditions de l'app (src/theme/edition.ts : Rose, Sauge, Encre, Miel),
   en clair et en sombre. Les tranches de la marque (brique, prusse, forêt, ocre) restent
   indépendantes de l'édition, comme dans l'app. Polices : Spectral + Schibsted Grotesk. */
@font-face { font-family: 'Spectral'; font-weight: 400; font-style: normal; font-display: swap; src: url('/site-assets/fonts/spectral-400.woff2') format('woff2'); }
@font-face { font-family: 'Spectral'; font-weight: 400; font-style: italic; font-display: swap; src: url('/site-assets/fonts/spectral-400i.woff2') format('woff2'); }
@font-face { font-family: 'Spectral'; font-weight: 500 700; font-style: normal; font-display: swap; src: url('/site-assets/fonts/spectral-500.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 400; font-style: normal; font-display: swap; src: url('/site-assets/fonts/schibsted-400.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 500 700; font-style: normal; font-display: swap; src: url('/site-assets/fonts/schibsted-600.woff2') format('woff2'); }

/* ——— éditions ——— */
:root, [data-edition='rose'] {
  --paper: #FFF5E6; --ink: #351526; --accent: #AF2C22; --accent-text: #972820; --soft: #F9BAC2;
  --muted: #63454C; --pale: #F6B7C2; --night: #231A20; --night-card: #30232B; --night-soft: #543E46;
  --plan: #FFDE8B; --plan-ink: #492F19; --note: #B0D3DE; --note-ink: #351526;
  --plan-d: #453923; --plan-ink-d: #FFE4A5; --note-d: #263E49; --note-ink-d: #D1E8ED;
}
[data-edition='sauge'] {
  --paper: #F8FAF4; --ink: #19332E; --accent: #285C4F; --accent-text: #285C4F; --soft: #DDE7D3;
  --muted: #4F6257; --pale: #B8D7BF; --night: #172522; --night-card: #21322D; --night-soft: #3C5047;
  --plan: #CCDAB9; --plan-ink: #253C29; --note: #BFD8CE; --note-ink: #19332E;
  --plan-d: #35432D; --plan-ink-d: #DDE8C8; --note-d: #244039; --note-ink-d: #D1E7DC;
}
[data-edition='encre'] {
  --paper: #F7FAFC; --ink: #172F49; --accent: #275779; --accent-text: #275779; --soft: #D6E7F5;
  --muted: #4B6073; --pale: #B3D3EB; --night: #15212E; --night-card: #202F40; --night-soft: #3A4D5F;
  --plan: #C4D7EC; --plan-ink: #172F49; --note: #DDD5EE; --note-ink: #302942;
  --plan-d: #263B53; --plan-ink-d: #D4E4F4; --note-d: #3A344B; --note-ink-d: #E5DCF3;
}
[data-edition='miel'] {
  --paper: #FFFBF2; --ink: #3E3020; --accent: #84591B; --accent-text: #70480D; --soft: #F7E3B0;
  --muted: #6C5D45; --pale: #E9CB8D; --night: #282219; --night-card: #352D21; --night-soft: #554934;
  --plan: #F2C89B; --plan-ink: #49311D; --note: #DCE2BE; --note-ink: #353D25;
  --plan-d: #493625; --plan-ink-d: #F7DFC0; --note-d: #3C3B27; --note-ink-d: #E6E8C8;
}

/* rôles (clair) */
:root {
  color-scheme: light;
  --bg: var(--paper);
  --text: var(--ink);
  --text-2: var(--muted);
  --heading: var(--accent);
  --link: var(--accent-text);
  --surface: #FFFFFF;
  --tint: var(--soft);
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --panel-a: var(--plan); --panel-a-ink: var(--plan-ink);
  --panel-b: var(--note); --panel-b-ink: var(--note-ink);
  --btn: var(--accent); --btn-ink: #FFFFFF;
  --dot-lib: var(--accent); --dot-fest: #795418; --dot-hole: var(--bg);
  --brique: #AE4133; --prusse: #225F77; --foret: #2D6B4E; --ocre: #B5832E;
  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mesure: 66ch;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: var(--night);
    --text: #F7F3EA;
    --text-2: #D3CCC4;
    --heading: var(--pale);
    --link: var(--pale);
    --surface: var(--night-card);
    --tint: var(--night-soft);
    --line: color-mix(in srgb, #F7F3EA 16%, transparent);
    --panel-a: var(--plan-d); --panel-a-ink: var(--plan-ink-d);
    --panel-b: var(--note-d); --panel-b-ink: var(--note-ink-d);
    --btn: var(--pale); --btn-ink: var(--night);
    --dot-lib: var(--pale); --dot-fest: #E9CB8D; --dot-hole: var(--bg);
  }
}

/* ——— base ——— */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(17px, 0.35vw + 15.8px, 19px);
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); color: var(--heading); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); color: var(--heading); }
h3 { font-size: 1.32rem; color: var(--text); }
p, li, dd { text-wrap: pretty; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
strong { font-weight: 600; }
code { font-size: 0.9em; background: var(--tint); padding: 0.1em 0.35em; border-radius: 6px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: clamp(16px, 4vw, 48px); padding-right: clamp(16px, 4vw, 48px); }
.prose { max-width: var(--mesure); }
/* une page entière en .wrap.prose : la colonne reste alignée sur le titre, chaque bloc prend la mesure de lecture */
.wrap.prose { max-width: 1160px; }
.wrap.prose > * { max-width: var(--mesure); }
.wrap.prose > .capture { max-width: 340px; margin-left: 0; }
.prose h2 { margin: 2.1em 0 0.55em; }
.prose h3 { margin: 1.7em 0 0.45em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.muted { color: var(--text-2); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }

/* ——— en-tête ——— */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-height: 44px; }
.brand span { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.97rem; padding: 10px 12px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; transition: background-color 0.2s; }
.nav a:hover, .nav a[aria-current='page'] { background: var(--tint); }
@media (max-width: 860px) {
  .top-in { flex-wrap: wrap; gap: 0 12px; padding-top: 6px; }
  .top-in .btn-sm { margin-left: auto; }
  .nav { order: 3; width: calc(100% + 16px); margin: 0 -8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; gap: 0; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 10px 6px; font-size: 0.92rem; white-space: nowrap; }
}

/* ——— boutons, boutiques ——— */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-family: var(--sans); font-weight: 600; font-size: 1rem; text-decoration: none; background: var(--btn); color: var(--btn-ink); transition: transform 0.25s var(--ease), filter 0.2s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 8px; }
.stores img { display: block; height: 44px; width: auto; }
.stores a { display: inline-flex; min-height: 44px; align-items: center; }
.stores .web { font-weight: 600; color: var(--text); }

.crumbs { font-size: 0.9rem; color: var(--text-2); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--text-2); }
.crumbs .sep { opacity: 0.6; }

/* ——— accueil : héros ——— */
.hero { padding: clamp(36px, 6vw, 80px) 0 0; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 5rem); }
.hero .lede { font-size: clamp(1.08rem, 1.5vw, 1.24rem); max-width: 54ch; margin: 22px 0 26px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-shot { max-width: 300px; margin: 0 auto; } }

/* capture posée dans les marges, encadrée et inclinée sur un pavé de teinte douce */
.capture { position: relative; margin: 0 auto; max-width: 340px; padding: 34px 30px; }
.capture::before { content: ''; position: absolute; inset: 10% 0 6%; background: var(--pad, var(--tint)); border-radius: 30px; transform: rotate(-3deg); transition: background-color 0.5s var(--ease); }
.capture img { position: relative; display: block; width: 100%; border-radius: 24px; border: 6px solid #fff; box-shadow: 0 22px 48px color-mix(in srgb, var(--ink) 22%, transparent); transform: rotate(1.5deg); }
.capture figcaption { position: relative; font-size: 0.86rem; color: var(--text-2); text-align: center; margin-top: 18px; }
.pad-a { --pad: var(--panel-a); }
.pad-b { --pad: var(--panel-b); }
.capture img.ed-shot { display: none; }
.capture img.ed-rose { display: block; }
[data-edition='sauge'] .capture img.ed-rose, [data-edition='encre'] .capture img.ed-rose, [data-edition='miel'] .capture img.ed-rose { display: none; }
[data-edition='sauge'] .capture img.ed-sauge, [data-edition='encre'] .capture img.ed-encre, [data-edition='miel'] .capture img.ed-miel { display: block; }

/* l'étagère de la marque (tranches), calculée au build */
.shelf { display: flex; align-items: flex-end; justify-content: center; gap: 3px; margin: clamp(36px, 6vw, 64px) auto 0; padding: 0 12px; height: 230px; overflow: hidden; border-bottom: 10px solid var(--text); max-width: 1080px; }
.spine { flex: none; border-radius: 3px 3px 0 0; display: flex; align-items: center; justify-content: center; box-shadow: inset -3px 0 0 rgba(0, 0, 0, 0.13); transform-origin: bottom center; transition: transform 0.35s var(--ease); }
.spine:hover { transform: translateY(-8px) rotate(-1.5deg); }
.spine i { writing-mode: vertical-rl; text-orientation: sideways; transform: rotate(180deg); font-family: var(--serif); font-style: normal; font-size: 12px; color: rgba(255, 250, 240, 0.94); white-space: nowrap; overflow: hidden; max-height: 88%; }
@media (max-width: 560px) { .shelf { height: 180px; justify-content: flex-start; } }

/* ——— sections ——— */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--text-2); font-size: 1.08rem; margin-top: 16px; }
.band-tint { background: var(--tint); transition: background-color 0.5s var(--ease); }
.band-tint .section-head p { color: var(--text); }
.band-b { background: var(--panel-b); color: var(--panel-b-ink); --text: var(--panel-b-ink); --text-2: var(--panel-b-ink); --dot-hole: var(--panel-b); transition: background-color 0.5s var(--ease); }
.band-b h2 { color: var(--panel-b-ink); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0 36px; margin: 0; }
.facts > div { padding: 16px 0; border-top: 1px solid var(--line); }
.facts dt { font-family: var(--serif); font-style: italic; font-size: 1.08rem; color: var(--heading); margin-bottom: 2px; }
.facts dd { margin: 0; }

.feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 9vw, 112px); }
.feature.flip > :first-child { order: 2; }
.feature-text h2 { margin-bottom: 18px; }
.feature-text p, .feature-text ul { max-width: 52ch; }
.feature-text ul { padding-left: 1.2em; }
.feature-text li { margin-bottom: 0.4em; }
.feature-text .more { font-weight: 600; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature.flip > :first-child { order: 0; } }

/* ——— graphique : la série et ses trous ——— */
.serie { background: var(--surface); border-radius: 28px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 1px 0 var(--line), 0 24px 60px color-mix(in srgb, var(--ink) 8%, transparent); }
.serie-title { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 4px; color: var(--text); }
.serie-sub { color: var(--text-2); font-size: 0.92rem; margin: 0 0 18px; }
.serie svg { display: block; width: 100%; height: auto; overflow: visible; }
.serie .tome { fill: var(--foret); }
.serie .tome.b { fill: #245640; }
.serie .tome.c { fill: #357A59; }
.serie .gap { fill: none; stroke: var(--accent-text); stroke-width: 2; stroke-dasharray: 5 4; }
.serie .gap-label { font-family: var(--sans); font-size: 12px; font-weight: 600; fill: var(--accent-text); }
.serie .num { font-family: var(--serif); font-size: 11px; fill: rgba(255, 250, 240, 0.92); }
.serie .shelfline { fill: var(--text); }
@media (prefers-color-scheme: dark) { .serie .gap { stroke: var(--pale); } .serie .gap-label { fill: var(--pale); } }
.meter { margin-top: 20px; }
.meter-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.meter-row strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }
.meter-row span { color: var(--link); font-weight: 600; }
.meter-track { height: 12px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.meter-fill { height: 100%; border-radius: inherit; background: var(--btn); width: var(--value); transform-origin: left; }
.serie-note { font-size: 0.86rem; color: var(--text-2); margin: 14px 0 0; }

/* ——— section nuit : lire au calme ——— */
.nuit { background: var(--night); color: #F7F3EA; --heading: var(--pale); --link: var(--pale); --text-2: #D3CCC4; --line: color-mix(in srgb, #F7F3EA 16%, transparent); --btn: var(--pale); --btn-ink: var(--night); transition: background-color 0.5s var(--ease); }
@media (prefers-color-scheme: dark) { .nuit { background: color-mix(in srgb, var(--night) 72%, #000); } }
.nuit .section-head p { color: #E6DFD6; }
.calme { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 860px) { .calme { grid-template-columns: 1fr; } }
.calme-text h2 { margin-bottom: 20px; }
.calme-text p { color: #E6DFD6; max-width: 52ch; }
.semaine { background: var(--night-card); border-radius: 28px; padding: clamp(22px, 3vw, 32px); }
.semaine h3 { color: #F7F3EA; font-size: 1.2rem; margin-bottom: 4px; }
.semaine > p { color: #D3CCC4; font-size: 0.92rem; margin-bottom: 20px; }
.jours { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; list-style: none; padding: 0; margin: 0; }
.jour { text-align: center; font-size: 0.8rem; color: #D3CCC4; }
.jour b { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; margin: 0 auto 8px; width: 100%; max-width: 52px; background: var(--pale); color: var(--night); font-family: var(--serif); font-weight: 500; font-size: 0.98rem; }
.jour.grace b { background: transparent; border: 2px dashed var(--pale); color: var(--pale); }
.jour.grace { color: var(--pale); font-weight: 600; }
.serie-continue { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: #F7F3EA; font-size: 0.95rem; }
.serie-continue svg { flex: none; }

/* ——— quatre éditions ——— */
.editions-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); align-items: start; }
@media (max-width: 860px) {
  .editions-grid { grid-template-columns: repeat(4, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px clamp(16px, 4vw, 48px) 16px; margin: 0 calc(-1 * clamp(16px, 4vw, 48px)); scrollbar-width: thin; }
  .edition { scroll-snap-align: center; }
}
.edition { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.edition img { display: block; width: 100%; border-radius: 22px; border: 5px solid #fff; box-shadow: 0 16px 36px color-mix(in srgb, var(--ink) 14%, transparent); transition: transform 0.45s var(--ease); }
.edition:nth-child(odd) img { transform: rotate(-1.2deg); }
.edition:nth-child(even) img { transform: rotate(1.2deg) translateY(14px); }
.edition.is-current img { transform: translateY(-6px) rotate(0deg); }
.edition figcaption { display: flex; align-items: center; justify-content: center; margin-top: 12px; }
.pick { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 8px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: 600 0.98rem var(--sans); cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.pick:hover { border-color: var(--text-2); }
.pick[aria-pressed='true'] { border-color: var(--text); background: var(--tint); }
.sw { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.sw-rose { background: linear-gradient(135deg, #F9BAC2 50%, #AF2C22 50%); }
.sw-sauge { background: linear-gradient(135deg, #DDE7D3 50%, #285C4F 50%); }
.sw-encre { background: linear-gradient(135deg, #D6E7F5 50%, #275779 50%); }
.sw-miel { background: linear-gradient(135deg, #F7E3B0 50%, #84591B 50%); }
.pick-static { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.pick { display: none; }
.js .pick { display: inline-flex; }
.js .pick-static { display: none; }
.editions-note { margin-top: clamp(24px, 3vw, 36px); color: var(--text-2); max-width: 60ch; }

/* ——— carte des lieux ——— */
.carte-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .carte-grid { grid-template-columns: 1fr; } }
.carte { margin: 0; color: var(--dot-lib); }
.carte-svg { display: block; width: 100%; height: auto; max-width: 620px; margin: 0 auto; }
.carte-fest-ring { stroke: var(--dot-fest); }
.carte-fest-hole { stroke: var(--dot-hole); }
.chiffres { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 26px 0; padding: 0; list-style: none; }
.chiffres li { display: flex; align-items: center; gap: 12px; }
.chiffres b { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1; color: var(--heading); }
.chiffres span { color: var(--text); line-height: 1.3; }
.leg { flex: none; width: 14px; height: 14px; border-radius: 50%; }
.leg-lib { background: var(--dot-lib); }
.leg-fest { border: 3px solid var(--dot-fest); }
.carte figcaption { font-size: 0.86rem; color: var(--text-2); text-align: center; margin-top: 10px; }

/* ——— liens éditoriaux (au lieu d'une grille de cartes) ——— */
.links { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.links li { border-bottom: 1px solid var(--line); }
.links a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; align-items: center; padding: 22px 4px; text-decoration: none; color: var(--text); border-radius: 14px; transition: padding-left 0.3s var(--ease), background-color 0.3s; }
.links a:hover { padding-left: 16px; background: color-mix(in srgb, var(--tint) 55%, transparent); }
.links .t { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.55rem); color: var(--heading); line-height: 1.2; }
.links .d { grid-column: 1; color: var(--text-2); font-size: 0.98rem; }
.links .go { grid-column: 2; grid-row: 1 / span 2; font-size: 1.4rem; color: var(--heading); transition: transform 0.3s var(--ease); }
.links a:hover .go { transform: translateX(4px); }

.cta-end { text-align: center; }
.cta-end p { max-width: 50ch; margin: 16px auto 24px; }
.cta-end .stores { justify-content: center; }

/* ——— pages de contenu ——— */
.page-head { padding-top: clamp(28px, 5vw, 60px); padding-bottom: clamp(22px, 3vw, 36px); }
.page-head .lede { font-size: clamp(1.1rem, 1.6vw, 1.26rem); max-width: 62ch; margin-top: 20px; }
.page-head .meta { font-size: 0.9rem; color: var(--text-2); margin-top: 14px; max-width: 70ch; }
.page-body { padding-bottom: clamp(64px, 9vw, 110px); }
.summary { background: var(--panel-b); color: var(--panel-b-ink); border-radius: 22px; padding: 22px 26px; margin: 8px 0 32px; max-width: var(--mesure); }
.summary p:last-child, .summary ul:last-child { margin-bottom: 0; }
.summary ul { padding-left: 1.2em; }
.summary li { margin-bottom: 0.35em; }
.label { font-family: var(--serif); font-style: italic; font-size: 1.14rem; margin: 0 0 8px; }
.summary a, .note a { color: inherit; }
.note { background: var(--panel-a); color: var(--panel-a-ink); border-radius: 22px; padding: 18px 24px; margin: 24px 0; max-width: var(--mesure); }
.note p:last-child { margin-bottom: 0; }

.toc { font-size: 0.98rem; margin: 0 0 32px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-flex; min-height: 40px; align-items: center; padding: 0 15px; border-radius: 999px; background: var(--tint); color: var(--text); text-decoration: none; font-weight: 500; transition: filter 0.2s; }
.toc a:hover { filter: brightness(0.96); }

.feat-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 44px; }
.feat-group { padding: 30px 0; border-top: 1px solid var(--line); }
.feat-group h2 { font-size: 1.6rem; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.feat-group h2::before { content: ''; flex: none; width: 10px; height: 26px; border-radius: 3px 3px 0 0; background: var(--tranche, var(--accent)); box-shadow: inset -2px 0 0 rgba(0, 0, 0, 0.14); }
.feat-group:nth-child(4n+1) { --tranche: var(--brique); }
.feat-group:nth-child(4n+2) { --tranche: var(--prusse); }
.feat-group:nth-child(4n+3) { --tranche: var(--foret); }
.feat-group:nth-child(4n+4) { --tranche: var(--ocre); }
.feat-group ul { padding-left: 1.15em; margin: 0; }
.feat-group li { margin-bottom: 0.5em; }

.steps, .prose .steps { counter-reset: step; list-style: none; padding: 0; max-width: var(--mesure); }
.steps > li { counter-increment: step; position: relative; padding-left: 56px; margin-bottom: 24px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); font-family: var(--serif); font-size: 1.12rem; display: flex; align-items: center; justify-content: center; }

/* tableaux */
.table-scroll { overflow-x: auto; margin: 16px 0 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 860px; font-size: 0.93rem; line-height: 1.45; }
caption { text-align: left; padding: 16px 16px 6px; font-weight: 600; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
thead th { font-size: 0.8rem; color: var(--text-2); font-weight: 600; background: var(--surface); }
tbody th { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; white-space: nowrap; position: sticky; left: 0; background: var(--surface); }
tbody tr.us th, tbody tr.us td { background: color-mix(in srgb, var(--tint) 60%, var(--surface)); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.legend { font-size: 0.88rem; color: var(--text-2); max-width: var(--mesure); }

/* matrice du comparatif */
.matrice-wrap { overflow-x: auto; margin: 8px 0 10px; -webkit-overflow-scrolling: touch; }
table.matrice { min-width: 620px; border-collapse: separate; border-spacing: 0; font-size: 0.95rem; }
.matrice th, .matrice td { border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: center; vertical-align: middle; }
.matrice thead th { font-family: var(--sans); font-size: 0.82rem; font-weight: 600; color: var(--text-2); line-height: 1.25; vertical-align: bottom; background: transparent; }
.matrice tbody th { text-align: left; background: var(--bg); position: sticky; left: 0; }
.matrice tr.us th, .matrice tr.us td { background: var(--tint); }
.matrice tr.us th { border-radius: 14px 0 0 14px; }
.matrice tr.us td:last-child { border-radius: 0 14px 14px 0; }
.v { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; vertical-align: middle; }
.v-oui { background: var(--btn); }
.v-part { background: linear-gradient(90deg, var(--btn) 50%, transparent 50%); box-shadow: inset 0 0 0 2px var(--btn); }
.v-non { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--text) 45%, transparent); }
.v-nv { width: auto; min-width: 24px; height: 24px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--line); font: 700 0.82rem/1 var(--sans); color: var(--text-2); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.matrice-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 12px 0 0; font-size: 0.88rem; color: var(--text-2); }
.matrice-legend li { display: flex; align-items: center; gap: 8px; }
.matrice-legend .v { width: 18px; height: 18px; }
.matrice-legend .v-nv { min-width: 18px; height: 18px; font-size: 0.7rem; }

/* questions */
.qa { padding: 24px 0; border-top: 1px solid var(--line); max-width: var(--mesure); }
.qa h2, .qa h3 { font-size: 1.32rem; margin-bottom: 10px; color: var(--text); }
.qa .r p:last-child, .qa .r ul:last-child { margin-bottom: 0; }
.qa .r ul { padding-left: 1.2em; }
.faq-group { margin-top: 48px; }
.faq-group > h2 { font-size: 1.9rem; margin-bottom: 8px; }

.sources { font-size: 0.88rem; color: var(--text-2); max-width: var(--mesure); }
.sources li { margin-bottom: 0.4em; word-break: break-word; }

.kit-text { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 22px; max-width: var(--mesure); margin-bottom: 18px; }
.kit-text p:last-child { margin-bottom: 0; }
.kit-label { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--heading); margin: 26px 0 8px; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; max-width: 760px; }
.shots figure { margin: 0; }
.shots img { border-radius: 18px; border: 1px solid var(--line); display: block; }
.shots figcaption { font-size: 0.85rem; color: var(--text-2); margin-top: 8px; }
.guide-list { max-width: 820px; }

/* ——— pied ——— */
.foot { background: var(--tint); padding: 60px 0 40px; font-size: 0.97rem; transition: background-color 0.5s var(--ease); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin-bottom: 8px; }
.foot-h { font-family: var(--serif); font-style: italic; font-size: 1.08rem; margin-bottom: 8px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li a { color: var(--text); display: inline-flex; min-height: 36px; align-items: center; }
.foot-cookies { display: none; min-height: 36px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.js .foot-cookies { display: inline-flex; align-items: center; }
/* bandeau de consentement (consentement.js) : les rôles suivent l'édition et le mode sombre */
:root {
  --cc-fond: var(--surface); --cc-texte: var(--text); --cc-bord: var(--line);
  --cc-bouton: var(--btn); --cc-bouton-texte: var(--btn-ink); --cc-focus: var(--link);
  --cc-fond-sombre: var(--surface); --cc-texte-sombre: var(--text);
  --cc-bouton-sombre: var(--btn); --cc-bouton-texte-sombre: var(--btn-ink);
  --cc-police: var(--sans); --cc-rayon: 20px;
}
.cc-bandeau h2 { font-family: var(--serif); font-weight: 600; }
.foot-editions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.foot-editions .pick { min-height: 40px; font-size: 0.9rem; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.colofon { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--text-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .spine:hover { transform: none; }
}

/* ——— entrée de la page (CSS : visible dès le premier affichage, sans attendre le script) ——— */
@media (prefers-reduced-motion: no-preference) {
  .anim .shelf .spine { animation: spine-up 0.95s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 34ms + 180ms); }
  .anim .hero-grid > * { animation: hero-in 0.9s var(--ease) backwards; }
  .anim .hero-grid > :nth-child(2) { animation-delay: 0.14s; }
}
/* jamais d'opacité nulle au départ : si l'animation ne tourne pas, tout reste lisible */
@keyframes spine-up { from { transform: translateY(46%); } }
@keyframes hero-in { from { transform: translateY(18px); } }

/* ——— pages de réponse : composées avec les objets de Colophon ———
   Ouverture = la page série de l'app (titre, éventail d'écrans sur pavé incliné, tampon d'ex-libris) ;
   chiffres = la pile de tranches du logo sur sa réglette ; chapitres ouverts par un dos de livre ;
   FAQ en lignes dépliantes comme dans l'app ; fin = achevé d'imprimer sous une étagère, sur fond nuit.
   Jetons du site seulement (quatre éditions, clair et sombre). Mouvement : amélioration progressive,
   jamais depuis une opacité nulle, figé avec prefers-reduced-motion. */
:root { interpolate-size: allow-keywords; }
.t-brique { --t: var(--brique); } .t-prusse { --t: var(--prusse); } .t-foret { --t: var(--foret); } .t-ocre { --t: var(--ocre); }
[data-t='brique'] { --t: var(--brique); } [data-t='prusse'] { --t: var(--prusse); } [data-t='foret'] { --t: var(--foret); } [data-t='ocre'] { --t: var(--ocre); }

.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text) 30%, transparent); }
.btn-ghost:hover { background: color-mix(in srgb, var(--tint) 60%, transparent); filter: none; }

/* ouverture */
.ouv { overflow-x: clip; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-top: clamp(20px, 3.5vw, 48px); padding-bottom: clamp(28px, 4vw, 56px); }
.ouv-texte { min-width: 0; }
.rubrique { display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px; margin: 0 0 22px; border-radius: 999px; background: var(--tint); color: var(--link); font-weight: 600; font-size: 0.95rem; }
.ouv h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); line-height: 1.04; letter-spacing: -0.022em; overflow-wrap: anywhere; }
.ouv-date { margin: 16px 0 26px; font-size: 0.92rem; color: var(--text-2); max-width: 62ch; }
.en-bref { background: var(--panel-a); color: var(--panel-a-ink); border-radius: 28px; padding: clamp(20px, 2.4vw, 28px) clamp(22px, 2.6vw, 32px); max-width: 60ch; }
.en-bref p { margin: 0; font-size: clamp(1.06rem, 1.3vw, 1.17rem); line-height: 1.6; }
.en-bref .en-bref-t { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.ouv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* l'éventail sur son pavé, comme la page série de l'app */
.eventail { position: relative; margin: 0; display: flex; align-items: center; justify-content: center; min-height: clamp(380px, 40vw, 540px); isolation: isolate; }
.pave { position: absolute; inset: 30% -7% 1%; z-index: -1; border-radius: 34px; background: var(--tint); transform: rotate(-6deg); }
.feuillet { position: relative; display: block; flex: none; width: clamp(138px, 13.5vw, 186px); height: auto; border-radius: 20px; border: 5px solid #FFFFFF; background: #FFF5E6; box-shadow: 0 26px 50px -18px color-mix(in srgb, var(--ink) 45%, transparent), 0 2px 6px color-mix(in srgb, var(--ink) 12%, transparent); }
.f-c { z-index: 3; width: clamp(178px, 18vw, 250px); }
.f-g { z-index: 2; margin-right: -7%; transform: translateY(9%) rotate(-6deg); }
.f-d { z-index: 1; margin-left: -7%; transform: translateY(10%) rotate(7deg); }
@media (prefers-color-scheme: dark) { .feuillet { border-color: color-mix(in srgb, #FFFFFF 86%, var(--night)); } }

/* tampon d'ex-libris : le ruban tourne, le § reste droit */
.tampon { position: absolute; z-index: 4; left: 2%; bottom: 4%; width: clamp(92px, 9vw, 122px); height: auto; overflow: visible; }
.tampon-fond { fill: var(--surface); stroke: color-mix(in srgb, var(--text) 18%, transparent); stroke-width: 1; }
.tampon-ruban { transform-origin: 60px 60px; }
.tampon-ruban text { font: 600 10px var(--sans); letter-spacing: 0; fill: var(--text); }
.tampon-medaillon { fill: var(--text); }
.tampon-s { font: 500 25px var(--serif); fill: var(--bg); }

/* chiffres : la pile de tranches du logo, sur sa réglette */
.pile { list-style: none; margin: 0 auto; padding: 0 0 26px; max-width: 860px; display: flex; flex-direction: column; align-items: center; gap: 7px; position: relative; }
.pile::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 9px; border-radius: 5px; background: var(--text); }
.pile::before { content: '§'; position: absolute; right: -6px; bottom: -10px; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--text); color: var(--bg); font: 500 1.05rem/1 var(--serif); }
.tranche { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; width: 100%; padding: 13px 22px 12px; border-radius: 7px; background: var(--t); color: #FFFFFF; box-shadow: inset -5px 0 0 rgba(0, 0, 0, 0.14), inset 0 -2px 0 rgba(0, 0, 0, 0.08); }
.tranche:nth-child(1) { width: 74%; }
.tranche:nth-child(2) { width: 87%; }
.tranche b { font-family: var(--serif); font-weight: 500; font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.15; }
.tranche span { font-size: 0.98rem; line-height: 1.45; }
.tranche.t-ocre { color: #2A1E15; }

/* chapitres : un dos de livre devant chaque titre, plus de cartes */
.rep-body { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(48px, 7vw, 88px); }
.block { min-width: 0; padding: 0; margin: 0 0 clamp(52px, 7vw, 92px); }
.block:not([data-t]) { --t: var(--brique); }
.block > h2 { display: flex; align-items: flex-end; gap: 16px; margin: 0 0 22px; font-size: clamp(1.75rem, 3vw, 2.45rem); max-width: 30ch; }
.block > h2::before { content: ''; flex: none; width: 13px; height: 1.25em; border-radius: 4px 4px 1px 1px; background: var(--t); box-shadow: inset -3px 0 0 rgba(0, 0, 0, 0.16); transform-origin: bottom; }
.block > p, .block > ol, .block > dl, .block > .note, .block > .summary, .block > ul, .block > h3, .block > .legend { max-width: 70ch; }
.block > h3 { margin: 1.6em 0 0.45em; }
.block > :last-child { margin-bottom: 0; }
.block .summary { margin: 0 0 12px; }
/* listes : de petits dos dans la teinte du chapitre */
.block > ul:not(.toc):not(.links):not(.matrice-legend) { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.block > ul:not(.toc):not(.links):not(.matrice-legend) > li { position: relative; padding-left: 26px; margin: 0; }
.block > ul:not(.toc):not(.links):not(.matrice-legend) > li::before { content: ''; position: absolute; left: 2px; top: 0.32em; width: 7px; height: 1.05em; border-radius: 2px 2px 1px 1px; background: var(--t); box-shadow: inset -2px 0 0 rgba(0, 0, 0, 0.14); }
/* « Brancher en un clic » : un bouton par assistant, sa suite à côté (dessous sur téléphone) */
.un-clic { display: grid; gap: 18px; margin: 4px 0 22px; max-width: 70ch; }
.un-clic-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.un-clic-ligne .btn { flex: 0 0 15rem; border: 0; cursor: pointer; }
.un-clic-ligne > p { flex: 1 1 18rem; margin: 0; }
.un-clic-ligne .un-clic-copie { flex-basis: 100%; font-weight: 600; }
#un-clic code { white-space: nowrap; }
html:not(.js) .un-clic button[data-copy] { display: none; }
@media (max-width: 560px) { .un-clic-ligne .btn { flex: 1 1 100%; } }
.block.grille > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; max-width: none; }
.block .table-scroll { margin: 8px 0 12px; }
/* les libellés masqués des cases (.vh, en absolu) restent dans leur tableau défilant */
.table-scroll, .matrice-wrap { position: relative; }
/* une adresse longue (apps.apple.com/…) se coupe plutôt que d'élargir la page sur téléphone */
.page-body a, .block a, .rep-note a { overflow-wrap: anywhere; }

/* la ligne de Colophon dans les tableaux : teintée, marquée d'un ex-libris § */
tbody tr.us th, tbody tr.us td, .matrice tr.us th, .matrice tr.us td { background: color-mix(in srgb, var(--tint) 70%, var(--surface)); }
.ex-libris { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 8px; border-radius: 50%; background: var(--text); color: var(--bg); font: 500 0.82rem/1 var(--serif); vertical-align: 1px; }

/* questions fréquentes : des lignes dépliantes, comme « Mes autres exemplaires » dans l'app */
details.qa { max-width: 76ch; padding: 0; margin: 0; border: 0; border-top: 1px solid var(--line); }
details.qa:last-child { border-bottom: 1px solid var(--line); }
details.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 60px; padding: 16px 2px; cursor: pointer; list-style: none; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: ''; flex: none; width: 10px; height: 10px; margin-right: 6px; border: solid var(--text-2); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); transition: transform 0.3s var(--ease); }
details.qa[open] summary::after { transform: rotate(225deg) translateY(-2px); }
details.qa summary h2, details.qa summary h3 { margin: 0; font-family: var(--sans); font-weight: 600; font-size: 1.08rem; line-height: 1.4; letter-spacing: 0; color: var(--text); }
details.qa summary:hover h3, details.qa summary:hover h2 { color: var(--link); }
details.qa .r { padding: 0 2px 22px; color: var(--text); }
details.qa::details-content { block-size: 0; overflow: clip; transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete; }
details.qa[open]::details-content { block-size: auto; }
.block.faq-group { margin-top: 0; }

.sources-block .sources { margin-bottom: 0; }
.rep-note { margin: 0; font-size: 0.92rem; color: var(--text-2); max-width: 72ch; }

/* fin : l'étagère, puis l'achevé d'imprimer sur fond nuit */
.acheve { position: relative; margin-top: clamp(24px, 4vw, 48px); }
.etagere { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 120px; overflow: hidden; padding: 0 12px; }
.etagere i { flex: none; display: block; border-radius: 3px 3px 0 0; box-shadow: inset -3px 0 0 rgba(0, 0, 0, 0.14); transform-origin: bottom; }
.acheve-in { background: var(--night); color: #F7F3EA; text-align: center; padding-top: clamp(44px, 6vw, 72px); padding-bottom: clamp(44px, 6vw, 72px); max-width: none; border-top: 12px solid #2A1E15; }
@media (prefers-color-scheme: dark) { .acheve-in { background: color-mix(in srgb, var(--night) 70%, #000); border-top-color: #120C08; } }
.acheve-in .mark { display: block; margin: 0 auto 18px; }
.acheve-in .mark rect:nth-child(5), .acheve-in .mark circle { fill: #F7F3EA; }
.acheve-in .mark text { fill: #2A1E15; }
.acheve-in h2 { color: var(--pale); font-size: clamp(2rem, 3.8vw, 3rem); margin-bottom: 12px; }
.acheve-in p { color: #E6DFD6; max-width: 54ch; margin-left: auto; margin-right: auto; }
.acheve-in .stores { justify-content: center; margin: 22px 0 6px; }
.acheve-in .stores .web { color: #F7F3EA; }
.acheve-in a:focus-visible { outline-color: #F7F3EA; }
.acheve-note { margin-top: 30px !important; padding-top: 22px; border-top: 1px solid color-mix(in srgb, #F7F3EA 18%, transparent); font-family: var(--serif); font-style: italic; font-size: 0.98rem; color: #D3CCC4 !important; max-width: 62ch; }

@media (max-width: 900px) {
  /* sur téléphone, l'éventail vient juste sous le titre, comme sur la page série de l'app */
  .ouv { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .ouv-texte { display: contents; }
  .rubrique { order: 1; justify-self: start; }
  .ouv h1 { order: 2; }
  .ouv-date { order: 3; margin-bottom: 0; }
  .eventail { order: 4; min-height: 0; padding: 34px 0 30px; }
  .en-bref { order: 5; }
  .ouv-actions { order: 6; }
  .block.grille > ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .feuillet { width: 29vw; border-width: 4px; border-radius: 15px; }
  .f-c { width: 37vw; }
  .f-g { margin-right: -11%; }
  .f-d { margin-left: -11%; }
  .pave { inset: 20% -2% 6%; border-radius: 26px; }
  .tampon { width: 84px; left: -4px; bottom: -6px; }
  .tranche:nth-child(1) { width: 90%; }
  .tranche:nth-child(2) { width: 95%; }
  .tranche { padding: 11px 16px 10px; }
  .ouv-actions > .btn { flex: 1 1 100%; }
  .etagere { height: 92px; }
}

/* ——— mouvement (CSS seul) ——— */
@media (prefers-reduced-motion: no-preference) {
  /* à l'ouverture : le pavé se pose, l'éventail s'ouvre comme une main de cartes */
  .anim .pave { animation: pave-pose 1s var(--ease) backwards; }
  .anim .f-g { animation: feuillet-g 1.05s 0.12s var(--ease) backwards; }
  .anim .f-d { animation: feuillet-d 1.05s 0.2s var(--ease) backwards; }
  .anim .f-c { animation: feuillet-c 0.9s var(--ease) backwards; }
  .anim .ouv-texte { animation: hero-in 0.8s var(--ease) backwards; }
  .tampon-ruban { animation: tampon-tourne 38s linear infinite; }
  @supports (animation-timeline: view()) {
    /* les tranches glissent sur la pile, la plus basse d'abord */
    .tranche { animation: tranche-glisse linear both; animation-timeline: view(); }
    .tranche:nth-child(3) { animation-range: entry 0% entry 70%; }
    .tranche:nth-child(2) { animation-range: entry 10% entry 85%; }
    .tranche:nth-child(1) { animation-range: entry 20% entry 100%; }
    /* le dos de chaque chapitre se dresse quand le titre arrive */
    .block > h2::before { animation: dos-dresse linear both; animation-timeline: view(); animation-range: entry 10% cover 30%; }
    /* l'étagère se remplit livre par livre */
    .etagere i { animation: dos-dresse linear both; animation-timeline: view(); animation-range: entry calc(var(--i) * 1.4%) cover 40%; }
    /* l'éventail s'écarte un peu en quittant l'écran */
    .f-g { animation: feuillet-g 1.05s 0.12s var(--ease) backwards, ecarte-g linear both; animation-timeline: auto, view(); animation-range: normal, exit 0% exit 100%; }
    .f-d { animation: feuillet-d 1.05s 0.2s var(--ease) backwards, ecarte-d linear both; animation-timeline: auto, view(); animation-range: normal, exit 0% exit 100%; }
  }
  @supports (animation-timeline: scroll()) {
    /* l'avancement de la lecture : une tranche sous l'en-tête */
    body.rep .top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; transform-origin: left; background: linear-gradient(90deg, var(--brique) 0 25%, var(--prusse) 25% 50%, var(--foret) 50% 75%, var(--ocre) 75%); animation: lecture linear both; animation-timeline: scroll(root); }
  }
}
@keyframes pave-pose { from { transform: rotate(-1deg) scale(0.94); } }
@keyframes feuillet-c { from { transform: translateY(16px); } }
@keyframes feuillet-g { from { transform: translateX(46%) translateY(9%) rotate(0deg); } }
@keyframes feuillet-d { from { transform: translateX(-46%) translateY(10%) rotate(0deg); } }
@keyframes ecarte-g { to { rotate: -3deg; translate: -4% 0; } }
@keyframes ecarte-d { to { rotate: 3deg; translate: 4% 0; } }
@keyframes tampon-tourne { to { transform: rotate(360deg); } }
@keyframes tranche-glisse { from { transform: translateX(-9%); opacity: 0.55; } }
@keyframes dos-dresse { from { transform: scaleY(0.35); } }
@keyframes lecture { from { transform: scaleX(0); } to { transform: scaleX(1); } }
