/* 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; }
.sortlab { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 4px; white-space: nowrap; }
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; }
}
/* pages par lettre d'une rubrique (/mots-valises/lettre-b) : les fiches courtes en entier, les autres en résumé */
.lt-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.lt-bar a { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; border-radius: 9px; border: 1px solid var(--line2); background: var(--surface); color: var(--ink); text-decoration: none; font-family: var(--f-display); font-stretch: 80%; font-weight: 800; font-size: 17px; }
.lt-bar a.cur, .lt-bar a:hover { background: var(--c, var(--primary)); border-color: var(--c, var(--primary)); color: var(--on-sec); }
.lt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.lt-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 20px 6px; min-width: 0; }
.ssr-body .lt-item h2.lt-t { margin: 0 0 8px; font-family: var(--f-display); font-stretch: 82%; font-weight: 800; font-size: 21px; line-height: 1.2; }
.lt-t a { color: var(--c, var(--ink)); text-decoration: none; }
.lt-t a:hover { text-decoration: underline; }
.lt-item .prose { font-size: 17px; line-height: 1.6; max-width: none; }
.lt-item .prose p { margin: 0 0 10px; }
.lt-ex { margin: 0 0 10px; font-family: var(--f-display); font-size: 16px; line-height: 1.55; color: var(--ink2); }
.lt-more { font-family: var(--f-ui); font-weight: 700; font-size: 14px; white-space: nowrap; }
.fiche-nav.lt-nav { grid-template-columns: 1fr 1fr; margin-top: 28px; }
/* « Qui est Jo ? » : plusieurs parties */
.jo-text h2.display:not(:first-child) { margin-top: 38px; }
.jo-links { margin-top: 22px; }
/* menu : « Les Lettres de Jo » en premier, mis en valeur */
.nav-btn.nav-lettres { background: var(--lettres); color: var(--on-sec); font-weight: 700; padding: 0 16px; margin-right: 8px; text-decoration: none; }
.nav-btn.nav-lettres svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.nav-btn.nav-lettres:hover { background: var(--lettres); color: var(--on-sec); filter: brightness(1.15); }
.btn.btn-lettres { background: var(--lettres); border-color: var(--lettres); color: var(--on-sec); }
/* accueil : le bloc des Lettres juste sous l’en-tête */
.hero + .letters-band { margin-top: 0; }
/* pages de section et de rubrique : texte d'introduction, la suite derrière « Voir plus » */
.intro-more { margin-top: 6px; max-width: 680px; }
.intro-more summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-family: var(--f-ui); font-weight: 700; font-size: 14.5px; color: var(--c, var(--primary)); text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }
.intro-more summary::-webkit-details-marker { display: none; }
.intro-more summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.intro-more[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.intro-more .vm, .intro-more[open] .vp { display: none; }
.intro-more[open] .vm { display: inline; }
.banner-txt .intro-long p { margin: 10px 0 0; font-family: var(--f-display); font-style: normal; font-size: 17px; line-height: 1.6; color: var(--ink); max-width: 680px; }
.intro-long a { color: var(--c, var(--primary)); font-weight: 600; }
/* contrepèteries dans les pages par lettre : le bouton sans second cadre */
.lt-item .riddle { background: none; border: 0; padding: 0; }
.lt-item .reveal-btn.big { min-height: 42px; padding: 0 18px; font-size: 15px; margin-top: 2px; }
.lt-item .riddle .answer { font-size: 19px; }
/* texte déplié : l'icône reste en haut, à côté du titre */
.banner-title:has(.intro-more[open]) { align-items: flex-start; }
/* partage : des icônes discrètes plutôt que des boutons */
.fa-share { gap: 2px; }
.share-ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.share-ic[hidden] { display: none; }
.share-ic svg { width: 20px; height: 20px; }
.share-ic:hover, .share-ic:focus-visible { background: var(--cb, var(--soft)); color: var(--c, var(--ink)); }
/* citations : la citation en grand dans le corps de la page */
figure.citation { position: relative; margin: 0 0 1.2em; padding: 30px 30px 24px 74px; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--c, var(--expr)); border-radius: var(--r-lg); }
figure.citation::before { content: '«'; position: absolute; left: 18px; top: 4px; font-family: var(--f-display); font-weight: 800; font-size: 76px; line-height: 1; color: var(--c, var(--expr)); opacity: .9; }
figure.citation blockquote { margin: 0; }
figure.citation blockquote p { margin: 0 0 .5em; font-family: var(--f-display); font-style: italic; font-size: 21px; line-height: 1.5; color: var(--ink); }
figure.citation blockquote p.cit-q { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.38; font-weight: 500; }
figure.citation blockquote p:last-child { margin-bottom: 0; }
figure.citation figcaption { margin-top: 14px; text-align: right; font-family: var(--f-ui); font-weight: 700; font-size: 15px; letter-spacing: .02em; color: var(--c, var(--ink)); }
.lt-item figure.citation { padding: 0; border: 0; background: none; }
.lt-item figure.citation::before { content: none; }
.lt-item figure.citation blockquote p { font-size: 17px; }
/* accueil : plus de rubriques par ligne dans les blocs des sections */
.sec-tile { padding: 22px 20px 18px; }
.sec-tile .chips { gap: 5px; }
.sec-tile .chip { padding: 3px 9px; gap: 5px; min-height: 30px; font-size: 13.5px; }
.sec-tile .chip svg { width: 14px; height: 14px; }
.sec-tile .chip .n { font-size: 11.5px; }
/* listes à puces : en retrait */
.prose ul, .prose ol { padding-left: 2.1em; }
/* titres longs (citations…) : plus de place en largeur */
.banner h1.quote, .fiche-title.quote { max-width: 46ch; }
/* aperçu de l'explorateur : le cœur seul, en haut à droite */
.ex-prev .pv-fav { top: 12px; right: 12px; }
.ex-prev .tag { margin-right: 44px; }
/* fiche sans texte : le titre repris au cœur de la page */
.solo { position: relative; margin: 0 0 1.2em; padding: 26px 28px; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--c, var(--primary)); border-radius: var(--r-lg); }
.solo p { margin: 0; font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.38; color: var(--ink); }
.solo-q { padding-left: 88px; }
.solo-q .solo-mark { position: absolute; left: 24px; top: 50%; transform: translateY(-50%) rotate(-8deg); font-family: var(--f-display); font-weight: 800; font-size: 76px; line-height: 1; color: var(--c, var(--primary)); }
/* épitaphe : gravée sur une pierre tombale */
.tomb { position: relative; display: flex; justify-content: center; margin: 6px 0 1.8em; }
.tomb::after { content: ''; position: absolute; left: 50%; bottom: -14px; width: min(560px, 100%); height: 26px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at center, rgba(63, 94, 57, .45) 0%, rgba(63, 94, 57, 0) 70%); }
.tomb-stone { position: relative; z-index: 1; width: min(420px, 100%); min-height: 300px; display: flex; flex-direction: column; justify-content: center; padding: 70px 34px 46px; text-align: center; color: #3b4144; border-radius: 210px 210px 14px 14px / 120px 120px 14px 14px; background: linear-gradient(160deg, #d3d6d7 0%, #b2b8bb 55%, #959c9f 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -12px 24px rgba(0, 0, 0, .18), 0 20px 30px -20px rgba(0, 0, 0, .5); }
.tomb-stone::before { content: ''; position: absolute; inset: 12px; border: 2px solid rgba(255, 255, 255, .3); border-radius: inherit; pointer-events: none; }
.tomb-stone p { font-family: var(--f-display); text-shadow: 0 1px 0 rgba(255, 255, 255, .55), 0 -1px 0 rgba(0, 0, 0, .22); }
.prose .tomb-rip, .ex-prev .tomb-rip { margin: 0 0 14px; font-weight: 800; font-size: 15px; letter-spacing: .32em; color: #5a6164; }
.prose .tomb-t, .ex-prev .tomb-t { margin: 0; font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; line-height: 1.3; font-variant: small-caps; }
.prose .tomb-l, .ex-prev .tomb-l { margin: 12px 0 0; font-size: 19px; font-style: italic; line-height: 1.45; }
/* petite annonce : découpée dans le journal */
.annonce { max-width: 520px; margin: 4px 0 1.4em; padding: 18px 22px 20px; background: #fffdf4; color: #1d1d1b; border: 1px dashed #b8ad92; border-radius: 4px; box-shadow: 0 12px 24px -18px rgba(0, 0, 0, .4); transform: rotate(-.6deg); }
.annonce-k { display: inline-block; margin-bottom: 10px; padding: 2px 8px; background: #1d1d1b; color: #fffdf4; font-family: var(--f-ui); font-weight: 800; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.prose .annonce p, .ex-prev .annonce p { margin: 0 0 .4em; font-family: 'Courier New', Courier, monospace; font-size: 18px; line-height: 1.5; color: #1d1d1b; }
/* graffiti : sur un mur */
.graffiti { margin: 4px 0 1.4em; padding: 34px 30px; border-radius: 10px; background: #4a5154 repeating-linear-gradient(0deg, transparent 0 34px, rgba(0, 0, 0, .18) 34px 36px); }
.prose .graffiti p { margin: 0 0 .3em; font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.35; color: #f3efe4; transform: rotate(-1.2deg); text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
/* « Pour aller plus loin » : lien discret vers Wikipédia */
.further { margin: 14px 0 0; font-family: var(--f-ui); font-size: 14px; color: var(--muted); }
.further a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.further a:hover { color: var(--c, var(--ink)); }
.further a::after { content: ' ↗'; font-size: 12px; }
/* partage : le nom du réseau au survol (ordinateur) */
@media (hover: hover) {
  .share-ic { position: relative; }
  .share-ic::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 5px 8px; border-radius: 6px; background: var(--ink); color: var(--paper); font: 600 12px/1.2 var(--f-ui); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s ease; z-index: 5; }
  .share-ic:hover::after, .share-ic:focus-visible::after { opacity: 1; }
}
/* mobile : favori et « lu » en petites icônes rondes dans le coin du bandeau, sans prendre une ligne */
@media (max-width: 760px) {
  .banner-fiche .banner-in { position: relative; }
  .banner-fiche .banner-side { position: absolute; top: 14px; right: var(--gutter-r); flex-basis: auto; }
  .banner-fiche .crumbs { padding-right: 92px; }
  .fiche-tools { flex-direction: row; gap: 6px; }
  .fiche-tools .btn { width: 38px; height: 38px; min-height: 38px; padding: 0; justify-content: center; border-radius: 50%; }
  .fiche-tools .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fiche-tools .btn svg { width: 18px; height: 18px; }
  .fiche-tools .btn-lu[aria-pressed="false"] svg { opacity: .45; }
}
/* devises des pays : le drapeau à côté de la devise */
figure.devise { display: flex; gap: 22px; align-items: center; margin: 0 0 1em; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.devise-flag { flex: 0 0 auto; width: 120px; height: 90px; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 10px 20px -14px rgba(0, 0, 0, .5); }
figure.devise blockquote { margin: 0; min-width: 0; }
figure.devise blockquote p { margin: 0 0 .3em; font-family: var(--f-display); font-style: italic; font-size: clamp(20px, 2.4vw, 25px); line-height: 1.4; }
@media (max-width: 520px) { figure.devise { flex-direction: column; align-items: flex-start; } }
/* compléments en second plan : pays et capitale, histoire de la devise, mots d'un mot-valise */
.fiche-plus { margin: 0 0 1em; padding: 12px 16px; border-left: 3px solid var(--line2); color: var(--ink2); font-size: 16px; line-height: 1.55; }
.prose .fiche-plus p { margin: 0 0 .4em; font-size: 16px; }
.prose .fiche-plus p:last-child { margin-bottom: 0; }
.fiche-plus .k { font-family: var(--f-ui); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
/* pied de page : présentation, puis une colonne par section avec toutes ses rubriques ; la mention sur toute la largeur */
.ft { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 4.2fr); gap: 30px 40px; padding-block: 42px 26px; }
.ft-brand p { max-width: 34ch; }
.ft-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 26px 20px; }
.ft-col { min-width: 0; }
.ft-col b { margin-bottom: 4px; font-size: 14.5px; }
.ft-col b a { margin: 0; color: var(--c); font-weight: 800; }
.ft-col a { font-size: 13.5px; line-height: 1.35; }
.ft-note p { max-width: none; padding-top: 6px; }
@media (max-width: 860px) { .ft { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .ft-cols { grid-template-columns: 1fr 1fr; } }
/* articles longs : temps de lecture, sommaire, intertitres, chapeau, listes */
.read-time { margin: 0 0 14px; font-family: var(--f-ui); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.toc { margin: 0 0 1.8em; padding: 16px 22px 18px; background: var(--cb, var(--soft)); border-radius: var(--r-md); }
.prose .toc-t { margin: 0 0 6px; font-family: var(--f-ui); font-weight: 800; font-size: 14px; letter-spacing: .02em; color: var(--c, var(--ink)); }
.toc ol { margin: 0; padding-left: 1.4em; font-family: var(--f-ui); font-size: 15px; line-height: 1.45; }
.toc li { margin: 4px 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.prose h2 { font-family: var(--f-display); font-stretch: 80%; font-weight: 800; font-size: 28px; line-height: 1.15; color: var(--c, var(--ink)); }
.prose .long h2 { scroll-margin-top: 130px; margin: 1.9em 0 .6em; padding-top: .7em; border-top: 2px solid var(--line); }
.prose .long h3 { margin: 1.4em 0 .35em; font-size: 20px; color: var(--ink); }
.prose .long > p:first-child { font-size: 1.1em; }
.prose .long ul { margin: .2em 0 1.1em; }
.prose .long li::marker { color: var(--c, var(--ink)); }
.prose .long strong { color: var(--ink); }
/* illustration au cœur de la fiche (animaux, expressions) */
.illus { float: right; display: flex; gap: 8px; margin: 2px 0 14px 24px; padding: 14px; background: var(--cb, var(--soft)); border-radius: 22px; transform: rotate(3deg); }
.illus img { display: block; width: 84px; height: 84px; }
@media (max-width: 600px) { .illus { padding: 10px; margin-left: 14px; } .illus img { width: 60px; height: 60px; } }
/* l'illustration flottante reste dans le bloc du texte */
.prose { display: flow-root; }
/* graffiti : peint à la bombe sur un mur de briques */
.graffiti { position: relative; overflow: hidden; padding: 48px 34px; border-radius: 10px; background-color: #a4523a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40'%3E%3Cg fill='none' stroke='%23652f1f' stroke-width='3'%3E%3Cpath d='M0 1.5H80M0 21.5H80M1.5 0V20M41.5 20V40'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(135deg, #b2603f, #94462f 55%, #7f3a27); }
.prose .graffiti p, .ex-prev .graffiti p { margin: 0 0 .3em; font-family: 'Permanent Marker', 'Comic Sans MS', cursive; font-style: normal; font-weight: 400; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.25; color: #fff7d6; transform: rotate(-3deg);
  text-shadow: 3px 3px 0 #1b6f8a, -2px -2px 0 #1b6f8a, 2px -2px 0 #1b6f8a, -2px 2px 0 #1b6f8a, 0 0 18px rgba(255, 220, 120, .35); }
/* citation : l'auteur sous le bloc, avec son portrait */
.cit-auteur { display: flex; align-items: center; gap: 14px; margin: 0 0 6px; padding-left: 10px; }
.cit-auteur img { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line2); }
.prose .cit-nom, .ex-prev .cit-nom { margin: 0; font-family: var(--f-ui); font-weight: 800; font-size: 17px; color: var(--c, var(--ink)); }
.prose .cit-nom::before, .ex-prev .cit-nom::before { content: '— '; }
.prose .cit-d, .ex-prev .cit-d { margin: 2px 0 0; font-family: var(--f-ui); font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.prose .photo-credit { margin: 6px 0 1em 10px; font-family: var(--f-ui); font-size: 11.5px; color: var(--muted); }
.photo-credit a { color: inherit; }
/* illustration : drapeau d'un pays cité dans le titre */
.illus img.illus-flag { width: 104px; height: 78px; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
@media (max-width: 600px) { .illus img.illus-flag { width: 76px; height: 57px; } }
/* aperçu de l'explorateur (colonne de droite, étroite) : drapeau au-dessus de la devise, blocs resserrés */
.ex-prev figure.devise { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 18px; }
.ex-prev .devise-flag { width: 84px; height: 63px; }
.ex-prev figure.devise blockquote p { font-size: 20px; }
.ex-prev .fiche-plus { font-size: 14.5px; padding: 8px 12px; }
.ex-prev .fiche-plus p { margin: 0 0 .35em; }
.ex-prev .graffiti { padding: 30px 20px; }
.ex-prev .tomb-stone { min-height: 220px; padding: 52px 22px 34px; }
.ex-prev .solo { padding: 18px 20px; }
.ex-prev .solo p { font-size: 20px; }
.ex-prev .solo-q { padding-left: 62px; }
.ex-prev .solo-q .solo-mark { font-size: 54px; left: 16px; }
.ex-prev .cit-auteur img { width: 56px; height: 56px; }
.ex-prev .mv { padding: 14px 16px; }
.ex-prev .mv-r { font-size: 28px; }
.ex-prev .parch { margin-top: 26px; padding: 30px 22px 24px; }
.ex-prev .graffiti p.g2 { font-size: 20px; }
.ex-prev .parch .parch-v p { font-size: 17px; }
.ex-prev .illus { display: none; }
/* mot-valise : la composition en équation, chaque mot dans sa couleur */
.mv { --mv-a: var(--lettres); --mv-b: var(--expr); margin: 0 0 22px; padding: 18px 22px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.mv .mv-k { margin: 0 0 10px; font-family: var(--f-ui); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mv-eq { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.mv-w { font-family: var(--f-display); font-size: 19px; font-weight: 600; line-height: 1.2; padding: 6px 14px 7px; border-radius: 999px; border: 1.5px solid; }
.mv-a { color: var(--mv-a); border-color: color-mix(in srgb, var(--mv-a) 45%, transparent); background: color-mix(in srgb, var(--mv-a) 9%, transparent); transform: rotate(-2deg); }
.mv-b { color: var(--mv-b); border-color: color-mix(in srgb, var(--mv-b) 45%, transparent); background: color-mix(in srgb, var(--mv-b) 9%, transparent); transform: rotate(2deg); }
.mv-c { color: var(--jeux); border-color: color-mix(in srgb, var(--jeux) 45%, transparent); background: color-mix(in srgb, var(--jeux) 9%, transparent); }
.mv-op { font-family: var(--f-ui); font-size: 26px; font-weight: 300; line-height: 1; color: var(--muted); }
.mv-r { font-family: var(--f-display); font-size: clamp(30px, 4vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: .01em; color: var(--ink); }
.mv-r .a { color: var(--mv-a); }
.mv-r .b { color: var(--mv-b); }
.mv-r .ab { color: color-mix(in srgb, var(--mv-a) 50%, var(--mv-b)); text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; text-decoration-color: color-mix(in srgb, var(--mv-a) 50%, var(--mv-b)); }
.mv .mv-leg { margin: 12px 0 0; font-family: var(--f-ui); font-size: 13px; color: var(--muted); }
/* définitions : un exemple entre guillemets n'est pas numéroté */
.prose .def-list { padding-left: 0; }
.def-list li.ex { padding-left: 18px; font-style: italic; color: var(--ink2); background: transparent; }
.def-list li.ex::before { display: none; }
/* fable express : sur un parchemin */
.ex-prev .graffiti p { font-size: 23px; }
.parch { position: relative; max-width: 580px; margin: 18px auto 30px; padding: 46px 48px 34px; text-align: center; color: #3d2b12; border-radius: 4px;
  background: radial-gradient(ellipse at 50% 35%, #fdf5dc 0%, #f4e3b5 58%, #e3c98f 100%);
  box-shadow: inset 0 0 46px rgba(130, 86, 24, .38), inset 0 0 6px rgba(130, 86, 24, .4), 0 22px 30px -24px rgba(60, 40, 10, .7); }
.parch::before, .parch::after { content: ''; position: absolute; left: -16px; right: -16px; height: 24px; border-radius: 12px;
  background: linear-gradient(180deg, #c9a362 0%, #f6e7c2 42%, #d8b676 70%, #a9803f 100%); box-shadow: 0 5px 9px -5px rgba(60, 40, 10, .6); }
.parch::before { top: -12px; }
.parch::after { bottom: -12px; }
.parch .parch-k { margin: 0 0 18px; font-family: var(--f-ui); font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #8d6a2f; }
.parch .parch-v p { margin: 0 0 .2em; font-family: var(--f-display); font-style: italic; font-size: clamp(19px, 2.3vw, 23px); line-height: 1.5; color: #3d2b12; }
.parch .parch-orn { margin: 18px 0 4px; font-size: 24px; line-height: 1; color: #a57c37; }
.parch .reveal-btn.big { background: #7a2a1d; color: #fdf2dc; }
.parch .answer { margin-top: 16px; }
.parch .parch-m { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 2.1vw, 22px); letter-spacing: .05em; line-height: 1.35; color: #7a2a1d; }
@media (max-width: 600px) { .parch { padding: 38px 24px 28px; } .parch::before, .parch::after { left: -8px; right: -8px; } }
/* graffiti : la réponse écrite en dessous, d'une autre main */
.graffiti p.g-note { display: inline-block; margin: 18px 0 10px; padding: 3px 10px; border-radius: 4px; background: rgba(0, 0, 0, .28); font-family: var(--f-ui); font-style: italic; font-size: 13.5px; line-height: 1.4; color: #ffe9d6; text-shadow: none; transform: none; }
.graffiti p.g2 { margin-left: 6%; font-size: clamp(22px, 2.9vw, 30px); color: #e9ff8a; transform: rotate(2deg); text-shadow: 3px 3px 0 #6d2363, -2px -2px 0 #6d2363, 2px -2px 0 #6d2363, -2px 2px 0 #6d2363; }
/* schéma bâbord / tribord */
.schema-bord { max-width: 320px; margin: 10px auto 1.4em; text-align: center; color: var(--ink2); }
.schema-bord svg text, .schema-bord svg circle { stroke: none; }
.schema-bord svg { display: block; width: 100%; height: auto; font-family: var(--f-ui); font-size: 17px; font-weight: 700; }
.schema-bord figcaption { margin-top: 6px; font-family: var(--f-ui); font-size: 13.5px; color: var(--muted); }
.ex-prev figure.citation { padding: 22px 18px 18px 50px; }
.ex-prev figure.citation::before { left: 10px; font-size: 52px; }
.ex-prev figure.citation blockquote p, .ex-prev figure.citation blockquote p.cit-q { font-size: 19px; line-height: 1.4; }
/* cartes « Dans le même esprit » : un titre très long (citation, question) est coupé à 4 lignes */
.card h3.display { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
/* graffiti à réplique : le bouton sur le mur, la réplique peinte en dessous */
.graffiti .reveal-btn.g-btn { margin-top: 18px; background: #1b6f8a; color: #fff7d6; font-family: var(--f-ui); font-style: italic; text-transform: none; }
.graffiti .answer { margin-top: 4px; }
.cit-auteur { margin-bottom: 1.2em; }
.prose .cit-auteur .photo-credit, .ex-prev .cit-auteur .photo-credit { margin: 5px 0 0; font-family: var(--f-ui); font-size: 11.5px; line-height: 1.4; color: var(--muted); }
/* origine d'un mot : drapeau de la langue dans le badge et en tête de fiche */
.badge .badge-img { width: 20px; height: 15px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.badge .badge-img.ico { height: 20px; box-shadow: none; }
a.origine { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 8px 16px 8px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); font-family: var(--f-ui); font-size: 15.5px; font-weight: 600; }
a.origine:hover { border-color: var(--c, var(--line3)); }
a.origine::after { content: '→'; color: var(--c, var(--muted)); }
.origine .origine-img { width: 44px; height: 33px; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.origine .origine-img.ico { height: 44px; width: 44px; box-shadow: none; }
.origine .k { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
/* une citation illustrée : le bloc se range à côté de l'icône au lieu de la recouvrir */
figure.citation { display: flow-root; }
/* tableaux des articles : cadre, ligne d'en-tête colorée, lignes alternées */
.prose .tbl { margin: 6px 0 1.6em; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose .tbl table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose .tbl td, .prose .tbl th { border: 0; padding: 7px 16px; text-align: left; }
.prose .tbl thead th { background: var(--c, var(--primary)); color: var(--on-sec); font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.prose .tbl tbody tr:nth-child(even) td { background: var(--soft); }
.prose .tbl tbody td:first-child { font-weight: 700; color: var(--ink); }
@media (max-width: 600px) { .prose .tbl td, .prose .tbl th { padding: 8px 10px; } .prose .tbl table { font-size: 14.5px; } }
/* petit drapeau de la langue d'origine : filtres de l'explorateur, puces actives, lignes de résultats */
.chip-img { display: inline-block; width: 16px; height: 12px; margin-right: 5px; vertical-align: -1px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); }
.chip-img.ico { height: 16px; vertical-align: -3px; box-shadow: none; }
img.chip-img[width="14"] { width: 14px; height: 10.5px; }
img.chip-img.ico[width="14"] { height: 14px; }
/* icône au-dessus d'un bloc (citation) : peinte devant ; sur mobile, petite, en coin, la citation garde toute sa largeur */
.prose .illus { position: relative; z-index: 2; }
@media (max-width: 600px) {
  figure.citation { display: block; }
  .prose .illus:has(+ figure.citation) { margin: -6px -4px 4px 8px; padding: 6px; border-radius: 14px; }
  .prose .illus:has(+ figure.citation) img { width: 40px; height: 40px; }
}
.ex-prev a.origine { margin: 4px 0 12px; font-size: 14px; padding: 6px 12px 6px 6px; }
.ex-prev .origine .origine-img { width: 34px; height: 25.5px; }
.ex-prev .origine .origine-img.ico { width: 34px; height: 34px; }
/* article « Charades » : une carte par charade */
.charades { display: grid; gap: 18px; margin: 0 0 1.4em; }
.charades .charade-intro { margin: 0 0 4px; font-size: 18px; color: var(--ink2); }
.charade { padding: 20px 24px 20px; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--c, var(--primary)); border-radius: var(--r-lg); }
.charade .charade-n { display: inline-block; margin: 0 0 12px; padding: 3px 10px; border-radius: 6px; background: var(--c, var(--primary)); color: var(--on-sec); font-family: var(--f-ui); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-2deg); }
.charade .charade-q p { margin: 0 0 .3em; font-family: var(--f-display); font-size: 19px; line-height: 1.45; }
.charade .charade-q b { color: var(--c, var(--primary)); }
.charade .reveal-btn.big { margin-top: 12px; }
.charade .answer { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line2); }
.charade .charade-a { margin: 0 0 8px; font-family: var(--f-display); font-size: 24px; font-weight: 800; letter-spacing: .03em; color: var(--c, var(--primary)); }
.charade .charade-x { margin: 0; font-family: var(--f-ui); font-size: 14.5px; line-height: 1.55; color: var(--ink2); }
@media (max-width: 600px) { .charade { padding: 16px 16px 16px 14px; } .charade .charade-q p { font-size: 17.5px; } }
/* article « Notes de musique » : portée, cartes des vers, lecture symbolique */
.notes-art .staff { margin: 4px 0 18px; padding: 14px 10px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.notes-art .staff svg { display: block; width: 100%; height: auto; }
.notes-art .staff .lines line, .notes-art .staff .ledger { stroke: var(--ink2); stroke-width: 1.3; opacity: .55; }
.notes-art .staff .stem { stroke-width: 2.2; }
.notes-art .staff text { font-family: var(--f-ui); font-size: 15px; font-weight: 800; letter-spacing: .04em; stroke: none; }
.notes-art .staff text.clef { font-family: 'Noto Music', 'Segoe UI Symbol', 'Apple Symbols', 'Bravura', serif; font-size: 76px; font-weight: 400; fill: var(--ink); opacity: .8; }
.note-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0 0 18px; }
.note-card { padding: 14px 14px 12px; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--nc); border-radius: var(--r-md); }
.note-card .nc-n { margin: 0 0 6px; font-family: var(--f-display); font-size: 28px; font-weight: 800; line-height: 1; color: var(--nc); }
.note-card .nc-la { margin: 0 0 6px; font-family: var(--f-display); font-style: italic; font-size: 17px; line-height: 1.3; color: var(--ink); }
.note-card .nc-la b, .note-sym .ns-la b { color: var(--nc); font-weight: 800; }
.note-card .nc-fr { margin: 0; font-family: var(--f-ui); font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.prose .note-sym { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 8px; }
.prose .note-sym li { display: grid; grid-template-columns: 64px minmax(110px, 170px) 1fr; align-items: center; gap: 12px; margin: 0; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--nc); border-radius: var(--r-md); }
.note-sym .ns-n { font-family: var(--f-display); font-size: 20px; font-weight: 800; color: var(--nc); }
.note-sym .ns-la { font-family: var(--f-display); font-style: italic; font-size: 17px; }
.note-sym .ns-fr { font-family: var(--f-ui); font-size: 15px; color: var(--ink2); }
@media (max-width: 600px) { .prose .note-sym li { grid-template-columns: 52px 1fr; } .note-sym .ns-fr { grid-column: 2; } .note-cards { grid-template-columns: repeat(2, 1fr); } }
