/* Docteur Peptides — le banc d'essai */
:root {
  --paper: #F6F6F3;
  --paper-2: #E6E8E3;
  --paper-3: #D3D7D0;
  --ink: #14213D;
  --ink-soft: #3D4A63;
  --ink-faint: #6B7385;
  --verm: #E4572E;
  --verm-text: #B23A16;
  --warn: #FFD23F;
  --rule: 3px;
  --rule-heavy: 8px;
  --unit: 8px;
  --col-gap: clamp(16px, 2.4vw, 32px);
  --max: 1320px;
  --f-display: "Archivo", "Arial Narrow", sans-serif;
  --f-text: "Public Sans", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h, 0px) + 16px); scrollbar-color: var(--ink) var(--paper-2); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-text);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: var(--paper); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 3px solid var(--paper-2); }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .22em; text-decoration-color: var(--verm); }
a:hover { text-decoration-color: var(--ink); }

:focus-visible { outline: 3px solid var(--verm); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 12px 16px; z-index: 50; }
.skip:focus { left: 16px; top: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: clamp(16px, 4vw, 48px); }

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: var(--f-display);
  font-stretch: 78%;
  font-weight: 850;
  line-height: .95;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.8rem, 7.4vw, 6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); font-stretch: 90%; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--ink-soft); max-width: 52ch; }
.small { font-size: .875rem; letter-spacing: .01em; color: var(--ink-soft); }
.gloss { font-style: italic; color: var(--ink-soft); }
strong { font-weight: 700; }

/* ---------- Masthead ---------- */
.masthead { border-bottom: var(--rule-heavy) solid var(--ink); background: var(--paper); position: relative; z-index: 10; }
.masthead__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__name { font-family: var(--f-display); font-stretch: 70%; font-weight: 900; font-size: 1.7rem; letter-spacing: -0.01em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.nav { display: flex; gap: clamp(14px, 1.6vw, 24px); align-items: center; }
.nav a { font-family: var(--f-display); font-stretch: 85%; font-weight: 700; font-size: .95rem; text-decoration: none; padding: 8px 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--verm); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav-toggle { display: none; background: none; border: var(--rule) solid var(--ink); color: var(--ink); font: 700 .95rem var(--f-display); padding: 8px 14px; cursor: pointer; min-height: 44px; }
.masthead__meta { border-top: 1px solid var(--ink); display: flex; justify-content: space-between; gap: 16px; font-size: .8125rem; padding-block: 6px; color: var(--ink-soft); flex-wrap: wrap; }

@media (max-width: 1319px) {
  .nav-toggle { display: inline-block; }
  /* Sheet grows down from the bar that holds the Menu button; same path in and out, retargets mid-flight */
  .nav { position: absolute; left: 0; right: 0; top: 100%; margin-top: var(--rule-heavy); background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; border-bottom: var(--rule-heavy) solid var(--ink); padding: 8px clamp(16px, 4vw, 48px) 16px; box-shadow: 0 18px 32px -18px rgba(20, 33, 61, .45); transform-origin: top right; transform: translateY(-10px) scale(.98); opacity: 0; visibility: hidden; transition: transform .3s var(--ease-out), opacity .2s var(--ease-out), visibility 0s linear .3s; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .3s var(--ease-out), opacity .15s var(--ease-out), visibility 0s; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--paper-3); font-size: 1.2rem; }
  .nav .nav__account { margin-top: 14px; justify-content: center; padding: 12px; font-size: 1.1rem; }
}
@media (max-width: 820px) { .brand__name { font-size: 1.35rem; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; font: 800 1.05rem var(--f-display); font-stretch: 85%; text-decoration: none; border: var(--rule) solid var(--ink); cursor: pointer; transition: background .2s var(--ease-out), color .2s var(--ease-out), transform .2s var(--ease-out); }
.btn svg { width: 20px; height: 20px; transition: transform .25s var(--ease-out); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--verm-text); border-color: var(--verm-text); color: var(--paper); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); transition-duration: .1s; }

/* ---------- Photos ---------- */
.photo { position: relative; margin: 0; background: var(--paper); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.photo figcaption, .credit { font-size: .75rem; color: var(--ink-soft); margin-top: 8px; }
.credit a { color: inherit; }

/* ---------- Stamp ---------- */
.stamp { --rot: -7deg; display: inline-grid; place-items: center; text-align: center; position: relative; border-radius: 4px; color: var(--verm-text); background: transparent; padding: 12px 18px; font-family: var(--f-display); font-stretch: 70%; font-weight: 900; text-transform: uppercase; line-height: 1; letter-spacing: .02em; transform: rotate(var(--rot)); }
.stamp::before { content: ""; position: absolute; inset: 0; border: 4px solid var(--verm); border-radius: 4px; filter: url(#ink-rough); pointer-events: none; }
.stamp span { display: block; }
.stamp .stamp__big { font-size: 1.9rem; }
.stamp .stamp__small { font-size: .9rem; margin-top: 4px; color: var(--verm-text); }
.stamp--verdict { --rot: 0deg; }
@keyframes stamp-press { from { transform: rotate(var(--rot)) scale(1.12); } to { transform: rotate(var(--rot)) scale(1); } }
[data-stamp].is-in { animation: stamp-press .5s var(--ease-out) both; }


/* ---------- Hero ---------- */
.hero { padding-block: clamp(24px, 4vw, 48px) clamp(32px, 4vw, 48px); border-bottom: var(--rule) solid var(--ink); }
.hero__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap); align-items: end; }
.hero__text { grid-column: 1 / span 7; }
.hero__text h1 { margin-bottom: 28px; }
.hero__text h1 em { font-style: normal; color: var(--verm); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero__media { grid-column: 8 / span 5; position: relative; }
.hero__media .photo { aspect-ratio: 5 / 4; }
.hero__media .stamp { position: absolute; left: -28px; bottom: 96px; }
.hero__facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--rule) solid var(--ink); margin-top: clamp(32px, 5vw, 56px); }
.hero__facts div { padding: 16px 16px 0 0; }
.hero__facts div + div { border-left: 1px solid var(--ink); padding-left: 16px; }
.hero__facts b { display: block; font-family: var(--f-display); font-stretch: 75%; font-weight: 900; font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1; margin-bottom: 6px; }
.hero__facts span { font-size: .9rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .hero__text, .hero__media { grid-column: 1 / -1; }
  .hero__media { max-width: 520px; }
  .hero__media .stamp { left: 12px; bottom: auto; top: 20px; }
  .chain { overflow-x: auto; padding-bottom: 4px; }
  .hero__facts { grid-template-columns: 1fr; }
  .hero__facts div + div { border-left: 0; border-top: 1px solid var(--ink); padding-left: 0; }
  .hero__facts div { padding-bottom: 14px; }
}

/* ---------- Section heads ---------- */
.section { padding-block: clamp(56px, 8vw, 112px); }
.section--tint { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink a { text-decoration-color: var(--verm); }
.section-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); padding-bottom: 20px; border-bottom: var(--rule-heavy) solid currentColor; }
.section-head h2 { grid-column: 1 / span 7; }
.section-head p { grid-column: 8 / span 5; margin: 0; color: inherit; }
@media (max-width: 900px) { .section-head h2, .section-head p { grid-column: 1 / -1; } }

/* ---------- Score discs ---------- */
.discs { display: inline-flex; gap: 5px; align-items: center; vertical-align: middle; }
.disc { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; flex: none; position: relative; }
.disc.is-on { background: var(--ink); }
.disc.is-cap { border-style: dotted; border-color: var(--ink-faint); }
.disc.is-cap::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--ink-faint); transform: translateX(-50%) rotate(45deg); }
.discs--lg .disc { width: 22px; height: 22px; border-width: 3px; }
.discs--lg { gap: 7px; }
.section--ink .disc { border-color: var(--paper); }
.section--ink .disc.is-on { background: var(--paper); }

.discs.is-in .disc.is-on { animation: disc-press .38s var(--ease-out) both; animation-delay: calc(var(--i) * 90ms); }
@keyframes disc-press { 0% { transform: scale(1.45); } 100% { transform: scale(1); } }

.score-num { font-family: var(--f-display); font-stretch: 75%; font-weight: 900; font-size: 1.5rem; line-height: 1; }
.score-num small { font-size: .55em; font-weight: 600; color: var(--ink-soft); }

.legend { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .9rem; color: var(--ink-soft); margin-bottom: 20px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Comparative table ---------- */
.table-scroll { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; }
.cmp caption { text-align: left; font-size: .9rem; color: var(--ink-soft); padding-bottom: 10px; }
.cmp th, .cmp td { text-align: left; vertical-align: middle; padding: 18px 14px; border-bottom: 1px solid var(--ink); }
.cmp thead th { font-family: var(--f-display); font-stretch: 85%; font-weight: 800; font-size: .95rem; line-height: 1.15; border-bottom: var(--rule) solid var(--ink); padding-top: 0; vertical-align: bottom; }
.cmp thead th:first-child, .cmp tbody th { padding-left: 0; }
.sort { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.sort:focus-visible { outline: 3px solid var(--verm); outline-offset: 3px; }
.sort svg { width: 14px; height: 14px; opacity: .35; transition: transform .2s var(--ease-out), opacity .2s; }
th[aria-sort] .sort svg { opacity: 1; }
th[aria-sort="ascending"] .sort svg { transform: rotate(180deg); }
.cmp tbody th { font-weight: 400; }
.pep-name { font-family: var(--f-display); font-stretch: 75%; font-weight: 900; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1; text-decoration: none; display: inline-block; }
.pep-name:hover { color: var(--verm-text); }
.pep-route { display: block; font-size: .8rem; color: var(--ink-soft); margin-top: 4px; }
.cmp .cell-score { white-space: nowrap; }
.cmp .cell-score .score-num { font-size: 1.15rem; margin-left: 8px; }
.cmp .verdict { font-size: .95rem; max-width: 30ch; }
.cmp .go { white-space: nowrap; font-family: var(--f-display); font-weight: 800; font-stretch: 85%; }
.cmp tbody.rated tr { transition: background .2s; }
.cmp tbody.rated tr:hover { background: var(--paper-2); }
.cmp tbody.pending th, .cmp tbody.pending td { color: var(--ink-soft); padding-block: 12px; }
.cmp tbody.pending .pep-name { font-size: 1.35rem; color: var(--ink-soft); }
.cmp .group-row th { font-family: var(--f-display); font-stretch: 85%; font-weight: 800; font-size: 1.05rem; color: var(--ink); padding-top: 40px; border-bottom: var(--rule) solid var(--ink); }
.pending-tag { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; border: 2px dashed var(--ink-faint); padding: 4px 10px; }

@media (max-width: 860px) {
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; }
  .cmp thead { position: absolute; left: -9999px; }
  .cmp caption { display: block; }
  .cmp tbody.rated tr { border-bottom: var(--rule) solid var(--ink); padding: 20px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .cmp tbody.rated th, .cmp tbody.rated td { border: 0; padding: 0; }
  .cmp tbody.rated th { grid-column: 1 / -1; }
  .cmp tbody.rated td.cell-score::before { content: attr(data-label); display: block; font-size: .8rem; color: var(--ink-soft); margin-bottom: 4px; }
  .cmp tbody.rated td.verdict, .cmp tbody.rated td.go { grid-column: 1 / -1; max-width: none; }
  .cmp tbody.pending tr { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--ink); padding: 10px 0; flex-wrap: wrap; }
  .cmp tbody.pending th, .cmp tbody.pending td { border: 0; padding: 0; }
  .cmp .group-row { border: 0 !important; }
  .cmp .group-row th { padding-top: 32px; width: 100%; }
  .mobile-sort { display: flex !important; }
}
.mobile-sort { display: none; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.mobile-sort label { font-size: .9rem; color: var(--ink-soft); }
.mobile-sort select { font: 600 1rem var(--f-text); color: var(--ink); background: var(--paper); border: var(--rule) solid var(--ink); padding: 8px 12px; min-height: 44px; border-radius: 0; }

/* ---------- Quote band ---------- */
.quote-band { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap); align-items: start; }
.quote-band blockquote { grid-column: 1 / span 7; margin: 0; font-family: var(--f-display); font-stretch: 72%; font-weight: 900; font-size: clamp(2.2rem, 5.2vw, 4.6rem); line-height: .98; letter-spacing: -0.02em; }
.quote-band blockquote q { quotes: "« " " »"; }
.quote-band .reasons { grid-column: 9 / span 4; }
.reasons ol { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: r; }
.reasons li { padding: 14px 0; border-top: 1px solid currentColor; }
.reasons li:last-child { border-bottom: 1px solid currentColor; }
@media (max-width: 900px) { .quote-band blockquote, .quote-band .reasons { grid-column: 1 / -1; } }

/* ---------- Never list + photo ---------- */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap); align-items: start; }
.split__media { grid-column: 1 / span 5; }
.split__media .photo { aspect-ratio: 1 / 1; }
.split__body { grid-column: 7 / span 6; }
@media (max-width: 900px) { .split__media, .split__body { grid-column: 1 / -1; } .split__media { order: 2; } }

.never { list-style: none; padding: 0; margin: 24px 0 0; }
.never li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 16px 0; border-top: 1px solid var(--ink); font-size: 1.1rem; }
.never li:last-child { border-bottom: 1px solid var(--ink); }
.never svg { width: 28px; height: 28px; color: var(--verm); margin-top: 1px; }

/* ---------- Big figure strip ---------- */

/* ---------- Footer ---------- */
.footer { border-top: var(--rule-heavy) solid var(--ink); padding-block: 40px 56px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--col-gap); }
.footer h3 { font-size: 1.1rem; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 4px 0; }
.footer .disclaimer { font-size: .9rem; color: var(--ink-soft); max-width: 52ch; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Sheet ---------- */
.crumbs { font-size: .875rem; padding-block: 18px 0; color: var(--ink-soft); }
.crumbs ol { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; flex-wrap: wrap; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--ink-faint); }

.sheet-head { padding-block: clamp(20px, 3vw, 40px) clamp(32px, 4vw, 48px); border-bottom: var(--rule-heavy) solid var(--ink); }
.sheet-head__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap); align-items: end; }
.sheet-head__title { grid-column: 1 / span 7; }
.sheet-head__title h1 { font-size: clamp(3.4rem, 10vw, 8rem); font-stretch: 68%; margin-bottom: 20px; }
.scope { display: inline-flex; gap: 10px; align-items: flex-start; font-size: .95rem; border: 2px solid var(--ink); padding: 10px 14px; margin-top: 8px; max-width: 60ch; }
.scope svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.sheet-head__verdict { grid-column: 8 / span 5; display: grid; gap: 20px; justify-items: start; }
.sheet-head__verdict .stamp { max-width: 100%; }
.stamp--verdict { text-transform: none; font-stretch: 80%; padding: 16px 20px; text-align: left; place-items: start; }
.stamp--verdict .stamp__small { text-transform: uppercase; color: var(--verm-text); font-size: .85rem; margin: 0 0 8px; }
.stamp--verdict .stamp__big { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.28; color: var(--ink); font-weight: 800; }
@media (max-width: 900px) { .sheet-head__title, .sheet-head__verdict { grid-column: 1 / -1; } }

.chain { margin-top: 28px; }
.chain svg { width: 100%; height: auto; max-height: 150px; overflow: visible; }
.chain svg.is-wrapped { max-height: none; max-width: 440px; }
.chain svg g { animation: bead-in .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes bead-in { from { transform: translateY(12px); } to { transform: none; } }
.chain figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: 6px; }

