/* Les Jo de mots — mise en page : colonne de 1280px, cartouches légèrement inclinés comme ceux du logo,
   une couleur par section (mots, expressions, jeux, curiosités, détente, lettres). */
:root {
  --bg: #FBF8F3;
  --surface: #FFFFFF;
  --soft: #F6EFE5;
  --soft2: #F3ECE1;
  --ink: #16282D;
  --ink2: #2A3A3F;
  --muted: #4F5D61;
  --line: #EFE6D8;
  --line2: #E6DCCD;
  --line3: #D9CDBB;
  --primary: #0F424E;
  --primary-hover: #0A2E37;
  --on-primary: #F6EFE5;
  --terra: #A83928;
  --on-terra: #F6EFE5;
  --mark: #F7EBCF;
  --mark-ink: #16282D;
  --feature: #0F424E;
  --feature-2: #A83928;
  --on-feature: #F6EFE5;
  --shadow: rgba(22, 40, 45, .42);
  --scrim: rgba(22, 40, 45, .30);
  --mots: #0F424E; --mots-bg: #E3EEEF;
  --expr: #A83928; --expr-bg: #F8E6E0;
  --jeux: #8A5A00; --jeux-bg: #F7EBCF;
  --curio: #6E3D5E; --curio-bg: #F2E6EE;
  --detente: #3F5E39; --detente-bg: #E7EFE3;
  --lettres: #245678; --lettres-bg: #E4EEF6;
  --on-sec: #F6EFE5;
  --logo-j: #A83928; --logo-o: #0F424E; --logo-letter: #F6EFE5; --logo-text: #0F424E;
  --paper: #FFFDF8;
  --paper-line: #EADFCB;

  --f-display: 'Roboto Serif', Georgia, 'Times New Roman', serif;
  --f-ui: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --narrow: 72%;
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 24px;
  --wrap: 1280px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1A1D; --surface: #16252A; --soft: #1B2C31; --soft2: #22353A;
    --ink: #EEE7DC; --ink2: #D7CFC3; --muted: #A3AEB0;
    --line: #24363B; --line2: #2E4247; --line3: #3D5258;
    --primary: #8EC5CF; --primary-hover: #B0DAE2; --on-primary: #0C1A1D;
    --terra: #EC8E7B; --on-terra: #1C0E0B;
    --mark: #5E4815; --mark-ink: #FFF3D6;
    --feature: #1C4E5A; --feature-2: #8A3426; --on-feature: #F6EFE5;
    --shadow: rgba(0, 0, 0, .65); --scrim: rgba(0, 0, 0, .55);
    --mots: #8EC5CF; --mots-bg: #15313A;
    --expr: #EC8E7B; --expr-bg: #3A211B;
    --jeux: #E3B862; --jeux-bg: #33290F;
    --curio: #D7A2C4; --curio-bg: #30202B;
    --detente: #A5CB99; --detente-bg: #1E2E1C;
    --lettres: #93BDE0; --lettres-bg: #182C3B;
    --on-sec: #0F1A1D;
    --logo-j: #C4503C; --logo-o: #1F6574; --logo-letter: #F6EFE5; --logo-text: #E9E2D6;
    --paper: #18272B; --paper-line: #2E4247;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1A1D; --surface: #16252A; --soft: #1B2C31; --soft2: #22353A;
  --ink: #EEE7DC; --ink2: #D7CFC3; --muted: #A3AEB0;
  --line: #24363B; --line2: #2E4247; --line3: #3D5258;
  --primary: #8EC5CF; --primary-hover: #B0DAE2; --on-primary: #0C1A1D;
  --terra: #EC8E7B; --on-terra: #1C0E0B;
  --mark: #5E4815; --mark-ink: #FFF3D6;
  --feature: #1C4E5A; --feature-2: #8A3426; --on-feature: #F6EFE5;
  --shadow: rgba(0, 0, 0, .65); --scrim: rgba(0, 0, 0, .55);
  --mots: #8EC5CF; --mots-bg: #15313A;
  --expr: #EC8E7B; --expr-bg: #3A211B;
  --jeux: #E3B862; --jeux-bg: #33290F;
  --curio: #D7A2C4; --curio-bg: #30202B;
  --detente: #A5CB99; --detente-bg: #1E2E1C;
  --lettres: #93BDE0; --lettres-bg: #182C3B;
  --on-sec: #0F1A1D;
  --logo-j: #C4503C; --logo-o: #1F6574; --logo-letter: #F6EFE5; --logo-text: #E9E2D6;
  --paper: #18272B; --paper-line: #2E4247;
  color-scheme: dark;
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
img { max-width: 100%; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-ui); font-size: 16px; line-height: 1.5;
  overflow-x: hidden;
}
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
button { font: inherit; color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.ic-terra { stroke: var(--terra); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; border-radius: 4px; }
mark { background: var(--mark); color: var(--mark-ink); border-radius: 3px; padding: 0 1px; }
h1, h2, h3 { text-wrap: balance; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
@media (min-width: 760px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.display { font-family: var(--f-display); font-stretch: var(--narrow); font-weight: 800; letter-spacing: -0.005em; }
.serif { font-family: var(--f-display); }
.muted { color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* couleurs de section : chaque bloc fixe --c / --cb */
.sec-mots { --c: var(--mots); --cb: var(--mots-bg); }
.sec-expr { --c: var(--expr); --cb: var(--expr-bg); }
.sec-jeux { --c: var(--jeux); --cb: var(--jeux-bg); }
.sec-curio { --c: var(--curio); --cb: var(--curio-bg); }
.sec-detente { --c: var(--detente); --cb: var(--detente-bg); }
.sec-lettres { --c: var(--lettres); --cb: var(--lettres-bg); }

/* cartouche incliné */
.tag { display: inline-flex; align-items: center; gap: 6px; background: var(--c, var(--primary)); color: var(--on-sec); border-radius: 6px; padding: 3px 10px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; transform: rotate(-2deg); white-space: nowrap; text-decoration: none; }
a.tag:hover { color: var(--on-sec); filter: brightness(1.08); }
.tag-soft { background: var(--cb, var(--soft)); color: var(--c, var(--ink)); transform: none; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; }
a.tag-soft:hover { color: var(--c, var(--ink)); }
.dot { width: 10px; height: 12px; border-radius: 3px; background: var(--c, var(--primary)); transform: rotate(-8deg); flex: 0 0 auto; display: inline-block; }
.cart { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-family: var(--f-display); font-stretch: 75%; font-weight: 800; color: var(--on-sec); }

/* boutons */
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; border: 1px solid transparent; background: none; white-space: nowrap; }
.pill-ghost { border-color: var(--line3); color: var(--ink); background: var(--surface); }
.pill-ghost:hover { border-color: var(--ink); color: var(--ink); }
.pill-solid { background: var(--primary); color: var(--on-primary); }
.pill-solid:hover { color: var(--on-primary); background: var(--primary-hover); }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line3); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn-solid { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-solid:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-sec { border-color: var(--c); background: var(--cb); color: var(--c); }
.btn-sec:hover { color: var(--c); border-color: var(--c); filter: brightness(.97); }
.linkarrow { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; text-decoration: none; color: var(--c, var(--primary)); }
.linkarrow:hover { color: var(--c, var(--primary-hover)); text-decoration: underline; text-underline-offset: 3px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line2); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 12px; min-height: 34px; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--c, var(--primary)); border-color: var(--c, var(--primary)); color: var(--on-sec); }
.chip .n { opacity: .7; font-size: 12px; font-variant-numeric: tabular-nums; }
.pepper { width: 16px; height: 16px; stroke: var(--terra); }
@media (max-width: 759px) { .hide-sm { display: none !important; } }
@media (min-width: 760px) { .only-sm { display: none !important; } }

/* ------------------------------------------------------------ en-tête */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.hd-wrap { max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gutter-r) 0 var(--gutter-l); }
@media (min-width: 760px) { .hd-wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.hd-top { display: flex; align-items: center; gap: 12px 24px; padding-bottom: 8px; }
.logo { flex: 0 0 auto; display: block; line-height: 0; }
.logo-svg { height: 52px; width: auto; display: block; }
@media (max-width: 759px) { .logo-svg { height: 40px; } }
.hd-search { flex: 1 1 360px; max-width: 560px; min-width: 0; }
.hd-tagline { flex: 1 1 260px; font-family: var(--f-display); font-style: italic; font-size: 17px; color: var(--muted); }
.hd-actions { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.burger, .hd-icon-only-sm { display: none; }
.hd-nav { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; padding-bottom: 8px; margin-left: -8px; }
.nav-btn { display: inline-flex; gap: 8px; align-items: center; border: none; background: transparent; color: var(--ink); border-radius: 10px; padding: 0 12px; min-height: 42px; font-weight: 600; font-size: 15px; cursor: pointer; }
.nav-btn:hover, .nav-btn[aria-expanded="true"], .nav-btn.on { background: var(--cb); color: var(--c); }
.nav-btn .chev { width: 14px; height: 14px; transition: transform .15s; }
.nav-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-az { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; min-height: 42px; padding: 0 8px; font-weight: 700; font-size: 14px; text-decoration: none; }
@media (max-width: 1079px) {
  .hd-tagline { display: none; }
}
@media (max-width: 899px) {
  .hd-nav { display: none; }
  .burger, .hd-icon-only-sm { display: inline-flex; padding: 0 12px; }
  .hd-search { display: none; }
  .hd-top { padding-bottom: 10px; }
}

/* sous-menu (méga-menu) */
.mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 31; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px -30px var(--shadow); }
.mega-in { max-width: var(--wrap); margin: 0 auto; padding: 24px max(32px, env(safe-area-inset-right, 0px)) 28px max(32px, env(safe-area-inset-left, 0px)); display: flex; flex-wrap: wrap; gap: 24px 36px; }
.mega-intro { flex: 1 1 220px; min-width: 0; }
.mega-intro .cart { width: 58px; height: 66px; font-size: 38px; background: var(--c); transform: rotate(-4deg); }
.mega-intro h2 { margin: 14px 0 6px; font-size: 30px; line-height: 1.05; color: var(--c); }
.mega-intro p { margin: 0 0 12px; font-family: var(--f-display); font-style: italic; font-size: 15px; line-height: 1.45; color: var(--ink2); }
.mega-subs { flex: 999 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 14px; align-content: start; }
.mega-sub { display: block; padding: 9px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.mega-sub:hover, .mega-sub:focus-visible { background: var(--cb); color: var(--ink); }
.mega-sub b { display: flex; gap: 8px; align-items: baseline; font-family: var(--f-display); font-stretch: 85%; font-weight: 700; font-size: 18px; line-height: 1.2; }
.mega-sub b .n { font-family: var(--f-ui); font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.mega-sub span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.mega-une { flex: 1 1 260px; min-width: 0; background: var(--cb); border-radius: 18px; padding: 20px 22px; }
.mega-une h3 { margin: 12px 0 6px; font-size: 26px; line-height: 1.05; }
.mega-une p { margin: 0 0 10px; font-family: var(--f-display); font-size: 15px; line-height: 1.5; color: var(--ink2); }
.scrim { position: fixed; inset: 0; z-index: 25; background: var(--scrim); }

/* tiroir mobile */
.drawer { position: fixed; z-index: 60; top: 0; bottom: 0; right: 0; width: min(420px, 92vw); background: var(--surface); overflow-y: auto; padding: calc(16px + env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) 18px; box-shadow: -20px 0 50px -20px var(--shadow); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.acc { border-top: 1px solid var(--line); }
.acc > button { width: 100%; display: flex; gap: 10px; align-items: center; justify-content: space-between; border: none; background: none; padding: 14px 4px; min-height: 52px; font-family: var(--f-display); font-stretch: 80%; font-weight: 800; font-size: 22px; color: var(--c); cursor: pointer; text-align: left; }
.acc > button .chev { width: 18px; height: 18px; transition: transform .15s; }
.acc > button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.acc-list { padding: 0 0 12px 4px; display: grid; gap: 2px; }
.acc-list a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--cb); font-weight: 600; }
.acc-list a .n { color: var(--muted); font-weight: 500; font-size: 13px; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ recherche globale (autocomplétion) */
.gs { position: relative; }
.gs-bar { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 2px solid var(--line3); border-radius: 14px; padding: 0 8px 0 14px; height: 48px; }
.gs-bar:focus-within { border-color: var(--primary); }
.gs-bar svg { width: 20px; height: 20px; stroke: var(--primary); }
.gs-bar input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-family: var(--f-ui); font-size: 16px; color: var(--ink); height: 100%; }
.gs-bar input::placeholder { color: var(--muted); opacity: .9; }
.gs-bar input::-webkit-search-cancel-button { display: none; }
.gs-clear { flex: 0 0 auto; width: 34px; height: 34px; border: none; border-radius: 10px; background: var(--soft2); color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gs-hero .gs-bar { height: 64px; border-radius: 18px; padding: 0 10px 0 20px; border-color: var(--primary); box-shadow: 0 18px 36px -24px var(--shadow); }
.gs-hero .gs-bar input { font-size: 19px; }
.gs-hero .gs-bar svg { width: 24px; height: 24px; }
.gs-panel { position: absolute; top: 100%; left: 0; z-index: 41; margin-top: 8px; width: min(820px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 28px 56px -20px var(--shadow); overflow: hidden; }
.gs-hero .gs-panel { width: 100%; }
.gs-scopes { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); align-items: center; }
.gs-scopes .chip { min-height: 30px; padding: 3px 11px; font-size: 13px; font-weight: 600; }
.gs-body { display: flex; }
.gs-list { flex: 1 1 340px; min-width: 0; padding: 8px; max-height: min(460px, 60vh); overflow-y: auto; }
.gs-item { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; border: none; background: none; border-radius: 10px; padding: 9px 10px; cursor: pointer; text-decoration: none; color: var(--ink); }
.gs-item[aria-selected="true"], .gs-item:hover { background: var(--soft); color: var(--ink); }
.gs-item .dot { margin-top: 7px; }
.gs-item .t { display: block; font-family: var(--f-display); font-stretch: 85%; font-weight: 600; font-size: 18px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gs-item .s { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-item .s b { color: var(--c); font-weight: 700; }
.gs-item .body { flex: 1; min-width: 0; }
.gs-head { display: flex; justify-content: space-between; padding: 8px 8px 4px; }
.gs-sugg { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 8px 10px; }
.gs-filter { border: 1px solid var(--line3); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 6px 12px; min-height: 36px; font-size: 14px; cursor: pointer; text-align: left; }
.gs-filter:hover { border-color: var(--ink); }
.gs-filter small { color: var(--muted); font-size: 12px; }
.gs-short { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 15px; }
.gs-short:hover { background: var(--soft); color: var(--ink); }
.gs-prev { flex: 0 0 290px; background: var(--bg); border-left: 1px solid var(--line); padding: 18px 20px; max-height: min(460px, 60vh); overflow-y: auto; }
.gs-prev h3 { margin: 10px 0 0; font-size: 28px; line-height: 1.05; }
.gs-prev p { margin: 10px 0 0; font-family: var(--f-display); font-size: 15px; line-height: 1.55; color: var(--ink2); }
.gs-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 14px; border-top: 1px solid var(--line); }
.gs-foot button { border: none; background: none; padding: 6px 0; min-height: 36px; color: var(--primary); font-weight: 700; font-size: 15px; cursor: pointer; }
.gs-none { margin: 0; padding: 18px 12px; color: var(--muted); font-size: 15px; }
@media (max-width: 899px) { .gs-prev { display: none; } .gs-keys { display: none; } }
.search-overlay { position: fixed; inset: 0; z-index: 70; background: var(--bg); padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gutter-r) env(safe-area-inset-bottom, 0px) var(--gutter-l); overflow-y: auto; }
.search-overlay .so-head { display: flex; gap: 10px; align-items: center; }
.search-overlay .gs { flex: 1; min-width: 0; }
.search-overlay .gs-panel { position: static; width: 100%; margin-top: 10px; box-shadow: none; }
.search-overlay .gs-list { max-height: none; }

/* ------------------------------------------------------------ accueil */
.hero { position: relative; background: var(--soft); z-index: 3; }
.hero-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-deco::before, .hero-deco::after { content: ""; position: absolute; border-radius: 24px; opacity: .07; pointer-events: none; }
.hero-deco::before { top: -40px; right: 6%; width: 180px; height: 210px; background: var(--primary); transform: rotate(12deg); }
.hero-deco::after { bottom: -60px; left: -40px; width: 220px; height: 240px; background: var(--terra); transform: rotate(-10deg); }
.hero-in { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 40px 48px; align-items: center; padding-block: 56px 64px; }
.hero-text { flex: 999 1 540px; min-width: 0; }
.hero-badge { display: inline-flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line2); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.hero-badge i { width: 8px; height: 8px; border-radius: 2px; background: var(--terra); }
.hero h1 { margin: 20px 0 16px; font-size: clamp(40px, 6vw, 64px); line-height: 1.02; color: var(--primary); }
.hero h1 .jo { display: inline-block; background: var(--terra); color: var(--on-terra); padding: 0 14px 4px; border-radius: 10px; transform: rotate(-3deg); }
.hero-lead { margin: 0 0 26px; max-width: 620px; font-family: var(--f-display); font-size: 19px; line-height: 1.55; color: var(--ink2); }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 18px; align-items: center; font-size: 15px; }
.hero-card-wrap { flex: 1 1 360px; min-width: 0; position: relative; padding: 22px 10px 10px; z-index: 1; }
.hero-text { position: relative; z-index: 2; }
.hero-card-wrap::before { content: ""; position: absolute; top: 0; left: 40px; right: 0; bottom: 28px; border-radius: 24px; background: var(--feature-2); transform: rotate(5deg); }
.hero-card { position: relative; background: var(--feature); color: var(--on-feature); border-radius: 24px; padding: 30px 32px; transform: rotate(-2deg); box-shadow: 0 30px 50px -30px var(--shadow); }
.hero-card .tag { background: var(--on-feature); color: var(--feature); }
.hero-card h2 { margin: 16px 0 6px; font-size: clamp(38px, 5vw, 52px); line-height: 1; overflow-wrap: anywhere; }
.hero-card .meta { font-size: 14px; opacity: .88; }
.hero-card p { margin: 14px 0 0; font-family: var(--f-display); font-size: 17px; line-height: 1.55; }
.hero-card a.cta { display: inline-flex; gap: 6px; align-items: center; margin-top: 18px; background: var(--on-feature); color: var(--feature); border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 15px; text-decoration: none; }
.hero-card a.cta:hover { color: var(--feature); filter: brightness(1.05); }
.band { padding-block: 56px 16px; }
.band-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; margin-bottom: 22px; }
.band-head h2 { margin: 0; font-size: clamp(30px, 4vw, 40px); line-height: 1.05; }
.band-head p { margin: 0; color: var(--muted); font-size: 15px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; min-width: 0; color: var(--ink); }
a.card { display: block; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
a.card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 18px 30px -22px var(--shadow); }
.card .card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card h3 { margin: 14px 0 0; font-size: 26px; line-height: 1.08; }
.card .txt { margin: 10px 0 0; font-family: var(--f-display); font-size: 15px; line-height: 1.55; color: var(--ink2); }
.card .big { margin: 14px 0 6px; font-family: var(--f-display); font-size: 21px; line-height: 1.3; }
.card .big em { color: var(--muted); }
.card .more { margin-top: 12px; }
.reveal-btn { border: 1px solid var(--c, var(--jeux)); background: var(--cb, var(--jeux-bg)); color: var(--c, var(--jeux)); border-radius: 999px; padding: 7px 16px; min-height: 40px; font-weight: 700; font-size: 14px; cursor: pointer; }
.reveal-out { margin: 10px 0 0; font-family: var(--f-display); font-style: italic; font-size: 18px; color: var(--ink); }
.sections-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
@media (max-width: 400px) { .sections-grid { grid-template-columns: 1fr; } }
.sec-tile { background: var(--cb); border-radius: var(--r-xl); padding: 24px 24px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sec-tile-head { display: flex; gap: 16px; align-items: center; }
.sec-tile-head .cart { width: 52px; height: 60px; font-size: 32px; background: var(--c); flex: 0 0 auto; }
.sec-tile-head a { font-family: var(--f-display); font-stretch: 75%; font-weight: 800; font-size: 29px; line-height: 1.05; color: var(--c); text-decoration: none; }
.sec-tile-head .d { font-family: var(--f-display); font-style: italic; font-size: 15px; color: var(--ink2); margin-top: 3px; }
.sec-tile .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sec-tile .chip { background: color-mix(in srgb, var(--surface) 72%, transparent); border-color: color-mix(in srgb, var(--ink) 12%, transparent); }
.abc-band { margin-top: 40px; background: var(--surface); border-block: 1px solid var(--line); }
.abc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 12px 10px; padding-block: 0 8px; }
.abc-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 70px; border-radius: 10px; background: var(--c); color: var(--on-sec); text-decoration: none; font-family: var(--f-display); font-stretch: 75%; font-weight: 800; font-size: 32px; line-height: 1; transition: transform .15s ease; }
.abc-tile small { font-family: var(--f-ui); font-size: 11px; font-weight: 600; opacity: .85; margin-top: 3px; font-variant-numeric: tabular-nums; }
.abc-tile:hover { color: var(--on-sec); transform: rotate(0deg) scale(1.07) !important; }
.themes-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.theme-link { display: inline-flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line2); border-radius: 14px; padding: 10px 16px; min-height: 48px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 16px; transition: transform .15s ease, box-shadow .15s ease; }
.theme-link:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 26px -22px var(--shadow); }
.theme-link .n { color: var(--muted); font-weight: 500; font-size: 13px; font-variant-numeric: tabular-nums; }
.letters-band { margin-top: 48px; background: var(--feature); color: var(--on-feature); }
.letters-band .wrap { padding-block: 52px 56px; }
.letters-band h2 { margin: 0; font-size: clamp(30px, 4vw, 40px); }
.letters-band p { margin: 8px 0 0; font-family: var(--f-display); font-size: 18px; line-height: 1.5; opacity: .92; max-width: 640px; }
.letters-band .cta { display: inline-flex; gap: 6px; align-items: center; background: var(--on-feature); color: var(--feature); border-radius: 999px; padding: 12px 20px; font-weight: 700; text-decoration: none; }
.letters-band .cta:hover { color: var(--feature); }
.lb-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; }
.lb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 26px; }
.lb-card { display: block; background: var(--soft); color: var(--ink); border-radius: 18px; padding: 18px 20px; text-decoration: none; transition: transform .15s ease; }
.lb-card:hover { color: var(--ink); transform: translateY(-3px) rotate(0deg) !important; }
.lb-card .k { display: block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--terra); }
.lb-card .t { display: block; margin-top: 8px; font-family: var(--f-display); font-stretch: 78%; font-weight: 800; font-size: 22px; line-height: 1.12; }
.jo-band { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; padding-block: 60px; }
.jo-photo { flex: 0 1 300px; min-height: 320px; border-radius: 24px; background: var(--soft); border: 2px dashed var(--line3); display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; transform: rotate(-2deg); text-align: center; padding: 20px; }
.jo-photo .cart { width: 70px; height: 80px; font-size: 48px; background: var(--terra); color: var(--on-terra); transform: rotate(-6deg); }
.jo-text { flex: 999 1 460px; min-width: 0; }
.jo-text h2 { margin: 0; font-size: clamp(30px, 4vw, 40px); }
.jo-text p { margin: 10px 0 0; font-family: var(--f-display); font-size: 18px; line-height: 1.6; color: var(--ink2); max-width: 68ch; }
blockquote.jo-quote { margin: 20px 0 0; padding: 18px 22px; background: var(--soft); border-radius: 16px; font-family: var(--f-display); font-style: italic; font-size: 20px; line-height: 1.45; color: var(--primary); max-width: 68ch; }
.jo-text .credits { margin: 14px 0 0; font-family: var(--f-ui); font-size: 14px; color: var(--muted); max-width: 72ch; }

