/*! Corsaires ! — © 2026, Chrysopam — tous droits réservés */
html #modal:not(.accueil) > #modal-box:has(> .registre) { width: min(100vw, 177.8vh) !important; max-width: none; height: auto; max-height: none !important; aspect-ratio: 16 / 9;
  padding: 0 !important; overflow: hidden; border: 0 !important; border-image: none !important; border-radius: 0 !important; background: #1a120c !important; box-shadow: 0 10px 40px rgba(0, 0, 0, .7) !important; }
html #modal:not(.accueil) > #modal-box > .registre { position: absolute; inset: 0; padding: 0 !important; margin: 0; border: 0 !important; border-image: none !important; background: none !important;
  --u: min(1vw, 1.778vh); color: #2b1a0e; font-family: Alegreya, Georgia, serif; }
#modal-box:has(> .registre) > .fermer { display: none !important; }
.registre .rg-fond { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.registre .rg-gauche { position: absolute; left: 18.4%; width: 27.6%; top: 9%; height: 76%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(1 * var(--u)); text-align: center; }
.registre .rg-vignette { width: 100%; border: 3px solid #8a6a3a; outline: 1px solid #d9c08a; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); }
html .registre .rg-vignette > .illu { display: block; width: 100%; height: calc(15 * var(--u)) !important; max-height: none !important; object-fit: cover; margin: 0; border: 0 !important; border-image: none !important; }
.registre .rg-sous { font-family: var(--titre); color: #5a2d12; font-size: calc(1.8 * var(--u)); margin: 0; }
.registre .rg-fenetre { position: absolute; left: 54.02%; width: 27.6%; top: 9%; height: 76%; overflow: hidden; outline: none; cursor: pointer;
  -webkit-mask-image: linear-gradient(transparent, #000 9%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 9%, #000 88%, transparent); }
.registre.calme .rg-fenetre { overflow-y: auto; cursor: default; }
.registre .rg-rouleau { padding: calc(14 * var(--u)) calc(.6 * var(--u)) calc(30 * var(--u)); will-change: transform; text-align: center; font-size: calc(1.25 * var(--u)); line-height: 1.5; }
.registre.calme .rg-rouleau { padding-top: calc(3 * var(--u)); will-change: auto; }
.registre .rg-section { margin: 0 auto; max-width: calc(46 * var(--u)); }
.registre .rg-gravure { display: block; margin: 0 auto calc(.6 * var(--u)); height: calc(7 * var(--u)); width: auto; image-rendering: pixelated;
  filter: grayscale(1) sepia(.45) brightness(.7) contrast(1.4); mix-blend-mode: multiply; opacity: .9; }
.registre .rg-titre { font-family: var(--titre); color: #7d1a10; font-size: calc(3 * var(--u)); font-weight: 400; margin: 0 0 calc(.6 * var(--u)); }
.registre h3 { font-family: var(--titre); color: #5a2d12; font-weight: 400; font-size: calc(1.9 * var(--u)); margin: 0 0 calc(.4 * var(--u)); }
.registre p { margin: 0 0 calc(.6 * var(--u)); }
.registre ul { list-style: none; padding: 0; margin: 0 0 calc(.6 * var(--u)); }
.registre li { margin: 0 0 calc(.25 * var(--u)); font-size: .92em; }
.registre a { color: #6e2a0c; }
.registre .cr-auteur { color: #4a3018; font-style: italic; }
.registre .cr-licence { font-size: .85em; }
.registre .rg-fleuron { height: calc(2.6 * var(--u)); margin: calc(1.2 * var(--u)) auto; background: url(interface/parch_fleuron_petit.png?v=e280815e) center / contain no-repeat; opacity: .75; }
.registre .rg-fin { height: calc(4 * var(--u)); background: url(interface/parch_fleuron_grand.png?v=b93958c0) center / contain no-repeat; opacity: .7; margin-top: calc(2 * var(--u)); }
.registre .rg-sceau { position: absolute; right: 9.5%; top: 6%; width: calc(5.2 * var(--u)); height: calc(5.2 * var(--u)); padding: 0; border: 0; cursor: pointer;
  background: url(interface/sceau_fermer_repos.png?v=f7075058) center / contain no-repeat; transition: translate .2s ease-out, filter .2s ease-out; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .55)); }
.registre .rg-sceau:hover, .registre .rg-sceau:focus-visible { background-image: url(interface/sceau_fermer_survol.png?v=19783679); translate: 0 -1px; outline: none; }
.registre .rg-sceau:active { background-image: url(interface/sceau_fermer_presse.png?v=f86183d8); translate: 0 1px; }
@media (prefers-reduced-motion: reduce) { .registre .rg-sceau { transition: none; } }
html #modal:not(.accueil) > #modal-box:has(> .registre.lv-accueil) { width: 100vw !important; height: 100vh; aspect-ratio: auto;
  background: #120c08 url(../illustrations/accueil_bureau.webp) center / cover no-repeat !important; box-shadow: none !important; }
html #modal:not(.accueil) > #modal-box > .registre.lv-accueil { inset: auto; left: 50%; top: 52%; width: min(96vw, 170vh); aspect-ratio: 16 / 9; translate: -50% -50%;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .75)); }
.registre.lv-accueil .rg-fond { clip-path: inset(3.6% 8.4% 6.6% 8.4% round 6px); }
