/* ============================================================
   recueil.css — Mots d'encre 4.0 · Le Recueil (l'accueil-plongée)
   ============================================================ */
body.recueil { background: #050716; --rc-or: #ffd9a0; --rc-rose: #ff8db0; --rc-texte: #eef0ff; --rc-doux: #b9bfe6; --rc-verre: rgba(14, 20, 58, .55); }
body.recueil main, body.recueil .entete, body.recueil .pied, body.recueil .bandeau { position: relative; z-index: 2; }
body.recueil main { overflow-x: clip; }

/* ---------- l'océan derrière tout ---------- */
.rc-ocean { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(#1c4a80, #10164a 45%, #030a0c); overflow: hidden; }
#rc-eau { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#rc-eau.sans-gl { display: none; }
.rc-ocean::after { content: ""; position: absolute; inset: 0; background: #02090a; opacity: calc(var(--rc-p, 0) * .35); }
.rc-bete { position: absolute; color: #9fb8ff; opacity: 0; will-change: transform, opacity; transition: opacity .6s linear; }
.rc-bete svg { display: block; width: 100%; height: auto; }
.rc-bete.b-meduse { width: clamp(46px, 9vw, 80px); right: 8%; top: 30%; color: #b8e2ff; transform: translateY(calc(var(--rc-dx, 0) * -40vh)); }
.rc-bete.b-meduse .m { animation: rc-meduse 4.6s ease-in-out infinite; transform-origin: 50% 20%; }
.rc-bete.b-meduse2 { width: clamp(30px, 6vw, 54px); left: 6%; top: 55%; color: #ffb8d9; transform: translateY(calc(var(--rc-dx, 0) * -30vh)); }
.rc-bete.b-meduse2 .m { animation: rc-meduse 5.8s ease-in-out -1.2s infinite; transform-origin: 50% 20%; }
.rc-bete.b-baleine { width: clamp(260px, 70vw, 720px); left: 0; top: 34%; color: #1a2a66; filter: drop-shadow(0 0 30px rgba(120, 160, 255, .12)); transform: translateX(calc(110vw - var(--rc-dx, 0) * 170vw)); }
.rc-bete.b-lueur { width: 110px; right: 10%; top: 58%; color: #7ff3ff; transform: translateY(calc(var(--rc-dx, 0) * -12vh)); }
.rc-bete.b-lueur .l { filter: drop-shadow(0 0 8px #7ff3ff) drop-shadow(0 0 22px #3fd8ff); animation: rc-lueur 3.2s ease-in-out infinite; }
@keyframes rc-meduse { 0%, 100% { transform: translateY(0) scaleY(1); } 45% { transform: translateY(-14px) scaleY(.9); } 60% { transform: translateY(-16px) scaleY(1.04); } }
@keyframes rc-lueur { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- le profondimètre ---------- */
.rc-prof { position: fixed; z-index: 40; right: 10px; top: calc(env(safe-area-inset-top, 0px) + 70px); display: flex; align-items: center; gap: .45rem; padding: .35rem .7rem .35rem .45rem; border-radius: 999px; background: rgba(6, 10, 34, .62); border: 1px solid rgba(180, 200, 255, .18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #dfe6ff; font: 700 .78rem/1 var(--f-ui, system-ui); letter-spacing: .02em; font-variant-numeric: tabular-nums; pointer-events: none; transition: opacity .4s; }
.rc-prof-l { position: relative; width: 4px; height: 22px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.rc-prof-l i { position: absolute; inset: 0; transform-origin: top; transform: scaleY(.02); background: linear-gradient(#8fd3ff, #74e1ff 60%, #ff8db0); border-radius: 4px; transition: transform .25s linear; }
html.rc-haut .rc-prof { opacity: .0; }
@media (min-width: 960px) { .rc-prof { top: 86px; right: 22px; bottom: auto; font-size: .85rem; } }

/* ---------- l'en-tête, transparent à la surface ---------- */
body.recueil .entete { transition: background .4s, box-shadow .4s; }
html.rc-haut body.recueil .entete { background: transparent !important; box-shadow: none !important; border-color: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* ---------- LA SURFACE ---------- */
body.recueil { --rc-entete: 3.6rem; }
.rc-surface { --rc-ligne: max(46svh, 21rem); position: relative; display: grid; grid-template-rows: auto auto 1fr auto; justify-items: center; min-height: calc(100svh - 10px); padding: 0 16px 1.2rem; text-align: center; color: var(--rc-texte); isolation: isolate; }
.rc-ciel { position: absolute; z-index: -1; left: 0; right: 0; top: calc(-1 * var(--rc-entete, 64px)); height: calc(var(--rc-ligne, 43svh) + var(--rc-entete, 64px)); background:
  radial-gradient(1.2px 1.2px at 12% 18%, #fff 60%, transparent), radial-gradient(1px 1px at 28% 8%, #fff 60%, transparent), radial-gradient(1.4px 1.4px at 44% 22%, #fff 60%, transparent),
  radial-gradient(1px 1px at 63% 12%, #fff 60%, transparent), radial-gradient(1.3px 1.3px at 78% 26%, #fff 60%, transparent), radial-gradient(1px 1px at 90% 9%, #fff 60%, transparent),
  radial-gradient(1px 1px at 6% 34%, #fff 60%, transparent), radial-gradient(1.1px 1.1px at 54% 36%, #fff 60%, transparent), radial-gradient(1px 1px at 86% 40%, #fff 60%, transparent),
  linear-gradient(#040616, #0d1340 55%, #1f3478 92%, #2a4a92); }
.rc-ciel::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; background: #2a4a92; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 26' preserveAspectRatio='none'%3E%3Cpath d='M0 0h240v12c-20 0-20 10-40 10S180 12 160 12s-20 10-40 10S100 12 80 12 60 22 40 22 20 12 0 12z'/%3E%3C/svg%3E") 0 0 / 240px 100% repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 26' preserveAspectRatio='none'%3E%3Cpath d='M0 0h240v12c-20 0-20 10-40 10S180 12 160 12s-20 10-40 10S100 12 80 12 60 22 40 22 20 12 0 12z'/%3E%3C/svg%3E") 0 0 / 240px 100% repeat-x; transform: translateY(100%); animation: rc-houle 9s linear infinite; }
@keyframes rc-houle { to { -webkit-mask-position: 240px 0; mask-position: 240px 0; } }
.rc-lune { position: absolute; right: 12%; top: calc(var(--rc-entete, 64px) + 4%); width: clamp(34px, 8vw, 64px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 36%, #fffaf0, #f3e3c0 60%, #d9c597); box-shadow: 0 0 40px 10px rgba(255, 240, 210, .18), 0 0 120px 40px rgba(160, 190, 255, .10); }
.rc-constellation { position: absolute; z-index: 1; left: 6%; top: calc(4% + 4px); width: clamp(120px, 34vw, 230px); padding: 0; border: 0; background: none; cursor: pointer; opacity: .75; }
.rc-constellation svg { display: block; width: 100%; height: auto; }
.rc-constellation .tr { stroke: #cfd8ff; stroke-width: .7; opacity: .0; transition: opacity 1.2s; }
.rc-constellation:hover .tr, .rc-constellation.vue .tr, .rc-constellation:focus-visible .tr { opacity: .45; }
.rc-constellation .et { fill: #fff; animation: rc-scint 3.4s ease-in-out infinite; }
.rc-constellation .et:nth-child(3n) { animation-delay: -1.2s; } .rc-constellation .et:nth-child(3n+1) { animation-delay: -2.1s; }
@keyframes rc-scint { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.rc-tete { display: grid; justify-items: center; gap: .35rem; padding-top: clamp(1.4rem, 6svh, 3.6rem); }
.rc-logo { width: clamp(64px, 17vw, 104px); height: auto; filter: drop-shadow(0 10px 24px rgba(6, 30, 40, .55)) drop-shadow(0 0 30px rgba(132, 226, 255, .25)); animation: rc-flotte 6s ease-in-out infinite; }
@keyframes rc-flotte { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
.rc-titre { margin: .2rem 0 0; font: 400 clamp(2.9rem, 13.5vw, 6.2rem)/.95 'Gloock', Georgia, serif; letter-spacing: -.01em; color: #fff; text-shadow: 0 4px 30px rgba(8, 37, 40, .8); }
.rc-devise { margin: .3rem 0 0; font: italic 400 clamp(1.08rem, 4.4vw, 1.45rem)/1.3 'Newsreader', Georgia, serif; color: #e9ecff; }
.rc-sous { margin: 0; max-width: 24rem; text-wrap: balance; font: 600 .82rem/1.4 var(--f-ui, system-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--rc-rose); text-shadow: 0 1px 10px rgba(5, 8, 30, .8); }

.rc-flots { position: static; width: 100%; height: 0; }
.rc-loutre { position: absolute; left: 50%; top: calc(var(--rc-ligne) - clamp(46px, 13vw, 70px)); width: clamp(124px, 34vw, 180px); padding: 0; border: 0; background: none; cursor: pointer; transform: translateX(-50%); -webkit-tap-highlight-color: transparent; animation: rc-bercer 4.8s ease-in-out infinite; z-index: 1; }
.rc-loutre svg { display: block; width: 100%; height: auto; overflow: visible; }
.rc-loutre-fond .eau { display: none; }
.rc-loutre:focus-visible { outline: 2px solid #ffa9c6; outline-offset: 4px; border-radius: 20px; }
@keyframes rc-bercer { 0%, 100% { transform: translateX(-50%) translateY(0) rotate(-3deg); } 50% { transform: translateX(-50%) translateY(4px) rotate(3deg); } }
.rc-loutre.tourne .corps { animation: rc-tourne .9s cubic-bezier(.3, 1.4, .5, 1); transform-origin: 50% 60%; }
@keyframes rc-tourne { 30% { transform: rotate(-14deg) scale(1.06); } 60% { transform: rotate(10deg); } }
.rc-loutre.plonge .corps { animation: rc-plonge 2.4s ease-in forwards; transform-origin: 30% 50%; }
@keyframes rc-plonge { 20% { transform: translateY(-12px) rotate(-30deg); } 45% { transform: translateY(26px) rotate(-80deg); opacity: 1; } 60% { transform: translateY(60px) rotate(-90deg); opacity: 0; } 100% { transform: translateY(60px); opacity: 0; } }
.rc-loutre.revient .corps { animation: rc-revient .9s ease-out; }
@keyframes rc-revient { from { transform: translateY(26px); opacity: 0; } }

.rc-vers { position: relative; align-self: start; width: min(100%, 34rem); margin: 0 0 .4rem; padding: 1.25rem 1.2rem 1.1rem; border-radius: 22px; background: var(--rc-verre); border: 1px solid rgba(190, 210, 255, .16); box-shadow: 0 20px 60px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity .8s, transform .8s; }
.rc-vers:not(.pret) { display: none; }
.rc-vers.pret { animation: rc-apparait .9s ease both; }
.rc-vers-sur { margin: 0 0 .55rem; font: 800 .72rem/1 var(--f-ui, system-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--rc-or); }
.rc-vers-txt { margin: 0; font: italic 400 clamp(1.18rem, 4.9vw, 1.55rem)/1.42 'Newsreader', Georgia, serif; color: #fff; text-wrap: balance; }
.rc-vers-txt span { display: block; }
.rc-vers-de { margin: .7rem 0 0; font: 500 .9rem/1.3 var(--f-ui, system-ui); color: var(--rc-doux); }
.rc-vers-de cite { font-style: normal; color: #fff; }
.rc-vers-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-top: 1rem; }
.rc-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; padding: .6rem 1.1rem; border-radius: 999px; border: 1.5px solid rgba(220, 228, 255, .5); background: rgba(255, 255, 255, .04); color: #fff; font: 700 .95rem/1.1 var(--f-ui, system-ui); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .15s, background .2s; }
.rc-btn:hover { background: rgba(255, 255, 255, .1); }
.rc-btn:active { transform: scale(.97); }
.rc-btn.plein { border-color: transparent; background: linear-gradient(135deg, #ff8db0, #ff9f6b); color: #2a0f2a; box-shadow: 0 10px 26px -12px rgba(255, 120, 150, .9); }
.rc-btn:focus-visible { outline: 3px solid #ffd9a0; outline-offset: 3px; }
.rc-descendre { display: inline-flex; flex-direction: column; align-items: center; gap: .1rem; margin-top: .4rem; color: #cfd6ff; font: 700 .8rem/1 var(--f-ui, system-ui); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.rc-descendre i { font-style: normal; font-size: 1.3rem; animation: rc-desc 2.2s ease-in-out infinite; }
@keyframes rc-desc { 0%, 100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(6px); opacity: 1; } }

/* ---------- les cotes de profondeur, les sections ---------- */
body.recueil .rc-cote { margin: 0 0 .6rem; font: 800 .74rem/1 var(--f-ui, system-ui); letter-spacing: .14em; color: rgba(190, 205, 255, .6); text-align: center; }
body.recueil .rc-cote::before, body.recueil .rc-cote::after { content: ""; display: inline-block; width: 26px; height: 1px; margin: 0 .6rem; vertical-align: middle; background: currentColor; opacity: .5; }
/* 4.0.1 : une section n'est cachée (en attendant d'être vue) que si le script qui la révèle tourne vraiment */
html.rc-anim .rc-monte { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
html.rc-anim .rc-monte.rc-vu { opacity: 1; transform: none; }
body.recueil .section { scroll-margin-top: 72px; }
.rc-intro { max-width: 34rem; margin: 0 auto 1.2rem; text-align: center; font: italic 400 1.08rem/1.45 'Newsreader', Georgia, serif; color: var(--rc-doux); }
body.recueil .titre-section h2 { color: #fff; }

/* ---------- LES CHAPITRES ---------- */
.rc-ch-liste { display: grid; gap: 1rem; }
@media (min-width: 760px) { .rc-ch-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rc-ch { position: relative; padding: 1.3rem 1.2rem 1rem; border-radius: 22px; background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid rgba(200, 215, 255, .14); overflow: hidden; color: var(--rc-texte); }
.rc-ch::before { content: ""; position: absolute; inset: -40% -30% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--c), transparent); opacity: .16; pointer-events: none; }
.rc-ch-n { margin: 0; font: 400 1rem/1 'Gloock', Georgia, serif; color: var(--c); letter-spacing: .1em; }
.rc-ch-t { margin: .25rem 0 0; font: 400 clamp(1.7rem, 7vw, 2.2rem)/1.05 'Gloock', Georgia, serif; color: #fff; }
.rc-ch-s { margin: .3rem 0 .9rem; font: 500 .92rem/1.35 var(--f-ui, system-ui); color: var(--rc-doux); }
.rc-ch-epi { margin: 0 0 1rem; padding: .2rem 0 .2rem .9rem; border-left: 2px solid var(--c); font: italic 400 1.06rem/1.45 'Newsreader', Georgia, serif; color: #f2fbff; }
.rc-ch-epi span { display: block; }
.rc-ch-epi footer { margin-top: .35rem; font: 600 .8rem/1 var(--f-ui, system-ui); font-style: normal; color: var(--rc-doux); }
.rc-ch-poemes { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.rc-ch-poemes a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .6rem; min-height: 46px; padding: .5rem .85rem; border-radius: 14px; background: rgba(5, 8, 30, .45); color: #fff; text-decoration: none; transition: background .2s, transform .15s; }
.rc-ch-poemes a:hover { background: rgba(5, 8, 30, .7); }
.rc-ch-poemes a:active { transform: scale(.985); }
.rc-ch-poemes b { font: 400 1.08rem/1.2 'Gloock', Georgia, serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-ch-poemes span { font: 600 .78rem/1 var(--f-ui, system-ui); color: var(--rc-doux); }
.rc-ch-poemes i { font-style: normal; color: var(--c); }

/* ---------- UN VERS À LA MER ---------- */
.rc-bouteille .bt-boite { display: grid; gap: 1rem; padding: 1.2rem; border-radius: 24px; background: rgba(8, 12, 40, .6); border: 1px solid rgba(200, 215, 255, .16); color: var(--rc-texte); }
@media (min-width: 900px) { .rc-bouteille .bt-boite { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; } .bt-droite { position: sticky; top: 90px; } }
.bt-n { margin: 0 0 .5rem; font: 800 .74rem/1 var(--f-ui, system-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--rc-or); }
.bt-poemes { display: flex; flex-wrap: wrap; gap: .4rem; }
.bt-p { min-height: 42px; padding: .45rem .95rem; border-radius: 999px; border: 1.5px solid rgba(220, 228, 255, .3); background: transparent; color: #fff; font: 400 1rem/1.1 'Gloock', Georgia, serif; cursor: pointer; }
.bt-p[aria-pressed="true"] { background: #fff; color: #15323a; border-color: #fff; }
.bt-vers { max-height: min(46svh, 22rem); overflow-y: auto; display: grid; gap: 2px; padding: .3rem; border-radius: 16px; background: rgba(0, 0, 0, .22); overscroll-behavior: contain; scrollbar-width: thin; }
.bt-l { display: block; width: 100%; padding: .5rem .7rem; border: 0; border-radius: 10px; background: transparent; color: #dfe3ff; text-align: left; font: italic 400 1rem/1.35 'Newsreader', Georgia, serif; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bt-l:hover { background: rgba(255, 255, 255, .06); }
.bt-l[aria-pressed="true"] { background: linear-gradient(90deg, rgba(255, 141, 176, .28), rgba(255, 159, 107, .14)); color: #fff; box-shadow: inset 3px 0 0 #ff8db0; }
.bt-compte { margin: .45rem 0 0; font: 600 .8rem/1.2 var(--f-ui, system-ui); color: var(--rc-doux); }
.bt-mots { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.bt-mots label { display: grid; gap: .25rem; font: 700 .78rem/1 var(--f-ui, system-ui); color: var(--rc-doux); }
.bt-mots input { min-height: 44px; padding: .5rem .75rem; border-radius: 12px; border: 1.5px solid rgba(220, 228, 255, .25); background: rgba(0, 0, 0, .25); color: #fff; font: 500 1rem/1.2 var(--f-ui, system-ui); }
.bt-mots input:focus { outline: none; border-color: #ff8db0; }
.bt-apercu { position: relative; min-height: 9rem; padding: 1.4rem 1.3rem 1.1rem; border-radius: 6px 18px 6px 18px; color: #3b2a1a; background: #f4e7c9 url(papier.webp) center / cover; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9), inset 0 0 40px rgba(120, 80, 30, .25); transform: rotate(-.6deg); }
.bt-apercu:empty::before { content: "…"; color: #8a7350; }
.bt-a-pour { margin: 0 0 .5rem; font: italic 600 .95rem/1 'Newsreader', Georgia, serif; color: #8a3a52; }
.bt-a-vers { margin: 0; font: italic 400 1.18rem/1.45 'Newsreader', Georgia, serif; color: #24180e; }
.bt-a-vers span { display: block; }
.bt-a-sig { margin: .7rem 0 0; font: 600 .82rem/1.2 var(--f-ui, system-ui); color: #6b5436; }
.bt-a-de { margin: .4rem 0 0; font: italic 500 .9rem/1.2 'Newsreader', Georgia, serif; color: #8a3a52; text-align: right; }
.bt-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.bt-ok { min-height: 1.3em; margin: .5rem 0 0; font: 700 .9rem/1.3 var(--f-ui, system-ui); color: #9ff3d2; }
.bt-pourquoi { margin: .6rem 0 0; font: 500 .82rem/1.4 var(--f-ui, system-ui); color: var(--rc-doux); }

/* ---------- TOUT AU FOND ---------- */
.rc-fond { text-align: center; color: var(--rc-texte); padding-bottom: 2rem; }
.rc-fond-t { margin: 0 0 .5rem; font: 400 clamp(1.9rem, 8vw, 2.8rem)/1.05 'Gloock', Georgia, serif; color: #fff; }
.rc-portes { display: grid; gap: .7rem; max-width: 46rem; margin: 0 auto; }
@media (min-width: 760px) { .rc-portes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rc-porte { display: grid; justify-items: center; gap: .3rem; padding: 1.1rem .9rem; border-radius: 20px; background: rgba(10, 37, 40, .66); border: 1px solid rgba(160, 180, 255, .2); color: #fff; text-decoration: none; transition: transform .15s, border-color .2s; }
.rc-porte:hover { border-color: rgba(255, 141, 176, .6); }
.rc-porte:active { transform: scale(.98); }
.rc-porte .rc-porte-ic { font-size: 1.7rem; }
.rc-porte b { font: 400 1.25rem/1.1 'Gloock', Georgia, serif; }
.rc-porte small { font: 500 .85rem/1.3 var(--f-ui, system-ui); color: var(--rc-doux); }
.rc-porte.p-jeu { background: linear-gradient(150deg, rgba(116, 225, 255, .4), rgba(10, 37, 40, .7)); }
.rc-abysse { position: relative; display: grid; justify-items: center; gap: .8rem; margin-top: 3rem; min-height: 9rem; }
.rc-perle { width: 58px; aspect-ratio: 1; border: 0; padding: 0; border-radius: 50%; cursor: pointer; background: radial-gradient(circle at 35% 30%, #fff, #e9eeff 30%, #bcd8f0 62%, #7ca9c6); box-shadow: 0 0 22px 6px rgba(180, 222, 255, .35), 0 0 70px 18px rgba(127, 243, 255, .12); animation: rc-respire 4s ease-in-out infinite; }
.rc-perle.ouverte { animation: none; box-shadow: 0 0 30px 10px rgba(255, 220, 240, .5); }
@keyframes rc-respire { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.08); opacity: 1; } }
.rc-perle:focus-visible { outline: 2px solid #ffd9a0; outline-offset: 6px; }
.rc-perle-secret { max-width: 26rem; animation: rc-apparait 1.6s ease both; }
.rc-ps-vers { margin: 0; font: italic 400 1.15rem/1.5 'Newsreader', Georgia, serif; color: #eff5ff; text-shadow: 0 0 18px rgba(180, 222, 255, .5); }
.rc-ps-vers span { display: block; }
.rc-ps-src { margin: .5rem 0 0; font: 600 .8rem/1 var(--f-ui, system-ui); color: var(--rc-doux); }
@keyframes rc-apparait { from { opacity: 0; filter: blur(6px); transform: translateY(8px); } }
.rc-loutre-fond { display: grid; justify-items: center; gap: .2rem; animation: rc-apparait 1.2s ease both; }
.rc-loutre-fond svg { width: 92px; height: auto; transform: rotate(180deg) scaleX(-1); }
.rc-loutre-fond p { margin: 0; font: italic 400 1rem/1.3 'Newsreader', Georgia, serif; color: var(--rc-doux); }
.rc-secrets { margin: .3rem 0 0; font: 600 .82rem/1 var(--f-ui, system-ui); color: rgba(200, 210, 255, .7); }

/* ---------- les bulles des secrets, la loutre qui nage ---------- */
.rc-bulle { position: absolute; z-index: 300; max-width: min(19rem, calc(100vw - 32px)); padding: .7rem .9rem; border-radius: 16px; background: #fff; color: #1a323b; font: 600 .92rem/1.35 var(--f-ui, system-ui); box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .6); transform: translate(-50%, calc(-100% + 6px)) scale(.96); opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; }
.rc-bulle.on { opacity: 1; transform: translate(-50%, -100%) scale(1); }
.rc-nageuse { position: fixed; z-index: 280; top: 42%; left: -160px; width: 140px; pointer-events: none; animation: rc-nage 6.5s linear forwards; }
.rc-nageuse svg { width: 100%; height: auto; transform: rotate(180deg) scaleY(-1); }
.rc-nageuse .eau { display: none; }
@keyframes rc-nage { 0% { transform: translate(0, 0); } 25% { transform: translate(30vw, -24px); } 50% { transform: translate(60vw, 10px); } 75% { transform: translate(90vw, -16px); } 100% { transform: translate(calc(100vw + 200px), 0); } }

/* ---------- les pages déjà là (Lire), dans la mer ---------- */
body.recueil .pied { background: transparent; }
body.recueil .lire-tete { display: none; }

/* ---------- mouvements réduits ---------- */
@media (prefers-reduced-motion: reduce) {
  .rc-logo, .rc-loutre, .rc-ciel::after, .rc-descendre i, .rc-bete .m, .rc-bete .l, .rc-perle, .rc-constellation .et { animation: none !important; }
  html.rc-anim .rc-monte { opacity: 1; transform: none; transition: none; }
  .rc-nageuse { display: none; }
}
html.mvt-reduit .rc-logo, html.mvt-reduit .rc-loutre, html.mvt-reduit .rc-ciel::after, html.mvt-reduit .rc-bete .m { animation: none !important; }

/* ---------- PAR OÙ COMMENCER ---------- */
.rc-commencer { display: grid; justify-items: center; gap: 1rem; color: var(--rc-texte); }
.rc-c-t { margin: 0; font: 400 clamp(1.7rem, 7vw, 2.3rem)/1.1 'Gloock', Georgia, serif; color: #fff; text-align: center; }
.rc-capsule, .rc-reprendre { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7rem; width: min(100%, 34rem); min-height: 56px; padding: .65rem 1rem; border-radius: 18px; text-decoration: none; color: #fff; }
.rc-capsule { background: linear-gradient(135deg, rgba(255, 141, 176, .35), rgba(255, 159, 107, .25)); border: 1px solid rgba(255, 190, 210, .5); animation: rc-respire 3.2s ease-in-out infinite; }
.rc-capsule > span:first-child { font-size: 1.5rem; }
.rc-capsule b { font: 700 .85rem/1 var(--f-ui, system-ui); padding: .45rem .75rem; border-radius: 999px; background: #fff; color: #2a0f2a; }
.rc-reprendre { grid-template-columns: auto minmax(0, 1fr) auto; background: rgba(10, 14, 44, .66); border: 1px solid rgba(180, 200, 255, .22); }
.rc-r-sur { font: 800 .7rem/1 var(--f-ui, system-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--rc-or); }
#rc-reprendre-txt { font: italic 400 1rem/1.3 'Newsreader', Georgia, serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-reprendre i { font-style: normal; color: var(--rc-rose); }
.rc-capsule[hidden], .rc-reprendre[hidden] { display: none; }
.tm { width: min(100%, 34rem); display: grid; gap: .55rem; }
.tm-l { font: 600 .95rem/1.3 var(--f-ui, system-ui); color: var(--rc-doux); text-align: center; }
.tm-champ { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; padding: .35rem; border-radius: 999px; background: rgba(5, 8, 30, .66); border: 1.5px solid rgba(200, 215, 255, .28); }
.tm-champ:focus-within { border-color: #ff8db0; }
.tm-champ input { min-width: 0; min-height: 44px; padding: 0 .8rem; border: 0; background: transparent; color: #fff; font: italic 400 1.1rem/1.2 'Newsreader', Georgia, serif; }
.tm-champ input:focus { outline: none; }
.tm-champ input::placeholder { color: rgba(220, 225, 255, .5); }
.tm-champ .rc-btn { min-height: 44px; }
.tm-idees { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; }
.tm-idee { min-height: 36px; padding: .3rem .8rem; border-radius: 999px; border: 1px solid rgba(220, 228, 255, .25); background: rgba(255, 255, 255, .04); color: #dfe3ff; font: italic 400 .95rem/1 'Newsreader', Georgia, serif; cursor: pointer; }
.tm-idee:hover { background: rgba(255, 255, 255, .1); }
.rc-quatre { width: min(100%, 44rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (min-width: 760px) { .rc-quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rc-q { display: grid; align-content: start; gap: .25rem; min-height: 112px; padding: .9rem .85rem; border-radius: 18px; text-decoration: none; color: #fff; background: rgba(10, 14, 44, .6); border: 1px solid rgba(180, 200, 255, .18); transition: transform .15s, border-color .2s; }
.rc-q:hover { border-color: rgba(255, 141, 176, .55); }
.rc-q:active { transform: scale(.98); }
.rc-q > span { font-size: 1.45rem; }
.rc-q b { font: 400 1.12rem/1.1 'Gloock', Georgia, serif; }
.rc-q small { font: 500 .8rem/1.3 var(--f-ui, system-ui); color: var(--rc-doux); }

/* ---------- MES MOTS ---------- */
.mm-grille { display: grid; gap: 1rem; }
@media (min-width: 900px) { .mm-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }
.mm-carte { padding: 1.1rem 1.1rem 1rem; border-radius: 22px; background: rgba(8, 12, 40, .62); border: 1px solid rgba(200, 215, 255, .16); color: var(--rc-texte); }
.mm-carte h3 { display: flex; align-items: center; gap: .45rem; margin: 0 0 .5rem; font: 400 1.3rem/1.15 'Gloock', Georgia, serif; color: #fff; }
.mm-carte > p { margin: 0 0 .7rem; font: 500 .92rem/1.45 var(--f-ui, system-ui); color: var(--rc-doux); }
.mm-n { margin-left: auto; font: 700 .8rem/1 var(--f-ui, system-ui); padding: .25rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.mm-n:empty { display: none; }
.mm-vers { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; max-height: 24rem; overflow-y: auto; }
.mm-vers li { padding: .7rem .8rem; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.mm-vers blockquote { margin: 0; font: italic 400 1.02rem/1.45 'Newsreader', Georgia, serif; color: #fff; }
.mm-l { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .4rem; }
.mm-l a { color: var(--rc-rose); font: 600 .85rem/1.2 var(--f-ui, system-ui); }
.mm-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .07); color: var(--rc-doux); cursor: pointer; flex: none; }
.mm-champ { display: grid; gap: .3rem; font: 700 .8rem/1 var(--f-ui, system-ui); color: var(--rc-doux); }
.mm-champ textarea, .mm-champ input { width: 100%; padding: .7rem .8rem; border-radius: 14px; border: 1.5px solid rgba(220, 228, 255, .25); background: rgba(0, 0, 0, .28); color: #fff; font: italic 400 1.05rem/1.45 'Newsreader', Georgia, serif; resize: vertical; color-scheme: dark; }
.mm-champ input { min-height: 46px; font: 600 1rem/1 var(--f-ui, system-ui); }
.mm-champ textarea:focus, .mm-champ input:focus { outline: none; border-color: #ff8db0; }
.mm-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .5rem; margin-top: .6rem; }
.mm-ok { min-height: 1.2em; margin: .5rem 0 0; font: 700 .88rem/1.35 var(--f-ui, system-ui); color: #9ff3d2; }
.mm-capsules { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .35rem; }
.mm-capsules li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: .5rem; padding: .45rem .6rem; border-radius: 12px; background: rgba(255, 255, 255, .05); font: 600 .88rem/1.2 var(--f-ui, system-ui); }
.mm-capsules li.arrivee { background: rgba(255, 141, 176, .16); }
.mm-c-ouvrir { min-height: 36px; padding: .3rem .8rem; border-radius: 999px; border: 0; background: #fff; color: #2a0f2a; font: 700 .82rem/1 var(--f-ui, system-ui); cursor: pointer; }
.mm-note { margin: .6rem 0 0 !important; font-size: .78rem !important; opacity: .8; }
.mm-lettre .rc-btn { margin-top: .6rem; }
.mm-dire { display: inline-block; margin-top: .8rem; color: var(--rc-rose); font: 600 .88rem/1.35 var(--f-ui, system-ui); }
.ml-scene { position: relative; height: 0; }
.ml-env { position: absolute; left: 50%; top: -120px; width: 120px; height: 80px; margin-left: -60px; pointer-events: none; animation: ml-coule 3.6s cubic-bezier(.5, 0, .7, 1) forwards; }
.ml-env svg { width: 100%; height: 100%; overflow: visible; }
.ml-env .rabat { transform-origin: 50% 0; transform-box: fill-box; animation: ml-ferme .7s ease forwards; transform: scaleY(-1); }
@keyframes ml-ferme { to { transform: scaleY(1); } }
@keyframes ml-coule { 0%, 25% { transform: translateY(0) rotate(0); opacity: 1; } 60% { transform: translateY(80px) rotate(-8deg); opacity: .8; } 100% { transform: translateY(260px) rotate(6deg) scale(.6); opacity: 0; filter: blur(3px); } }
.ml-bulle { position: absolute; left: 50%; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid rgba(200, 230, 255, .7); animation: ml-bulle 2.4s ease-out forwards; }
@keyframes ml-bulle { from { transform: translate(0, 0); opacity: 1; } to { transform: translate(var(--bx, 0), -120px); opacity: 0; } }

/* ---------- une bouteille qui revient (capsule) ---------- */
.rc-arrivee { position: fixed; inset: 0; z-index: 320; display: grid; place-items: center; padding: 16px; background: rgba(2, 13, 14, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rc-arrivee[hidden] { display: none; }
.ar-carte { width: min(100%, 28rem); display: grid; justify-items: center; gap: .7rem; text-align: center; color: #fff; animation: rc-apparait .8s ease both; }
.ar-sur { margin: 0; font: 400 1.5rem/1.15 'Gloock', Georgia, serif; }
.ar-quand { margin: 0; font: 600 .85rem/1 var(--f-ui, system-ui); color: var(--rc-doux); }
.ar-papier { width: 100%; padding: 1.4rem 1.3rem; border-radius: 4px 16px 4px 16px; color: #2a1d10; text-align: left; background: #f4e7c9 url(papier.webp) center / cover; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .95); transform-origin: 50% 0; animation: rc-deroule 1s cubic-bezier(.2, .8, .2, 1) both; }
.ar-papier p { margin: 0; font: italic 400 1.15rem/1.5 'Newsreader', Georgia, serif; white-space: normal; }
@keyframes rc-deroule { from { transform: scaleY(.05); } }
@media (prefers-reduced-motion: reduce) { .ml-env, .ml-bulle, .rc-capsule, .ar-papier, .ar-carte { animation: none !important; } .ml-env { display: none; } }
.mm-b { display: inline-flex; gap: .35rem; align-items: center; }
.mm-noter { min-height: 36px; padding: .3rem .7rem; border-radius: 999px; border: 1px solid rgba(220, 228, 255, .25); background: transparent; color: var(--rc-doux); font: 600 .8rem/1 var(--f-ui, system-ui); cursor: pointer; }
.mm-note-txt { margin: .45rem 0 0; padding: .4rem .6rem; border-left: 2px solid var(--rc-rose); font: 500 .88rem/1.4 var(--f-ui, system-ui); color: #e6f8ff; }
.mm-note-champ { display: block; margin-top: .45rem; }
.mm-note-champ textarea { width: 100%; padding: .5rem .6rem; border-radius: 10px; border: 1.5px solid rgba(220, 228, 255, .25); background: rgba(0, 0, 0, .3); color: #fff; font: 500 .92rem/1.4 var(--f-ui, system-ui); }
.mm-pdf { margin-top: .7rem; }

.rc-bouteille .bt-boite > * { min-width: 0; }
/* la surface : le titre au-dessus de l'eau, le vers du jour juste sous la ligne d'eau */
.rc-tete { min-height: calc(var(--rc-ligne) - 1rem); align-content: center; padding-bottom: 2.2rem; }
.rc-vers { margin-top: clamp(2.6rem, 7svh, 3.6rem); }
@media (max-height: 700px) { .rc-surface { --rc-ligne: max(54svh, 21rem); } .rc-logo { width: 54px; } .rc-tete { gap: .2rem; } }

/* ---------- 4.0 : les décors de saison (Halloween…) restent dans le jeu, pas dans le recueil ---------- */
body.recueil .deco-fete, body.recueil .deco-hero, body.recueil .araignee, body.recueil .chauve-vol { display: none !important; }
/* Nacre passe dans l'ombre, de gauche à droite */
.rc-bete.b-baleine { width: clamp(320px, 96vw, 980px); left: 0; top: 30%; transform: translateX(calc(-100vw + var(--rc-dx, 0) * 200vw)); filter: drop-shadow(0 0 40px rgba(140, 226, 255, .22)) brightness(.95); }
.rc-bete.b-baleine img { display: block; width: 100%; height: auto; }
/* un élément caché reste caché, même s'il a sa propre mise en page */
body.recueil :is(#surface, #commencer, #chapitres, #bouteille-envoi, #mes-mots, #fond) [hidden], body.recueil .rc-constellation[hidden], body.recueil .rc-arrivee[hidden] { display: none !important; }
.bt-mots label { min-width: 0; }
.bt-mots input { width: 100%; min-width: 0; box-sizing: border-box; }

/* 4.0.2 : les pensées de l'auteur */
.rc-ch-pensee { margin: -.3rem 0 1rem; padding: .7rem .85rem; border-radius: 14px; background: rgba(255, 217, 160, .07); border: 1px dashed rgba(255, 217, 160, .32); font: italic 400 1rem/1.45 'Newsreader', Georgia, serif; color: #fff4df; }
.rc-ch-pensee span { display: block; margin-top: .35rem; font: 600 .76rem/1.2 var(--f-ui, system-ui); font-style: normal; color: var(--rc-or); }
.bt-l.bt-pensee { border: 1px dashed rgba(255, 217, 160, .4); margin-bottom: .3rem; color: #fff4df; }
.bt-l.bt-pensee small { display: block; margin-top: .2rem; font: 700 .7rem/1 var(--f-ui, system-ui); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--rc-or); }
.bt-l.bt-pensee[aria-pressed="true"] { background: linear-gradient(90deg, rgba(255, 217, 160, .22), rgba(255, 159, 107, .12)); box-shadow: inset 3px 0 0 var(--rc-or); }

/* 4.0.2 : l'entrée (une fois par visite) — la goutte tombe, le titre se pose, la loutre arrive à la nage */
@keyframes rc-goutte { 0% { transform: translateY(-80px) scale(.55); opacity: 0; } 55% { transform: translateY(8px) scale(1.08, .9); opacity: 1; } 75% { transform: translateY(-3px) scale(.97, 1.04); } 100% { transform: none; opacity: 1; } }
@keyframes rc-loutre-arrive { from { transform: translateX(calc(-50% + 60vw)) rotate(-3deg); opacity: 0; } to { transform: translateX(-50%) rotate(-3deg); opacity: 1; } }
@keyframes rc-fondu { from { opacity: 0; } }
html.rc-entree .rc-logo { animation: rc-goutte 1.1s cubic-bezier(.3, 1.2, .5, 1) both, rc-flotte 6s ease-in-out 1.1s infinite; }
html.rc-entree .rc-titre { animation: rc-apparait 1s ease .35s both; }
html.rc-entree .rc-devise { animation: rc-apparait 1s ease .6s both; }
html.rc-entree .rc-sous { animation: rc-apparait 1s ease .8s both; }
html.rc-entree .rc-loutre { animation: rc-loutre-arrive 1.6s cubic-bezier(.2, .7, .3, 1) .7s both, rc-bercer 4.8s ease-in-out 2.3s infinite; }
html.rc-entree .rc-ciel, html.rc-entree .rc-ocean { animation: rc-fondu 1s ease both; }
@media (prefers-reduced-motion: reduce) { html.rc-entree .rc-logo, html.rc-entree .rc-titre, html.rc-entree .rc-devise, html.rc-entree .rc-sous, html.rc-entree .rc-loutre, html.rc-entree .rc-ciel, html.rc-entree .rc-ocean { animation: none !important; } }

/* 4.1 : le petit requin (rare, sans un mot) */
.rc-requin { position: absolute; z-index: 1; left: 50%; top: calc(var(--rc-ligne) + 2px); width: clamp(58px, 15vw, 86px); opacity: 0; pointer-events: none; transform: translateX(60vw); }
.rc-requin svg { display: block; width: 100%; height: auto; overflow: visible; }
.rc-requin.vient { animation: rc-requin 12s cubic-bezier(.45, .05, .4, 1) forwards; }
.rc-requin.vient .rq { animation: rc-nageoire 1.1s ease-in-out infinite; transform-origin: 30% 50%; }
@keyframes rc-requin {
  0% { transform: translateX(60vw); opacity: 0; } 8% { opacity: .95; }
  38% { transform: translateX(34px) translateY(2px); } 50% { transform: translateX(28px) translateY(-1px); } 62% { transform: translateX(32px) translateY(2px); }
  66% { transform: translateX(32px) scaleX(-1); opacity: .95; } 92% { opacity: .9; }
  100% { transform: translateX(62vw) scaleX(-1); opacity: 0; } }
@keyframes rc-nageoire { 50% { transform: rotate(-3deg) translateY(1px); } }
@media (prefers-reduced-motion: reduce) { .rc-requin { display: none; } }

/* 4.1 : la porte du livre, au bout des chapitres */
.rc-livre-porte { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 20px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, rgba(231, 201, 143, .16), rgba(255, 141, 176, .08)); border: 1px solid rgba(231, 201, 143, .4); transition: transform .15s, border-color .2s; }
.rc-livre-porte:hover { border-color: rgba(231, 201, 143, .8); }
.rc-livre-porte:active { transform: scale(.985); }
.rc-livre-mini { width: 54px; aspect-ratio: 2 / 3; border-radius: 3px 7px 7px 3px; background: radial-gradient(120% 80% at 30% 20%, #23306e, #121a48 55%, #0a0f2e); box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .8), inset 3px 0 0 rgba(255, 255, 255, .06); display: grid; place-items: center; border: 1px solid rgba(231, 201, 143, .5); }
.rc-livre-mini svg { width: 24px; height: 24px; }
.rc-livre-porte b { display: block; font: 400 1.2rem/1.15 'Gloock', Georgia, serif; color: #f3dcae; }
.rc-livre-porte small { display: block; margin-top: .25rem; font: 500 .85rem/1.35 var(--f-ui, system-ui); color: var(--rc-doux); }
.rc-livre-porte i { font-style: normal; color: #f3dcae; font-size: 1.2rem; }

/* 4.3 : En scène — les trois poèmes mis en scène, en triptyque */
.rc-scenes .rc-sc-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-top: 1rem; }
.rc-sc { display: grid; gap: .55rem; text-decoration: none; color: #fff; }
.rc-sc img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; border: 1px solid rgba(231, 201, 143, .3); box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .8); background: #0b0d18; transition: transform .5s cubic-bezier(.2, .7, .2, 1), border-color .3s; }
.rc-sc:hover img, .rc-sc:focus-visible img { transform: translateY(-3px); border-color: rgba(231, 201, 143, .75); }
.rc-sc:active img { transform: scale(.98); }
.rc-sc b { display: block; font: 400 1.02rem/1.15 var(--f-titre, Gloock, serif); }
.rc-sc small { display: block; margin-top: .2rem; font-size: .76rem; line-height: 1.3; color: rgba(236, 230, 218, .7); }
.rc-sc:focus-visible { outline: 3px solid var(--mde-corail, #ff8db0); outline-offset: 4px; border-radius: 14px; }
@media (min-width: 900px) { .rc-scenes .rc-sc-liste { gap: 1.2rem; } .rc-sc b { font-size: 1.2rem; } .rc-sc small { font-size: .85rem; } }
@media (prefers-reduced-motion: reduce) { .rc-sc img { transition: none; } }
