/*! Corsaires ! — © 2026, Chrysopam — tous droits réservés */
html #modal:not(.accueil) > #modal-box:has(> .tq-scene-affiche) { width: 100vw !important; max-width: none; height: 100vh; max-height: none !important; padding: 0 !important; overflow: hidden;
  border: 0 !important; border-image: none !important; border-radius: 0 !important; background: #1a120c !important; box-shadow: none !important; }
html #modal-box > .tq-scene-affiche { --k: min(1vw, 1.778vh); position: absolute; inset: 0; padding: 0 !important; margin: 0; border: 0 !important; border-image: none !important; overflow: hidden;
  font-family: 'IM Fell English', Georgia, serif; color: #f3e6c8; animation: tqOuvre .25s ease-out both; }
@keyframes tqOuvre { from { opacity: 0; } to { opacity: 1; } }
html #modal-box > .tq-scene-affiche > .illu { position: absolute; inset: 0; width: 100%; height: 100% !important; max-height: none !important; margin: 0; object-fit: cover;
  border: 0 !important; border-image: none !important; border-radius: 0; box-shadow: none; filter: blur(7px) brightness(.5) saturate(.8); transform: scale(1.05); }
.tq-scene-affiche .tq-voile { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 34% 50%, transparent 30%, rgba(10, 6, 3, .55) 100%); }
.tq-scene-affiche .tq-mur { position: absolute; left: 9%; top: 5vh; height: 90vh; width: calc(90vh * .63); display: grid; place-items: center; }
.tq-scene-affiche .tq-mur > .tq-affiche { height: 100%; transform: rotate(-1.3deg); filter: drop-shadow(0 calc(1 * var(--k)) calc(1.3 * var(--k)) rgba(0, 0, 0, .65)); animation: tqCloue .35s ease-out both; }
@keyframes tqCloue { from { transform: rotate(-1.3deg) translateY(-2vh); opacity: 0; } to { transform: rotate(-1.3deg); opacity: 1; } }
.tq-scene-affiche.arrachee .tq-mur > .tq-affiche { animation: tqArrache .42s ease-in both; }
@keyframes tqArrache { 0% { transform: rotate(-1.3deg); } 35% { transform: rotate(4deg) translate(1vh, 1vh) scale(.98); } 100% { transform: rotate(-6deg) translate(-1vh, 3vh) scale(.94); opacity: .9; } }
.tq-scene-affiche.arrachee .tq-mur > .tq-affiche.tq-a-affiche_arrachee { animation: tqPose .3s ease-out both; transform: rotate(-4deg); }
@keyframes tqPose { from { opacity: 0; transform: rotate(-4deg) scale(.96); } to { opacity: 1; transform: rotate(-4deg); } }
.tq-scene-affiche .tq-cote { position: absolute; left: calc(9% + 90vh * .63 + 5%); right: 6%; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: calc(1.4 * var(--k)); }
.tq-scene-affiche .tq-qui { font-family: 'IM Fell English SC', 'IM Fell English', Georgia, serif; font-size: calc(2.6 * var(--k)); letter-spacing: .04em; color: #e9c46a; text-shadow: 0 2px 4px #000; }
.tq-scene-affiche .tq-dit { margin: 0; font-size: max(20px, calc(1.9 * var(--k))); line-height: 1.3; font-style: italic; text-shadow: 0 2px 4px #000; max-width: 34em; }
.tq-scene-affiche .tq-signe { margin-top: calc(-.8 * var(--k)); font-family: 'IM Fell English SC', 'IM Fell English', Georgia, serif; font-size: max(16px, calc(1.35 * var(--k))); color: #cdbb95; text-shadow: 0 2px 3px #000; }
.tq-scene-affiche .tq-prime { display: inline-flex; align-self: flex-start; align-items: center; gap: calc(.6 * var(--k)); padding: calc(.4 * var(--k)) calc(1.3 * var(--k)) calc(.4 * var(--k)) calc(.6 * var(--k));
  font-family: Alegreya, Georgia, serif; font-weight: 700; font-size: calc(2 * var(--k)); color: #3a2210; background: url(interface/onglet_plaque_laiton.png?v=e3261fab) center / 100% 100% no-repeat;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6)); transform: rotate(-1deg); }
.tq-scene-affiche .tq-prime img { height: calc(2.4 * var(--k)); }
.tq-sceaux { display: flex; flex-direction: column; align-items: flex-start; gap: calc(1.2 * var(--k)); margin-top: calc(.6 * var(--k)); }
html #modal-box .tq-sceau { all: unset; box-sizing: border-box; display: flex; align-items: center; cursor: var(--c-main, pointer); transform: rotate(var(--a, -1.5deg));
  transition: transform .15s ease, filter .15s ease; border: 0 !important; border-image: none !important; background: none !important; box-shadow: none !important; padding: 0 !important; }
html #modal-box .tq-sceau.non { --a: 1.8deg; margin-left: calc(1.4 * var(--k)); }
.tq-sceau .tq-cire { position: relative; flex: none; width: calc(7.4 * var(--k)); height: calc(7.4 * var(--k)); z-index: 2; filter: drop-shadow(0 calc(.4 * var(--k)) calc(.5 * var(--k)) rgba(0, 0, 0, .6));
  transition: transform .15s ease, filter .15s ease; }
.tq-sceau .tq-cire > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tq-sceau .tq-cire > .tq-cire-ico { inset: 27%; width: 46%; height: 46%; filter: sepia(.4) brightness(1.05) drop-shadow(0 1px 1px rgba(60, 10, 5, .7)); }
.tq-sceau.non .tq-cire { width: calc(6.2 * var(--k)); height: calc(6.2 * var(--k)); filter: grayscale(.85) brightness(.8) drop-shadow(0 calc(.4 * var(--k)) calc(.5 * var(--k)) rgba(0, 0, 0, .6)); }
.tq-sceau .tq-etiq { margin-left: calc(-1.9 * var(--k)); width: calc(28 * var(--k)); aspect-ratio: 320 / 131; display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  padding: 0 calc(1.1 * var(--k)) 0 calc(13 * var(--k)); background: url(interface/gazette_etiquette.png?v=b7afc647) center / 100% 100% no-repeat; font-family: 'IM Fell English', Georgia, serif;
  font-size: max(16px, calc(1.45 * var(--k))); line-height: 1.12; text-align: center; color: #2b1a0e; text-shadow: none; white-space: normal; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); transition: filter .15s ease; }
html #modal-box .tq-sceau:hover, html #modal-box .tq-sceau:focus-visible { transform: rotate(0deg) translateY(calc(-.3 * var(--k))); outline: 0; }
.tq-sceau:hover .tq-cire, .tq-sceau:focus-visible .tq-cire { transform: rotate(-6deg) scale(1.06); filter: drop-shadow(0 0 calc(1 * var(--k)) rgba(255, 190, 110, .7)) drop-shadow(0 calc(.4 * var(--k)) calc(.5 * var(--k)) rgba(0, 0, 0, .6)); }
.tq-sceau:hover .tq-etiq, .tq-sceau:focus-visible .tq-etiq { filter: drop-shadow(0 0 calc(.7 * var(--k)) rgba(255, 190, 110, .5)) drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.tq-sceau:active .tq-cire { transform: scale(.92); transition-duration: .05s; }
.tq-affiche { position: relative; aspect-ratio: 607 / 960; container-type: size; }
.tq-affiche.tq-a-affiche_scellee { aspect-ratio: 659 / 1000; }
.tq-affiche.tq-a-affiche_royale { aspect-ratio: 614 / 1000; }
.tq-affiche.tq-a-affiche_arrachee { aspect-ratio: 621 / 1000; }
.tq-affiche > .tq-a-fond { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tq-affiche .tq-a-ovale { position: absolute; left: 31.7%; top: 16.7%; width: 41.3%; height: 36.7%; border-radius: 50%; overflow: hidden; }
.tq-affiche .tq-a-grav { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.12); mix-blend-mode: multiply; filter: sepia(.25) contrast(1.05); }
.tq-affiche.tq-masque .tq-a-grav { filter: blur(5px) sepia(.5) brightness(1.05); }
.tq-affiche .tq-a-loup { position: absolute; left: 22%; top: 30%; width: 56%; opacity: .9; filter: sepia(.6) brightness(.35) contrast(1.2); mix-blend-mode: multiply; }
.tq-affiche .tq-a-texte { position: absolute; left: 12%; right: 9%; top: 57.5%; bottom: 8.5%; overflow: hidden; display: flex; align-items: center;
  font-family: 'IM Fell English', Georgia, serif; font-size: 2.55cqh; line-height: 1.18; text-align: justify; hyphens: auto; color: #1f1710;
  padding: .4cqh 1.2cqh; background: rgba(196, 189, 187, .97); box-shadow: 0 0 1.2cqh .8cqh rgba(196, 189, 187, .97); }
.tq-affiche:not(.tq-a-affiche_simple) .tq-a-texte { background: rgba(241, 225, 196, .97); box-shadow: 0 0 1.2cqh .8cqh rgba(241, 225, 196, .97); }
.tq-affiche.tq-a-affiche_arrachee .tq-a-texte { background: rgba(232, 214, 182, .9); box-shadow: 0 0 1.4cqh 1cqh rgba(232, 214, 182, .9); }
.tq-affiche.tq-a-affiche_scellee .tq-a-ovale { left: 27.7%; top: 10.8%; width: 45.4%; height: 43.3%; }
.tq-affiche.tq-a-affiche_scellee .tq-a-texte { left: 12%; right: 12%; top: 57%; bottom: 20%; }
.tq-affiche.tq-a-affiche_royale .tq-a-ovale { left: 29%; top: 20.8%; width: 37.6%; height: 29.2%; }
.tq-affiche.tq-a-affiche_royale .tq-a-texte { left: 24%; right: 25%; top: 51.5%; bottom: 25.5%; font-size: 2cqh; }
.tq-affiche.tq-a-affiche_arrachee .tq-a-ovale { left: 29.5%; top: 18%; width: 38%; height: 36.5%; }
.tq-affiche.tq-a-affiche_arrachee .tq-a-texte { left: 23%; right: 23%; top: 58%; bottom: 24%; font-size: 1.95cqh; }
.livre .lv-texte:has(.tq-page) { columns: auto !important; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "titre droite" "gauche droite"; column-gap: 17.35%; animation: tqOuvre .25s ease-out both; }
.livre .lv-texte:has(.tq-page) > .lv-titre { grid-area: titre; font-size: calc(2.6 * var(--u)) !important; margin: 0 0 calc(.4 * var(--u)) !important; text-align: center; }
html .livre .lv-texte > .tq-livre, html .livre .lv-texte .tq-page { display: contents !important; }
.livre .tq-g { grid-area: gauche; min-height: 0; overflow: hidden; }
.livre .tq-d { grid-area: droite; min-height: 0; overflow: hidden; }
.livre .tq-g h3, .livre .tq-d h3 { margin: 0 0 calc(.5 * var(--u)) !important; font-size: calc(1.7 * var(--u)) !important; text-align: center; }
.livre .tq-g h4, .livre .tq-d h4 { margin: calc(.9 * var(--u)) 0 calc(.35 * var(--u)) !important; font-size: calc(1.35 * var(--u)) !important; }
.livre .tq-couronne { display: grid; grid-template-columns: calc(2.6 * var(--u)) auto 1fr; grid-template-rows: auto auto; column-gap: calc(.6 * var(--u)); align-items: center; margin: 0 0 calc(.55 * var(--u)); }
.livre .tq-couronne .tq-cachet { grid-row: 1 / 3; width: 100%; filter: grayscale(.9) brightness(.9); opacity: .55; }
.livre .tq-couronne.p2 .tq-cachet, .livre .tq-couronne.p3 .tq-cachet, .livre .tq-couronne.p4 .tq-cachet { filter: none; opacity: 1; }
.livre .tq-couronne b { font-family: var(--titre); font-weight: 400; font-size: calc(1.3 * var(--u)); color: #3a2210; }
.livre .tq-couronne .tq-pal { justify-self: end; font-style: italic; font-size: calc(1.1 * var(--u)); color: #6a4a24; }
.livre .tq-couronne.p3 .tq-pal, .livre .tq-couronne.p4 .tq-pal { color: #7d1a10; font-style: normal; font-weight: 700; }
.livre .tq-jauge { grid-column: 2 / 4; position: relative; height: calc(.75 * var(--u)); border: 1px solid rgba(90, 45, 18, .6); background: rgba(232, 214, 176, .45); }
.livre .tq-jauge > i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #c9a14a, #b8641e 60%, #7d1a10); transition: width .25s ease-out; }
.livre .tq-jauge > u { position: absolute; top: -2px; bottom: -2px; width: 1px; background: rgba(58, 34, 16, .55); text-decoration: none; }
.livre ul.tq-froid { margin: 0; padding-left: 1.1em; font-size: calc(1.1 * var(--u)); line-height: 1.3; color: #4a2f16; }
.livre .tq-bas { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: calc(.8 * var(--u)); align-items: start; }
html .livre .tq-bas > .tq-nomguerre { display: contents !important; }
.livre .tq-bas .tq-nomguerre > h4 { grid-column: 1; grid-row: 1; }
.livre .tq-bas .tq-nomguerre > p { grid-column: 1; grid-row: 2; }
.livre .tq-bas .tq-nomguerre > .tq-sceau { grid-column: 1 / -1; grid-row: 3; justify-self: start; }
.livre .tq-bas > h4 { display: none; }
.livre .tq-bas > .tq-trophees { grid-column: 2; grid-row: 1 / 3; gap: calc(.5 * var(--u)); }
.livre .tq-bas .tq-trophee { flex: 0 0 calc(4.2 * var(--u)); width: calc(4.2 * var(--u)); }
.livre .tq-bas .tq-trophee figcaption { display: none; }
.livre .tq-trophees { display: flex; gap: calc(.9 * var(--u)); align-items: flex-start; }
.livre .tq-trophee { margin: 0; width: calc(5.8 * var(--u)); text-align: center; }
.livre .tq-trophee .tq-mini { width: 100%; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.livre .tq-trophee.r0 { transform: rotate(-3deg); } .livre .tq-trophee.r1 { transform: rotate(2deg) translateY(.4em); }
.livre .tq-trophee.r2 { transform: rotate(-1deg); } .livre .tq-trophee.r3 { transform: rotate(2.5deg) translateY(.2em); }
.livre .tq-trophee figcaption { font-size: calc(.85 * var(--u)); line-height: 1.15; color: #5a3a1a; margin-top: .3em; }
.livre .tq-enq { display: flex; align-items: center; gap: calc(1 * var(--u)); }
.livre .tq-med { position: relative; flex: none; width: calc(7 * var(--u)); height: calc(7 * var(--u) * 700 / 678); }
.livre .tq-med .tq-visage { position: absolute; left: 13%; top: 12.5%; width: 74%; height: 72%; border-radius: 50%; object-fit: cover; }
.livre .tq-med .tq-cadre { position: absolute; inset: 0; width: 100%; height: 100%; }
.livre .tq-nom { display: block; font-family: var(--titre); font-weight: 400; font-size: calc(1.6 * var(--u)); color: #3a2210; }
.livre .tq-enq small { font-style: italic; font-size: calc(1.05 * var(--u)); }
.livre .tq-faible { margin: calc(.3 * var(--u)) 0; font-style: italic; font-size: calc(1.15 * var(--u)); color: #4a2f16; }
.livre .tq-preuves { display: flex; align-items: center; gap: calc(.4 * var(--u)); margin: calc(.3 * var(--u)) 0; font-size: calc(1.1 * var(--u)); }
.livre .tq-preuve { width: calc(2.5 * var(--u)); filter: grayscale(.8) opacity(.45); }
.livre .tq-preuve.pleine { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); }
.livre .tq-preuves > span { margin-left: calc(.4 * var(--u)); font-style: italic; }
.livre .tq-calme { font-style: italic; color: #5a3a1a; }
.livre .tq-moyens { display: flex; flex-direction: column; gap: calc(.15 * var(--u)); }
.livre .tq-moyen { display: grid; grid-template-columns: calc(1.7 * var(--u)) minmax(0, 1fr) auto calc(2.4 * var(--u)); align-items: center; column-gap: calc(.6 * var(--u));
  padding: calc(.05 * var(--u)) 0; border-bottom: 1px dotted rgba(90, 45, 18, .35); transform: translateX(var(--dx, 0)) rotate(var(--r, 0deg)); }
.livre .tq-moyen.m0 { --r: -.3deg; } .livre .tq-moyen.m1 { --r: .25deg; --dx: calc(.3 * var(--u)); } .livre .tq-moyen.m2 { --r: .15deg; --dx: calc(-.2 * var(--u)); } .livre .tq-moyen.m3 { --r: -.2deg; --dx: calc(.15 * var(--u)); }
.livre .tq-m-ico { width: 100%; image-rendering: pixelated; filter: sepia(.35) drop-shadow(0 1px 1px rgba(40, 15, 5, .35)); }
.livre .tq-m-txt { font-size: calc(1.05 * var(--u)); line-height: 1.12; color: #3a1a0a; }
.livre .tq-m-txt small { display: block; font-size: calc(.82 * var(--u)); font-style: italic; color: #8a7a6a !important; }
.livre .tq-m-prix { font-family: var(--titre); font-size: calc(1.05 * var(--u)); color: #7d1a10; white-space: nowrap; }
html .livre .tq-m-cire { all: unset; box-sizing: border-box; width: calc(2.4 * var(--u)); aspect-ratio: 1; cursor: var(--c-main, pointer); transform: rotate(-8deg); transition: transform .12s, filter .12s;
  background: url(interface/bilan_sceau_nation.png?v=91f54340) center / 100% 100% no-repeat; image-rendering: pixelated; filter: drop-shadow(0 2px 2px rgba(30, 15, 5, .5)); }
html .livre .tq-m-cire:not([disabled]):hover, html .livre .tq-m-cire:focus-visible { transform: rotate(0deg) scale(1.1); filter: drop-shadow(0 0 calc(.5 * var(--u)) rgba(255, 190, 110, .8)) drop-shadow(0 2px 2px rgba(30, 15, 5, .5)); outline: 0; }
html .livre .tq-m-cire:active { transform: scale(.9); }
.livre .tq-moyen.off .tq-m-txt, .livre .tq-moyen.off .tq-m-prix { color: #8a7e70; }
.livre .tq-moyen.off .tq-m-ico { filter: grayscale(1) opacity(.55); }
html .livre .tq-moyen.off .tq-m-cire { cursor: var(--c-fleche, default); filter: grayscale(1) brightness(1.3) contrast(.85) opacity(.7); }
.livre .tq-sceau.livre { --k: var(--u); margin-top: calc(.3 * var(--u)); }
.livre .tq-sceau.livre .tq-cire { width: calc(3.8 * var(--u)); height: calc(3.8 * var(--u)); }
.livre .tq-sceau.livre .tq-etiq { width: calc(14 * var(--u)); padding: 0 calc(.5 * var(--u)) 0 calc(6.2 * var(--u)); font-size: calc(.95 * var(--u)); margin-left: calc(-1.1 * var(--u)); }
.livre .tq-nomguerre p { margin: 0 0 calc(.35 * var(--u)); }
@media (prefers-reduced-motion: reduce) {
  html #modal-box > .tq-scene-affiche, .tq-scene-affiche .tq-mur > .tq-affiche, .livre .lv-texte:has(.tq-page) { animation: none !important; }
  html #modal-box .tq-sceau, html #modal-box .tq-sceau .tq-cire, .livre .tq-jauge > i { transition: none; }
}