.scoreboard { list-style: none; margin: 0; padding: 0; border-top: var(--rule) solid var(--ink); }
.scoreboard > li { border-bottom: 1px solid var(--ink); }
.scoreboard details > summary { list-style: none; display: grid; grid-template-columns: minmax(150px, 1.2fr) auto 72px 36px; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; }
.scoreboard details > summary::-webkit-details-marker { display: none; }
.scoreboard .sb-label { font-family: var(--f-display); font-stretch: 85%; font-weight: 800; font-size: 1.3rem; line-height: 1.1; }
.scoreboard .sb-cap { display: block; font-family: var(--f-text); font-weight: 400; font-size: .8rem; color: var(--ink-soft); margin-top: 2px; }
.scoreboard .score-num { font-size: 2.6rem; text-align: right; }
.scoreboard .sb-more { width: 36px; height: 36px; border: 2px solid var(--ink); display: grid; place-items: center; transition: transform .25s var(--ease-out), background .2s; }
.scoreboard .sb-more svg { width: 16px; height: 16px; }
.scoreboard details[open] .sb-more { transform: rotate(45deg); background: var(--ink); color: var(--paper); }
.scoreboard summary:hover .sb-label { color: var(--verm-text); }
.scoreboard .sb-explain { padding: 0 0 20px; max-width: 62ch; color: var(--ink-soft); }
@media (max-width: 560px) {
  .scoreboard details > summary { grid-template-columns: 1fr auto 36px; }
  .scoreboard .discs { grid-column: 1 / 2; grid-row: 2; }
  .scoreboard .score-num { grid-column: 2; grid-row: 1 / span 2; }
  .scoreboard .sb-more { grid-column: 3; grid-row: 1 / span 2; }
}

.sheet-body { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap); padding-block: clamp(40px, 6vw, 72px); }
.sheet-rail { grid-column: 1 / span 3; }
.sheet-main { grid-column: 5 / span 8; min-width: 0; }
@media (max-width: 1000px) { .sheet-rail, .sheet-main { grid-column: 1 / -1; } }

.rail { position: sticky; top: calc(var(--head-h, 0px) + 24px); }
.rail h2 { font-size: 1.3rem; font-stretch: 85%; margin-bottom: 6px; }
.rail p { font-size: .85rem; color: var(--ink-soft); }
.depth { list-style: none; margin: 16px 0 0; padding: 0; position: relative; }
.depth::before { content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 3px; background: var(--ink); }
.depth li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 8px 0; position: relative; font-size: .9rem; line-height: 1.3; color: var(--ink-soft); }
.depth .dot { width: 25px; height: 25px; border-radius: 50%; border: 3px solid var(--ink); background: var(--paper); position: relative; z-index: 1; display: grid; place-items: center; font: 800 .7rem var(--f-display); color: var(--ink); }
.depth li.has { color: var(--ink); font-weight: 600; }
.depth li.has .dot { background: var(--ink); color: var(--paper); }
.depth li.retained .dot { background: var(--verm); border-color: var(--verm); color: var(--ink); }
.depth .count { display: block; font-weight: 400; font-size: .78rem; color: var(--ink-soft); }
@media (max-width: 1000px) { .rail { position: static; border: var(--rule) solid var(--ink); padding: 20px; } }

.block { margin-bottom: clamp(40px, 5vw, 64px); }
.block > h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); padding-bottom: 12px; border-bottom: var(--rule) solid var(--ink); margin-bottom: 20px; }
.block .effect-lead { font-family: var(--f-display); font-stretch: 90%; font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.3; max-width: 46ch; margin-bottom: 20px; }

.banner { background: var(--warn); color: var(--ink); padding: 22px 24px; margin-bottom: 16px; display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.banner svg { width: 36px; height: 36px; }
.banner h3 { font-size: 1.35rem; margin-bottom: 8px; }
.banner p { margin-bottom: .6em; }
.banner p:last-child { margin-bottom: 0; }
.banner ul { margin: 0 0 .6em; padding-left: 20px; }
.banner-stack { margin-bottom: clamp(40px, 5vw, 64px); }

.community { border: 3px dashed var(--ink); padding: 26px 26px 22px; margin-bottom: clamp(40px, 5vw, 64px); position: relative; background: var(--paper-2); }
.community h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 8px; padding-right: 150px; }
.community .off-score { position: absolute; top: -18px; right: 18px; }
.community .off-score.stamp { --rot: 4deg; font-size: .85rem; padding: 8px 12px; background: var(--paper-2); }
.community .note { font-size: .9rem; color: var(--ink-soft); margin-bottom: 18px; }
.community details { border-top: 1px solid var(--ink); margin-top: 18px; padding-top: 14px; }
.community summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; gap: 10px; }
.community summary svg { width: 16px; height: 16px; transition: transform .25s var(--ease-out); flex: none; }
.community details[open] summary svg { transform: rotate(90deg); }
.community ul { margin: 10px 0 0; padding-left: 20px; }
.community li { margin-bottom: 8px; }
@media (max-width: 560px) { .community h2 { padding-right: 0; margin-top: 16px; } }

.kv { width: 100%; border-collapse: collapse; }
.kv th, .kv td { text-align: left; vertical-align: top; padding: 14px 0; border-bottom: 1px solid var(--ink); }
.kv th { width: 34%; font-weight: 700; padding-right: 18px; }
@media (max-width: 560px) { .kv th, .kv td { display: block; width: 100%; } .kv th { border-bottom: 0; padding-bottom: 2px; } }
.reg-date { display: inline-block; background: var(--ink); color: var(--paper); font-size: .8rem; padding: 3px 10px; margin-bottom: 12px; }

.src { width: 100%; border-collapse: collapse; font-size: .95rem; }
.src th, .src td { text-align: left; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--ink); vertical-align: top; }
.src thead th { font-family: var(--f-display); font-stretch: 85%; font-weight: 800; border-bottom: var(--rule) solid var(--ink); }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; border: 2px solid var(--ink); padding: 1px 8px; white-space: nowrap; }
.tag--out { border-style: dashed; color: var(--ink-soft); border-color: var(--ink-soft); }

.method-note { background: var(--ink); color: var(--paper); padding: 28px; margin-bottom: 32px; }
.method-note h2 { font-size: 1.6rem; margin-bottom: 12px; border: 0; padding: 0; }
.method-note a { text-decoration-color: var(--verm); }

.updated { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .875rem; color: var(--ink-soft); border-top: var(--rule) solid var(--ink); padding-top: 14px; }

.next-sheets { display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--rule-heavy) solid var(--ink); }
.next-sheets a { padding: 24px 20px 28px 0; text-decoration: none; display: block; }
.next-sheets a + a { border-left: 1px solid var(--ink); padding-left: 20px; }
.next-sheets a[aria-current="page"] { pointer-events: none; box-shadow: inset 0 8px 0 var(--verm); }
.next-sheets .pep-name { font-size: 2rem; }
.next-sheets a:hover .pep-name { color: var(--verm-text); }
@media (max-width: 700px) { .next-sheets { grid-template-columns: 1fr; } .next-sheets a + a { border-left: 0; border-top: 1px solid var(--ink); padding-left: 0; } }

/* ---------- Editorial pages ---------- */
.page-head { padding-block: clamp(32px, 5vw, 64px); border-bottom: var(--rule-heavy) solid var(--ink); }
.page-head__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap); align-items: end; }
.page-head__grid > div { grid-column: 1 / span 7; }
.page-head__grid > figure { grid-column: 9 / span 4; }
.page-head__grid .photo { aspect-ratio: 4 / 3; }
.page-head h1 { margin-bottom: 20px; }
@media (max-width: 900px) { .page-head__grid > div, .page-head__grid > figure { grid-column: 1 / -1; } }

.prose-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap); }
.prose-grid > .aside-title { grid-column: 1 / span 4; }
.prose-grid > .aside-title h2 { position: sticky; top: calc(var(--head-h, 0px) + 24px); }
.prose-grid > .body { grid-column: 6 / span 7; }
@media (max-width: 900px) { .prose-grid > .aside-title, .prose-grid > .body { grid-column: 1 / -1; } .prose-grid > .aside-title h2 { position: static; margin-bottom: 20px; } }

.principles { list-style: none; margin: 0; padding: 0; }
.principles li { padding: 22px 0; border-top: var(--rule) solid var(--ink); display: grid; grid-template-columns: minmax(160px, 1fr) 2fr; gap: 20px; }
.principles li:last-child { border-bottom: var(--rule) solid var(--ink); }
.principles h3 { font-size: 1.5rem; }
.principles p { margin: 0; }
@media (max-width: 600px) { .principles li { grid-template-columns: 1fr; gap: 6px; } }

.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ladder li { display: grid; grid-template-columns: 64px 1fr; align-items: stretch; }
.ladder .lvl { background: var(--ink); color: var(--paper); font: 900 1.6rem/1 var(--f-display); font-stretch: 70%; display: grid; place-items: center; }
.ladder .step { border: var(--rule) solid var(--ink); border-left: 0; padding: 12px 16px; background: var(--paper); margin-right: calc((5 - var(--l)) * 7%); }
.ladder .step b { display: block; font-family: var(--f-display); font-stretch: 85%; font-weight: 800; font-size: 1.15rem; line-height: 1.15; }
.ladder .step span { font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 600px) { .ladder .step { margin-right: 0; } }

.callout { background: var(--paper-2); padding: 24px; border: var(--rule) solid var(--ink); margin: 28px 0; }
.callout p:last-child { margin: 0; }

.five { list-style: none; margin: 0; padding: 0; border-top: var(--rule) solid var(--ink); }
.five li { padding: 22px 0; border-bottom: 1px solid var(--ink); display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.five h3 { font-size: 1.5rem; }
.five p { margin: 0; }
@media (max-width: 600px) { .five li { grid-template-columns: 1fr; gap: 6px; } }

.scale { list-style: none; margin: 0; padding: 0; }
.scale li { display: grid; grid-template-columns: 140px 190px 1fr; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--ink); }
.scale li:first-child { border-top: var(--rule) solid var(--ink); }
.scale .score-num { font-size: 3rem; }
@media (max-width: 700px) { .scale li { grid-template-columns: 80px 1fr; } .scale li p { grid-column: 1 / -1; } }

/* Floor demo */
.floor { border: var(--rule) solid currentColor; padding: clamp(20px, 3vw, 36px); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.floor label { font-weight: 700; display: block; margin-bottom: 12px; }
.floor input[type=range] { width: 100%; accent-color: var(--verm); height: 44px; }
.floor__internal { font-family: var(--f-display); font-stretch: 75%; font-weight: 700; font-size: 1.2rem; }
.floor__out { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.floor__out div { border-top: var(--rule) solid currentColor; padding-top: 12px; }
.floor__out b { display: block; font-family: var(--f-display); font-stretch: 65%; font-weight: 900; font-size: clamp(4rem, 9vw, 7rem); line-height: .9; }
.floor__out .ours b { color: var(--paper); }
.floor__out .theirs b { text-decoration: line-through; text-decoration-thickness: 6px; text-decoration-color: var(--verm); opacity: .7; }
.floor__out span { font-size: .9rem; }
@media (max-width: 760px) { .floor { grid-template-columns: 1fr; } }

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: var(--rule) solid var(--ink); }
.cases > div { padding: 22px 22px 22px 0; }
.cases > div + div { border-left: 1px solid var(--ink); padding-left: 22px; }
.cases h3 { font-size: 1.4rem; margin-bottom: 10px; }
.cases p { margin: 0; }
@media (max-width: 860px) { .cases { grid-template-columns: 1fr; } .cases > div + div { border-left: 0; border-top: 1px solid var(--ink); padding-left: 0; } }

.sources-list { width: 100%; border-collapse: collapse; }
.sources-list th, .sources-list td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--ink); vertical-align: top; }
.sources-list th { width: 36%; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; animation-delay: 0ms !important; transition-delay: 0ms !important; }
}

/* Grid children never grow past their track (prevents horizontal overflow) */
.hero__grid > *, .section-head > *, .sheet-head__grid > *, .sheet-body > *, .split > *, .prose-grid > *, .quote-band > *, .page-head__grid > *, .footer__grid > * { min-width: 0; }


/* Small or image-borne stamps use the lighter ink so they stay legible */
.hero__media .stamp { background: var(--paper); }


