/*! Corsaires ! — © 2026, Chrysopam — tous droits réservés */
#fouille { position: fixed; inset: 0; z-index: 9800; display: flex; align-items: center; justify-content: center; background: #120a05;
  opacity: 0; transition: opacity .25s; font-family: Alegreya, Georgia, serif; color: #2e1d0e; user-select: none; -webkit-user-select: none; touch-action: none; cursor: default; }
#fouille.vu { opacity: 1; }
#fouille .fo-boite { position: relative; container-type: inline-size; flex: none; outline: 6px solid #3a2414; box-shadow: 0 0 0 9px #1c1008; overflow: hidden; }
#fouille .fo-toile { position: absolute; inset: 0; display: block; }
#fouille .fo-carte { position: absolute; left: 1.6%; top: 2.2%; width: 35cqw; box-sizing: border-box; padding: 1cqw 1.3cqw 1.1cqw; pointer-events: none;
  background: #efe2c2; border: .3cqw solid #7a5530; box-shadow: inset 0 0 0 .25cqw #efe2c2, inset 0 0 0 .38cqw #b89a66, .35cqw .45cqw 0 rgba(0, 0, 0, .45);
  transform: rotate(-1.2deg); display: grid; grid-template-columns: 1fr auto; column-gap: 1cqw; align-items: center; }
#fouille .fo-carte-titre { grid-column: 1 / -1; font-size: 1.05cqw; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a1f12; }
#fouille .fo-devise { grid-column: 1; margin: .35cqw 0 0; font-size: 1.35cqw; font-style: italic; line-height: 1.3; color: #5a3e22; }
#fouille .fo-indice { grid-column: 1; margin: .5cqw 0 0; font-size: 1.65cqw; font-weight: 700; line-height: 1.25; color: #2e1d0e; transition: opacity .3s; }
#fouille .fo-indice.passee { opacity: .5; }
#fouille .fo-coin { grid-column: 2; grid-row: 2 / span 2; image-rendering: pixelated; transform: rotate(1.2deg); }
#fouille .fo-lettrine { font-style: normal; font-size: 1.55em; line-height: .8; font-weight: 800; color: #a8281e; text-shadow: .08cqw .08cqw 0 #f2c25a; }
#fouille .fo-devise.luit .fo-lettrine { color: #d0281e; background: #ffe7a0; box-shadow: 0 0 0 .12cqw #c99a3e; }
#fouille .fo-mot.souligne { border-bottom: .28cqw solid #a8281e; color: #8a1f12; }
#fouille .fo-parole { position: absolute; right: 1.6%; top: 2.4%; display: flex; align-items: center; gap: 1cqw; pointer-events: none; }
#fouille .fo-bulle { max-width: 30cqw; min-width: 15cqw; box-sizing: border-box; padding: .9cqw 1.4cqw 1cqw; background: #efe2c2; border: .3cqw solid #7a5530;
  box-shadow: inset 0 0 0 .25cqw #efe2c2, inset 0 0 0 .38cqw #b89a66, .3cqw .4cqw 0 rgba(0, 0, 0, .45); transform: rotate(.8deg) scale(.9); opacity: 0; transition: opacity .2s, transform .2s; }
#fouille .fo-parole.vu .fo-bulle { opacity: 1; transform: rotate(.8deg); }
#fouille .fo-qui { display: block; font-size: 1.2cqw; font-weight: 700; color: #8a1f12; margin-bottom: .25cqw; }
#fouille .fo-qui:empty { display: none; }
#fouille .fo-dit { display: block; font-size: 1.6cqw; font-style: italic; line-height: 1.25; color: #2e1d0e; }
#fouille .fo-medaillon { flex: none; width: 7.4cqw; height: 7.4cqw; border-radius: 50%; overflow: hidden; background: #1c2440; opacity: 0; transition: opacity .2s;
  border: .5cqw solid #c99a3e; box-shadow: 0 0 0 .25cqw #5a3a14, inset 0 0 0 .25cqw #7a5a20, .3cqw .4cqw 0 rgba(0, 0, 0, .5); }
#fouille .fo-parole.vu .fo-medaillon { opacity: 1; }
#fouille .fo-medaillon .illu, #fouille .fo-medaillon img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; margin: 0; border: 0; border-radius: 0; box-shadow: none; animation: none; }
#fouille .fo-plaque { --k: 1cqw; position: absolute; left: 1.6%; bottom: 2.4%; box-sizing: border-box; height: calc(4.6 * var(--k)); display: flex; align-items: center;
  padding: 0 calc(2.2 * var(--k)) 0 calc(6.2 * var(--k)); cursor: pointer; color: #f3e6c8; white-space: nowrap;
  border-style: solid; border-color: transparent; border-width: calc(1.3 * var(--k)) calc(1.4 * var(--k)) calc(1.3 * var(--k)) calc(5.4 * var(--k));
  border-image: url(interface/kit_plaque_repos.png?v=d5506913) 60 83 60 248 fill / calc(1.3 * var(--k)) calc(1.4 * var(--k)) calc(1.3 * var(--k)) calc(5.4 * var(--k)) stretch;
  transform: rotate(-.8deg); transition: transform .12s; filter: drop-shadow(0 .3cqw 0 rgba(0, 0, 0, .55)); }
