/*! Corsaires ! — © 2026, Chrysopam — tous droits réservés */
.livre:has(.ar-scene) .lv-texte { left: 11%; width: 74%; top: 6.5%; height: 88%; columns: auto; overflow: visible; }
.livre:has(.ar-scene) .lv-tourne, .livre:has(.ar-scene) .lv-folio { display: none; }
.livre:has(.ar-scene) .lv-titre { width: 52.7%; box-sizing: border-box; margin: 0 0 calc(.6 * var(--u)); padding: 0 calc(1 * var(--u)) !important; font-size: calc(2.3 * var(--u)); line-height: 1.2;
  height: calc(3.4 * var(--u)); display: flex; align-items: center; justify-content: center; white-space: nowrap; }
.livre .famille-fen:has(.ar-scene) .jeu-tete { position: absolute; left: 52.7%; right: 0; top: 0; height: calc(3.4 * var(--u)); margin: 0; display: flex; align-items: center; justify-content: center; z-index: 3; }
.livre .famille-fen:has(.ar-scene) .jeu-tete .onglets-mini { justify-content: center; margin: 0; }
.livre .famille-fen:has(.ar-scene) .jeu-tete h2 { display: none; }
.ar-scene { position: relative; font-family: Alegreya, Georgia, serif; }
.ar-planche { position: relative; width: 100%; aspect-ratio: 1600 / 782; }
.ar-planche > .ar-fond { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; user-select: none;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)) drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.ar-med.plein {
  position: absolute; width: calc(var(--r) * 200%); aspect-ratio: 1; transform: translate(-50%, -50%); padding: 0; margin: 0;
  border: 0; border-radius: 50%; background: none; cursor: var(--c-main, pointer); z-index: 2; transition: transform .12s, filter .12s; font-family: inherit;
}
.ar-med.plein:hover { transform: translate(-50%, -50%) scale(1.07); filter: brightness(1.08); z-index: 4; }
.ar-med.plein.choisi { z-index: 4; }
.ar-med.plein.choisi .ar-portrait { box-shadow: 0 0 0 3px #f3d98e, 0 0 14px 4px rgba(242, 200, 90, .85); }
.ar-portrait { position: absolute; inset: 11%; border-radius: 50%; overflow: hidden; background: #3a2412; display: grid; place-items: center;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, .55); }
.ar-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transform: scale(1.12); transform-origin: 50% 30%; }
.ar-portrait .emoji-seul, .ar-portrait.emoji { font-size: 1.6em; line-height: 1; }
.ar-aieul .ar-portrait img { filter: sepia(.95) saturate(.75) contrast(.95) brightness(.95); }
.ar-aieul .ar-portrait { background: #6b5030; }
.ar-enfant.ordres .ar-portrait img { filter: grayscale(.4); }
.ar-enfant.heritier::after { content: ''; position: absolute; left: -6%; top: -6%; width: 34%; aspect-ratio: 1; transform: rotate(-18deg);
  background: url(interface/aa_gouverneur.png?v=02dafba9) center / contain no-repeat; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
.ar-ruban {
  position: absolute; left: 50%; top: 86%; transform: translateX(-50%); padding: 1px 7px 2px; white-space: nowrap;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  font-size: clamp(11px, .92vw, 13.5px); line-height: 1.15; color: #3b2412;
  background: linear-gradient(#f6e8c4, #e6d0a0); border: 1px solid #8a6230; border-radius: 2px; box-shadow: 0 2px 3px rgba(0, 0, 0, .35); pointer-events: none;
}
.ar-ruban b { color: #5e2a12; }
.ar-ruban small { font-size: .82em; color: #6b4a2a; line-height: 1.1; }
.ar-aieul .ar-ruban { background: linear-gradient(#ece0c8, #d6c4a0); color: #4a3a28; }
.ar-ancien .ar-portrait { box-shadow: 0 0 0 2px #c9ced6, 0 0 0 3px #7d838c, inset 0 0 6px rgba(0, 0, 0, .55); }
.ar-ancien .ar-portrait img { filter: sepia(1) contrast(.9); }
.ar-vide { position: absolute; width: calc(var(--r) * 244%); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle closest-side, rgba(238, 214, 166, .65) 0 86%, rgba(238, 214, 166, 0) 100%); display: grid; place-items: center; }
.ar-silhouette { width: 78%; height: 78%; clip-path: circle(50%); opacity: .82; }
.ar-couple[data-ar="cap"] .ar-ruban { left: auto; right: 96%; top: 50%; transform: translateY(-50%); }
.ar-couple[data-ar="conj"] .ar-ruban { left: 96%; top: 50%; transform: translateY(-50%); }
.ar-couple.seul[data-ar="cap"] .ar-ruban { left: 50%; right: auto; top: 86%; transform: translateX(-50%); }
.livre .famille-fen .onglets-mini { display: flex; flex-wrap: nowrap; gap: 4px; }
.livre .famille-fen .onglets-mini .onglet { white-space: nowrap; flex: 0 0 auto; width: auto !important; min-width: max-content; overflow: visible;
  padding-left: 22px !important; padding-right: 26px !important; }
.ar-bulle {
  position: absolute; top: 4%; width: min(42%, 440px); max-height: 86%; overflow: auto; z-index: 6; padding: 10px 12px 10px;
  background: #f7eedb; border: 2px solid #7a5631; border-radius: 6px; box-shadow: 3px 4px 0 rgba(0, 0, 0, .3), 0 8px 22px rgba(0, 0, 0, .4);
  font-size: 13.5px; line-height: 1.4; color: #2b1a0e; left: 50%; transform: translateX(-50%);
}
.ar-bulle.a-droite { left: auto; right: 2%; transform: none; }
.ar-bulle.a-gauche { left: 2%; transform: none; }
.ar-bulle[hidden] { display: none; }
.ar-bulle .fiche { margin: 0; border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; }
.ar-bulle-fermer { float: right; margin: -4px -4px 4px 8px; width: 26px; height: 26px; padding: 0; border: 1px solid #8a6230; border-radius: 50%;
  background: #ead8a6; color: #5e2a12; font-weight: 700; cursor: var(--c-main, pointer); }
.ar-bulle-fermer:hover { background: #f3e3b8; }
.ar-bas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; min-height: 44px; }
.ar-groupe { display: flex; align-items: center; gap: 6px; }
.ar-etiq { font-size: 13px; font-style: italic; color: #5e3a1c; white-space: nowrap; }
.ar-petit { display: flex; align-items: center; gap: 4px; padding: 0 8px 0 0; border: 1px solid #a8823e; border-radius: 22px; background: rgba(246, 236, 212, .9);
  cursor: var(--c-main, pointer); color: #3b2412; transition: transform .12s, filter .12s; font-family: inherit; }
.ar-petit .ar-portrait { position: relative; inset: auto; width: 34px; height: 34px; flex: 0 0 auto; }
.ar-petit small { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ar-petit:hover { transform: translateY(-2px); filter: brightness(1.06); }
.ar-officieux .ar-petit { opacity: .82; border-style: dashed; }
.ar-officieux .ar-petit .ar-portrait img { filter: sepia(.5) saturate(.8); }
.ar-liste { margin-left: auto; padding: 3px 10px; border: 1px solid #8a6230; border-radius: 3px; background: #ead8a6; color: #3b2412; font-family: inherit; font-size: 13px; font-weight: 700; cursor: var(--c-main, pointer); }
.ar-liste:hover { background: #f3e3b8; }
.ar-scene.officieux .ar-fond { filter: sepia(.35) saturate(.85) brightness(.9) drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.ar-liaison .ar-portrait { box-shadow: 0 0 0 2px #a8281d, inset 0 0 6px rgba(0, 0, 0, .55); }
.ar-naturel-med .ar-portrait { box-shadow: 0 0 0 2px #e8d6a8, 0 0 0 3px #7a5631, inset 0 0 6px rgba(0, 0, 0, .55); outline: 2px dashed rgba(122, 86, 49, .7); outline-offset: 2px; }
.ar-liaison .ar-ruban { background: linear-gradient(#f5dcd2, #e2bcae); }
@media (prefers-reduced-motion: reduce) { .ar-med.plein, .ar-petit { transition: none; } }
.ar-var-1 .ar-portrait img { transform: scale(1.12) scaleX(-1); }
.ar-var-2 .ar-portrait img { object-position: 46% 16%; transform: scale(1.2); }
.ar-var-3 .ar-portrait img { object-position: 54% 26%; transform: scale(1.16) scaleX(-1); }
.ar-var-1 .ar-portrait { box-shadow: 0 0 0 2px #d8c27a, inset 0 0 6px rgba(0, 0, 0, .55); }
.ar-var-2 .ar-portrait { box-shadow: 0 0 0 2px #b0703a, inset 0 0 6px rgba(0, 0, 0, .55); }
.ar-var-3 .ar-portrait { box-shadow: 0 0 0 2px #e9dcc0, 0 0 0 3px #8a6a3a, inset 0 0 6px rgba(0, 0, 0, .55); }
.ar-med.plein::before, .ar-vide.promesse::before { content: ''; position: absolute; inset: 3%; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 210deg, #8a5a1a, #f6e08a, #b8862b, #fff1b8, #9a6a22, #e9c766, #8a5a1a);
  box-shadow: 0 2px 4px rgba(40, 20, 5, .5), inset 0 0 0 1px rgba(255, 244, 200, .6); }
.ar-med.plein { isolation: isolate; }
.ar-vide.promesse { width: calc(var(--r) * 200%); background: none; isolation: isolate; }
.ar-vide.promesse::after { content: ''; position: absolute; inset: 11%; border-radius: 50%; z-index: -1; background: radial-gradient(circle at 50% 40%, #f1dfb4, #e2c690 70%, #cfae74); box-shadow: inset 0 0 6px rgba(80, 50, 20, .45); }