/* ---------- Home: "Qu'est-ce qu'un peptide ?" ---------- */
.builder { border: var(--rule) solid var(--ink); padding: clamp(18px, 2.4vw, 28px); background: var(--paper); }
.builder__title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-stretch: 75%; margin-bottom: 6px; }
.builder__field { display: flex; flex-wrap: wrap; gap: 5px; align-content: flex-start; min-height: 172px; margin: 16px 0; padding: 12px 0; border-top: 1px solid var(--ink); }
.aa { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); display: block; }
.aa:first-child { background: var(--ink); }
.builder__field.is-dense { gap: 3px; }
.builder__field.is-dense .aa { width: 9px; height: 9px; border-width: 1.5px; }
.builder__readout { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: var(--rule) solid var(--ink); padding-top: 14px; }
.builder__n { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.builder__n b { font-family: var(--f-display); font-stretch: 65%; font-weight: 900; font-size: clamp(3rem, 6vw, 4.6rem); line-height: .9; }
.builder__n span { font-size: .95rem; color: var(--ink-soft); }
.builder__kind { --rot: -4deg; margin: 0; }
.builder__kind .stamp__big { font-size: 1.35rem; }
.builder__kind.is-in { animation: stamp-press .5s var(--ease-out) both; }
.builder__label { display: block; font-family: var(--f-display); font-stretch: 85%; font-weight: 800; margin-top: 18px; }
.builder input[type=range] { width: 100%; accent-color: var(--verm); height: 44px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.preset { font: 700 .9rem var(--f-display); font-stretch: 85%; color: var(--ink); background: transparent; border: 2px solid var(--ink); padding: 0 12px; min-height: 44px; cursor: pointer; transition: background .2s var(--ease-out), color .2s var(--ease-out); }
.preset:hover { background: var(--paper-2); }
.preset[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.builder__note { margin: 14px 0 0; }

.big-lead { font-family: var(--f-display); font-stretch: 90%; font-weight: 600; font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.3; max-width: 40ch; margin-bottom: 24px; }
.analogy { display: grid; grid-template-columns: 1fr 1.3fr 2fr; border-top: var(--rule) solid var(--ink); margin-top: 32px; }
.analogy > div { padding: 18px 18px 0 0; display: grid; gap: 10px; align-content: start; }
.analogy > div + div { border-left: 1px solid var(--ink); padding-left: 18px; }
.analogy b { font-family: var(--f-display); font-stretch: 65%; font-weight: 900; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: .95; }
.analogy > div:nth-child(3) b { font-stretch: 80%; font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.15; }
@media (max-width: 700px) { .analogy { grid-template-columns: 1fr; } .analogy > div + div { border-left: 0; border-top: 1px solid var(--ink); padding-left: 0; } .analogy > div { padding-bottom: 16px; } }

.messages { list-style: none; margin: 0; padding: 0; border-top: var(--rule) solid var(--ink); }
.messages li { font-family: var(--f-display); font-stretch: 85%; font-weight: 800; font-size: 1.25rem; line-height: 1.2; padding: 14px 0; border-bottom: 1px solid var(--ink); }
.origins .pep-name { font-size: 1.5rem; }
.origins th[scope=row] { white-space: nowrap; }
.origins td { vertical-align: middle; }

.compare { margin-top: 24px; }
.compare caption { text-align: left; padding-bottom: 8px; }

.aside-quote { margin: 0; font-family: var(--f-display); font-stretch: 72%; font-weight: 900; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.02; letter-spacing: -0.01em; position: sticky; top: calc(var(--head-h, 0px) + 24px); }
@media (max-width: 900px) { .aside-quote { position: static; margin-bottom: 24px; } }
.reasons-list { list-style: none; margin: 0; padding: 0; }
.reasons-list > li { padding: 22px 0; border-top: 1px solid var(--paper); }
.reasons-list > li:last-child { border-bottom: 1px solid var(--paper); }
.reasons-list h3 { margin-bottom: 10px; }
.market { margin: 8px 0 12px; }
.market th, .market td { border-bottom-color: var(--paper); }
.market td { font-family: var(--f-display); font-stretch: 78%; font-weight: 800; font-size: 1.25rem; }
.section--ink .market-note { color: inherit; font-style: italic; }

.trends-box { padding-top: 34px; }
.trends-box .off-score.stamp { right: auto; left: 18px; }
.trends { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.trends li { padding: 18px 0; border-top: 1px solid var(--ink); }
.trends h3 { margin-bottom: 8px; }
.trends p { margin: 0; }
@media (max-width: 760px) { .trends { grid-template-columns: 1fr; } }

.closing__statement { font-size: clamp(1.9rem, 3.8vw, 3.2rem); line-height: 1.02; max-width: 26ch; margin-bottom: 20px; }
.closing__sheets { list-style: none; margin: 32px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--rule-heavy) solid var(--ink); }
.closing__sheets a { display: grid; gap: 6px; padding: 18px 18px 22px 0; text-decoration: none; }
.closing__sheets li + li a { border-left: 1px solid var(--ink); padding-left: 18px; }
.closing__sheets a:hover .pep-name { color: var(--verm-text); }
@media (max-width: 760px) { .closing__sheets { grid-template-columns: 1fr; } .closing__sheets li + li a { border-left: 0; border-top: 1px solid var(--ink); padding-left: 0; } }.builder .stamp { position: relative; left: auto; top: auto; bottom: auto; background: transparent; }
.builder__field { min-height: 128px; gap: 6px; }
.builder__field .aa { width: 24px; height: 24px; border-width: 3px; }
.builder__field.is-dense { gap: 3px; }
.builder__field.is-dense .aa { width: 9px; height: 9px; border-width: 1.5px; }

/* ---------- Sheets: kind line, status line, prev/next ---------- */
.kind-line { font-family: var(--f-display); font-stretch: 85%; font-weight: 700; font-size: 1rem; line-height: 1.3; border-top: var(--rule) solid var(--ink); border-bottom: 1px solid var(--ink); padding: 8px 0; margin: -4px 0 18px; max-width: 60ch; }
.status-line { display: inline-block; background: var(--ink); color: var(--paper); font-size: .85rem; font-weight: 600; padding: 6px 12px; margin: 12px 0 0; max-width: 60ch; }
.ns-line { display: flex !important; align-items: center; gap: 10px; }
.ns-arrow { width: 22px; height: 22px; flex: none; }
.next-sheets a { display: grid; gap: 6px; }
.next-sheets .ns-next { text-align: right; justify-items: end; }
.next-sheets .ns-next .ns-line { justify-content: flex-end; }
@media (max-width: 700px) { .next-sheets .ns-next { text-align: left; justify-items: start; } .next-sheets .ns-next .ns-line { justify-content: flex-start; } }.chain svg.is-wrapped.is-wide { max-width: none; }

/* ---------- Accueil ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--rule-heavy) solid var(--ink); }
.pillars > div { padding: 22px 22px 6px 0; }
.pillars > div + div { border-left: 1px solid var(--ink); padding-left: 22px; }
.pillars h3 { font-size: 1.6rem; margin-bottom: 8px; }
.pillars p { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } .pillars > div + div { border-left: 0; border-top: 1px solid var(--ink); padding-left: 0; } }

.five-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: var(--rule) solid var(--ink); }
.five-strip li { padding: 20px 16px 20px 0; display: grid; gap: 10px; align-content: start; }
.five-strip li + li { border-left: 1px solid var(--ink); padding-left: 16px; }
.five-strip b { font-family: var(--f-display); font-stretch: 80%; font-weight: 850; font-size: 1.45rem; line-height: 1.05; }
.five-strip span { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 900px) { .five-strip { grid-template-columns: 1fr 1fr; } .five-strip li + li { border-left: 0; } .five-strip li { border-bottom: 1px solid var(--ink); padding-left: 0 !important; } }
@media (max-width: 520px) { .five-strip { grid-template-columns: 1fr; } }

.finder { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; align-items: end; margin-bottom: 18px; }
.finder label { display: block; font-family: var(--f-display); font-stretch: 85%; font-weight: 800; margin-bottom: 6px; }
.finder input, .finder select { width: 100%; font: 500 1rem var(--f-text); color: var(--ink); background: var(--paper); border: var(--rule) solid var(--ink); border-radius: 0; padding: 0 14px; min-height: 52px; }
.finder input::placeholder { color: var(--ink-soft); }
@media (max-width: 760px) { .finder { grid-template-columns: 1fr 1fr; } .finder > :first-child { grid-column: 1 / -1; } }
.finder-count { font-size: .9rem; color: var(--ink-soft); margin: 0 0 10px; }
.results { list-style: none; margin: 0; padding: 0; border-top: var(--rule) solid var(--ink); }
.results li { border-bottom: 1px solid var(--ink); }
.results a { display: grid; grid-template-columns: minmax(170px, 1fr) 2fr auto; gap: 8px 24px; align-items: center; padding: 18px 0; text-decoration: none; transition: background .2s var(--ease-out); }
.results a:hover { background: var(--paper-2); }
.results a:hover .pep-name { color: var(--verm-text); }
.results .res-desc { color: var(--ink-soft); }
.results .res-route { display: block; font-size: .8rem; color: var(--ink-soft); margin-top: 4px; }
.mini-scores { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: .82rem; }
.mini-scores div { display: flex; gap: 5px; align-items: baseline; }
.mini-scores dt { color: var(--ink-soft); }
.mini-scores dd { margin: 0; font-family: var(--f-display); font-stretch: 75%; font-weight: 900; font-size: 1.1rem; }
.results-empty { padding: 18px 0; border-bottom: 1px solid var(--ink); }
@media (max-width: 860px) { .results a { grid-template-columns: 1fr; } }

.start-list { list-style: none; margin: 0; padding: 0; border-top: var(--rule) solid var(--ink); }
.start-list a { display: grid; grid-template-columns: 1fr 2fr 28px; gap: 8px 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--ink); text-decoration: none; }
.start-list a:hover h3 { color: var(--verm-text); }
.start-list a:hover svg { transform: translateX(4px); }
.start-list h3 { font-size: 1.6rem; }
.start-list p { margin: 0; color: var(--ink-soft); }
.start-list svg { width: 26px; height: 26px; transition: transform .25s var(--ease-out); }
@media (max-width: 760px) { .start-list a { grid-template-columns: 1fr 28px; } .start-list p { grid-column: 1 / 2; } }

.routes-grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--col-gap); align-items: start; }
.routes-grid > * { min-width: 0; }
.routes-figure { margin: 0; border: var(--rule) solid var(--ink); padding: 14px; background: var(--paper); }
.routes-figure svg { width: 100%; height: auto; display: block; }
.routes-figure figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: 8px; }
.routes .pep-name { font-size: 1.35rem; }
.routes-note { margin-top: 28px; }
@media (max-width: 1000px) { .routes-grid { grid-template-columns: 1fr; } .routes-figure { max-width: 560px; } }
/* ---------- Fluid layer (Apple-style response, materials, motion) ---------- */

/* Folio line sits above the nameplate so the bar alone stays pinned while reading */
.masthead { position: sticky; top: calc(-1 * var(--meta-h, 0px)); display: flex; flex-direction: column; background: color-mix(in srgb, var(--paper) 84%, transparent); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.masthead > .wrap { width: 100%; }
.masthead__meta { order: -1; border-top: 0; border-bottom: 1px solid var(--ink); letter-spacing: .01em; row-gap: 0; }
.masthead.is-stuck { box-shadow: 0 10px 24px -20px rgba(20, 33, 61, .6); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .masthead { background: var(--paper); } }

/* Kill the tap delay on everything that responds */
a, button, summary, input, select, label { touch-action: manipulation; }

/* Feedback on press, not on release */
.nav-toggle, .preset, .sort, .scoreboard .sb-more, .start-list svg { transition-property: transform, background, color, opacity; transition-duration: .2s; transition-timing-function: var(--ease-out); }
.nav-toggle:active, .preset:active { transform: scale(.96); transition-duration: .1s; }
.sort:active { opacity: .6; transition-duration: .05s; }
.scoreboard summary:active .sb-more { transform: scale(.9); transition-duration: .1s; }
.scoreboard details[open] summary:active .sb-more { transform: rotate(45deg) scale(.9); }
.results a:active, .start-list a:active, .cmp tbody.rated tr:active { background: var(--paper-3); transition-duration: .05s; }
.nav a:active { color: var(--verm-text); }

/* Hover styles only where a pointer can hover; taps never leave a stuck highlight */
@media (hover: none) {
  .btn--solid:hover { background: var(--ink); border-color: var(--ink); }
  .btn--line:hover { background: transparent; color: var(--ink); }
  .btn:hover svg, .start-list a:hover svg { transform: none; }
  .results a:hover, .cmp tbody.rated tr:hover, .preset:hover { background: transparent; }
  .nav a:hover { border-bottom-color: transparent; }
}

/* Accordions open along their own height and can be reversed mid-flight */
@supports (interpolate-size: allow-keywords) and selector(::details-content) {
  :root { interpolate-size: allow-keywords; }
  details::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size .38s var(--ease-out), opacity .25s var(--ease-out), content-visibility .38s allow-discrete; }
  details[open]::details-content { block-size: auto; opacity: 1; }
}

/* Sorted rows travel to their new place; the moving row sits above the others */
.cmp tbody.rated tr.is-moving { position: relative; z-index: 1; }
.cmp tbody.rated tr.is-moving > * { background: var(--paper); }

/* Finder: only results that were not already on screen arrive */
.results li.is-new { animation: res-in .32s var(--ease-out) both; animation-delay: calc(min(var(--i, 0), 6) * 30ms); }
@keyframes res-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Range thumbs grow under the finger */
input[type=range]::-webkit-slider-thumb { transition: transform .15s var(--ease-out); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.25); }
input[type=range]::-moz-range-thumb { transition: transform .15s var(--ease-out); }
input[type=range]:active::-moz-range-thumb { transform: scale(1.25); }

/* Reduced motion keeps a gentle cross-fade instead of travel */
@media (prefers-reduced-motion: reduce) {
  .nav, .nav.is-open { transform: none !important; transition: opacity .18s ease, visibility 0s linear .18s !important; }
  .nav.is-open { transition: opacity .18s ease, visibility 0s !important; }
  details::details-content { transition: opacity .18s ease !important; }
  .results li.is-new { animation: res-fade .18s ease both !important; }
  @keyframes res-fade { from { opacity: 0; } to { opacity: 1; } }
}
@media (prefers-reduced-transparency: reduce) {
  .masthead { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .masthead { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav { box-shadow: none; }
}

/* ---------- Communauté : forum, partage d'expérience, compte ---------- */
.section--tight { padding-block: clamp(32px, 4vw, 56px) clamp(56px, 8vw, 96px); }
.banner--status { margin-bottom: clamp(28px, 4vw, 44px); }
.page-head--plain .lede { max-width: 60ch; }
.sub { font-size: 1.4rem; margin: 36px 0 14px; }
.fine { font-size: .82rem; color: var(--ink-soft); margin-top: 12px; }
.btn--small { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.linkish { all: unset; cursor: pointer; text-decoration: underline; text-decoration-color: var(--verm); text-decoration-thickness: 2px; text-underline-offset: .22em; font-weight: 600; }
.linkish:focus-visible { outline: 3px solid var(--verm); outline-offset: 3px; }

/* Navigation : l'espace membre se distingue des rubriques */
.nav .nav__account { display: inline-flex; align-items: center; gap: 8px; border: var(--rule) solid var(--ink); padding: 6px 12px; white-space: nowrap; }
.nav__account svg { width: 18px; height: 18px; flex: none; }
.nav .nav__account[aria-current="page"] { background: var(--ink); color: var(--paper); }
@media (hover: hover) { .nav .nav__account:hover { background: var(--ink); color: var(--paper); } }
.nav a { white-space: nowrap; }

/* Formulaires */
.form .field { margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.form label, .form legend { display: block; font-family: var(--f-display); font-stretch: 85%; font-weight: 800; font-size: 1.05rem; margin-bottom: 6px; padding: 0; }
.field__hint { font-size: .88rem; color: var(--ink-soft); margin: -2px 0 8px; max-width: 62ch; }
.req, .opt { font-family: var(--f-text); font-stretch: 100%; font-weight: 500; font-size: .78rem; margin-left: 6px; }
.req { color: var(--verm-text); }
.opt { color: var(--ink-soft); }
.form input[type=text], .form input[type=email], .form input[type=password], .form select, .form textarea {
  width: 100%; font: 400 1rem/1.5 var(--f-text); color: var(--ink); background: var(--paper); border: var(--rule) solid var(--ink); border-radius: 0; padding: 12px 14px; min-height: 52px;
  transition: box-shadow .15s var(--ease-out);
}
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--verm); }
.form input::placeholder { color: var(--ink-faint); }
.form [aria-invalid="true"] { border-color: var(--verm-text); }
.field-error { color: var(--verm-text); font-weight: 600; font-size: .9rem; margin: 8px 0 0; }
.field__count { font-size: .82rem; color: var(--ink-soft); margin: 6px 0 0; text-align: right; max-width: none; }
.form-status { margin: 0 0 16px; font-weight: 600; max-width: 62ch; }
.form-status:empty { display: none; }
.form-status.is-error { border-left: var(--rule-heavy) solid var(--verm-text); padding: 10px 14px; background: var(--paper); color: var(--verm-text); }
.form-status.is-ok, .form-status.is-info { border-left: var(--rule-heavy) solid var(--ink); padding: 10px 14px; background: var(--paper); }
.form-actions, .dialog__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Choix segmentés : tout le segment est la cible */
.seg { display: flex; flex-wrap: wrap; border: var(--rule) solid var(--ink); width: fit-content; max-width: 100%; }
.form .seg label { margin: 0; font: 600 .95rem var(--f-text); position: relative; }
.seg label + label { border-left: 1px solid var(--ink); }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.seg span { display: flex; align-items: center; min-height: 46px; padding: 0 16px; background: var(--paper); transition: background .15s var(--ease-out), color .15s var(--ease-out); }
@media (hover: hover) { .seg label:hover span { background: var(--paper-2); } }
.seg label:active span { background: var(--paper-3); }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 3px solid var(--verm); outline-offset: -6px; }
@media (max-width: 560px) {
  .seg { width: 100%; }
  .form .seg label { flex: 1 1 50%; }
  .seg label + label { border-left: 0; }
  .seg label:nth-child(even) { border-left: 1px solid var(--ink); }
  .seg label:nth-child(n+3) { border-top: 1px solid var(--ink); }
  .seg span { justify-content: center; text-align: center; }
}

.form .check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font: 500 .95rem/1.45 var(--f-text); margin: 0 0 18px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }
.choice-list { display: grid; gap: 2px; }
.form .choice { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: center; font: 500 1rem var(--f-text); min-height: 44px; margin: 0; cursor: pointer; }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }

/* Charte */
.charter { display: grid; grid-template-columns: 1fr 1.4fr; border: var(--rule) solid var(--ink); background: var(--paper); }
.charter__col { padding: 20px 22px; min-width: 0; }
.charter__col + .charter__col { border-left: var(--rule) solid var(--ink); }
.charter h3 { font-size: 1.2rem; margin-bottom: 12px; }
.charter ul { margin: 0; padding: 0; list-style: none; }
.charter li { position: relative; padding: 0 0 10px 28px; font-size: .95rem; line-height: 1.45; }
.charter li::before { position: absolute; left: 0; top: 0; font: 900 1.05rem/1.35 var(--f-display); }
.charter__col--ok li::before { content: "\2713"; color: var(--ink); }
.charter__col--no li::before { content: "\2715"; color: var(--verm-text); }
.charter__col--no h3 { color: var(--verm-text); }
@media (max-width: 760px) { .charter { grid-template-columns: 1fr; } .charter__col + .charter__col { border-left: 0; border-top: var(--rule) solid var(--ink); } }
.charter-toggle { margin: 4px 0 22px; }
.charter-toggle > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; gap: 12px; list-style: none; }
.charter-toggle > summary::-webkit-details-marker { display: none; }
.charter-toggle > summary::before { content: ""; width: 9px; height: 9px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(-45deg); transition: transform .25s var(--ease-out); flex: none; }
.charter-toggle[open] > summary::before { transform: rotate(45deg); }
.charter-toggle .charter { margin-top: 8px; }