#fouille .fo-plaque b { font-size: 1.7cqw; font-weight: 700; text-shadow: .12cqw .12cqw 0 rgba(20, 12, 4, .9); }
#fouille .fo-plaque .fo-cire { position: absolute; left: calc(-4.7 * var(--k)); top: 50%; width: calc(3.8 * var(--k)); height: calc(3.8 * var(--k)); transform: translateY(-50%);
  background: url(interface/kit_sceau_neutre.png?v=9fb70335) center / contain no-repeat; image-rendering: pixelated; }
#fouille .fo-plaque:hover, #fouille .fo-plaque.luit { border-image-source: url(interface/kit_plaque_survol.png?v=d31caf2d); transform: rotate(-.8deg) translateX(.4cqw); }
#fouille .fo-plaque.presse { border-image-source: url(interface/kit_plaque_survol.png?v=d31caf2d); transform: rotate(-.8deg) translateY(.3cqw); }
#fouille .fo-plaque.grisee { border-image-source: url(interface/kit_plaque_grisee.png?v=6ab92ca7); color: rgba(243, 230, 200, .55); cursor: default; transform: rotate(-.8deg); }
#fouille .fo-plaque.grisee .fo-cire { filter: grayscale(.8) brightness(.8); }
#fouille .fo-objets { position: absolute; right: 1.4%; bottom: 1.2%; display: flex; gap: 1.2cqw; align-items: flex-end; }
#fouille .fo-objet { position: relative; width: 7.6cqw; aspect-ratio: 1 / 1.08; cursor: pointer; outline: none; }
#fouille .fo-objet:nth-child(1) { transform: rotate(-2deg); }
#fouille .fo-objet:nth-child(2) { transform: rotate(1.5deg) translateY(-.3cqw); }
#fouille .fo-objet:nth-child(3) { transform: rotate(-1deg); }
#fouille .fo-e { position: absolute; left: 0; bottom: 1.9cqw; width: 100%; height: auto; opacity: 0; transition: opacity .12s, transform .12s; }
#fouille .fo-e0 { opacity: 1; }
#fouille .fo-objet:hover .fo-e0, #fouille .fo-objet:focus-visible .fo-e0 { opacity: 0; }
#fouille .fo-objet:hover .fo-e1, #fouille .fo-objet:focus-visible .fo-e1 { opacity: 1; transform: translateY(-.25cqw); }
#fouille .fo-objet.presse .fo-e0, #fouille .fo-objet.presse .fo-e1 { opacity: 0; }
#fouille .fo-objet.presse .fo-e2 { opacity: 1; transform: translateY(.15cqw); }
#fouille .fo-objet.eteint { cursor: default; filter: grayscale(.85) brightness(.55); }
#fouille .fo-objet.eteint .fo-e1, #fouille .fo-objet.eteint .fo-e2 { opacity: 0 !important; }
#fouille .fo-objet.eteint .fo-e0 { opacity: 1 !important; transform: none !important; }
#fouille .fo-nom { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); white-space: nowrap; padding: 0 .45em; border: .75cqw solid transparent;
  border-image: url(interface/ui_bouton.png?v=6682903d) 15 fill stretch; font-size: 1.1cqw; line-height: 1.1; color: #f7e6bb; text-shadow: .1cqw .1cqw 0 rgba(20, 12, 4, .9); }
#fouille .fo-objet.presse .fo-nom { border-image-source: url(interface/ui_bouton_presse.png?v=8f97ce3e); }
@media (prefers-reduced-motion: reduce) {
  #fouille, #fouille .fo-bulle, #fouille .fo-medaillon, #fouille .fo-plaque, #fouille .fo-e, #fouille .fo-indice { transition: none; }
}
html.sans-ambiance #fouille, html.sans-ambiance #fouille .fo-bulle, html.sans-ambiance #fouille .fo-medaillon { transition: none; }
#fouille .rd-icone.fo-regle-ico { left: 38%; top: 2.6%; width: max(3.2cqw, 34px); height: max(3.2cqw, 34px); }
#fouille .rd-icone.fo-regle-ico img { inset: 12%; width: 76%; height: 76%; }
