/*! Corsaires ! — © 2026, Chrysopam — tous droits réservés */
.ch-parchemin { position: absolute; z-index: 7; --u: 6px; --encre: #3b2410; --rouge: #8f1c12; pointer-events: auto; }
.cab.demi .ch-parchemin { --u: 5px; }
.ch-feuille { position: relative; z-index: 1; box-sizing: border-box; width: 100%; overflow: hidden;
  border-style: solid; border-color: transparent;
  border-width: calc(5.36 * var(--u)) calc(3.773 * var(--u)) calc(5.885 * var(--u)) calc(3.654 * var(--u));
  border-image: url(interface/accueil_parchemin.png?v=fc4e85fb) 179 126 196.5 122 fill / calc(5.36 * var(--u)) calc(3.773 * var(--u)) calc(5.885 * var(--u)) calc(3.654 * var(--u)) stretch round;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .55)); }
.ch-parchemin:not(.ch-bas)::before, .ch-parchemin:not(.ch-bas)::after { content: ''; position: absolute; z-index: 0; top: -6px; height: calc(4 * var(--u) + 6px); width: 2px;
  background: #8a6236; box-shadow: 1px 0 0 #4a2c12; }
.ch-parchemin::before { left: 21.7%; } .ch-parchemin::after { left: 77.4%; }
.ch-contenu { padding: 2px 0 1px; display: flex; flex-direction: column; gap: 3px; }
.ch-titre { display: block; text-align: center; font: 400 15px/1.1 var(--titre, 'IM Fell English', Georgia, serif); color: var(--rouge); letter-spacing: .02em; }
.ch-l { margin: 0; font: italic 600 13px/1.25 Alegreya, 'Palatino Linotype', Georgia, serif; color: var(--encre); }
.ch-l b { font-style: normal; font-weight: 800; }
.cab.demi .ch-l { font-size: 12px; } .cab.demi .ch-titre { font-size: 14px; }
.ch-clic, .ch-lien { cursor: var(--c-main, pointer); }
.ch-clic:hover, .ch-clic:focus-visible { color: #6e1610; outline: none; }
.ch-pied { display: flex; justify-content: center; gap: 18px; margin-top: 2px; font-style: normal; }
.ch-lien { position: relative; font: 400 14px/1.1 var(--titre, 'IM Fell English', Georgia, serif); color: var(--rouge); outline: none; }
.ch-lien::after { content: ''; position: absolute; left: -6%; right: -8%; bottom: -5px; height: 6px; pointer-events: none;
  background: url(interface/accueil_trait_rouge.png?v=81a43ba3) center / 100% 100% no-repeat; opacity: 0; clip-path: inset(0 100% 0 0); transition: clip-path .26s ease-out, opacity .1s ease; }
.ch-lien:hover::after, .ch-lien:focus-visible::after { opacity: 1; clip-path: inset(0 0 0 0); }
.ch-morceaux { display: flex; justify-content: center; gap: 4px; }
.ch-morceau { display: block; width: 18px; height: 22px; background: #e8d3a2; box-shadow: 0 0 0 1px #6e4a22, 1px 2px 0 rgba(40, 20, 6, .45); rotate: -3deg; }
.ch-morceau:nth-child(2n) { rotate: 2.5deg; translate: 0 1px; } .ch-morceau:nth-child(3n) { rotate: -1deg; }
.ch-morceau.ch-vide { background: none; box-shadow: inset 0 0 0 1px rgba(110, 74, 34, .55); }
.ch-morceau.ch-pris { background: #b9a37a; box-shadow: 0 0 0 1px #4a2c12; opacity: .55; }
.ch-ruban { position: absolute; z-index: 4; left: 50%; top: 3px; width: calc(5.6 * var(--u)); height: auto; pointer-events: none; opacity: 0; transform: translateX(-50%); }
.ch-parchemin.ouvre.chute .ch-ruban { animation: chRuban .75s cubic-bezier(.5, 0, .9, .6) both; }
@keyframes chRuban { 0% { opacity: 1; transform: translateX(-50%) translateY(0) rotate(0); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateX(-38%) translateY(90px) rotate(26deg); } }
.ch-parchemin.ouvre .ch-contenu > * { opacity: 0; }
.ch-parchemin.ecrit .ch-contenu > * { animation: chEncre .42s steps(6, end) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes chEncre { from { opacity: 0; clip-path: inset(0 100% 0 0); } 60% { opacity: 1; } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.ch-parchemin.ferme-en-cours .ch-contenu { opacity: 0; transition: opacity .12s ease; }
@media (prefers-reduced-motion: reduce) { .ch-parchemin.ouvre.chute .ch-ruban, .ch-parchemin.ecrit .ch-contenu > * { animation: none; } .ch-lien::after { transition: none; } }
html.sans-ambiance .ch-parchemin.ouvre.chute .ch-ruban, html.sans-ambiance .ch-parchemin.ecrit .ch-contenu > * { animation: none; }