/* Forum */
.forum { display: grid; grid-template-columns: minmax(230px, 1fr) 3fr; gap: var(--col-gap); align-items: start; }
.forum > * { min-width: 0; }
.forum__cats { position: sticky; top: calc(var(--head-h, 0px) + 24px); }
.forum__cats-title { font-size: 1.5rem; padding-bottom: 10px; border-bottom: var(--rule) solid var(--ink); margin-bottom: 6px; }
.cat-group { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin: 16px 0 4px; }
.cat { all: unset; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 10px; cursor: pointer; font-weight: 600; font-size: .95rem; border-left: 4px solid transparent; transition: background .15s var(--ease-out), border-color .15s var(--ease-out); }
.cat b { font: 800 .9rem var(--f-display); color: var(--ink-soft); }
@media (hover: hover) { .cat:hover { background: var(--paper-2); border-left-color: var(--ink); } }
.cat:active { background: var(--paper-3); }
.cat[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-left-color: var(--verm); }
.cat[aria-pressed="true"] b { color: var(--paper); }
.cat:focus-visible { outline: 3px solid var(--verm); outline-offset: -3px; }
@media (max-width: 900px) {
  .forum { grid-template-columns: 1fr; }
  .forum__cats { position: static; }
  .cat-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-inline: calc(-1 * clamp(16px, 4vw, 48px)); padding-inline: clamp(16px, 4vw, 48px); scroll-snap-type: x proximity; scrollbar-width: thin; }
  .cat-group { display: none; }
  .cat { width: auto; flex: none; border: 2px solid var(--ink); white-space: nowrap; scroll-snap-align: start; }
}
.forum__bar { display: flex; justify-content: space-between; align-items: end; gap: 16px 24px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: var(--rule-heavy) solid var(--ink); }
.forum__heading { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.forum__desc { margin: 8px 0 0; color: var(--ink-soft); }
.composer { border: var(--rule) solid var(--ink); border-top: 0; padding: 24px; background: var(--paper-2); }
.composer[hidden] { display: none; }
.composer h3 { font-size: 1.5rem; margin-bottom: 18px; }
.threads { list-style: none; margin: 0; padding: 0; }
.thread { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--ink); }
.thread[hidden] { display: none; }
.thread.is-pinned { background: linear-gradient(90deg, var(--paper-2), transparent 70%); padding-left: 14px; border-left: 4px solid var(--ink); }
.thread.is-draft { border-left: 4px dashed var(--verm); padding-left: 14px; }
.thread.is-new { animation: res-in .4s var(--ease-out) both; }
.thread:focus { outline: 0; }
.thread__main { min-width: 0; }
.thread__flags { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 0 0 6px; font-size: .8rem; }
.thread__cat { font-weight: 700; color: var(--verm-text); }
.flag { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: .8rem; background: var(--ink); color: var(--paper); padding: 2px 8px; }
.flag svg { width: 13px; height: 13px; }
.flag--draft { background: var(--verm-text); }
.thread__title { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
.thread.is-locked:not(.is-pinned) .thread__title { color: var(--ink-soft); }
.thread__meta { margin: 6px 0 0; font-size: .88rem; color: var(--ink-soft); }
.thread__note { margin: 8px 0 0; font-size: .88rem; border-left: var(--rule) solid var(--verm); padding-left: 10px; }
.thread__count { margin: 0; text-align: right; font-size: .82rem; color: var(--ink-soft); line-height: 1.1; }
.thread__count b { display: block; font: 900 1.8rem/1 var(--f-display); font-stretch: 70%; color: var(--ink); }
.report-btn { all: unset; cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--ink-soft); padding: 10px 4px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .22em; transition: color .15s, text-decoration-color .15s; }
@media (hover: hover) { .report-btn:hover { color: var(--verm-text); text-decoration-color: currentColor; } }
.report-btn:active { color: var(--verm-text); }
.report-btn:focus-visible { outline: 3px solid var(--verm); outline-offset: 2px; }
@media (max-width: 600px) { .thread { grid-template-columns: 1fr auto; } .thread .report-btn { grid-column: 1 / -1; justify-self: start; padding: 4px 0; min-height: 32px; } }
.threads-empty { padding: 24px 0; border-bottom: 1px solid var(--ink); color: var(--ink-soft); margin: 0; }
.cat-peptides { margin-top: 28px; padding: 18px 20px; border: var(--rule) solid var(--ink); }
.cat-peptides[hidden] { display: none; }
.cat-peptides h3 { font-size: 1.15rem; margin-bottom: 10px; }
.cat-peptides ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.cat-peptides a { font: 800 1.2rem var(--f-display); font-stretch: 80%; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; padding: 18px 0; border-top: var(--rule) solid var(--ink); }
.steps li:last-child { border-bottom: var(--rule) solid var(--ink); }
.steps li::before { content: counter(step); grid-row: span 2; font: 900 2.6rem/1 var(--f-display); font-stretch: 65%; color: var(--verm-text); }
.steps h3 { font-size: 1.3rem; }
.steps p { margin: 0; }
.sanctions .step { display: block; }
.sanctions .step b { margin-bottom: 2px; }
@media (max-width: 600px) { .sanctions .step { margin-right: 0; } }
.separation { margin: 0; }
.separation p { max-width: 70ch; margin: 0; }

/* Dialogue de signalement */
.dialog { border: var(--rule) solid var(--ink); padding: 0; width: min(560px, calc(100vw - 32px)); max-width: none; background: var(--paper); color: var(--ink); box-shadow: 0 30px 60px -30px rgba(20, 33, 61, .6); max-height: calc(100dvh - 32px); }
.dialog::backdrop { background: rgba(20, 33, 61, .45); }
.dialog__inner { padding: 22px 24px 24px; }
.dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: var(--rule-heavy) solid var(--ink); padding-bottom: 12px; margin-bottom: 16px; }
.dialog__head h2 { font-size: 1.8rem; }
.dialog__close { all: unset; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; flex: none; }
.dialog__close svg { width: 20px; height: 20px; }
.dialog__close:focus-visible { outline: 3px solid var(--verm); }
.dialog[open] { animation: dialog-in .28s var(--ease-out); }
.dialog[open]::backdrop { animation: fade-in .2s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Partage d'expérience */
.share { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap); align-items: start; }
.share > * { min-width: 0; }
.share__form { grid-column: 1 / span 7; }
.share__rules { grid-column: 9 / span 4; position: sticky; top: calc(var(--head-h, 0px) + 24px); }
@media (max-width: 960px) { .share__form, .share__rules { grid-column: 1 / -1; } .share__rules { position: static; } }
.form-title { font-size: clamp(1.8rem, 3.2vw, 2.4rem); padding-bottom: 12px; border-bottom: var(--rule-heavy) solid var(--ink); margin-bottom: 24px; }
.rules-card { border: var(--rule) solid var(--ink); padding: 20px 22px 6px; background: var(--paper-2); }
.rules-card h2 { font-size: 1.5rem; margin-bottom: 12px; }
.rules-card > ul { margin: 0 0 12px; padding: 0; list-style: none; }
.rules-card > ul li { position: relative; padding: 7px 0 7px 28px; border-bottom: 1px solid var(--paper-3); font-weight: 600; }
.rules-card > ul li::before { content: "\2715"; position: absolute; left: 0; color: var(--verm-text); font: 900 1.05rem/1.5 var(--f-display); }
.rules-card .charter { grid-template-columns: 1fr; }
.rules-card .charter__col + .charter__col { border-left: 0; border-top: var(--rule) solid var(--ink); }

.community--live { margin-bottom: 0; }
.testi-tools { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 14px; }
.field--inline { display: flex; align-items: center; gap: 10px; }
.field--inline label { font-family: var(--f-display); font-stretch: 85%; font-weight: 800; }
.field--inline select { font: 600 .95rem var(--f-text); color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 0; padding: 0 10px; min-height: 44px; }
.testis { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.testi { background: var(--paper); border: 1px solid var(--ink); padding: 16px 18px; }
.testi p { margin: 0 0 8px; max-width: 72ch; }
.testi p:last-child { margin-bottom: 0; }
.testi .testi__meta { max-width: none; }
.testi__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: .85rem; color: var(--ink-soft); }
.testi__meta b { color: var(--ink); }
.testi__meta > span:last-child { margin-left: auto; }
.testi__side { font-size: .92rem; color: var(--ink-soft); }
.testi__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.testi .report-btn { padding: 8px 0 0; }
.testi--draft { border: 3px dashed var(--verm); }
.placeholder { color: var(--ink-faint); font-style: italic; }
.testis-empty { padding: 16px 0; color: var(--ink-soft); }
.testis-foot { margin: 16px 0 0; padding-top: 12px; border-top: 1px dashed var(--ink); font-size: .92rem; }
.testis--compact .testi { border-width: 0 0 1px; background: transparent; padding: 14px 0; }
.testis--compact .testi__meta > span:last-child { margin-left: 0; }

.community__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 4px; }

/* Compte */
.account { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap); align-items: start; }
.account > * { min-width: 0; }
.auth { grid-column: 1 / span 7; border: var(--rule) solid var(--ink); }
.account__why { grid-column: 9 / span 4; }
@media (max-width: 960px) { .auth, .account__why { grid-column: 1 / -1; } }
.auth__tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: var(--rule) solid var(--ink); }
.auth__tabs button { all: unset; box-sizing: border-box; text-align: center; cursor: pointer; min-height: 56px; padding: 0 8px; font: 800 1.1rem var(--f-display); font-stretch: 85%; background: var(--paper-2); color: var(--ink-soft); transition: background .15s var(--ease-out), color .15s var(--ease-out); }
.auth__tabs button + button { border-left: var(--rule) solid var(--ink); }
.auth__tabs button:active { background: var(--paper-3); }
.auth__tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: inset 0 -5px 0 var(--verm); }
.auth__tabs button:focus-visible { outline: 3px solid var(--verm); outline-offset: -6px; }
.auth__panel { padding: 24px; }
.auth__panel[hidden] { display: none; }
.pass { display: flex; }
.pass input { flex: 1; min-width: 0; }
.pass__show { all: unset; cursor: pointer; border: var(--rule) solid var(--ink); border-left: 0; padding: 0 14px; font-weight: 700; font-size: .9rem; min-width: 80px; text-align: center; background: var(--paper-2); }
.pass__show:active { background: var(--paper-3); }
.pass__show:focus-visible { outline: 3px solid var(--verm); outline-offset: -3px; }
.consent { font-size: .9rem; background: var(--paper-2); padding: 14px 16px; border-left: var(--rule-heavy) solid var(--ink); max-width: none; }
.account__why h2 { font-size: 1.45rem; padding-bottom: 8px; border-bottom: var(--rule) solid var(--ink); margin-bottom: 10px; }
.account__why ul + h2 { margin-top: 32px; }
.ticks, .crosses { list-style: none; margin: 0; padding: 0; }
.ticks li, .crosses li { position: relative; padding: 7px 0 7px 28px; border-bottom: 1px solid var(--paper-3); }
.ticks li::before, .crosses li::before { position: absolute; left: 0; font: 900 1.05rem/1.5 var(--f-display); }
.ticks li::before { content: "\2713"; }
.crosses li::before { content: "\2715"; color: var(--verm-text); }

.profile { border: var(--rule) solid var(--ink); background: var(--paper); padding: clamp(20px, 3vw, 32px); }
.profile__id { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: var(--rule-heavy) solid var(--ink); }
.avatar { width: 64px; height: 64px; flex: none; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 900 2rem/1 var(--f-display); font-stretch: 70%; border-radius: 50%; box-shadow: 4px 4px 0 var(--verm); }
.profile__name { font: 900 clamp(1.4rem, 2.6vw, 2rem)/1.1 var(--f-display); font-stretch: 75%; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; overflow-wrap: anywhere; }
.profile__name .tag { font-family: var(--f-text); font-stretch: 100%; }
.profile .small { margin: 0; }
.profile__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--col-gap); }
.profile__grid > * { min-width: 0; }
@media (max-width: 860px) { .profile__grid { grid-template-columns: 1fr; } }
.profile__side { padding-top: 36px; display: grid; gap: 12px; align-content: start; }
@media (max-width: 860px) { .profile__side { padding-top: 12px; } }
.panel { border: var(--rule) solid var(--ink); }
.panel > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; font: 800 1.05rem var(--f-display); font-stretch: 85%; }
.panel > summary::-webkit-details-marker { display: none; }
.panel > summary::after { content: "+"; font: 900 1.5rem/1 var(--f-display); transition: transform .25s var(--ease-out); }
.panel[open] > summary { border-bottom: 1px solid var(--ink); }
.panel[open] > summary::after { transform: rotate(45deg); }
.panel > summary:active { background: var(--paper-3); }
.panel .form { padding: 16px; }
.panel--static { padding: 14px 16px; background: var(--paper-2); }
.panel--static h3 { font-size: 1.1rem; margin-bottom: 6px; }
.panel--static p { margin: 0; font-size: .92rem; }
.form .follow { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.form .follow legend { font-size: .95rem; margin-bottom: 6px; }
.form .follow .check { display: inline-grid; margin: 0 18px 6px 0; min-height: 32px; align-items: center; }

/* Informations à compléter avant la mise en ligne */
.tofill { display: inline-block; border: 2px dashed var(--verm); color: var(--verm-text); background: var(--paper); font-weight: 700; padding: 1px 8px; }
.tofill::before { content: "à compléter : "; font-weight: 500; font-size: .85em; text-transform: uppercase; letter-spacing: .04em; }
.footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer__grid { grid-template-columns: 1fr; } }

/* =========================================================================
   Refonte 2026 — le banc d'essai, modernisé
   Moins « presse papier » : filets fins, coins adoucis, surfaces en relief.
   Plus d'air, une palette revue, et un mode sombre.
   Cette couche redéfinit les jetons et affine les composants existants.
   ========================================================================= */

:root {
  /* Surfaces et encre */
  --paper: #FAFAF7;
  --paper-2: #F1F2ED;
  --paper-3: #E3E5DE;
  --surface: #FFFFFF;
  --surface-sunk: #F4F5F1;
  --ink: #16213A;
  --ink-soft: #4A5468;
  --ink-faint: #5C6478;
  --verm: #E4572E;
  --verm-text: #B03A11;
  --verm-soft: rgba(228, 87, 46, .12);
  --warn: #FFD23F;
  --warn-ink: #14213D;

  /* Filets : beaucoup plus fins que la version « journal » */
  --rule: 1.5px;
  --rule-heavy: 3px;
  --line: rgba(22, 33, 58, .14);
  --line-soft: rgba(22, 33, 58, .08);

  /* Rayons et ombres : le relief qui manquait */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --pill: 999px;
  --shadow-1: 0 1px 2px rgba(22, 33, 58, .05), 0 3px 10px rgba(22, 33, 58, .05);
  --shadow-2: 0 2px 6px rgba(22, 33, 58, .06), 0 14px 34px -14px rgba(22, 33, 58, .28);
  --shadow-3: 0 30px 60px -28px rgba(22, 33, 58, .45);

  /* Respiration */
  --col-gap: clamp(20px, 2.6vw, 40px);
  --max: 1320px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #10151F;
    --paper-2: #171D2A;
    --paper-3: #222A3A;
    --surface: #171E2B;
    --surface-sunk: #131924;
    --ink: #E9ECF3;
    --ink-soft: #AAB3C5;
    --ink-faint: #8A93A6;
    --verm: #FF7A52;
    --verm-text: #FF9270;
    --verm-soft: rgba(255, 122, 82, .16);
    --warn: #FFC93F;
    --warn-ink: #1A1200;
    --line: rgba(233, 236, 243, .16);
    --line-soft: rgba(233, 236, 243, .09);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 3px 10px rgba(0, 0, 0, .3);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .4), 0 14px 34px -14px rgba(0, 0, 0, .6);
    --shadow-3: 0 30px 60px -28px rgba(0, 0, 0, .8);
  }
}
:root[data-theme="dark"] {
  --paper: #10151F;
  --paper-2: #171D2A;
  --paper-3: #222A3A;
  --surface: #171E2B;
  --surface-sunk: #131924;
  --ink: #E9ECF3;
  --ink-soft: #AAB3C5;
  --ink-faint: #8A93A6;
  --verm: #FF7A52;
  --verm-text: #FF9270;
  --verm-soft: rgba(255, 122, 82, .16);
  --warn: #FFC93F;
  --warn-ink: #1A1200;
  --line: rgba(233, 236, 243, .16);
  --line-soft: rgba(233, 236, 243, .09);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 3px 10px rgba(0, 0, 0, .3);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .4), 0 14px 34px -14px rgba(0, 0, 0, .6);
  --shadow-3: 0 30px 60px -28px rgba(0, 0, 0, .8);
}

html { color-scheme: light dark; }
body { background: var(--paper); color: var(--ink); line-height: 1.65; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--line-strong, var(--ink-faint)); border: 3px solid var(--paper-2); border-radius: var(--pill); }

