/* Polices hébergées sur Platetrotter (licence SIL Open Font License, voir les fichiers OFL-*.txt).
   Téléchargées une fois depuis Google Fonts : aucune page n'appelle plus les serveurs de Google. */
/* Caveat, latin-ext */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/polices/caveat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Caveat, latin */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/polices/caveat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Caveat, latin-ext */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/polices/caveat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Caveat, latin */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/polices/caveat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Courier Prime, latin-ext */
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/polices/courier-prime-latin-ext-400.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Courier Prime, latin */
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/polices/courier-prime-latin-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Courier Prime, latin-ext */
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/polices/courier-prime-latin-ext-700.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Courier Prime, latin */
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/polices/courier-prime-latin-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Schibsted Grotesk, latin-ext */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/polices/schibsted-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Schibsted Grotesk, latin */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/polices/schibsted-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Schibsted Grotesk, latin-ext */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/polices/schibsted-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Schibsted Grotesk, latin */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/polices/schibsted-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Schibsted Grotesk, latin-ext */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/polices/schibsted-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Schibsted Grotesk, latin */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/polices/schibsted-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Schibsted Grotesk, latin-ext */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/polices/schibsted-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Schibsted Grotesk, latin */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/polices/schibsted-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Kaushan Script, latin (pack Japon : écriture au pinceau ; chargée seulement quand cet habillage est choisi) */
@font-face {
  font-family: 'Kaushan Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/polices/kaushan-script-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #EDF1EC; --surface: #FFFFFF; --ink: #1C2B22; --muted: #56665C; --line: #D2DAD2;
  --accent: #1E6B45; --accent-ink: #FFFFFF; --chip: #E0E8E1; --chip-on: #1C2B22; --chip-on-ink: #F3F6F2;
  --heart: #D6334A;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141B16; --surface: #1C2620; --ink: #E5ECE6; --muted: #9AA9A0; --line: #2C3831;
    --accent: #8AD4A9; --accent-ink: #0F2418; --chip: #222D26; --chip-on: #E5ECE6; --chip-on-ink: #141B16;
    --heart: #FF6F82; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141B16; --surface: #1C2620; --ink: #E5ECE6; --muted: #9AA9A0; --line: #2C3831;
  --accent: #8AD4A9; --accent-ink: #0F2418; --chip: #222D26; --chip-on: #E5ECE6; --chip-on-ink: #141B16;
  --heart: #FF6F82; color-scheme: dark;
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* En-tête */
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; padding-top: 40px; padding-bottom: 22px; flex-wrap: wrap; }
.top h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.7rem, 8vw, 4.6rem); line-height: .92; letter-spacing: -.015em; margin: 0; }
.top p { margin: .7rem 0 0; color: var(--muted); max-width: 44ch; font-size: 1.02rem; }
.surprise { border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 600; padding: 13px 22px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.surprise svg { width: 20px; height: 20px; }

/* Filtres */
.filters { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); background: color-mix(in srgb, var(--bg) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 12px 0; border-bottom: 1px solid var(--line); }
.filters .wrap { display: grid; gap: 10px; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 0 14px 0 42px; font-size: 16px; }
.search input::placeholder { color: var(--muted); }
.row { display: flex; gap: 8px; align-items: center; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.row::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; background: var(--chip); font-size: .92rem; font-weight: 500; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--chip-on); color: var(--chip-on-ink); }
.sep { flex: none; width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.seg { flex: none; display: inline-flex; background: var(--chip); border-radius: 999px; padding: 3px; }
.seg span { align-self: center; padding: 0 8px 0 10px; font-size: .86rem; color: var(--muted); white-space: nowrap; }
.seg button { border: 0; background: transparent; height: 30px; padding: 0 11px; border-radius: 999px; font-size: .88rem; font-weight: 500; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.ddrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dd-btn { height: 38px; padding: 0 11px 0 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .92rem; font-weight: 500; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.dd-btn svg { width: 16px; height: 16px; transition: transform .15s; }
.dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd-btn.on { background: var(--chip-on); color: var(--chip-on-ink); border-color: var(--chip-on); }
.dd-btn.on .nb { background: var(--chip-on-ink); color: var(--chip-on); }
.clearall { border: 0; background: none; color: var(--accent); font-weight: 600; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; padding: 0 6px; height: 38px; }
.dd-scrim { position: fixed; inset: 0; z-index: 30; }
.dd-panel { position: fixed; z-index: 31; width: 330px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 40px rgba(0,0,0,.18); padding: 8px; }
.dd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 6px 10px; }
.dd-head b { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.dd-x { display: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--chip); place-items: center; }
.dd-x svg { width: 18px; height: 18px; }
.dd-opt { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; min-height: 46px; padding: 6px 10px; border-radius: 12px; cursor: pointer; }
.dd-opt:hover { background: var(--chip); }
.dd-opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.dd-opt .cnt { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.dd-opt.zero { opacity: .45; }
.dd-note { font-size: .8rem; color: var(--muted); margin: 4px 10px 2px; line-height: 1.4; }
.dd-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 4px 2px; border-top: 1px solid var(--line); margin-top: 6px; }
.sort { flex: none; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 12px; font-size: .9rem; }

/* Grille */
.listhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.count { margin: 0; color: var(--muted); font-size: .9rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 30px 20px; padding: 14px 0 64px; }
.tile { position: relative; min-width: 0; }
.tile .open { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; border-radius: 18px; }
.tile .open:focus-visible { outline-offset: 4px; }
.media { position: relative; display: block; aspect-ratio: 6 / 5; border-radius: 18px; overflow: hidden; background: var(--chip); }
.media svg, .media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile .t { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.14rem; line-height: 1.25; margin: .75rem 0 .3rem; text-wrap: balance; }
.meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.meta .prot { color: var(--accent); font-weight: 600; }
.fav { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #1C2B22; display: grid; place-items: center; }
.fav svg { width: 20px; height: 20px; }
.fav[aria-pressed="true"] svg path, .favbtn[aria-pressed="true"] svg path { fill: var(--heart); stroke: var(--heart); }
.fav[aria-pressed="true"] svg path { fill: #D6334A; stroke: #D6334A; }
.badges { position: absolute; bottom: 10px; right: 10px; display: flex; gap: 5px; pointer-events: none; }
.bdg { background: rgba(255,255,255,.92); color: #1E6B45; font-size: .76rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.bdg.sea { background: #1E6B45; color: #fff; }
.saison { margin-bottom: 18px; }
.saison details { background: var(--chip); border-radius: 16px; }
.saison summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: .95rem; }
.saison summary::-webkit-details-marker { display: none; }
.saison summary > svg { width: 20px; height: 20px; flex: none; color: var(--accent); }
.saison summary .sl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saison summary .sl b { font-weight: 600; }
.saison summary .more { flex: none; color: var(--accent); font-weight: 600; font-size: .88rem; }
.sbody { padding: 0 16px 16px 46px; }
.sbody p { margin: 0 0 8px; max-width: 80ch; }
.sbody p b { font-weight: 600; }
.sbody .mrow { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; flex-wrap: wrap; }
.sbody select { height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 12px; font-size: .92rem; }
.seasonline { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: .93rem; padding: 10px 12px; border-radius: 12px; background: var(--chip); }
.seasonline svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent); }
.seasonline.warn svg { color: #B4691B; }
.ing .tag { display: inline-block; margin-left: 8px; font-size: .74rem; font-weight: 600; padding: 1px 7px; border-radius: 999px; vertical-align: 1px; text-decoration: none; }
.ing .tag.in { background: #DCEFE3; color: #1E6B45; }
.ing .tag.out { background: #F7E3C8; color: #8A4D0F; }
.ing .tag.imp { background: var(--chip); color: var(--muted); }
.ing .alt { display: block; font-size: .84rem; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.empty { grid-column: 1 / -1; padding: 48px 0; text-align: center; }
.empty p { color: var(--muted); margin: 0 0 16px; }
.ghost { border: 1px solid var(--line); background: var(--surface); padding: 10px 18px; border-radius: 999px; font-weight: 500; }

/* Fiche recette */
dialog.dlg { padding: 0; margin: 0; border: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; background: transparent; overflow: hidden; }
dialog.dlg::backdrop { background: rgba(14, 22, 17, .58); }
.sheet { position: absolute; inset: 0; margin: auto; width: min(1080px, calc(100% - 48px)); height: min(860px, calc(100% - 48px)); background: var(--surface); border-radius: 26px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); }
.sheet-media { position: relative; display: flex; flex-direction: column; min-height: 0; }
.sheet-media .frame { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sheet-media .frame svg { width: 100%; height: auto; display: block; }
.sheet-media .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet-media .frame.ill { position: relative; }
.sheet-media .frame.ill .blur { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); filter: blur(28px) saturate(1.1); opacity: .9; }
.sheet-media .frame.ill .main { position: relative; object-fit: contain; }
.media-actions { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.pill { border: 0; background: rgba(255,255,255,.94); color: #1C2B22; font-weight: 600; font-size: .9rem; padding: 10px 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.pill svg { width: 18px; height: 18px; }
.close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); color: #1C2B22; display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.14); }
.close svg { width: 20px; height: 20px; }
.sheet-body { overflow-y: auto; padding: 40px 44px 44px; min-height: 0; overscroll-behavior: contain; }
.sheet-body h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.08; margin: 0; text-wrap: balance; padding-right: 8px; }
.pitch { color: var(--muted); margin: .7rem 0 0; font-size: 1.04rem; max-width: 52ch; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 24px 0 26px; }
.fact { padding: 12px 10px 12px 0; min-width: 0; }
.fact + .fact { padding-left: 14px; border-left: 1px solid var(--line); }
.fact b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.55rem; line-height: 1.15; white-space: nowrap; }
.fact span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.3; }
.fact.p b { color: var(--accent); }
.servrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.servrow h3, .sheet-body h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; margin: 0; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--chip); font-size: 1.25rem; line-height: 1; display: grid; place-items: center; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-width: 112px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.hint { font-size: .84rem; color: var(--muted); margin: 0 0 6px; }
.ing { list-style: none; margin: 0 0 30px; padding: 0; }
.ing button { width: 100%; display: grid; grid-template-columns: 7.2rem 1fr; gap: 12px; align-items: baseline; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 10px 0; }
.ing .q { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.ing .q.soft { font-weight: 400; color: var(--muted); font-size: .9rem; }
.ing button[aria-pressed="true"] { opacity: .42; }
.ing button[aria-pressed="true"] .n { text-decoration: line-through; }
.steps { list-style: none; margin: 8px 0 26px; padding: 0; }
.steps li.step { display: grid; grid-template-columns: 2.4rem 1fr; gap: 8px; padding: 10px 0; cursor: pointer; }
.steps .num { border: 0; background: none; padding: 0; width: 2.2rem; height: 1.9rem; text-align: left; align-self: start; font-family: var(--serif); color: var(--accent); font-size: 1.25rem; line-height: 1.3; }
.steps .stxt p { margin: 0; line-height: 1.6; }
.steps li.done .num, .steps li.done .stxt p { opacity: .42; }
.term { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: help; text-decoration: underline dotted var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.term[aria-expanded="true"] { color: var(--accent); }
.def { margin: 10px 0 2px; padding: 12px 14px; background: var(--chip); border-radius: 14px; font-size: .93rem; line-height: 1.5; cursor: default; }
.def b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.05rem; margin-bottom: 2px; }
.linkish { border: 0; background: none; padding: 0; margin-top: 6px; color: var(--accent); font-weight: 600; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; }
.prephead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gsearch { margin: 4px 0 12px; }
.gl { padding: 16px 0; border-bottom: 1px solid var(--line); }
.gl h3 { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; margin: 0 0 4px; }
.gl p { margin: 0; }
.gl .used { margin-top: 8px; font-size: .86rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.gl .used button { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 500; font-size: .86rem; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.gl.flash { background: var(--chip); border-radius: 12px; padding-left: 12px; padding-right: 12px; transition: background .6s; }
.gempty { color: var(--muted); padding: 20px 0; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; }
.foot p { margin: 0; font-size: .82rem; color: var(--muted); max-width: 42ch; }
.favbtn { border: 1px solid var(--line); background: var(--surface); padding: 10px 16px; border-radius: 999px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.favbtn svg { width: 18px; height: 18px; }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--chip-on); color: var(--chip-on-ink); padding: 11px 18px; border-radius: 999px; font-size: .92rem; font-weight: 500; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Liste de courses */
.top-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.secondary { border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; padding: 12px 20px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.secondary svg { width: 20px; height: 20px; }
.nb { background: var(--accent); color: var(--accent-ink); border-radius: 999px; min-width: 22px; height: 22px; padding: 0 7px; font-size: .8rem; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.fav.cart { top: 58px; }
.cart[aria-pressed="true"] { background: #1E6B45; color: #fff; }
.fav.cart[aria-pressed="true"] svg path { fill: none; stroke: #fff; }
.floatbar { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 20; border: 0; background: var(--chip-on); color: var(--chip-on-ink); padding: 14px 22px; border-radius: 999px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.22); display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.floatbar svg { width: 20px; height: 20px; }
.floatbar[hidden] { display: none; }
body.has-bar .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
body.has-bar main { padding-bottom: 70px; }
.cartbtn { border: 0; background: var(--accent); color: var(--accent-ink); padding: 11px 18px; border-radius: 999px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.cartbtn[aria-pressed="true"] { background: var(--chip); color: var(--ink); }
.cartbtn svg { width: 18px; height: 18px; }
.foot-actions { display: flex; gap: 8px; flex-wrap: wrap; }
dialog.side .sheet { display: block; inset: 0 0 0 auto; margin: 0; width: min(580px, 100%); height: 100%; border-radius: 24px 0 0 24px; overflow-y: auto; overscroll-behavior: contain; padding: 30px 32px calc(40px + env(safe-area-inset-bottom, 0px)); }
dialog.side[open] .sheet { animation: slide .26s cubic-bezier(.2,.8,.2,1); }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.lsheet h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.3rem); line-height: 1.1; margin: 0 56px 6px 0; }
.lsum { color: var(--muted); margin: 0 0 18px; }
.plan { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line); }
.plan li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.plan .thumb { width: 64px; aspect-ratio: 6 / 5; border-radius: 10px; overflow: hidden; display: block; }
.plan .thumb svg, .plan .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plan .pn { font-family: var(--serif); font-size: 1.02rem; line-height: 1.25; display: block; }
.plan small { display: block; color: var(--muted); font-size: .8rem; margin: 2px 0 8px; }
.plan .rm { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; align-self: start; }
.plan .rm svg { width: 16px; height: 16px; }
.stepper.sm button { width: 32px; height: 32px; font-size: 1.1rem; }
.stepper.sm output { min-width: 96px; font-size: .9rem; }
.lactions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.lactions .cartbtn, .lactions .ghost { padding: 11px 18px; }
.ray { margin-top: 22px; }
.ray h3 { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; margin: 0 0 4px; }
.ray .ing { margin-bottom: 0; }
.ray.placard h3 { color: var(--muted); }
.copybox { width: 100%; min-height: 180px; margin: 10px 0 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 12px; font: inherit; font-size: .9rem; }
.lempty { padding: 30px 0; }
.lempty p { color: var(--muted); margin: 0 0 16px; max-width: 40ch; }

@media (min-width: 821px) {
  dialog.dlg[open] .sheet { animation: rise .28s cubic-bezier(.2,.8,.2,1); }
}
@keyframes rise { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 820px) {
  .sheet-media .frame.ill .main { object-fit: cover; }
  .sheet { width: 100%; height: 100%; border-radius: 0; grid-template-columns: 1fr; display: block; overflow-y: auto; overscroll-behavior: contain; }
  .sheet-media .frame { aspect-ratio: 6 / 5; padding-top: env(safe-area-inset-top, 0px); }
  .sheet-body { overflow: visible; padding: 26px 20px calc(40px + env(safe-area-inset-bottom, 0px)); }
  .close { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .dd-scrim { background: rgba(14, 22, 17, .45); }
  .dd-panel { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: 100%; max-width: none; border-radius: 22px 22px 0 0; border-bottom: 0; padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0px)); max-height: 85vh; overflow-y: auto; }
  .dd-x { display: grid; }
  .dd-foot .cartbtn { flex: 1; justify-content: center; }
  .dd-btn { height: 36px; padding: 0 9px 0 13px; font-size: .88rem; }
  .ddrow { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
  .ddrow::-webkit-scrollbar { display: none; }
  .dd-btn, .clearall { flex: none; }
  .clearall { order: -1; padding-left: 0; }
  .sbody { padding-left: 16px; }
  .saison summary .more { display: none; }
  .top { padding-top: 28px; }
  .top-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .top-actions .surprise { grid-column: 1 / -1; }
  .top-actions #openList { grid-column: 1 / -1; }  /* cinq boutons : la liste de courses prend toute la ligne */
  .surprise { grid-column: auto; }
  .surprise, .secondary { justify-content: center; padding-left: 12px; padding-right: 12px; }
  dialog.side .sheet { width: 100%; border-radius: 0; padding: calc(24px + env(safe-area-inset-top, 0px)) 20px calc(40px + env(safe-area-inset-bottom, 0px)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .tile .t { font-size: 1rem; }
  .meta { font-size: .8rem; gap: 0 10px; }
  .fav { width: 34px; height: 34px; top: 8px; right: 8px; }
  .fav svg { width: 17px; height: 17px; }
  .fav.cart { top: 48px; }
  .veg { bottom: 8px; right: 8px; font-size: .7rem; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ing button { grid-template-columns: 6.8rem 1fr; }
}

/* ================= Style carnet de recettes ================= */
:root {
  --bg: #F2EADB; --surface: #FBF7EE; --ink: #2B2621; --muted: #6B6153; --line: #DACDB6;
  --accent: #2C4C8C; --accent-ink: #FFFFFF; --chip: #E9DEC9; --chip-on: #2B2621; --chip-on-ink: #FBF7EE;
  --kraft: #E3D3B6; --rule: rgba(44, 76, 140, .2); --heart: #D6334A;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --type: "Courier Prime", "Courier New", monospace;
  --serif: var(--hand);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .18 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1E1B17; --surface: #2A2621; --ink: #EFE7D8; --muted: #B4A892; --line: #4A4238;
    --accent: #A3BCF0; --accent-ink: #14213D; --chip: #36302A; --chip-on: #EFE7D8; --chip-on-ink: #1E1B17;
    --kraft: #3A3229; --rule: rgba(163, 188, 240, .16);
  }
}
:root[data-theme="dark"] {
  --bg: #1E1B17; --surface: #2A2621; --ink: #EFE7D8; --muted: #B4A892; --line: #4A4238;
  --accent: #A3BCF0; --accent-ink: #14213D; --chip: #36302A; --chip-on: #EFE7D8; --chip-on-ink: #1E1B17;
  --kraft: #3A3229; --rule: rgba(163, 188, 240, .16);
}
html, body { background-color: var(--bg); }
body, .filters { background-image: var(--grain); background-size: 220px 220px; background-attachment: fixed; }

/* En-tête */
.top h1 { font-family: var(--hand); font-weight: 700; font-size: clamp(3.8rem, 11vw, 6.2rem); line-height: .8; letter-spacing: 0; }
.squiggle { display: block; width: min(300px, 70%); height: 18px; margin-top: 2px; color: var(--accent); }
.top p { font-family: var(--hand); font-size: 1.55rem; line-height: 1.1; color: var(--muted); max-width: 30ch; }
.secondary, .surprise { border-radius: 10px; border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.secondary:hover, .surprise:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.surprise { background: var(--accent); color: var(--accent-ink); }

/* Post-it de saison */
.saison details { position: relative; background: #FBEDA6; color: #2B2621; border-radius: 2px; box-shadow: 0 8px 16px -8px rgba(60, 40, 20, .45); }
.saison details::before { content: ""; position: absolute; top: -11px; left: 26px; width: 84px; height: 24px; background: rgba(160, 190, 150, .75); transform: rotate(-4deg); clip-path: polygon(3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 94%, 0 50%); }
.saison summary > svg { color: #3E7D4F; }
.saison summary .more { color: #2C4C8C; }
.saison .hint { color: #6B6153; }
.sbody select { background: #FFFDF5; color: #2B2621; border-color: #2B2621; }

/* Barre de filtres */
.filters { background-color: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1.5px dashed var(--line); }
.search input, .sort { border: 1.5px solid var(--ink); border-radius: 10px; background: var(--surface); }
.dd-btn { border-radius: 9px; border: 1.5px solid var(--ink); background: var(--surface); box-shadow: 2px 2px 0 var(--ink); }
.dd-btn.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.dd-btn.on .nb { background: var(--bg); color: var(--ink); }
.dd-panel { background-color: var(--surface); background-image: var(--grain); border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); }
.dd-head b { font-family: var(--hand); font-weight: 700; font-size: 1.6rem; }
.nb { background: var(--accent); color: var(--accent-ink); }
.cartbtn { border-radius: 10px; }
.ghost, .favbtn { border: 1.5px solid var(--ink); border-radius: 10px; }

/* Vignettes : photos scotchées ou punaisées */
.grid { gap: 46px 30px; padding-top: 30px; }
.tile .open { background: #FFFDF8; padding: 10px 10px 14px; border-radius: 3px; box-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 10px 20px -8px rgba(60, 40, 20, .35); transform: rotate(var(--rot, 0deg)); transition: transform .25s ease; }
.tile .open:hover { transform: rotate(0deg) translateY(-3px); }
.media { border-radius: 2px; }
.tile .t { font-family: var(--hand); font-weight: 700; font-size: 1.6rem; line-height: 1; color: #2B2621; margin: .6rem 2px .3rem; }
.meta { font-family: var(--type); font-size: .8rem; color: #6B6153; gap: 0 12px; padding: 0 2px; }
.meta .prot { color: #2C4C8C; font-weight: 700; }
.tile.r0 { --rot: -2deg; } .tile.r1 { --rot: 1.4deg; } .tile.r2 { --rot: -.8deg; } .tile.r3 { --rot: 2.1deg; } .tile.r4 { --rot: -1.5deg; } .tile.r5 { --rot: .7deg; }
.tile.tape::before { content: ""; position: absolute; z-index: 3; top: -13px; left: calc(50% + var(--tx, 0px)); width: 92px; height: 26px; transform: translateX(-50%) rotate(var(--tr, -3deg)); background: var(--tc); clip-path: polygon(3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 94%, 0 50%); pointer-events: none; }
.tile.t0 { --tc: rgba(232, 193, 98, .78); --tr: -4deg; --tx: -8px; }
.tile.t1 { --tc: rgba(158, 192, 150, .78); --tr: 3deg; --tx: 10px; }
.tile.t2 { --tc: rgba(232, 160, 160, .75); --tr: -2deg; --tx: 0px; }
.tile.t3 { --tc: rgba(150, 182, 220, .78); --tr: 5deg; --tx: -14px; }
.tile.pin::before { content: ""; position: absolute; z-index: 3; top: -8px; left: calc(50% + var(--px, 0px)); width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, rgba(255, 255, 255, .75) 0 2px, var(--pc) 3.2px 100%); box-shadow: 1px 3px 3px rgba(0, 0, 0, .35); pointer-events: none; }
.tile.p0 { --pc: #D9483B; --px: -10px; } .tile.p1 { --pc: #2F6FB5; --px: 8px; } .tile.p2 { --pc: #E2A91F; --px: -2px; }
.fav { top: 18px; right: 18px; background: #FFFDF8; border: 1.5px solid #2B2621; box-shadow: 1.5px 1.5px 0 #2B2621; }
.fav.cart { top: 64px; }
.bdg { background: rgba(255, 253, 248, .9); color: #2C4C8C; border: 2px solid currentColor; border-radius: 4px; font-family: var(--type); font-weight: 700; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; transform: rotate(-6deg); }
.bdg.sea { background: rgba(255, 253, 248, .9); color: #2F7A4A; }

/* Fiche recette : page de carnet */
.sheet, dialog.side .sheet { background-color: var(--surface); background-image: var(--grain); color: var(--ink); }
.sheet-media { background-color: var(--surface); background-image: linear-gradient(to right, transparent 46px, var(--margin-line) 46px 48px, transparent 48px), repeating-linear-gradient(to bottom, transparent 0 33px, var(--rule-line) 33px 34px), var(--grain); box-shadow: inset -14px 0 18px -14px rgba(40, 25, 10, .45); }
.sheet-media .frame { padding: 44px 40px 84px; }
.pola { position: relative; background: #FFFDF8; padding: 12px 12px 16px; width: min(100%, 470px); box-shadow: 0 14px 28px -10px rgba(40, 25, 10, .5); transform: rotate(-2deg); }
.pola img, .pola svg { display: block; width: 100% !important; height: auto !important; max-height: 60vh; object-fit: cover; }
.pola::before { content: ""; position: absolute; z-index: 2; top: -15px; left: 50%; width: 112px; height: 30px; transform: translateX(-50%) rotate(3deg); background: rgba(232, 193, 98, .8); clip-path: polygon(3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 94%, 0 50%); }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0; }
label.pill, label.ghost { cursor: pointer; }
.pill { border: 1.5px solid #2B2621; box-shadow: 2px 2px 0 #2B2621; border-radius: 10px; }
.close { border: 1.5px solid #2B2621; }
.sheet-body h2 { font-family: var(--hand); font-weight: 700; font-size: clamp(2.5rem, 4.6vw, 3.3rem); line-height: .95; }
.servrow h3, .sheet-body h3, .ray h3, .gl h3 { font-family: var(--hand); font-weight: 700; font-size: 1.85rem; line-height: 1.1; }
.fact b { font-family: var(--hand); font-weight: 700; font-size: 2.1rem; line-height: 1; }
.fact span { font-family: var(--type); font-size: .74rem; }
.facts, .fact + .fact, .foot { border-color: var(--line); }
.ing button { border-bottom: 1px solid var(--rule); }
.ing .q { font-family: var(--type); font-weight: 700; font-size: .92rem; }
.steps .num { font-family: var(--hand); font-weight: 700; font-size: 1.85rem; line-height: 1; }
.def { background: #FBEDA6; color: #2B2621; border-radius: 2px; box-shadow: 0 6px 12px -8px rgba(60, 40, 20, .45); }
.def b { font-family: var(--hand); font-weight: 700; font-size: 1.45rem; }
.def .linkish { color: #2C4C8C; }
.seasonline { background: var(--chip); border-radius: 4px; }
.lsheet h2 { font-family: var(--hand); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3rem); line-height: 1; }
.plan .pn { font-family: var(--hand); font-weight: 700; font-size: 1.45rem; line-height: 1.05; }
.plan .thumb { border-radius: 2px; box-shadow: 0 0 0 4px #FFFDF8, 0 4px 10px -2px rgba(40, 25, 10, .4); transform: rotate(-3deg); }
.floatbar { border-radius: 12px; background: var(--accent); color: var(--accent-ink); border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.floatbar .nb { background: var(--accent-ink); color: var(--accent); }
.toast { border-radius: 10px; }

/* Fond de carte façon carnet de voyage */
body { position: relative; }
.mapbg { position: absolute; top: 0; left: 0; right: 0; height: 660px; z-index: 0; pointer-events: none; overflow: hidden; color: #6B5233;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 98%); mask-image: linear-gradient(to bottom, #000 45%, transparent 98%); }
.mapbg svg { display: block; width: 100%; height: 100%; }
.mapbg .grat { fill: none; stroke: currentColor; stroke-opacity: .13; stroke-width: 1; stroke-dasharray: 2 6; }
.mapbg .land { fill: currentColor; fill-opacity: .07; stroke: currentColor; stroke-opacity: .3; stroke-width: 1; stroke-linejoin: round; }
.mapbg .route { fill: none; stroke: var(--accent); stroke-opacity: .38; stroke-width: 1.8; stroke-dasharray: 7 7; stroke-linecap: round; }
.mapbg .stops circle { fill: var(--bg); stroke: var(--accent); stroke-opacity: .6; stroke-width: 2; }
.mapbg .rose circle, .mapbg .rose path { stroke: currentColor; stroke-opacity: .35; stroke-width: 1.2; }
.mapbg .rose path { fill: currentColor; fill-opacity: .12; }
.mapbg .rose text { fill: currentColor; fill-opacity: .45; font-family: var(--hand); font-weight: 700; font-size: 26px; }
header.top, .saison, main { position: relative; z-index: 1; }
.top h1, .top p, .count { text-shadow: 0 0 3px var(--bg), 0 0 8px var(--bg), 0 0 14px var(--bg); }
#filtersSentinel { height: 1px; }
.filters { background: transparent; background-image: none; }
.filters.stuck { background-color: var(--bg); background-image: var(--grain); background-size: 220px 220px; background-attachment: fixed; }
/* Lignes de carnet sous l'en-tête */
:root { --rule-line: rgba(44, 76, 140, .16); --margin-line: rgba(214, 51, 74, .38); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --rule-line: rgba(163, 188, 240, .11); --margin-line: rgba(255, 111, 130, .3); } }
:root[data-theme="dark"] { --rule-line: rgba(163, 188, 240, .11); --margin-line: rgba(255, 111, 130, .3); }
.ruled { position: relative; }
.ruled::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, transparent 0 33px, var(--rule-line) 33px 34px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 160px); mask-image: linear-gradient(to bottom, transparent 0, #000 160px); }
.ruled main { position: relative; z-index: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mapbg { color: #CDB78F; } }
:root[data-theme="dark"] .mapbg { color: #CDB78F; }

/* Budget en pièces d'or */
.money { font-family: var(--type); font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.money .on, .money .off { display: inline; font: inherit; color: #A26A0E; }
.money .off { opacity: .28; }
.meta .money { font-size: .9rem; }
.meta .budget { display: inline-flex; align-items: baseline; }
.fact .lvb { display: flex; align-items: baseline; gap: 6px; color: var(--muted); }
.fact .lvb .money { display: inline; font-size: .9rem; line-height: 1.3; }
.fact .lvb .money span { display: inline; font-size: inherit; line-height: inherit; }

/* Région du monde */
.top { position: relative; }
.topright { position: absolute; top: 18px; right: 20px; z-index: 2; display: flex; gap: 8px; }
.userbtn { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--surface); box-shadow: 2px 2px 0 var(--ink); display: grid; place-items: center; padding: 0; }
.userbtn svg { width: 18px; height: 18px; color: var(--accent); }
.langsel { -webkit-appearance: none; appearance: none; height: 36px; padding: 0 30px 0 13px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%236B6153' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 13px; box-shadow: 2px 2px 0 var(--ink); color: var(--ink); font-weight: 600; font-size: .86rem; cursor: pointer; }
.regionbtn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 11px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--surface); box-shadow: 2px 2px 0 var(--ink); font-weight: 600; font-size: .9rem; }
.regionbtn svg { width: 18px; height: 18px; color: var(--accent); }
.mapbg .rlabs { display: none; }
.mapbg .land.sel { fill: var(--accent); fill-opacity: .13; }
dialog.pick.wide .sheet { width: min(980px, calc(100% - 32px)); }
.rmap { margin: 6px 0 14px; border-radius: 12px; overflow: hidden; background: #EAF0F2; border: 1.5px solid #CBD7DB; animation: unveil .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes unveil { from { clip-path: inset(0 50% 0 50%); opacity: .3; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
.rmap svg { display: block; width: 100%; height: auto; }
.rmap .grat { fill: none; stroke: #9DB2B8; stroke-opacity: .35; stroke-dasharray: 2 6; }
.rmap .route, .rmap .stops, .rmap .rose { display: none; }
.rmap .land { fill: #E3D3B4; stroke: #8A6E4B; stroke-width: 1; cursor: pointer; transition: fill .15s; }
.rmap .land.hover { fill: #F2C14E; }
.rmap .land.sel { fill: #2C4C8C; stroke: #1E3561; }
.rmap .rlab { font-family: var(--hand); font-weight: 700; font-size: 38px; fill: #2B2621; pointer-events: none; paint-order: stroke; stroke: #FBF7EE; stroke-width: 7px; stroke-linejoin: round; }
.rmap .rlab.sel { fill: #2C4C8C; }
.rlist .chip[aria-pressed="true"] { background: #2C4C8C; color: #fff; }
@media (max-width: 560px) {
  .topright { top: 14px; right: 16px; gap: 6px; }
  .regionbtn, .langsel { height: 34px; font-size: .84rem; }
  .userbtn { width: 34px; height: 34px; }
  .regionbtn { padding: 0 12px 0 9px; }
  .langsel { padding: 0 26px 0 10px; background-position: right 8px center; }
  .top h1 { margin-top: 36px; }
  .rmap .rlab { font-size: 52px; stroke-width: 9px; }
  dialog.pick.wide .sheet { width: 100%; }
}

/* Profil et placard */
.usec { border-top: 1.5px dashed var(--line); padding: 14px 0 6px; }
.usec h3 { font-family: var(--hand); font-weight: 700; font-size: 1.6rem; line-height: 1.1; margin: 0 0 4px; }
.usec h4 { font-family: var(--type); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 12px 0 6px; }
.udef { margin: 6px 0 10px; font-family: var(--hand); font-size: 1.35rem; color: var(--accent); line-height: 1.2; }
.udef.none { color: var(--muted); }
.ubtns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.pantry-note { margin: 18px 0 0; font-size: .86rem; color: var(--muted); }

/* Pied de page */
.sitefoot { position: relative; z-index: 1; padding-top: 8px; padding-bottom: 48px; color: var(--muted); font-size: .86rem; }
.sitefoot p { max-width: 72ch; margin: 0 0 6px; }
.sitefoot .hand { font-family: var(--hand); font-weight: 700; font-size: 1.45rem; color: var(--ink); margin-bottom: 4px; }
body.has-bar .sitefoot { padding-bottom: 110px; }
body.has-bar main { padding-bottom: 0; }

/* Planning de la semaine */
.fav.agenda { top: 110px; }
.fav.agenda[aria-pressed="true"] { background: #1E6B45; color: #fff; }
.fav.agenda[aria-pressed="true"] svg path, .fav.agenda[aria-pressed="true"] svg rect { fill: none; stroke: #fff; }
.badges { left: 10px; right: auto; }
dialog.page .sheet { display: block; width: min(1300px, calc(100% - 32px)); height: calc(100% - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 30px 32px 40px; background-image: repeating-linear-gradient(to bottom, transparent 0 33px, var(--rule-line) 33px 34px), var(--grain); }
.whead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-right: 56px; }
.whead h2 { font-family: var(--hand); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: 1; margin: 0; }
.wnav { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wnav .arrow, .pnav button { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--surface); font-size: 1.3rem; line-height: 1; display: grid; place-items: center; padding: 0; }
.wnav .wlab { font-family: var(--hand); font-weight: 700; font-size: 1.55rem; line-height: 1; min-width: 13ch; text-align: center; }
.wactions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.wsum { color: var(--muted); margin: 12px 0 18px; max-width: 70ch; }
.wgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; align-items: start; }
.wday { background: #FFFDF8; color: #2B2621; border-radius: 3px; padding: 10px 10px 8px; box-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 8px 16px -8px rgba(60, 40, 20, .35); display: flex; flex-direction: column; min-width: 0; min-height: 100%; }
.wday header { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; border-bottom: 1.5px dashed rgba(43, 38, 33, .25); padding-bottom: 6px; margin-bottom: 2px; }
.wdn { position: relative; font-family: var(--hand); font-weight: 700; font-size: 1.55rem; line-height: 1; }
.wday.today .wdn::after { content: ""; position: absolute; inset: -6px -10px; border: 2px solid #B3261E; border-radius: 50%; transform: rotate(-4deg); opacity: .75; }
.wdd { font-family: var(--type); font-size: .76rem; color: #6B6153; }
.wday.past { opacity: .6; }
.wslot { padding: 7px 0 6px; border-bottom: 1px solid rgba(44, 76, 140, .15); }
.wsl { font-family: var(--type); font-weight: 700; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #8A7D6A; margin-bottom: 4px; }
.went { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; align-items: start; margin-bottom: 7px; }
.wthumb { padding: 0; border: 0; background: none; width: 40px; aspect-ratio: 6 / 5; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 2px #FFFDF8, 0 2px 6px rgba(40, 25, 10, .35); }
.wthumb img, .wthumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.wname { border: 0; background: none; padding: 0; text-align: left; font-family: var(--hand); font-weight: 700; font-size: 1.12rem; line-height: 1.05; color: #2B2621; }
.wctl { grid-column: 1 / -1; white-space: nowrap; display: flex; align-items: center; gap: 4px; margin-top: 1px; font-family: var(--type); font-size: .72rem; color: #6B6153; }
.wctl button { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #CDBFA8; background: #FFFDF8; color: #2B2621; font-size: .85rem; line-height: 1; display: grid; place-items: center; padding: 0; }
.wctl button:disabled { opacity: .35; cursor: default; }
.wctl .wrm { margin-left: auto; }
.wctl .wrm svg { width: 11px; height: 11px; }
.wadd { width: 100%; text-align: left; border: 1.5px dashed #CDBFA8; border-radius: 6px; background: none; color: #2C4C8C; font-family: var(--hand); font-weight: 700; font-size: 1.08rem; padding: 1px 8px; }
.wadd:hover { background: rgba(44, 76, 140, .06); }
.wday footer { margin-top: auto; padding-top: 7px; font-family: var(--type); font-weight: 700; font-size: .72rem; color: #2C4C8C; }
.wday footer.none { color: #A39582; font-weight: 400; }
dialog.pick .sheet { display: block; width: min(470px, calc(100% - 32px)); height: fit-content; max-height: calc(100% - 48px); overflow-y: auto; padding: 26px 24px 22px; border-radius: 16px; }
dialog.pick .close { position: absolute; top: 12px; right: 12px; }
.psheet h2 { font-family: var(--hand); font-weight: 700; font-size: 2.2rem; line-height: 1; margin: 0 52px 8px 0; }
.pname { font-weight: 600; margin: 0 0 14px; }
.pnav { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pnav span { flex: 1; text-align: center; font-family: var(--hand); font-weight: 700; font-size: 1.35rem; line-height: 1; }
.pchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pchips .chip { height: 34px; padding: 0 11px; font-size: .86rem; }
.pfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 6px 0 16px; }
.pok { width: 100%; justify-content: center; }
.plist { display: flex; flex-direction: column; margin-top: 10px; max-height: 56vh; overflow-y: auto; }
.prec { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; text-align: left; border: 0; border-bottom: 1px solid var(--rule); background: none; padding: 8px 2px; color: inherit; }
.prec:hover { background: var(--chip); }
.prec .thumb { width: 56px; aspect-ratio: 6 / 5; overflow: hidden; border-radius: 2px; display: block; }
.prec .thumb img, .prec .thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.prec .pn { font-family: var(--hand); font-weight: 700; font-size: 1.3rem; line-height: 1.05; display: block; }
.prec small { display: block; font-family: var(--type); font-size: .72rem; color: var(--muted); margin-top: 2px; }
.lweek { border: 1.5px dashed var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 16px; }
.lweek b { font-family: var(--hand); font-size: 1.45rem; font-weight: 700; display: block; line-height: 1.1; }
.lweek p { margin: 2px 0 8px; color: var(--muted); font-size: .9rem; }
.lsub { font-family: var(--hand); font-weight: 700; font-size: 1.45rem; margin: 6px 0 2px; }
@media (max-width: 1150px) { .wgrid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }

/* Mon carnet */
dialog.page.journal .sheet { display: flex; flex-direction: column; overflow: hidden; padding: 20px 24px 16px; background-color: #4A3A2C; background-image: var(--grain); color: #F3EADB; }
.jhead { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-right: 56px; }
.jhead h2 { font-family: var(--hand); font-weight: 700; font-size: clamp(2.3rem, 4vw, 3rem); line-height: 1; margin: 0; color: #F3EADB; }
.bookwrap { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; perspective: 2400px; padding: 14px 0 6px; touch-action: pan-y; }
.book { position: relative; flex: none; background: #6B3F26; border-radius: 12px; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .7), inset 0 0 0 2px rgba(255, 255, 255, .06); }
.book::after { content: ""; position: absolute; top: 6px; bottom: 6px; left: 50%; width: 2px; transform: translateX(-1px); background: rgba(0, 0, 0, .35); z-index: 1; }
.book.single::after { display: none; }
.pg, .leaf { position: absolute; top: 10px; bottom: 10px; }
.pg.L { left: 10px; right: 50%; }
.pg.R { left: 50%; right: 10px; }
.pg.S, .book.single .leaf { left: 10px; right: 10px; }
.leaf { left: 50%; right: 10px; z-index: 5; transform-origin: left center; transform-style: preserve-3d; }
.leaf.turning { transition: transform .8s cubic-bezier(.45, .05, .3, 1); }
.leaf .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.leaf .back { transform: rotateY(180deg); }
.leaf .face::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(to right, rgba(40, 25, 10, .28), transparent 22%); }
.leaf .back::after { background: linear-gradient(to left, rgba(40, 25, 10, .28), transparent 22%); }
/* L'ombre du pli vient quand la page se soulève et s'efface quand elle se pose : rien n'apparaît ni ne disparaît d'un coup. */
.leaf.turning .face::after { animation: pli .8s ease-in-out both; }
@keyframes pli { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.pgin { position: absolute; inset: 0; overflow: hidden; padding: 26px 26px 30px 54px; color: #2B2621; border-radius: 4px;
  background-color: #FBF7EE; background-image: linear-gradient(to right, transparent 38px, rgba(214, 51, 74, .35) 38px 40px, transparent 40px), repeating-linear-gradient(to bottom, transparent 0 33px, rgba(44, 76, 140, .16) 33px 34px), var(--grain); }
.pg.L .pgin, .leaf .back .pgin { box-shadow: inset -16px 0 20px -16px rgba(40, 25, 10, .45); }
.pg.R .pgin, .leaf .front .pgin { box-shadow: inset 16px 0 20px -16px rgba(40, 25, 10, .35); }
.pgin.kraft { background-color: #C9A57A; background-image: var(--grain); display: grid; place-items: center; padding: 26px; }
.pgin.blank { background-image: repeating-linear-gradient(to bottom, transparent 0 33px, rgba(44, 76, 140, .16) 33px 34px), var(--grain); }
.jlabel { background: #FBF7EE; border: 1.5px solid #2B2621; padding: 22px 30px 18px; text-align: center; transform: rotate(-2deg); box-shadow: 3px 3px 0 #2B2621; }
.jlabel span { display: block; font-family: var(--hand); font-weight: 700; font-size: 2.6rem; line-height: .95; }
.jlabel small { display: block; margin-top: 10px; font-family: var(--type); font-size: .8rem; color: #6B6153; }
.jsomm h3 { font-family: var(--hand); font-weight: 700; font-size: 1.9rem; line-height: 34px; margin: 0 0 0; }
.jsomm { height: 100%; overflow-y: auto; }
.jsrow { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: end; gap: 6px; width: 100%; height: 34px; padding: 0 0 5px; border: 0; background: none; text-align: left; color: #2B2621; font-family: var(--hand); font-size: 1.35rem; line-height: 1; }
.jsrow .jst { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jsrow .jss { font-size: .82rem; color: #C98A1C; letter-spacing: 1px; font-family: var(--sans); }
.jsrow:hover .jst { text-decoration: underline; }
.jempty { font-family: var(--hand); font-size: 1.45rem; line-height: 34px; color: #2C4C8C; margin: 0; }
.jtopcover { font-family: var(--hand); margin-bottom: 2px; }
.jtopcover b { display: block; font-weight: 700; font-size: 2.2rem; line-height: 34px; }
.jtopcover small { display: block; font-family: var(--type); font-size: .78rem; line-height: 34px; color: #6B6153; }
.jphoto { height: 100%; display: flex; align-items: center; justify-content: center; }
.book .pola { width: min(86%, 380px); }
.book .pola img, .book .pola svg { aspect-ratio: 4 / 3; max-height: none; object-fit: cover; }
.book .stamp { animation: none; }
.jtitle { font-family: var(--hand); font-weight: 700; font-size: 2.15rem; line-height: 34px; margin: 0; }
.jstars { font-size: 1.5rem; line-height: 34px; color: #C98A1C; letter-spacing: 3px; }
.jdate { font-family: var(--type); font-size: .8rem; line-height: 34px; color: #6B6153; }
.jnote { font-family: var(--hand); font-size: 1.55rem; line-height: 34px; color: #2C4C8C; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.jnote.soft { color: #A39582; }
.jlinks { position: absolute; left: 54px; right: 26px; bottom: 30px; display: flex; gap: 18px; flex-wrap: wrap; }
.jlinks .linkish { color: #2C4C8C; }
.pgnum { position: absolute; bottom: 9px; right: 18px; font-family: var(--type); font-size: .72rem; color: #8A7D6A; }
.jnew { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding-left: 0; }
.jnew p, .jfin { font-family: var(--hand); font-weight: 700; font-size: 1.8rem; line-height: 34px; margin: 0; color: #2B2621; }
.jfin { color: #A39582; margin-top: 34px; }
.jent .jphoto { height: auto; margin: 4px 0 20px; }
.jent .pola { width: 74%; }
.jent .jnote { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.book.single .jent .jnote { -webkit-line-clamp: 4; }
.jnav { display: flex; align-items: center; justify-content: center; gap: 20px; padding-top: 8px; }
.jarrow { width: 52px; height: 52px; border-radius: 50%; border: 2px solid #F3EADB; background: transparent; color: #F3EADB; font-size: 1.6rem; line-height: 1; display: grid; place-items: center; }
.jarrow:hover:not(:disabled) { background: rgba(243, 234, 219, .12); }
.jarrow:disabled { opacity: .3; cursor: default; }
.jpos { display: grid; font-family: var(--hand); font-weight: 700; font-size: 1.5rem; }
.jpos > * { grid-area: 1 / 1; }
#jPos { text-align: center; white-space: nowrap; }
/* Tous les textes possibles, invisibles : la place est celle du plus large, et les flèches ne bougent plus. */
.jpos-regle { height: 0; overflow: hidden; visibility: hidden; }
.jpos-regle span { display: block; white-space: nowrap; }
.efield { display: block; margin: 0 0 14px; }
.efield > span { display: block; font-family: var(--hand); font-weight: 700; font-size: 1.35rem; margin-bottom: 4px; }
.efield select, .efield input, .efield textarea { width: 100%; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--surface); padding: 9px 12px; font-size: 16px; }
.efield textarea { resize: vertical; min-height: 96px; font-family: var(--hand); font-size: 1.35rem; line-height: 1.3; }
.estars { display: flex; gap: 4px; }
.estars button { width: 44px; height: 44px; border: 0; background: none; font-size: 2rem; line-height: 1; color: #CDBFA8; padding: 0; }
.estars button.on { color: #E2A91F; }
.ephoto img { display: block; width: 100%; max-height: 220px; object-fit: cover; border: 8px solid #FFFDF8; box-shadow: 0 6px 14px -6px rgba(40, 25, 10, .45); transform: rotate(-1.5deg); margin: 4px 0 12px; }
.ephbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.ephbtns .ghost { display: inline-flex; align-items: center; gap: 8px; }
.ephbtns svg { width: 18px; height: 18px; }
.edel { display: block; margin: 14px auto 0; color: #B3261E; }
.bdg.tested { color: #B3261E; }
.testedline { margin: 10px 0 0; font-family: var(--hand); font-size: 1.35rem; line-height: 1.2; color: #2C4C8C; }
.testedline .st { color: #C98A1C; font-family: var(--sans); font-size: 1rem; letter-spacing: 1px; }
@media (max-width: 560px) {
  dialog.page.journal .sheet { width: 100%; height: 100%; border-radius: 0; padding: calc(16px + env(safe-area-inset-top, 0px)) 14px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .jhead .cartbtn { padding: 9px 14px; font-size: .9rem; }
  .pgin { padding: 18px 16px 26px 40px; background-image: linear-gradient(to right, transparent 28px, rgba(214, 51, 74, .35) 28px 30px, transparent 30px), repeating-linear-gradient(to bottom, transparent 0 33px, rgba(44, 76, 140, .16) 33px 34px), var(--grain); }
  .jlinks { left: 40px; right: 16px; bottom: 26px; }
  .jtitle { font-size: 1.8rem; }
}

/* Tampon de passeport */
.ink-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.stamp { position: absolute; z-index: 3; right: -9%; bottom: -15%; width: 44%; max-width: 200px; pointer-events: none; mix-blend-mode: multiply; opacity: .88; animation: thump .42s cubic-bezier(.2, 1.4, .4, 1) .25s both; }
.stamp svg { display: block; width: 100%; height: auto; overflow: visible; }
.stamp text { font-family: var(--type); font-weight: 700; }
.stamp .city { font-family: var(--hand); font-weight: 700; }
.stamp.ink0 { color: #B3261E; } .stamp.ink1 { color: #1F4E9C; } .stamp.ink2 { color: #2E6B3F; } .stamp.ink3 { color: #6B2E83; } .stamp.ink4 { color: #8A3B12; }
@keyframes thump { 0% { transform: scale(1.5); opacity: 0; } 60% { transform: scale(.94); opacity: .95; } 100% { transform: scale(1); opacity: .88; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stamp { mix-blend-mode: screen; opacity: .8; filter: brightness(1.7) saturate(.9); } }
:root[data-theme="dark"] .stamp { mix-blend-mode: screen; opacity: .8; filter: brightness(1.7) saturate(.9); }

/* Post-it des réglages actifs */
.reglages { position: relative; display: inline-block; max-width: min(100%, 560px); margin: 26px 0 4px; padding: 16px 20px 14px; background: #FBEDA6; color: #2B2621; border-radius: 2px; transform: rotate(-1.2deg); box-shadow: 0 10px 18px -10px rgba(60, 40, 20, .5); }
.reglages[hidden] { display: none; }
.reglages::before { content: ""; position: absolute; top: -12px; left: 50%; width: 86px; height: 24px; transform: translateX(-50%) rotate(2deg); background: rgba(150, 182, 220, .75); clip-path: polygon(3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 94%, 0 50%); }
.reglages h2 { font-family: var(--hand); font-weight: 700; font-size: 1.6rem; line-height: 1; margin: 0 0 6px; }
.reg-items { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.reg-item { border: 0; background: none; padding: 0; color: inherit; font-family: var(--hand); font-weight: 500; font-size: 1.4rem; line-height: 1.25; display: inline-flex; align-items: baseline; gap: 5px; }
.reg-item::before { content: "✓"; color: #2E6B3F; font-weight: 700; }
.reg-item .x { font-family: var(--sans); font-size: .8rem; color: #8A6E4B; }
.reg-item:hover { text-decoration: line-through; text-decoration-color: #B3261E; }
.reg-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-top: 8px; padding-top: 6px; border-top: 1.5px dashed rgba(43, 38, 33, .25); }
.reg-foot span { font-family: var(--hand); font-weight: 700; font-size: 1.4rem; color: #2C4C8C; }
.reg-foot button { border: 0; background: none; padding: 0; font-size: .86rem; font-weight: 600; color: #2C4C8C; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 560px) {
  dialog.page .sheet { width: 100%; height: 100%; border-radius: 0; padding: calc(22px + env(safe-area-inset-top, 0px)) 16px calc(32px + env(safe-area-inset-bottom, 0px)); }
  .wgrid { grid-template-columns: 1fr; }
  .whead { margin-right: 48px; }
  .wactions { margin-left: 0; }
  dialog.pick .sheet { inset: auto 0 0 0; margin: 0; width: 100%; max-height: 88vh; border-radius: 20px 20px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
  .fav.agenda { top: 92px; }
  .fav { width: 32px; height: 32px; }
}
@media (max-width: 820px) {
  .stamp { right: -6%; bottom: -16%; width: 40%; }
  .sheet-media { box-shadow: inset 0 -14px 18px -14px rgba(40, 25, 10, .45); background-image: linear-gradient(to right, transparent 26px, var(--margin-line) 26px 28px, transparent 28px), repeating-linear-gradient(to bottom, transparent 0 33px, var(--rule-line) 33px 34px), var(--grain); }
  .sheet-media .frame { aspect-ratio: auto; padding: calc(34px + env(safe-area-inset-top, 0px)) 34px 76px; }
  .pola img, .pola svg { max-height: 46vh; }
}
@media (max-width: 560px) {
  .grid { gap: 34px 14px; padding-top: 24px; }
  .tile .open { padding: 6px 6px 10px; }
  .tile .t { font-size: 1.32rem; }
  .meta { font-size: .7rem; gap: 0 8px; }
  .fav { top: 12px; right: 12px; }
  .fav.cart { top: 52px; }
  .tile.tape::before { width: 70px; height: 22px; top: -11px; }
  .top p { font-size: 1.35rem; }
  .saison { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==================== Sur téléphone : ajouter le site à l'écran d'accueil ==================== */
/* la carte, sous le billet de l'accueil : l'icône, deux lignes, la croix « ne plus proposer », puis le bouton */
.inst { grid-column: 1 / -1; display: grid; grid-template-columns: 48px minmax(0, 1fr) 34px; align-items: center; gap: 4px 12px; padding: 12px 10px 12px 14px;
  border: 1.5px dashed var(--line); border-radius: 14px; background: var(--surface); }
.inst[hidden], .inst-pied[hidden] { display: none; }
.inst img { grid-row: 1 / 3; align-self: start; width: 48px; height: 48px; border-radius: 12px; }
.inst b { display: block; font-family: var(--hand); font-weight: 700; font-size: 1.4rem; line-height: 1.1; }
.inst span { display: block; margin-top: 2px; color: var(--muted); font-size: .86rem; line-height: 1.3; }
.inst-non { align-self: start; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); display: grid; place-items: center; }
.inst-non svg { width: 16px; height: 16px; }
.inst .cartbtn { grid-column: 2 / 4; justify-self: start; margin-top: 6px; padding: 9px 16px; font-size: .92rem; }
/* le lien, en bas de chaque page */
.inst-pied { margin: 0 0 10px; }
.inst-pied .linkish { margin: 0; }
/* la petite fenêtre : trois gestes numérotés, puis l'icône qu'on va retrouver */
.inst-pas { margin: 10px 0 16px; padding: 0; list-style: none; counter-reset: pas; display: grid; gap: 12px; }
.inst-pas li { counter-increment: pas; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; line-height: 1.4; padding-top: 0; }
.inst-pas li::before { content: counter(pas); display: grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid var(--ink); border-radius: 50%;
  font-family: var(--hand); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.inst-ic { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -.24em; }
.inst-fin { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 10px 12px; border-radius: 12px; background: var(--chip); font-size: .92rem; line-height: 1.35; }
.inst-fin img { flex: none; width: 44px; height: 44px; border-radius: 11px; }

:root {
  --o-badiane: url(/images/carnet/objets-bureau.webp) 0% 64.6134% / 780% 554.1667% no-repeat;
  --o-baguettes: url(/images/carnet/objets-japon.webp) 0% 51.5847% / 155.4286% 731.0345% no-repeat;
  --o-boussole: url(/images/carnet/objets-bureau.webp) 48.996% 0% / 401.8182% 210.6335% no-repeat;
  --o-cerisier: url(/images/carnet/objets-japon.webp) 0% 82.1348% / 209.2308% 623.5294% no-repeat;
  --o-crayon: url(/images/carnet/objets-bureau.webp) 28.4345% 56.0227% / 189.4286% 1825.4902% no-repeat;
  --o-epices: url(/images/carnet/objets-bureau.webp) 100% 0% / 265.2% 197.2458% no-repeat;
  --o-etiquette: url(/images/carnet/objets-bureau.webp) 82.342% 100% / 530.4% 212.5571% no-repeat;
  --o-eventail: url(/images/carnet/objets-japon.webp) 100% 100% / 194.2857% 322.1884% no-repeat;
  --o-grue: url(/images/carnet/objets-japon.webp) 92.1875% 58.3436% / 340% 422.3108% no-repeat;
  --o-matcha: url(/images/carnet/objets-japon.webp) 0% 0% / 236.5217% 228.4483% no-repeat;
  --o-scotch-etoiles: url(/images/carnet/scotchs.webp) 50% 98.827% / auto 659.0164% repeat-x;
  --o-scotch-fleuri: url(/images/carnet/scotchs.webp) 50% 78.5924% / auto 659.0164% repeat-x;
  --o-scotch-pois: url(/images/carnet/scotchs.webp) 50% 19.8251% / auto 681.3559% repeat-x;
  --o-scotch-rayures: url(/images/carnet/scotchs.webp) 50% 39.0173% / auto 717.8571% repeat-x;
  --o-scotch-uni: url(/images/carnet/scotchs.webp) 50% 1.1561% / auto 717.8571% repeat-x;
  --o-scotch-vichy: url(/images/carnet/scotchs.webp) 50% 58.3578% / auto 659.0164% repeat-x;
  --o-tasse: url(/images/carnet/objets-bureau.webp) 0% 0% / 276.25% 191.9588% no-repeat;
  --o-theiere: url(/images/carnet/objets-japon.webp) 70.0599% 0% / 259.0476% 268.3544% no-repeat;
}
/* ---------- Ajouts pour le site en plusieurs pages (le reste vient tel quel du prototype) ---------- */
.top h1 a, a.open { color: inherit; text-decoration: none; }
.noimg { display: block; aspect-ratio: 4 / 3; background: var(--chip); }

/* Fiche recette affichée dans sa propre page, et non plus dans une fenêtre */
.fichepage { position: relative; z-index: 1; padding-bottom: 40px; }
.fil { margin: 0 0 14px; font-family: var(--hand); font-size: 1.45rem; line-height: 1.1; }
.fil a { color: var(--ink); text-decoration: none; }
.fil a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sheet.inpage { position: relative; inset: auto; margin: 0; width: 100%; height: auto; overflow: clip; box-shadow: 0 14px 34px -14px rgba(40, 25, 10, .45); }
/* L'illustration reste visible pendant qu'on fait défiler la recette */
.sheet.inpage .colle { position: sticky; top: 0; height: min(100vh, 860px); display: flex; flex-direction: column; }
.sheet.inpage .sheet-body { overflow: visible; }
@media (max-width: 820px) {
  .sheet.inpage { border-radius: 18px; }
  .sheet.inpage .colle { position: relative; height: auto; }
}
@media (max-width: 560px) {
  .fichepage { padding-left: 0; padding-right: 0; }
  .fichepage .fil { padding: 0 16px; }
  .sheet.inpage { border-radius: 0; }
}

/* Pages de texte : lexique, pays, pages légales */
.pagetitle { font-family: var(--hand); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3rem); line-height: 1; margin: 18px 0 18px; text-shadow: 0 0 3px var(--bg), 0 0 8px var(--bg), 0 0 14px var(--bg); }
.feuille { position: relative; z-index: 1; max-width: 860px; margin: 0 0 40px; background-color: var(--surface); background-image: var(--grain); border-radius: 18px; padding: 30px 32px 36px; box-shadow: 0 14px 34px -14px rgba(40, 25, 10, .45); }
.feuille h1 { font-family: var(--hand); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3rem); line-height: 1; margin: 0 0 8px; }
.feuille h2 { font-family: var(--hand); font-weight: 700; font-size: 2rem; line-height: 1.1; margin: 28px 0 0; }
.feuille > p { color: var(--muted); margin: 0 0 16px; }
.feuille .gl .used a { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.feuille a.chip { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.feuille .pchips { display: flex; flex-wrap: wrap; gap: 8px; }
/* Pages légales : texte courant lisible, encadré « En bref » */
.legal { max-width: 72ch; line-height: 1.6; }
.legal p, .legal ul { margin: 10px 0; }
.legal ul { padding-left: 1.3em; }
.legal li { margin: 6px 0; }
.legal h3 { font-size: 1.05rem; font-weight: 700; margin: 18px 0 4px; }
.legal h3 + p { margin-top: 4px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal .maj { color: var(--muted); font-style: italic; margin-top: 0; }
.legal .foi { margin: 0 0 14px; padding: 8px 12px; border-left: 3px solid var(--line); color: var(--muted); font-size: .92rem; }
.legal .enbref { margin: 18px 0 8px; padding: 2px 20px 8px; border: 1px dashed var(--line); border-radius: 12px; background: color-mix(in srgb, var(--accent) 6%, transparent); }
.legal .enbref h2 { margin-top: 12px; }
.legal .ecrire { font-size: 1.25rem; font-weight: 600; }
@media (max-width: 560px) { .feuille { padding: 24px 18px 28px; } }

/* Liens du pied de page */
.footnav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; }
.footnav a { color: var(--ink); text-underline-offset: 3px; }

/* Langue en relecture (fabriquée seulement avec --brouillons) */
.brouillon { position: relative; z-index: 2; background: #FFE58A; color: #2B2621; border-bottom: 1.5px solid #2B2621; padding: 8px 16px; font-size: .9rem; text-align: center; }

/* Un seul titre principal (h1) par page : hors accueil, le nom du site n'est plus un h1 mais garde exactement son apparence */
.top .marque { font-family: var(--hand); font-weight: 700; font-size: clamp(3.8rem, 11vw, 6.2rem); line-height: .8; letter-spacing: 0; margin: 0; text-shadow: 0 0 3px var(--bg), 0 0 8px var(--bg), 0 0 14px var(--bg); }
.top .marque a { color: inherit; text-decoration: none; }
@media (max-width: 560px) { .top .marque { margin-top: 36px; } }
/* Sur la page d'une recette, son nom devient le titre principal (h1), avec l'apparence de l'ancien titre */
.sheet-body h1 { font-family: var(--hand); font-weight: 700; font-size: clamp(2.5rem, 4.6vw, 3.3rem); line-height: .95; margin: 0; text-wrap: balance; padding-right: 8px; }
/* Notes du carnet : étoiles à demi-étoiles, 4 critères et note globale */
.ets { display: inline-flex; gap: 1px; vertical-align: middle; }
.et { position: relative; display: inline-block; flex: none; width: var(--t, 20px); height: var(--t, 20px); }
.et svg { position: absolute; top: 0; left: 0; width: var(--t, 20px); height: var(--t, 20px); fill: #E3D7C2; }
.et-plein { position: absolute; inset: 0; overflow: hidden; }
.et-plein svg { fill: #E2A91F; }
.jsur { font-family: var(--type); font-size: .85rem; letter-spacing: 0; color: #6B6153; margin-left: 4px; vertical-align: middle; }
.jcrit { display: flex; flex-wrap: wrap; gap: 0 14px; font-family: var(--type); font-size: .72rem; line-height: 17px; color: #6B6153; }
.jcrit > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.jcrit + .jdate { margin-top: 0; }
.enote { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.enote b { display: block; font-family: var(--hand); font-size: 1.3rem; line-height: 1.1; }
.enote small { color: var(--muted); font-size: .85rem; }
.enote-v { display: flex; align-items: center; gap: 8px; }
.esaisie { cursor: pointer; border-radius: 8px; touch-action: manipulation; }
.esaisie:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.enote-n { min-width: 3.2em; text-align: right; font-family: var(--type); font-size: .85rem; color: var(--muted); }
.eglobale { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 12px 0 6px; padding: 10px 14px; border-radius: 12px; background: #FBEDA6; color: #2B2621; transform: rotate(-.5deg); }
.eglobale b { margin-right: auto; font-family: var(--hand); font-size: 1.35rem; }
.eglobale .enote-n { color: #2B2621; font-weight: 700; }
@media (max-width: 420px) { .enote { grid-template-columns: 1fr; } .enote-v { justify-content: space-between; } }
/* Fiche recette : les 4 repères (temps, niveau, calories, protéines) tiennent toujours dans leur case,
   « Intermédiaire » compris : une case peut s'élargir, et la taille du texte suit la largeur disponible. */
.sheet-body { container: fiche / inline-size; }
.facts { container-type: inline-size; grid-template-columns: repeat(4, 1fr); }
.fact { min-width: auto; }
.fact b { font-size: clamp(1.25rem, calc(10cqi - 9px), 2.1rem); }
/* Colonne de texte étroite (téléphone, ou ordinateur entre 820 et 1100 px environ) : 2 repères par ligne */
@container fiche (max-width: 527px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .fact b { font-size: clamp(1.25rem, calc(10.6cqi - 6px), 2.1rem); }
}
/* Tampons de passeport lisibles aussi sur les illustrations : encre pleine (plus de fondu « multiply »,
   qui faisait disparaître l'encre sur les couleurs du plat) et liseré couleur papier tout autour du tracé. */
.stamp { mix-blend-mode: normal; opacity: .95; filter: drop-shadow(0 0 1px rgba(255, 253, 248, .95)) drop-shadow(0 0 2px rgba(255, 253, 248, .9)) drop-shadow(0 0 4px rgba(255, 253, 248, .6)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stamp { mix-blend-mode: normal; opacity: .95; filter: drop-shadow(0 0 1px rgba(255, 253, 248, .95)) drop-shadow(0 0 2px rgba(255, 253, 248, .9)) drop-shadow(0 0 4px rgba(255, 253, 248, .6)); } }
:root[data-theme="dark"] .stamp { mix-blend-mode: normal; opacity: .95; filter: drop-shadow(0 0 1px rgba(255, 253, 248, .95)) drop-shadow(0 0 2px rgba(255, 253, 248, .9)) drop-shadow(0 0 4px rgba(255, 253, 248, .6)); }
/* Titre du site : une étiquette de bagage en kraft, avec sa ficelle (le nom reste un vrai texte, lien vers l'accueil) */
.etiquette { position: relative; display: inline-flex; margin: 6px 0 4px 26px; transform: rotate(-4deg); transform-origin: left center; filter: drop-shadow(0 9px 9px rgba(40, 25, 10, .32)); }
.etiquette .ficelle { position: absolute; left: -26px; top: 50%; width: 46px; height: 60px; margin-top: -48px; overflow: visible; color: #8C6A3E; }
.etiq { position: relative; padding: 12px 28px 13px 46px; background-color: #D9B98A; background-image: var(--grain); color: #3B2A18;
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 calc(100% - 18px), 0 18px); }
.etiq .trou { position: absolute; left: 15px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 3px #B8946A; }
.top .etiq .marque { margin: 0; font-family: var(--hand); font-weight: 700; font-size: clamp(2.5rem, 7vw, 4rem); line-height: .9; color: #3B2A18; text-shadow: none; }
.top .etiq #intro { margin: 5px 0 0; max-width: none; font-family: var(--type); font-size: .74rem; line-height: 1.35; letter-spacing: .08em; text-transform: uppercase; color: #3B2A18; text-shadow: none; }
@media (max-width: 560px) {
  .etiquette { margin: 30px 0 0 24px; transform: rotate(-3deg); }
  .etiq { padding: 10px 18px 11px 40px; }
  .etiq .trou { left: 13px; }
  .top .etiq #intro { font-size: .66rem; letter-spacing: .04em; max-width: 22ch; text-wrap: balance; }
}
/* Bandeau des saisons : « Voir tout » / « Réduire » dans la langue de la page */
.saison details[open] summary .more::after { content: attr(data-fermer) " \25B4"; }
.saison details:not([open]) summary .more::after { content: attr(data-ouvrir) " \25BE"; }
/* Liste de courses : les plats sont des liens vers leur recette */
.plan a.plien { color: inherit; text-decoration: none; display: block; }
.plan a.plien:hover .pn, .plan a.plien:focus-visible .pn { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.plan a.plien:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
/* Liste de courses : choix des dates des courses */
.lperiode { margin: 8px 0 10px; }
.lperiode > span { display: block; margin-bottom: 6px; font-size: .85rem; color: var(--muted); }
.lchips { display: flex; flex-wrap: wrap; gap: 6px; }
.ldates { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; font-size: .9rem; }
.ldates input { padding: 5px 8px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
/* Carnet : page de présentation */
.jmoi { display: flex; flex-direction: column; gap: 14px; }
.jmoi-t { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 1.9rem; line-height: 34px; }
.jmoi .mid { display: flex; align-items: center; gap: 18px; }
.mpola { flex: none; width: clamp(96px, 30%, 150px); aspect-ratio: 1; padding: 7px 7px 20px; background: #FFFDF8; box-shadow: 0 8px 16px -8px rgba(40, 25, 10, .5); transform: rotate(-3deg); }
.mpola img { display: block; width: 100%; height: 100%; object-fit: cover; }
.minit { display: grid; place-items: center; width: 100%; height: 100%; background: #E9DEC9; font-family: var(--hand); font-weight: 700; font-size: 3.2rem; color: #6B6153; }
.mtxt { min-width: 0; }
.mpseudo { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 2.2rem; line-height: 1.05; overflow-wrap: anywhere; }
.mpseudo.soft, .mbio.soft { color: #A39582; }
.mlien { display: flex; align-items: center; gap: 6px; max-width: 100%; margin-top: 6px; font-family: var(--type); font-size: .85rem; color: #2C4C8C; }
.mlien span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.mlien { text-decoration: underline; text-underline-offset: 3px; }
.mlien svg { flex: none; width: 15px; height: 15px; }
.mbio { margin: 0; font-family: var(--hand); font-size: 1.4rem; line-height: 34px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.mstats { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; font-family: var(--type); font-size: .78rem; color: #6B6153; }
.mstats div { display: flex; flex-wrap: wrap; gap: 0 6px; } .mstats dt { white-space: nowrap; } .mstats dt::after { content: " :"; } .mstats dd { margin: 0; color: #2B2621; font-weight: 700; }
.jmoi .mmod { align-self: flex-start; margin-top: auto; }
.jmoi .linkish { color: #2C4C8C; }
.book.single .jmoi { gap: 10px; } .book.single .mpseudo { font-size: 1.8rem; } .book.single .mbio { -webkit-line-clamp: 5; }

/* Carnet : la carte du monde (sur la double page ; une page sur téléphone), avec ses plis */
.carte { display: block; width: 100%; height: auto; }
.carte .mer { fill: #EEE4CF; stroke: #B5A07A; stroke-width: .8; }
.carte .quad { fill: none; stroke: #CDB991; stroke-width: .35; }
.carte .autre, .carte [data-z] { fill: #E0CEAB; stroke: #9C8762; stroke-width: .3; stroke-linejoin: round; }
.carte .vu { stroke: rgba(70, 40, 15, .55); stroke-width: .5; filter: url(#aquarelle); }
.carte .vu.sel { stroke: #2B2621; stroke-width: 1.3; }
.carte .pin circle { fill: #B3261E; stroke: #FFFDF8; stroke-width: 1.6; } .carte .pin .pin-c { fill: #FFFDF8; stroke: none; }
.carte .pin.sel circle:first-child { stroke: #2B2621; }
.pgin.jcarte { background-image: var(--grain); padding: 22px 24px; }
.jcarte-t h3 { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 1.9rem; line-height: 1.1; }
.jcarte-t small { font-family: var(--type); font-size: .78rem; color: #6B6153; }
.jpli { position: absolute; top: 96px; bottom: 74px; left: 24px; right: 24px; overflow: hidden; container-type: size; cursor: pointer; }
.jpli .carte { position: absolute; top: 50%; left: 50%; width: min(100cqw, 228cqh); transform: translate(-50%, -50%); }
.jcarte.cL .jpli { right: 0; } .jcarte.cR .jpli { left: 0; }
.jcarte.cL .jpli .carte, .jcarte.cR .jpli .carte { width: min(200cqw, 228cqh); }
.jcarte.cL .jpli .carte { left: auto; right: 0; transform: translate(50%, -50%); }
.jcarte.cR .jpli .carte { left: 0; transform: translate(-50%, -50%); }
.jpli::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, rgba(60, 40, 20, .035), transparent 15%, transparent 85%, rgba(60, 40, 20, .05)),
    linear-gradient(to bottom, transparent 49.6%, rgba(60, 40, 20, .14) 50%, rgba(255, 255, 255, .35) 50.4%, transparent 51%); background-size: 50% 100%, 100% 100%; }
.jcarte-aide { position: absolute; left: 24px; right: 24px; bottom: 26px; margin: 0; font-family: var(--hand); font-size: 1.3rem; line-height: 1.15; color: #6B6153; }
.jcarte.cL .jcarte-aide { right: 8px; }
.jdeplier { position: absolute; right: 24px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; }
.jdeplier svg { width: 18px; height: 18px; }
.book.single .pgin.jcarte { display: flex; flex-direction: column; gap: 12px; padding: 18px 16px; }
.book.single .jpli { position: relative; inset: auto; flex: none; width: 100%; aspect-ratio: 1000 / 438; }
.book.single .jcarte-aide, .book.single .jdeplier { position: static; }
.book.single .jdeplier { margin-top: auto; justify-content: center; }
.jpays { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; font-family: var(--hand); font-size: 1.3rem; line-height: 1.3; min-height: 0; overflow: hidden; }
.jpays span { white-space: nowrap; }
.jpays span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #B3261E; vertical-align: middle; }

/* La carte dépliée */
dialog.page.kcarte .sheet { background-image: var(--grain); }
.kcarte h2 { margin: 0 56px 0 0; font-family: var(--hand); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; }
.kcompte { margin: 4px 0 14px; font-family: var(--type); font-size: .85rem; color: var(--muted); }
.kplan { position: relative; width: min(100%, 155vh); aspect-ratio: 1000 / 438; margin: 0 auto; perspective: 2400px; }
.kfinal { position: absolute; inset: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 14px 30px -18px rgba(40, 25, 10, .7); }
.kfinal::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, transparent 24.8%, rgba(60, 40, 20, .1) 25%, transparent 25.4%, transparent 49.8%, rgba(60, 40, 20, .12) 50%, transparent 50.4%, transparent 74.8%, rgba(60, 40, 20, .1) 75%, transparent 75.4%); }
.kfinal .vu, .kfinal .pin { cursor: pointer; }
.kfinal .vu:hover { stroke: #2B2621; stroke-width: .9; }
.kpli { position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% / var(--n)); transform-style: preserve-3d;
  transform: translateX(calc(50% * (var(--n) - 1))) rotateX(8deg) scale(.92); transition: transform 1.5s cubic-bezier(.3, .1, .2, 1); }
.kpli.ouvert { transform: none; }
.kpan { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: left center; transform: rotateY(calc(180deg * var(--s))) translateZ(calc(var(--i) * -.6px));
  transition: transform 1.3s cubic-bezier(.35, .05, .25, 1) calc(var(--i) * .12s + .15s); }
.kpan:first-child { transform: none; }
.kpan .kpan { left: 100%; right: -100%; }
.kpli.ouvert .kpan { transform: none; }
.kvue, .kdos { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #EEE4CF; }
.kdos { transform: rotateY(180deg); background-color: #E3D3B6; background-image: var(--grain); }
.kvue .carte { position: absolute; top: 0; height: 100%; width: calc(100% * var(--n)); left: calc(-100% * var(--i)); }
.kvue .carte .vu { filter: none; }
.kvue::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, rgba(40, 25, 10, .22), transparent 30%, transparent 70%, rgba(40, 25, 10, .16)); opacity: 1; transition: opacity 1.3s ease .3s; }
.kpli.ouvert .kvue::after { opacity: .25; }
.kvide { margin: 12px 0 0; text-align: center; font-family: var(--hand); font-size: 1.4rem; color: var(--muted); }
.klegende { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 14px 0 10px; font-size: .85rem; color: var(--muted); }
.klegende span { display: inline-flex; align-items: center; gap: 6px; }
.klegende i { width: 22px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(70, 40, 15, .35); }
.klegende .k1 { background: color-mix(in srgb, var(--aq1) 62%, #E0CEAB); } .klegende .k2 { background: color-mix(in srgb, var(--aq1) 80%, #E0CEAB); } .klegende .k3 { background: color-mix(in srgb, var(--aq1) 95%, #E0CEAB); }
.kchips { justify-content: center; }
.kpays { max-width: 640px; margin: 14px auto 0; }
.kpays h3 { margin: 0 0 4px; font-family: var(--hand); font-weight: 700; font-size: 1.8rem; }
.krow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; width: 100%; padding: 8px 0; border: 0; border-bottom: 1px dashed var(--line); background: none; color: inherit; text-align: left; }
.krow .kn { font-family: var(--hand); font-size: 1.4rem; line-height: 1.1; }
.krow .kd { grid-column: 1; font-size: .82rem; color: var(--muted); }
.krow .ks { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: #C98A1C; }
.krow:hover .kn { text-decoration: underline; }
/* Carnet : grade sur la page de présentation */
.mgrade { display: inline-block; margin-top: 6px; padding: 2px 8px; border: 1.5px solid currentColor; border-radius: 4px; font-family: var(--type); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A3B12; transform: rotate(-2deg); }

/* Mon passeport : grade, progression, échelle des grades */
.jpass, .jtamp { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.jpass > *, .jtamp > * { flex-shrink: 0; }
.pgrade { display: flex; align-items: center; gap: 16px; }
.pbadge { flex: none; width: clamp(70px, 22%, 104px); color: #8A3B12; transform: rotate(-6deg); }
.gbadge { display: block; width: 100%; height: auto; }
.gbadge text { font-family: var(--type); font-weight: 700; }
.pgrade small { display: block; font-family: var(--type); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #6B6153; }
.pgrade b { display: block; font-family: var(--hand); font-size: 2.1rem; line-height: 1.05; }
.pnext { margin: 0; font-family: var(--hand); font-size: 1.35rem; line-height: 1.2; }
.pnext small { display: block; font-family: var(--type); font-size: .78rem; color: #6B6153; }
.pbar { height: 10px; border-radius: 6px; background: #E9DEC9; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(70, 40, 15, .2); }
.pbar i { display: block; height: 100%; border-radius: inherit; background: #C98A1C; }
.pechelle { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pechelle li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: baseline; padding: 1px 0 2px 20px; position: relative; border-bottom: 1px dashed #DACDB6; }
.pechelle li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #B5A07A; }
.pechelle li.ok::before, .pechelle li.cur::before { background: #C98A1C; border-color: #C98A1C; }
.pechelle li.cur { background: rgba(201, 138, 28, .12); border-radius: 6px; }
.pechelle li.lock { color: #8A7D6A; }
.pe-nom { font-family: var(--hand); font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.pe-cond { font-family: var(--type); font-size: .7rem; color: #6B6153; white-space: nowrap; }
.pe-rec { grid-column: 1 / -1; font-size: .72rem; line-height: 1.2; color: #2C4C8C; }
.pe-rec::before { content: "+ "; }
.jpass .pperso { align-self: flex-start; margin-top: auto; }

/* Mes tampons : un tampon par étape */
.ptaide { margin: 0; font-size: .85rem; color: #6B6153; }
.tgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.tgrid li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 10px; align-items: center; }
.tgrid li > b { font-family: var(--hand); font-size: 1.2rem; line-height: 1.05; }
.tgrid li > small { grid-column: 2; font-size: .76rem; line-height: 1.25; color: #6B6153; }
.tgrid li > small.trec { color: #2C4C8C; }
.tgrid li > small.trec::before { content: "+ "; }
.tst-w { grid-row: 1 / span 3; display: block; width: 52px; }
.tst { display: block; width: 100%; height: auto; }
.tgrid li.ok .tst-w { transform: rotate(var(--r, -6deg)); }
.tgrid li.lock .tst-w { color: #B5A07A !important; opacity: .45; }
.tgrid li.lock > b { color: #8A7D6A; }
.tst-w.ink0 { color: #B3261E; } .tst-w.ink1 { color: #1F4E9C; } .tst-w.ink2 { color: #2E6B3F; } .tst-w.ink3 { color: #6B2E83; } .tst-w.ink4 { color: #8A3B12; }
.book.single .tgrid { gap: 10px 8px; }
.book.single .tgrid li { grid-template-columns: 40px minmax(0, 1fr); column-gap: 6px; }
.book.single .tst-w { width: 40px; }
.book.single .tgrid li > b { font-size: 1.05rem; }
.book.single .tgrid li > small { font-size: .7rem; }
.book.single .pechelle li.ok .pe-rec { display: none; }
.book.single .jpass { gap: 6px; }
.book.single .pgrade b { font-size: 1.8rem; } .book.single .pnext { font-size: 1.2rem; } .book.single .pbadge { width: 72px; }

/* Célébration : le tampon se pose */
.vsheet { text-align: center; }
.vsheet h2 { font-family: var(--hand); font-weight: 700; font-size: 2.4rem; margin: 0 40px 6px; }
.vliste { list-style: none; margin: 14px 0; padding: 16px 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 20px; border-radius: 12px; color: #2B2621;
  background-color: #FBF7EE; background-image: var(--grain); box-shadow: 0 10px 22px -14px rgba(40, 25, 10, .6); }
.vliste li { display: grid; justify-items: center; gap: 6px; width: 120px; }
.vliste li > b { font-family: var(--hand); font-size: 1.3rem; line-height: 1.1; }
.vliste .gbadge, .vliste .tst-w { width: 96px; animation: thump .5s cubic-bezier(.2, 1.4, .4, 1) var(--d, 0s) both; }
.vliste .gbadge { color: #8A3B12; }
.vrec { margin: 0 0 14px; font-weight: 600; color: var(--accent); }
.vbtns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (prefers-reduced-motion: reduce) { .vliste .gbadge, .vliste .tst-w { animation: none; } }

/* Personnaliser mon carnet */
.apsec h3 { margin: 14px 0 8px; font-family: var(--hand); font-weight: 700; font-size: 1.5rem; }
.aplist { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ap { display: grid; gap: 6px; padding: 8px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; }
.ap[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.ap b { font-size: .9rem; }
.ap small { font-size: .75rem; color: var(--muted); }
/* pas encore gagné : on le voit quand même en couleur, avec un cadenas ; un clic l'essaie dans le carnet */
.ap { position: relative; }
.ap.lock::after { content: ""; position: absolute; top: 13px; right: 13px; width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 1px 5px rgba(0, 0, 0, .45);
  background: #FFFDF8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2621' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ap.lock > b { color: var(--muted); }
.ap small.ap-essai { font-weight: 600; color: var(--accent); }
.ap-prev { display: block; height: 58px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); background-color: #FBF7EE; position: relative; overflow: hidden; }
.ap-couv-kraft { background-color: #C9A57A; background-image: var(--grain); }
.ap-couv-nuit { background-color: #26365C; background-image: var(--grain); }
.ap-couv-cuir { background-color: #7A4B2A; background-image: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .14), transparent 60%), var(--grain); box-shadow: inset 0 0 0 6px #7A4B2A, inset 0 0 0 7.5px rgba(250, 235, 210, .6); }
.ap-couv-dore { background-color: #1D3B2E; box-shadow: inset 0 0 0 6px #1D3B2E, inset 0 0 0 9px #C9A227; }
.ap-scotch-uni::before, .ap-scotch-pois::before, .ap-scotch-rayures::before { content: ""; position: absolute; left: 50%; top: 18px; width: 74px; height: 22px; transform: translateX(-50%) rotate(-4deg); clip-path: polygon(3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 94%, 0 50%); }
.ap-scotch-uni::before { background: rgba(232, 193, 98, .85); }
.ap-scotch-pois::before { background: radial-gradient(circle, rgba(255, 255, 255, .95) 2.2px, transparent 2.6px) 0 0 / 10px 10px, rgba(214, 90, 90, .85); }
.ap-scotch-rayures::before { background: repeating-linear-gradient(45deg, rgba(44, 76, 140, .85) 0 6px, rgba(255, 253, 248, .9) 6px 12px); }
.ap-scotch-coins { background: linear-gradient(135deg, #2B2621 0 14px, transparent 14px) top left / 22px 22px no-repeat, linear-gradient(225deg, #2B2621 0 14px, transparent 14px) top right / 22px 22px no-repeat,
  linear-gradient(45deg, #2B2621 0 14px, transparent 14px) bottom left / 22px 22px no-repeat, linear-gradient(315deg, #2B2621 0 14px, transparent 14px) bottom right / 22px 22px no-repeat, #FBF7EE; }
/* Fond de départ : un vieux bureau en noyer sous une lampe, peint à la gouache (images/carnet/, voir outils/peindre_carnet.py). Fond « bois » (grade Aventurier) : une table de cuisine en chêne clair. */
.ap-fond-brun, body[data-apfond="brun"] dialog.page.journal .sheet {
  background-color: #3A2415;
  background-image:
    radial-gradient(ellipse 55% 60% at 20% 4%, rgba(255, 196, 120, .2), rgba(255, 170, 90, .07) 45%, transparent 75%),
    radial-gradient(ellipse 120% 95% at 50% 48%, transparent 48%, rgba(6, 3, 1, .68) 100%),
    url(/images/carnet/bureau.webp);
  background-size: auto, auto, cover; background-position: 0 0, 0 0, center; }
/* la vignette de « Personnaliser mon carnet » et les téléphones (où l'on voit peu le bureau) prennent la version légère */
.ap-fond-brun { background-image: url(/images/carnet/bureau-petit.webp); background-size: cover; }
@media (max-width: 700px) { body[data-apfond="brun"] dialog.page.journal .sheet { background-image:
  radial-gradient(ellipse 120% 95% at 50% 48%, transparent 48%, rgba(6, 3, 1, .68) 100%), url(/images/carnet/bureau-petit.webp); background-size: auto, cover; background-position: 0 0, center; } }
.ap-fond-bois, body[data-apfond="bois"] dialog.page.journal .sheet {
  background-color: #C79A62;
  background-image:
    linear-gradient(to bottom, rgba(60, 34, 12, .58), transparent 17%, transparent 85%, rgba(60, 34, 12, .55)),
    radial-gradient(ellipse 130% 100% at 50% 45%, transparent 55%, rgba(45, 22, 5, .42) 100%),
    url(/images/carnet/table.webp);
  background-size: auto, auto, cover; background-position: 0 0, 0 0, center; }
.ap-fond-bois { background-image: url(/images/carnet/table-petit.webp); background-size: cover; }
@media (max-width: 700px) { body[data-apfond="bois"] dialog.page.journal .sheet { background-image:
  linear-gradient(to bottom, rgba(60, 34, 12, .58), transparent 17%, transparent 85%, rgba(60, 34, 12, .55)),
  radial-gradient(ellipse 130% 100% at 50% 45%, transparent 55%, rgba(45, 22, 5, .42) 100%), url(/images/carnet/table-petit.webp); } }
.ap-carte-aquarelle { background: linear-gradient(135deg, #EEE4CF 0 40%, #D1495B 40% 55%, #EEE4CF 55% 62%, #5E9E73 62% 80%, #EEE4CF 80%); }
.ap-carte-sepia { background: linear-gradient(135deg, #EEE4CF 0 40%, #D1495B 40% 55%, #EEE4CF 55% 62%, #5E9E73 62% 80%, #EEE4CF 80%); filter: sepia(.75) saturate(.85); }
.ap-encre-assortie { background: radial-gradient(circle at 25% 50%, transparent 13px, #B3261E 13px 16px, transparent 16px), radial-gradient(circle at 50% 50%, transparent 13px, #1F4E9C 13px 16px, transparent 16px), radial-gradient(circle at 75% 50%, transparent 13px, #2E6B3F 13px 16px, transparent 16px), #FBF7EE; }
.ap-encre-verte { background: radial-gradient(circle at 50% 50%, transparent 18px, #2E6B3F 18px 22px, transparent 22px), #FBF7EE; }
.ap-encre-or { background: radial-gradient(circle at 50% 50%, transparent 18px, #A87F1E 18px 22px, transparent 22px), #FBF7EE; }
.ap-encre-bleue { background: radial-gradient(circle at 50% 50%, transparent 18px, #27477F 18px 22px, transparent 22px), #FBF7EE; }

/* Habillages appliqués au carnet (choisis dans « Personnaliser mon carnet ») */
body[data-apcouv="nuit"] #jdlg .book { background: #18223A; }
body[data-apcouv="nuit"] #jdlg .pgin.kraft { background-color: #26365C; }
body[data-apcouv="cuir"] #jdlg .book { background: #3B2213; }
body[data-apcouv="cuir"] #jdlg .pgin.kraft { background-color: #7A4B2A; background-image: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .14), transparent 60%), var(--grain); }
body[data-apcouv="cuir"] #jdlg .pgin.kraft::after { content: ""; position: absolute; inset: 14px; border: 2px dashed rgba(250, 235, 210, .55); border-radius: 6px; pointer-events: none; }
body[data-apcouv="dore"] #jdlg .book { background: #142A20; }
body[data-apcouv="dore"] #jdlg .pgin.kraft { background-color: #1D3B2E; }
body[data-apcouv="dore"] #jdlg .pgin.kraft::after { content: ""; position: absolute; inset: 14px; border: 4px double #C9A227; border-radius: 4px; pointer-events: none; }
body[data-apcouv="dore"] #jdlg .jlabel { border-color: #C9A227; box-shadow: 3px 3px 0 #C9A227; }
body[data-apscotch="pois"] #jdlg .book .pola::before { background: radial-gradient(circle, rgba(255, 255, 255, .95) 2.2px, transparent 2.6px) 0 0 / 10px 10px, rgba(214, 90, 90, .85); }
body[data-apscotch="rayures"] #jdlg .book .pola::before { background: repeating-linear-gradient(45deg, rgba(44, 76, 140, .85) 0 6px, rgba(255, 253, 248, .9) 6px 12px); }
body[data-apscotch="coins"] #jdlg .book .pola::before { display: none; }
body[data-apscotch="coins"] #jdlg .book .pola::after { content: ""; position: absolute; inset: -3px; z-index: 2; pointer-events: none;
  background: linear-gradient(135deg, #2B2621 0 17px, transparent 17px) top left / 26px 26px no-repeat, linear-gradient(225deg, #2B2621 0 17px, transparent 17px) top right / 26px 26px no-repeat,
    linear-gradient(45deg, #2B2621 0 17px, transparent 17px) bottom left / 26px 26px no-repeat, linear-gradient(315deg, #2B2621 0 17px, transparent 17px) bottom right / 26px 26px no-repeat; }
body[data-apcarte="sepia"] .carte { filter: sepia(.75) saturate(.85) contrast(.97); }
body[data-apencre="verte"] #jdlg .stamp, body[data-apencre="verte"] #jdlg .tgrid li.ok .tst-w, body[data-apencre="verte"] #jdlg .pbadge, body[data-apencre="verte"] #jdlg .mgrade { color: #2E6B3F; }
body[data-apencre="or"] #jdlg .stamp, body[data-apencre="or"] #jdlg .tgrid li.ok .tst-w, body[data-apencre="or"] #jdlg .pbadge, body[data-apencre="or"] #jdlg .mgrade { color: #A87F1E; }
/* encre bleu outremer : le cadeau du tampon « Premier ami » */
body[data-apencre="bleue"] #jdlg .stamp, body[data-apencre="bleue"] #jdlg .tgrid li.ok .tst-w, body[data-apencre="bleue"] #jdlg .pbadge, body[data-apencre="bleue"] #jdlg .mgrade { color: #27477F; }
/* Couleurs des pays sur la carte du carnet (l'habillage de la carte peut les changer) */
:root { --aq1: #D1495B; --aq2: #E9A23B; --aq3: #5E9E73; --aq4: #00798C; --aq5: #8C5383; --aq6: #E07A5F; --aq7: #3D5A80; }

/* Packs du monde : présentation et aperçu */
.appack { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border: 1.5px dashed var(--line); border-radius: 12px; }
.appack .ap-prev { height: 80px; }
.appack b { font-size: 1.05rem; } .appack p { margin: 2px 0; font-size: .88rem; color: var(--muted); } .appack small { font-size: .78rem; font-weight: 600; color: var(--accent); }
@media (max-width: 560px) { .appack { grid-template-columns: 90px minmax(0, 1fr); } .appack button { grid-column: 1 / -1; } }
.japercu { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; margin: 8px 0 0; padding: 6px 12px; border-radius: 10px; background: rgba(255, 253, 248, .92); color: #2B2621; font-size: .9rem; font-weight: 600; }
.japercu[hidden] { display: none; }
.japercu .linkish { color: #2C4C8C; }

/* Pack Japon : couverture indigo aux vagues (seigaiha) et sceau rouge */
.ap-couv-japon, .ap-pack-japon, body[data-apcouv="japon"] #jdlg .pgin.kraft {
  background-color: #22365C;
  background-image:
    radial-gradient(circle at 100% 150%, #22365C 24%, #3E5E90 24% 27%, #22365C 27% 36%, #3E5E90 36% 39%, transparent 39%),
    radial-gradient(circle at 0 150%, #22365C 24%, #3E5E90 24% 27%, #22365C 27% 36%, #3E5E90 36% 39%, transparent 39%),
    radial-gradient(circle at 50% 100%, #3E5E90 9%, #22365C 9% 22%, #3E5E90 22% 25%, #22365C 25% 43%, #3E5E90 43% 46%, #22365C 46% 63%, #3E5E90 63% 66%, transparent 66%),
    radial-gradient(circle at 100% 50%, #3E5E90 4%, #22365C 4% 15%, #3E5E90 15% 18%, #22365C 18% 29%, #3E5E90 29% 32%, #22365C 32% 44%, #3E5E90 44% 47%, transparent 47%),
    radial-gradient(circle at 0 50%, #3E5E90 4%, #22365C 4% 15%, #3E5E90 15% 18%, #22365C 18% 29%, #3E5E90 29% 32%, #22365C 32% 44%, #3E5E90 44% 47%, transparent 47%);
  background-size: 56px 28px; }
.ap-couv-japon, .ap-pack-japon { background-size: 28px 14px; }
body[data-apcouv="japon"] #jdlg .book { background: #18253F; }
body[data-apcouv="japon"] #jdlg .jlabel { background: #F4EEDF; border: 1.5px solid #C8361E; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .6); transform: rotate(-1deg); position: relative; }
body[data-apcouv="japon"] #jdlg .jlabel::after, .ap-pack-japon::after { content: ""; position: absolute; right: -12px; bottom: -12px; width: 32px; height: 32px; border-radius: 4px;
  background: #C8361E; box-shadow: inset 0 0 0 4px #C8361E, inset 0 0 0 6px rgba(255, 255, 255, .7); transform: rotate(-5deg); }
.ap-pack-japon::after { right: 8px; bottom: 8px; width: 24px; height: 24px; }

/* Pack Japon : washi tape à fleurs de cerisier */
.ap-scotch-japon::before, body[data-apscotch="japon"] #jdlg .book .pola::before {
  background:
    radial-gradient(circle at 50% 50%, #B8325A 1.3px, transparent 1.7px) 0 0 / 16px 16px,
    radial-gradient(circle at 50% 27%, rgba(255, 255, 255, .95) 2.4px, transparent 2.8px) 0 0 / 16px 16px,
    radial-gradient(circle at 73% 50%, rgba(255, 255, 255, .95) 2.4px, transparent 2.8px) 0 0 / 16px 16px,
    radial-gradient(circle at 50% 73%, rgba(255, 255, 255, .95) 2.4px, transparent 2.8px) 0 0 / 16px 16px,
    radial-gradient(circle at 27% 50%, rgba(255, 255, 255, .95) 2.4px, transparent 2.8px) 0 0 / 16px 16px,
    rgba(234, 152, 174, .86); }
.ap-scotch-japon::before { content: ""; position: absolute; left: 50%; top: 18px; width: 74px; height: 22px; transform: translateX(-50%) rotate(-4deg); clip-path: polygon(3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 94%, 0 50%); }

/* Pack Japon : le bureau devient un tatami */
.ap-fond-japon, body[data-apfond="japon"] dialog.page.journal .sheet {
  background-color: #8F8A50;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 236px, #26321F 236px 242px, #3A4A2E 242px 246px, #26321F 246px 250px),
    repeating-linear-gradient(90deg, rgba(60, 55, 20, .22) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(255, 250, 210, .07) 0 6px, transparent 6px 12px), var(--grain); }
.ap-fond-japon { background-image: repeating-linear-gradient(0deg, transparent 0 40px, #26321F 40px 46px), repeating-linear-gradient(90deg, rgba(60, 55, 20, .22) 0 1px, transparent 1px 3px), var(--grain); }
body[data-apfond="japon"] #jdlg .jhead h2, body[data-apfond="japon"] #jdlg #jPos { text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }

/* Pack Japon : la carte façon estampe (océan à vagues, terres crème, contours à l'encre, couleurs traditionnelles) */
body[data-apcarte="japon"] { --aq1: #D9472B; --aq2: #E6A33A; --aq3: #7A9A4A; --aq4: #2B4B7E; --aq5: #8B6BA8; --aq6: #E38FA6; --aq7: #8A5A3B; }
body[data-apcarte="japon"] .carte .mer { fill: url(#vagues); stroke: #3B3A36; stroke-width: 1; }
body[data-apcarte="japon"] .carte .quad { stroke: #7FA2B5; opacity: .45; }
body[data-apcarte="japon"] .carte .autre, body[data-apcarte="japon"] .carte [data-z]:not(.vu) { fill: #F3E9D0; stroke: #3B3A36; stroke-width: .35; }
body[data-apcarte="japon"] .carte .vu { stroke: #2B2621; stroke-width: .5; }
body[data-apcarte="japon"] .carte .pin circle { fill: #D9472B; }
.ap-carte-japon { background: linear-gradient(135deg, transparent 0 40%, #D9472B 40% 55%, transparent 55% 62%, #2B4B7E 62% 80%, transparent 80%),
  radial-gradient(circle at 50% 100%, transparent 6px, #8FB0C2 6px 7px, transparent 7px 11px, #8FB0C2 11px 12px, transparent 12px) 0 0 / 24px 12px, #DCE8EE; }

/* Pack Japon : encre vermillon, comme les sceaux */
body[data-apencre="japon"] #jdlg .stamp, body[data-apencre="japon"] #jdlg .tgrid li.ok .tst-w, body[data-apencre="japon"] #jdlg .pbadge, body[data-apencre="japon"] #jdlg .mgrade { color: #C8361E; }
.ap-encre-japon { background: radial-gradient(circle at 50% 50%, transparent 18px, #C8361E 18px 22px, transparent 22px), #FBF7EE; }
/* Le papier des pages : ligné (de départ) ou washi (pack Japon : crème, sans lignes, fibres visibles) */
:root { --washi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M104 48Q99 55 94 68' stroke='%23B9A580' stroke-opacity='0.57' stroke-width='0.6'/%3E%3Cpath d='M28 134Q36 151 61 166' stroke='%23C8B48F' stroke-opacity='0.47' stroke-width='0.8'/%3E%3Cpath d='M20 187Q35 182 49 192' stroke='%23A8946F' stroke-opacity='0.30' stroke-width='0.5'/%3E%3Cpath d='M99 261Q122 272 139 287' stroke='%23B9A580' stroke-opacity='0.45' stroke-width='0.8'/%3E%3Cpath d='M159 170Q151 181 127 197' stroke='%23C8B48F' stroke-opacity='0.53' stroke-width='0.9'/%3E%3Cpath d='M78 184Q80 211 73 247' stroke='%23B9A580' stroke-opacity='0.29' stroke-width='0.7'/%3E%3Cpath d='M242 49Q246 64 243 69' stroke='%23FFFFFF' stroke-opacity='0.37' stroke-width='0.6'/%3E%3Cpath d='M159 255Q166 261 181 260' stroke='%23B9A580' stroke-opacity='0.27' stroke-width='0.9'/%3E%3Cpath d='M207 318Q191 330 179 335' stroke='%23B9A580' stroke-opacity='0.58' stroke-width='0.6'/%3E%3Cpath d='M195 158Q213 166 221 179' stroke='%23A8946F' stroke-opacity='0.28' stroke-width='0.7'/%3E%3Cpath d='M176 283Q145 298 123 317' stroke='%23FFFFFF' stroke-opacity='0.49' stroke-width='0.7'/%3E%3Cpath d='M74 27Q87 45 120 50' stroke='%23C8B48F' stroke-opacity='0.34' stroke-width='0.4'/%3E%3Cpath d='M134 118Q131 152 120 184' stroke='%23B9A580' stroke-opacity='0.41' stroke-width='1.0'/%3E%3Cpath d='M305 218Q299 236 297 256' stroke='%23A8946F' stroke-opacity='0.27' stroke-width='0.4'/%3E%3Cpath d='M67 52Q62 54 77 70' stroke='%23B9A580' stroke-opacity='0.58' stroke-width='0.8'/%3E%3Cpath d='M23 67Q41 92 42 114' stroke='%23A8946F' stroke-opacity='0.29' stroke-width='1.0'/%3E%3Cpath d='M318 149Q310 157 319 172' stroke='%23FFFFFF' stroke-opacity='0.42' stroke-width='0.9'/%3E%3Cpath d='M165 66Q151 77 129 71' stroke='%23FFFFFF' stroke-opacity='0.59' stroke-width='1.0'/%3E%3Cpath d='M223 84Q234 96 234 108' stroke='%23FFFFFF' stroke-opacity='0.47' stroke-width='0.8'/%3E%3Cpath d='M252 243Q263 257 277 260' stroke='%23C8B48F' stroke-opacity='0.43' stroke-width='0.6'/%3E%3Cpath d='M9 9Q23 30 29 33' stroke='%23A8946F' stroke-opacity='0.53' stroke-width='0.9'/%3E%3Cpath d='M112 312Q123 312 134 318' stroke='%23A8946F' stroke-opacity='0.47' stroke-width='1.0'/%3E%3Cpath d='M269 153Q247 183 241 206' stroke='%23A8946F' stroke-opacity='0.52' stroke-width='0.9'/%3E%3Cpath d='M153 57Q145 77 125 79' stroke='%23A8946F' stroke-opacity='0.41' stroke-width='0.9'/%3E%3Cpath d='M27 51Q19 50 8 51' stroke='%23C8B48F' stroke-opacity='0.46' stroke-width='0.8'/%3E%3Cpath d='M152 300Q163 317 193 322' stroke='%23B9A580' stroke-opacity='0.43' stroke-width='1.1'/%3E%3Cpath d='M139 279Q121 282 114 294' stroke='%23C8B48F' stroke-opacity='0.52' stroke-width='0.6'/%3E%3Cpath d='M174 267Q210 276 230 278' stroke='%23A8946F' stroke-opacity='0.54' stroke-width='1.0'/%3E%3Cpath d='M42 49Q46 82 40 112' stroke='%23C8B48F' stroke-opacity='0.31' stroke-width='0.7'/%3E%3Cpath d='M232 178Q245 203 255 216' stroke='%23B9A580' stroke-opacity='0.56' stroke-width='0.4'/%3E%3Cpath d='M61 14Q72 28 101 26' stroke='%23B9A580' stroke-opacity='0.41' stroke-width='0.8'/%3E%3Cpath d='M162 164Q151 181 138 198' stroke='%23C8B48F' stroke-opacity='0.49' stroke-width='1.0'/%3E%3Cpath d='M301 83Q302 109 289 149' stroke='%23B9A580' stroke-opacity='0.39' stroke-width='0.6'/%3E%3Cpath d='M215 137Q220 153 241 158' stroke='%23FFFFFF' stroke-opacity='0.30' stroke-width='1.0'/%3E%3Cpath d='M310 70Q290 83 271 76' stroke='%23C8B48F' stroke-opacity='0.31' stroke-width='0.7'/%3E%3Cpath d='M165 109Q184 109 193 128' stroke='%23A8946F' stroke-opacity='0.40' stroke-width='0.4'/%3E%3Cpath d='M106 200Q115 216 105 221' stroke='%23B9A580' stroke-opacity='0.28' stroke-width='0.6'/%3E%3Cpath d='M290 58Q275 83 246 100' stroke='%23FFFFFF' stroke-opacity='0.39' stroke-width='0.8'/%3E%3Cpath d='M165 158Q179 166 182 186' stroke='%23B9A580' stroke-opacity='0.34' stroke-width='0.4'/%3E%3Cpath d='M28 83Q19 90 18 111' stroke='%23B9A580' stroke-opacity='0.37' stroke-width='0.8'/%3E%3Cpath d='M297 86Q312 87 338 104' stroke='%23C8B48F' stroke-opacity='0.34' stroke-width='0.5'/%3E%3Cpath d='M298 201Q296 219 296 230' stroke='%23FFFFFF' stroke-opacity='0.37' stroke-width='0.4'/%3E%3Cpath d='M80 5Q58 22 49 40' stroke='%23A8946F' stroke-opacity='0.29' stroke-width='1.0'/%3E%3Cpath d='M138 158Q122 172 105 177' stroke='%23C8B48F' stroke-opacity='0.37' stroke-width='1.0'/%3E%3Cpath d='M226 204Q223 213 237 238' stroke='%23B9A580' stroke-opacity='0.47' stroke-width='1.0'/%3E%3Cpath d='M138 18Q129 44 119 51' stroke='%23C8B48F' stroke-opacity='0.49' stroke-width='0.4'/%3E%3Cpath d='M59 86Q74 96 96 87' stroke='%23FFFFFF' stroke-opacity='0.34' stroke-width='1.1'/%3E%3Cpath d='M99 114Q117 114 137 114' stroke='%23C8B48F' stroke-opacity='0.34' stroke-width='0.9'/%3E%3Cpath d='M29 261Q49 268 73 283' stroke='%23C8B48F' stroke-opacity='0.28' stroke-width='1.1'/%3E%3Cpath d='M273 50Q247 65 218 69' stroke='%23A8946F' stroke-opacity='0.30' stroke-width='0.9'/%3E%3Cpath d='M206 14Q180 35 150 46' stroke='%23C8B48F' stroke-opacity='0.57' stroke-width='0.9'/%3E%3Cpath d='M182 260Q215 266 236 263' stroke='%23C8B48F' stroke-opacity='0.28' stroke-width='0.4'/%3E%3Cpath d='M204 307Q203 317 220 345' stroke='%23C8B48F' stroke-opacity='0.42' stroke-width='0.4'/%3E%3Cpath d='M255 239Q258 254 255 285' stroke='%23A8946F' stroke-opacity='0.34' stroke-width='0.5'/%3E%3Cpath d='M85 233Q117 250 130 267' stroke='%23A8946F' stroke-opacity='0.28' stroke-width='1.0'/%3E%3Cpath d='M92 15Q88 25 80 41' stroke='%23FFFFFF' stroke-opacity='0.47' stroke-width='0.5'/%3E%3Cpath d='M154 155Q137 156 131 157' stroke='%23FFFFFF' stroke-opacity='0.41' stroke-width='0.7'/%3E%3Cpath d='M38 286Q75 296 94 326' stroke='%23A8946F' stroke-opacity='0.28' stroke-width='0.8'/%3E%3Cpath d='M318 318Q338 340 341 380' stroke='%23B9A580' stroke-opacity='0.30' stroke-width='0.8'/%3E%3Cpath d='M305 42Q294 58 267 66' stroke='%23C8B48F' stroke-opacity='0.42' stroke-width='1.0'/%3E%3Cpath d='M126 51Q98 60 73 59' stroke='%23A8946F' stroke-opacity='0.37' stroke-width='0.6'/%3E%3Cpath d='M269 1Q239 31 225 44' stroke='%23B9A580' stroke-opacity='0.57' stroke-width='0.6'/%3E%3Cpath d='M119 126Q92 124 70 126' stroke='%23FFFFFF' stroke-opacity='0.55' stroke-width='0.6'/%3E%3Cpath d='M17 212Q21 222 6 235' stroke='%23FFFFFF' stroke-opacity='0.32' stroke-width='0.7'/%3E%3Cpath d='M306 283Q293 306 264 311' stroke='%23C8B48F' stroke-opacity='0.50' stroke-width='0.4'/%3E%3Cpath d='M234 144Q212 153 198 180' stroke='%23C8B48F' stroke-opacity='0.31' stroke-width='0.7'/%3E%3Cpath d='M90 82Q71 96 55 120' stroke='%23A8946F' stroke-opacity='0.45' stroke-width='0.7'/%3E%3Cpath d='M54 52Q79 66 105 91' stroke='%23FFFFFF' stroke-opacity='0.60' stroke-width='0.7'/%3E%3Cpath d='M45 62Q54 61 79 72' stroke='%23FFFFFF' stroke-opacity='0.53' stroke-width='0.5'/%3E%3Cpath d='M6 279Q11 300 27 332' stroke='%23B9A580' stroke-opacity='0.42' stroke-width='0.8'/%3E%3C/g%3E%3C/svg%3E"); }
body[data-appapier="japon"] #jdlg .pgin:not(.kraft) { background-color: #F3ECDC; background-image: var(--washi), var(--grain); }
.ap-papier-ligne { background-image: linear-gradient(to right, transparent 16px, rgba(214, 51, 74, .45) 16px 17px, transparent 17px), repeating-linear-gradient(to bottom, transparent 0 11px, rgba(44, 76, 140, .3) 11px 12px); }
.ap-papier-japon { background-color: #F3ECDC; background-image: var(--washi), var(--grain); background-size: 160px 160px, auto; }
/* L'écriture du carnet : stylo (de départ) ou pinceau à l'encre de Chine (pack Japon) */
.ap-ecriture-plume, .ap-ecriture-japon { display: grid; place-items: center; font-size: 1.5rem; line-height: 1; color: #2C4C8C; }
.ap-ecriture-plume { font-family: var(--hand); font-weight: 700; font-size: 1.7rem; }
.ap-ecriture-japon { font-family: "Kaushan Script", var(--hand); color: #1C1A17; }
body[data-apecriture="japon"] #jdlg .pgin { --hand: "Kaushan Script", "Caveat", cursive; font-synthesis: none; }
body[data-apecriture="japon"] #jdlg .jnote { color: #1C1A17; font-size: 1.3rem; }
body[data-apecriture="japon"] #jdlg .jtitle { font-size: 1.85rem; }
body[data-apecriture="japon"] #jdlg .jsrow { font-size: 1.15rem; }
body[data-apecriture="japon"] #jdlg .jsomm h3, body[data-apecriture="japon"] #jdlg .jmoi-t, body[data-apecriture="japon"] #jdlg .jcarte-t h3 { font-size: 1.65rem; }
body[data-apecriture="japon"] #jdlg .jtopcover b { font-size: 1.9rem; }
body[data-apecriture="japon"] #jdlg .jlabel span { font-size: 2.2rem; }
body[data-apecriture="japon"] #jdlg .mpseudo { font-size: 1.9rem; }
body[data-apecriture="japon"] #jdlg .mbio { font-size: 1.2rem; color: #1C1A17; }
body[data-apecriture="japon"] #jdlg .pgrade b { font-size: 1.75rem; }
body[data-apecriture="japon"] #jdlg .pnext { font-size: 1.15rem; }
body[data-apecriture="japon"] #jdlg .pe-nom { font-size: 1rem; }
body[data-apecriture="japon"] #jdlg .tgrid li > b { font-size: 1.05rem; }
body[data-apecriture="japon"] #jdlg .jcarte-aide { font-size: 1.1rem; }
body[data-apecriture="japon"] #jdlg .jnew p, body[data-apecriture="japon"] #jdlg .jfin { font-size: 1.5rem; }
/* Partager ma carte */
.kpartager { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; }
.kpartager svg { width: 18px; height: 18px; }
.sformats { margin: 4px 0 12px; }
.sapercu { display: grid; place-items: center; min-height: 160px; margin: 0 0 14px; }
.sapercu img { display: block; max-width: 100%; max-height: 58vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .7); }
.sbtns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- Carnet : marque-pages et « Mes recettes » ---------- */
#jdlg .bookwrap { position: relative; }
#jdlg .book { z-index: 1; }
.jtabs { position: absolute; z-index: 0; display: flex; flex-direction: column; gap: 8px; }
.jtab { flex: none; width: 46px; min-height: 76px; padding: 12px 0 12px 10px; border: 0; border-radius: 0 10px 10px 0; background: var(--c); color: #2B2621;
  font-family: var(--hand); font-weight: 700; font-size: 1.15rem; line-height: 1; writing-mode: vertical-rl; box-shadow: 3px 3px 6px -2px rgba(0, 0, 0, .4);
  transform: translateX(-10px); transition: transform .15s ease; cursor: pointer; }
.jtab:not(.on) { filter: saturate(.75) brightness(.97); }
.jtab:hover { transform: translateX(-4px); }
.jtab.on { transform: translateX(2px); box-shadow: 4px 3px 9px -2px rgba(0, 0, 0, .5); }
.jtab:focus-visible { outline: 3px solid var(--ink, #2B2621); outline-offset: 2px; }
.jtabs.haut { flex-direction: row; justify-content: flex-end; gap: 3px; }
.jtabs.haut .jtab { writing-mode: horizontal-tb; width: auto; min-height: 0; height: 32px; padding: 0 8px 8px; border-radius: 9px 9px 0 0; font-size: .95rem; transform: translateY(8px); }
.jtabs.haut .jtab:hover { transform: translateY(5px); }
.jtabs.haut .jtab.on { transform: translateY(2px); }
@media (prefers-reduced-motion: reduce) { .jtab { transition: none; } }
.jhead { position: relative; }
.jmenu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; display: grid; gap: 2px; min-width: 270px; max-width: calc(100vw - 32px); padding: 6px; border-radius: 14px;
  background: var(--surface, #fff); color: var(--ink, #2B2621); box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .55); }
.jmenu button { display: grid; gap: 2px; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 9px; color: inherit; font: inherit; cursor: pointer; }
.jmenu button:hover, .jmenu button:focus-visible { background: rgba(0, 0, 0, .07); }
.jmenu b { font-weight: 700; }
.jmenu small { color: var(--muted, #6B6153); font-size: .84rem; }
.rsom-add { margin-top: 18px; }
.jsomm .jss svg { width: 13px; height: 13px; }
.rinvite { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 10px; padding: 0 20px; }
.rinvite p { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 1.6rem; line-height: 34px; color: #2B2621; }
.rinvite .rpetit { font-weight: 400; font-size: 1.3rem; color: #2C4C8C; }
.rfouet { width: 70px; height: 70px; color: #B5452F; transform: rotate(-18deg); }
.pgin.rec { padding: 24px 22px 30px 50px; }
.rcarte { position: relative; max-height: 100%; overflow-y: auto; overflow-x: hidden; padding: 14px 18px; border-radius: 3px; background-color: #FFFEFA;
  background-image: linear-gradient(to bottom, transparent 0 13px, rgba(214, 51, 74, .45) 13px 14px, transparent 14px), repeating-linear-gradient(to bottom, transparent 0 25px, rgba(44, 76, 140, .14) 25px 26px);
  background-size: 100% 100%, 100% 26px; background-position: 0 0, 0 14px; box-shadow: 0 6px 16px -6px rgba(40, 25, 10, .5); transform: rotate(-.5deg);
  scrollbar-width: thin; scrollbar-color: rgba(107, 97, 83, .5) transparent; overflow-wrap: anywhere; }
.rcarte.b { transform: rotate(.5deg); }
.pgin.rec .rcarte.b { max-height: calc(100% - 52px); }
.rpola { position: absolute; z-index: 2; top: 10px; right: 12px; width: 36%; padding: 6px 6px 16px; background: #fff; box-shadow: 0 8px 16px -6px rgba(40, 25, 10, .55); transform: rotate(4deg); }
.rpola img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.rcarte.aphoto .rqui, .rcarte.aphoto .rtitre, .rcarte.aphoto .rmeta { margin-right: 40%; }
.rqui { margin: 6px 0 0; font-family: var(--type); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: #8A7D6A; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.rqui svg { width: 12px; height: 12px; }
.rtitre { margin: 4px 0 6px; font-family: var(--hand); font-weight: 700; font-size: 1.9rem; line-height: 1.05; color: #2B2621; }
.rmeta { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0 0 8px; }
.rmeta span { font-family: var(--type); font-size: .72rem; line-height: 1; padding: 5px 8px; border-radius: 99px; background: rgba(201, 138, 28, .14); color: #6B4E16; }
.rmots { margin: 0 0 6px; font-family: var(--hand); font-size: 1.2rem; line-height: 26px; color: #2C4C8C; white-space: pre-line; }
.rcarte.aphoto .rmots { clear: both; }
.rh { margin: 4px 0 0; font-family: var(--hand); font-weight: 700; font-size: 1.4rem; line-height: 26px; color: #B5452F; }
.ring, .retapes { margin: 0; padding-left: 1.3em; font-family: var(--hand); font-size: 1.2rem; line-height: 26px; color: #2B2621; }
.ring { list-style: "–  "; }
.book:not(.single) .ring { columns: 2; column-gap: 14px; padding-left: 0; }
.book:not(.single) .ring li { margin-left: 1.1em; }
.ring li { break-inside: avoid; }
/* « − 4 pers. + » à côté de « Ingrédients » : les quantités recalculées à l'écran */
.rh-l { display: flex; align-items: center; flex-wrap: wrap; gap: 0 12px; margin: 4px 0 0; }
.rh-l .rh { margin: 0; }
.rpers { display: inline-flex; align-items: center; gap: 2px; height: 26px; font-family: var(--type); font-size: .72rem; color: #6B4E16; }
.rpers button { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: rgba(201, 138, 28, .2); color: #6B4E16;
  font-size: 1rem; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.rpers button:hover:not(:disabled) { background: rgba(201, 138, 28, .34); }
.rpers button:disabled { opacity: .35; cursor: default; }
.rpers button:focus-visible { outline: 2px solid #6B4E16; outline-offset: 1px; }
.rpers output { min-width: 50px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.rpers.autre-n output { color: #B5452F; }
.ring li.rfix { color: #9A8F82; }
.rfix-note { margin: 0; font-family: var(--type); font-size: .7rem; line-height: 26px; color: #8A7E70; }
.retapes li::marker { font-weight: 700; color: #B5452F; }
.rbtns { position: absolute; left: 50px; right: 60px; bottom: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.rbtns .linkish { color: #2C4C8C; }
.book.single .pgin.rec { padding: 16px 12px 24px 36px; }
.book.single .rbtns { left: 36px; bottom: 18px; }
.book.single .rtitre { font-size: 1.6rem; }
.rdeux { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.rh-aide { margin: -8px 0 14px; }
/* « Écrire ma recette » : une case par étape, avec son numéro */
.rpas { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rpas-l { display: grid; grid-template-columns: 30px minmax(0, 1fr) 34px; align-items: start; gap: 8px; }
.rpas-n { display: grid; place-items: center; width: 30px; height: 30px; margin-top: 9px; border-radius: 50%; background: #B5452F; color: #fff;
  font-family: var(--type); font-weight: 700; font-size: .9rem; }
.efield .rpas-t { min-height: 0; resize: none; overflow: hidden; }
.rpas-x { width: 34px; height: 34px; margin-top: 7px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none;
  color: var(--muted); cursor: pointer; }
.rpas-x:hover { background: var(--chip); color: var(--ink); }
.rpas-x:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.rpas-x svg { width: 16px; height: 16px; }
.rpas-l:only-child { grid-template-columns: 30px minmax(0, 1fr); }
.rpas-plus { margin-top: 10px; }
/* « Écrire ma recette » : un ingrédient par ligne, en trois cases (quantité, unité, nom) */
.ring-tete, .ring-l { display: grid; grid-template-columns: 62px 118px minmax(0, 1fr) 30px; gap: 6px; align-items: center; }
.ring-tete { margin: 0 0 4px; font-size: .8rem; color: var(--muted); }
.ring-tete span:first-child { text-align: right; padding-right: 8px; }
.ring-ed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ring-l:only-child { grid-template-columns: 62px 118px minmax(0, 1fr); }
.efield .ring-ed input, .efield .ring-ed select { padding: 9px 7px; min-width: 0; }
.efield .ring-ed .ring-q { text-align: right; font-variant-numeric: tabular-nums; }
.efield .ring-ed .ring-q:disabled { background: var(--chip); }
.efield .ring-ed .ring-n { font-family: var(--hand); font-size: 1.35rem; line-height: 1.3; padding: 4px 12px; }
.ring-x { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.ring-x:hover { background: var(--chip); color: var(--ink); }
.ring-x:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.ring-x svg { width: 16px; height: 16px; }
@media (max-width: 560px) {  /* téléphone : quantité et unité sur une ligne, le nom en dessous, sur toute la largeur */
  .ring-tete { display: none; }
  .ring-ed { gap: 0; }
  .ring-l, .ring-l:only-child { grid-template-columns: 76px minmax(0, 1fr) 34px; grid-template-areas: "q u x" "n n n"; gap: 6px 8px; padding: 10px 0;
    border-bottom: 1px dashed var(--line); }
  .ring-l:first-child { padding-top: 2px; }
  .ring-l .ring-q { grid-area: q; } .ring-l .ring-u { grid-area: u; } .ring-l .ring-n { grid-area: n; } .ring-l .ring-x { grid-area: x; }
}
/* Dans le carnet : la quantité d'un ingrédient rangé */
.ring .rq { font-family: var(--type); font-weight: 700; font-size: .78em; }
.ring .rq.doux { font-weight: 400; color: #8A7E70; }
/* Les recettes des autres (script 010) : la ligne des notes, « J'ai cuisiné ce plat », les pages « chez … », la pastille */
.rnotes { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin: 0 0 8px; padding: 4px 10px 4px 7px; border: 0; border-radius: 99px;
  background: rgba(201, 138, 28, .16); color: #6B4E16; font-family: var(--type); font-size: .74rem; cursor: pointer; }
.rnotes b { font-size: .92rem; color: #2B2621; }
.rnotes:hover { background: rgba(201, 138, 28, .3); }
.rnotes:focus-visible { outline: 3px solid #2B2621; outline-offset: 2px; }
.rnotes.vide { display: block; background: none; padding: 0; cursor: default; color: #8A7D6A; }
.rnouv { display: inline-block; padding: 2px 7px; border-radius: 99px; background: #D6334A; color: #fff; font-family: var(--type); font-size: .68rem; font-weight: 700;
  font-style: normal; letter-spacing: 0; text-transform: none; vertical-align: middle; }
.rbtns .rcuis { height: 40px; padding: 0 18px; font-size: 1rem; }
.jsomm .rpt { display: inline-block; min-width: 19px; height: 19px; margin-left: 6px; padding: 0 5px; border-radius: 99px; background: #D6334A; color: #fff;
  font: 700 .7rem/19px var(--type); font-style: normal; letter-spacing: 0; text-align: center; vertical-align: middle; }
.jschez { font-family: var(--type); font-size: .64rem; letter-spacing: .04em; text-transform: uppercase; color: #8A7D6A; }
.jtab { position: relative; }
.jtab-nb { position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: #D6334A; color: #fff;
  font: 700 .7rem/19px var(--type); font-style: normal; text-align: center; writing-mode: horizontal-tb; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.jperso .jphoto { margin-bottom: 12px; }
.jperso .pola { width: 60%; }
.jde { margin: 0 0 4px; font-family: var(--type); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #8A7D6A; }
.jsansphoto { display: grid; place-items: center; aspect-ratio: 1; background: #F3EDE2; color: #B9AD99; }
.pola .jsansphoto svg { width: 40% !important; height: auto !important; transform: rotate(-18deg); }
.jchez { position: absolute; z-index: 2; left: 50%; bottom: 4px; max-width: 92%; overflow: hidden; text-overflow: ellipsis; padding: 2px 10px; transform: translateX(-50%) rotate(-2deg);
  background: rgba(232, 163, 203, .88); color: #2B2621; font-family: var(--hand); font-size: 1.05rem; white-space: nowrap; }
.efixe { margin: 0; display: grid; gap: 2px; font-size: 1.05rem; }
.efixe small { color: var(--muted); font-size: .84rem; }
.einfo { margin: 6px 0 16px; padding: 10px 14px; border-radius: 10px; border: 1.5px dashed var(--line); font-size: .88rem; line-height: 1.4; }
.rdroit { margin: 4px 0 14px; }

/* ===== Mes recettes pour le site (script 011) : sous la recette, dans son carnet ===== */
.rsite { display: grid; gap: 2px; width: 100%; margin: 0 0 10px; padding: 8px 12px; border: 1.5px dashed #C98A1C; border-radius: 10px;
  background: rgba(242, 201, 76, .22); color: #2B2621; font: inherit; font-size: .82rem; line-height: 1.35; text-align: left; }
button.rsite { cursor: pointer; }
button.rsite:hover { background: rgba(242, 201, 76, .38); }
button.rsite:focus-visible { outline: 3px solid #2B2621; outline-offset: 2px; }
.rsite b { font-size: .9rem; }
.rsite.ok { border-color: #5E9A57; background: rgba(157, 203, 145, .25); }
.rsite a, .rsite .linkish { color: #2C4C8C; font-size: inherit; }
.jsomm .rpt.rpt-site { background: #C98A1C; }
.rsite-suppr { margin: 14px 0 -6px; }
/* Une recette de la communauté sur le site : « Une recette de <pseudo> » */
.byline { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; font-size: .95rem; line-height: 1.35; }
.byline[hidden] { display: none; }
.byline small { display: block; margin-top: 1px; color: var(--muted); font-size: .8rem; }
.byline .by-nom { font-weight: 700; }
.byline button.by-nom { font-size: inherit; }
.by-ava { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #E8A3CB; color: #2B2621;
  font-family: var(--hand); font-size: 1.2rem; }

/* ---------- Le carnet qui a vécu (habillage de départ, validé par Fabien le 8 novembre 2026) ----------
   Couverture de cuir patiné, papier jauni aux bords roussis, épaisseur des pages, marques du temps propres à chaque page
   (data-ta et data-co, posés par app.js), marque-pages abîmés, scotch de papier. Tout est dessiné ici
   (SVG) : aucune image à télécharger. Les habillages gardent leurs couleurs et prennent la même usure. */
:root { }
:root { --v-aiguille: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cdefs%3E %3ClinearGradient id='n' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23E0493C'/%3E%3Cstop offset='.5' stop-color='%23C22A20'/%3E%3Cstop offset='.5' stop-color='%238E1A14'/%3E%3Cstop offset='1' stop-color='%23A3231B'/%3E%3C/linearGradient%3E %3ClinearGradient id='s' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%236E7684'/%3E%3Cstop offset='.5' stop-color='%234A505C'/%3E%3Cstop offset='.5' stop-color='%23262A32'/%3E%3Cstop offset='1' stop-color='%233A3F49'/%3E%3C/linearGradient%3E %3CradialGradient id='c' cx='38%25' cy='34%25' r='70%25'%3E%3Cstop offset='0' stop-color='%23FBE7AE'/%3E%3Cstop offset='.6' stop-color='%23B88A3A'/%3E%3Cstop offset='1' stop-color='%235E4116'/%3E%3C/radialGradient%3E%3C/defs%3E %3Cpolygon points='60,10 66.5,60 53.5,60' fill='url(%23n)'/%3E%3Cpolygon points='60,110 66.5,60 53.5,60' fill='url(%23s)'/%3E %3Ccircle cx='60' cy='60' r='6.5' fill='url(%23c)' stroke='%234A3210' stroke-width='.6'/%3E%3Ccircle cx='58.5' cy='58.5' r='1.6' fill='%23fff' opacity='.7'/%3E%3C/svg%3E"); --v-carte: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='400' viewBox='0 0 520 400'%3E%3Cdefs%3E %3Cfilter id='dc' x='-5%25' y='-5%25' width='110%25' height='110%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.045' numOctaves='3' seed='3'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='16'/%3E%3C/filter%3E %3Cfilter id='ta' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='4' seed='8'/%3E %3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .28 0 0 0 0 .1 2.2 0 0 0 -1'/%3E%3C/filter%3E %3CradialGradient id='bo' cx='50%25' cy='50%25' r='70%25'%3E%3Cstop offset='.55' stop-color='%236B4A22' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%235A3A16' stop-opacity='.55'/%3E%3C/radialGradient%3E %3ClinearGradient id='pl' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23000' stop-opacity='0'/%3E%3Cstop offset='.47' stop-color='%233A2410' stop-opacity='.18'/%3E%3Cstop offset='.5' stop-color='%23FFF6E0' stop-opacity='.35'/%3E%3Cstop offset='.53' stop-color='%233A2410' stop-opacity='.12'/%3E%3Cstop offset='1' stop-color='%23000' stop-opacity='0'/%3E%3C/linearGradient%3E %3ClinearGradient id='ph' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23000' stop-opacity='0'/%3E%3Cstop offset='.47' stop-color='%233A2410' stop-opacity='.16'/%3E%3Cstop offset='.5' stop-color='%23FFF6E0' stop-opacity='.3'/%3E%3Cstop offset='.53' stop-color='%233A2410' stop-opacity='.1'/%3E%3Cstop offset='1' stop-color='%23000' stop-opacity='0'/%3E%3C/linearGradient%3E %3Cmask id='m'%3E%3Crect x='14' y='14' width='492' height='372' fill='%23fff' filter='url(%23dc)'/%3E%3C/mask%3E%3C/defs%3E %3Cg mask='url(%23m)'%3E%3Crect width='520' height='400' fill='%23D8C397'/%3E%3Crect width='520' height='400' filter='url(%23ta)' opacity='.55'/%3E %3Cg stroke='%236B5030' stroke-width='.6' opacity='.22'%3E%3Cline x1='70' y1='0' x2='70' y2='400' /%3E%3Cline x1='145' y1='0' x2='145' y2='400' /%3E%3Cline x1='220' y1='0' x2='220' y2='400' /%3E%3Cline x1='295' y1='0' x2='295' y2='400' /%3E%3Cline x1='370' y1='0' x2='370' y2='400' /%3E%3Cline x1='445' y1='0' x2='445' y2='400' /%3E%3Cline x1='0' y1='60' x2='520' y2='60' /%3E%3Cline x1='0' y1='135' x2='520' y2='135' /%3E%3Cline x1='0' y1='210' x2='520' y2='210' /%3E%3Cline x1='0' y1='285' x2='520' y2='285' /%3E%3Cline x1='0' y1='360' x2='520' y2='360' /%3E%3C/g%3E %3Cpath d='M271.5 161.5Q277.1 170 278.6 179.8Q280 189.5 270 196.7Q259.9 204 243.8 205.4Q227.8 206.9 218.1 208.5Q208.5 210.2 203.3 216.7Q198 223.2 189.4 228.4Q180.7 233.6 169.3 238Q157.8 242.4 146.3 239.6Q134.8 236.8 124.4 232.7Q113.9 228.5 103.8 223.6Q93.7 218.7 86.2 211.6Q78.8 204.5 82.7 194.6Q86.5 184.8 90.3 177.4Q94.2 170 98.9 164.1Q103.6 158.2 97 149.1Q90.4 139.9 94.1 131.9Q97.8 123.9 101.5 113.2Q105.2 102.4 120.3 103.3Q135.3 104.1 147 103.3Q158.6 102.5 169.4 106Q180.2 109.6 190.3 110.8Q200.5 112.1 211.1 114.1Q221.7 116.1 224.5 124.8Q227.3 133.4 232.9 138.8Q238.6 144.1 252.2 148.5Q265.9 153 271.5 161.5Z' transform='translate(170 170) scale(1.08) translate(-170 -170)' fill='none' stroke='%236B5030' stroke-width='0.9' opacity='0.45' stroke-dasharray='0'/%3E%3Cpath d='M271.5 161.5Q277.1 170 278.6 179.8Q280 189.5 270 196.7Q259.9 204 243.8 205.4Q227.8 206.9 218.1 208.5Q208.5 210.2 203.3 216.7Q198 223.2 189.4 228.4Q180.7 233.6 169.3 238Q157.8 242.4 146.3 239.6Q134.8 236.8 124.4 232.7Q113.9 228.5 103.8 223.6Q93.7 218.7 86.2 211.6Q78.8 204.5 82.7 194.6Q86.5 184.8 90.3 177.4Q94.2 170 98.9 164.1Q103.6 158.2 97 149.1Q90.4 139.9 94.1 131.9Q97.8 123.9 101.5 113.2Q105.2 102.4 120.3 103.3Q135.3 104.1 147 103.3Q158.6 102.5 169.4 106Q180.2 109.6 190.3 110.8Q200.5 112.1 211.1 114.1Q221.7 116.1 224.5 124.8Q227.3 133.4 232.9 138.8Q238.6 144.1 252.2 148.5Q265.9 153 271.5 161.5Z' transform='translate(170 170) scale(1.17) translate(-170 -170)' fill='none' stroke='%236B5030' stroke-width='0.9' opacity='0.3' stroke-dasharray='5 4'/%3E%3Cpath d='M271.5 161.5Q277.1 170 278.6 179.8Q280 189.5 270 196.7Q259.9 204 243.8 205.4Q227.8 206.9 218.1 208.5Q208.5 210.2 203.3 216.7Q198 223.2 189.4 228.4Q180.7 233.6 169.3 238Q157.8 242.4 146.3 239.6Q134.8 236.8 124.4 232.7Q113.9 228.5 103.8 223.6Q93.7 218.7 86.2 211.6Q78.8 204.5 82.7 194.6Q86.5 184.8 90.3 177.4Q94.2 170 98.9 164.1Q103.6 158.2 97 149.1Q90.4 139.9 94.1 131.9Q97.8 123.9 101.5 113.2Q105.2 102.4 120.3 103.3Q135.3 104.1 147 103.3Q158.6 102.5 169.4 106Q180.2 109.6 190.3 110.8Q200.5 112.1 211.1 114.1Q221.7 116.1 224.5 124.8Q227.3 133.4 232.9 138.8Q238.6 144.1 252.2 148.5Q265.9 153 271.5 161.5Z' transform='translate(170 170) scale(1.27) translate(-170 -170)' fill='none' stroke='%236B5030' stroke-width='0.8' opacity='0.18' stroke-dasharray='2 5'/%3E%3Cpath d='M447.4 244.7Q457.4 250 454.5 257Q451.7 264 444.5 268.8Q437.3 273.7 427.9 275Q418.5 276.3 412 278.1Q405.5 279.9 398.8 285.1Q392 290.3 383.6 288.7Q375.2 287.1 367 285Q358.8 282.9 350.1 279.7Q341.4 276.5 341.6 269.1Q341.8 261.7 344.6 255.9Q347.5 250 352.1 245.9Q356.7 241.7 352.7 234.5Q348.7 227.4 349.8 218.3Q350.8 209.2 362.2 209.1Q373.6 209.1 382.8 211.4Q392 213.6 399.9 214.3Q407.8 214.9 414.5 218Q421.1 221.1 425 225.9Q428.8 230.8 433.1 235.1Q437.3 239.4 447.4 244.7Z' transform='translate(392 250) scale(1.08) translate(-392 -250)' fill='none' stroke='%236B5030' stroke-width='0.9' opacity='0.45' stroke-dasharray='0'/%3E%3Cpath d='M447.4 244.7Q457.4 250 454.5 257Q451.7 264 444.5 268.8Q437.3 273.7 427.9 275Q418.5 276.3 412 278.1Q405.5 279.9 398.8 285.1Q392 290.3 383.6 288.7Q375.2 287.1 367 285Q358.8 282.9 350.1 279.7Q341.4 276.5 341.6 269.1Q341.8 261.7 344.6 255.9Q347.5 250 352.1 245.9Q356.7 241.7 352.7 234.5Q348.7 227.4 349.8 218.3Q350.8 209.2 362.2 209.1Q373.6 209.1 382.8 211.4Q392 213.6 399.9 214.3Q407.8 214.9 414.5 218Q421.1 221.1 425 225.9Q428.8 230.8 433.1 235.1Q437.3 239.4 447.4 244.7Z' transform='translate(392 250) scale(1.17) translate(-392 -250)' fill='none' stroke='%236B5030' stroke-width='0.9' opacity='0.3' stroke-dasharray='5 4'/%3E%3Cpath d='M447.4 244.7Q457.4 250 454.5 257Q451.7 264 444.5 268.8Q437.3 273.7 427.9 275Q418.5 276.3 412 278.1Q405.5 279.9 398.8 285.1Q392 290.3 383.6 288.7Q375.2 287.1 367 285Q358.8 282.9 350.1 279.7Q341.4 276.5 341.6 269.1Q341.8 261.7 344.6 255.9Q347.5 250 352.1 245.9Q356.7 241.7 352.7 234.5Q348.7 227.4 349.8 218.3Q350.8 209.2 362.2 209.1Q373.6 209.1 382.8 211.4Q392 213.6 399.9 214.3Q407.8 214.9 414.5 218Q421.1 221.1 425 225.9Q428.8 230.8 433.1 235.1Q437.3 239.4 447.4 244.7Z' transform='translate(392 250) scale(1.27) translate(-392 -250)' fill='none' stroke='%236B5030' stroke-width='0.8' opacity='0.18' stroke-dasharray='2 5'/%3E%3Cpath d='M456.4 88.3Q461.6 92 459.6 96.8Q457.7 101.6 450.9 103.2Q444.1 104.7 439.9 107.2Q435.6 109.7 429.8 110.4Q424 111 418.4 109.2Q412.9 107.4 408.3 104.3Q403.7 101.1 405.9 96.6Q408 92 409.3 88.6Q410.6 85.3 410.9 80.1Q411.2 75 417.6 74.1Q424 73.1 429.7 74Q435.4 74.9 440.6 76.3Q445.8 77.8 448.5 81.2Q451.2 84.6 456.4 88.3Z' transform='translate(430 92) scale(1.08) translate(-430 -92)' fill='none' stroke='%236B5030' stroke-width='0.9' opacity='0.45' stroke-dasharray='0'/%3E%3Cpath d='M456.4 88.3Q461.6 92 459.6 96.8Q457.7 101.6 450.9 103.2Q444.1 104.7 439.9 107.2Q435.6 109.7 429.8 110.4Q424 111 418.4 109.2Q412.9 107.4 408.3 104.3Q403.7 101.1 405.9 96.6Q408 92 409.3 88.6Q410.6 85.3 410.9 80.1Q411.2 75 417.6 74.1Q424 73.1 429.7 74Q435.4 74.9 440.6 76.3Q445.8 77.8 448.5 81.2Q451.2 84.6 456.4 88.3Z' transform='translate(430 92) scale(1.17) translate(-430 -92)' fill='none' stroke='%236B5030' stroke-width='0.9' opacity='0.3' stroke-dasharray='5 4'/%3E%3Cpath d='M456.4 88.3Q461.6 92 459.6 96.8Q457.7 101.6 450.9 103.2Q444.1 104.7 439.9 107.2Q435.6 109.7 429.8 110.4Q424 111 418.4 109.2Q412.9 107.4 408.3 104.3Q403.7 101.1 405.9 96.6Q408 92 409.3 88.6Q410.6 85.3 410.9 80.1Q411.2 75 417.6 74.1Q424 73.1 429.7 74Q435.4 74.9 440.6 76.3Q445.8 77.8 448.5 81.2Q451.2 84.6 456.4 88.3Z' transform='translate(430 92) scale(1.27) translate(-430 -92)' fill='none' stroke='%236B5030' stroke-width='0.8' opacity='0.18' stroke-dasharray='2 5'/%3E %3Cpath d='M271.5 161.5Q277.1 170 278.6 179.8Q280 189.5 270 196.7Q259.9 204 243.8 205.4Q227.8 206.9 218.1 208.5Q208.5 210.2 203.3 216.7Q198 223.2 189.4 228.4Q180.7 233.6 169.3 238Q157.8 242.4 146.3 239.6Q134.8 236.8 124.4 232.7Q113.9 228.5 103.8 223.6Q93.7 218.7 86.2 211.6Q78.8 204.5 82.7 194.6Q86.5 184.8 90.3 177.4Q94.2 170 98.9 164.1Q103.6 158.2 97 149.1Q90.4 139.9 94.1 131.9Q97.8 123.9 101.5 113.2Q105.2 102.4 120.3 103.3Q135.3 104.1 147 103.3Q158.6 102.5 169.4 106Q180.2 109.6 190.3 110.8Q200.5 112.1 211.1 114.1Q221.7 116.1 224.5 124.8Q227.3 133.4 232.9 138.8Q238.6 144.1 252.2 148.5Q265.9 153 271.5 161.5Z' fill='%23C9B07E' stroke='%234E3720' stroke-width='1.5'/%3E%3Cpath d='M447.4 244.7Q457.4 250 454.5 257Q451.7 264 444.5 268.8Q437.3 273.7 427.9 275Q418.5 276.3 412 278.1Q405.5 279.9 398.8 285.1Q392 290.3 383.6 288.7Q375.2 287.1 367 285Q358.8 282.9 350.1 279.7Q341.4 276.5 341.6 269.1Q341.8 261.7 344.6 255.9Q347.5 250 352.1 245.9Q356.7 241.7 352.7 234.5Q348.7 227.4 349.8 218.3Q350.8 209.2 362.2 209.1Q373.6 209.1 382.8 211.4Q392 213.6 399.9 214.3Q407.8 214.9 414.5 218Q421.1 221.1 425 225.9Q428.8 230.8 433.1 235.1Q437.3 239.4 447.4 244.7Z' fill='%23C9B07E' stroke='%234E3720' stroke-width='1.5'/%3E%3Cpath d='M456.4 88.3Q461.6 92 459.6 96.8Q457.7 101.6 450.9 103.2Q444.1 104.7 439.9 107.2Q435.6 109.7 429.8 110.4Q424 111 418.4 109.2Q412.9 107.4 408.3 104.3Q403.7 101.1 405.9 96.6Q408 92 409.3 88.6Q410.6 85.3 410.9 80.1Q411.2 75 417.6 74.1Q424 73.1 429.7 74Q435.4 74.9 440.6 76.3Q445.8 77.8 448.5 81.2Q451.2 84.6 456.4 88.3Z' fill='%23C9B07E' stroke='%234E3720' stroke-width='1.5'/%3E %3Cpath d='M150 160 C 220 120, 300 190, 380 240 S 420 120, 432 96' fill='none' stroke='%239E3424' stroke-width='2.2' stroke-dasharray='7 6' opacity='.85'/%3E %3Ccircle cx='150' cy='160' r='4' fill='%239E3424'/%3E%3Cpath d='M424 88 l16 16 M440 88 l-16 16' stroke='%239E3424' stroke-width='3' stroke-linecap='round'/%3E %3Cg transform='translate(462 340)'%3E%3Cpolygon points='0,-26 5,0 0,26 -5,0' fill='%234E3720'/%3E%3Cpolygon points='-26,0 0,5 26,0 0,-5' fill='%234E3720' opacity='.7'/%3E%3Ccircle r='9' fill='none' stroke='%234E3720' stroke-width='1'/%3E%3C/g%3E %3Crect width='520' height='400' fill='url(%23bo)'/%3E%3Crect width='520' height='400' fill='url(%23pl)'/%3E%3Crect width='520' height='400' fill='url(%23ph)'/%3E%3C/g%3E%3C/svg%3E"); --v-anneau-clair: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E %3Cfilter id='d' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.035' numOctaves='2' seed='9'/%3E %3CfeDisplacementMap in='SourceGraphic' scale='9'/%3E%3CfeGaussianBlur stdDeviation='.8'/%3E%3C/filter%3E %3Cg filter='url(%23d)' fill='none' stroke='%23F4E6CF'%3E%3Ccircle cx='100' cy='100' r='70' stroke-width='5' stroke-opacity='0.10'/%3E %3Ccircle cx='100' cy='100' r='73' stroke-width='2' stroke-opacity='0.30'/%3E%3Cpath d='M34 120 A 70 70 0 0 0 150 150' stroke-width='3' stroke-opacity='0.30'/%3E%3C/g%3E%3C/svg%3E"); --v-anneau-cafe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E %3Cfilter id='d' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.035' numOctaves='2' seed='9'/%3E %3CfeDisplacementMap in='SourceGraphic' scale='9'/%3E%3CfeGaussianBlur stdDeviation='.8'/%3E%3C/filter%3E %3Cg filter='url(%23d)' fill='none' stroke='%23140802'%3E%3Ccircle cx='100' cy='100' r='70' stroke-width='5' stroke-opacity='0.19'/%3E %3Ccircle cx='100' cy='100' r='73' stroke-width='2' stroke-opacity='0.55'/%3E%3Cpath d='M34 120 A 70 70 0 0 0 150 150' stroke-width='3' stroke-opacity='0.55'/%3E%3C/g%3E%3C/svg%3E"); --v-cafe2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E %3Cfilter id='d' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.03' numOctaves='2' seed='14'/%3E %3CfeDisplacementMap in='SourceGraphic' scale='11'/%3E%3CfeGaussianBlur stdDeviation='.7'/%3E%3C/filter%3E %3Cg filter='url(%23d)' fill='none'%3E %3Cpath d='M60 190 A 98 98 0 1 1 230 210' stroke='%237E4E1C' stroke-width='3' stroke-opacity='.5'/%3E %3Cpath d='M64 196 A 94 94 0 0 0 150 246' stroke='%239A6427' stroke-width='9' stroke-opacity='.1'/%3E %3Cpath d='M160 54 A 96 96 0 0 1 244 140' stroke='%236E4216' stroke-width='2' stroke-opacity='.45'/%3E %3Cpath d='M226 214 C 234 232, 236 252, 232 280' stroke='%237E4E1C' stroke-width='6' stroke-linecap='round' stroke-opacity='.28'/%3E %3Ccircle cx='232' cy='282' r='6' fill='%237E4E1C' fill-opacity='.3'/%3E%3C/g%3E%3C/svg%3E"); --v-gouttes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='170' viewBox='0 0 260 170'%3E %3Cfilter id='d' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.08' numOctaves='2' seed='4'/%3E %3CfeDisplacementMap in='SourceGraphic' scale='4'/%3E%3C/filter%3E%3Cg filter='url(%23d)'%3E%3Ccircle cx='63' cy='102.8' r='6' fill='%238A5522' fill-opacity='0.24' stroke='%236A3E14' stroke-opacity='.35' stroke-width='.6'/%3E%3Ccircle cx='198.7' cy='138.8' r='3' fill='%238A5522' fill-opacity='0.34' stroke='%236A3E14' stroke-opacity='.35' stroke-width='.6'/%3E%3Ccircle cx='132.5' cy='80.6' r='1.6' fill='%238A5522' fill-opacity='0.34' stroke='%236A3E14' stroke-opacity='.35' stroke-width='.6'/%3E%3Ccircle cx='32.8' cy='131.9' r='3' fill='%238A5522' fill-opacity='0.19' stroke='%236A3E14' stroke-opacity='.35' stroke-width='.6'/%3E%3Ccircle cx='188.8' cy='47.9' r='1.6' fill='%238A5522' fill-opacity='0.32' stroke='%236A3E14' stroke-opacity='.35' stroke-width='.6'/%3E%3Ccircle cx='117.4' cy='139.4' r='3' fill='%238A5522' fill-opacity='0.30' stroke='%236A3E14' stroke-opacity='.35' stroke-width='.6'/%3E%3Ccircle cx='36.8' cy='59.5' r='3' fill='%238A5522' fill-opacity='0.32' stroke='%236A3E14' stroke-opacity='.35' stroke-width='.6'/%3E%3Ccircle cx='159.8' cy='132.5' r='1.2' fill='%238A5522' fill-opacity='0.21' stroke='%236A3E14' stroke-opacity='.35' stroke-width='.6'/%3E%3Ccircle cx='193.5' cy='35' r='1.2' fill='%238A5522' fill-opacity='0.27' stroke='%236A3E14' stroke-opacity='.35' stroke-width='.6'/%3E%3Ccircle cx='140.4' cy='61.2' r='3' fill='%238A5522' fill-opacity='0.21' stroke='%236A3E14' stroke-opacity='.35' stroke-width='.6'/%3E%3Ccircle cx='163' cy='76.4' r='1.6' fill='%238A5522' fill-opacity='0.19' stroke='%236A3E14' stroke-opacity='.35' stroke-width='.6'/%3E%3Ccircle cx='69.5' cy='100.9' r='6' fill='%238A5522' fill-opacity='0.33' stroke='%236A3E14' stroke-opacity='.35' stroke-width='.6'/%3E%3Ccircle cx='182.6' cy='89.7' r='6' fill='%238A5522' fill-opacity='0.19' stroke='%236A3E14' stroke-opacity='.35' stroke-width='.6'/%3E%3Ccircle cx='142' cy='87.1' r='3' fill='%238A5522' fill-opacity='0.22' stroke='%236A3E14' stroke-opacity='.35' stroke-width='.6'/%3E%3Ccircle cx='214.6' cy='126.5' r='3' fill='%238A5522' fill-opacity='0.24' stroke='%236A3E14' stroke-opacity='.35' stroke-width='.6'/%3E%3Ccircle cx='220.9' cy='80.2' r='2.2' fill='%238A5522' fill-opacity='0.38' stroke='%236A3E14' stroke-opacity='.35' stroke-width='.6'/%3E%3Cpath d='M120 60 C 112 70, 128 76, 122 92 C 118 104, 128 112, 126 124' fill='none' stroke='%238A5522' stroke-width='5' stroke-linecap='round' stroke-opacity='.22'/%3E%3C/g%3E%3C/svg%3E"); --v-huile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='170' viewBox='0 0 200 170'%3E %3Cfilter id='d' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.025' numOctaves='3' seed='27'/%3E %3CfeDisplacementMap in='SourceGraphic' scale='30'/%3E%3CfeGaussianBlur stdDeviation='2.2'/%3E%3C/filter%3E %3CradialGradient id='h' cx='46%25' cy='44%25' r='55%25'%3E%3Cstop offset='0' stop-color='%23D2A54A' stop-opacity='.2'/%3E%3Cstop offset='.8' stop-color='%23C2953A' stop-opacity='.26'/%3E%3Cstop offset='1' stop-color='%23A97A26' stop-opacity='.32'/%3E%3C/radialGradient%3E %3Cg filter='url(%23d)'%3E%3Cellipse cx='100' cy='86' rx='66' ry='52' fill='url(%23h)'/%3E%3Cellipse cx='158' cy='120' rx='14' ry='11' fill='%23C2953A' fill-opacity='.22'/%3E%3C/g%3E %3Cellipse cx='84' cy='70' rx='22' ry='9' transform='rotate(-25 84 70)' fill='%23FFF8E0' opacity='.18'/%3E%3C/svg%3E"); --v-farine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='130' viewBox='0 0 100 130'%3E%3Cdefs%3E %3Cfilter id='d' x='-10%25' y='-10%25' width='120%25' height='120%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.09' numOctaves='2' seed='5'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='3.5'/%3E%3C/filter%3E %3Cfilter id='p' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' seed='3'/%3E %3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 .98 0 0 2.6 0 -1.45'/%3E%3C/filter%3E %3CradialGradient id='f' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='.55' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/radialGradient%3E %3CradialGradient id='f2' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/radialGradient%3E %3Cmask id='m'%3E%3Cellipse cx='50' cy='64' rx='40' ry='54' fill='url(%23f)'/%3E%3C/mask%3E%3Cmask id='mf'%3E%3Cellipse cx='50' cy='64' rx='50' ry='64' fill='url(%23f2)'/%3E%3C/mask%3E%3C/defs%3E %3Crect width='100' height='130' filter='url(%23p)' mask='url(%23mf)'/%3E%3Cg mask='url(%23m)' opacity='0.75'%3E%3Cg filter='url(%23d)'%3E%3Cellipse cx='50' cy='60' rx='3' ry='4' fill='none' stroke='%23FFFFFF' stroke-width='1.35' stroke-dasharray='15.2 3.2 18.3 3.8 17.3 3.8 4.5 2.4'/%3E%3Cellipse cx='50' cy='60.6' rx='6.3' ry='8.3' fill='none' stroke='%23FFFFFF' stroke-width='1.35' stroke-dasharray='21 2.9 20.2 1.3 12.4 1.7 13.8 2.7'/%3E%3Cellipse cx='50' cy='61.2' rx='9.6' ry='12.7' fill='none' stroke='%23FFFFFF' stroke-width='1.35' stroke-dasharray='4.2 1.7 9 3.7 17.8 1.5 18.3 1.4'/%3E%3Cellipse cx='50' cy='61.8' rx='12.9' ry='17' fill='none' stroke='%23FFFFFF' stroke-width='1.35' stroke-dasharray='15.1 1.4 4 3.6 7.8 1.6 21.7 3.6'/%3E%3Cellipse cx='50' cy='62.4' rx='16.2' ry='21.4' fill='none' stroke='%23FFFFFF' stroke-width='1.35' stroke-dasharray='9.2 3.9 13.7 3 7.7 3.8 16.4 3.9'/%3E%3Cellipse cx='50' cy='63' rx='19.5' ry='25.7' fill='none' stroke='%23FFFFFF' stroke-width='1.35' stroke-dasharray='20.1 1.9 10.5 1.5 6.6 1.2 9.4 2.8'/%3E%3Cellipse cx='50' cy='63.6' rx='22.8' ry='30.1' fill='none' stroke='%23FFFFFF' stroke-width='1.35' stroke-dasharray='4.1 3 10.1 1.9 18.7 2.4 9.7 2.4'/%3E%3Cellipse cx='50' cy='64.2' rx='26.1' ry='34.5' fill='none' stroke='%23FFFFFF' stroke-width='1.35' stroke-dasharray='16.7 1.2 21.6 1.1 17.5 3.5 4.3 3.4'/%3E%3Cellipse cx='50' cy='64.8' rx='29.4' ry='38.8' fill='none' stroke='%23FFFFFF' stroke-width='1.35' stroke-dasharray='10.6 2.7 4.2 1.1 7.3 3.9 7.5 3.3'/%3E%3Cellipse cx='50' cy='65.4' rx='32.7' ry='43.2' fill='none' stroke='%23FFFFFF' stroke-width='1.35' stroke-dasharray='20.7 3.8 10.2 2.1 13.4 3.3 5.9 3.2'/%3E%3Cellipse cx='50' cy='66' rx='36' ry='47.5' fill='none' stroke='%23FFFFFF' stroke-width='1.35' stroke-dasharray='18.4 3.6 4.7 3.8 5.6 2 15 3.8'/%3E%3Cellipse cx='50' cy='66.6' rx='39.3' ry='51.9' fill='none' stroke='%23FFFFFF' stroke-width='1.35' stroke-dasharray='10.1 3.8 13.8 1.9 9.7 1.5 5.4 1.4'/%3E%3Cellipse cx='50' cy='67.2' rx='42.6' ry='56.2' fill='none' stroke='%23FFFFFF' stroke-width='1.35' stroke-dasharray='16.4 4 6.9 1.1 21.8 2.6 11.3 1.7'/%3E%3Cellipse cx='50' cy='67.8' rx='45.9' ry='60.6' fill='none' stroke='%23FFFFFF' stroke-width='1.35' stroke-dasharray='14.7 3.5 12.2 2.3 5 3.7 4.6 2.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); --v-sauce: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='130' viewBox='0 0 100 130'%3E%3Cdefs%3E %3Cfilter id='d' x='-10%25' y='-10%25' width='120%25' height='120%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.09' numOctaves='2' seed='9'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='3.5'/%3E%3C/filter%3E %3Cfilter id='p' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' seed='3'/%3E %3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 .98 0 0 2.6 0 -1.45'/%3E%3C/filter%3E %3CradialGradient id='f' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='.55' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/radialGradient%3E %3CradialGradient id='f2' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/radialGradient%3E %3Cmask id='m'%3E%3Cellipse cx='50' cy='64' rx='40' ry='54' fill='url(%23f)'/%3E%3C/mask%3E%3Cmask id='mf'%3E%3Cellipse cx='50' cy='64' rx='50' ry='64' fill='url(%23f2)'/%3E%3C/mask%3E%3C/defs%3E %3Cg mask='url(%23m)' opacity='0.5'%3E%3Cg filter='url(%23d)'%3E%3Cellipse cx='50' cy='60' rx='3' ry='4' fill='none' stroke='%238E2E14' stroke-width='1.35' stroke-dasharray='12.3 2.1 6.5 3.6 4.1 2.5 20.2 1.2'/%3E%3Cellipse cx='50' cy='60.6' rx='6.3' ry='8.3' fill='none' stroke='%238E2E14' stroke-width='1.35' stroke-dasharray='14 2.8 4.7 2.1 16.7 2.4 17.1 1.5'/%3E%3Cellipse cx='50' cy='61.2' rx='9.6' ry='12.7' fill='none' stroke='%238E2E14' stroke-width='1.35' stroke-dasharray='8.3 1.3 13.1 3.8 14.6 3.3 10.9 3.2'/%3E%3Cellipse cx='50' cy='61.8' rx='12.9' ry='17' fill='none' stroke='%238E2E14' stroke-width='1.35' stroke-dasharray='5.8 1.9 16.1 3.2 11.6 1.3 8.8 1.6'/%3E%3Cellipse cx='50' cy='62.4' rx='16.2' ry='21.4' fill='none' stroke='%238E2E14' stroke-width='1.35' stroke-dasharray='9.1 3.4 7.6 3.7 19.8 1.2 10.8 2.5'/%3E%3Cellipse cx='50' cy='63' rx='19.5' ry='25.7' fill='none' stroke='%238E2E14' stroke-width='1.35' stroke-dasharray='4.4 2.3 20.3 1.3 14.7 1.4 14.4 3.7'/%3E%3Cellipse cx='50' cy='63.6' rx='22.8' ry='30.1' fill='none' stroke='%238E2E14' stroke-width='1.35' stroke-dasharray='7.7 1 5.5 2.6 4.3 1.3 12.9 3.8'/%3E%3Cellipse cx='50' cy='64.2' rx='26.1' ry='34.5' fill='none' stroke='%238E2E14' stroke-width='1.35' stroke-dasharray='11.6 2.2 15.5 1.3 14.4 1.5 15 3.9'/%3E%3Cellipse cx='50' cy='64.8' rx='29.4' ry='38.8' fill='none' stroke='%238E2E14' stroke-width='1.35' stroke-dasharray='5 2.7 14.9 1.4 8.8 4 22 1.4'/%3E%3Cellipse cx='50' cy='65.4' rx='32.7' ry='43.2' fill='none' stroke='%238E2E14' stroke-width='1.35' stroke-dasharray='16.7 3.9 8.3 2.8 4.8 2.1 16.1 2.8'/%3E%3Cellipse cx='50' cy='66' rx='36' ry='47.5' fill='none' stroke='%238E2E14' stroke-width='1.35' stroke-dasharray='17.9 1.3 10.2 3.6 14.5 2.4 11.2 4'/%3E%3Cellipse cx='50' cy='66.6' rx='39.3' ry='51.9' fill='none' stroke='%238E2E14' stroke-width='1.35' stroke-dasharray='14.3 1.1 18.4 2 11.8 1.6 12 2'/%3E%3Cellipse cx='50' cy='67.2' rx='42.6' ry='56.2' fill='none' stroke='%238E2E14' stroke-width='1.35' stroke-dasharray='5.6 2.9 5.9 3.4 4.5 3.3 18.5 2.5'/%3E%3Cellipse cx='50' cy='67.8' rx='45.9' ry='60.6' fill='none' stroke='%238E2E14' stroke-width='1.35' stroke-dasharray='16.8 1.7 17.3 2.3 8.2 3.9 11.2 2.1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); --v-vin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E %3Cfilter id='d' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.035' numOctaves='2' seed='31'/%3E %3CfeDisplacementMap in='SourceGraphic' scale='9'/%3E%3CfeGaussianBlur stdDeviation='.6'/%3E%3C/filter%3E %3Cg filter='url(%23d)' fill='none'%3E%3Cpath d='M40 150 A 82 82 0 0 1 190 70' stroke='%236E1F3A' stroke-width='3.4' stroke-opacity='.48'/%3E %3Cpath d='M44 156 A 86 86 0 0 1 176 58' stroke='%238A2A4A' stroke-width='10' stroke-opacity='.1'/%3E %3Cpath d='M200 92 A 82 82 0 0 1 206 150' stroke='%236E1F3A' stroke-width='2' stroke-opacity='.3'/%3E %3Ccircle cx='214' cy='186' r='5' fill='%236E1F3A' fill-opacity='.3'/%3E%3Ccircle cx='226' cy='200' r='2.4' fill='%236E1F3A' fill-opacity='.3'/%3E%3C/g%3E%3C/svg%3E"); --v-the: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='220' viewBox='0 0 300 220'%3E %3Cfilter id='d' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.018' numOctaves='4' seed='41'/%3E %3CfeDisplacementMap in='SourceGraphic' scale='48'/%3E%3CfeGaussianBlur stdDeviation='.9'/%3E%3C/filter%3E %3Cg filter='url(%23d)'%3E%3Cpath d='M40 120 C 40 50, 150 30, 220 60 C 280 86, 270 170, 190 182 C 120 192, 40 180, 40 120Z' fill='%23C9883A' fill-opacity='.12' stroke='%239A5E1E' stroke-opacity='.4' stroke-width='2.2'/%3E %3Cpath d='M90 120 C 90 92, 150 80, 186 100' fill='none' stroke='%239A5E1E' stroke-opacity='.18' stroke-width='1.6'/%3E%3C/g%3E%3C/svg%3E"); --v-fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cfilter id='f' x='-10%25' y='-10%25' width='120%25' height='120%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='2' seed='2'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='2.2'/%3E%3C/filter%3E%3Cpath d='M90 16 L86.3 18.9 L80 21.8 L72.9 29 L72 27.2 L65.2 35.2 L55.3 37.5 L51.9 41.7 L49 48.4 L45.1 48.2 L42.1 54.1 L37.6 64.1 L33.7 65.9 L33.9 75.5 L27 78.3 L25.2 81.4 L24 90' fill='none' stroke-linejoin='round' filter='url(%23f)' stroke='%23FFFBF0' stroke-width='5' opacity='.95'/%3E%3Cpath d='M87 13 L83.3 15.9 L77 18.8 L69.9 26 L69 24.2 L62.2 32.2 L52.3 34.5 L48.9 38.7 L46 45.4 L42.1 45.2 L39.1 51.1 L34.6 61.1 L30.7 62.9 L30.9 72.5 L24 75.3 L22.2 78.4 L21 87' fill='none' stroke='%239C7A44' stroke-width='1.2' opacity='.35'/%3E%3C/svg%3E"); --v-bord-moi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E %3Cfilter id='f' x='-10%25' y='-10%25' width='120%25' height='120%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.18' numOctaves='3' seed='6'/%3E %3CfeDisplacementMap in='SourceGraphic' scale='4.5'/%3E%3C/filter%3E %3Cmask id='m'%3E%3Crect width='100' height='100' fill='%23fff'/%3E%3Cpolygon points='101,50 86,55 91,59 84,63 101,70' fill='%23000'/%3E%3C/mask%3E%3C/defs%3E %3Cg mask='url(%23m)'%3E%3Crect x='2.5' y='2.5' width='95' height='95' rx='9' fill='%23fff' filter='url(%23f)'/%3E%3C/g%3E%3C/svg%3E"); --v-bord-carte: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E %3Cfilter id='f' x='-10%25' y='-10%25' width='120%25' height='120%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.18' numOctaves='3' seed='9'/%3E %3CfeDisplacementMap in='SourceGraphic' scale='4.5'/%3E%3C/filter%3E %3Cmask id='m'%3E%3Crect width='100' height='100' fill='%23fff'/%3E%3Cpolygon points='101,26 80,36 81,38.5 101,31' fill='%23000'/%3E%3C/mask%3E%3C/defs%3E %3Cg mask='url(%23m)'%3E%3Crect x='2.5' y='2.5' width='95' height='95' rx='9' fill='%23fff' filter='url(%23f)'/%3E%3C/g%3E%3C/svg%3E"); --v-bord-pass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E %3Cfilter id='f' x='-10%25' y='-10%25' width='120%25' height='120%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.18' numOctaves='3' seed='12'/%3E %3CfeDisplacementMap in='SourceGraphic' scale='4.5'/%3E%3C/filter%3E %3Cmask id='m'%3E%3Crect width='100' height='100' fill='%23fff'/%3E%3Cpolygon points='101,-1 74,-1 101,20' fill='%23000'/%3E%3C/mask%3E%3C/defs%3E %3Cg mask='url(%23m)'%3E%3Crect x='2.5' y='2.5' width='95' height='95' rx='9' fill='%23fff' filter='url(%23f)'/%3E%3C/g%3E%3C/svg%3E"); --v-bord-som: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E %3Cfilter id='f' x='-10%25' y='-10%25' width='120%25' height='120%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.18' numOctaves='3' seed='15'/%3E %3CfeDisplacementMap in='SourceGraphic' scale='8'/%3E%3C/filter%3E %3Cmask id='m'%3E%3Crect width='100' height='100' fill='%23fff'/%3E%3Ccircle cx='80' cy='70' r='2.2' fill='%23000'/%3E%3Ccircle cx='86' cy='76' r='1.4' fill='%23000'/%3E%3C/mask%3E%3C/defs%3E %3Cg mask='url(%23m)'%3E%3Crect x='2.5' y='2.5' width='95' height='95' rx='9' fill='%23fff' filter='url(%23f)'/%3E%3C/g%3E%3C/svg%3E"); --v-bord-rsom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E %3Cfilter id='f' x='-10%25' y='-10%25' width='120%25' height='120%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.18' numOctaves='3' seed='18'/%3E %3CfeDisplacementMap in='SourceGraphic' scale='4.5'/%3E%3C/filter%3E %3Cmask id='m'%3E%3Crect width='100' height='100' fill='%23fff'/%3E%3Cpolygon points='101,70 90,77 94,82 85,88 90,94 84,101 101,101' fill='%23000'/%3E%3C/mask%3E%3C/defs%3E %3Cg mask='url(%23m)'%3E%3Crect x='2.5' y='2.5' width='95' height='95' rx='9' fill='%23fff' filter='url(%23f)'/%3E%3C/g%3E%3C/svg%3E"); --v-gribouillis: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='40' viewBox='0 0 60 40'%3E%3Cpath d='M6 30 C 12 8, 18 34, 24 14 S 34 30, 40 12 S 50 26, 56 10' fill='none' stroke='%234A4A50' stroke-width='1.4' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E"); --v-encre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E %3Cfilter id='d' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.09' numOctaves='2' seed='8'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='12'/%3E%3CfeGaussianBlur stdDeviation='.6'/%3E%3C/filter%3E %3Cg filter='url(%23d)' fill='%231E2A5A'%3E%3Ccircle cx='30' cy='30' r='12' fill-opacity='.45'/%3E%3Ccircle cx='46' cy='18' r='3' fill-opacity='.4'/%3E%3Ccircle cx='14' cy='46' r='2' fill-opacity='.4'/%3E%3C/g%3E%3C/svg%3E"); }
:root { --v-cuir: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E %3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' seed='8' stitchTiles='stitch'/%3E %3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .05 0 0 0 0 .02 0 0 1.6 0 -.62'/%3E%3C/filter%3E %3Cfilter id='m' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='3' seed='21' stitchTiles='stitch'/%3E %3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .78 0 0 0 0 .58 1.7 0 0 0 -.95'/%3E%3C/filter%3E %3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23m)' opacity='.5'/%3E%3C/svg%3E"); --v-papier: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E %3Cfilter id='a' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006' numOctaves='3' seed='7' stitchTiles='stitch'/%3E %3CfeColorMatrix values='0 0 0 0 .62 0 0 0 0 .44 0 0 0 0 .16 2.2 0 0 0 -1.02'/%3E%3C/filter%3E %3Cfilter id='b' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.35 .8' numOctaves='2' seed='3' stitchTiles='stitch'/%3E %3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .38 0 0 0 0 .2 0 2.4 0 0 -1.2'/%3E%3C/filter%3E %3Crect width='100%25' height='100%25' filter='url(%23a)' opacity='.5'/%3E%3Crect width='100%25' height='100%25' filter='url(%23b)' opacity='.35'/%3E%3C/svg%3E"); --v-kraft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='480'%3E %3Cfilter id='a' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.009' numOctaves='4' seed='15' stitchTiles='stitch'/%3E %3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .18 0 0 0 0 .07 2 0 0 0 -.95'/%3E%3C/filter%3E %3Cfilter id='s' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.45' numOctaves='2' seed='9' stitchTiles='stitch'/%3E %3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .93 0 0 0 0 .8 0 2.4 0 0 -1.5'/%3E%3C/filter%3E %3Cfilter id='e' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.014' numOctaves='3' seed='31' stitchTiles='stitch'/%3E %3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .74 0 2.2 0 0 -1.25'/%3E%3C/filter%3E %3Crect width='100%25' height='100%25' filter='url(%23a)' opacity='.55'/%3E%3Crect width='100%25' height='100%25' filter='url(%23s)' opacity='.35'/%3E%3Crect width='100%25' height='100%25' filter='url(%23e)' opacity='.16'/%3E%3C/svg%3E");
  --v-cafe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E %3Cfilter id='d' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.03' numOctaves='2' seed='4'/%3E %3CfeDisplacementMap in='SourceGraphic' scale='10'/%3E%3CfeGaussianBlur stdDeviation='.7'/%3E%3C/filter%3E %3Cg filter='url(%23d)' fill='none'%3E %3Ccircle cx='150' cy='150' r='100' fill='%23A8732E' fill-opacity='.07'/%3E %3Ccircle cx='150' cy='150' r='104' stroke='%239A6427' stroke-width='12' stroke-opacity='.1'/%3E %3Ccircle cx='150' cy='150' r='108' stroke='%237E4E1C' stroke-width='3.2' stroke-opacity='.5'/%3E %3Cpath d='M52 176 A 108 108 0 0 0 226 232' stroke='%236E4216' stroke-width='2.4' stroke-opacity='.5'/%3E %3Cpath d='M246 70 A 112 112 0 0 1 262 120' stroke='%237E4E1C' stroke-width='2' stroke-opacity='.35'/%3E %3C/g%3E%3C/svg%3E"); --v-eau: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='200' viewBox='0 0 260 200'%3E %3Cfilter id='d' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.022' numOctaves='3' seed='12'/%3E %3CfeDisplacementMap in='SourceGraphic' scale='26'/%3E%3CfeGaussianBlur stdDeviation='1'/%3E%3C/filter%3E %3Cg filter='url(%23d)'%3E%3Cellipse cx='130' cy='100' rx='92' ry='62' fill='%23B88A45' fill-opacity='.08' stroke='%238C5F26' stroke-opacity='.28' stroke-width='2.2'/%3E %3Cellipse cx='176' cy='128' rx='26' ry='18' fill='%23B88A45' fill-opacity='.06' stroke='%238C5F26' stroke-opacity='.22' stroke-width='1.6'/%3E%3C/g%3E%3C/svg%3E"); --v-bord: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E %3Cfilter id='f' x='-10%25' y='-10%25' width='120%25' height='120%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.18' numOctaves='3' seed='6'/%3E %3CfeDisplacementMap in='SourceGraphic' scale='4.5'/%3E%3C/filter%3E %3Crect x='2.5' y='2.5' width='95' height='95' rx='9' fill='%23fff' filter='url(%23f)'/%3E%3C/svg%3E"); --v-scotch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='34' viewBox='0 0 120 34' preserveAspectRatio='none'%3E %3Cfilter id='f' x='-5%25' y='-20%25' width='110%25' height='140%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.25 .9' numOctaves='2' seed='3'/%3E %3CfeDisplacementMap in='SourceGraphic' scale='5'/%3E%3C/filter%3E %3Cfilter id='t' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .3' numOctaves='2' seed='1'/%3E %3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .25 0 1.4 0 0 -.55'/%3E%3C/filter%3E %3Cg filter='url(%23f)'%3E%3Crect x='3' y='2' width='114' height='30' fill='%23DDBB6E' fill-opacity='.72'/%3E%3Crect x='3' y='2' width='114' height='30' fill='none' stroke='%23A9843A' stroke-opacity='.35' stroke-width='1.2'/%3E%3C/g%3E %3Crect x='3' y='2' width='114' height='30' filter='url(%23t)' opacity='.5'/%3E%3C/svg%3E"); }
#jdlg .jhead h2 { color: #F1E2C6; text-shadow: 0 2px 6px rgba(0, 0, 0, .55); }
#jdlg #jPos { color: #F1E2C6; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
#jdlg .jarrow { border-color: rgba(241, 226, 198, .85); color: #F1E2C6; background: rgba(20, 10, 4, .25); box-shadow: 0 3px 8px rgba(0, 0, 0, .35); }

/* La couverture : cuir patiné, coins usés (par-dessus la couleur de l'habillage) */
#jdlg .book { background-color: #5A321C; border-radius: 9px 15px 15px 9px;
  box-shadow: 0 46px 60px -26px rgba(0, 0, 0, .85), 0 8px 18px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(0, 0, 0, .45); }
#jdlg .book::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image:
    radial-gradient(circle at 0 0, rgba(255, 220, 175, .32), transparent 46px), radial-gradient(circle at 100% 0, rgba(255, 220, 175, .26), transparent 52px),
    radial-gradient(circle at 0 100%, rgba(255, 220, 175, .24), transparent 52px), radial-gradient(circle at 100% 100%, rgba(255, 220, 175, .34), transparent 46px),
    linear-gradient(to bottom, rgba(255, 230, 190, .1), transparent 30%, transparent 80%, rgba(0, 0, 0, .25)),
    var(--v-cuir);
  box-shadow: inset 0 0 14px rgba(0, 0, 0, .55), inset 0 0 2px rgba(255, 220, 180, .25); }
/* le creux de la reliure */
#jdlg .book:not(.single)::after { width: 46px; top: 10px; bottom: 10px; transform: translateX(-23px);
  background: linear-gradient(to right, transparent, rgba(70, 40, 12, .14) 30%, rgba(40, 20, 5, .4) 48%, rgba(20, 10, 2, .55) 50%, rgba(40, 20, 5, .4) 52%, rgba(70, 40, 12, .14) 70%, transparent); }

/* L'épaisseur des pages (la tranche) ; le fond de .pg est la page d'en dessous, visible sous un coin corné */
#jdlg .pg { background: #E6D7B6; }
#jdlg .pg.L { box-shadow: -1px 1px 0 #EFE4CB, -2px 2px 0 #CDB993, -3px 3px 0 #EBDFC3, -4px 4px 0 #C7B18A, -5px 5px 0 #E6D8BA, -6px 6px 3px rgba(0, 0, 0, .35); }
#jdlg .pg.R, #jdlg .pg.S { box-shadow: 1px 1px 0 #EFE4CB, 2px 2px 0 #CDB993, 3px 3px 0 #EBDFC3, 4px 4px 0 #C7B18A, 5px 5px 0 #E6D8BA, 6px 6px 3px rgba(0, 0, 0, .35); }

/* Le papier jauni (le papier washi du pack Japon garde le sien) */
#jdlg .pgin:not(.kraft) { isolation: isolate; background-color: #F3E9D2;
  background-image:
    linear-gradient(to right, transparent 38px, rgba(190, 70, 60, .26) 38px 39.5px, transparent 39.5px),
    repeating-linear-gradient(to bottom, transparent 0 33px, rgba(70, 95, 140, .14) 33px 34px),
    var(--v-papier), var(--grain); }
#jdlg .pgin.blank { background-image: repeating-linear-gradient(to bottom, transparent 0 33px, rgba(70, 95, 140, .14) 33px 34px), var(--v-papier), var(--grain); }
/* bords roussis, ombre de la reliure côté dos */
#jdlg .pg.L .pgin:not(.kraft), #jdlg .leaf .back .pgin:not(.kraft) {
  box-shadow: inset -18px 0 22px -16px rgba(60, 35, 10, .5), inset 0 0 0 1px rgba(130, 90, 40, .14), inset 0 0 26px rgba(160, 110, 45, .26), inset 0 0 80px rgba(175, 130, 60, .14); }
#jdlg .pg.R .pgin:not(.kraft), #jdlg .leaf .front .pgin:not(.kraft), #jdlg .pg.S .pgin:not(.kraft) {
  box-shadow: inset 18px 0 22px -16px rgba(60, 35, 10, .42), inset 0 0 0 1px rgba(130, 90, 40, .14), inset 0 0 26px rgba(160, 110, 45, .26), inset 0 0 80px rgba(175, 130, 60, .14); }

/* Les taches de cuisine (data-ta, de 0 à 11, posé par app.js) : 0 rousseurs, 1 tasse, 2 deux tasses, 3 éclaboussures, 4 auréole d'eau,
   5 goutte d'huile, 6 doigt fariné, 7 doigt plein de sauce, 8 vin, 9 tasse au bord, 10 thé renversé, 11 brûlure */
#jdlg .pgin[data-ta]::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-repeat: no-repeat; opacity: 1;
  background-image: none; background-size: auto; background-position: 0 0; }
#jdlg .pgin.kraft::before { content: none; }
#jdlg .pgin[data-ta="0"]::before { background-image:
  radial-gradient(circle at 82% 14%, rgba(150, 95, 40, .3) 0 1.5px, rgba(150, 95, 40, .1) 3px, transparent 5px),
  radial-gradient(circle at 86% 19%, rgba(150, 95, 40, .22) 0 1px, transparent 3.5px),
  radial-gradient(circle at 12% 88%, rgba(150, 95, 40, .2) 0 1.5px, transparent 4px), radial-gradient(circle at 40% 52%, rgba(150, 95, 40, .16) 0 1px, transparent 3px); }
#jdlg .pgin[data-ta="1"]::before { background-image: var(--v-cafe); background-size: 190px 190px; background-position: right -46px bottom 36px; }
#jdlg .pgin[data-ta="2"]::before { background-image: var(--v-cafe), var(--v-cafe2); background-size: 170px 170px, 200px 200px; background-position: right 8% top -30px, right -60px top 50px; }
#jdlg .pgin[data-ta="3"]::before { background-image: var(--v-gouttes); background-size: 260px 170px; background-position: right 4% top 3%; }
#jdlg .pgin[data-ta="4"]::before { background-image: var(--v-eau), radial-gradient(circle at 22% 80%, rgba(150, 95, 40, .28) 0 1.5px, rgba(150, 95, 40, .1) 3px, transparent 5px), radial-gradient(circle at 26% 84%, rgba(150, 95, 40, .2) 0 1px, transparent 3px);
  background-size: 230px 177px, auto, auto; background-position: right 12% top 6%, 0 0, 0 0; }
#jdlg .pgin[data-ta="5"]::before { background-image: var(--v-huile); background-size: 200px 170px; background-position: 58% 88%; }
#jdlg .pgin[data-ta="6"]::before { background-image: var(--v-farine), radial-gradient(ellipse 60px 30px at 50% 50%, rgba(255, 255, 255, .25), transparent); background-size: 74px 96px, 120px 60px; }
#jdlg :is(.pg.R, .pg.S, .leaf .front) .pgin[data-ta="6"]::before { background-position: right 10px bottom 40px, right -20px bottom 20px; }
#jdlg :is(.pg.L, .leaf .back) .pgin[data-ta="6"]::before { background-position: left 10px bottom 40px, left -20px bottom 20px; }
#jdlg .pgin[data-ta="7"]::before { background-image: var(--v-sauce), radial-gradient(circle, rgba(142, 46, 20, .3) 0 3px, transparent 4.5px); background-size: 70px 91px, 30px 30px; }
#jdlg :is(.pg.R, .pg.S, .leaf .front) .pgin[data-ta="7"]::before { background-position: right -18px top 46%, right 40px top 62%; }
#jdlg :is(.pg.L, .leaf .back) .pgin[data-ta="7"]::before { background-position: left -18px top 46%, left 40px top 62%; }
#jdlg .pgin[data-ta="8"]::before { background-image: var(--v-vin); background-size: 220px 220px; background-position: left -50px top -40px; }
#jdlg .pgin[data-ta="9"]::before { background-image: var(--v-cafe), var(--v-gouttes); background-size: 230px 230px, 180px 118px; background-position: left -120px bottom -110px, left 30% bottom 4%; }
#jdlg .pgin[data-ta="10"]::before { background-image: var(--v-the); background-size: 300px 220px; background-position: left -40px bottom -30px; }
#jdlg .pgin[data-ta="11"]::before { background-image:
  radial-gradient(ellipse 70px 34px at 64% 100%, rgba(50, 20, 4, .5), rgba(110, 55, 15, .3) 45%, rgba(170, 110, 40, .14) 70%, transparent 100%),
  radial-gradient(circle at 18% 22%, rgba(150, 95, 40, .28) 0 1.5px, rgba(150, 95, 40, .1) 3px, transparent 5px), radial-gradient(circle at 22% 26%, rgba(150, 95, 40, .2) 0 1px, transparent 3px); }
/* Les coins des pages, chacun à sa façon (data-co, de 0 à 7, posé par app.js) : 1 petit coin corné, 2 grand coin corné en bas,
   3 coin corné puis déplié, 4 coin qui rebique, 5 coin arraché, 6 entaille sur la tranche ; 0 et 7 intacts */
#jdlg :is(.pg.L, .pg.R, .pg.S, .leaf .front, .leaf .back) .pgin[data-co]:not(.kraft)::after { content: ""; position: absolute; z-index: 3; pointer-events: none; background: none; filter: none; border-radius: 0; transform: none; }
#jdlg :is(.pg.L, .pg.R, .pg.S, .leaf .front, .leaf .back) .pgin:is([data-co="0"], [data-co="7"])::after { content: none; }
/* 1 : petit coin corné en haut */
#jdlg :is(.pg.R, .pg.S, .leaf .front) .pgin[data-co="1"]:not(.kraft) { clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%); }
#jdlg :is(.pg.L, .leaf .back) .pgin[data-co="1"]:not(.kraft) { clip-path: polygon(26px 0, 100% 0, 100% 100%, 0 100%, 0 26px); }
#jdlg :is(.pg.L, .pg.R, .pg.S, .leaf .front, .leaf .back) .pgin[data-co="1"]:not(.kraft)::after { top: 0; width: 26px; height: 26px; filter: drop-shadow(0 2px 2px rgba(50, 28, 6, .45)); }
#jdlg :is(.pg.R, .pg.S, .leaf .front) .pgin[data-co="1"]:not(.kraft)::after { right: 0; background: linear-gradient(to bottom left, transparent 50%, #CDB585 50%, #E6D4AC 75%, #F0E4C7); }
#jdlg :is(.pg.L, .leaf .back) .pgin[data-co="1"]:not(.kraft)::after { left: 0; background: linear-gradient(to bottom right, transparent 50%, #CDB585 50%, #E6D4AC 75%, #F0E4C7); }
/* 2 : grand coin corné en bas, bien marqué */
#jdlg :is(.pg.R, .pg.S, .leaf .front) .pgin[data-co="2"]:not(.kraft) { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), calc(100% - 60px) 100%, 0 100%); }
#jdlg :is(.pg.L, .leaf .back) .pgin[data-co="2"]:not(.kraft) { clip-path: polygon(0 0, 100% 0, 100% 100%, 60px 100%, 0 calc(100% - 60px)); }
#jdlg :is(.pg.L, .pg.R, .pg.S, .leaf .front, .leaf .back) .pgin[data-co="2"]:not(.kraft)::after { bottom: 0; width: 60px; height: 60px; filter: drop-shadow(0 -2px 3px rgba(50, 28, 6, .5)); }
#jdlg :is(.pg.R, .pg.S, .leaf .front) .pgin[data-co="2"]:not(.kraft)::after { right: 0; background: linear-gradient(to top left, transparent 50%, #C4A874 50%, #DDC89C 62%, #EADBB8 85%, #E0CDA4); }
#jdlg :is(.pg.L, .leaf .back) .pgin[data-co="2"]:not(.kraft)::after { left: 0; background: linear-gradient(to top right, transparent 50%, #C4A874 50%, #DDC89C 62%, #EADBB8 85%, #E0CDA4); }
/* 3 : coin corné puis déplié (il reste le pli, et le coin plus sale) */
#jdlg :is(.pg.L, .pg.R, .pg.S, .leaf .front, .leaf .back) .pgin[data-co="3"]:not(.kraft)::after { top: 0; width: 70px; height: 70px; }
#jdlg :is(.pg.R, .pg.S, .leaf .front) .pgin[data-co="3"]:not(.kraft)::after { right: 0; background: linear-gradient(to bottom left, rgba(140, 100, 50, .12) 0 46%, rgba(255, 252, 240, .7) 48%, rgba(110, 76, 34, .38) 50%, rgba(110, 76, 34, .1) 53%, transparent 58%); }
#jdlg :is(.pg.L, .leaf .back) .pgin[data-co="3"]:not(.kraft)::after { left: 0; background: linear-gradient(to bottom right, rgba(140, 100, 50, .12) 0 46%, rgba(255, 252, 240, .7) 48%, rgba(110, 76, 34, .38) 50%, rgba(110, 76, 34, .1) 53%, transparent 58%); }
/* 4 : coin qui rebique en bas (il s'enroule) */
#jdlg :is(.pg.R, .pg.S, .leaf .front) .pgin[data-co="4"]:not(.kraft) { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 46px), calc(100% - 46px) 100%, 0 100%); }
#jdlg :is(.pg.L, .leaf .back) .pgin[data-co="4"]:not(.kraft) { clip-path: polygon(0 0, 100% 0, 100% 100%, 46px 100%, 0 calc(100% - 46px)); }
#jdlg :is(.pg.L, .pg.R, .pg.S, .leaf .front, .leaf .back) .pgin[data-co="4"]:not(.kraft)::after { bottom: 0; width: 46px; height: 46px; filter: drop-shadow(-1px -3px 4px rgba(50, 28, 6, .5)); }
#jdlg :is(.pg.R, .pg.S, .leaf .front) .pgin[data-co="4"]:not(.kraft)::after { right: 0; border-top-left-radius: 70% 70%; background: linear-gradient(to top left, transparent 50%, #FFF8E6 51%, #E8D6AE 60%, #C9AE7A 78%, #B39463 92%, #C9B080); }
#jdlg :is(.pg.L, .leaf .back) .pgin[data-co="4"]:not(.kraft)::after { left: 0; border-top-right-radius: 70% 70%; background: linear-gradient(to top right, transparent 50%, #FFF8E6 51%, #E8D6AE 60%, #C9AE7A 78%, #B39463 92%, #C9B080); }
/* 5 : coin arraché en bas, bord fibreux */
#jdlg :is(.pg.R, .pg.S, .leaf .front) .pgin[data-co="5"]:not(.kraft) { clip-path: polygon(0 0, 100% 0, calc(100% - 0px) calc(100% - 74px), calc(100% - 3.7px) calc(100% - 71.1px), calc(100% - 10px) calc(100% - 68.2px), calc(100% - 17.1px) calc(100% - 61px), calc(100% - 18px) calc(100% - 62.8px), calc(100% - 24.8px) calc(100% - 54.8px), calc(100% - 34.7px) calc(100% - 52.5px), calc(100% - 38.1px) calc(100% - 48.3px), calc(100% - 41px) calc(100% - 41.6px), calc(100% - 44.9px) calc(100% - 41.8px), calc(100% - 47.9px) calc(100% - 35.9px), calc(100% - 52.4px) calc(100% - 25.9px), calc(100% - 56.3px) calc(100% - 24.1px), calc(100% - 56.1px) calc(100% - 14.5px), calc(100% - 63px) calc(100% - 11.7px), calc(100% - 64.8px) calc(100% - 8.6px), calc(100% - 66px) calc(100% - 0px), 0 100%); }
#jdlg :is(.pg.L, .leaf .back) .pgin[data-co="5"]:not(.kraft) { clip-path: polygon(0 0, 100% 0, 100% 100%, 66px calc(100% - 0px), 64.8px calc(100% - 8.6px), 63px calc(100% - 11.7px), 56.1px calc(100% - 14.5px), 56.3px calc(100% - 24.1px), 52.4px calc(100% - 25.9px), 47.9px calc(100% - 35.9px), 44.9px calc(100% - 41.8px), 41px calc(100% - 41.6px), 38.1px calc(100% - 48.3px), 34.7px calc(100% - 52.5px), 24.8px calc(100% - 54.8px), 18px calc(100% - 62.8px), 17.1px calc(100% - 61px), 10px calc(100% - 68.2px), 3.7px calc(100% - 71.1px), 0px calc(100% - 74px)); }
#jdlg :is(.pg.L, .pg.R, .pg.S, .leaf .front, .leaf .back) .pgin[data-co="5"]:not(.kraft)::after { bottom: 0; width: 90px; height: 90px; background: var(--v-fibre) no-repeat center / 100% 100%; }
#jdlg :is(.pg.R, .pg.S, .leaf .front) .pgin[data-co="5"]:not(.kraft)::after { right: 0; }
#jdlg :is(.pg.L, .leaf .back) .pgin[data-co="5"]:not(.kraft)::after { left: 0; transform: scaleX(-1); }
/* un coin abîmé en bas ne cache rien : le numéro de page et les liens s'écartent */
#jdlg :is(.pg.R, .pg.S, .leaf .front) .pgin:is([data-co="2"], [data-co="4"], [data-co="5"]) .pgnum { right: 84px; }
#jdlg :is(.pg.L, .leaf .back) .pgin[data-co="2"] .jlinks { left: 72px; }
/* 6 : petite entaille sur la tranche */
#jdlg :is(.pg.R, .pg.S, .leaf .front) .pgin[data-co="6"]:not(.kraft) { clip-path: polygon(0 0, 100% 0, 100% 37%, calc(100% - 11px) calc(37% + 5px), 100% calc(37% + 10px), 100% 100%, 0 100%); }
#jdlg :is(.pg.L, .leaf .back) .pgin[data-co="6"]:not(.kraft) { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 calc(37% + 10px), 11px calc(37% + 5px), 0 37%); }
#jdlg :is(.pg.L, .pg.R, .pg.S, .leaf .front, .leaf .back) .pgin[data-co="6"]:not(.kraft)::after { top: calc(37% - 10px); width: 34px; height: 30px; }
#jdlg :is(.pg.R, .pg.S, .leaf .front) .pgin[data-co="6"]:not(.kraft)::after { right: 0; background: linear-gradient(200deg, transparent 45%, rgba(255, 252, 240, .6) 47%, rgba(110, 76, 34, .3) 50%, transparent 54%); }
#jdlg :is(.pg.L, .leaf .back) .pgin[data-co="6"]:not(.kraft)::after { left: 0; background: linear-gradient(160deg, transparent 45%, rgba(255, 252, 240, .6) 47%, rgba(110, 76, 34, .3) 50%, transparent 54%); }

/* La première page : kraft éraflé, étiquette collée par un bout de scotch */
#jdlg .pgin.kraft { background-color: #B88C5A;
  background-image: radial-gradient(ellipse at 34% 30%, rgba(255, 236, 200, .2), transparent 62%), var(--v-kraft), var(--grain);
  box-shadow: inset -18px 0 22px -16px rgba(40, 20, 5, .55), inset 0 0 34px rgba(70, 40, 12, .5), inset 0 0 0 1px rgba(60, 35, 10, .3); }
#jdlg .jlabel { position: relative; border: 0; background-color: #F1E5C9; background-image: var(--v-papier), var(--grain); transform: rotate(-2.5deg);
  box-shadow: 0 1px 1px rgba(40, 20, 5, .3), 0 14px 20px -12px rgba(30, 15, 3, .75), inset 0 0 22px rgba(150, 105, 45, .3); }
#jdlg .jlabel::before { content: ""; position: absolute; left: 50%; top: -13px; width: 96px; height: 26px; transform: translateX(-50%) rotate(4deg);
  background: var(--v-scotch) center / 100% 100% no-repeat; }
body[data-apcouv="dore"] #jdlg .jlabel { border: 1.5px solid #C9A227; }
body[data-apcouv="japon"] #jdlg .jlabel::before { display: none; }

/* Les photos : papier un peu jauni ; le scotch de départ devient un scotch de papier */
#jdlg .book .pola { background: #F6EFDF; box-shadow: 0 1px 2px rgba(40, 20, 5, .25), 0 14px 22px -12px rgba(40, 22, 6, .6), inset 0 0 18px rgba(160, 120, 60, .16); }
#jdlg .book .pola img { filter: sepia(.12) saturate(.92) contrast(.97); }
body[data-apscotch="uni"] #jdlg .book .pola::before { background: var(--v-scotch) center / 100% 100% no-repeat; clip-path: none; }

/* Les marque-pages : papier teinté aux couleurs passées, bords effrangés (le fond est dessiné à part : la pastille n'est pas rognée) */
#jdlg .jtabs { filter: drop-shadow(2px 3px 2.5px rgba(0, 0, 0, .45)); }
#jdlg .jtab { background: transparent; box-shadow: none; isolation: isolate; color: #2A2018; }
#jdlg .jtab::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--c);
  background-image: linear-gradient(to right, rgba(60, 35, 10, .22), transparent 30%, transparent 75%, rgba(255, 245, 225, .18)), var(--v-papier), var(--grain);
  box-shadow: inset 0 0 12px rgba(70, 40, 10, .32);
  -webkit-mask: var(--v-bord) center / 100% 100% no-repeat; mask: var(--v-bord) center / 100% 100% no-repeat; }
#jdlg .jtab:not(.on) { filter: saturate(.62) sepia(.18) brightness(.95); }
#jdlg .jtab.on { filter: saturate(.85) sepia(.08); box-shadow: none; }
#jdlg .jtabs.haut .jtab::before { background-image: linear-gradient(to bottom, rgba(255, 245, 225, .18), transparent 30%, transparent 70%, rgba(60, 35, 10, .22)), var(--v-papier), var(--grain); }
/* Chaque marque-page a son accident : encoche et pli, déchirure scotchée, coin replié et encre, gouttes de café, morceau arraché et gribouillis */
#jdlg .jtabs .jtab[data-tab='moi']::before { -webkit-mask-image: var(--v-bord-moi); mask-image: var(--v-bord-moi);
  background-image: linear-gradient(98deg, transparent 47%, rgba(255, 250, 235, .55) 48.5%, rgba(60, 35, 10, .35) 50%, transparent 52%), linear-gradient(to right, rgba(60, 35, 10, .22), transparent 30%, transparent 75%, rgba(255, 245, 225, .18)), var(--v-papier), var(--grain);
  background-size: 100% 100%, auto, auto, auto; background-position: 0 0, 0 0, 0 0, 0 0;
  background-repeat: no-repeat, repeat, repeat, repeat; }
#jdlg .jtabs .jtab[data-tab='carte']::before { -webkit-mask-image: var(--v-bord-carte); mask-image: var(--v-bord-carte);
  background-image: radial-gradient(ellipse 60% 40% at 30% 72%, rgba(90, 60, 20, .22), transparent 70%), linear-gradient(to right, rgba(60, 35, 10, .22), transparent 30%, transparent 75%, rgba(255, 245, 225, .18)), var(--v-papier), var(--grain);
  background-size: 100% 100%, auto, auto, auto; background-position: 0 0, 0 0, 0 0, 0 0;
  background-repeat: no-repeat, repeat, repeat, repeat; }
#jdlg .jtabs .jtab[data-tab='pass']::before { -webkit-mask-image: var(--v-bord-pass); mask-image: var(--v-bord-pass);
  background-image: var(--v-encre), linear-gradient(to right, rgba(60, 35, 10, .22), transparent 30%, transparent 75%, rgba(255, 245, 225, .18)), var(--v-papier), var(--grain);
  background-size: 26px 26px, auto, auto, auto; background-position: 70% 78%, 0 0, 0 0, 0 0;
  background-repeat: no-repeat, repeat, repeat, repeat; }
#jdlg .jtabs .jtab[data-tab='som']::before { -webkit-mask-image: var(--v-bord-som); mask-image: var(--v-bord-som);
  background-image: radial-gradient(circle at 70% 30%, rgba(100, 52, 16, .6) 0 2.5px, transparent 3.5px), radial-gradient(circle at 30% 64%, rgba(100, 52, 16, .5) 0 1.8px, transparent 2.8px), radial-gradient(circle at 40% 44%, rgba(110, 60, 20, .32) 0 1.6px, transparent 2.6px), radial-gradient(circle at 58% 52%, rgba(110, 60, 20, .28) 0 3.6px, transparent 5px), radial-gradient(ellipse 50% 30% at 62% 38%, rgba(140, 80, 30, .28), transparent 70%), linear-gradient(to right, rgba(60, 35, 10, .22), transparent 30%, transparent 75%, rgba(255, 245, 225, .18)), var(--v-papier), var(--grain);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, auto, auto, auto; background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat, repeat; }
#jdlg .jtabs .jtab[data-tab='rsom']::before { -webkit-mask-image: var(--v-bord-rsom); mask-image: var(--v-bord-rsom);
  background-image: var(--v-gribouillis), linear-gradient(to right, transparent 45%, rgba(255, 250, 240, .3)), linear-gradient(to right, rgba(60, 35, 10, .22), transparent 30%, transparent 75%, rgba(255, 245, 225, .18)), var(--v-papier), var(--grain);
  background-size: 24px 16px, 100% 100%, auto, auto, auto; background-position: 60% 22%, 0 0, 0 0, 0 0, 0 0;
  background-repeat: no-repeat, no-repeat, repeat, repeat, repeat; }
#jdlg .jtabs .jtab[data-tab="carte"]::after { content: ""; position: absolute; z-index: -1; right: -3px; top: 22%; width: 30px; height: 14px; rotate: -28deg;
  background: var(--v-scotch) center / 100% 100% no-repeat; pointer-events: none; }
#jdlg .jtabs.haut .jtab[data-tab="carte"]::after { right: 18%; top: -4px; rotate: 64deg; }
#jdlg .jtabs .jtab[data-tab="pass"]::after { content: ""; position: absolute; z-index: -1; right: 0; top: 0; width: 12px; height: 20%; pointer-events: none;
  background: linear-gradient(to bottom left, transparent 50%, color-mix(in srgb, var(--c), #3A2410 38%) 50%, color-mix(in srgb, var(--c), #fff 12%)); filter: drop-shadow(-1px 1px 1px rgba(0, 0, 0, .35)); }
#jdlg .jtabs.haut .jtab[data-tab="pass"]::after { width: 20%; height: 12px; }

/* ---------- Le plateau de jeu (validé par Fabien le 8 novembre 2026) : tout l'écran, sous-main de cuir vert, objets du bureau ---------- */
#jdlg .sheet { position: relative; width: 100%; height: 100%; border-radius: 0; isolation: isolate; }
#jdlg .sheet > :is(.jhead, .japercu, .jnav) { position: relative; z-index: 3; }
#jdlg .sheet > .close { z-index: 4; }
#jdlg .bookwrap { z-index: 1; }
#jdlg .bookwrap::before, #jdlg .bookwrap::after { content: ""; position: absolute; z-index: -1; left: 50%; top: calc(50% + 4px); pointer-events: none;
  width: min(calc(var(--bw, 900px) + 150px), 100%); height: calc(var(--bh, 600px) + 64px); transform: translate(-50%, -50%); border-radius: 16px; }
#jdlg .bookwrap::before { background-color: #213B2C;
  background-image:
    radial-gradient(ellipse 70% 60% at 22% 0, rgba(255, 220, 160, .16), transparent 70%),
    radial-gradient(ellipse 40% 26% at 50% 96%, rgba(190, 210, 170, .1), transparent 70%),
    radial-gradient(ellipse 100% 100% at 50% 50%, transparent 60%, rgba(0, 0, 0, .45) 100%),
    linear-gradient(rgba(10, 30, 20, .5), rgba(10, 30, 20, .5)), url(/images/carnet/sousmain.webp);
  background-size: auto, auto, auto, auto, 100% 100%;
  box-shadow: 0 2px 0 rgba(255, 255, 255, .05) inset, 0 -3px 8px rgba(0, 0, 0, .45) inset, 0 0 0 1px rgba(0, 0, 0, .6), 0 22px 40px -12px rgba(0, 0, 0, .75), 0 4px 10px rgba(0, 0, 0, .4);
  outline: 1.5px solid rgba(214, 178, 96, .45); outline-offset: -15px; }
#jdlg .bookwrap::after { width: min(calc(var(--bw, 900px) + 150px - 16px), calc(100% - 16px)); height: calc(var(--bh, 600px) + 64px - 16px); border-radius: 11px;
  border: 1.6px dashed rgba(236, 222, 186, .38); box-shadow: 0 1px 0 rgba(0, 0, 0, .5); }
#jdlg .sheet.simple .bookwrap::before, #jdlg .sheet.simple .bookwrap::after { display: none; }

/* ---------- Les objets du bureau (fenetres.html) : app.js mesure la place libre (--cg, --cd), ils ne passent jamais sur le carnet ---------- */
#jdlg .bureau { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#jdlg .bureau.dessous { z-index: 0; }
#jdlg .bureau.dessus { z-index: 2; }
#jdlg :where(.bureau i) { position: absolute; display: block; background-repeat: no-repeat; background-position: center; background-size: 100% 100%; }
#jdlg .bureau .prop { pointer-events: auto; cursor: pointer; transition: translate .25s ease, filter .25s ease; }
#jdlg .bureau .prop:hover { translate: 0 -4px; }
#jdlg .b-carte { width: 520px; height: 400px; top: 7%; left: calc(min(0px, var(--cg, 0px) - 330px) - 70px); rotate: -8deg; background-image: var(--v-carte); filter: drop-shadow(3px 5px 6px rgba(0, 0, 0, .45)); }
#jdlg .b-anneau { width: 150px; height: 150px; mix-blend-mode: normal; }
#jdlg .b-anneau.a1 { top: 42%; right: min(9vw, calc(var(--cd, 0px) - 120px)); background-image: var(--v-anneau-clair); rotate: 40deg; }
#jdlg .b-anneau.a2 { top: calc(42% + 46px); right: min(calc(9vw + 60px), calc(var(--cd, 0px) - 60px)); width: 130px; height: 130px; background-image: var(--v-anneau-cafe); rotate: 160deg; }
#jdlg .b-anneau.a3 { bottom: 27%; left: min(10vw, calc(var(--cg, 0px) - 140px)); background-image: var(--v-anneau-clair); rotate: -70deg; opacity: .8; }
/* Les objets peints sont rangés sur une planche (le site ne peut pas dépasser 1000 fichiers) : var(--o-tasse) dit quelle image
   et quel morceau. Ces variables sont écrites par construire.py, d'après generateur/planches_carnet.json. */
#jdlg .b-crayon { width: 330px; height: 24px; bottom: 15%; right: min(2vw, calc(var(--cd, 0px) - 345px)); rotate: -24deg; background: var(--o-crayon); filter: drop-shadow(5px 7px 4px rgba(0, 0, 0, .5)); }
#jdlg .b-etiquette { width: 118px; height: 207px; top: calc(54% - 28px); right: min(calc(3vw + 46px), calc(var(--cd, 0px) - 134px)); rotate: 104deg; background: var(--o-etiquette); filter: drop-shadow(3px 5px 4px rgba(0, 0, 0, .5)); }
#jdlg .b-tasse { width: 230px; height: 233px; top: 12%; right: min(3vw, calc(var(--cd, 0px) - 250px)); background: var(--o-tasse); filter: drop-shadow(12px 16px 12px rgba(0, 0, 0, .55)); }
#jdlg .b-boussole { width: 150px; height: 202px; bottom: 8%; left: min(4vw, calc(var(--cg, 0px) - 195px)); rotate: -16deg; background: var(--o-boussole); filter: drop-shadow(7px 10px 7px rgba(0, 0, 0, .55)); }
#jdlg .b-epices { width: 240px; height: 227px; top: 36%; left: min(2.5vw, calc(var(--cg, 0px) - 260px)); background: var(--o-epices); filter: drop-shadow(4px 6px 3px rgba(0, 0, 0, .5)); }
#jdlg .b-tasse:hover { filter: drop-shadow(14px 20px 14px rgba(0, 0, 0, .5)); }
#jdlg .b-boussole:hover { filter: drop-shadow(9px 13px 9px rgba(0, 0, 0, .5)); }

/* la vapeur du café, et la petite onde quand on touche la tasse */
#jdlg .b-tasse .vap { left: 49.8%; top: 45.2%; width: 0; height: 0; }
#jdlg .b-tasse .vap i { left: 0; top: 0; width: 64px; height: 96px; margin: -78px 0 0 -32px; border-radius: 50%; opacity: 0; transform-origin: 50% 90%;
  background: radial-gradient(ellipse 50% 50% at 50% 65%, rgba(255, 248, 236, .7), rgba(255, 248, 236, 0) 72%); filter: blur(6px);
  animation: bu-vapeur 6.5s ease-out infinite; }
#jdlg .b-tasse .vap i:nth-child(2) { animation-delay: -2.2s; width: 52px; margin-left: -20px; }
#jdlg .b-tasse .vap i:nth-child(3) { animation-delay: -4.4s; width: 58px; margin-left: -40px; }
#jdlg .b-tasse .vap i:nth-child(4) { animation: none; }
#jdlg .b-tasse.touche .vap i:nth-child(4) { animation: bu-bouffee 1.8s ease-out; }
@keyframes bu-vapeur { 0% { transform: translate(0, 10px) scale(.45, .5) rotate(0); opacity: 0; } 20% { opacity: .85; }
  55% { transform: translate(-18px, -90px) scale(.95, 1.2) rotate(-14deg); opacity: .55; } 100% { transform: translate(14px, -190px) scale(1.4, 1.8) rotate(10deg); opacity: 0; } }
@keyframes bu-bouffee { 0% { transform: translate(0, 10px) scale(.6); opacity: 0; } 25% { opacity: .9; } 100% { transform: translate(-6px, -110px) scale(1.9, 2.1); opacity: 0; } }
#jdlg .b-tasse .onde { left: 26.5%; top: 22.2%; width: 46.5%; height: 46%; border-radius: 50%; opacity: 0; box-shadow: inset 0 0 0 2px rgba(255, 228, 196, .55); }
#jdlg .b-tasse.touche .onde { animation: bu-onde 1s ease-out; }
#jdlg .b-tasse.touche .onde + .onde { animation-delay: .22s; }
@keyframes bu-onde { 0% { transform: scale(.15); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
#jdlg .b-tasse.touche { animation: bu-tinte .5s ease-in-out; }
@keyframes bu-tinte { 0%, 100% { rotate: 0deg; } 25% { rotate: -3deg; } 60% { rotate: 2deg; } }

/* la boussole : l'aiguille hésite toujours un peu ; touchée, elle tourne puis retrouve le nord */
#jdlg .b-boussole .aig { left: 16.7%; top: 37.85%; width: 66.4%; height: 49.3%; background-image: var(--v-aiguille); --n: 16deg;
  filter: drop-shadow(2px 3px 1.5px rgba(40, 20, 0, .45)); animation: bu-hesite 5s ease-in-out infinite alternate; }
#jdlg .b-boussole .verre { left: 10.05%; top: 32.9%; width: 79.7%; height: 59.2%; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .5), rgba(255, 255, 255, .1) 22%, transparent 42%), radial-gradient(circle at 70% 78%, rgba(255, 255, 255, .14), transparent 30%);
  box-shadow: inset 0 0 10px rgba(60, 40, 10, .45); }
#jdlg .b-boussole.touche .aig { animation: bu-tourne 2.8s cubic-bezier(.15, .7, .25, 1) both; }
@keyframes bu-hesite { 0% { transform: rotate(calc(var(--n) - 5deg)); } 100% { transform: rotate(calc(var(--n) + 6deg)); } }
@keyframes bu-tourne { 0% { transform: rotate(var(--n)); } 70% { transform: rotate(calc(var(--n) + 1110deg)); } 84% { transform: rotate(calc(var(--n) + 1070deg)); } 100% { transform: rotate(calc(var(--n) + 1075deg)); } }

/* les épices : la badiane tourne sur elle-même quand on la touche */
#jdlg .b-epices .bad { left: 80%; top: 76%; width: 74px; height: 73px; background: var(--o-badiane); rotate: 12deg; filter: drop-shadow(3px 4px 2px rgba(0, 0, 0, .45)); }
#jdlg .b-epices.touche .bad { animation: bu-roule 1.4s cubic-bezier(.2, .8, .3, 1); }
@keyframes bu-roule { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
#jdlg .b-crayon.touche { animation: bu-crayon .9s ease-out; }
@keyframes bu-crayon { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-9px); } 60% { transform: translateY(3px); } }

/* la lumière de la lampe qui vacille, la poussière qui danse dans le rayon */
#jdlg .b-lampe { inset: 0; background: radial-gradient(ellipse 50% 56% at 20% 3%, rgba(255, 200, 130, .16), rgba(255, 180, 100, .05) 50%, transparent 75%),
  repeating-conic-gradient(from 118deg at 6% -14%, rgba(255, 214, 150, .05) 0 2.5deg, transparent 2.5deg 7deg);
  -webkit-mask: radial-gradient(ellipse 62% 70% at 18% 0, #000, transparent 78%); mask: radial-gradient(ellipse 62% 70% at 18% 0, #000, transparent 78%);
  animation: bu-vacille 9s ease-in-out infinite; }
@keyframes bu-vacille { 0%, 100% { opacity: 1; } 18% { opacity: .82; } 24% { opacity: .95; } 47% { opacity: .7; } 53% { opacity: .92; } 76% { opacity: .8; } }
#jdlg .b-poussiere { inset: 0; }
#jdlg .b-poussiere i { width: var(--s); height: var(--s); border-radius: 50%; background: rgba(255, 236, 200, .85); box-shadow: 0 0 6px 1px rgba(255, 210, 150, .6);
  opacity: 0; animation: bu-poussiere var(--t) linear var(--r) infinite; }
@keyframes bu-poussiere { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: var(--o); } 50% { opacity: calc(var(--o) * .5); } 85% { opacity: var(--o); } 100% { transform: translate(var(--dx), var(--dy)); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  #jdlg .bureau *, #jdlg .bureau { animation: none !important; transition: none !important; }
  #jdlg .b-poussiere { display: none; }
}
/* sur téléphone, aucun objet peint : la planche des objets n'est donc pas chargée */
@media (max-width: 700px) { #jdlg .bureau .prop, #jdlg .b-anneau, #jdlg .b-carte, #jdlg .b-etiquette { display: none; } }
/* Le tatami du pack Japon garde son ambiance : ni sous-main ni objets de bureau occidental */
/* Pack Japon : pas d'auréoles de tasse ni de coutures ; le décor japonais est à la fin de la feuille */
body[data-apfond="japon"] #jdlg .bureau .b-anneau, body[data-apfond="japon"] #jdlg .bookwrap::after { display: none; }

/* ---------- Téléphone (moins de 700 px) : en-tête sur une ligne, menu en bas comme une appli (validé par Fabien le 14 novembre 2026) ----------
   Le menu (entete.html) est en bas de l'écran ; app.js le range dans les grandes fenêtres (semaine, carnet, communauté, courses), où il reste
   visible. Les boutons de l'en-tête sont cachés ; « Une idée au hasard » devient un dé à côté de la cloche, la langue et la région descendent
   en pied de page. Les boutons des cartes passent sous l'image, en plus grand. */
.menu-bas, .reglages-pied, .userbtn.de-tel { display: none; }
@media (max-width: 700px) {
  body { --mb: calc(64px + env(safe-area-inset-bottom, 0px)); padding-bottom: calc(var(--mb) + 14px); }

  /* l'en-tête : une seule ligne */
  body header.top { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-bottom: 10px; }
  body header.top.nv-ouvert { z-index: 45; }
  body .etiquette { order: 1; margin: 0 0 0 22px; transform: rotate(-3deg); }
  body .etiquette .ficelle { left: -22px; width: 36px; height: 46px; margin-top: -36px; }
  body .etiq { padding: 7px 15px 8px 31px; }
  body .etiq .trou { left: 10px; width: 11px; height: 11px; margin-top: -5.5px; box-shadow: inset 0 0 0 2.5px #B8946A; }
  body .top .etiq .marque { font-size: 1.8rem; margin: 0; }
  body .top .etiq #intro { display: none; }
  body .topright { order: 2; position: static; margin-left: auto; gap: 9px; align-items: center; }
  body .topright :is(.langsel, .regionbtn) { display: none; }
  body .userbtn { width: 40px; height: 40px; }
  body .userbtn svg { width: 20px; height: 20px; }
  body .userbtn.de-tel { display: grid; background: var(--accent); }
  body .userbtn.de-tel svg { width: 21px; height: 21px; color: var(--accent-ink); }
  body .top-actions { display: none; }

  /* le menu du bas */
  .menu-bas { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; height: var(--mb); padding: 0 4px env(safe-area-inset-bottom, 0px);
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch;
    background-color: var(--surface); background-image: var(--grain); border-top: 1.5px solid var(--ink); box-shadow: 0 -8px 18px -10px rgba(40, 25, 10, .45); }
  .menu-bas > :is(a, button) { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px;
    min-width: 0; height: 64px; padding: 0 0 8px; border: 0; border-radius: 0; background: none;
    font-family: var(--sans); font-size: .72rem; font-weight: 600; line-height: 1; color: var(--muted); text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
  .menu-bas > :is(a, button) > svg { width: 25px; height: 25px; flex: none; }
  .menu-bas > :is(a, button):focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 10px; }
  /* l'onglet où l'on est : encre pleine et petit bout de scotch */
  .menu-bas > .ici { color: var(--ink); }
  .menu-bas > .ici::before { content: ""; position: absolute; top: -7px; left: 50%; width: 40px; height: 13px; transform: translateX(-50%) rotate(-3deg);
    background: rgba(232, 193, 98, .92); clip-path: polygon(3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 94%, 0 50%); }
  /* le carnet, au milieu : un gros bouton rond */
  .menu-bas > [data-menu="openJournal"] { color: var(--ink); }
  .menu-bas > [data-menu="openJournal"] > svg { width: 54px; height: 54px; padding: 13px; margin-top: -20px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
    border: 1.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }  /* l'ombre tombe droit : le rond est au milieu du menu, une ombre de côté le fait paraître décentré */
  .menu-bas > [data-menu="openJournal"].ici::before { display: none; }
  /* le carnet ouvert : un anneau doré, bien rond autour du bouton, et une ombre douce dessous (plus d'encre décalée, blanche en thème sombre) */
  .menu-bas > [data-menu="openJournal"].ici > svg { box-shadow: 0 0 0 3px rgba(232, 193, 98, .95), 0 6px 10px -2px rgba(20, 12, 4, .5); }
  /* les compteurs (repas prévus, recettes dans la liste) */
  .menu-bas .nb { position: absolute; top: 5px; left: calc(50% + 5px); min-width: 18px; height: 18px; padding: 0 5px; font-size: .68rem; font-weight: 700; box-shadow: 0 0 0 2px var(--surface); }
  .menu-bas .nb[hidden] { display: none; }

  /* les grandes fenêtres laissent la place du menu, qui s'y range (app.js) */
  :is(#wdlg, #cmdlg, #ldlg) .sheet { top: 0; bottom: var(--mb); height: auto; margin-top: 0; margin-bottom: 0; }
  #jdlg .sheet { height: calc(100% - var(--mb)); }
  body .toast { bottom: calc(var(--mb) + 14px); }
  body .floatbar { display: none; }
  body.has-bar .sitefoot, body .sitefoot { padding-bottom: 20px; }

  /* la langue et la région : rangées en bas de page */
  body .reglages-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 16px; }
  body .reglages-pied :is(.langsel, .regionbtn) { height: 40px; font-size: .92rem; }

  /* les cartes des recettes : image dégagée, trois vrais boutons en bas */
  body .grid .tile { display: grid; grid-template-columns: repeat(3, 1fr); align-content: start; background: #FFFDF8; border-radius: 3px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 10px 20px -8px rgba(60, 40, 20, .35); transform: rotate(var(--rot, 0deg)); }
  body .grid .tile .open { grid-column: 1 / -1; background: none; box-shadow: none; transform: none; padding: 8px; }
  body .grid .tile .fav { position: static; width: auto; height: 42px; border: 0; border-top: 1.5px dashed #D9CCB4; border-radius: 0; background: none; box-shadow: none; color: #5B5145; }
  body .grid .tile .fav + .fav { border-left: 1.5px dashed #D9CCB4; }
  body .grid .tile .fav svg { width: 21px; height: 21px; }
  body .grid .tile .fav.cart[aria-pressed="true"] { background: var(--accent); color: #fff; }
  body .grid .tile .fav.agenda[aria-pressed="true"] { background: #1E6B45; color: #fff; }
  body .grid .tile .t { font-size: 1.32rem; }
  body .grid .meta, body .grid .tile .prot { font-size: .8rem; }
}

/* ---------- L'accueil qui fait voyager (validé par Fabien le 14 novembre 2026) ----------
   En haut : la carte d'embarquement (une invitation, puis le voyage en cours de qui a déjà cuisiné) et la carte postale « Escale de la semaine ».
   Dans la grille : les destinations (six étiquettes de bagage, une par continent), trois rayons à faire défiler, le pays sur chaque carte,
   24 cartes puis « Afficher plus ». Les emplacements viennent des gabarits accueil_haut.html et accueil_rayons.html ; app.js (renderAccueil) les remplit. */
/* la carte d'embarquement */
.ac-emb { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 26px; align-items: stretch; margin-bottom: 22px; }
.ac-billet { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 216px; overflow: hidden; color: #2B2621;
  background-color: #FFFDF8; background-image: var(--grain); border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); }
/* le billet reste un papier clair, même en mode sombre : ses couleurs intérieures sont fixes */
.ac-billet { --bord: var(--ink); }
.ac-billet > * { --ink: #2B2621; --accent: #2C4C8C; --accent-ink: #FFFFFF; }
.ac-bande { display: flex; justify-content: space-between; gap: 12px; padding: 7px 20px; background: var(--accent); color: #fff;
  font-family: var(--type); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.ac-corps { display: grid; gap: 10px; padding: 16px 22px 18px; }
.ac-trajet { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; align-items: end; gap: 16px; }
.ac-trajet small, .ac-infos small { display: block; font-family: var(--type); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #8A7D6A; }
.ac-trajet b { display: block; font-family: var(--hand); font-weight: 700; font-size: 1.75rem; line-height: 1; }
.ac-vol { position: relative; height: 24px; margin-bottom: 9px; border-bottom: 2px dashed #B9AB92; }
.ac-vol svg { position: absolute; bottom: -11px; left: 2%; width: 24px; height: 24px; color: var(--accent); animation: ac-vole 7s ease-in-out infinite alternate; }
@keyframes ac-vole { from { left: 2%; } to { left: calc(98% - 24px); } }
.ac-slogan { margin: 4px 0 0; font-family: var(--hand); font-weight: 700; font-size: clamp(1.9rem, 3.3vw, 2.7rem); line-height: 1; text-wrap: balance; }
.ac-texte { margin: 0; max-width: 62ch; color: #5B5145; }
.ac-infos { display: flex; flex-wrap: wrap; gap: 8px 30px; margin: 4px 0 0; padding: 0; list-style: none; }
.ac-infos b { font-family: var(--type); font-size: 1.2rem; }
.ac-prog { height: 9px; max-width: 420px; border-radius: 99px; background: #E9DEC9; overflow: hidden; }
.ac-prog i { display: block; height: 100%; border-radius: 99px; background: #C98A1C; }
.ac-talon { position: relative; display: grid; align-content: center; justify-items: center; gap: 12px; padding: 16px 18px; border-left: 2px dashed #B9AB92; text-align: center; }
.ac-talon::before, .ac-talon::after { content: ""; position: absolute; left: -13px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--bord); }
.ac-talon::before { top: -13px; } .ac-talon::after { bottom: -13px; }
.ac-tampon { width: 104px; height: 104px; color: #B3261E; transform: rotate(-9deg); filter: url(#inkwear); }
.ac-badge { width: 104px; }
.ac-tour { font-family: var(--type); font-size: 11.5px; font-weight: 700; letter-spacing: 2.4px; }
.ac-centre { font-family: var(--type); font-size: 13px; font-weight: 700; letter-spacing: 1px; }
.ac-talon .cartbtn { justify-content: center; border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.ac-talon .linkish { margin: 0; }
.ac-code { width: 150px; height: 26px; opacity: .75; background: repeating-linear-gradient(to right, #2B2621 0 2px, transparent 2px 4px, #2B2621 4px 5px, transparent 5px 9px, #2B2621 9px 12px, transparent 12px 14px); }
@media (prefers-reduced-motion: reduce) { .ac-vol svg { animation: none; left: 46%; } }

/* ---------- L'escale de la semaine : une carte postale, à côté de la carte d'embarquement ---------- */
.ac-escale { position: relative; display: grid; grid-template-columns: 46% minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px 20px 18px 18px; text-decoration: none;
  color: #2B2621; background-color: #FBF7EE; background-image: var(--grain); border-radius: 6px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 16px 30px -14px rgba(60, 40, 20, .5);
  transform: rotate(.8deg); transition: transform .25s ease; }
.ac-escale:hover { transform: rotate(0) translateY(-3px); }
.ac-photo { position: relative; display: block; padding: 9px 9px 12px; background: #FFFDF8; box-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 10px 18px -8px rgba(60, 40, 20, .4); transform: rotate(-2.4deg); }
.ac-photo::before { content: ""; position: absolute; z-index: 2; top: -12px; left: 50%; width: 88px; height: 24px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(232, 193, 98, .8); clip-path: polygon(3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 94%, 0 50%); }
.ac-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.ac-etexte { display: block; min-width: 0; }
.ac-etexte > span { display: block; }
.ac-sur { margin-bottom: 4px; font-family: var(--type); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: #B3261E; }
.ac-epays { font-family: var(--hand); font-weight: 700; font-size: clamp(2.3rem, 3.4vw, 3.1rem); line-height: .9; }
.ac-eville { margin-top: 3px; font-family: var(--type); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #8A7D6A; }
.ac-eplat { margin: 10px 0 5px; font-family: var(--hand); font-weight: 700; font-size: 1.5rem; line-height: 1.05; color: #2C4C8C; text-wrap: balance; }
.ac-etexte > .ac-emeta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-family: var(--type); font-size: .78rem; color: #6B6153; }
.ac-evoir { margin-top: 10px; font-weight: 600; font-size: .9rem; color: #2C4C8C; text-decoration: underline; text-underline-offset: 3px; }
/* penché de 14°, le cachet prend 10 px de plus de chaque côté : à -5 px, son coin reste dans la marge de 20 px de la page, avec un peu d'avance */
.ac-cachet { position: absolute; top: -14px; right: -5px; width: 96px; height: 96px; color: #2C4C8C; transform: rotate(14deg); filter: url(#inkwear); opacity: .92; pointer-events: none; }

/* ---------- Les destinations : six étiquettes de bagage ---------- */
.ac-dest { margin: 0 0 26px; }
.ac-dest h2, .ac-rtete h2, .ac-titre { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 2.1rem; line-height: 1; }
.ac-conti { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.ac-conti button { position: relative; min-width: 0; padding: 11px 14px 12px 34px; text-align: left; color: #2B2621; background-color: var(--c); background-image: var(--grain);
  border: 1.5px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(var(--r, 0deg)); transition: transform .12s, box-shadow .12s; }
.ac-conti [data-co="europe"] { --c: #8FB5E3; --r: -1.5deg; } .ac-conti [data-co="asie"] { --c: #F29C80; --r: 1.2deg; } .ac-conti [data-co="afrique"] { --c: #F2C94C; --r: -.8deg; }
.ac-conti [data-co="amnord"] { --c: #9DCB91; --r: 1.6deg; } .ac-conti [data-co="amsud"] { --c: #E8A3CB; --r: -1.2deg; } .ac-conti [data-co="oceanie"] { --c: #C9B6E4; --r: .9deg; }
.ac-conti button::before { content: ""; position: absolute; left: 12px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2.5px rgba(43, 38, 33, .55); }
.ac-conti button:hover { transform: rotate(0) translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.ac-conti button[aria-pressed="true"] { transform: rotate(0) translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink), 0 0 0 3px rgba(43, 38, 33, .22); }
.ac-conti b { display: block; font-family: var(--hand); font-weight: 700; font-size: 1.5rem; line-height: 1; text-wrap: balance; }
.ac-conti small { display: block; margin-top: 4px; font-family: var(--type); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Les rayons : on fait défiler de côté ---------- */
.ac-rayon { margin: 0 0 20px; }
.ac-rtete { display: flex; align-items: center; gap: 14px; }
.ac-rtete .linkish { margin: 0 0 0 auto; white-space: nowrap; }
.ac-fl { display: flex; gap: 6px; }
.ac-fl button { width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--surface); box-shadow: 2px 2px 0 var(--ink); font-size: 1.1rem; line-height: 1; }
.ac-rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding: 18px 6px 20px; margin: 0 -6px; scrollbar-width: none; }
.ac-rail::-webkit-scrollbar { display: none; }
.ac-mini { flex: none; width: 178px; padding: 8px 8px 11px; color: #2B2621; text-decoration: none; background: #FFFDF8; border-radius: 3px; scroll-snap-align: start;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 10px 20px -8px rgba(60, 40, 20, .35); transform: rotate(var(--rot, 0deg)); transition: transform .25s ease; }
.ac-mini:hover { transform: rotate(0) translateY(-3px); }
.ac-mini img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.ac-mini b { display: block; margin: 2px 2px 4px; font-family: var(--hand); font-weight: 700; font-size: 1.3rem; line-height: 1.02; text-wrap: balance; }
.ac-mini small { display: block; margin: 0 2px; font-family: var(--type); font-size: .74rem; color: #6B6153; }

/* ---------- Le pays sur chaque carte, le titre de la grille, « Afficher plus » ---------- */
.ac-pays { display: block; margin: .6rem 2px 0; font-family: var(--type); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #A63D2F; }
.tile .ac-pays + .t { margin-top: .12rem; }
.ac-titre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 10px; scroll-margin-top: 140px; }
.ac-titre button { border: 1.5px solid var(--ink); border-radius: 999px; background: var(--surface); padding: 5px 13px; font-family: var(--sans); font-size: .86rem; font-weight: 600; }
.ac-titre + .listhead { margin-top: 8px; }
.ac-plus { display: flex; margin: 30px auto 0; }
.ac-plus[hidden], .ac-escale[hidden] { display: none; }
main.ac-resultats .ac-rayon { display: none; }

@media (max-width: 1100px) { .ac-emb { grid-template-columns: 1fr; gap: 20px; } .ac-escale { grid-template-columns: 240px minmax(0, 1fr); } }
@media (max-width: 900px) {
  .ac-conti { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .ac-emb { margin-bottom: 14px; }
  .ac-billet { grid-template-columns: 1fr; }
  .ac-bande { padding: 6px 14px; font-size: .64rem; }
  .ac-corps { padding: 12px 14px 12px; gap: 8px; }
  .ac-trajet, .ac-infos, .ac-code, .ac-tampon { display: none; }
  .ac-slogan { font-size: 1.75rem; margin: 0; }
  .ac-texte { font-size: .92rem; line-height: 1.4; }
  .ac-talon { grid-auto-flow: column; justify-content: start; gap: 14px; padding: 12px 14px 13px; border-left: 0; border-top: 2px dashed #B9AB92; }
  .ac-talon::before, .ac-talon::after { top: -12px; bottom: auto; }
  .ac-talon::before { left: -13px; } .ac-talon::after { left: auto; right: -13px; }
  .ac-dest h2, .ac-rtete h2, .ac-titre { font-size: 1.75rem; }
  .ac-conti { display: flex; gap: 12px; overflow-x: auto; margin: 10px -16px 0; padding: 4px 16px 10px; scrollbar-width: none; }
  .ac-conti::-webkit-scrollbar { display: none; }
  .ac-conti button { flex: none; min-width: 138px; }
  .ac-fl { display: none; }
  .ac-rail { gap: 14px; margin: 0 -16px; padding: 16px 16px 18px; }
  .ac-mini { width: 150px; }
  .ac-mini b { font-size: 1.18rem; }
  .ac-emb { gap: 18px; }
  .ac-escale { grid-template-columns: 38% minmax(0, 1fr); gap: 14px; padding: 14px 14px 14px 12px; transform: rotate(.4deg); }
  .ac-photo { padding: 6px 6px 8px; }
  .ac-photo::before { width: 62px; height: 18px; top: -9px; }
  .ac-epays { font-size: 2rem; }
  .ac-eplat { font-size: 1.22rem; margin: 6px 0 4px; }
  .ac-evoir { display: none !important; }
  .ac-cachet { width: 64px; height: 64px; top: auto; bottom: -12px; right: -4px; }
}

/* ---------- La carte des pays (validée par Fabien le 14 novembre 2026) ----------
   Page « Les pays » : la carte du carnet, où l'on touche un pays coloré ; les étiquettes des continents zooment ; la fiche du pays choisi
   montre un mot sur sa cuisine et ses recettes ; les pays déjà cuisinés sont cochés. Page d'un pays : un en-tête avec ce mot, les pays
   voisins et une petite carte. Le gabarit vient de construire.py, app.js (carteDesPays, miniCarte) pose et anime la carte. */
.feuille.cp-feuille { max-width: none; }
/* la page des pays */
.cp-feuille h1 { margin-bottom: 4px; }
.cp-feuille > p { margin: 0 0 14px; color: var(--muted); }
.cp-feuille .ac-conti { margin: 0 0 18px; }
.cp-zone { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.cp-carte { position: relative; padding: 10px; background: #F6EEDD; border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); overflow: hidden; }
.cp-carte svg { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 438; border-radius: 6px; }
.cp-carte .ok { cursor: pointer; fill-opacity: .72; stroke: rgba(70, 40, 15, .6); stroke-width: .45; transition: fill-opacity .15s; }
.cp-carte .ok[data-c="1"] { fill: var(--aq1); } .cp-carte .ok[data-c="2"] { fill: var(--aq2); } .cp-carte .ok[data-c="3"] { fill: var(--aq3); } .cp-carte .ok[data-c="4"] { fill: var(--aq4); }
.cp-carte .ok[data-c="5"] { fill: var(--aq5); } .cp-carte .ok[data-c="6"] { fill: var(--aq6); } .cp-carte .ok[data-c="7"] { fill: var(--aq7); }
.cp-carte svg:not(.cp-bouge) .pays { filter: url(#aquarelle); }
.cp-carte .ok:hover, .cp-carte .ok:focus-visible { fill-opacity: 1; stroke: #2B2621; stroke-width: .9; outline: none; }
.cp-carte .ok.sel { fill-opacity: 1; stroke: #2B2621; stroke-width: 1.4; }
.cp-carte .ok.estompe { fill-opacity: .28; }
.cp-pin { cursor: pointer; }
.cp-pin circle { fill: #B3261E; stroke: #FFFDF8; stroke-width: 1.5; } .cp-pin .c { fill: #FFFDF8; stroke: none; }
.cp-pin.sel circle:first-child { stroke: #2B2621; }
.cp-pin.loin { display: none; }
svg[data-vue="oceanie"] .cp-pin.loin { display: block; }  /* Hawaï et la Polynésie, reportés à droite de l'Australie */
.cp-vu circle { fill: #FFFDF8; stroke: #1E6B45; stroke-width: 1.3; } .cp-vu path { fill: none; stroke: #1E6B45; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cp-vu { pointer-events: none; }
.cp-bulle { position: absolute; z-index: 3; pointer-events: none; padding: 5px 10px 6px; border-radius: 8px; background: #2B2621; color: #FBF7EE; font-size: .82rem; font-weight: 600; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); }
.cp-bulle small { display: block; font-weight: 400; font-size: .72rem; opacity: .8; }
.cp-retour { position: absolute; z-index: 2; left: 18px; top: 18px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1.5px solid #2B2621; border-radius: 999px; background: #FFFDF8; color: #2B2621; box-shadow: 2px 2px 0 #2B2621; font-size: .84rem; font-weight: 600; }
.cp-retour[hidden] { display: none; }
.cp-legende { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 2px 0; font-size: .8rem; color: var(--muted); }
.cp-legende i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.cp-legende .l1 { background: linear-gradient(90deg, var(--aq1), var(--aq2), var(--aq3), var(--aq4)); } .cp-legende .l2 { background: #E0CEAB; border: 1px solid #9C8762; }
.cp-legende .l3 { border-radius: 50%; background: #FFFDF8; border: 1.5px solid #1E6B45; }

/* la fiche du pays choisi : une carte postale */
.cp-fiche { position: relative; padding: 18px 18px 20px; color: #2B2621; background-color: #FBF7EE; background-image: var(--grain); border-radius: 6px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 16px 30px -14px rgba(60, 40, 20, .5); transform: rotate(.6deg); }
.cp-sur { margin: 0 0 4px; font-family: var(--type); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: #B3261E; }
.cp-fiche h2 { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 2.6rem; line-height: .95; }
.cp-nb { margin: 4px 0 10px; font-family: var(--type); font-size: .78rem; color: #6B6153; }
.cp-intro { margin: 0 0 12px; color: #5B5145; font-size: .95rem; line-height: 1.45; }
.cp-plats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; margin: 14px 0 16px; }
.cp-plats .ac-mini { width: auto; }
.cp-fiche .cartbtn { justify-content: center; width: 100%; border: 1.5px solid #2B2621; box-shadow: 3px 3px 0 #2B2621; text-decoration: none; --accent: #2C4C8C; --accent-ink: #fff; }
.cp-fiche .cartbtn + .cartbtn { margin-top: 10px; }
.cp-fiche .linkish { --accent: #2C4C8C; }
.cp-deja { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 3px 10px; border: 1.5px solid #1E6B45; border-radius: 6px; color: #1E6B45; font-family: var(--type); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transform: rotate(-2deg); }
.cp-prog { height: 9px; margin: 10px 0 6px; border-radius: 99px; background: #E9DEC9; overflow: hidden; } .cp-prog i { display: block; height: 100%; border-radius: 99px; background: #C98A1C; }

/* la liste complète, par continent */
.cp-feuille h2.cp-tous { margin: 30px 0 0; }
.cp-feuille h3 { margin: 18px 0 8px; font-family: var(--type); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* l'en-tête d'une page de pays */
.cp-entete { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: center; margin: 4px 0 22px; padding: 20px 22px; color: #2B2621;
  background-color: #FBF7EE; background-image: var(--grain); border-radius: 6px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 16px 30px -14px rgba(60, 40, 20, .5); }
.cp-entete h1 { margin: 0; font-family: var(--hand); font-weight: 700; font-size: clamp(2.8rem, 6vw, 4rem); line-height: .9; }
.cp-entete .cp-intro { max-width: 58ch; margin: 10px 0 12px; font-size: 1rem; }
.cp-entete .pchips { margin: 6px 0 0; }
.cp-entete a.chip { display: inline-flex; align-items: center; gap: 8px; color: #2B2621; text-decoration: none; background: #E9DEC9; }
.cp-autres { margin: 14px 0 0; font-family: var(--type); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #8A7D6A; }
.cp-mini { padding: 6px; background: #F6EEDD; border: 1.5px solid #2B2621; border-radius: 10px; box-shadow: 3px 3px 0 #2B2621; transform: rotate(1.2deg); }
.cp-mini svg { display: block; width: 100%; height: auto; border-radius: 5px; }
.cp-mini .ok { fill: #CDB991; } .cp-mini .ok.sel { fill: var(--aq1); stroke: #2B2621; stroke-width: 1.2; }
.cp-mini .cp-pin circle { stroke-width: 1.2; }
.cp-mini svg .cp-pin:not(.sel) { display: none; }
.cp-lien { display: inline-block; margin-top: 8px; font-size: .86rem; font-weight: 600; color: #2C4C8C; text-underline-offset: 3px; }

@media (max-width: 1000px) {
  .cp-zone { grid-template-columns: 1fr; }
  .cp-fiche { transform: none; }
  .cp-plats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 700px) {
  .cp-feuille .ac-conti { margin: 0 -18px 12px; padding: 4px 18px 10px; }
  .cp-carte { padding: 6px; margin: 0 -6px; }
  .cp-retour { left: 12px; top: 12px; padding: 5px 10px; font-size: .78rem; }
  .cp-fiche h2 { font-size: 2.2rem; }
  .cp-plats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-entete { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .cp-mini { max-width: 320px; }
  .cp-bulle { display: none; }
}
.cp-pin .k, .cp-vu .k { transform: scale(var(--k, 1)); }

/* ---------- La fiche recette : mode « Je cuisine », suggestions, partage (validé par Fabien le 14 novembre 2026) ----------
   Au-dessus du titre, le pays mène à sa page. « Je cuisine » ouvre la fenêtre jcDlg (fiche.html) : une étape à la fois, en grand, avec
   ses minuteurs ; app.js l'anime. En bas, « Continuer le voyage » : deux rayons fabriqués par construire.py (suggestions). */
/* ---------- le pays, au-dessus du titre ; le bouton « Je cuisine » ; le bouton Partager ---------- */
.fs-pays { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; font-family: var(--type); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #A63D2F; text-decoration: none; }
.fs-pays:hover { text-decoration: underline; text-underline-offset: 3px; }
.jc-lancer { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 12px; padding: 12px 20px; border: 1.5px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink);
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 1rem; }
.jc-lancer svg { width: 20px; height: 20px; }
.jc-lancer:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }

/* ---------- le mode « Je cuisine » : une étape à la fois, en grand ---------- */
dialog.jc { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: #2B2621;
  background-color: #FBF7EE; background-image: repeating-linear-gradient(to bottom, transparent 0 43px, rgba(44, 76, 140, .1) 43px 44px), var(--grain); }
/* une seule colonne, à la largeur de l'écran : sans cela, un nom de recette long (qui ne passe pas à la ligne) élargit toute la fenêtre */
dialog.jc[open] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; }
.jc-tete { display: flex; align-items: center; gap: 14px; padding: calc(12px + env(safe-area-inset-top, 0px)) 18px 10px; }
.jc-nom { min-width: 0; flex: 1; font-family: var(--hand); font-weight: 700; font-size: 1.5rem; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jc-pos { flex: none; font-family: var(--type); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #6B6153; }
.jc-fermer { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #2B2621; background: #FFFDF8; box-shadow: 2px 2px 0 #2B2621; display: grid; place-items: center; padding: 0; color: #2B2621; }
.jc-fermer svg { width: 20px; height: 20px; }
.jc-barre { height: 8px; margin: 0 18px; border-radius: 99px; background: #E9DEC9; overflow: hidden; }
.jc-barre i { display: block; height: 100%; border-radius: 99px; background: #2C4C8C; transition: width .3s ease; }
.jc-corps { overflow-y: auto; padding: 22px 22px 18px; display: grid; align-content: center; justify-items: center; gap: 18px; }
.jc-carte { width: min(100%, 780px); }
.jc-num { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 0 14px; border-radius: 50%; border: 1.5px solid #2B2621; box-shadow: 3px 3px 0 #2B2621;
  background: #2C4C8C; color: #fff; font-family: var(--hand); font-weight: 700; font-size: 2.4rem; line-height: 1; }
.jc-texte { margin: 0; font-size: clamp(1.35rem, 4.6vw, 2.1rem); line-height: 1.42; text-wrap: pretty; }
.jc-chronos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.jc-chrono { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid #2B2621; border-radius: 999px; background: #FFFDF8; box-shadow: 2px 2px 0 #2B2621;
  color: #2B2621; font-family: var(--type); font-size: 1rem; font-weight: 700; }
.jc-chrono svg { width: 20px; height: 20px; }
.jc-chrono.marche { background: #FBEDA6; }
.jc-chrono.fini { background: #1E6B45; color: #fff; animation: jc-sonne 1s ease-in-out 3; }
@keyframes jc-sonne { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-4deg); } 60% { transform: rotate(4deg); } }
.jc-encours { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 8px; }
.jc-encours:empty { display: none; }
.jc-encours .jc-chrono { padding: 5px 12px; font-size: .84rem; box-shadow: 1px 1px 0 #2B2621; }
.jc-pied { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1.5px dashed #D9CCB4; background: rgba(251, 247, 238, .92); }
.jc-pied button { min-height: 56px; padding: 0 18px; border: 1.5px solid #2B2621; border-radius: 12px; box-shadow: 3px 3px 0 #2B2621; background: #FFFDF8; color: #2B2621; font-weight: 600; font-size: 1.05rem; }
.jc-pied .jc-suiv { background: #2C4C8C; color: #fff; }
.jc-pied button:disabled { opacity: .35; box-shadow: none; }
.jc-pied .jc-ingb { display: inline-flex; align-items: center; gap: 8px; }
.jc-pied .jc-ingb svg { width: 20px; height: 20px; }
.jc-pied .jc-ingb[hidden] { display: inline-flex; visibility: hidden; }
/* les ingrédients, dans un volet qui monte */
.jc-ing { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; max-height: 70%; overflow-y: auto; padding: 18px 22px calc(22px + env(safe-area-inset-bottom, 0px));
  background: #FFFDF8; border-top: 1.5px solid #2B2621; border-radius: 18px 18px 0 0; box-shadow: 0 -14px 30px -12px rgba(40, 25, 10, .45); }
.jc-ing[hidden] { display: none; }
.jc-ing h3 { margin: 0 0 10px; font-family: var(--hand); font-weight: 700; font-size: 1.8rem; line-height: 1; }
.jc-ing ul { margin: 0; padding: 0; list-style: none; columns: 2 260px; column-gap: 28px; }
.jc-ing li { padding: 8px 0; border-bottom: 1px dashed #D9CCB4; font-size: 1.05rem; break-inside: avoid; }
.jc-ing li b { font-family: var(--type); font-size: .95rem; margin-right: 4px; }
.jc-ing .jc-ingx { position: sticky; top: 0; float: right; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #2B2621; background: #FFFDF8; display: grid; place-items: center; padding: 0; }
/* la dernière page : bon appétit */
.jc-fin { text-align: center; }
.jc-fin h2 { margin: 0 0 8px; font-family: var(--hand); font-weight: 700; font-size: clamp(2.6rem, 8vw, 4rem); line-height: 1; }
.jc-fin p { margin: 0 auto 18px; max-width: 44ch; font-size: 1.1rem; color: #5B5145; }
.jc-fin .cartbtn { --accent: #2C4C8C; --accent-ink: #fff; padding: 14px 22px; border: 1.5px solid #2B2621; box-shadow: 3px 3px 0 #2B2621; font-size: 1.05rem; }
.jc-fin svg.jc-tampon { width: 120px; height: 120px; margin: 0 auto 10px; display: block; color: #B3261E; transform: rotate(-8deg); filter: url(#inkwear); }

/* ---------- les suggestions : continuer le voyage ---------- */
.fs { position: relative; z-index: 1; margin: 26px 0 10px; }
.fs > h2 { margin: 0 0 4px; font-family: var(--hand); font-weight: 700; font-size: 2.3rem; line-height: 1; text-shadow: 0 0 3px var(--bg), 0 0 8px var(--bg); }
.fs .ac-rayon { margin-top: 14px; }
.fs .ac-rtete h3 { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 1.7rem; line-height: 1; }
.fs .ac-fl { margin-left: auto; }
@media (max-width: 560px) { .fichepage .fs { padding: 0 16px; } }  /* sur téléphone la fiche va d'un bord à l'autre : les suggestions gardent leur marge */

@media (max-width: 700px) {
  .jc-nom { font-size: 1.25rem; }
  .jc-corps { padding: 16px 18px 12px; align-content: start; }
  .jc-num { width: 52px; height: 52px; font-size: 2rem; margin-bottom: 10px; }
  .jc-pied { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .jc-pied button { padding: 0 10px; font-size: .98rem; }
  .jc-pied .jc-ingb span { display: none; }
  .jc-lancer { width: 100%; justify-content: center; }
  .fs > h2 { font-size: 1.9rem; }
}
/* un minuteur terminé : par-dessus l'étape, « C'est prêt ! » et le bouton qui arrête la sonnerie */
.jc-alarme { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 22px; background: rgba(43, 38, 33, .62); }
.jc-alarme[hidden] { display: none; }
.jc-alarme-carte { width: min(100%, 420px); padding: 26px 22px 22px; border: 1.5px solid #2B2621; border-radius: 18px; box-shadow: 5px 5px 0 #2B2621; background: #FFFDF8; text-align: center; }
.jc-alarme-cloche { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 10px; border: 1.5px solid #2B2621; border-radius: 50%; background: #FBEDA6; animation: jc-sonne .5s ease-in-out infinite; }
.jc-alarme-cloche svg { width: 40px; height: 40px; }
.jc-alarme h2 { margin: 0 0 6px; font-family: var(--hand); font-weight: 700; font-size: clamp(2.4rem, 9vw, 3.4rem); line-height: 1; }
.jc-alarme p { margin: 0; font-family: var(--type); font-size: .9rem; letter-spacing: .04em; color: #6B6153; }
.jc-alarme button { width: 100%; min-height: 64px; margin-top: 20px; padding: 0 18px; border: 1.5px solid #2B2621; border-radius: 12px; box-shadow: 3px 3px 0 #2B2621; background: #B3261E; color: #fff; font-weight: 700; font-size: 1.15rem; }
.jc-alarme button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #2B2621; }
@media (prefers-reduced-motion: reduce) { .jc-chrono.fini, .jc-alarme-cloche { animation: none; } .jc-barre i { transition: none; } }

/* ---------- Page d'erreur : « Tu t'es perdu en voyage » ---------- */
.feuille.err { padding-top: 34px; text-align: center; }
.err-tampon { display: block; width: 190px; height: 190px; margin: 0 auto 14px; color: #B3261E; transform: rotate(-9deg); filter: url(#inkwear); }
.err-tampon text { font-family: var(--type); font-weight: 700; font-size: 14.5px; letter-spacing: .1em; text-transform: uppercase; fill: currentColor; }
.err-tampon .n { font-size: 50px; letter-spacing: .02em; }
.feuille.err h1 { font-size: clamp(2.6rem, 8vw, 3.7rem); }
.feuille.err > p { max-width: 46ch; margin: 0 auto; font-size: 1.08rem; text-wrap: pretty; }
.err-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 24px; }
.err-actions :is(a, button) { text-decoration: none; padding: 12px 20px; font-size: 1rem; }
.err-actions svg { width: 20px; height: 20px; flex: none; }
.err-actions .cartbtn { border: 1.5px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.err-actions .cartbtn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.err-route { position: relative; z-index: 1; max-width: 860px; }
.err-route .ac-rtete h2 { text-shadow: 0 0 3px var(--bg), 0 0 8px var(--bg); }
.err-route .ac-fl { margin-left: auto; }
@media (max-width: 560px) {
  .err-tampon { width: 168px; height: 168px; }
  .err-actions { flex-direction: column; align-items: stretch; }
  .err-actions :is(a, button) { justify-content: center; }
}

/* ---------- L'embarquement : « Une idée au hasard » devient un départ ---------- */
dialog.emb { width: min(600px, calc(100% - 24px)); max-width: none; max-height: calc(100% - 24px); padding: 0; border: 0; background: none; overflow: visible; color: #2B2621; }
dialog.emb::backdrop { background: rgba(14, 22, 17, .62); }
dialog.emb[open] { animation: emb-arrive .32s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes emb-arrive { from { opacity: 0; transform: translateY(26px) rotate(-2deg); } }
.emb-billet { position: relative; --ink: #2B2621; --accent: #2C4C8C; --accent-ink: #FFFFFF; --surface: #FFFDF8; overflow: hidden;
  background-color: #FFFDF8; background-image: var(--grain); border: 1.5px solid #2B2621; border-radius: 14px; box-shadow: 5px 5px 0 #2B2621; }
.emb-x { position: absolute; z-index: 3; top: 42px; right: 10px; width: 38px; height: 38px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid #2B2621; background: #FFFDF8; color: #2B2621; box-shadow: 2px 2px 0 #2B2621; }
.emb-x svg { width: 18px; height: 18px; }
.emb-trajet { display: grid; grid-template-columns: auto minmax(40px, 1fr) minmax(0, auto); align-items: end; gap: 16px; padding: 16px 62px 4px 22px; }
.emb-trajet small { display: block; font-family: var(--type); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #8A7D6A; }
.emb-trajet b { display: block; font-family: var(--hand); font-weight: 700; font-size: 1.75rem; line-height: 1; }
/* la destination défile comme sur un tableau des départs, puis s'arrête */
.emb-trajet .emb-ville { min-width: 5.5ch; padding: 3px 8px 2px; border-radius: 5px; background: #2B2621; color: #F6E7B4; font-family: var(--type); font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emb-dest { display: grid; grid-template-columns: 42% minmax(0, 1fr); gap: 20px; align-items: center; padding: 14px 22px 6px; }
/* la photo : une carte retournée, qui se dévoile à l'arrivée */
.emb-photo { position: relative; aspect-ratio: 4 / 3.4; perspective: 900px; transform: rotate(-2.5deg); }
.emb-dos, .emb-face { position: absolute; inset: 0; backface-visibility: hidden; transition: transform .55s cubic-bezier(.3, .8, .3, 1); border-radius: 3px; box-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 10px 20px -8px rgba(60, 40, 20, .45); }
.emb-dos { display: grid; place-items: center; background-color: #D9B98A; background-image: var(--grain); color: #3B2A18; font-family: var(--hand); font-weight: 700; font-size: 4.2rem; }
.emb-face { padding: 7px 7px 9px; background: #FFFDF8; transform: rotateY(180deg); }
.emb-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.emb-billet.pret .emb-dos { transform: rotateY(-180deg); }
.emb-billet.pret .emb-face { transform: rotateY(0); }
.emb-txt { display: grid; gap: 4px; min-width: 0; opacity: 0; transform: translateY(8px); transition: opacity .35s ease .15s, transform .35s ease .15s; }
.emb-billet.pret .emb-txt { opacity: 1; transform: none; }
.emb-pays { font-family: var(--hand); font-weight: 700; font-size: clamp(2.2rem, 7vw, 3rem); line-height: .95; text-wrap: balance; }
.emb-plat { font-family: var(--hand); font-weight: 700; font-size: 1.55rem; line-height: 1.05; color: #2C4C8C; text-wrap: balance; }
.emb-infos { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 8px 0 0; padding: 0; list-style: none; }
.emb-infos small { display: block; font-family: var(--type); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: #8A7D6A; }
.emb-infos b { font-family: var(--type); font-size: 1.02rem; }
.emb-neuf { justify-self: start; margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: #FBEDA6; border: 1.5px solid #2B2621; font-size: .8rem; font-weight: 600; }
.emb-neuf[hidden] { display: none; }
.emb-pied { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; padding: 14px 22px 18px; border-top: 2px dashed #B9AB92; }
.emb-pied > * { flex: 1 1 200px; justify-content: center; min-height: 50px; padding: 0 18px; font-size: 1.02rem; text-decoration: none; }
.emb-pied .cartbtn { border: 1.5px solid #2B2621; border-radius: 10px; box-shadow: 3px 3px 0 #2B2621; background: #2C4C8C; color: #fff; }
.emb-pied .secondary { background: #FFFDF8; color: #2B2621; }
.emb-pied svg { width: 20px; height: 20px; flex: none; }
/* le coup de tampon, à l'arrivée */
/* posé sur le coin de la photo, avec un liseré couleur papier pour rester lisible (comme les tampons des cartes) */
.emb-cachet { position: absolute; z-index: 2; right: -16px; bottom: -20px; width: 96px; height: 96px; color: #B3261E; pointer-events: none; opacity: 0; transform: rotate(14deg) scale(2.2);
  filter: url(#inkwear) drop-shadow(0 0 1px rgba(255, 253, 248, .95)) drop-shadow(0 0 2px rgba(255, 253, 248, .9)) drop-shadow(0 0 4px rgba(255, 253, 248, .6)); }
.emb-cachet svg { display: block; width: 100%; height: 100%; overflow: visible; }
.emb-billet.pret .emb-cachet { opacity: .95; transform: rotate(14deg) scale(1); transition: transform .28s cubic-bezier(.3, 1.6, .5, 1) .5s, opacity .1s linear .5s; }
@media (max-width: 560px) {
  .emb-trajet { gap: 10px; padding: 14px 56px 2px 16px; }
  .emb-trajet b { font-size: 1.4rem; }
  .emb-trajet .emb-ville { font-size: 1rem; }
  .emb-dest { grid-template-columns: 1fr; gap: 12px; padding: 12px 16px 4px; }
  .emb-photo { width: 62%; justify-self: center; }
  .emb-txt { text-align: center; justify-items: center; }
  .emb-infos { justify-content: center; }
  .emb-neuf { justify-self: center; }
  .emb-pied { padding: 12px 16px 16px; }
  .emb-cachet { width: 84px; height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  dialog.emb[open] { animation: none; }
  .emb-dos, .emb-face, .emb-txt, .emb-billet.pret .emb-cachet { transition: none; }
}

/* ---------- Le défi de la semaine : une bande de papier kraft sous la carte d'embarquement ---------- */
.df { grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 22px; padding: 14px 22px 14px 18px; color: #3B2A18;
  background-color: #E3D3B6; background-image: var(--grain); border-radius: 12px; box-shadow: 0 10px 22px -12px rgba(40, 25, 10, .55); }
.df[hidden] { display: none; }
.df::before { content: ""; position: absolute; inset: 6px; border: 1.5px dashed rgba(59, 42, 24, .38); border-radius: 8px; pointer-events: none; }
.df-tampon { display: grid; justify-items: center; padding: 5px 12px 4px; border: 3px double currentColor; border-radius: 6px; color: #B3261E; transform: rotate(-6deg); filter: url(#inkwear);
  font-family: var(--type); font-weight: 700; line-height: 1; text-transform: uppercase; }
.df-tampon b { font-size: 1.5rem; letter-spacing: .1em; }
.df-tampon small { margin-top: 3px; font-size: .58rem; letter-spacing: .14em; }
.df-txt { display: grid; gap: 2px; min-width: 0; }
.df-txt b { font-family: var(--hand); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.05rem); line-height: 1; text-wrap: balance; }
.df-txt span { font-size: .92rem; color: #5B4A33; }
.df-fin { position: relative; display: grid; justify-items: end; gap: 6px; }
.df-score { font-family: var(--type); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #5B4A33; }
.df-score[hidden] { display: none; }
.df .cartbtn { border: 1.5px solid #2B2621; border-radius: 10px; box-shadow: 3px 3px 0 #2B2621; background: #2C4C8C; color: #fff; white-space: nowrap; }
.df.fait .df-tampon { color: #1E6B45; animation: df-tamponne .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes df-tamponne { from { transform: rotate(-6deg) scale(1.9); opacity: 0; } }
@media (max-width: 700px) {
  .df { grid-template-columns: auto minmax(0, 1fr); padding: 14px 16px; }
  .df-fin { grid-column: 1 / -1; justify-items: stretch; }
  .df-fin .cartbtn { justify-content: center; }
  .df-score { text-align: center; }
  .df-tampon b { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) { .df.fait .df-tampon { animation: none; } }

/* ---------- Carnet : confort de lecture ---------- */
/* les pages qui défilent : une barre fine, couleur encre passée, au lieu de la barre blanche du navigateur */
#jdlg .book, #cdlg .book { scrollbar-color: rgba(107, 97, 83, .45) transparent; }
.pgin, .jsomm, .jpass, .jtamp { scrollbar-width: thin; }
/* le sommaire des plats : la vignette, le nom en entier (deux lignes au besoin), le pays et la date, la note */
.jsrow.jsp { grid-template-columns: 1.3rem 46px minmax(0, 1fr) auto; align-items: center; gap: 9px; height: 68px; padding: 0; line-height: 1.02; }
.jsp .jsn { font-family: var(--type); font-size: .78rem; color: #8A7D6A; }
.jsp .jsv { display: block; width: 46px; height: 46px; padding: 3px; background: #FFFDF8; border-radius: 2px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 5px 9px -4px rgba(60, 40, 20, .55); transform: rotate(-3deg); }
.jsp:nth-of-type(even) .jsv { transform: rotate(2.5deg); }
.jsp .jsv img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jsp .jsv:empty { background: #E9DEC9; }
.jsp .jsx { display: grid; gap: 4px; min-width: 0; }
.jsrow.jsp .jst { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow: hidden; text-wrap: balance; }
.jsp .jsd { font-family: var(--type); font-size: .66rem; line-height: 1; letter-spacing: .06em; text-transform: uppercase; color: #8A7D6A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* la note, en court (une étoile et le chiffre) ; rien tant que le plat n'est pas noté */
.jsp .jsnote { display: inline-flex; align-items: center; gap: 3px; font-family: var(--type); font-size: .82rem; font-weight: 700; letter-spacing: 0; color: #8A5A0C; }
.jsp .jsnote svg { width: 15px; height: 15px; fill: #C98A1C; }
/* les tampons du passeport : une vignette par tampon (le tampon, son nom, ce qu'il faut faire), plus lisible que deux colonnes de texte serré */
.tgrid { gap: 16px 10px; }
.tgrid li, .book.single .tgrid li { grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: 3px; column-gap: 0; text-align: center; }
.tgrid .tst-w, .book.single .tst-w { grid-row: auto; width: 64px; margin-bottom: 2px; }
.tgrid li > small { grid-column: auto; text-wrap: balance; }
/* sur téléphone : des onglets plus gros, plus faciles à toucher */
/* --serre (posé par app.js) : entre 0,6 et 1, quand les cinq onglets ne tiennent pas dans la largeur du carnet */
.jtabs.haut .jtab { height: 40px; padding: 0 calc(9px * var(--serre, 1)) 8px; font-size: calc(1.14rem * var(--serre, 1)); }

/* ---------- Passeport : des récompenses qui se voient (images peintes : images/carnet/) ---------- */
/* La couverture dépasse un peu plus autour des pages : on la voit sur toutes les pages, pas seulement à l'ouverture. */
#jdlg .pg, #jdlg .leaf { top: 13px; bottom: 13px; }
#jdlg .pg.L { left: 13px; }
#jdlg .pg.R, #jdlg .leaf { right: 13px; }
#jdlg .pg.S, #jdlg .book.single .leaf { left: 13px; right: 13px; }
/* Les couvertures peintes : toile bleu nuit étoilée, cuir, dorure, planisphère, carmin aux lauriers */
.ap-couv-nuit { background: #26365C url(/images/carnet/couv-nuit.webp) center / cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
body[data-apcouv="nuit"] #jdlg .book { background: #18223A url(/images/carnet/couv-nuit.webp) center / 560px auto; }
body[data-apcouv="nuit"] #jdlg .pgin.kraft { background: #26365C url(/images/carnet/couv-nuit.webp) center / cover; }
.ap-couv-cuir { background: #9A5F38 url(/images/carnet/couv-cuir.webp) center / cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
body[data-apcouv="cuir"] #jdlg .book { background: #6E4226 url(/images/carnet/couv-cuir.webp) center / 560px auto; }
body[data-apcouv="cuir"] #jdlg .pgin.kraft { background: #9A5F38 url(/images/carnet/couv-cuir.webp) center / cover; }
.ap-couv-dore { background: #1D3B2E url(/images/carnet/couv-dore.webp) center / cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
body[data-apcouv="dore"] #jdlg .book { background: #142A20 url(/images/carnet/couv-dore.webp) center / 560px auto; }
body[data-apcouv="dore"] #jdlg .pgin.kraft { background: #1D3B2E url(/images/carnet/couv-dore.webp) center / cover; }
.ap-couv-planisphere { background: #1F6672 url(/images/carnet/couv-planisphere.webp) center / cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
body[data-apcouv="planisphere"] #jdlg .book { background: #174C55 url(/images/carnet/couv-planisphere.webp) center / 560px auto; }
body[data-apcouv="planisphere"] #jdlg .pgin.kraft { background: #1F6672 url(/images/carnet/couv-planisphere.webp) center / cover; }
.ap-couv-carmin { background: #B8323A url(/images/carnet/couv-carmin.webp) center / cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
body[data-apcouv="carmin"] #jdlg .book { background: #8E2530 url(/images/carnet/couv-carmin.webp) center / 560px auto; }
body[data-apcouv="carmin"] #jdlg .pgin.kraft { background: #B8323A url(/images/carnet/couv-carmin.webp) center / cover; }
/* sur une toile, pas de grain de cuir par-dessus ; un filet doré autour de l'étiquette */
body:is([data-apcouv="nuit"], [data-apcouv="dore"], [data-apcouv="planisphere"], [data-apcouv="carmin"]) #jdlg .book::before {
  background-image: linear-gradient(to bottom, rgba(255, 230, 190, .08), transparent 30%, transparent 80%, rgba(0, 0, 0, .22)); }
body:is([data-apcouv="nuit"], [data-apcouv="planisphere"], [data-apcouv="carmin"]) #jdlg .pgin.kraft::after { content: ""; position: absolute; inset: 14px; border: 1.5px solid rgba(232, 200, 120, .55); border-radius: 5px; pointer-events: none; }
/* Les scotchs peints : le motif vient de l'image (une seule planche pour les six, var(--o-scotch-…)), les bouts déchirés de la découpe */
#jdlg .book .pola::before { width: 126px; height: 32px; top: -16px; }
.ap-scotch-vichy::before, .ap-scotch-fleuri::before, .ap-scotch-etoiles::before { content: ""; position: absolute; left: 50%; top: 18px; width: 74px; height: 22px; transform: translateX(-50%) rotate(-4deg); clip-path: polygon(3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 94%, 0 50%); }
.ap-scotch-uni::before { background: var(--o-scotch-uni); }
body[data-apscotch="uni"] #jdlg .book .pola::before { background: var(--o-scotch-uni); clip-path: polygon(3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 94%, 0 50%); }
.ap-scotch-pois::before { background: var(--o-scotch-pois); }
body[data-apscotch="pois"] #jdlg .book .pola::before { background: var(--o-scotch-pois); clip-path: polygon(3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 94%, 0 50%); }
.ap-scotch-rayures::before { background: var(--o-scotch-rayures); }
body[data-apscotch="rayures"] #jdlg .book .pola::before { background: var(--o-scotch-rayures); clip-path: polygon(3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 94%, 0 50%); }
.ap-scotch-vichy::before { background: var(--o-scotch-vichy); }
body[data-apscotch="vichy"] #jdlg .book .pola::before { background: var(--o-scotch-vichy); clip-path: polygon(3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 94%, 0 50%); }
.ap-scotch-fleuri::before { background: var(--o-scotch-fleuri); }
body[data-apscotch="fleuri"] #jdlg .book .pola::before { background: var(--o-scotch-fleuri); clip-path: polygon(3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 94%, 0 50%); }
.ap-scotch-etoiles::before { background: var(--o-scotch-etoiles); }
body[data-apscotch="etoiles"] #jdlg .book .pola::before { background: var(--o-scotch-etoiles); clip-path: polygon(3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 94%, 0 50%); }
/* Les papiers gagnés : quadrillé (dès le premier plat) et pointillé ; la marge rouge reste */
body[data-appapier="quadrille"] #jdlg .pgin:not(.kraft) { background-image:
    linear-gradient(to right, transparent 38px, rgba(190, 70, 60, .26) 38px 39.5px, transparent 39.5px),
    repeating-linear-gradient(to bottom, transparent 0 16px, rgba(70, 95, 140, .15) 16px 17px),
    repeating-linear-gradient(to right, transparent 0 16px, rgba(70, 95, 140, .15) 16px 17px),
    var(--v-papier), var(--grain); }
body[data-appapier="pointille"] #jdlg .pgin:not(.kraft) { background-image:
    linear-gradient(to right, transparent 38px, rgba(190, 70, 60, .26) 38px 39.5px, transparent 39.5px),
    radial-gradient(circle, rgba(60, 85, 130, .4) 1px, transparent 1.5px),
    var(--v-papier), var(--grain);
  background-size: auto, 17px 17px, auto, auto; background-position: 0 0, 8px 8px, 0 0, 0 0; }
.ap-papier-quadrille { background-image: linear-gradient(to right, transparent 16px, rgba(214, 51, 74, .45) 16px 17px, transparent 17px),
  repeating-linear-gradient(to bottom, transparent 0 8px, rgba(44, 76, 140, .28) 8px 9px), repeating-linear-gradient(to right, transparent 0 8px, rgba(44, 76, 140, .28) 8px 9px); }
.ap-papier-pointille { background-image: linear-gradient(to right, transparent 16px, rgba(214, 51, 74, .45) 16px 17px, transparent 17px), radial-gradient(circle, rgba(44, 76, 140, .6) 1.1px, transparent 1.6px);
  background-size: auto, 10px 10px; }
/* Les cadres de photo gagnés : kraft, noir d'album */
body[data-apcadre="kraft"] #jdlg .book .pola { background-color: #BF9A6B; background-image: var(--v-kraft), var(--grain); }
body[data-apcadre="noir"] #jdlg .book .pola { background: #2A2622; box-shadow: 0 1px 2px rgba(40, 20, 5, .25), 0 14px 22px -12px rgba(40, 22, 6, .7), inset 0 0 0 1px rgba(255, 255, 255, .07); }
body[data-apcadre="noir"] #jdlg .book .pola img { outline: 1.5px solid rgba(255, 250, 235, .82); outline-offset: 3px; }
/* cadre doré : le cadeau du tampon « Cinq amis » */
body[data-apcadre="dore"] #jdlg .book .pola { background: linear-gradient(135deg, #B58A2E, #E9D08A 28%, #C49A3A 52%, #F0DC9E 74%, #A87F1E); box-shadow: 0 1px 2px rgba(40, 20, 5, .25), 0 14px 22px -12px rgba(40, 22, 6, .7), inset 0 0 0 1px rgba(255, 255, 255, .4), inset 0 0 0 2.5px rgba(110, 78, 14, .3); }
body[data-apcadre="dore"] #jdlg .book .pola img { outline: 1.5px solid rgba(90, 62, 10, .6); outline-offset: 2px; }
.ap-cadre-blanc, .ap-cadre-kraft, .ap-cadre-noir, .ap-cadre-dore { background-color: #E9DEC9; }
.ap-cadre-blanc::before, .ap-cadre-kraft::before, .ap-cadre-noir::before, .ap-cadre-dore::before { content: ""; position: absolute; left: 50%; top: 7px; width: 54px; height: 44px; transform: translateX(-50%) rotate(-3deg);
  background: linear-gradient(#D98C4A, #C2703A) center 38% / 80% 64% no-repeat, #F6EFDF; box-shadow: 0 3px 6px -2px rgba(40, 25, 10, .5); }
.ap-cadre-kraft::before { background-color: #BF9A6B; }
.ap-cadre-noir::before { background-color: #2A2622; }
.ap-cadre-dore::before { background: linear-gradient(#D98C4A, #C2703A) center 38% / 80% 64% no-repeat, linear-gradient(135deg, #B58A2E, #E9D08A 28%, #C49A3A 52%, #F0DC9E 74%, #A87F1E); }
/* La carte ancienne : la carte du monde sur un parchemin plié et taché */
body[data-apcarte="sepia"] .carte { background: url(/images/carnet/parchemin.webp) center / 100% 100% no-repeat; }
body[data-apcarte="sepia"] .carte .mer { fill: rgba(255, 244, 214, .18); stroke: #8A6A3A; }
body[data-apcarte="sepia"] #jdlg .book .carte { mix-blend-mode: multiply; }  /* le bord clair du parchemin se fond dans la page */
.ap-carte-sepia { background: linear-gradient(135deg, transparent 0 40%, rgba(160, 80, 50, .75) 40% 55%, transparent 55% 62%, rgba(110, 120, 70, .75) 62% 80%, transparent 80%), url(/images/carnet/parchemin.webp) center / cover; filter: none; }
/* Le gain mis en scène : ce qu'on vient de gagner, montré tel qu'il sera dans le carnet */
.vcadeaux { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; color: #2B2621; }
.vcadeaux li { display: grid; justify-items: center; gap: 5px; width: 128px; animation: thump .5s cubic-bezier(.2, 1.4, .4, 1) var(--d, 0s) both; }
.vcadeaux .ap-prev { width: 100%; height: 72px; border-radius: 8px; box-shadow: 0 8px 16px -8px rgba(40, 25, 10, .6), inset 0 0 0 1px rgba(0, 0, 0, .14); }
.vcadeaux b { font-size: .86rem; line-height: 1.15; text-align: center; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .vcadeaux li { animation: none; } }

/* ---------- Pack Japon : tatami peint, plateau en laque sous le carnet, objets japonais (images/carnet/) ---------- */
.ap-fond-japon { background: #8F8A50 url(/images/carnet/tatami-petit.webp) center / cover; }
body[data-apfond="japon"] dialog.page.journal .sheet { background-color: #8F8A50;
  background-image:
    linear-gradient(to bottom, rgba(30, 32, 14, .55), transparent 16%, transparent 86%, rgba(30, 32, 14, .5)),
    radial-gradient(ellipse 125% 100% at 50% 46%, transparent 52%, rgba(20, 22, 8, .5) 100%),
    url(/images/carnet/tatami.webp);
  background-size: auto, auto, cover; background-position: 0 0, 0 0, center; }
@media (max-width: 700px) { body[data-apfond="japon"] dialog.page.journal .sheet { background-image:
  linear-gradient(to bottom, rgba(30, 32, 14, .55), transparent 16%, transparent 86%, rgba(30, 32, 14, .5)), url(/images/carnet/tatami-petit.webp); background-size: auto, cover; background-position: 0 0, center; } }
/* le carnet est posé sur un plateau en laque noire, à la branche de cerisier dorée */
/* Le plateau est une image détourée (coins arrondis, liseré rouge) : pas de fond ni de cadre derrière, et une ombre qui suit sa forme.
   Il déborde assez du carnet pour qu'on voie son rebord tout autour, sans jamais sortir de l'écran. */
body[data-apfond="japon"] #jdlg .bookwrap::before { width: min(calc(var(--bw, 900px) + 170px), calc(100% + 40px)); height: calc(var(--bh, 600px) + 104px); border-radius: 0; outline: 0; box-shadow: none;
  background: url(/images/carnet/laque.webp) center / 100% 100% no-repeat;
  filter: drop-shadow(0 20px 20px rgba(0, 0, 0, .55)) drop-shadow(0 3px 5px rgba(0, 0, 0, .4)); }
/* le bol de matcha fume comme la tasse ; la théière, la branche et les baguettes sursautent quand on les touche */
@media (max-width: 560px) { body[data-apfond="japon"] #jdlg .bookwrap::before { width: calc(100% + 22px); } }
body[data-apfond="japon"] #jdlg .b-tasse { width: 210px; height: 212px; background: var(--o-matcha); }
body[data-apfond="japon"] #jdlg .b-tasse .vap { left: 50%; top: 50%; }
body[data-apfond="japon"] #jdlg .b-tasse .onde { left: 13.5%; top: 13.5%; width: 73%; height: 73%; }
body[data-apfond="japon"] #jdlg .b-boussole { width: 200px; height: 188px; rotate: -22deg; background: var(--o-theiere); }
body[data-apfond="japon"] #jdlg .b-boussole :is(.aig, .verre), body[data-apfond="japon"] #jdlg .b-epices .bad { display: none; }
body[data-apfond="japon"] #jdlg .b-boussole.touche { animation: bu-crayon .9s ease-out; }
body[data-apfond="japon"] #jdlg .b-epices { width: 300px; height: 98px; top: 40%; left: min(1vw, calc(var(--cg, 0px) - 312px)); rotate: -16deg; background: var(--o-cerisier); }
body[data-apfond="japon"] #jdlg .b-epices.touche { animation: bu-crayon .9s ease-out; }
body[data-apfond="japon"] #jdlg .b-crayon { height: 68px; bottom: 12%; background: var(--o-baguettes); }
body[data-apfond="japon"] #jdlg .b-etiquette { width: 190px; height: 149px; top: 52%; right: min(3vw, calc(var(--cd, 0px) - 184px)); rotate: 18deg; background: var(--o-grue); }
body[data-apfond="japon"] #jdlg .b-carte { width: 380px; height: 224px; top: 5%; left: calc(var(--cg, 0px) - 392px); rotate: -19deg; background: var(--o-eventail); filter: drop-shadow(5px 8px 6px rgba(0, 0, 0, .5)); }

/* Pack Japon : un nœud mizuhiki (cordon de papier rouge, blanc et or) retient les photos, à la place du scotch */
.ap-scotch-japon::before, body[data-apscotch="japon"] #jdlg .book .pola::before { background: url(/images/carnet/mizuhiki.webp) center / contain no-repeat; clip-path: none; }
body[data-apscotch="japon"] #jdlg .book .pola::before { width: 138px; height: 48px; top: -23px; transform: translateX(-50%) rotate(-3deg); filter: drop-shadow(0 2px 2px rgba(40, 20, 8, .45)); }
.ap-scotch-japon::before { width: 100px; height: 35px; top: 12px; transform: translateX(-50%) rotate(-3deg); }
/* Pack Japon : les onglets sont en papier chiyogami, un motif par onglet (vagues, chanvre, cercles, flèches, cerisier) ;
   le nom est écrit sur une étiquette crème, comme le titre collé sur la couverture d'un livre japonais */
body[data-apcouv="japon"] #jdlg .jtab[data-tab="moi"] { --k: 0; }
body[data-apcouv="japon"] #jdlg .jtab[data-tab="carte"] { --k: 1; }
body[data-apcouv="japon"] #jdlg .jtab[data-tab="pass"] { --k: 2; }
body[data-apcouv="japon"] #jdlg .jtab[data-tab="som"] { --k: 3; }
body[data-apcouv="japon"] #jdlg .jtab[data-tab="rsom"] { --k: 4; }
body[data-apcouv="japon"] #jdlg .jtabs .jtab::before { background: url(/images/carnet/chiyogami-v.webp) calc(var(--k, 0) * 25%) 50% / 500% auto; box-shadow: inset 0 0 8px rgba(40, 25, 10, .3);
  -webkit-mask: none; mask: none; border-radius: 0 7px 7px 0; }
body[data-apcouv="japon"] #jdlg .jtabs.haut .jtab::before { background: url(/images/carnet/chiyogami-h.webp) 50% calc(var(--k, 0) * 25%) / auto 500%; border-radius: 7px 7px 0 0; }
body[data-apcouv="japon"] #jdlg .jtabs .jtab::after { content: ""; position: absolute; z-index: -1; inset: 15px 7px 15px 9px; width: auto; height: auto; rotate: 0deg; filter: none;
  background: #F4EEDF; border-radius: 2px; box-shadow: 0 0 0 1px rgba(60, 40, 20, .3), 0 1px 2px rgba(0, 0, 0, .3); }
body[data-apcouv="japon"] #jdlg .jtabs.haut .jtab::after { inset: 6px 7px 11px; }
body[data-apcouv="japon"] #jdlg .jtab:not(.on) { filter: saturate(.82) brightness(.93); }
body[data-apcouv="japon"] #jdlg .jtab.on { filter: none; }

/* ==================== La boutique ====================
   Pour l'instant on regarde, on essaie dans son carnet, on compose une sélection : rien ne s'achète encore.
   Les articles reprennent les aperçus de « Personnaliser mon carnet » (.ap-…) et les images peintes du carnet. */
#jdlg .jhead .jboutique { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 1.5px solid rgba(243, 234, 219, .75); border-radius: 10px; background: rgba(20, 12, 6, .35); color: #F3EADB; font-weight: 600; font-size: .95rem; }
#jdlg .jhead .jboutique:hover { background: rgba(20, 12, 6, .6); }
#jdlg .jhead .jboutique svg { width: 18px; height: 18px; }
.japercu .linkish { margin-top: 0; }
dialog.page.boutique .sheet { padding-bottom: 0; background-image: var(--grain); }
.bhead { margin: 0 56px 4px 0; }
.bhead h2 { margin: 0; font-family: var(--hand); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.2rem); line-height: 1; }
.bhead p { margin: 4px 0 0; color: var(--muted); }
.bnote { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; padding: 10px 14px; border: 1.5px dashed var(--line); border-radius: 12px; font-size: .92rem; }
.bnote svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }
.bfiltres { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.bsec { margin-top: 26px; }
.bsec > h3 { margin: 0 0 2px; font-family: var(--hand); font-weight: 700; font-size: 2rem; line-height: 1.1; }
.bsec > h3 small { margin-left: 10px; font-family: var(--sans); font-size: .85rem; font-weight: 500; color: var(--muted); }
.bsec > p { margin: 0 0 12px; color: var(--muted); font-size: .92rem; }
.bsec h4 { margin: 20px 0 10px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Le pack : sa vitrine (le carnet habillé, posé sur son décor) et ce qu'il contient */
.bpack { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: center; padding: 16px; border: 1.5px solid var(--ink); border-radius: 16px; background: var(--surface); box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .6); }
.bpack-t b { display: block; font-family: var(--hand); font-size: 2.1rem; line-height: 1; }
.bpack-t > p { margin: 6px 0 10px; font-size: .92rem; color: var(--muted); }
.bpack-t ul { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 14px; margin: 0 0 16px; padding: 0; list-style: none; font-size: .88rem; }
.bpack-t li { display: flex; gap: 6px; align-items: baseline; }
.bpack-t li::before { content: ""; flex: none; width: 9px; height: 5px; border: solid var(--accent); border-width: 0 0 2px 2px; rotate: -45deg; translate: 0 -3px; }
.bpack-prix { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 12px; }
.bpack-prix strong { font-family: var(--serif); font-weight: 400; font-size: 2.1rem; line-height: 1; }
.bpack-prix s { color: var(--muted); font-size: .9rem; }
.bpack-prix em { padding: 2px 8px; border-radius: 999px; background: var(--heart); color: #fff; font-style: normal; font-weight: 700; font-size: .8rem; }
.bbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.bbtns .cartbtn, .bbtns .ghost { padding: 9px 14px; font-size: .9rem; }
.bbtns .ghost[aria-pressed="true"] { background: var(--ink); color: var(--surface); }

.bvit { position: relative; container-type: inline-size; aspect-ratio: 16 / 11; border-radius: 12px; overflow: hidden; background: #8F8A50 center / cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.bvit::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 44px rgba(20, 22, 8, .5); }
.bvit i, .bvit span { position: absolute; display: block; }
.bvit-japon { background-image: url(/images/carnet/tatami-petit.webp); }
.bq-plateau { left: 15%; top: 13%; width: 70%; height: 74%; background: url(/images/carnet/laque.webp) center / 100% 100% no-repeat; filter: drop-shadow(0 1.6cqw 1.6cqw rgba(0, 0, 0, .55)); }
.bq-obj { filter: drop-shadow(.5cqw .8cqw .6cqw rgba(0, 0, 0, .5)); }
.bq-eventail { left: -5%; top: -7%; width: 31%; aspect-ratio: 560 / 329; rotate: -19deg; background: var(--o-eventail); }
.bq-cerisier { left: -3%; top: 46%; width: 25%; aspect-ratio: 520 / 170; rotate: -16deg; background: var(--o-cerisier); }
.bq-theiere { left: 1%; top: 66%; width: 20%; aspect-ratio: 420 / 395; rotate: -22deg; background: var(--o-theiere); }
.bq-matcha { left: 81%; top: 4%; width: 18%; aspect-ratio: 460 / 464; background: var(--o-matcha); }
.bq-grue { left: 84%; top: 48%; width: 14%; aspect-ratio: 320 / 251; rotate: 18deg; background: var(--o-grue); }
.bq-baguettes { left: 64%; top: 86%; width: 35%; aspect-ratio: 700 / 145; rotate: -24deg; background: var(--o-baguettes); }
/* le petit carnet : couverture indigo, étiquette, onglets en papier chiyogami */
.bq-carnet { left: 25%; top: 21%; width: 27%; aspect-ratio: 3 / 4; rotate: -5deg; border-radius: .6cqw 1.4cqw 1.4cqw .6cqw; background-size: 7cqw 3.5cqw; box-shadow: .6cqw 1cqw 1.6cqw rgba(0, 0, 0, .55), inset .9cqw 0 0 rgba(0, 0, 0, .28); }
.bq-carnet b { position: absolute; left: 16%; right: 12%; top: 24%; padding: 1.2cqw .6cqw; background: #F4EEDF; border: .25cqw solid #C8361E; color: #1C1A17; font-family: "Kaushan Script", var(--hand); font-weight: 400; font-size: 2.7cqw; line-height: 1.15; text-align: center; rotate: -1deg; }
.bq-carnet i { right: -8%; top: calc(7% + var(--k) * 17.5%); width: 9%; height: 14%; border-radius: 0 .7cqw .7cqw 0; background: url(/images/carnet/chiyogami-v.webp) calc(var(--k) * 25%) 50% / 500% auto; box-shadow: .2cqw .3cqw .5cqw rgba(0, 0, 0, .4); }
/* une photo tenue par le nœud mizuhiki */
.bq-photo { left: 50%; top: 27%; width: 25%; padding: 1.1cqw 1.1cqw 3.4cqw; rotate: 5deg; background: #FFFDF8; box-shadow: .4cqw .8cqw 1.4cqw rgba(0, 0, 0, .5); }
.bq-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bq-photo i { left: 18%; top: -11%; width: 64%; aspect-ratio: 300 / 104; rotate: -3deg; background: url(/images/carnet/mizuhiki.webp) center / contain no-repeat; filter: drop-shadow(0 .3cqw .3cqw rgba(40, 20, 8, .45)); }

/* Les articles au détail */
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.bart-vue.ap-ecriture-japon { display: grid; }
.bpack-prix span { color: var(--muted); font-size: .9rem; }
.bpanier-t small .linkish { font-size: .84rem; }
.bart { position: relative; display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.bart.pris { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.bart-vue { position: relative; display: block; height: 128px; container-type: inline-size; overflow: hidden; background-color: #FBF7EE; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12); }
.bart-vue.ap-prev { height: 128px; border-radius: 0; }
.bart-vue i, .bart-vue span { position: absolute; display: block; }
.bq-mot { font-weight: 400; font-size: min(2.1rem, 13cqw); white-space: nowrap; }
.bart-vue.ap-scotch-japon { background: #E9DFC8 var(--grain); }
.bart-vue.ap-scotch-japon::before { content: none; }
.bart-vue.ap-scotch-japon .bq-photo { left: 30%; top: 26%; width: 40%; rotate: -3deg; }
/* la carte façon estampe : une mer de vagues, des terres crème cernées de noir, une épingle rouge */
.bart-vue.ap-carte-japon { background: radial-gradient(circle at 50% 100%, transparent 9px, #8FB0C2 9px 10.5px, transparent 10.5px 16px, #8FB0C2 16px 17.5px, transparent 17.5px) 0 0 / 36px 18px, #DCE8EE; }
.bq-terre { background: #F3E9D0; border: 1.5px solid #3B3A36; }
.bq-terre.t1 { left: 12%; top: 16%; width: 34%; height: 58%; border-radius: 46% 54% 38% 62% / 55% 38% 62% 45%; rotate: -12deg; }
.bq-terre.t2 { left: 52%; top: 30%; width: 26%; height: 46%; border-radius: 60% 40% 55% 45% / 40% 60% 45% 55%; rotate: 18deg; }
.bq-terre.t3 { left: 78%; top: 14%; width: 9%; height: 20%; border-radius: 50%; }
.bq-pin { left: 60%; top: 40%; width: 13px; height: 13px; border-radius: 50%; background: #D9472B; border: 2px solid #FFFDF8; box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.bart-vue.bvue-couv { background: #E9DFC8 var(--grain); }
.bart-vue.bvue-couv .bq-carnet { left: 34%; top: 9%; width: 30%; }
.bart-vue.ap-fond-japon .bq-plateau { left: 20%; top: 10%; width: 60%; height: 80%; }
.bart-vue.ap-fond-japon .bq-theiere { left: 3%; top: 38%; width: 24%; }
.bart-vue.ap-fond-japon .bq-matcha { left: 76%; top: 6%; width: 21%; }
.bart-vue.ap-fond-japon .bq-grue { left: 79%; top: 58%; width: 17%; }
.bart-vue .bq-tampon { left: calc(50% - 44px); top: 20px; width: 88px; color: #C8361E; rotate: -9deg; opacity: .9; }
.bart-vue .bq-tampon svg { display: block; width: 100%; height: auto; }
.bart-vue.ap-encre-japon { background: #FBF7EE var(--grain); }
.bart-t { display: flex; flex-direction: column; flex: 1; gap: 3px; padding: 10px 12px 12px; }
.bart-t small { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.bart-t b { font-size: .98rem; line-height: 1.25; }
.bart-t p { flex: 1; margin: 0 0 8px; font-size: .84rem; color: var(--muted); }
.bart .bbtns .cartbtn, .bart .bbtns .ghost { flex: 1; justify-content: center; padding: 8px 10px; font-size: .86rem; }
.bart .cartbtn[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
/* l'étiquette de prix, en kraft, attachée au coin de l'article */
.bprix { position: absolute; z-index: 1; top: 10px; right: -3px; rotate: 4deg; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.bprix span { display: block; padding: 3px 9px 3px 19px; background: #EBD9AE; color: #2B2621; font: 700 .95rem/1.4 var(--type); clip-path: polygon(11px 0, 100% 0, 100% 100%, 11px 100%, 0 50%); }
.bprix span::before { content: ""; position: absolute; left: 9px; top: calc(50% - 2.5px); width: 5px; height: 5px; border-radius: 50%; background: rgba(43, 38, 33, .55); }

/* De saison, prochaines escales : ce qui se prépare */
.bbientot { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 14px; }
.bbientot li { display: grid; gap: 2px; padding: 14px 14px 12px; border: 1.5px dashed var(--line); border-radius: 14px; list-style: none; position: relative; overflow: hidden; }
.bbientot { margin: 0; padding: 0; }
.bbientot b { font-family: var(--hand); font-size: 1.7rem; line-height: 1.1; }
.bbientot span { font-size: .86rem; color: var(--muted); }
.bbientot small { justify-self: start; margin-top: 8px; padding: 2px 9px; border-radius: 999px; background: var(--chip); font-size: .76rem; font-weight: 600; }
.bbientot li::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--bande, var(--line)); }
.bs-noel { --bande: repeating-linear-gradient(135deg, #B3261E 0 10px, #F4EEDF 10px 20px, #2E6B3F 20px 30px, #F4EEDF 30px 40px); }
.bs-halloween { --bande: repeating-linear-gradient(135deg, #E07B1A 0 12px, #2B2621 12px 24px); }

/* La sélection : reste en bas de la fenêtre */
.bpanier { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 8px 18px; margin: 28px -32px 0; padding: 12px 32px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1.5px solid var(--ink); background: var(--surface); box-shadow: 0 -10px 20px -14px rgba(0, 0, 0, .5); }
.bpanier[hidden] { display: none; }
.bfin { height: 40px; }
.bpanier-t { flex: 1 1 auto; min-width: 0; }
.bpanier-t b { display: block; font-size: 1rem; }
.bpanier-t b span { font-family: var(--type); }
.bpanier-t small { display: block; font-size: .84rem; color: var(--muted); }
.bpanier-t .linkish { margin: 0 6px 0 2px; }
.bpanier .cartbtn { flex: none; }
.bpanier .cartbtn[aria-disabled="true"] { opacity: .55; }
.appack-btns { display: grid; gap: 6px; }
@media (max-width: 820px) {
  .bpack { grid-template-columns: 1fr; gap: 14px; padding: 12px; }
}
@media (max-width: 700px) {
  /* le titre, « + Ajouter » et la boutique tiennent sur une ligne, à gauche du bouton pour fermer */
  #jdlg .jhead { gap: 8px; }
  #jdlg .jhead h2 { font-size: clamp(1.9rem, 8.6vw, 2.3rem); }
  #jdlg .jhead .cartbtn { padding: 9px 11px; }
  #jdlg .jhead .jboutique { padding: 8px; }
  #jdlg .jhead .jboutique span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .bfiltres { flex-wrap: nowrap; margin: 14px -16px 0; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
  .bfiltres::-webkit-scrollbar { display: none; }
  .bgrid, .bbientot { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bart-vue, .bart-vue.ap-prev { height: 104px; }
  .bart-vue.bvue-couv .bq-carnet { left: 18%; }
  .bart .bbtns { flex-direction: column; }
  .bpanier { margin: 24px -16px 0; padding-left: 16px; padding-right: 16px; }
  .bpack-t ul { grid-template-columns: 1fr; }
  .appack { grid-template-columns: 90px minmax(0, 1fr); }
  .appack-btns { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}

/* ---------- Comptes : fenêtre d'accueil, connexion, menu du compte ---------- */
.bienvenue { text-align: left; }
.bv-etat[hidden] { display: none; }
/* Tampon de passeport « Bienvenue à bord », dans l'esprit des tampons des recettes */
.bv-tampon { display: block; width: 128px; margin: 2px auto 6px; color: #1F4E9C; opacity: .88; transform: rotate(-7deg); mix-blend-mode: multiply; }
.bv-tampon svg { display: block; width: 100%; height: auto; overflow: visible; }
.bv-tampon text { font-family: var(--type); font-weight: 700; }
.bv-tampon .bv-mot { font-family: var(--hand); font-weight: 700; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bv-tampon { mix-blend-mode: screen; color: #8FB0EA; } }
:root[data-theme="dark"] .bv-tampon { mix-blend-mode: screen; color: #8FB0EA; }
.bienvenue h2 { text-align: center; margin: 0 44px 8px; }  /* place laissée au bouton Fermer, de chaque côté pour rester centré */
.bienvenue .psheet-intro, .bv-pourquoi { text-align: center; margin: 0 0 14px; color: var(--ink); }
.bv-pourquoi b { font-weight: 600; }
/* Ce que le compte apporte */
.bv-plus { list-style: none; margin: 0 0 18px; padding: 12px 14px; display: grid; gap: 8px; border: 1.5px dashed #CDBFA8; border-radius: 10px; }
.bv-plus li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .95rem; line-height: 1.35; }
.bv-plus svg { width: 20px; height: 20px; color: var(--accent); margin-top: 1px; }
/* Bouton Google : le vrai bouton est dessiné par Google lui-même (règles de la marque) */
.bv-google { display: flex; justify-content: center; min-height: 44px; margin-bottom: 4px; }
.bv-google-maquette { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 44px; border: 1px solid #DADCE0; border-radius: 999px; background: #FFF; color: #1F1F1F; font: 500 15px/1 Roboto, Arial, sans-serif; }
.bv-google-maquette svg { width: 18px; height: 18px; }
.bv-ou { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-family: var(--hand); font-weight: 700; font-size: 1.3rem; color: var(--muted); }
.bv-ou::before, .bv-ou::after { content: ""; flex: 1; border-top: 1.5px dashed #CDBFA8; }
.bienvenue .efield { margin-bottom: 10px; }
.bienvenue .pok + .pok { margin-top: 10px; }
.bv-code input { font-family: var(--type); font-weight: 700; font-size: 1.9rem; letter-spacing: .45em; text-align: center; padding: 8px 0 8px .45em; }
.bv-legal { margin: 12px 0 0; font-size: .78rem; color: var(--muted); text-align: center; }
.bv-legal a { color: inherit; }
.bv-bas { display: flex; justify-content: center; gap: 6px 16px; flex-wrap: wrap; margin-top: 8px; }
.bv-erreur { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: #FBE4E1; color: #8A1C12; font-size: .9rem; }
.bv-erreur[hidden] { display: none; }
/* Données reprises à la première connexion : un post-it, comme « Mes réglages » */
.bv-repris { position: relative; margin: 14px 4px 18px; padding: 14px 18px 12px; background: #FBEDA6; color: #2B2621; border-radius: 2px; transform: rotate(-1deg); box-shadow: 0 10px 18px -10px rgba(60, 40, 20, .5); list-style: none; }
.bv-repris::before { content: ""; position: absolute; top: -11px; left: 50%; width: 78px; height: 22px; transform: translateX(-50%) rotate(2deg); background: rgba(150, 182, 220, .75); clip-path: polygon(3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 94%, 0 50%); }
.bv-repris li { font-family: var(--hand); font-weight: 700; font-size: 1.4rem; line-height: 1.2; }
.bv-repris li::before { content: "✓ "; color: #2E6B3F; }
/* Menu du compte (dans Mon profil) et bouton de l'en-tête une fois connecté */
.ucompte p { margin: 4px 0 8px; }
.ucompte .chip { height: 26px; padding: 0 10px; font-size: .8rem; vertical-align: middle; }
.ucompte .bv-bas { justify-content: flex-start; }
/* Changer mon mot de passe : un petit formulaire qui s'ouvre dans Mon compte */
.umdp { margin: 10px 0 4px; padding: 12px 14px 6px; border: 1.5px dashed #CDBFA8; border-radius: 10px; }
.umdp[hidden] { display: none; }
.umdp h4 { margin-top: 0; }
.umdp .efield { margin-bottom: 10px; }
.ucoche { display: flex; align-items: center; gap: 8px; margin: 2px 0 12px; font-size: .9rem; }
.ucoche input { width: 18px; height: 18px; accent-color: var(--accent); }
.userbtn.connecte { background: var(--accent); color: var(--accent-ink); font-family: var(--hand); font-weight: 700; font-size: 1.25rem; line-height: 1; }
/* Mot de passe : bouton « œil » pour l'afficher, règles à respecter qui passent au vert une à une */
.bv-mdp { position: relative; }
.bv-mdp input { padding-right: 46px; }
.bv-oeil { position: absolute; right: 6px; bottom: 6px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.bv-oeil svg { width: 20px; height: 20px; }
.bv-oeil[aria-pressed="true"] { color: var(--accent); }
.bv-aide { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: -4px 0 12px; font-size: .8rem; color: var(--muted); }
.bv-aide [data-r] { padding: 1px 8px; border: 1px solid #CDBFA8; border-radius: 999px; white-space: nowrap; }
.bv-aide [data-r].ok { color: #2E6B3F; border-color: currentColor; }
.bv-aide [data-r].ok::before { content: "✓ "; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bv-aide [data-r].ok { color: #8FD19E; } }
:root[data-theme="dark"] .bv-aide [data-r].ok { color: #8FD19E; }
.bv-oublie { display: flex; justify-content: flex-end; margin: -4px 0 12px; }
/* Bas de chaque écran : passer de la connexion à la création du compte, et inversement */
.bv-autre { margin: 18px 0 0; padding-top: 14px; border-top: 1.5px dashed #CDBFA8; text-align: center; font-size: .95rem; }
.bv-autre .linkish { font-weight: 700; }
.bv-info { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: #E4EDF8; color: #1F3F6E; font-size: .9rem; }
.bv-plus[hidden], .bv-info[hidden], .bv-etape[hidden], .bv-code[hidden], .bv-google[hidden], .bv-ou[hidden] { display: none; }

/* ================= Carnets partagés : notes des recettes, carnet des autres, qui peut voir mon carnet ================= */

/* ---------- La cloche « Nouveautés » (script 013), à côté du profil ---------- */
header.top { z-index: 3; }
header.top.nv-ouvert { z-index: 25; }  /* panneau ouvert : devant la barre de recherche (collante) et le bouton de la liste de courses */
.nv-btn { position: relative; }
.nv-btn[hidden], .nv-btn .nb[hidden] { display: none; }
.nv-btn .nb { position: absolute; top: -7px; right: -9px; min-width: 20px; height: 20px; padding: 0 5px; font-size: .72rem; font-weight: 700;
  background: var(--heart); color: #fff; border: 1.5px solid var(--surface); }
.nv-pan { position: absolute; z-index: 5; top: calc(100% + 10px); right: 0; width: min(400px, calc(100vw - 32px)); max-height: min(78vh, 640px);
  overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 12px; text-align: left; font-family: var(--sans); font-size: .95rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); }
.nv-pan[hidden] { display: none; }
.nv-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nv-tete h2 { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 1.9rem; line-height: 1; }
.nv-tete h2:focus { outline: none; }
.nv-fermer { width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.nv-fermer:hover { background: var(--chip); color: var(--ink); }
.nv-afaire { width: 100%; margin: 10px 0 2px; padding: 9px 12px; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: baseline; text-align: left;
  border: 1.5px dashed #B5452F; border-radius: 10px; background: rgba(214, 51, 74, .06); color: var(--ink); cursor: pointer; font: inherit; }
.nv-afaire b { color: #B5452F; }
.nv-afaire i { grid-column: 1 / -1; font-style: normal; font-size: .85rem; color: var(--accent); text-decoration: underline; }
.nv-groupe { margin: 12px 0 4px; font-family: var(--type); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nv-liste { list-style: none; margin: 0; padding: 0; }
.nv-l { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 10px 8px 10px 10px; border-radius: 10px; }
.nv-l + .nv-l { border-top: 1px dashed var(--line); }
.nv-l.neuf { background: rgba(44, 76, 140, .07); }
.nv-l.neuf::before { content: ""; position: absolute; left: -2px; top: 24px; width: 8px; height: 8px; border-radius: 50%; background: var(--heart); }
.nv-l .cm-ava, .nv-ava { width: 38px; height: 38px; }
.nv-ava { border-radius: 50%; display: grid; place-items: center; background: var(--chip); color: var(--ink); font-family: var(--hand); font-weight: 700; font-size: 1.4rem; }
.nv-ava.nv-pt { background: var(--surface); border: 1.5px solid var(--ink); }
.nv-ava.nv-modo { background: #FBEDE7; color: #B5452F; font-family: var(--type); }
.nv-corps { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.nv-txt { line-height: 1.35; overflow-wrap: anywhere; }
.nv-l:not(.neuf) .nv-txt { color: var(--muted); }
.nv-l:not(.neuf) .nv-txt b { color: var(--ink); }
.nv-txt b { font-weight: 600; }
.nv-qui { font-weight: 700; color: var(--ink); text-decoration: none; }
.nv-qui:hover { text-decoration: underline; }
.nv-note { white-space: nowrap; }
.nv-note > span:last-child { margin-left: 4px; font-size: .9em; }  /* le chiffre seulement, pas les étoiles */
.nv-mot { font-family: var(--hand); font-size: 1.2rem; line-height: 1.15; color: #2C4C8C; overflow-wrap: anywhere; }
.nv-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.nv-btns .cartbtn, .nv-btns .ghost { padding: 6px 14px; font-size: .9rem; }
.nv-corps .linkish { font-size: .9rem; }
.nv-corps small { font-size: .78rem; color: var(--muted); }
.nv-vide { margin: 18px 0 10px; text-align: center; color: var(--muted); }
.nv-pied { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); text-align: center; }
:root[data-theme="dark"] .nv-l.neuf { background: rgba(163, 188, 240, .08); }
:root[data-theme="dark"] .nv-mot { color: var(--accent); }
:root[data-theme="dark"] .nv-ava.nv-modo { background: rgba(214, 51, 74, .18); color: #FF9AA8; }
@media (max-width: 640px) {
  .nv-pan { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: 82vh; border-radius: 16px 16px 0 0; border-bottom: 0;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, .25); padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* Pastille d'une personne : sa photo, sinon son initiale */
.cm-ava { flex: none; width: var(--s, 44px); height: var(--s, 44px); border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--c, #E9DEC9); color: #2B2621; font-family: var(--hand); font-weight: 700; font-size: calc(var(--s, 44px) * .56); line-height: 1;
  border: 2px solid #FFFDF8; box-shadow: 0 2px 6px -2px rgba(40, 25, 10, .5); }
.cm-ava img { width: 100%; height: 100%; object-fit: cover; }
.cm-n { font-family: var(--type); font-size: .8rem; }
.cm-ets { display: inline-flex; }

/* Notes sous la recette */
.avis { margin-top: 34px; background-color: var(--surface); background-image: var(--grain); border-radius: 18px; padding: 26px clamp(18px, 4vw, 36px) 22px;
  box-shadow: 0 14px 34px -14px rgba(40, 25, 10, .45); }
.avis > h2 { font-family: var(--hand); font-weight: 700; font-size: 2.5rem; line-height: 1; margin: 0; }
.avis-sous { margin: 6px 0 0; color: var(--muted); font-size: .92rem; max-width: 70ch; }
.avis-som { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 40px; align-items: center; margin: 18px 0 4px; padding: 18px 0 20px;
  border-top: 1.5px dashed var(--line); border-bottom: 1.5px dashed var(--line); }
.avis-moy { display: grid; justify-items: center; gap: 6px; padding: 0 8px; }
.avis-moy b { font-family: var(--hand); font-weight: 700; font-size: 3.8rem; line-height: .8; }
.avis-moy small { font-family: var(--type); font-size: .78rem; color: var(--muted); }
.crits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 34px; margin: 0; }
.crits > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.crits dt { font-weight: 600; font-size: .94rem; line-height: 1.2; }
.crits dt small { display: block; font-weight: 400; color: var(--muted); font-size: .76rem; }
.crits dd { margin: 0; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.avis-vide { margin: 18px 0 0; padding: 14px 0; border-top: 1.5px dashed var(--line); color: var(--muted); }
.avis-compte { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 18px 10px 4px; }
.avis-compte p { margin: 0; max-width: 46ch; }
.avis-toucher { margin: 16px 0 0; font-size: .9rem; color: var(--muted); }
.avis-filtres { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.avis-liste { list-style: none; margin: 6px 0 0; padding: 0; }
.avis-liste li + li { border-top: 1px solid var(--line); }
.avn { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; width: 100%; text-align: left; background: none; border: 0;
  padding: 16px 12px; border-radius: 12px; color: inherit; }
.avn:hover { background: color-mix(in srgb, var(--chip) 70%, transparent); }
.avn-txt, .avn-qui, .avn-com, .avn-voir { display: block; }
.avn-qui { font-size: 1.02rem; overflow-wrap: anywhere; }
.avn-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 3px; }
.avn-date { font-family: var(--type); font-size: .74rem; color: var(--muted); }
.avn-com { margin-top: 6px; font-family: var(--hand); font-size: 1.35rem; line-height: 1.15; overflow-wrap: anywhere; }
.avn-voir { margin-top: 8px; color: var(--accent); font-weight: 600; font-size: .86rem; text-decoration: underline; text-underline-offset: 3px; }
.avn-photo { display: block; width: 92px; padding: 5px 5px 13px; background: #FFFDF8; box-shadow: 0 6px 12px -6px rgba(40, 25, 10, .55); transform: rotate(2.5deg); }
.avn-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.avis-caches { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--chip); color: var(--muted); font-size: .88rem; }
.avis-caches svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.avis-noter { margin: 16px 0 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 720px) {
  .avis-som { grid-template-columns: 1fr; }
  .crits { grid-template-columns: 1fr; }
  .avn { grid-template-columns: auto minmax(0, 1fr); padding: 14px 4px; }
  .avn-photo { grid-column: 2; width: 120px; margin-top: 6px; }
}
@media (max-width: 560px) { .fichepage .avis { border-radius: 0; } }  /* comme la fiche, d'un bord à l'autre */

/* Polaroïds des plats d'un carnet */
.pl { display: block; width: 100%; border: 0; background: #FFFDF8; color: #2B2621; padding: 9px 9px 12px; text-align: left; border-radius: 2px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 10px 20px -8px rgba(60, 40, 20, .4); transform: rotate(var(--rot, 0deg)); transition: transform .2s ease; }
.pl:hover { transform: rotate(0deg) translateY(-3px); }
.pl img, .pl .noimg { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.pl b { display: block; font-family: var(--hand); font-weight: 700; font-size: 1.35rem; line-height: 1.02; margin: 8px 2px 5px; }
.pl-bas { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 0 2px; font-family: var(--type); font-size: .7rem; color: #6B6153; }
.pl.r0 { --rot: -1.6deg; } .pl.r1 { --rot: 1.2deg; } .pl.r2 { --rot: -.6deg; } .pl.r3 { --rot: 1.8deg; } .pl.r4 { --rot: -1.2deg; } .pl.r5 { --rot: .6deg; }

/* Le carnet d'une autre personne */
dialog.cmcarnet .sheet { padding-top: 34px; }
.fp { max-width: 1040px; margin: 0 auto; }
.fp-tete { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px 38px; align-items: start; padding: 4px 0 24px; border-bottom: 1.5px dashed var(--line); }
.fp-pola { width: clamp(120px, 20vw, 172px); padding: 8px 8px 26px; background: #FFFDF8; box-shadow: 0 8px 16px -8px rgba(40, 25, 10, .5); transform: rotate(-3deg); }
.fp-pola img, .fp-pola span { display: grid; place-items: center; width: 100%; aspect-ratio: 1; object-fit: cover; }
.fp-pola span { background: var(--c); color: #2B2621; font-family: var(--hand); font-weight: 700; font-size: 4.4rem; }
.fp-nom { margin: 0 44px 0 0; font-family: var(--hand); font-weight: 700; font-size: clamp(2.3rem, 5vw, 3.1rem); line-height: 1; overflow-wrap: anywhere; }
.fp-lien { display: inline-block; margin: 4px 0 0; font-family: var(--type); font-size: .86rem; color: var(--accent); overflow-wrap: anywhere; }
.fp-bio { margin: 10px 0 0; font-family: var(--hand); font-size: 1.5rem; line-height: 1.15; max-width: 40ch; overflow-wrap: anywhere; }
.fp-stats { display: flex; flex-wrap: wrap; gap: 10px 30px; margin: 14px 0 0; align-items: flex-end; }
.fp-stats div { display: flex; flex-direction: column; }
.fp-stats dd { order: -1; margin: 0; font-family: var(--hand); font-weight: 700; font-size: 2rem; line-height: 1; }
.fp-stats dt { font-family: var(--type); font-size: .74rem; color: var(--muted); }
.fp-stats .fp-grade dd { font-family: var(--type); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  border: 2px solid currentColor; border-radius: 6px; padding: 3px 8px; margin-bottom: 4px; transform: rotate(-4deg); }
.fp-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.fp-btns .ghost, .np-btns .ghost { display: inline-flex; align-items: center; gap: 8px; }
.fp-btns svg, .np-btns svg { width: 18px; height: 18px; flex: none; }
.fp-pays { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; }
.fp-pays span { font-family: var(--type); font-size: .74rem; padding: 2px 8px; border: 1px dashed var(--muted); border-radius: 4px; }
.fp h3 { font-family: var(--hand); font-weight: 700; font-size: 2rem; line-height: 1; margin: 28px 0 16px; }
.fp-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 42%), 1fr)); gap: 30px 24px; }
.fp-vide { margin: 26px 0 0; color: var(--muted); }
@media (max-width: 640px) { .fp-tete { grid-template-columns: 1fr; } }

/* Une page du carnet d'une autre personne */
.np-pola { width: min(270px, 70%); margin: 4px auto 16px; padding: 9px 9px 26px; background: #FFFDF8; box-shadow: 0 10px 20px -8px rgba(40, 25, 10, .5); transform: rotate(-2deg); }
.np-pola img, .np-pola .noimg { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.np-qui { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: .95rem; }
.np-qui small { display: block; font-family: var(--type); font-size: .74rem; color: var(--muted); }
.np-glob { display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; }
.np .crits { grid-template-columns: 1fr; gap: 8px; padding: 12px 0; border-top: 1.5px dashed var(--line); border-bottom: 1.5px dashed var(--line); }
.np-com { margin: 14px 0 0; font-family: var(--hand); font-size: 1.55rem; line-height: 1.15; overflow-wrap: anywhere; }
.np-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.np-btns a { text-decoration: none; }

/* Qui peut voir mon carnet ? */
.evis { display: grid; gap: 10px; margin: 14px 0 12px; }
.evis-o { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.evis-o:has(input:checked) { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.evis-o input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }
.evis-o b { display: block; }
.evis-o small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.35; margin-top: 2px; }
/* Une page du carnet : la garder pour soi, cacher sa photo */
.ecoche { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 2px; font-size: .94rem; font-weight: 400; cursor: pointer; }
.ecoche input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
/* Dans le carnet : qui le voit (sur la présentation), page gardée pour soi */
#jAddTop[hidden] { display: none; }  /* le carnet d'un autre : rien à y ajouter */
.mvis { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 2px 8px; margin: 8px 0 0; font-family: var(--type); font-size: .74rem; line-height: 1.4; color: #6B6153; }
.mvis svg, .jgardee svg { width: 14px; height: 14px; flex: none; }
.mvis svg { margin-top: 1px; }
.mvis .linkish { grid-column: 2; justify-self: start; margin: 0; font-family: var(--sans); font-size: .82rem; }
.mvis.neuf { padding: 6px 10px; border: 1.5px dashed #2C4C8C; border-radius: 8px; color: #2B2621; }
.jgardee { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-family: var(--type); font-size: .72rem; color: #6B6153; }

/* ================= Amis, Communauté, Signaler, Bloquer (étape 2) ================= */
#openCommu { position: relative; }
#openCommu .nb { position: absolute; top: -9px; right: -9px; min-width: 22px; height: 22px; font-size: .78rem; font-weight: 700; box-shadow: 0 0 0 2px var(--bg); }
#openCommu .nb[hidden] { display: none; }
.cm-ami { display: inline-block; vertical-align: 2px; margin-left: 6px; font-family: var(--type); font-size: .62rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent); border: 1.5px solid currentColor; border-radius: 4px; padding: 0 5px; line-height: 1.5; transform: rotate(-2deg); }

/* Le carnet d'une personne : demande d'ami, menu « ••• », carnet fermé */
.fp-btns { position: relative; }
.cm-tampon { display: inline-flex; align-items: center; gap: 6px; font-family: var(--type); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); border: 2px solid currentColor; border-radius: 8px; padding: 6px 12px; transform: rotate(-2deg); }
.fp-btns .cm-plus { width: 46px; justify-content: center; padding-left: 0; padding-right: 0; font-weight: 700; letter-spacing: .1em; }
.cm-menu { position: absolute; z-index: 4; top: calc(100% + 8px); left: 0; display: grid; min-width: 250px; padding: 6px; background-color: var(--surface); background-image: var(--grain);
  border: 1.5px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); }
.cm-menu[hidden] { display: none; }
.cm-menu button { text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 8px; color: inherit; font: inherit; }
.cm-menu button:hover, .cm-menu button:focus-visible { background: var(--chip); }
.cm-menu .cm-rouge { color: var(--heart); }
.cm-attente { margin: 10px 0 0; font-size: .86rem; color: var(--muted); max-width: 52ch; }
.cm-sous { margin: 8px 0 0; color: var(--muted); }
.cm-verrou { display: grid; justify-items: center; gap: 8px; text-align: center; margin: 28px auto 8px; padding: 28px 20px; max-width: 520px; border: 1.5px dashed var(--line); border-radius: 14px; }
.cm-verrou svg { width: 32px; height: 32px; color: var(--muted); }
.cm-verrou p { margin: 0; }
.np .cm-sig { display: block; margin: 18px 0 0; color: var(--muted); font-size: .88rem; }

/* La fenêtre « Communauté » (et celle des signalements) */
.cm { max-width: 1040px; margin: 0 auto; }
.cm-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-right: 44px; }
.cm-tete h2 { font-family: var(--hand); font-weight: 700; font-size: 2.8rem; line-height: 1; margin: 0; }
.cm-tete .seg button { height: 34px; padding: 0 16px; font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; }
.cm-tete .seg .nb { min-width: 20px; height: 20px; padding: 0 6px; font-size: .74rem; font-weight: 700; color: var(--accent-ink); }  /* pas le style des « .seg span » */
.cm-tete .cm-modo { margin: 0; }
.cm-etat { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
.cm-etat svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
.cm-etat b { color: var(--ink); }
.cm-etat .linkish { margin: 0; }
.cm-alerte { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--heart) 14%, transparent); font-size: .92rem; max-width: 70ch; }
.cm h3 { font-family: var(--hand); font-weight: 700; font-size: 2rem; line-height: 1; margin: 28px 0 16px; }
.cm-bloc { background-color: var(--surface); background-image: var(--grain); border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); padding: 16px 18px; }
.cm .cm-bloc h3 { margin: 0 0 8px; font-size: 1.7rem; }
.cm-pers { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; text-align: left; padding: 6px; border-radius: 10px; color: inherit; font: inherit; }
.cm-pers:hover { background: var(--chip); }
.cm-pers > span:last-child { min-width: 0; line-height: 1.2; }
.cm-pers b { font-weight: 600; overflow-wrap: anywhere; }
.cm-pers small { display: block; color: var(--muted); font-size: .78rem; }
.cm-dem { display: grid; gap: 2px; padding: 6px 0; }
.cm-dem + .cm-dem { border-top: 1px solid var(--line); }
.cm-dem-btns { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 4px 54px; }
.cm-dem-btns button { padding: 7px 12px; font-size: .86rem; }
.cm-fil-com { margin: 8px 0 0; font-family: var(--hand); font-size: 1.45rem; line-height: 1.15; overflow-wrap: anywhere; }
.cm-cherche { display: block; margin: 22px 0 0; max-width: 460px; }
.cm-cherche + .hint { margin: 8px 0 0; max-width: 60ch; }
.cm-res { margin-top: 12px; max-width: 460px; }
.cm-dc-rangee { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 18px; overflow-x: auto; padding: 4px 4px 12px; scroll-snap-type: x mandatory; }
.cm-dc { scroll-snap-align: start; display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center; padding: 16px 14px 14px; background-color: var(--surface);
  background-image: var(--grain); border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); }
.cm-dc-nom { font-family: var(--hand); font-weight: 700; font-size: 1.7rem; line-height: 1; overflow-wrap: anywhere; }
.cm-dc-st { font-family: var(--type); font-size: .74rem; color: var(--muted); }
.cm-dc-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: 100%; }
.cm-dc-mini img, .cm-dc-mini .noimg { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.cm-dc .ghost { padding: 7px 14px; font-size: .88rem; }
.cm-pl-qui { display: flex; align-items: center; gap: 7px; margin: 9px 2px 0; padding-top: 8px; border-top: 1px dashed #DACDB6; font-size: .84rem; font-weight: 600; overflow-wrap: anywhere; }
.cm-vide { color: var(--muted); }
.cm-bas { margin-top: 22px; }

/* Petites fenêtres : pseudo, inviter, signaler, bloquer, personnes bloquées, invitation reçue */
.cm-lien { margin: 14px 0 0; padding: 10px 12px; border: 1.5px dashed var(--ink); border-radius: 10px; font-family: var(--type); font-size: .9rem; overflow-wrap: anywhere; user-select: all; }
.cm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cm-danger { background: #B3261E !important; color: #fff !important; border-color: #B3261E !important; }
.cm-zone { display: block; width: 100%; min-height: 80px; margin-top: 10px; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--surface); padding: 10px 12px;
  font: inherit; color: inherit; resize: vertical; }
.cm-motif { font-weight: 500; }
.cm-effets { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.cm-centre { display: grid; justify-items: center; text-align: center; gap: 10px; }
.cm-centre h2 { margin: 6px 0 0 !important; }
.cm-centre p { margin: 0; max-width: 44ch; }
.cm-centre .cm-actions { justify-content: center; }
.cm-chemin { margin: 0 0 6px; font-family: var(--type); font-size: .74rem; color: var(--muted); }
.cm-bl { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.cm-bl + .cm-bl { border-top: 1px solid var(--line); }
.cm-bl > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cm-bl small { display: block; color: var(--muted); font-size: .78rem; }
.cm-bl button { padding: 7px 12px; font-size: .86rem; }

/* Signalements (compte modérateur) */
.cm-sg { margin-top: 18px; padding: 16px 18px; border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); background-color: var(--surface); background-image: var(--grain); }
.cm-sg-tete { display: flex; align-items: center; gap: 12px; }
.cm-sg-tete small { display: block; color: var(--muted); font-size: .8rem; }
.cm-sg .chip { display: inline-flex; align-items: center; height: 30px; margin-top: 12px; cursor: default; }
.cm-sg-txt { font-family: var(--hand); font-size: 1.35rem; line-height: 1.15; margin: 10px 0 0; overflow-wrap: anywhere; }
.cm-sg-contenu { display: flex; gap: 14px; align-items: flex-start; margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--chip); font-size: .92rem; overflow-wrap: anywhere; }
.cm-sg-contenu .pl { width: 110px; flex: none; }
.cm-sg-contenu .pl img, .cm-sg-contenu .pl .noimg { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.cm-sg-contenu p { margin: 0; }
.cm-sg-fait { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, #2E7D32 16%, transparent); }
.cm-sg label { display: block; margin-top: 14px; font-weight: 600; font-size: .92rem; }
.cm-traites { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .9rem; }
.cm-traites small { font-family: var(--type); color: var(--muted); }
.cm-sg-choix { margin: 14px 0 0; font-size: .95rem; }
.cm-mo-aide { margin: 18px 0 12px; }

/* Modération, « En cours » : une personne, ses mesures (date, motif) et, à droite, un bouton par mesure à lever */
.cm-mes-liste { margin-top: 10px; }
.cm-mes { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 14px; align-items: start; padding: 12px 0; }
.cm-mes + .cm-mes { border-top: 1px solid var(--line); }
.cm-mes-qui { min-width: 0; }
.cm-mes-qui b { font-weight: 600; overflow-wrap: anywhere; }
.cm-mes-qui > small { display: block; color: var(--muted); font-size: .8rem; }
.cm-mes-qui ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.cm-mes-qui li { font-size: .9rem; }
.cm-mes-qui li small { color: var(--muted); font-size: .8rem; }
.cm-mes-qui .chip { display: inline-flex; align-items: center; height: auto; min-height: 26px; max-width: 100%; padding-block: 3px; margin-right: 6px;
  font-size: .8rem; white-space: normal; text-align: left; cursor: default; }
.cm-mes-btns { display: flex; flex-direction: column; gap: 6px; }
.cm-mes-btns button { padding: 7px 12px; font-size: .86rem; }
.cm-mes-form, .cm-mes .cm-sg-fait { grid-column: 1 / -1; }
.cm-mes-form label { display: block; margin-top: 4px; font-weight: 600; font-size: .92rem; }
.cm-mes-form .hint { margin: 6px 0 0; }
@media (max-width: 600px) {
  .cm-mes { grid-template-columns: auto 1fr; }
  .cm-mes-btns { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; padding-left: 54px; }
}

/* Ses recettes (écrites par la personne), dans son carnet ; une recette signalée, dans la modération */
.fp-recettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.fp-rec { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border: 0; border-radius: 4px; background: #FFFDF8;
  color: #2B2621; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); transition: transform .15s; }
.fp-rec:hover { transform: translateY(-2px); }
.fp-rec-img { flex: none; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 8px; overflow: hidden; background: rgba(232, 163, 203, .35); color: #B5452F; }
.fp-rec-img img { width: 100%; height: 100%; object-fit: cover; }
.fp-rec-img svg { width: 38px; height: 38px; transform: rotate(-18deg); }
.fp-rec-txt { display: grid; gap: 2px; min-width: 0; }
.fp-rec-txt b { overflow-wrap: anywhere; }
.fp-rec-txt small { color: #6B6153; }
.cm-sg-rec { display: grid; gap: 6px; min-width: 0; }
.cm-sg-rec ol { margin: 0; padding-left: 1.3em; }
/* Les notes d'une recette écrite dans un carnet (script 010) */
.rn-sur { margin: 0; font-family: var(--type); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rn h2 { font-size: 2.5rem; margin-top: 4px; }
.rn div.avn { cursor: default; }
.rn div.avn:hover { background: none; }
.rn-bas { justify-content: center; margin-top: 18px; }
/* Les plats « chez … » dans le carnet d'une personne */
.pl-fiche, .np-fiche { display: grid; place-items: center; aspect-ratio: 1; background: #F3EDE2; color: #B9AD99; }
.pl-fiche svg { width: 44%; }
.np-fiche svg { width: 40%; }
.pl-chez { display: block; margin: -2px 2px 5px; font-family: var(--type); font-size: .64rem; letter-spacing: .04em; text-transform: uppercase; color: #8A7D6A; }
.np-de { margin: -4px 0 10px; font-family: var(--type); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cm-sg-de { display: block; margin-bottom: 4px; color: var(--muted); }
/* Modération : les mieux notées */
.cm-top { list-style: none; margin: 14px 0 0; padding: 4px 18px; }
.cm-top li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 10px 18px; padding: 12px 0; }
.cm-top li + li { border-top: 1px solid var(--line); }
.cm-top-rang { font-family: var(--hand); font-weight: 700; font-size: 2rem; text-align: center; line-height: 1; }
.cm-top-tx b { font-size: 1.02rem; overflow-wrap: anywhere; }
.cm-top-tx small, .cm-top-nt small { display: block; color: var(--muted); font-size: .8rem; }
.cm-top-nt { display: grid; justify-items: end; gap: 2px; white-space: nowrap; }
.cm-top-nt span { display: inline-flex; align-items: center; gap: 6px; }
.cm-top-ferme { display: inline-flex; align-items: center; gap: 5px; max-width: 17ch; color: var(--muted); font-size: .78rem; line-height: 1.25; }
.cm-top-ferme svg { flex: none; width: 14px; height: 14px; }
@media (max-width: 640px) {
  .cm-top li { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .cm-top li > :last-child { grid-column: 2 / -1; justify-self: start; max-width: none; }
  /* Quatre onglets : deux par ligne */
  #odlg .cm-tete .seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 18px; }
  #odlg .cm-tete .seg button { justify-content: center; }
}
/* ===== Mes recettes pour le site (script 011) ===== */
/* L'auteur : la proposition */
.ps h2 { margin: 2px 0 10px; }
.ps h3 { margin: 18px 0 6px; font-size: 1rem; }
.ps-lead { font-size: 1.02rem; line-height: 1.5; }
.ps-points { margin: 0; padding-left: 20px; display: grid; gap: 7px; line-height: 1.45; }
.ps-case { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 4px; padding: 12px 14px; border-radius: 10px; background: var(--chip); line-height: 1.4; cursor: pointer; }
.ps-case input { flex: none; width: 18px; height: 18px; margin-top: 3px; }
.ps .cm-actions .cartbtn:disabled { opacity: .45; cursor: not-allowed; }
/* La modération : l'état de chaque recette */
.cm-top-nom { font-size: 1.02rem; font-weight: 700; text-align: left; overflow-wrap: anywhere; }
.cm-top-site { justify-self: end; text-align: right; }
.cm-site { display: block; color: var(--muted); font-size: .78rem; line-height: 1.3; }
.cm-site.ok { color: #7FBF77; }
.cm-site.alerte { color: #F0A35E; }
.cm-site-col { display: grid; justify-items: end; gap: 6px; }
.cm-top li.cm-site-pan { display: block; padding: 4px 0 16px 48px; border-top: 0; }
.cm-site-pan label { display: block; margin: 10px 0 6px; font-weight: 600; font-size: .9rem; }
.cm-site-copie { display: grid; gap: 4px; padding: 12px 16px; border-radius: 10px; background: var(--chip); }
.cm-site-copie small { color: var(--muted); }
.cm-site-copie p { margin: 8px 0 0; font-weight: 600; }
.cm-site-copie ul, .cm-site-copie ol { margin: 0; padding-left: 20px; }
.cm-top .cm-site-copie li { display: list-item; padding: 1px 0; border-top: 0; }
@media (max-width: 640px) {
  .cm-top li.cm-site-pan { padding-left: 0; }
  .cm-top-site { text-align: left; }
  .cm-site-col { justify-items: start; }
}

/* ==================== Mes amis, Découvrir et la fiche d'une personne (refonte du 14 novembre 2026) ====================
   Mes amis : une rangée de portraits (ceux qui ont cuisiné cette semaine devant, avec un liseré), les demandes reçues
   bien en vue, puis le fil en cartes. Découvrir : « Ajouter » sans ouvrir la fiche. La fiche : ce qu'on a en commun. */
.cm-rang { display: flex; gap: 4px; margin: 16px -6px 6px; padding: 6px 6px 10px; overflow-x: auto; scrollbar-width: thin; }
.cm-por { flex: none; width: 108px; display: grid; justify-items: center; align-content: start; gap: 3px; padding: 8px 4px 6px; border: 0; border-radius: 14px; background: none; color: inherit; font: inherit; text-align: center; }
.cm-por:hover { background: var(--chip); }
.cm-por .cm-ava { margin-bottom: 5px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4.5px var(--line); }
.cm-por.neuf .cm-ava { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5.5px var(--heart); }
.cm-por b { font-size: .9rem; font-weight: 600; line-height: 1.15; overflow-wrap: anywhere; }
.cm-por small { font-size: .72rem; line-height: 1.2; color: var(--muted); }
.cm-por.neuf small { color: var(--heart); font-weight: 600; }
.cm-por-inv .cm-ava { background: none; border: 2px dashed var(--ink); box-shadow: none; color: var(--ink); font-family: var(--sans); font-size: 2rem; font-weight: 300; line-height: 1; }
.cm-demande { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 12px 0 0; padding: 12px 16px; border: 1.5px solid var(--ink); border-radius: 14px;
  background-color: var(--surface); background-image: var(--grain); box-shadow: 3px 3px 0 var(--ink); }
.cm-demande .cm-dem-btns { padding: 0; }
.cm .cm-demande + h3, .cm .cm-rang + h3, .cm .cm-vide + h3 { margin-top: 26px; }
.cm-fil { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr)); gap: 18px; }
.cm-carte { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 14px; background-color: var(--surface); background-image: var(--grain);
  box-shadow: 0 10px 24px -16px rgba(40, 25, 10, .55); }
.cm-carte-qui { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
.cm-carte-qui > span:last-child { min-width: 0; line-height: 1.25; }
.cm-carte-qui b { font-weight: 600; overflow-wrap: anywhere; }
.cm-carte-qui:hover b { text-decoration: underline; text-underline-offset: 3px; }
.cm-carte-qui small { display: block; font-family: var(--type); font-size: .72rem; color: var(--muted); }
.cm-carte-corps { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 18px; align-items: start; }
.cm-carte-plat { margin: 0 0 6px; font-family: var(--hand); font-weight: 700; font-size: 1.65rem; line-height: 1.02; overflow-wrap: anywhere; }
.cm-carte .np-glob { margin: 0; }
.cm-carte .cm-fil-com { font-size: 1.3rem; }
.cm-aussi { display: inline-block; margin: 10px 0 0; padding: 2px 10px; border-radius: 999px; background: var(--chip); font-size: .8rem; font-weight: 600; }
.cm-carte-pied { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 2px; }
.cm-carte-pied .ghost { padding: 7px 12px; font-size: .86rem; color: inherit; text-decoration: none; }
.cm-envoyees { margin-top: 26px; max-width: 460px; }
.cm-commun { font-size: .8rem; font-weight: 600; color: var(--accent); }
.cm-dc-btns { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 2px; }
.cm-dc .cartbtn { padding: 7px 12px; font-size: .86rem; }
.cm-dc-att { font-family: var(--type); font-size: .76rem; color: var(--muted); }
/* La fiche d'une personne : en commun avec moi, et ses préférés à goûter */
.cm-commun-l { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 10px 22px; margin: 0 0 6px; padding: 0; list-style: none; }
.cm-commun-l li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cm-commun-l li > span { min-width: 0; line-height: 1.25; }
.cm-commun-l b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.cm-commun-l small { font-family: var(--type); font-size: .76rem; color: var(--muted); }
.cm-vig { flex: none; width: 58px; height: 58px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--chip); box-shadow: 0 2px 6px -2px rgba(40, 25, 10, .5); }
.cm-vig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cm-gout-aide { margin: -4px 0 12px; }
.cm-gouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 44%), 1fr)); gap: 16px; margin-bottom: 8px; }
.cm-gout { display: grid; align-content: start; gap: 5px; color: inherit; text-decoration: none; }
.cm-gout img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; box-shadow: 0 6px 14px -8px rgba(40, 25, 10, .6); }
.cm-gout b { font-size: .92rem; line-height: 1.2; }
.cm-gout:hover b { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
  .cm-por { width: 92px; }
  .cm-carte-corps { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; }
  .cm-carte-plat { font-size: 1.45rem; }
}

/* ==================== « Miam ! » : un geste pour le plat d'un autre (script 014) ==================== */
.cm-miam { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border: 1.5px solid var(--heart); border-radius: 999px; background: var(--surface); color: var(--heart);
  font-weight: 700; font-size: .86rem; line-height: 1.2; }
.cm-miam svg { width: 19px; height: 19px; }
.cm-miam b { min-width: 20px; padding: 0 5px; border-radius: 999px; background: var(--chip); color: var(--ink); font-size: .76rem; text-align: center; }
.cm-miam[aria-pressed="true"] { background: var(--heart); color: #fff; }
.cm-miam[aria-pressed="true"] b { background: rgba(255, 255, 255, .92); color: #2B2621; }
.cm-miam:disabled { opacity: .6; }
.cm-miam:not(:disabled):active { scale: .96; }
.np-btns .cm-miam { padding: 9px 14px 9px 11px; font-size: .95rem; }
/* sur la page d'un plat, dans le carnet : un petit tampon, puis les pseudos */
.jmiam { margin: 6px 0 0; font-family: var(--type); font-size: .78rem; color: #6B6153; overflow-wrap: anywhere; }
.jmiam b { display: inline-block; margin-right: 8px; padding: 1px 8px; border: 1.5px solid currentColor; border-radius: 4px; color: #B3261E; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; rotate: -2deg; }

/* ==================== Sur l'accueil : « Tes amis ont cuisiné » ==================== */
.ac-amis { position: relative; z-index: 1; margin-bottom: 26px; }
.ac-amis[hidden] { display: none; }
.aa-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 16px; }
.aa-tete h2 { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 2.1rem; line-height: 1.1; }
.aa-tete .linkish { margin: 0; font-size: .95rem; }
.aa-rang { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 24px; }
.aa-seul { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 22px; padding: 16px 20px; border: 1.5px dashed var(--line); border-radius: 14px; }
.aa-seul b { display: block; font-family: var(--hand); font-size: 1.7rem; line-height: 1.1; }
.aa-seul span { color: var(--muted); font-size: .94rem; }
.aa-seul > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
.aa-seul .cartbtn, .aa-seul .ghost { padding: 9px 14px; font-size: .92rem; }
@media (max-width: 700px) {
  .aa-rang { grid-template-columns: repeat(4, 158px); gap: 16px; margin: 0 -16px; padding: 6px 16px 16px; overflow-x: auto; scrollbar-width: none; }
  .aa-rang::-webkit-scrollbar { display: none; }
  .aa-tete h2 { font-size: 1.8rem; }
}

/* ==================== Les petits mots sous un plat (script 015) ==================== */
/* dans le fil : une bulle et leur nombre */
.cm-mots { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--surface); color: inherit; font-weight: 700; font-size: .86rem; line-height: 1.2; }
.cm-mots svg { width: 19px; height: 19px; }
/* les deux gestes sur une ligne, les deux liens dessous */
.cm-carte-gestes { display: flex; flex-wrap: wrap; gap: 8px; flex-basis: 100%; }
.cm-mots:active { scale: .96; }
/* sous le plat : des billets, l'un sous l'autre */
.pm { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line); }
.pm[hidden] { display: none; }
.pm + .cm-sig { margin-top: 18px; }
.pm-titre { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-family: var(--hand); font-weight: 700; font-size: 1.75rem; line-height: 1; }
.pm-titre svg { width: 22px; height: 22px; flex: none; }
.pm-titre b { min-width: 24px; padding: 2px 7px; border-radius: 999px; background: var(--chip); font-family: var(--type); font-size: .74rem; font-weight: 700; text-align: center; }
.pm-liste { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.pm-mot { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; }
.pm-mot > div { padding: 9px 12px 8px; border-radius: 3px 14px 14px 14px; background: var(--chip); }
.pm-mot.moi > div { background: rgba(44, 76, 140, .12); }
.pm-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0; font-size: .88rem; }
.pm-tete .linkish { margin: 0; color: inherit; font-size: inherit; font-weight: 700; text-decoration: none; }
.pm-tete .linkish:hover { text-decoration: underline; text-underline-offset: 3px; }
.pm-tete .cm-ami { margin-left: 0; }
.pm-tete small { font-family: var(--type); font-size: .7rem; color: var(--muted); }
.pm-txt { margin: 3px 0 0; font-family: var(--hand); font-size: 1.32rem; line-height: 1.15; overflow-wrap: anywhere; }
.pm-act { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 4px 0 0; }
.pm-act:empty { display: none; }
.pm-act .linkish { margin: 0; color: var(--muted); font-size: .76rem; font-weight: 500; }
.pm-act .linkish[data-sur] { color: var(--heart); font-weight: 700; }
.pm-vide { margin: 0 0 14px; color: var(--muted); }
.pm-form .cm-zone { min-height: 0; margin-top: 0; resize: vertical; }
.pm-bas { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.pm-bas small { font-family: var(--type); font-size: .74rem; color: var(--muted); }
.pm-bas .cartbtn { padding: 9px 16px; font-size: .92rem; }
.pm-regle { margin: 10px 0 0; }
/* les mots laissés sous un de mes plats : le plat en vignette, puis la zone */
.pm-moi { display: flex; align-items: center; gap: 14px; }
.pm-moi > :first-child:not(div) { flex: none; width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.pm-moi h2 { margin: 0; }
.pm-moi p { margin: 0 0 2px; font-family: var(--type); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pm-moi + .pm { margin-top: 16px; }
/* dans le carnet, sous le tampon « Miam ! » : le lien vers les petits mots (le papier reste clair, même en thème sombre) */
.jmotsl { margin: 6px 0 0; }
.jmotsl .linkish { margin: 0; color: #2C4C8C; font-size: .84rem; }
/* dans la cloche : le mot cité se lit aussi quand le thème sombre vient de l'appareil */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nv-mot { color: var(--accent); } }
/* dans la fenêtre « Signaler » : le mot signalé */
.cm-sg-mot { display: block; margin-top: 8px; font-family: var(--hand); font-size: 1.3rem; line-height: 1.15; overflow-wrap: anywhere; }

/* ==================== Le décor peint de la Communauté (lot communaute-decor, images/carnet/) ==================== */
/* le bandeau, en haut de la fenêtre : la grande tablée pour « Mes amis », les carnets pour « Découvrir » */
.cm-bandeau { height: 190px; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; background: #EAD9BA center / cover no-repeat;
  box-shadow: 0 10px 20px -14px rgba(40, 25, 10, .55); }
.cm-bandeau.amis { background-image: url(/images/carnet/tablee.webp); }
.cm-bandeau.decouvrir { background-image: url(/images/carnet/carnets.webp); }
:root[data-theme="dark"] .cm-bandeau { filter: brightness(.86); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cm-bandeau { filter: brightness(.86); } }
/* les objets détourés : l'enveloppe par avion (inviter, pas encore d'amis), le couvert (rien de cuisiné encore) */
.cm-ill { display: block; flex: none; background: center / contain no-repeat; }
.cm-ill.enveloppe { width: 124px; aspect-ratio: 440 / 424; background-image: url(/images/carnet/enveloppe.webp); }
.cm-ill.couvert { width: 132px; aspect-ratio: 440 / 332; background-image: url(/images/carnet/couvert.webp); }
.cm-ill.cm-ill-haut { width: 112px; margin: 0 auto 4px; }
.cm-seul { display: flex; align-items: center; gap: 20px; margin: 4px 0 18px; padding: 16px 20px; border: 1.5px dashed var(--line); border-radius: 14px; }
.cm-seul p { margin: 0; }
.cm-seul .cm-seul-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cm-seul-btns .cartbtn, .cm-seul-btns .ghost { padding: 9px 14px; font-size: .92rem; }
.aa-seul .cm-ill.enveloppe { width: 96px; }
@media (max-width: 700px) {
  .cm-bandeau { height: 118px; margin-bottom: 14px; }
  .cm-bandeau.amis { background-image: url(/images/carnet/tablee-petit.webp); }
  .cm-bandeau.decouvrir { background-image: url(/images/carnet/carnets-petit.webp); }
  .cm-seul { flex-direction: column; gap: 10px; text-align: center; }
  .cm-seul .cm-seul-btns { justify-content: center; }
  .cm-ill.enveloppe, .cm-ill.couvert { width: 116px; }
  .aa-seul { justify-content: center; text-align: center; }
  .aa-seul > div:last-child { justify-content: center; }
}
