/*! Corsaires ! — © 2026, Chrysopam — tous droits réservés */
html #modal-box > .scene-d.prologue-d > .pj-cri { position: absolute; inset: 0; z-index: 9; opacity: 0; transition: opacity .3s ease-out; touch-action: none; user-select: none; }
html #modal-box > .scene-d.prologue-d > .pj-cri.vu { opacity: 1; }
html #modal-box > .scene-d.prologue-d.pj-cri-actif .bd-sous { opacity: 0 !important; transition: opacity .25s ease-out; }
.pj-cri > .pj-cri-toile { position: absolute; left: 2%; top: 73%; width: 60%; height: 25%; pointer-events: none; }
.pj-cri > .pj-cri-voile { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 80% at 80% 70%, rgba(255, 246, 225, var(--b, 0)) 0, rgba(0, 0, 0, 0) 40%, rgba(6, 4, 12, calc(.42 * var(--p, 0))) 100%); }
html #modal-box > .scene-d.prologue-d > .pj-carnet { position: absolute; inset: 0; z-index: 12; }
.pj-carnet > .pj-carnet-voile { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(6, 10, 8, .25), rgba(6, 10, 8, .72)); }
.pj-carnet > .pj-dossier { --h: min(82vh, calc(88vw * 897 / 1460)); position: absolute; left: 50%; top: 50%; height: var(--h); width: calc(var(--h) * 1460 / 897);
  transform: translate(-50%, -50%); filter: drop-shadow(0 calc(var(--h) * .015) calc(var(--h) * .025) rgba(0, 0, 0, .7)); }
