/*! Corsaires ! — © 2026, Chrysopam — tous droits réservés */
.cg-dossier .cg-plaque { font-family: 'Alegreya SC', 'IM Fell English SC', Georgia, serif; }
.cg-med-nom { position: absolute; left: 78.5%; top: 31.5%; width: 17.5%; text-align: center; z-index: 5; font-family: 'Alegreya SC', 'IM Fell English SC', Georgia, serif;
  font-size: max(12.5px, calc(var(--h) * .021)); line-height: 1.1; color: #f3dca2; text-shadow: 0 1px 2px #000; pointer-events: none; }
.cg-med-nom small { display: block; font-family: 'Alegreya', 'IM Fell English', Georgia, serif; font-style: italic; font-size: .85em; color: #d9c08a; }
.cg-liasse { all: unset; position: absolute; left: 7.5%; top: 40%; width: 9%; z-index: 4; cursor: var(--c-main, pointer); display: flex; flex-direction: column; align-items: center;
  gap: calc(var(--h) * .006); transform: rotate(-4deg); transition: transform .15s ease, filter .15s ease; filter: drop-shadow(2px 4px 3px rgba(0, 0, 0, .55)); }
.cg-liasse img { width: 100%; height: auto; image-rendering: pixelated; }
.cg-liasse span { font-size: calc(var(--h) * .022); line-height: 1; color: #f3dca2; text-shadow: 0 1px 2px #000; white-space: nowrap; }
.cg-liasse:hover, .cg-liasse:focus-visible { transform: rotate(0deg) translateY(-3%); filter: drop-shadow(0 0 calc(var(--h) * .012) rgba(255, 200, 120, .75)) drop-shadow(2px 4px 3px rgba(0, 0, 0, .55)); }
.cg-liasse:active { transform: scale(.96); }
.cg-refermer.gp-plus-tard { left: 9%; bottom: 3.4%; z-index: 5; font-size: calc(var(--h) * .022); }
.cg-ecrit { font-size: calc(var(--h) * .026); line-height: 1.18; color: #3a2210; }
.cg-lignes { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: safe center; gap: calc(var(--h) * .03); min-height: 0; }
.cg-vide { margin: auto 0; text-align: center; font-style: italic; color: rgba(74, 46, 22, .7); }
.cg-ligne { position: relative; display: flex; align-items: center; gap: .6em; }
.cg-ico { flex: none; width: 2.1em; height: 2.1em; object-fit: contain; image-rendering: pixelated; }
.cg-mots { flex: 1 1 auto; min-width: 0; }
.cg-mots > b { display: block; font-weight: 700; color: #2a1708; font-family: 'Alegreya SC', 'IM Fell English SC', Georgia, serif; font-size: .96em; line-height: 1.1; }
.cg-phrase { display: block; font-style: italic; font-size: .84em; line-height: 1.2; color: rgba(60, 36, 16, .86); margin-top: .1em; }
.cg-ligne.ruban::before { content: ''; position: absolute; left: -1.25em; top: -.35em; width: .5em; height: 2.6em; pointer-events: none;
  background: linear-gradient(90deg, #6e0c10, #b8222a 40%, #8e1418); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, .3)); }
.cg-onglet.cg-a-ruban::after { content: ''; position: absolute; right: 18%; bottom: 2%; width: 9%; height: 34%; pointer-events: none;
  background: linear-gradient(90deg, #6e0c10, #b8222a 40%, #8e1418); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
.cg-choix { all: unset; position: relative; display: block; width: fit-content; max-width: 100%; margin-top: .35em; padding: .12em .4em; font-size: .88em; line-height: 1.2;
  color: #8a1e14; cursor: var(--c-main, pointer); }
.cg-choix-t { position: relative; z-index: 1; }
.cg-choix i { font-style: italic; color: #6a3a22; }
.cg-choix:not(.pris):not(.inerte) .cg-choix-t { border-bottom: 1px dotted rgba(138, 30, 20, .55); }
.cg-choix:hover .cg-choix-t, .cg-choix:focus-visible .cg-choix-t { color: #5a0c06; }
.cg-choix.pris { color: #2a1708; margin: .5em 0 .25em .2em; }
.cg-choix.inerte { cursor: default; color: rgba(60, 36, 16, .7); }
.cg-boucle { position: absolute; left: -5%; top: -34%; width: 110%; height: 168%; pointer-events: none; opacity: .92; image-rendering: pixelated; }
.cg-boucle.trace { animation: gpTrace .25s ease-out both; }
.cg-coche { position: absolute; right: -1.1em; top: -.85em; width: 1.4em; height: auto; pointer-events: none; image-rendering: pixelated; }
.cg-geste { all: unset; display: inline-flex; align-items: center; gap: .3em; margin-top: .3em; font-size: .84em; line-height: 1.2; color: #4a2410; cursor: var(--c-main, pointer); }
.cg-geste img { width: 1.15em; height: 1.15em; object-fit: contain; image-rendering: pixelated; }
.cg-geste i { color: #6a4a30; }
.cg-geste:hover, .cg-geste:focus-visible { color: #000; text-decoration: underline dotted rgba(90, 42, 20, .6); text-underline-offset: .2em; }
.cg-geste.inerte { cursor: default; opacity: .62; }
.cg-geste.inerte:hover { color: #4a2410; text-decoration: none; }
.cg-agrafe { all: unset; position: absolute; left: -2.7em; top: 50%; width: 1.15em; transform: translateY(-50%) rotate(-8deg); cursor: var(--c-main, pointer); z-index: 2;
  transition: transform .15s ease, filter .15s ease; filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, .45)); }
.cg-agrafe img { width: 100%; height: auto; image-rendering: pixelated; }
.cg-agrafe:hover, .cg-agrafe:focus-visible { transform: translateY(-58%) rotate(-2deg); filter: drop-shadow(0 0 .35em rgba(255, 200, 110, .9)) drop-shadow(1px 2px 1px rgba(0, 0, 0, .45)); }
.cg-jeton { flex: none; position: relative; width: 3em; height: 3em; display: flex; align-items: center; justify-content: center; transform: rotate(var(--r, -4deg));
  animation: cgTombe .42s cubic-bezier(.3, 1.5, .5, 1) var(--d, .1s) both; }
.cg-jeton img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.cg-jeton span { position: relative; font-family: 'Alegreya Sans SC', 'Alegreya', sans-serif; font-weight: 800; font-size: .8em; color: #3b2408; text-shadow: 0 1px 0 rgba(255, 240, 190, .7); white-space: nowrap; }
.cg-jeton.large { width: 4.2em; } .cg-jeton.large img { object-fit: fill; } .cg-jeton.large span { font-size: .76em; }
.cg-jeton.mal span { color: #8a1e14; } .cg-jeton.bien span { color: #2f5a1e; }
@keyframes cgTombe { from { opacity: 0; transform: translateY(-1.6em) rotate(calc(var(--r, -4deg) - 14deg)) scale(1.12); } to { opacity: 1; transform: rotate(var(--r, -4deg)); } }
.cg-ligne.a-sceaux { flex-wrap: wrap; }
.cg-sceaux { flex: none; display: flex; gap: .35em; }
.cg-sceau { display: flex; flex-direction: column; align-items: center; width: 2.7em; transform: rotate(var(--r, 0deg)); animation: cgTombe .42s cubic-bezier(.3, 1.5, .5, 1) var(--d, .1s) both; }
.cg-sceau img { width: 2.3em; height: 2.3em; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, .35)); }
.cg-sceau small { font-size: .56em; line-height: 1; color: #5a3a20; white-space: nowrap; }
.cg-pied { flex: none; }
.cg-pied .gp-bilan b { font-style: normal; font-family: 'Alegreya SC', 'IM Fell English SC', Georgia, serif; color: #8a1e14; font-weight: 500; }
.cg-ordres.gp-route { flex: none; margin: .2em 0 .1em; font-size: .82em; color: #8a1e14; }
.cg-cire.a-signer > img { animation: cgAppel 1.8s ease-in-out infinite; }
@keyframes cgAppel { 0%, 100% { filter: none; } 50% { filter: drop-shadow(0 0 calc(var(--h) * .016) rgba(255, 190, 110, .95)); } }
@media (prefers-reduced-motion: reduce) { .cg-jeton, .cg-sceau, .cg-boucle.trace, .cg-cire.a-signer > img { animation: none; } }
html.sans-ambiance .cg-jeton, html.sans-ambiance .cg-sceau, html.sans-ambiance .cg-cire.a-signer > img { animation: none; }
.cg-profil-lien { all: unset; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 2px; }
.cg-profil-lien img { width: 54px; height: auto; image-rendering: pixelated; transform: rotate(-4deg); transition: transform .15s ease; filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, .4)); }
.cg-profil-lien b { display: block; }
.cg-profil-lien small { display: block; font-style: italic; opacity: .85; }
.cg-profil-lien:hover img, .cg-profil-lien:focus-visible img { transform: rotate(0) translateY(-2px) scale(1.05); }
.cg-profil-lien:hover b { text-decoration: underline dotted; }
.gazette-scene .gz-continuer.lz-carnet { right: calc(2.2vw + 23 * var(--k)); }
.gazette-scene:has(.lz-carnet) .gz-continuer.lz-ecrire { right: calc(2.2vw + 44 * var(--k)); }
.gazette-scene .lz-carnet .gz-cire img { inset: 12%; width: 76%; height: 76%; image-rendering: pixelated; transform: rotate(-6deg); }
.mz-escale.cg-rapport { --w: clamp(480px, 31vw, 600px); left: 35vw; margin-left: calc(var(--w) / -2); bottom: 22px; z-index: 60; }   
.cg-rapport-dit { margin: 0; font-style: italic; font-size: clamp(14px, .86vw, 17px); line-height: 1.25; }
.cg-rapport > .sc-retombees { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); display: flex; justify-content: center; gap: 26px; pointer-events: none; transition: opacity .5s; }
.cg-rapport > .sc-retombees.part { opacity: 0; }
.cg-rapport > .sc-retombees .sc-retombe { display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: 0; transform: translateY(-28px) scale(1.15); transition: opacity .25s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.cg-rapport > .sc-retombees .sc-retombe.pose { opacity: 1; transform: none; }
.cg-rapport > .sc-retombees .sc-retombe-ico { position: relative; width: 58px; height: 58px; }
.cg-rapport > .sc-retombees .sc-retombe-ico > img:first-child { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 5px rgba(0, 0, 0, .6)); }
.cg-rapport > .sc-retombees .sc-retombe b { font-size: 19px; font-weight: 700; color: #f3e6c8; text-shadow: 0 2px 3px #000, 0 0 8px #000; white-space: nowrap; }
.cg-rapport > .sc-retombees .sc-retombe.plus b .sc-n { color: #b8e0a0; }
.cg-rapport > .sc-retombees .sc-retombe.moins b .sc-n { color: #f0a69a; }
@media (prefers-reduced-motion: reduce) { .cg-rapport > .sc-retombees .sc-retombe { transition: none; } }