/* Les photos en trame restent claires : on les adoucit la nuit */
:root[data-theme="dark"] .photo img { filter: brightness(.88) contrast(1.04); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .photo img { filter: brightness(.88) contrast(1.04); }
}

/* ---------- Typographie : moins condensée, plus lisible ---------- */
h1, h2, h3, .display { font-stretch: 92%; font-weight: 800; letter-spacing: -0.022em; line-height: 1.04; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-stretch: 98%; font-weight: 700; letter-spacing: -0.012em; line-height: 1.25; }
.lede { font-size: clamp(1.1rem, 1.4vw, 1.28rem); line-height: 1.6; color: var(--ink-soft); max-width: 56ch; }
p { line-height: 1.7; }
.small, .credit, .photo figcaption { color: var(--ink-faint); }
a { text-decoration-thickness: 1.5px; text-underline-offset: .2em; }

/* ---------- Bandeau de tête ---------- */
.masthead { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 80%, transparent); }
.masthead.is-stuck { box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgba(22, 33, 58, .5); }
.masthead__meta { border-bottom: 1px solid var(--line-soft); color: var(--ink-faint); font-size: .78rem; letter-spacing: .02em; }
.brand__name { font-stretch: 82%; font-weight: 800; letter-spacing: -0.02em; }
.nav { gap: clamp(2px, .5vw, 10px); }
.nav a { border-bottom: 0; border-radius: var(--pill); padding: 8px 9px; font-size: .9rem; color: var(--ink-soft); font-stretch: 96%; font-weight: 600; transition: background .18s var(--ease-out), color .18s var(--ease-out); }
.nav a[aria-current="page"] { background: var(--verm-soft); color: var(--verm-text); }
@media (hover: hover) { .nav a:hover { background: var(--paper-2); color: var(--ink); border-bottom: 0; } }
.nav .nav__account { border: 1px solid var(--line); border-radius: var(--pill); padding: 8px 12px; color: var(--ink); }
.nav .nav__account[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav-toggle { border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface); box-shadow: var(--shadow-1); }
@media (max-width: 1319px) {
  .nav { border-bottom: 0; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-2); background: var(--surface); padding-block: 12px 16px; }
  .nav a { border-bottom: 0; padding: 14px 12px; }
  .nav .nav__account { margin-top: 10px; }
}

/* ---------- Boutons ---------- */
.btn { border-radius: var(--pill); border-width: 1.5px; font-stretch: 98%; font-weight: 700; font-size: 1rem; min-height: 50px; padding: 0 24px; box-shadow: var(--shadow-1); }
.btn--solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--line { border-color: var(--line); background: var(--surface); color: var(--ink); }
@media (hover: hover) {
  .btn--solid:hover { background: var(--verm-text); border-color: var(--verm-text); transform: translateY(-1px); box-shadow: var(--shadow-2); }
  .btn--line:hover { background: var(--paper-2); color: var(--ink); border-color: var(--line); transform: translateY(-1px); box-shadow: var(--shadow-2); }
}
.btn:active { transform: scale(.975); box-shadow: var(--shadow-1); }
.btn--small { min-height: 42px; font-size: .92rem; padding: 0 18px; }

/* ---------- Tampons : gardés comme signature, mais nets ---------- */
.stamp { --rot: -4deg; border: 1.5px solid var(--verm); border-radius: var(--pill); background: var(--surface); color: var(--verm-text); padding: 10px 20px; letter-spacing: .04em; box-shadow: var(--shadow-1); }
.stamp::before { display: none; }
.stamp .stamp__big { font-size: 1.15rem; font-stretch: 88%; letter-spacing: .02em; }
.stamp .stamp__small { font-size: .72rem; margin-top: 2px; opacity: .85; }
.stamp--verdict { --rot: 0deg; border-radius: var(--radius); border-color: var(--line); background: var(--surface); box-shadow: var(--shadow-1); padding: 20px 22px; }
.stamp--verdict .stamp__big { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-stretch: 100%; letter-spacing: -0.01em; line-height: 1.35; }
.community .off-score.stamp { background: var(--surface); }

/* ---------- Sections : de l'air, des filets discrets ---------- */
.section { padding-block: clamp(64px, 8vw, 120px); }
.section--tint { background: var(--surface-sunk); }
.section-head { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.hero { border-bottom: 1px solid var(--line); padding-block: clamp(32px, 5vw, 72px); }
.page-head { border-bottom: 1px solid var(--line); padding-block: clamp(40px, 6vw, 80px); }
.block > h2 { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.quote-band blockquote { font-stretch: 84%; letter-spacing: -0.03em; }

/* ---------- Photos et illustrations ---------- */
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); background: var(--surface); }
.photo figcaption, .credit { font-size: .72rem; }

/* ---------- Cartes, encadrés, tableaux ---------- */
.callout, .community, .cat-peptides, .rules-card, .profile, .panel, .composer, .auth, .banner, .method-note, .trends-box, .floor, .builder, .scoreboard > li, .testi, .dialog {
  border-radius: var(--radius);
}
.callout { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); padding: 26px; }
.community { border: 1px solid var(--line); border-left: 3px solid var(--verm); background: var(--surface); box-shadow: var(--shadow-1); padding: 28px; }
.community .off-score { top: -16px; right: 20px; }
.method-note { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-2); padding: 30px; }
.method-note a { color: var(--paper); }
.banner { background: var(--warn); color: var(--warn-ink); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.kv th, .kv td, .src th, .src td, .sources-list th, .sources-list td { border-bottom: 1px solid var(--line); }
.src thead th { border-bottom: 1.5px solid var(--line); }
.tag { border-radius: var(--pill); border-width: 1px; border-color: var(--line); color: var(--ink-soft); font-weight: 600; padding: 2px 10px; background: var(--surface); }
.tag--out { border-style: dashed; }
.reg-date { border-radius: var(--pill); background: var(--paper-3); color: var(--ink); }

/* Le tableau comparatif : des lignes, pas une grille de journal */
.cmp thead th { border-bottom: 1px solid var(--line); font-stretch: 96%; color: var(--ink-soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.cmp tbody.rated tr { transition: background .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.cmp tbody.rated td { border-bottom: 1px solid var(--line); }
@media (hover: hover) { .cmp tbody.rated tr:hover { background: var(--surface); box-shadow: var(--shadow-1); } }
.pep-name { font-stretch: 88%; font-weight: 800; letter-spacing: -0.02em; }

/* Pastilles de note */
.disc { border-color: var(--ink); }
.score-num { font-stretch: 88%; letter-spacing: -0.02em; }

/* ---------- Listes et échelles ---------- */
.principles li { border-top: 1px solid var(--line); padding: 26px 0; }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.ladder .step { border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface); box-shadow: var(--shadow-1); }
.ladder .lvl { border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-stretch: 84%; }
.steps li { border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.messages li, .depth li { border-bottom: 1px solid var(--line); }
.kind-line { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-stretch: 96%; font-weight: 600; border-radius: 0; }

/* ---------- Formulaires ---------- */
.form input[type=text], .form input[type=email], .form input[type=password], .form select, .form textarea,
.finder input, .finder select, .mobile-sort select, .field--inline select {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-1);
}
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--verm); }
.form label, .form legend, .finder label { font-stretch: 98%; font-weight: 700; font-size: .95rem; letter-spacing: 0; }
.seg { border: 1px solid var(--line); border-radius: var(--pill); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-1); }
.seg label + label { border-left: 1px solid var(--line); }
.seg span { background: transparent; }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
@media (max-width: 560px) { .seg { border-radius: var(--radius-sm); } }
.form-status.is-error, .form-status.is-ok, .form-status.is-info { border-radius: var(--radius-sm); border-left-width: 3px; background: var(--surface); box-shadow: var(--shadow-1); }
.tofill { border-radius: var(--radius-xs); }

/* ---------- Forum, témoignages, compte ---------- */
.cat { border-radius: var(--radius-sm); border-left: 0; }
.cat[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 900px) { .cat { border: 1px solid var(--line); border-radius: var(--pill); } }
.forum__bar { border-bottom: 1px solid var(--line); }
.thread { border-bottom: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 14px; transition: background .2s var(--ease-out); }
@media (hover: hover) { .thread:hover { background: var(--surface); } }
.thread.is-pinned { background: var(--verm-soft); border-left: 0; }
.thread.is-draft { border-left: 3px dashed var(--verm); }
.flag { border-radius: var(--pill); font-size: .72rem; letter-spacing: .02em; }
.composer { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); border-radius: var(--radius); margin-top: 16px; }
.testi { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-1); }
.testi--draft { border: 1.5px dashed var(--verm); }
.rules-card, .panel, .cat-peptides, .profile, .auth { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); }
.panel--static { background: var(--surface-sunk); }
.auth__tabs { border-bottom: 1px solid var(--line); }
.auth__tabs button { background: transparent; }
.auth__tabs button + button { border-left: 1px solid var(--line); }
.auth__tabs button[aria-selected="true"] { background: var(--surface); box-shadow: inset 0 -3px 0 var(--verm); }
.charter { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.charter__col + .charter__col { border-left: 1px solid var(--line); }
@media (max-width: 760px) { .charter__col + .charter__col { border-left: 0; border-top: 1px solid var(--line); } }
.avatar { box-shadow: var(--shadow-1); }
.profile__id { border-bottom: 1px solid var(--line); }
.dialog { border: 1px solid var(--line); box-shadow: var(--shadow-3); }
.dialog__head { border-bottom: 1px solid var(--line); }
.results a, .start-list a, .next-sheets a, .closing__sheets a { border-radius: var(--radius-sm); }
.results li, .start-list a, .results-empty { border-bottom: 1px solid var(--line); }
.results { border-top: 1px solid var(--line); }
@media (hover: hover) { .results a:hover, .start-list a:hover { background: var(--surface); } }
.five-strip b { font-stretch: 92%; }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--line); background: var(--surface-sunk); padding-block: 56px 48px; }
.footer h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); font-stretch: 100%; font-weight: 700; }
.footer li a { text-decoration: none; color: var(--ink-soft); }
@media (hover: hover) { .footer li a:hover { color: var(--verm-text); } }

/* ---------- Bascule clair / sombre (ajoutée par le script) ---------- */
.theme-toggle { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: var(--pill); padding: 3px 10px; font: 600 .72rem var(--f-text); color: var(--ink-soft); background: var(--surface); transition: color .18s var(--ease-out), background .18s var(--ease-out); }
.theme-toggle svg { width: 13px; height: 13px; }
@media (hover: hover) { .theme-toggle:hover { color: var(--ink); background: var(--paper-2); } }
.theme-toggle:active { transform: scale(.96); }
.theme-toggle:focus-visible { outline: 2px solid var(--verm); outline-offset: 2px; }
.masthead__meta { align-items: center; }

/* ---------- Mouvement : les entrées restent discrètes ---------- */
.reveal-up { animation: reveal-up .5s var(--ease-out) both; }
@keyframes reveal-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal-up { animation: none; } }

/* ---------- Comparatif : colonnes plus justes, filets homogènes ---------- */
.cmp th, .cmp td, .cmp tbody th { border-bottom: 1px solid var(--line); }
.cmp thead th { border-bottom: 1px solid var(--line); }
.cmp th, .cmp td { padding: 16px 9px; }
.cmp thead th:first-child, .cmp tbody th { padding-left: 0; }
.cmp .go { padding-right: 0; }
/* Les colonnes de notes se réduisent à leur contenu : la phrase récupère la place */
.cmp thead th:nth-child(n+2):nth-child(-n+6), .cmp tbody td.cell-score { width: 1%; white-space: nowrap; }
.cmp .verdict { max-width: none; min-width: 0; width: 22%; color: var(--ink-soft); font-size: .92rem; }
.cmp .go { width: 1%; white-space: nowrap; }
.cmp .go a { text-decoration: none; }
.cmp .group-row th { border-bottom: 1px solid var(--line); color: var(--ink-faint); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-stretch: 100%; }
.pep-route { color: var(--ink-faint); }

/* ---------- Détails hérités du style « journal » ---------- */
.sources-list th, .sources-list td, .kv th, .kv td { padding-block: 16px; }
.quote-band blockquote { color: var(--ink); }
.scoreboard { border-top: 1px solid var(--line); }
.scoreboard > li { border-bottom: 1px solid var(--line); }
.scoreboard .sb-more { border: 1px solid var(--line); border-radius: var(--pill); }
.scoreboard details[open] .sb-more { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.depth li { border-bottom: 1px solid var(--line); }
.floor, .builder, .trends-box { border-radius: var(--radius); }
.preset { border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface); box-shadow: var(--shadow-1); }
.preset[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.five-strip > * { border-color: var(--line) !important; }
.cases > div + div { border-left-color: var(--line); }
.sheet-head, .sheet-head__grid { border-color: var(--line); }
.next-sheets a, .closing__sheets a { border-color: var(--line); }
.mini-scores dt { color: var(--ink-faint); }

/* Le filet épais d'origine ne subsiste que comme accent discret */
.section-head, .forum__bar, .form-title, .profile__id { border-bottom-width: 1px; border-bottom-color: var(--line); }
hr, .rule { border-color: var(--line); }

/* ---------- Bandeaux d'avertissement : ambre adouci ---------- */
.banner {
  background: color-mix(in srgb, var(--warn) 20%, var(--surface));
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--warn) 55%, transparent);
  border-left: 3px solid var(--warn);
  box-shadow: var(--shadow-1);
}
.banner svg { color: color-mix(in srgb, var(--warn) 70%, var(--ink)); }
.banner h3 { color: var(--ink); }
:root[data-theme="dark"] .banner { background: color-mix(in srgb, var(--warn) 12%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .banner { background: color-mix(in srgb, var(--warn) 12%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
}
@supports not (background: color-mix(in srgb, red 20%, white)) {
  .banner { background: #FFF6DB; border-color: #F0D386; }
}

/* ---------- Encadrés bleu nuit : ils ne doivent plus ressembler au pied de page ---------- */
.method-note {
  background: color-mix(in srgb, var(--ink) 5%, var(--surface));
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 3px solid var(--verm);
  box-shadow: var(--shadow-1);
}
.method-note h2 { color: var(--ink); }
.method-note a { color: var(--verm-text); text-decoration-color: var(--verm); }
@supports not (background: color-mix(in srgb, red 5%, white)) {
  .method-note { background: var(--surface-sunk); }
}
.separation { border-left-width: 3px; }

/* ---------- Navigation : un curseur qui suit le lien ---------- */
/* Uniquement sur grand écran : sur mobile, .nav reste en position absolue (menu déroulant) */
@media (min-width: 1320px) { .nav { position: relative; } }
.nav__cursor {
  position: absolute; z-index: 0; top: 0; left: 0; height: 0; width: 0;
  border-radius: var(--pill); background: var(--verm-soft);
  opacity: 0; pointer-events: none;
  transition: transform .34s var(--ease-out), width .34s var(--ease-out), height .34s var(--ease-out), opacity .2s var(--ease-out), background .2s var(--ease-out);
}
.nav__cursor.is-hover { background: var(--paper-2); }
.nav a { position: relative; z-index: 1; }
.nav:not(.is-open) a[aria-current="page"] { background: transparent; }
.nav a[aria-current="page"] { color: var(--verm-text); }
.nav a svg { transition: transform .3s var(--ease-out); }
@media (hover: hover) {
  .nav a:hover { background: transparent; color: var(--ink); }
  .nav .nav__account:hover svg { transform: scale(1.12); }
}
.nav a:active { transform: scale(.97); transition: transform .1s var(--ease-out); }
@media (max-width: 1319px) {
  .nav__cursor { display: none; }
  .nav:not(.is-open) a[aria-current="page"], .nav a[aria-current="page"] { background: var(--verm-soft); }
  /* Les entrées du menu arrivent l'une après l'autre */
  .nav.is-open a { animation: nav-item-in .32s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 28ms); }
  @keyframes nav-item-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .nav__cursor { transition: opacity .15s linear; }
  .nav.is-open a { animation: none !important; }
}

/* Le bouton Menu réagit à l'ouverture */
.nav-toggle { transition: background .2s var(--ease-out), color .2s var(--ease-out), transform .15s var(--ease-out); }
.nav-toggle[aria-expanded="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Lien de marque : le logo respire au survol */
.brand__mark { transition: transform .4s var(--ease-out); }
@media (hover: hover) { .brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); } }
.brand:active .brand__mark { transform: scale(.94); }

/* ---------- Bande de fin : une invitation, pas un pied de page ---------- */
.section--ink {
  background: color-mix(in srgb, var(--verm) 8%, var(--surface));
  color: var(--ink);
  border-top: 1px solid color-mix(in srgb, var(--verm) 25%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--verm) 25%, transparent);
}
@supports not (background: color-mix(in srgb, red 8%, white)) {
  .section--ink { background: #FDF1EC; }
}
.section--ink .closing__statement { color: var(--ink); }
.section--ink a:not(.btn) { color: var(--verm-text); }
.closing__sheets { border-top: 1px solid var(--line); }
.closing__sheets li + li a { border-left-color: var(--line); }

/* Quand Motion pilote le curseur, la transition CSS ne doit pas le contrarier */
.nav__cursor.is-motion { transition: opacity .2s var(--ease-out), background .2s var(--ease-out); }

/* ---------- Journal des mises à jour ---------- */
.journal-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 22px; }
.journal-next { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.journal-next b { color: var(--ink); }
.journal { list-style: none; margin: 0; padding: 0; position: relative; }
.journal::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.journal__item { position: relative; padding: 0 0 28px 34px; }
.journal__item::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--verm); background: var(--surface); }
.journal__item:last-child { padding-bottom: 0; }
.journal__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 6px; font-size: .85rem; color: var(--ink-faint); }
.journal__meta time { font-weight: 600; }
.journal__title { font-size: clamp(1.15rem, 1.7vw, 1.4rem); margin-bottom: 6px; }
.journal__item p { max-width: 68ch; margin-bottom: 8px; }
.journal__peps { display: flex; flex-wrap: wrap; gap: 6px; }
.journal__peps .tag { text-decoration: none; }
@media (hover: hover) { .journal__peps .tag:hover { border-color: var(--verm); color: var(--verm-text); } }
.journal__source { font-size: .9rem; margin-bottom: 0; }
.journal-empty { color: var(--ink-soft); padding: 18px 0; }
.flag--etude { background: var(--ink); }
.flag--note { background: var(--verm-text); }
.flag--fiche { background: var(--ink); }
.flag--correction { background: var(--verm-text); }
.flag--site { background: var(--ink-faint); }
@media (max-width: 560px) { .journal__item { padding-left: 28px; } }