.pj-carnet.ouvre > .pj-dossier { animation: gpOuvre .3s cubic-bezier(.2, .9, .3, 1.05); }
.pj-carnet.ouvre > .pj-carnet-voile { animation: gvFondu .3s ease-out; }
.pj-carnet.ferme { transition: opacity .3s ease-in; opacity: 0; }
.pj-carnet.ferme > .pj-dossier { transition: transform .3s ease-in; transform: translate(-50%, -46%) scale(.9); }
.pj-carnet .gp-plaque { font-family: 'Alegreya SC', 'IM Fell English SC', Georgia, serif; }
html #modal-box .pj-carnet .pj-titre { margin: 0; text-align: center; font-family: 'Pirata One', 'IM Fell English SC', Georgia, serif; font-weight: 400; font-size: 1.45em; line-height: 1.1; color: #1d4d31; }
.pj-carnet .pj-ecrit { font-size: calc(var(--h) * .027); }
.pj-lignes { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: safe center; gap: calc(var(--h) * .022); min-height: 0; }
.pj-tete > b { display: block; font-weight: 700; color: #2a1708; font-family: 'Alegreya SC', 'IM Fell English SC', Georgia, serif; font-size: 1em; line-height: 1.1; }
.pj-carnet .cg-choix { color: #1d5a37; margin-top: 0; display: flex; align-items: center; gap: .5em; width: fit-content; max-width: 82%; box-sizing: border-box; }
.pj-carnet .cg-choix .cg-choix-t { display: inline; }
.pj-carnet .cg-choix .pj-ico { vertical-align: middle; margin-right: .4em; }
.pj-carnet .cg-choix:not(.pris) .cg-choix-t { border-bottom: 1px dotted rgba(29, 90, 55, .55); }
.pj-carnet .cg-choix:hover .cg-choix-t, .pj-carnet .cg-choix:focus-visible .cg-choix-t { color: #0b3a20; }
.pj-carnet .cg-choix.pris { color: #13301f; margin: .2em 0 .2em .2em; }
.pj-carnet .cg-choix i { color: #3e5a3a; }
.pj-carnet .cg-boucle { display: none; }
.pj-carnet .cg-choix.pris .cg-boucle { display: block; }
.pj-carnet .cg-coche { display: none; }
.pj-carnet .cg-choix.pris .cg-coche { display: block; }
.pj-ico { width: 1.5em; height: 1.5em; object-fit: contain; image-rendering: pixelated; flex: none; }
.pj-jeton { position: absolute !important; left: calc(100% + 1.5em); top: -.55em; opacity: 0; visibility: hidden; }
.pj-carnet .cg-choix.signe .pj-jeton { visibility: visible; opacity: 1; animation: cgTombe .35s cubic-bezier(.3, 1.4, .5, 1) .25s both; }
.pj-bilan { color: #1f3a26; }
.pj-carnet .pj-bilan b { color: #1d5a37 !important; font-style: normal; }
.pj-carnet .pj-bilan { max-width: 76%; }
html #modal-box > .scene-d.prologue-d.pj-carnet-actif .pd-fil { opacity: 0 !important; transition: opacity .25s ease-out; }
.pj-bilan.dit { font-style: italic; }
.pj-carnet .pj-cire:disabled { cursor: default; filter: brightness(.7) saturate(.7) drop-shadow(2px 4px 3px rgba(0, 0, 0, .55)); }
.pj-carnet .pj-cire.a-signer > img { animation: cgAppel 1.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .pj-carnet.ouvre > .pj-dossier, .pj-carnet.ouvre > .pj-carnet-voile, .pj-carnet .cg-choix.signe .pj-jeton, .pj-carnet .pj-cire.a-signer > img { animation: none; } }
html.sans-ambiance .pj-carnet.ouvre > .pj-dossier, html.sans-ambiance .pj-carnet .pj-cire.a-signer > img { animation: none; }
html.ch-petits .pj-carnet .cg-med-nom small { font-size: max(13px, .85em); }
.pj-carnet > .pj-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.pj-carnet .cg-choix .pj-ico.pj-encre { filter: url(#pj-encre-isabeau); width: 1.8em; height: 1.8em; margin: -.2em .5em -.2em -.1em; transform: rotate(var(--ri, 0deg)); transition: transform .25s ease-out; }
.pj-carnet .cg-choix .pj-ico.pj-encre.pj-marge { filter: none; image-rendering: auto; width: 2.6em; height: 2.6em; margin: 0; opacity: .92;
  position: absolute; left: 0; top: 50%; transform: translateY(-50%) rotate(var(--ri, 0deg)); }
.pj-carnet .cg-choix .cg-choix-t:has(> .pj-marge) { display: block; position: relative; padding-left: 3.3em; min-height: 2.6em; margin: .15em 0; }
.pj-carnet .cg-choix.pj-dite .pj-ico.pj-encre.pj-marge { transform: translateY(-50%) rotate(var(--ri, 0deg)) scale(1.1); }   
.pj-carnet .cg-choix.pj-dite:not(.pris) .cg-choix-t { color: #0b3a20; border-bottom: 2px solid rgba(29, 90, 55, .8); }
.pj-carnet .cg-choix.pj-dite .pj-ico.pj-encre { transform: rotate(var(--ri, 0deg)) scale(1.12); }
html.buste:not(.mobile) #modal-box > .scene-d.bu-prologue .pd-med.pj-buste { z-index: 13; }
.pj-carnet > .pj-st { position: absolute; z-index: 3; left: 50%; bottom: 1.2%; transform: translateX(-50%); width: max-content; max-width: min(66vw, 62em); margin: 0;
  text-align: center; text-wrap: balance; pointer-events: none; opacity: 0; transition: opacity .22s ease-out;
  font: normal 600 max(19px, calc(1.45 * min(1vw, 1.778vh)))/1.2 Alegreya, Georgia, serif; color: #fbf3e2; text-shadow: 0 1px 2px #000, 0 0 8px rgba(0, 0, 0, .9); }
.pj-carnet > .pj-st.vu { opacity: 1; }
.pj-carnet > .pj-st .st-qui { display: block; margin: 0 0 .08em; font: normal .78em/1.05 'IM Fell English SC', Georgia, serif; letter-spacing: .05em; color: #9fdcb5;
  text-shadow: 0 1px 2px #000, 0 0 6px rgba(0, 0, 0, .9); }
.pj-carnet > .pj-st .st-dit { display: block; }
@media (prefers-reduced-motion: reduce) { .pj-carnet > .pj-st, .pj-carnet .cg-choix .pj-ico.pj-encre { transition: none; } }
html.sans-ambiance .pj-carnet > .pj-st, html.sans-ambiance .pj-carnet .cg-choix .pj-ico.pj-encre { transition: none; }