/* ------------------------------------------------------------ explorer */
.ex-head { background: var(--cb, var(--soft)); border-bottom: 1px solid var(--line); }
.ex-head .wrap { padding-block: 26px 22px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-end; justify-content: space-between; }
.ex-title { min-width: 0; flex: 1 1 420px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.ex-title h1 { margin: 0; font-size: clamp(34px, 5vw, 50px); line-height: 1.02; color: var(--c, var(--ink)); }
.ex-title p { margin: 8px 0 0; font-family: var(--f-display); font-style: italic; font-size: 16px; color: var(--ink2); max-width: 70ch; }
.ex-search { flex: 1 1 380px; max-width: 560px; min-width: 0; }
.ex-body { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; padding-block: 24px 64px; align-items: start; }
.ex-body.with-prev { grid-template-columns: 270px minmax(0, 1fr) 320px; }
@media (max-width: 1279px) { .ex-body.with-prev { grid-template-columns: 270px minmax(0, 1fr); } .ex-prev { display: none; } }
@media (max-width: 899px) { .ex-body, .ex-body.with-prev { grid-template-columns: minmax(0, 1fr); } }
.facets { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 116px); max-height: calc(100vh - 136px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
@media (max-width: 899px) {
  .facets { position: fixed; z-index: 65; inset: 0 auto 0 0; width: min(380px, 92vw); max-height: none; background: var(--surface); padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(90px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); box-shadow: 20px 0 50px -20px var(--shadow); transform: translateX(-105%); transition: transform .2s ease; }
  .facets.open { transform: none; }
}
.facets-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.facets-head h2 { margin: 0; font-size: 22px; }
.fgroup { border-top: 1px solid var(--line); padding: 12px 0; }
.fgroup:first-of-type { border-top: none; }
.fgroup > button.fg-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; border: none; background: none; padding: 4px 0; min-height: 34px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--ink); text-align: left; }
.fgroup > button.fg-toggle .chev { width: 16px; height: 16px; transition: transform .15s; }
.fgroup > button.fg-toggle[aria-expanded="false"] .chev { transform: rotate(-90deg); }
.fg-sub { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c); margin: 10px 0 2px; display: flex; gap: 6px; align-items: center; }
.fcheck { display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 8px; cursor: pointer; font-size: 14.5px; min-height: 34px; }
.fcheck:hover { background: var(--soft); }
.fcheck input { width: 17px; height: 17px; accent-color: var(--c, var(--primary)); margin: 0; flex: 0 0 auto; }
.fcheck .lab { flex: 1; min-width: 0; }
.fcheck .n { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.fcheck.zero { opacity: .45; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.fchips .chip { min-height: 32px; padding: 3px 11px; font-size: 13.5px; }
.fmore { border: none; background: none; color: var(--primary); font-weight: 700; font-size: 13.5px; padding: 6px; cursor: pointer; }
.fswitch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 6px; border-radius: 8px; font-size: 14.5px; cursor: pointer; }
.fswitch:hover { background: var(--soft); }
.fswitch input { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; border-radius: 999px; background: var(--line3); position: relative; cursor: pointer; flex: 0 0 auto; transition: background .15s; margin: 0; }
.fswitch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transition: transform .15s; }
.fswitch input:checked { background: var(--primary); }
.fswitch input:checked::after { transform: translateX(16px); }
.fswitch .lab { display: flex; gap: 6px; align-items: center; }
.ex-tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.ex-count { font-size: 15px; color: var(--muted); }
.ex-count b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ex-tools-r { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
select.sel { appearance: none; -webkit-appearance: none; border: 1px solid var(--line3); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F5D61' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; color: var(--ink); border-radius: 10px; padding: 0 34px 0 12px; min-height: 40px; font: 600 14px var(--f-ui); cursor: pointer; }
.btn-filters { display: none; }
@media (max-width: 899px) { .btn-filters { display: inline-flex; } }
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; }
.achip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--c, var(--line3)); background: var(--cb, var(--soft)); color: var(--c, var(--ink)); border-radius: 999px; padding: 4px 6px 4px 12px; min-height: 32px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.achip svg { width: 14px; height: 14px; }
.achip small { color: var(--muted); font-weight: 500; }
.clear-all { border: none; background: none; color: var(--terra); font-weight: 700; font-size: 13.5px; cursor: pointer; padding: 6px; }
.nl-hint { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); }
.azbar { display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 0 6px; }
.azbar button { min-width: 32px; height: 34px; border-radius: 8px; border: 1px solid var(--line2); background: var(--surface); color: var(--ink); font-family: var(--f-display); font-stretch: 80%; font-weight: 800; font-size: 16px; cursor: pointer; padding: 0 6px; }
.azbar button:hover { border-color: var(--ink); }
.azbar button[aria-pressed="true"] { background: var(--c, var(--primary)); color: var(--on-sec); border-color: var(--c, var(--primary)); transform: rotate(-4deg); }
.azbar button:disabled { opacity: .3; cursor: default; }
.results { list-style: none; margin: 8px 0 0; padding: 0; }
.res a { display: flex; gap: 14px; align-items: flex-start; padding: 14px 12px; text-decoration: none; color: var(--ink); border-radius: 12px; }
/* une ligne sur deux légèrement teintée pour suivre la liste */
.res:nth-child(even) a { background: color-mix(in srgb, var(--ink) 4.5%, var(--bg)); }
.res a:hover, .res a.cur, .res:nth-child(even) a:hover, .res:nth-child(even) a.cur { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line2), 0 8px 20px -16px var(--shadow); }
.res a.cur, .res:nth-child(even) a.cur { box-shadow: inset 3px 0 0 var(--c), 0 0 0 1px var(--line2), 0 8px 20px -16px var(--shadow); }
.res .dot { margin-top: 9px; }
.res .rbody { flex: 1; min-width: 0; }
.res .rt { font-family: var(--f-display); font-stretch: 82%; font-weight: 700; font-size: 20px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.res .rs { display: block; margin-top: 3px; font-family: var(--f-display); font-size: 15px; line-height: 1.5; color: var(--ink2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.res .rm { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 12.5px; color: var(--muted); align-items: center; }
.res .rm .rub { color: var(--c); font-weight: 700; }
.res .rm .sep { opacity: .5; }
.res-more { display: flex; justify-content: center; margin-top: 22px; }
.empty { padding: 36px 8px; text-align: center; color: var(--muted); }
.empty h2 { margin: 0 0 6px; font-size: 26px; color: var(--ink); }
.ex-prev { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 116px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; max-height: calc(100vh - 140px); overflow-y: auto; }
.ex-prev h3 { margin: 10px 0 0; font-size: 30px; line-height: 1.05; }
.ex-prev .pv { margin-top: 10px; font-family: var(--f-display); font-size: 15px; line-height: 1.55; color: var(--ink2); }
.ex-prev .pv p { margin: 0 0 8px; }
.facets-close-bar { display: none; }
@media (max-width: 899px) { .facets-close-bar { display: flex; position: fixed; z-index: 66; left: 0; bottom: 0; width: min(380px, 92vw); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--surface); border-top: 1px solid var(--line); gap: 10px; }
  .facets-close-bar .btn { flex: 1; justify-content: center; } }

/* ------------------------------------------------------------ fiche */
.fiche-head { background: var(--cb); }
.fiche-head .wrap { padding-block: 22px 30px; }
.fiche-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-block: 32px 64px; align-items: start; }
@media (max-width: 999px) { .fiche-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.fiche-title { margin: 14px 0 0; font-size: clamp(38px, 6vw, 64px); line-height: 1.02; color: var(--ink); overflow-wrap: break-word; }
.fiche-title.quote { font-family: var(--f-display); font-stretch: 90%; font-weight: 600; font-style: italic; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.25; max-width: 30ch; }
.fiche-kw { margin-top: 8px; font-size: 15px; color: var(--ink2); }
.fiche-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.badge { display: inline-flex; gap: 6px; align-items: center; background: var(--surface); border: 1px solid var(--line2); border-radius: 999px; padding: 4px 12px; font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; min-height: 32px; }
a.badge:hover { border-color: var(--ink); color: var(--ink); }
.badge .k { color: var(--muted); font-weight: 500; }
.badge.warn { border-color: var(--terra); color: var(--terra); }
.prose { max-width: 68ch; font-family: var(--f-display); font-size: 18.5px; line-height: 1.7; color: var(--ink); }
.prose p { margin: 0 0 1em; }
.prose h3 { font-family: var(--f-display); font-stretch: 80%; font-weight: 800; font-size: 24px; line-height: 1.15; margin: 1.4em 0 .5em; color: var(--c); }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin: .2em 0; }
.prose .by { font-family: var(--f-ui); font-size: 14px; color: var(--muted); font-style: normal; white-space: nowrap; }
.prose .tbl { overflow-x: auto; margin: 0 0 1em; }
.prose table { border-collapse: collapse; font-family: var(--f-ui); font-size: 15px; font-variant-numeric: tabular-nums; }
.prose td, .prose th { border: 1px solid var(--line2); padding: 6px 10px; text-align: left; vertical-align: top; }
.orn { display: flex; justify-content: center; gap: 8px; margin: 1.4em 0; }
.orn i { width: 9px; height: 11px; border-radius: 3px; background: var(--c); opacity: .5; transform: rotate(-10deg); }
.orn i:nth-child(2) { transform: rotate(8deg); opacity: .8; }
.sens { background: var(--cb); border-radius: var(--r-md); padding: 16px 20px; margin: 0 0 1.4em; font-family: var(--f-display); font-size: 19px; line-height: 1.55; }
.sens .eyebrow { color: var(--c); display: block; margin-bottom: 4px; }
.prose.quote-body { font-size: 20px; line-height: 1.6; }
.quote-lines p { margin: 0 0 .35em; }
.def-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: def; }
.def-list li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px 14px 50px; font-size: 20px; line-height: 1.5; }
.def-list li::before { counter-increment: def; content: counter(def); position: absolute; left: 14px; top: 14px; width: 24px; height: 28px; border-radius: 6px; background: var(--c); color: var(--on-sec); font: 800 15px/28px var(--f-display); text-align: center; transform: rotate(-6deg); }
.def-list.single li { padding-left: 18px; }
.def-list.single li::before { display: none; }
.riddle { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; }
.riddle .answer { margin-top: 14px; font-family: var(--f-display); font-size: 22px; line-height: 1.4; font-style: italic; }
.riddle .answer strong { font-style: normal; color: var(--c); }
.ana { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-family: var(--f-display); font-size: 26px; line-height: 1.3; }
.ana .arrow { color: var(--c); font-family: var(--f-ui); font-weight: 800; }
details.sol { margin: 1em 0; background: var(--cb); border-radius: var(--r-md); padding: 4px 18px; }
details.sol summary { cursor: pointer; font-family: var(--f-ui); font-weight: 700; color: var(--c); padding: 10px 0; min-height: 40px; }
.fiche-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.fiche-actions .btn[aria-pressed="true"] { background: var(--terra); border-color: var(--terra); color: var(--on-terra); }
.fiche-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.fiche-nav a { display: block; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-md); padding: 12px 16px; text-decoration: none; color: var(--ink); min-width: 0; }
.fiche-nav a:hover { border-color: var(--ink); color: var(--ink); }
.fiche-nav a .eyebrow { display: block; }
.fiche-nav a b { display: block; font-family: var(--f-display); font-stretch: 85%; font-size: 18px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fiche-nav a.next { text-align: right; }
.credit { margin-top: 18px; font-size: 14px; color: var(--muted); }
.aside-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.aside-block + .aside-block { margin-top: 18px; }
.aside-block h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.1; color: var(--c, var(--ink)); }
.aside-list { list-style: none; margin: 0; padding: 0; }
.aside-list a { display: block; padding: 7px 8px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 15px; line-height: 1.35; }
.aside-list a:hover { background: var(--soft); color: var(--ink); }
.aside-list a.cur { background: var(--cb); font-weight: 700; }
.related { margin-top: 44px; }
.related h2 { margin: 0 0 14px; font-size: 28px; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.rel-grid .card { padding: 16px 18px; }
.rel-grid .card h3 { font-size: 20px; margin-top: 10px; }
.rel-grid .card .txt { font-size: 14px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* ------------------------------------------------------------ lettre du jour */
.letter-page { padding-block: 32px 64px; }
.letter-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; max-width: 820px; margin: 0 auto 18px; }
.letter { max-width: 820px; margin: 0 auto; background: var(--paper); border: 1px solid var(--paper-line); border-radius: 6px; padding: clamp(22px, 5vw, 56px); box-shadow: 0 30px 60px -40px var(--shadow); position: relative; }
.letter-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 14px; }
.letter-head h1 { margin: 0; font-size: clamp(34px, 6vw, 54px); line-height: 1; color: var(--primary); }
.letter-head .date { font-family: var(--f-display); font-style: italic; color: var(--muted); }
.letter-intro { font-family: var(--f-display); font-size: 18px; line-height: 1.6; margin: 18px 0 8px; }
.lr { border-top: 1px dashed var(--paper-line); padding: 18px 0; }
.lr:first-of-type { border-top: none; }
.lr-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.lr h2 { margin: 10px 0 4px; font-size: 26px; line-height: 1.1; }
.lr .prose { font-size: 17px; }
.lr .open { font-size: 14px; font-weight: 700; text-decoration: none; color: var(--c); }
.letter-sign { margin-top: 20px; font-family: var(--f-display); font-style: italic; font-size: 19px; }