/* ---------- Fiches : le nom d'une note mène à son explication ---------- */
.sb-jump {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-xs);
}
.sb-jump::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 2px solid var(--verm);
  border-bottom: 2px solid var(--verm);
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: .5;
  transition: transform .25s var(--ease-out), opacity .2s var(--ease-out);
}
@media (hover: hover) {
  .sb-jump:hover { color: var(--verm-text); }
  .sb-jump:hover::after { opacity: 1; transform: rotate(45deg) translate(1px, 1px); }
}
.sb-jump:active { opacity: .7; }
.sb-jump:focus-visible { outline: 3px solid var(--verm); outline-offset: 3px; }

/* Repère visuel à l'arrivée : la section pulse une fois */
.is-flash { animation: flash-zone 1.5s var(--ease-out) 1; border-radius: var(--radius); }
.is-flash:focus { outline: none; }
@keyframes flash-zone {
  0% { box-shadow: 0 0 0 0 var(--verm-soft); }
  25% { box-shadow: 0 0 0 12px var(--verm-soft); }
  100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) { .is-flash { animation: none; } }
h2:focus, section:focus, aside:focus { outline: none; }

/* ---------- Recherche depuis la barre de menu ---------- */
.pep-search-trigger {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--ink-faint);
  font: 500 .9rem var(--f-text);
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: color .18s var(--ease-out), border-color .18s var(--ease-out), transform .12s var(--ease-out);
}
.pep-search-trigger svg { width: 16px; height: 16px; flex: none; }
.pep-search-trigger__key {
  font: 600 .72rem var(--f-text);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 1px 6px;
  color: var(--ink-faint);
}
@media (hover: hover) {
  .pep-search-trigger:hover { color: var(--ink); border-color: var(--ink-faint); }
}
.pep-search-trigger:active { transform: scale(.97); }
.pep-search-trigger:focus-visible { outline: 3px solid var(--verm); outline-offset: 2px; }

/* La barre de menu est pleine : la recherche garde sa loupe seule */
.pep-search-trigger__label, .pep-search-trigger__key { display: none; }
.pep-search-trigger { padding: 0 11px; min-height: 40px; }
@media (max-width: 1319px) {
  .pep-search-trigger { margin-left: auto; margin-right: 10px; }
}

/* ---------- Panneau de recherche ---------- */
.palette {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  width: min(620px, calc(100vw - 32px));
  max-width: none;
  margin-top: clamp(40px, 10vh, 120px);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.palette::backdrop { background: rgba(16, 21, 31, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.palette[open] { animation: palette-in .24s var(--ease-out); }
@keyframes palette-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .palette[open] { animation: none; } }

.palette__field { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.palette__field > svg { width: 20px; height: 20px; flex: none; color: var(--ink-faint); }
.palette__field input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
  font: 500 1.05rem var(--f-text); padding: 6px 0;
}
.palette__field input:focus { outline: none; }
.palette__field input::placeholder { color: var(--ink-faint); }
.palette__field input::-webkit-search-cancel-button { display: none; }
.palette__close { all: unset; cursor: pointer; width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--pill); color: var(--ink-faint); flex: none; }
.palette__close svg { width: 16px; height: 16px; }
@media (hover: hover) { .palette__close:hover { background: var(--paper-2); color: var(--ink); } }
.palette__close:focus-visible { outline: 3px solid var(--verm); outline-offset: -2px; }

.palette__count { margin: 0; padding: 10px 18px 4px; font-size: .82rem; color: var(--ink-faint); }
.palette__list { list-style: none; margin: 0; padding: 4px 8px 8px; max-height: min(52vh, 420px); overflow-y: auto; }
.palette__item a {
  display: grid;
  grid-template-columns: minmax(120px, auto) 1fr;
  grid-template-areas: "nom desc" "route scores";
  gap: 2px 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
}
.palette__name { grid-area: nom; font: 800 1.15rem var(--f-display); font-stretch: 85%; letter-spacing: -0.01em; }
.palette__route { grid-area: route; font-size: .78rem; color: var(--ink-faint); }
.palette__desc { grid-area: desc; font-size: .92rem; color: var(--ink-soft); }
.palette__scores { grid-area: scores; font-size: .78rem; color: var(--ink-faint); }
.palette__scores b { color: var(--ink); font-family: var(--f-display); font-stretch: 85%; }
.palette__item.is-active a, .palette__item a:focus-visible { background: var(--verm-soft); outline: none; }
.palette__item.is-active .palette__name { color: var(--verm-text); }
@media (hover: hover) { .palette__item a:hover { background: var(--paper-2); } }
.palette__foot { margin: 0; padding: 10px 18px 14px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--ink-faint); }
.palette__foot kbd { font: 600 .72rem var(--f-text); border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 1px 5px; margin-right: 2px; }
@media (max-width: 560px) {
  .palette__item a { grid-template-columns: 1fr; grid-template-areas: "nom" "route" "desc" "scores"; gap: 3px; }
  .palette__foot { display: none; }
}

/* La barre reste compacte sur les petits écrans, recherche comprise */
@media (max-width: 520px) {
  .masthead__bar { gap: 10px; min-height: 68px; }
  .brand__name { font-size: 1.12rem; }
  .brand { gap: 8px; }
  .brand__mark { width: 32px; height: 32px; }
  .pep-search-trigger { margin-right: 0; padding: 0 9px; }
  .nav-toggle { padding: 8px 10px; font-size: .9rem; }
}

/* ---------- Comparatif : la ligne survolée s'arrondit et se soulève ---------- */
/* Les coins arrondis supposent des bordures séparées ; les cellules ne portent
   qu'un filet bas, il n'y a donc pas de double trait. */
.cmp { border-collapse: separate; border-spacing: 0; }
.cmp tbody.rated tr { position: relative; }
.cmp tbody.rated tr > * { transition: background .2s var(--ease-out), transform .22s var(--ease-out); }
/* Le relief est porté par un calque unique au-dessus de la ligne : une ombre basse
   et un liseré clair en haut, sans couture entre les cellules. */
