/*! Corsaires ! — © 2026, Chrysopam — tous droits réservés */
.ad-calque { position: absolute; left: 50%; top: 50%; z-index: 2; width: max(100vw, calc(100vh * 2048 / 1144));
  height: max(100vh, calc(100vw * 1144 / 2048)); transform: translate(-50%, -50%); pointer-events: none;
  transition: opacity .4s ease; --k: calc(max(100vw, calc(100vh * 2048 / 1144)) / 100); }
.ad-calque.parti { opacity: 0; }
.ad-pli { all: unset; position: absolute; left: 49.5%; top: 67.5%; width: 9.2%; pointer-events: auto; cursor: var(--c-main, pointer);
  transform: translate(-50%, -50%) rotate(-9deg); transition: transform .2s ease, filter .2s ease;
  filter: drop-shadow(0 calc(.35 * var(--k)) calc(.4 * var(--k)) rgba(0, 0, 0, .6)); }
.ad-pli-img { display: block; width: 100%; height: auto; pointer-events: none; user-select: none; }
.ad-pli:hover, .ad-pli:focus-visible { transform: translate(-50%, -54%) rotate(-9deg) scale(1.05); outline: none;
  filter: drop-shadow(0 0 calc(.7 * var(--k)) rgba(255, 196, 110, .6)) drop-shadow(0 calc(.45 * var(--k)) calc(.45 * var(--k)) rgba(0, 0, 0, .6)); }
.ad-pli:active { transform: translate(-50%, -50%) rotate(-9deg) scale(.97); }
.ad-pli-etiq { position: absolute; left: 34%; top: 66%; width: 112%; aspect-ratio: 320 / 131; pointer-events: none;
  transform: rotate(11deg); background: url(interface/gazette_etiquette.png?v=b7afc647) center / 100% 100% no-repeat;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .45)); }
.ad-pli-etiq > span { position: absolute; left: 45%; right: 5%; top: 10%; bottom: 10%; display: flex; align-items: center; justify-content: center;
  text-align: center; font-family: 'IM Fell English', Georgia, serif; font-size: max(13px, calc(.92 * var(--k))); line-height: 1; color: #3a2614; }
.ad-lecture { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center;
  background: rgba(10, 6, 3, .74); cursor: var(--c-main, pointer); }
.ad-lecture.cache { display: none; }
.ad-ouverte { --h: min(68vh, calc(56vw * 278 / 360)); position: relative; flex: none; height: var(--h); width: calc(var(--h) * 360 / 278);
  cursor: auto; image-rendering: pixelated; background: url(interface/gazette_lettre_ouverte_vierge.png?v=2d21bc2f) center / 100% 100% no-repeat;
  transform: rotate(-.8deg); filter: drop-shadow(0 calc(var(--h) * .02) calc(var(--h) * .03) rgba(0, 0, 0, .7)); }
.ad-lecture.ouvre .ad-ouverte { animation: adDeplie .38s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes adDeplie { from { transform: rotate(8deg) scale(.3) translate(30%, 20%); opacity: 0; } to { transform: rotate(-.8deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ad-lecture.ouvre .ad-ouverte { animation: none; } }
.ad-ecrit { position: absolute; left: 10%; right: 9.5%; top: 17%; bottom: 15.5%; display: flex; flex-direction: column;
  font-family: 'IM Fell English', Georgia, serif; font-style: italic; font-size: max(17px, calc(var(--h) * .04)); line-height: 1.34;
  color: #4a2810; text-align: left; image-rendering: auto; }
.ad-ecrit .ad-bosco { display: flow-root; margin: 0 0 .5em; }
.ad-ecrit .ad-bosco small { font-size: .85em; white-space: nowrap; }
.ad-lecture .ad-ecrit .visage-port { width: calc(var(--h) * .14); height: calc(var(--h) * .14); margin: .1em .7em .2em 0; border-color: #8a5a2b; }
.ad-champ input { display: block; width: 100%; box-sizing: border-box; margin: .2em 0 0; padding: .15em .2em; border: 0; border-radius: 0;
  border-bottom: 2px dotted rgba(90, 42, 20, .75); background: transparent; font: inherit; font-style: normal; color: #2a1a0c; outline: none; }
.ad-champ input::placeholder { color: rgba(74, 40, 16, .5); font-style: italic; }
.ad-champ input:focus { border-bottom: 2px solid #8a2a10; background: rgba(255, 246, 220, .35); }
.ad-pied { display: flex; align-items: center; gap: .8em; margin-top: .7em; }
.ad-sceau { all: unset; display: flex; align-items: center; flex: none; cursor: var(--c-main, pointer); }
.ad-sceau img { position: relative; z-index: 2; width: calc(var(--h) * .15); height: auto; transition: transform .15s ease, filter .15s ease;
  filter: drop-shadow(0 calc(var(--h) * .006) calc(var(--h) * .008) rgba(40, 20, 10, .55)); }
.ad-sceau-etiq { position: relative; margin-left: calc(var(--h) * -.04); width: calc(var(--h) * .42); aspect-ratio: 320 / 131; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; padding: 0 3% 0 42%; background: url(interface/gazette_etiquette.png?v=b7afc647) center / 100% 100% no-repeat;
  font-style: normal; font-size: .82em; line-height: 1.05; text-align: center; color: #2b1a0e; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); transition: filter .15s ease; }
.ad-sceau:hover img, .ad-sceau:focus-visible img { transform: rotate(-6deg) scale(1.05);
  filter: drop-shadow(0 0 calc(var(--h) * .012) rgba(255, 190, 110, .7)) drop-shadow(0 calc(var(--h) * .006) calc(var(--h) * .008) rgba(40, 20, 10, .55)); }
.ad-sceau:hover .ad-sceau-etiq, .ad-sceau:focus-visible .ad-sceau-etiq { filter: drop-shadow(0 0 calc(var(--h) * .01) rgba(255, 190, 110, .55)) drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.ad-sceau:active img { transform: scale(.94); }
.ad-pied .demo-retour { flex: 1 1 auto; margin: 0; min-height: 0; font-size: .9em; }
.ad-ecrit .ad-muet { margin-top: auto; font-style: normal; font-size: max(12px, .58em); line-height: 1.3; color: rgba(74, 40, 16, .8); }
.ad-ecrit:not(:has(.ad-champ)) { justify-content: center; font-size: max(18px, calc(var(--h) * .046)); }