/* ------------------------------------------------------------ pages simples */
.page-head { background: var(--soft); }
.page-head .wrap { padding-block: 34px 30px; }
.page-head h1 { margin: 0; font-size: clamp(36px, 5vw, 54px); color: var(--primary); line-height: 1.02; }
.page-head p { margin: 10px 0 0; font-family: var(--f-display); font-size: 18px; color: var(--ink2); max-width: 70ch; }
.page-body { padding-block: 32px 64px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 24px 0; }
.stat { background: var(--cb); border-radius: var(--r-md); padding: 14px 16px; text-decoration: none; color: var(--ink); }
.stat:hover { color: var(--ink); filter: brightness(.98); }
.stat b { display: block; font-family: var(--f-display); font-stretch: 75%; font-weight: 800; font-size: 34px; color: var(--c); font-variant-numeric: tabular-nums; line-height: 1.05; }
.stat span { font-size: 14px; color: var(--ink2); }

/* ------------------------------------------------------------ pied de page, toast, chargement */
.site-footer { background: var(--soft); border-top: 1px solid var(--line2); }
.ft { display: flex; flex-wrap: wrap; gap: 28px 48px; padding-block: 38px 26px; }
.ft-brand { flex: 1 1 240px; }
.ft-brand .logo-svg { height: 48px; }
.ft-brand p { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.ft-col { flex: 1 1 160px; }
.ft-col b { display: block; font-size: 14px; color: var(--c); }
.ft-col a { display: block; margin-top: 6px; font-size: 14px; color: var(--ink); text-decoration: none; }
.ft-col a:hover { text-decoration: underline; }
.ft-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 14px 22px; border-top: 1px solid var(--line2); font-size: 13px; color: var(--muted); align-items: center; }
.ft-bottom .fswitch { padding: 2px 0; font-size: 13px; }
.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); border-radius: 12px; padding: 10px 16px; font-weight: 600; font-size: 14px; box-shadow: 0 20px 40px -20px var(--shadow); max-width: calc(100vw - 32px); }
.boot { min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.boot-card { text-align: center; color: var(--muted); }
.boot-card .cart { width: 54px; height: 62px; font-size: 36px; margin: 0 4px; animation: bob 1.2s ease-in-out infinite; }
.boot-card .cart-terra { background: #A83928; color: #F6EFE5; transform: rotate(-6deg); }
.boot-card .cart-petrole { background: #0F424E; color: #F6EFE5; transform: rotate(5deg); animation-delay: .2s; }
@keyframes bob { 50% { translate: 0 -6px; } }
.skeleton { height: 18px; border-radius: 6px; background: var(--soft2); margin: 10px 0; max-width: 68ch; }

/* archive des lettres envoyées */
.archive { max-width: 980px; margin: 0 auto; }
.arch-year { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.arch-year summary { cursor: pointer; display: flex; gap: 12px; align-items: baseline; padding: 6px 0 12px; min-height: 44px; }
.arch-year summary .display { font-size: 30px; color: var(--lettres); }
.arch-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.arch-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; transform: rotate(var(--rot, 0deg)); min-width: 0; }
.arch-date { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--terra); }
.arch-t { font-family: var(--f-display); font-stretch: 80%; font-weight: 800; font-size: 20px; line-height: 1.15; color: var(--ink); overflow-wrap: anywhere; }
.arch-k { align-self: flex-start; font-size: 11.5px; font-weight: 700; color: var(--lettres); background: var(--lettres-bg); border-radius: 6px; padding: 1px 7px; }
.arch-n { font-family: var(--f-display); font-style: italic; font-size: 14px; line-height: 1.4; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* gros bouton « Voir la réponse » */
.reveal-btn.big { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; min-height: 54px; padding: 0 30px; border-radius: 14px; border: none; background: var(--c, var(--jeux)); color: var(--on-sec); font-size: 17px; font-weight: 800; letter-spacing: .01em; box-shadow: 0 10px 22px -14px var(--shadow); transform: rotate(-1deg); transition: transform .12s ease, filter .12s ease; }
.reveal-btn.big:hover { filter: brightness(1.08); transform: rotate(0deg) scale(1.02); }
.reveal-btn.big[aria-expanded="true"] { background: var(--surface); color: var(--c, var(--jeux)); border: 2px solid var(--c, var(--jeux)); box-shadow: none; transform: none; }
.riddle .answer p { margin: 0 0 .4em; }
/* favoris dans l'en-tête */
.pill-fav { position: relative; }
.fav-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--terra); color: var(--on-terra); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
@media (max-width: 1199px) { .hide-md { display: none !important; } }
/* sous-menu : colonnes compactes, sans trous */
.mega-in { align-items: flex-start; }
.mega-subs { display: block; columns: 2 230px; column-gap: 18px; }
.mega-sub { break-inside: avoid; margin-bottom: 2px; }
.mega-une { align-self: flex-start; }

.ex-prev h3.pv-long { font-size: 23px; line-height: 1.18; }
@media (max-width: 1199px) { .nav-az { display: none; } }
.mega-sub span, .ex-title p, .sec-tile .d { text-wrap: pretty; }

/* devinettes */
.riddle .q { font-size: 22px; line-height: 1.45; margin: 0; }
.riddle .q.quote { font-style: italic; }
.answer.sol-block { margin: 1em 0; background: var(--cb); border-radius: var(--r-md); padding: 14px 18px; }
/* lettre : calendrier et titre de Jo */
.cal-pick { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line3); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; }
.cal-pick input { border: none; background: transparent; color: var(--ink); font: 600 14px var(--f-ui); min-height: 38px; }
.letter-head > div { min-width: 0; }
.letter-head .eyebrow { display: block; margin-bottom: 6px; color: var(--lettres); }
.letter-src { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.lb-title { font-size: 20px !important; margin-top: 14px !important; }
a.arch-item { text-decoration: none; height: 100%; }
a.arch-item:hover { border-color: var(--lettres); color: var(--ink); transform: rotate(0deg); }
.arch-list > li { display: flex; }
.arch-list > li > a { flex: 1; }

.letter-tools { justify-content: center; gap: 10px; }

.ft-note p { margin: 0; padding-block: 0 18px; max-width: 80ch; font-size: 13px; line-height: 1.5; color: var(--muted); }

.jo-photo.has-img { margin: 0; padding: 0; min-height: 0; border: none; background: none; overflow: hidden; border-radius: 24px; box-shadow: 0 30px 50px -30px var(--shadow); }
.jo-photo.has-img img { display: block; width: 100%; height: auto; }

/* lettre du jour : pleine largeur et calendrier des lettres */
.page-head.sec-lettres p { max-width: none; }
.letter-tools { max-width: none; justify-content: space-between; }
.letter { max-width: none; }
.letter-body { columns: 2 440px; column-gap: 56px; column-rule: 1px dashed var(--paper-line); }
.letter-body .lr { break-inside: avoid; }
.letter-body .lr:first-of-type, .letter-body .lr { border-top: none; border-bottom: 1px dashed var(--paper-line); }
.letter-tools .btn[aria-disabled="true"] { opacity: .4; cursor: default; }
.cal { position: relative; }
.cal-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line3); border-radius: 12px; background: var(--surface); color: var(--ink); font-weight: 700; font-size: 15px; cursor: pointer; }
.cal-btn .chev { width: 14px; height: 14px; transition: transform .15s; }
.cal-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.cal-pop { position: absolute; z-index: 45; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 320px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 28px 56px -20px var(--shadow); padding: 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-head b { font-family: var(--f-display); font-stretch: 85%; font-weight: 800; font-size: 20px; text-transform: capitalize; }
.cal-nav { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface); color: var(--ink); font-size: 20px; cursor: pointer; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-years { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0; }
.cal-years .chip { min-height: 28px; padding: 2px 9px; font-size: 12.5px; --c: var(--lettres); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cal-wd { font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-day { display: flex; align-items: center; justify-content: center; height: 36px; border-radius: 9px; font-size: 14px; font-variant-numeric: tabular-nums; }
.cal-day.off { color: var(--muted); opacity: .35; }
.cal-day.has { background: var(--lettres-bg); color: var(--lettres); font-weight: 800; text-decoration: none; }
.cal-day.has:hover { background: var(--lettres); color: var(--on-sec); }
.cal-day.cur { background: var(--lettres); color: var(--on-sec); transform: rotate(-4deg); }
.cal-foot { margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

/* ------------------------------------------------------------ bandeaux d'en-tête
   dégradé de la couleur de section, trame de points, formes inclinées, grand picto en filigrane
   et cartouche incliné comme ceux du logo */
:where(.banner) { --c: var(--primary); --cb: var(--soft); }
.banner { position: relative; overflow: hidden; isolation: isolate; z-index: 2;
  background: linear-gradient(118deg, var(--cb) 0%, var(--cb) 48%, color-mix(in srgb, var(--c) 17%, var(--cb)) 100%);
  border-bottom: 3px solid var(--c); }
.banner-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.banner-deco::before { content: ""; position: absolute; inset: 0 0 0 38%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent) 1.3px, transparent 1.9px) 0 0 / 17px 17px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 65%); mask-image: linear-gradient(to right, transparent, #000 65%); }
.banner-deco .bd1, .banner-deco .bd2 { position: absolute; border-radius: 30px; background: var(--c); }
.banner-deco .bd1 { width: 270px; height: 300px; right: -70px; top: -150px; opacity: .11; transform: rotate(16deg); }
.banner-deco .bd2 { width: 150px; height: 170px; right: 30%; bottom: -125px; opacity: .08; transform: rotate(-14deg); }
.banner-pic { position: absolute; right: max(3%, calc(50% - 640px)); top: 50%; width: 230px; height: 230px; transform: translateY(-46%) rotate(-10deg);
  stroke: var(--c); stroke-width: 1; opacity: .15; }
.banner-ex .banner-pic { right: max(2%, calc(50% - 660px)); top: 6px; width: 200px; height: 200px; transform: rotate(-10deg); }
.banner-in { position: relative; display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: flex-end; justify-content: space-between; padding-block: 24px 26px; }
.banner-main { flex: 999 1 460px; min-width: 0; }
.banner .crumbs { margin-bottom: 14px; }
.banner .crumbs a, .banner .crumbs { color: var(--ink2); }
.banner-title { display: flex; gap: 20px; align-items: center; }
.banner-ico { flex: 0 0 auto; display: grid; place-items: center; width: 70px; height: 78px; border-radius: 16px; background: var(--c); color: var(--on-sec);
  transform: rotate(-5deg); box-shadow: 0 16px 26px -18px var(--shadow), inset 0 -4px 0 rgba(0, 0, 0, .14); }
.banner-ico svg { width: 38px; height: 38px; stroke-width: 1.8; }
.banner-txt { min-width: 0; }
.banner-txt .tag { margin-bottom: 10px; }
.banner h1 { margin: 0; font-size: clamp(34px, 5vw, 54px); line-height: 1.02; color: var(--c); overflow-wrap: break-word; text-wrap: balance; }
.banner h1.quote { margin: 0; color: var(--ink); font-size: clamp(24px, 3.2vw, 36px); max-width: 34ch; }
.banner-fiche h1.display { font-size: clamp(36px, 5.6vw, 62px); }
.banner-txt p { margin: 8px 0 0; font-family: var(--f-display); font-style: italic; font-size: 17px; line-height: 1.5; color: var(--ink2); max-width: 70ch; text-wrap: pretty; }
.banner-wide .banner-txt p { max-width: 110ch; }
.banner .fiche-badges { margin-top: 18px; }
.banner-side { flex: 1 1 360px; max-width: 520px; min-width: 0; }
.banner-side .gs-bar { box-shadow: 0 14px 30px -22px var(--shadow); }
.banner-rubs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.brub { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 9px; min-height: 34px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  background: color-mix(in srgb, var(--surface) 74%, transparent); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); color: var(--ink); text-decoration: none; }
.brub svg { width: 17px; height: 17px; stroke: var(--c); }
.brub .n { color: var(--muted); font-weight: 500; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.brub:hover { border-color: var(--c); color: var(--ink); background: var(--surface); }
.brub[aria-current] { background: var(--c); border-color: var(--c); color: var(--on-sec); transform: rotate(-2deg); }
.brub[aria-current] svg { stroke: currentColor; }
.brub[aria-current] .n { color: inherit; opacity: .8; }
@media (max-width: 759px) {
  .banner-in { padding-block: 18px 20px; }
  .banner-title { gap: 14px; align-items: flex-start; }
  .banner-ico { width: 50px; height: 56px; border-radius: 12px; margin-top: 2px; }
  .banner-ico svg { width: 28px; height: 28px; }
  .banner-pic { width: 150px; height: 150px; right: -24px; top: 12px; transform: rotate(-10deg); opacity: .12; }
  .banner-deco::before { inset: 0 0 45% 30%; }
  .banner h1 { font-size: clamp(30px, 8.4vw, 40px); }
  .banner-fiche h1.display { font-size: clamp(32px, 9vw, 44px); }
  .banner-txt p { font-size: 16px; }
  .banner-rubs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 4px; scrollbar-width: none; }
  .banner-rubs::-webkit-scrollbar { display: none; }
  .brub { flex: 0 0 auto; }
  .banner-side { flex-basis: 100%; max-width: none; }
}
/* pictos dans les menus et sur l'accueil */
.mega-sub b .mi { width: 17px; height: 17px; stroke: var(--c); align-self: center; }
.mega-intro .cart svg, .sec-tile-head .cart svg { width: 60%; height: 60%; stroke-width: 1.8; }
.acc-list a .al { display: inline-flex; gap: 9px; align-items: center; }
.acc-list a svg { width: 17px; height: 17px; stroke: var(--c); }
.acc-ico { display: inline-grid; place-items: center; width: 30px; height: 32px; border-radius: 8px; background: var(--c); color: var(--on-sec); transform: rotate(-5deg); }
.acc-ico svg { width: 18px; height: 18px; }
.sec-tile .chip svg { width: 15px; height: 15px; stroke: var(--c); }
/* calendrier sur mobile : panneau calé sur la largeur de l'écran */
@media (max-width: 600px) {
  .cal-pop { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; transform: none; width: auto; max-height: calc(100vh - 90px); overflow-y: auto; z-index: 60; box-shadow: 0 0 0 100vmax rgba(10, 20, 24, .45), 0 28px 56px -20px var(--shadow); }
}
/* déjà lu : pastille verte discrète, filtre dans « Particularités » */
.lu-pill { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px 1px 5px; border-radius: 999px; background: var(--detente-bg); color: var(--detente); border: 1px solid color-mix(in srgb, var(--detente) 30%, transparent); font-size: 11.5px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.lu-pill svg { width: 12px; height: 12px; stroke-width: 3; }
.res .rm .lu-pill + .rub { margin-left: 2px; }
.card .card-flags { display: inline-flex; gap: 6px; align-items: center; }
.badge.lu { background: var(--detente-bg); color: var(--detente); border-color: color-mix(in srgb, var(--detente) 35%, transparent); }
.badge.lu svg { width: 14px; height: 14px; stroke-width: 3; }
.btn-lu[aria-pressed="true"] svg { stroke: var(--detente); }
.btn-lu[aria-pressed="false"] svg { opacity: .35; }
/* palindromes : la phrase lue à l'envers */
.riddle .answer .pal-lab { margin: 0 0 4px; font-family: var(--f-ui); font-style: normal; font-size: 14px; font-weight: 600; color: var(--muted); }
.riddle .answer .pal-rev { margin: 0; font-style: normal; font-family: var(--f-display); font-size: 22px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c, var(--ink)); overflow-wrap: anywhere; }
.riddle .answer .pal-ok { margin: 8px 0 0; font-family: var(--f-ui); font-style: normal; font-size: 14px; color: var(--muted); }
/* recherche interne d'un groupe de filtres */
.fsearch { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; padding: 0 10px; height: 38px; border: 1px solid var(--line3); border-radius: 10px; background: var(--surface); }
.fsearch:focus-within { border-color: var(--primary); }
.fsearch svg { width: 16px; height: 16px; stroke: var(--muted); }
.fsearch input { flex: 1; min-width: 0; border: none; background: none; font: inherit; font-size: 14px; color: var(--ink); outline: none; padding: 0; }
.fs-none { margin: 4px 0 0; font-size: 13.5px; }
/* favori depuis la liste */
.res { position: relative; }
.res a { padding-right: 56px; }
.res-fav { position: absolute; top: 10px; right: 8px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; }
.res-fav svg { width: 20px; height: 20px; }
.res-fav:hover { background: var(--surface); border-color: var(--line2); color: var(--terra); }
.res-fav[aria-pressed="true"] { color: var(--terra); }
.res-fav[aria-pressed="true"] svg { fill: var(--terra); }
.res a > .pepper { margin-top: 12px; }
.pv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pv-actions .btn[aria-pressed="true"] svg { fill: var(--terra); stroke: var(--terra); }
.riddle .answer .pal-rev mark { background: var(--jeux-bg); color: var(--terra); border-radius: 3px; padding: 0 1px; }
.fiche-actions .btn-lu[aria-pressed="true"] { background: var(--surface); border-color: var(--line2); color: var(--ink); }
/* pages statiques (avant le démarrage de l'application, ou sans JavaScript) */
img.logo-svg { width: auto; }
.ssr-body { padding-block: 28px 56px; }
.ssr-body h2 { margin: 28px 0 10px; font-size: 26px; }
.ssr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ssr-list li { line-height: 1.45; }
.ssr-list li > span { color: var(--muted); }
.ssr-cols { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ssr-cards li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.prose details.sol { margin: 1em 0; background: var(--cb, var(--soft)); border-radius: var(--r-md); padding: 10px 16px; }
.prose details.sol summary { cursor: pointer; font-weight: 700; color: var(--c, var(--ink)); }
.abc-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.abc-grid .abc-tile { width: 54px; }
/* bandeau d'accord pour la mesure d'audience */
.consent-wrap { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(12, 22, 25, .6); backdrop-filter: blur(2px); }
.consent-wrap[hidden] { display: none; }
.consent { width: 100%; max-width: 480px; background: var(--surface); color: var(--ink); border: 1px solid var(--line2); border-radius: 20px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5); padding: 26px 26px 22px; font-size: 16px; line-height: 1.55; }
.consent h2 { font-size: 26px; margin: 0 0 10px; color: var(--primary); }
.consent p { margin: 0 0 18px; }
.consent-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.consent-btns .btn { flex: 1 1 140px; justify-content: center; min-height: 48px; font-size: 16px; }
html.consent-open { overflow: hidden; }
.linklike { border: none; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.ssr-group .ssr-list:not(.ssr-cols) { display: block; columns: 3 280px; column-gap: 28px; }
.ssr-group .ssr-list:not(.ssr-cols) li { break-inside: avoid; margin-bottom: 7px; }
/* fiche : actions personnelles à gauche, partage à droite ; « Au hasard » entre précédente et suivante */
.fiche-actions { justify-content: space-between; align-items: center; gap: 10px 24px; }
.fa-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fa-lab { font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.fiche-nav { grid-template-columns: 1fr auto 1fr; }
.fiche-nav a.rand { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px; padding: 10px 18px; background: var(--cb, var(--soft)); border-color: transparent; }
.fiche-nav a.rand svg { width: 22px; height: 22px; }
.fiche-nav a.rand span { font-weight: 700; font-size: 15px; }
.fiche-nav a.rand small { font-size: 12px; color: var(--muted); }
.fiche-nav a.rand:hover { border-color: var(--c, var(--ink)); }
@media (max-width: 600px) {
  .fiche-nav { grid-template-columns: 1fr 1fr; }
  .fiche-nav a.rand { grid-column: 1 / -1; order: 3; flex-direction: row; gap: 8px; }
}
/* fiche : favori et « lu » dans le bandeau, à côté du titre */
.banner-fiche .banner-side { flex: 0 0 auto; max-width: none; align-self: flex-start; }
.fiche-tools { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.fiche-tools .btn { background: var(--surface); justify-content: flex-start; }
.fiche-tools .btn[data-fav][aria-pressed="true"] { background: var(--terra); border-color: var(--terra); color: var(--on-terra); }
.fiche-tools .btn[data-fav][aria-pressed="true"] svg { fill: currentColor; }
.fiche-tools .btn-lu[aria-pressed="true"] { background: var(--detente-bg); border-color: color-mix(in srgb, var(--detente) 35%, transparent); color: var(--detente); }
.fiche-tools .btn-lu[aria-pressed="true"] svg { stroke: currentColor; }
@media (max-width: 759px) {
  .banner-fiche .banner-side { flex-basis: 100%; }
  .fiche-tools { flex-direction: row; flex-wrap: wrap; }
}
/* téléphone : le compteur de favoris se pose sur le cœur, sans élargir l'en-tête */
@media (max-width: 759px) {
  .pill-fav .fav-count { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; box-shadow: 0 0 0 2px var(--surface); }
}
@media (max-width: 400px) {
  .hd-actions { gap: 4px; }
  .hd-actions .pill { padding: 0 11px; }
  .logo-svg { height: 34px; }
}
@media (max-width: 340px) {
  .hd-actions .pill { padding: 0 9px; }
  .logo-svg { height: 30px; }
}