.cmp tbody.rated tr::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 12px 22px -16px rgba(22, 33, 58, .5), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: opacity .22s var(--ease-out), transform .22s var(--ease-out);
}
@media (hover: hover) {
  .cmp tbody.rated tr:hover > * {
    background: var(--surface);
    transform: translateY(-1px);
    border-bottom-color: transparent;
  }
  .cmp tbody.rated tr:hover > *:first-child {
    border-top-left-radius: var(--radius-sm);
    border-bottom-left-radius: var(--radius-sm);
  }
  .cmp tbody.rated tr:hover > *:last-child {
    border-top-right-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
  }
  .cmp tbody.rated tr:hover::after { opacity: 1; transform: translateY(-1px); }
}
:root[data-theme="dark"] .cmp tbody.rated tr::after {
  box-shadow: 0 12px 24px -16px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(233, 236, 243, .12);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cmp tbody.rated tr::after {
    box-shadow: 0 12px 24px -16px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(233, 236, 243, .12);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cmp tbody.rated tr:hover > *, .cmp tbody.rated tr:hover::after { transform: none; }
}

/* Même relief pour les autres listes cliquables */
@media (hover: hover) {
  .results a, .start-list a, .thread, .next-sheets a, .closing__sheets a {
    transition: background .2s var(--ease-out), box-shadow .22s var(--ease-out), transform .22s var(--ease-out);
  }
  .results a:hover, .start-list a:hover, .thread:hover, .next-sheets a:hover, .closing__sheets a:hover {
    box-shadow: 0 12px 22px -16px rgba(22, 33, 58, .45), inset 0 1px 0 rgba(255, 255, 255, .6);
    transform: translateY(-1px);
    border-radius: var(--radius-sm);
  }
}
:root[data-theme="dark"] .results a:hover,
:root[data-theme="dark"] .start-list a:hover,
:root[data-theme="dark"] .thread:hover {
  box-shadow: 0 12px 24px -16px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(233, 236, 243, .1);
}
@media (prefers-reduced-motion: reduce) {
  .results a:hover, .start-list a:hover, .thread:hover, .next-sheets a:hover, .closing__sheets a:hover { transform: none; }
}

/* En affichage compact, la ligne devient une carte : le relief va sur la ligne elle-même */
@media (max-width: 900px) and (hover: hover) {
  .cmp tbody.rated tr { border-radius: var(--radius-sm); padding-inline: 14px; }
  .cmp tbody.rated tr:hover { background: var(--surface); transform: translateY(-1px); }
  .cmp tbody.rated tr:hover > * { background: transparent; transform: none; }
}
/* ---------- Champ de recherche de la bannière d'accueil ---------- */
.hero-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(520px, 100%);
  margin: 28px 0 0;
  padding: 0 16px;
  min-height: 60px;
  border: 1.5px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: border-color .2s var(--ease-out), box-shadow .22s var(--ease-out), transform .22s var(--ease-out);
}
.hero-search > svg { width: 20px; height: 20px; flex: none; color: var(--ink-faint); }
.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 500 1rem var(--f-text);
  padding: 8px 0;
}
.hero-search input:focus { outline: none; }
.hero-search input::placeholder { color: var(--ink-faint); }
.hero-search input::-webkit-search-cancel-button { display: none; }
.hero-search__key {
  font: 600 .75rem var(--f-text);
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 2px 8px;
  flex: none;
}
@media (hover: hover) {
  .hero-search:hover { border-color: var(--ink-faint); box-shadow: var(--shadow-2); transform: translateY(-1px); }
}
.hero-search:focus-within {
  border-color: var(--verm);
  box-shadow: 0 0 0 3px var(--verm-soft), var(--shadow-2);
}
/* Les boutons suivent le champ, avec un peu moins d'écart */
.hero-search + .hero__actions { margin-top: 16px; }
@media (max-width: 560px) {
  .hero-search { min-height: 54px; padding: 0 14px; }
  .hero-search__key { display: none; }
  .hero-search input { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-search:hover { transform: none; }
}

/* =========================================================================
   Fiches et forum : toujours sombres, avec l'orbe lumineuse
   La classe is-night est posée sur <html> dans ces 23 pages : le fond est sombre
   dès le premier affichage, quel que soit le réglage clair / sombre du visiteur.
   ========================================================================= */
:root.is-night {
  color-scheme: dark;
  --paper: #0B1019;
  --paper-2: #151C29;
  --paper-3: #222A3A;
  --surface: #131A26;
  --surface-sunk: #0F1520;
  --ink: #E9ECF3;
  --ink-soft: #AAB3C5;
  --ink-faint: #8A93A6;
  --verm: #FF7A52;
  --verm-text: #FF9270;
  --verm-soft: rgba(255, 122, 82, .16);
  --warn: #FFC93F;
  --warn-ink: #1A1200;
  --line: rgba(233, 236, 243, .14);
  --line-soft: rgba(233, 236, 243, .08);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 3px 10px rgba(0, 0, 0, .3);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .4), 0 14px 34px -14px rgba(0, 0, 0, .6);
  --shadow-3: 0 30px 60px -28px rgba(0, 0, 0, .8);
}
}
:root.is-night .photo img { filter: brightness(.88) contrast(1.04); }
:root.is-night .banner { background: color-mix(in srgb, var(--warn) 12%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
:root.is-night .cmp tbody.rated tr::after,
:root.is-night .results a:hover,
:root.is-night .start-list a:hover,
:root.is-night .thread:hover,
:root.is-night .next-sheets a:hover {
  box-shadow: 0 12px 24px -16px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(233, 236, 243, .1);
}
:root.is-night .masthead.is-stuck { box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .9); }

/* =========================================================================
   Mouvement, partout sur le site
   Principe : tout reste lisible sans animation ; le mouvement accompagne,
   il ne retient jamais le contenu. Rien ne bouge si l'appareil le demande.
   ========================================================================= */

/* Changement de page en fondu (navigateurs récents ; les autres chargent normalement) */
@view-transition { navigation: auto; }
.masthead { view-transition-name: masthead; }
::view-transition-old(root) { animation: vt-out .22s var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* Barre de lecture : un fil vermillon qui avance avec la page */
@supports (animation-timeline: scroll()) {
  body::after {
    content: "";
    position: fixed;
    z-index: 60;
    left: 0; top: 0;
    width: 100%; height: 2px;
    background: var(--verm);
    transform-origin: 0 50%;
    transform: scaleX(0);
    animation: read-progress linear both;
    animation-timeline: scroll(root);
    pointer-events: none;
  }
  @keyframes read-progress { to { transform: scaleX(1); } }
}

/* Arrivée de l'en-tête de page : titre, chapeau, puis le reste, en cascade */
.page-head__grid > div > *, .sheet-head__title > *, .hero__grid > div > *, .sheet-head__verdict > * {
  animation: head-rise .7s var(--ease-out) both;
}
.page-head__grid > div > :nth-child(2), .sheet-head__title > :nth-child(2), .hero__grid > div > :nth-child(2), .sheet-head__verdict > :nth-child(1) { animation-delay: .08s; }
.page-head__grid > div > :nth-child(3), .sheet-head__title > :nth-child(3), .hero__grid > div > :nth-child(3), .sheet-head__verdict > :nth-child(2) { animation-delay: .16s; }
.page-head__grid > div > :nth-child(n+4), .sheet-head__title > :nth-child(n+4), .hero__grid > div > :nth-child(n+4) { animation-delay: .24s; }
.page-head__grid > figure, .hero__grid > figure { animation: head-media .9s var(--ease-out) .12s both; }
@keyframes head-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes head-media { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }

/* Photos : légère respiration au survol */
.photo img { transition: transform .9s var(--ease-out), filter .4s var(--ease-out); }
@media (hover: hover) { .photo:hover img { transform: scale(1.035); } }

/* Boutons : ils se soulèvent au survol, s'enfoncent à l'appui */
@media (hover: hover) {
  .btn { transition: background .2s var(--ease-out), color .2s var(--ease-out), transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
  .btn:not(:disabled):hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
}

/* Liens du texte : le soulignement s'épaissit et se rapproche */
main p a, main li a:not([class]) { text-underline-offset: .22em; text-decoration-thickness: 1px; transition: text-decoration-thickness .2s var(--ease-out), text-underline-offset .2s var(--ease-out), color .2s var(--ease-out); }
@media (hover: hover) { main p a:hover, main li a:not([class]):hover { text-decoration-thickness: 2px; text-underline-offset: .14em; } }

/* Cartes et encadrés : relief au survol */
@media (hover: hover) {
  .callout, .community, .rules-card, .testi {
    transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
  }
  .callout:hover, .community:hover, .rules-card:hover, .testi:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
}

/* Explications des notes : le texte glisse en place à l'ouverture */
.scoreboard details[open] .sb-explain { animation: explain-in .35s var(--ease-out) both; }
@keyframes explain-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Tags : ils réagissent au pointeur */
.tag { transition: border-color .2s var(--ease-out), color .2s var(--ease-out), transform .2s var(--ease-out); }
@media (hover: hover) { a.tag:hover { transform: translateY(-1px); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  body::after { display: none; }
  .page-head__grid > div > *, .sheet-head__title > *, .hero__grid > div > *, .sheet-head__verdict > *,
  .page-head__grid > figure, .hero__grid > figure, .scoreboard details[open] .sb-explain { animation: none; }
  .photo:hover img, .btn:hover, .callout:hover, .community:hover, .rules-card:hover, .testi:hover, a.tag:hover { transform: none; }
}

/* ---------- Fiches : raccourci « précédente / suivante » en bas de l'en-tête ----------
   Les pilules arrivent de leur côté (la précédente par la gauche, la suivante par la
   droite), le remplissage et la flèche partent dans le sens du lien, l'appui répond
   tout de suite. Des transitions plutôt que des animations : un survol interrompu
   repart de l'état affiché, sans saut. */
.sheet-jump {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-column: 1 / -1;
  align-items: center;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.sheet-jump__link {
  --dir: 1;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  min-height: 56px;
  padding: 8px 20px 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .25s var(--ease-out);
  justify-self: start;
}
.sheet-jump__link--prev { --dir: -1; }
.sheet-jump__link--next { justify-self: end; flex-direction: row-reverse; padding: 8px 10px 8px 20px; text-align: right; }
/* Le remplissage naît du côté de la flèche */
.sheet-jump__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--verm-soft), color-mix(in srgb, var(--verm) 26%, transparent));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s var(--ease-out);
}
.sheet-jump__link--next::before { transform-origin: right center; background: linear-gradient(270deg, var(--verm-soft), color-mix(in srgb, var(--verm) 26%, transparent)); }
.sheet-jump__arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  transition: transform .4s var(--ease-out), background .25s var(--ease-out);
}
.sheet-jump__arrow svg { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.sheet-jump__text { display: grid; min-width: 0; line-height: 1.15; }
.sheet-jump__kind { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); transition: color .25s var(--ease-out); }
.sheet-jump__name {
  font: 850 1.25rem var(--f-display);
  font-stretch: 80%;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform .4s var(--ease-out), color .25s var(--ease-out);
}
.sheet-jump__all {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: .3em;
  padding: 10px 6px;
  transition: color .2s var(--ease-out), text-decoration-color .2s var(--ease-out);
}
@media (hover: hover) {
  .sheet-jump__link:hover { border-color: color-mix(in srgb, var(--verm) 45%, transparent); box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, .08); transform: translateX(calc(var(--dir) * 2px)); }
  .sheet-jump__link:hover::before { transform: scaleX(1); }
  .sheet-jump__link:hover .sheet-jump__arrow { background: var(--verm); color: #fff; }
  /* La flèche indique la direction : elle part devant */
  .sheet-jump__link:hover .sheet-jump__arrow svg { transform: translateX(calc(var(--dir) * 3px)); }
  .sheet-jump__link:hover .sheet-jump__name { color: var(--verm-text); transform: translateX(calc(var(--dir) * 3px)); }
  .sheet-jump__link:hover .sheet-jump__kind { color: var(--ink-soft); }
  .sheet-jump__all:hover { color: var(--ink); text-decoration-color: var(--verm); }
}
/* L'appui répond à l'enfoncement, pas au relâchement */
.sheet-jump__link:active { transform: scale(.97); transition-duration: .1s; }
.sheet-jump__link:active .sheet-jump__arrow { transform: scale(.9); transition-duration: .1s; }
.sheet-jump__link:focus-visible { outline: 3px solid var(--verm); outline-offset: 3px; }
.sheet-jump__link:focus-visible::before { transform: scaleX(1); }
.sheet-jump__all:focus-visible { outline: 3px solid var(--verm); outline-offset: 2px; border-radius: var(--radius-xs); }

/* Arrivée : chaque pilule vient de son côté, après le titre et les notes */
.sheet-jump__link--prev { animation: jump-in-left .7s var(--ease-out) .32s both; }
.sheet-jump__link--next { animation: jump-in-right .7s var(--ease-out) .38s both; }
.sheet-jump__all { animation: head-rise .7s var(--ease-out) .44s both; }
@keyframes jump-in-left { from { opacity: 0; translate: -18px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes jump-in-right { from { opacity: 0; translate: 18px 0; } to { opacity: 1; translate: 0 0; } }

@media (max-width: 700px) {
  .sheet-jump { grid-template-columns: 1fr 1fr; }
  .sheet-jump__all { grid-column: 1 / -1; grid-row: 2; justify-self: center; padding: 4px 6px; }
  .sheet-jump__link { width: 100%; padding: 6px 14px 6px 6px; gap: 10px; min-height: 52px; }
  .sheet-jump__link--next { padding: 6px 6px 6px 14px; }
  .sheet-jump__arrow { width: 34px; height: 34px; }
  .sheet-jump__name { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet-jump__link, .sheet-jump__link--prev, .sheet-jump__link--next, .sheet-jump__all { animation: jump-fade .2s ease both; }
  @keyframes jump-fade { from { opacity: 0; } to { opacity: 1; } }
  .sheet-jump__link::before { transform: none; opacity: 0; transition: opacity .2s ease; }
  .sheet-jump__link:hover::before, .sheet-jump__link:focus-visible::before { transform: none; opacity: 1; }
  .sheet-jump__link:hover, .sheet-jump__link:active,
  .sheet-jump__link:hover .sheet-jump__arrow svg, .sheet-jump__link:hover .sheet-jump__name, .sheet-jump__link:active .sheet-jump__arrow { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .sheet-jump__link { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .sheet-jump__link { background: var(--surface); border-color: var(--ink); }
}

/* ---------- Les peptides : le flacon ---------- */
.ai-note { display: block; margin-top: 4px; font-style: italic; color: var(--ink-faint); }

.flask figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: 12px; max-width: 70ch; }

/* Le flacon, à côté de la phrase de conclusion */
.gap-split { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap); align-items: center; margin-bottom: clamp(32px, 4vw, 48px); }
.gap-split > div { grid-column: 1 / span 7; min-width: 0; }
.gap-split > .flask { grid-column: 8 / span 5; margin: 0; min-width: 0; }
.flask__photo { aspect-ratio: 4 / 3; }
@media (max-width: 900px) { .gap-split > div, .gap-split > .flask { grid-column: 1 / -1; } }

/* Animation au fil de la lecture, pilotée par le défilement lui-même : le flacon
   fait sa mise au point à mesure qu'on s'en approche. Sans prise en charge,
   l'image est simplement là. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Le cadre coupe ce qui déborde : la frise se règle sur la figure, pas sur l'image */
    .flask { view-timeline: --flask block; }
    .flask__photo img {
      animation: flask-focus linear both;
      animation-timeline: --flask;
      animation-range: entry 10% cover 45%;
    }
    .flask figcaption {
      animation: caption-in linear both;
      animation-timeline: --flask;
      animation-range: entry 30% cover 40%;
    }
  }
}
@keyframes flask-focus {
  from { filter: blur(10px) saturate(.6); transform: scale(1.12); }
  to { filter: none; transform: none; }
}
@keyframes caption-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}


/* ---------- Encarts (valeurs : Indépendant, Rigoureux, Honnête…) : cadre fin, fond légèrement relevé ---------- */
.glow-cards {
  --glow-base: 12;          /* teinte de départ : vermillon */
  --glow-spread: 22;        /* glisse vers l'orange en allant à droite */
  --glow-line: color-mix(in srgb, var(--ink) 16%, transparent);
  --glow-bg: color-mix(in srgb, var(--surface) 72%, transparent);
  --glow-fill: .12;
  --glow-light: 62%;
  --glow-border: 2px;
  --glow-spot: 240px;
  --glow-bright: 1.1;      /* sur fond clair, la bordure garde sa couleur */
}
:root[data-theme="dark"] .glow-cards, :root.is-night .glow-cards { --glow-line: hsl(0 0% 60% / .16); --glow-bg: hsl(0 0% 60% / .08); --glow-fill: .1; --glow-light: 70%; --glow-bright: 1.5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .glow-cards { --glow-line: hsl(0 0% 60% / .16); --glow-bg: hsl(0 0% 60% / .08); --glow-fill: .1; --glow-light: 70%; --glow-bright: 1.5; } }

/* Mise en page des deux familles d'encarts */
.pillars.glow-cards { border-top: 0; gap: 18px; }
.pillars.glow-cards > div, .pillars.glow-cards > div + div { padding: 24px 24px 18px; border: var(--glow-border) solid var(--glow-line); }
.principles.glow-cards { display: grid; gap: 14px; }
.principles.glow-cards li, .principles.glow-cards li:last-child { padding: 22px 24px; border: var(--glow-border) solid var(--glow-line); }
@media (max-width: 760px) { .pillars.glow-cards { grid-template-columns: 1fr; } }

/* ---------- Comment on note : deux échelles côte à côte (appli contre Docteur Peptides) ---------- */
.two-scales { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.two-scales__col { border: var(--rule) solid var(--ink); background: var(--surface); padding: 24px; border-radius: 14px; }
.two-scales__col h3 { font-size: 1.4rem; margin: 0; }
.two-scales__col > .small { margin: 4px 0 16px; }
.two-scales__col ul { list-style: none; margin: 0; padding: 0; }
.two-scales__col li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.two-scales__col li b { font-family: var(--f-display); font-stretch: 85%; font-weight: 850; font-size: 1.35rem; }
.two-scales__col--ours { border-color: var(--verm); box-shadow: 0 0 0 1px var(--verm) inset; }
.two-scales__col--ours li:nth-child(2) b, .two-scales__col--ours li:nth-child(2) span { color: var(--verm); font-weight: 800; }
@media (max-width: 700px) { .two-scales { grid-template-columns: 1fr; } }

/* ---------- Comparatif : filtre sur l'ensemble des notes ---------- */
.global-filter { border: var(--rule) solid var(--ink); border-radius: 14px; padding: 18px 20px; margin-bottom: 22px; background: var(--surface); }
.global-filter__head { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 6px 24px; align-items: baseline; }
.global-filter__title { font-family: var(--f-display); font-stretch: 85%; font-weight: 850; font-size: 1.25rem; margin: 0; }
.global-filter__head .small { margin: 0; }
.global-filter__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 14px; }
.seg { display: inline-flex; flex-wrap: wrap; border: var(--rule) solid var(--ink); border-radius: 999px; overflow: hidden; }
.seg button { font: 700 .95rem var(--f-text); color: var(--ink); background: transparent; border: 0; padding: 10px 16px; min-height: 44px; cursor: pointer; transition: background .2s, color .2s; }
.seg button + button { border-left: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--surface); }
@media (hover: hover) { .seg button:not([aria-checked="true"]):hover { background: color-mix(in srgb, var(--ink) 8%, transparent); } }
.seg button:focus-visible { outline: 3px solid var(--verm); outline-offset: -3px; }
.global-filter__check { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; min-height: 44px; cursor: pointer; }
.global-filter__check input { width: 18px; height: 18px; accent-color: var(--verm); }
#gf-sort[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.global-filter__count { margin: 12px 0 0; font-size: .95rem; color: var(--ink-soft); }
.global-filter__count b { color: var(--ink); }
.cmp tbody.rated tr[hidden] { display: none; }
.cmp .row-empty td { padding: 28px 12px; text-align: center; color: var(--ink-soft); }
@media (max-width: 700px) {
  .global-filter__head { grid-template-columns: 1fr; }
  .seg { border-radius: 14px; }
  .seg button { flex: 1 1 30%; }
}

/* ---------- Fiches : autres noms et peptides proches (générés par outils/seo.mjs) ---------- */
.aka { margin: -6px 0 14px; font-size: .9rem; color: var(--ink-soft); }
.aka span { font-weight: 700; color: var(--ink); }
.related { margin-top: 56px; }
.related h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 18px; }
.related__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.related__list a { display: grid; gap: 4px; height: 100%; padding: 18px 20px; border: var(--rule) solid var(--ink); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .22s cubic-bezier(.16, 1, .3, 1), box-shadow .22s; }
.related__list .pep-name { font-size: 1.2rem; }
.related__route { font-size: .82rem; color: var(--ink-soft); }
.related__desc { font-size: .92rem; line-height: 1.45; margin-top: 4px; }
@media (hover: hover) { .related__list a:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(0, 0, 0, .6); } }
.related__list a:focus-visible { outline: 3px solid var(--verm); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .related__list a { transition: none; } .related__list a:hover { transform: none; } }

/* ---------- Fiches : renvoi vers « Réduire les risques » ---------- */
.harm-note { margin: 28px 0; padding: 16px 20px; border-left: 4px solid var(--verm); border-radius: 0 12px 12px 0; background: color-mix(in srgb, var(--verm) 8%, var(--surface)); }
.harm-note p { margin: 0; }

/* ---------- Fiches : questions fréquentes ; comparatif : peptides par usage (générés par outils/seo.mjs) ---------- */
.faq details { border-top: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); }
.faq details:last-of-type { border-bottom: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); }
.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-family: var(--f-display); font-stretch: 85%; font-weight: 800; font-size: 1.1rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; font-weight: 700; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid var(--verm); outline-offset: 2px; }
.faq details p { margin: 0 0 18px; }
.usage-title { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 40px 0 6px; scroll-margin-top: 120px; }
.usage-intro { margin: 0 0 16px; color: var(--ink-soft); max-width: 70ch; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Page « Peptides en France » : noms plus petits dans le tableau */
.src.france .pep-name { font-size: 1.2rem; }

/* ---------- Fiches : l'étude à retenir (générée par outils/etudes.mjs) ---------- */
.key-study { margin: 32px 0 0; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); }
.key-study__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.key-study__top h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); margin: 0; color: var(--verm-text); }
.key-study__name { font-family: var(--f-display); font-stretch: 85%; font-weight: 800; font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.1; margin: 14px 0 18px; }
.key-study__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 28px; margin: 0 0 24px; }
.key-study__facts dt { font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.key-study__facts dd { margin: 2px 0 0; line-height: 1.45; }
.key-study__figs { list-style: none; margin: 0 0 22px; padding: 20px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 20px 40px; }
.key-fig { display: grid; gap: 4px; max-width: 34ch; }
.key-fig__n { font-family: var(--f-display); font-stretch: 80%; font-weight: 850; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1; letter-spacing: -0.02em; color: var(--ink-soft); }
.key-fig.is-main .key-fig__n { color: var(--verm-text); }
.key-fig__l { font-size: .95rem; line-height: 1.4; color: var(--ink-soft); }
.key-fig.is-main .key-fig__l { color: var(--ink); }
/* Deux valeurs comparables : une barre chacune, à la même échelle */
.key-study--bars .key-study__figs { display: grid; gap: 18px; }
.key-study--bars .key-fig { max-width: none; grid-template-columns: minmax(6.5ch, auto) 1fr; column-gap: 18px; align-items: center; }
.key-study--bars .key-fig__n { grid-row: span 2; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.key-fig__bar { display: block; height: 10px; border-radius: var(--pill); background: var(--line-soft); overflow: hidden; }
.key-fig__bar i { display: block; height: 100%; width: calc(var(--w) * 100%); min-width: 6px; border-radius: inherit; background: var(--ink-faint); transform-origin: left center; }
.key-fig.is-main .key-fig__bar i { background: var(--verm); }
.key-study.is-in .key-fig__bar i { animation: bar-grow .9s var(--ease-out) both; }
.key-study.is-in .key-fig + .key-fig .key-fig__bar i { animation-delay: .14s; }
@keyframes bar-grow { from { transform: scaleX(0); } to { transform: none; } }
.key-study__say { margin: 0; max-width: 72ch; }
.key-study__src { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-soft); }
.key-study--none .key-study__say { margin-top: 14px; }
@media (max-width: 560px) {
  .key-study--bars .key-fig { grid-template-columns: 1fr; }
  .key-study--bars .key-fig__n { grid-row: auto; }
}

/* Signature de la fiche (outils/seo.mjs) : le nom ne se coupe pas */
.byline { white-space: nowrap; }

/* Index des 32 fiches en pied de page (outils/seo.mjs) */
.footer__index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px var(--col-gap); margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.footer__index h3 { font-size: .95rem; margin-bottom: 8px; }
.footer__index ul { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.footer__index li { padding: 2px 0; font-size: .9rem; }
@media (max-width: 760px) { .footer__index { grid-template-columns: 1fr; } }

/* ---------- L'orbe ---------- */
.orb { position: relative; pointer-events: none; opacity: 0; transform: scale(.92); transition: opacity 1.2s var(--ease-out), transform 1.4s var(--ease-out), filter .5s var(--ease-out); }
.orb.is-ready { opacity: 1; transform: none; }
.orb canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Quand la voix est captée, l'orbe s'éclaire */
.orb.is-hearing { filter: brightness(1.18) saturate(1.1); }

/* Fiches : en fond d'en-tête, derrière le verdict */
.sheet-head { position: relative; isolation: isolate; overflow: hidden; }
.orb--backdrop {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: max(-180px, calc((100vw - var(--max)) / 2 - 180px));
  width: min(760px, 70vw);
  aspect-ratio: 1;
  translate: 0 -50%;
}
.orb--backdrop.is-ready { opacity: .78; }
.orb--backdrop.is-listening { opacity: .9; }
@media (max-width: 900px) {
  .orb--backdrop { top: 0; right: -30vw; width: 95vw; translate: 0 -20%; }
  .orb--backdrop.is-ready { opacity: .42; }
}

/* Forum : l'orbe tient la place de la photo */
.orb-figure { display: grid; place-items: center; margin: 0; }
.orb--stage { width: 100%; max-width: 420px; aspect-ratio: 1; }
@media (max-width: 900px) { .orb--stage { max-width: 280px; } }

/* Bouton « Orbe à la voix » : même forme que la bascule de thème qu'il remplace */
.orb-toggle { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: var(--pill); padding: 3px 10px; font: 600 .72rem var(--f-text); color: var(--ink-soft); background: var(--surface); transition: color .18s var(--ease-out), background .18s var(--ease-out), border-color .18s var(--ease-out), transform .12s var(--ease-out); }
.orb-toggle svg { width: 13px; height: 13px; }
@media (hover: hover) { .orb-toggle:hover { color: var(--ink); background: var(--paper-2); } }
.orb-toggle:active { transform: scale(.96); }
.orb-toggle:focus-visible { outline: 2px solid var(--verm); outline-offset: 2px; }
.orb-toggle.is-on { color: var(--ink); border-color: rgba(150, 120, 255, .6); box-shadow: 0 0 0 3px rgba(150, 120, 255, .16); }
.orb-toggle.is-on svg { animation: mic-pulse 1.6s ease-in-out infinite; }
@keyframes mic-pulse { 50% { opacity: .45; } }

@media (prefers-reduced-motion: reduce) {
  .orb { transition: opacity .3s linear; transform: none; }
  .orb-toggle.is-on svg { animation: none; }
}

/* =========================================================================
   Polissage (passe « unslop » de novembre 2026, d'après unslop par Damir
   Sokolovsky, @heydamir, CC BY 4.0). Banc d'essai imprimé : la hiérarchie
   vient de la taille et de la couleur, plus de la graisse ; un seul tampon
   vermillon reste en capitales ; le mouvement explique, il ne décore pas.
   ========================================================================= */

/* Type : graisses ramenées à 600-700, plus de 850-900 */
h1, h2, .display { font-weight: 650; }
h3 { font-weight: 600; }
.brand__name { font-weight: 750; }
.pep-name, .five-strip b, .two-scales__col li b, .global-filter__title, .palette__name { font-weight: 650; }
.hero__facts b, .score-num, .mini-scores dd, .key-fig__n, .floor__out b, .builder__n b, .analogy b { font-weight: 650; font-variant-numeric: tabular-nums; }
.quote-band blockquote, .aside-quote { font-weight: 600; }

/* Petits intitulés : casse normale, sans espacement élargi */
.cat-group, .cmp thead th, .cmp .group-row th, .footer h3, .sheet-jump__kind, .tofill::before {
  text-transform: none;
  letter-spacing: 0;
}
.footer h3 { font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.cat-group, .sheet-jump__kind { font-weight: 600; }

/* Encarts : cadre fin, plus de bordure épaisse ni de halo */
.pillars.glow-cards > div, .pillars.glow-cards > div + div,
.principles.glow-cards li, .principles.glow-cards li:last-child {
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  background: var(--surface);
  border-radius: 12px;
  transition: background-color .16s var(--ease-out);
}
@media (hover: hover) {
  .pillars.glow-cards > div:hover, .principles.glow-cards li:hover { background: color-mix(in srgb, var(--ink) 3%, var(--surface)); }
}

/* Mouvement : une entrée courte, pas de flou, pas de zoom */
@keyframes stamp-press { from { opacity: 0; transform: rotate(var(--rot)) scale(1.04); } to { opacity: 1; transform: rotate(var(--rot)); } }
@keyframes disc-press { from { opacity: 0; } to { opacity: 1; } }
@keyframes flask-focus { from { opacity: .6; } to { opacity: 1; } }
@keyframes head-media { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.brand__mark { transition: none; }
@media (hover: hover) {
  .brand:hover .brand__mark { transform: none; }
  .photo:hover img { transform: none; }
}
.brand:active .brand__mark { transform: none; }
.page-head__grid > div > *, .sheet-head__title > *, .hero__grid > div > *, .sheet-head__verdict > * { animation-duration: .45s; }
.page-head__grid > figure, .hero__grid > figure { animation-duration: .5s; }

/* La lettre d'arrivée affiche tout de suite le titre et l'image (meilleur LCP) : seul le mouvement reste */
@keyframes head-rise { from { transform: translateY(16px); } to { transform: none; } }
@keyframes head-media { from { transform: translateY(8px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .page-head__grid > div > *, .sheet-head__title > *, .hero__grid > div > *, .sheet-head__verdict > *, .page-head__grid > figure, .hero__grid > figure { animation: none; }
}
/* Comparatif sur mobile : la phrase de verdict reprend toute la largeur de la carte */
@media (max-width: 860px) { .cmp .verdict { width: auto; } }
/* Pied de page : intitulés des familles (paragraphes, pas des titres) */
.footer__title { font-size: .95rem; font-weight: 600; margin: 0 0 8px; color: var(--ink-soft); }

/* ---------- Fiches : mise en garde sous le titre, bloc « En bref » (générés par outils/seo.mjs) ---------- */
.sheet-warn { margin: 14px 0 20px; padding: 10px 14px; border-left: 3px solid var(--verm); background: color-mix(in srgb, var(--verm) 8%, transparent); border-radius: var(--radius-xs); font-size: .95rem; line-height: 1.45; max-width: 60ch; }
.bref { width: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.bref .bref__titre { font-family: var(--f-display); font-stretch: 85%; font-weight: 800; font-size: 1.1rem; line-height: 1.2; margin: 0 0 10px; }
.bref dl { display: grid; gap: 8px; margin: 0; }
.bref dl > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px; }
.bref dt { font-weight: 700; }
.bref dd { margin: 0; color: var(--ink-soft); }
.bref .bref__note { margin: 12px 0 0; font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 480px) { .bref dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.scoreboard .sb-explain .sb-jump { display: inline-flex; color: var(--verm-text); text-decoration: underline; text-underline-offset: 3px; }
.key-study__facts .dose-note { display: block; margin-top: 4px; font-size: .85rem; font-weight: 400; color: var(--ink-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cmp-query { margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
/* 320 px : la barre d'en-tête tient sans défilement horizontal (WCAG 1.4.10) */
@media (max-width: 360px) {
  .masthead__bar { gap: 6px; }
  .brand { min-width: 0; gap: 6px; }
  .brand__name { font-size: 1rem; }
  .brand__mark { width: 28px; height: 28px; }
  .pep-search-trigger { padding: 0 7px; margin-right: 0; }
  .nav-toggle { padding: 8px; }
}

/* Forum : les 32 sujets « retours d'expérience », plus serrés que les catégories */
.forum-fils { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.forum-fils .pep-name { font-size: 1.1rem; }

/* Tableaux à 4 colonnes (pages perte de poids, musculation) : empilés sur téléphone */
@media (max-width: 640px) {
  .src--pile thead { display: none; }
  .src--pile tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .src--pile th, .src--pile td { display: block; border: 0; padding: 4px 0; }
  .src--pile td::before { content: attr(data-label); display: block; font-family: var(--f-display); font-stretch: 85%; font-weight: 800; font-size: .85rem; margin-bottom: 2px; }
}

/* ---------- Page Journal : pastilles de filtre, couleurs par type, liens animés ---------- */
:root { --ease-spring: cubic-bezier(.34, 1.56, .64, 1); }
/* Même code couleur que le reste du site : encre pour l'information, vermillon pour ce qui alerte ou change une note */
.journal__item { --jc: var(--ink); }
.journal__item--alerte, .journal__item--note, .journal__item--correction { --jc: var(--verm); }
.journal__item--site { --jc: var(--ink-faint); }
.journal__item::before { border-color: var(--jc); }
.journal__item--alerte::before { background: var(--verm); }
.flag--alerte { background: var(--verm-text); }
.flag--page { background: var(--ink); }

.journal-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.jchip { --jc: var(--ink); display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface); color: var(--ink-soft); font: 600 .9rem var(--f-text); cursor: pointer; transition: background .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out), transform .35s var(--ease-spring); }
.jchip--alerte, .jchip--note, .jchip--correction { --jc: var(--verm); }
.jchip--site { --jc: var(--ink-faint); }
.jchip__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--jc); flex: none; transition: transform .35s var(--ease-spring); }
.jchip__n { font-variant-numeric: tabular-nums; font-size: .8rem; color: var(--ink-faint); }
@media (hover: hover) { .jchip:hover { border-color: var(--jc); color: var(--ink); } .jchip:hover .jchip__dot { transform: scale(1.35); } }
.jchip:active { transform: scale(.96); transition-duration: .1s; }
.jchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.jchip[aria-pressed="true"] .jchip__n { color: inherit; opacity: .75; }
.jchip[aria-pressed="true"] .jchip__dot { box-shadow: 0 0 0 2px var(--paper); }

/* Liens du journal : soulignement vermillon qui se trace, flèche qui avance en ressort */
.journal__source { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.jlink { font-weight: 700; text-decoration: none; color: var(--ink); transition: color .2s var(--ease-out); }
.jlink span { background: linear-gradient(var(--verm), var(--verm)) left bottom / 0 2px no-repeat; padding-bottom: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size .45s var(--ease-out); }
.jlink svg { display: inline-block; width: 14px; height: 14px; margin-left: 6px; vertical-align: -1px; color: var(--verm-text); transition: transform .45s var(--ease-spring); }
.jlink--page { color: var(--verm-text); }
.jlink--page span { background-image: linear-gradient(var(--verm), var(--verm)), linear-gradient(var(--line), var(--line)); background-size: 0 2px, 100% 2px; background-position: left bottom, left bottom; background-repeat: no-repeat; }
@media (hover: hover) {
  .jlink:hover { color: var(--verm-text); }
  .jlink:hover span { background-size: 100% 2px; }
  .jlink--page:hover span { background-size: 100% 2px, 100% 2px; }
  .jlink:hover svg { transform: translateX(4px); }
}
.jlink:focus-visible svg { transform: translateX(4px); }
.journal__peps .tag { transition: border-color .2s var(--ease-out), color .2s var(--ease-out), transform .35s var(--ease-spring); }

/* Entrées : elles arrivent en cascade, le point de la frise se tamponne */
.journal__item.is-in, .journal__item.is-new { animation: res-in .5s var(--ease-out) both; animation-delay: calc(min(var(--i, 0), 6) * 60ms); }
.journal__item.is-in::before, .journal__item.is-new::before { animation: jdot-in .5s var(--ease-spring) both; animation-delay: calc(min(var(--i, 0), 6) * 60ms + 80ms); }
@keyframes jdot-in { from { transform: scale(0); } to { transform: none; } }

/* Encart de la page Comparatif vers le Journal */
.journal-teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; border-top: var(--rule) solid var(--ink); padding-top: 22px; }
.journal-teaser p { margin: 0; max-width: 60ch; }

@media (prefers-reduced-motion: reduce) {
  .jchip, .jchip__dot, .jlink svg, .journal__peps .tag { transition-property: background, color, border-color, background-size !important; }
  .jchip:active, .jlink:hover svg, .jlink:focus-visible svg, .jchip:hover .jchip__dot { transform: none !important; }
  .journal__item.is-in, .journal__item.is-new { animation: res-fade .2s ease both !important; }
  .journal__item.is-in::before, .journal__item.is-new::before { animation: none !important; }
}

/* Journal : les trois colonnes « En ce moment » */
.journal-une { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.journal-une__col { --jc: var(--ink); border-top: var(--rule-heavy, 4px) solid var(--jc); padding-top: 16px; }
.journal-une__col--alerte { --jc: var(--verm); }
.journal-une__kicker { margin: 0 0 12px; }
.journal-une ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.journal-une .jlink { line-height: 1.4; }
@media (max-width: 860px) { .journal-une { grid-template-columns: 1fr; gap: 28px; } }

/* Huit entrées dans le menu : entre 1320 et 1440 px, on resserre un peu pour tenir sur une ligne */
@media (min-width: 1320px) and (max-width: 1459px) {
  .nav { gap: 2px; }
  .nav a { padding-inline: 6px; font-size: .86rem; }
  .nav .nav__account { padding-inline: 10px; }
}

/* ---------- Articles et Observatoire ---------- */
.kicker { font: 800 .85rem var(--f-display); font-stretch: 85%; text-transform: uppercase; letter-spacing: .06em; color: var(--verm-text); margin: 0 0 12px; }
.article-meta { font-size: .9rem; color: var(--ink-soft); margin: 18px 0 0; }
.checklist { margin: 0; padding-left: 1.4em; }
.checklist li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.obs-figs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--rule) solid var(--ink); }
.obs-figs li { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--ink); }
.obs-figs li:not(:nth-child(3n + 1)) { border-left: 1px solid var(--ink); padding-left: 18px; }
.obs-figs__n { display: block; font-family: var(--f-display); font-stretch: 75%; font-weight: 900; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1; margin-bottom: 8px; color: var(--verm-text); }
.obs-figs__l { font-size: .95rem; color: var(--ink-soft); }
@media (max-width: 760px) {
  .obs-figs { grid-template-columns: 1fr; }
  .obs-figs li:not(:nth-child(3n + 1)) { border-left: 0; padding-left: 0; }
}
.obs-bar { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 140px; }
.obs-bar__fill { display: block; height: 14px; max-width: 75%; min-width: 3px; background-color: var(--verm); flex: none; }
.obs-bar__n { font: 800 1rem var(--f-display); }
.obs-dist th[scope="row"] { font-family: var(--f-display); font-weight: 900; white-space: nowrap; }
.obs-notes { margin-top: clamp(24px, 3vw, 36px); max-width: 72ch; }
.obs-notes p { margin: 0 0 14px; }
.cite-box { font-family: var(--f-display); background: var(--paper-2); border-left: var(--rule-heavy) solid var(--verm); padding: 16px 18px; overflow-wrap: anywhere; }
.section--tint .cite-box { background: var(--paper); }
@media (forced-colors: active) { .obs-bar__fill { forced-color-adjust: none; background-color: CanvasText; } }
