/* Ajouts propres à la version statique */
.tableau-defile { overflow-x: auto; max-width: 100%; }
.tableau-defile table { min-width: 100%; }
.btn-compte svg { flex-shrink: 0; }

.sommaire-haut { margin: 0 0 30px; padding: 18px 22px; border: 1px solid var(--trait-fort); outline: 1px solid var(--trait); outline-offset: 3px; background: var(--papier); }
.sommaire-haut strong { display: flex; align-items: center; gap: 8px; font-family: var(--f-titre); font-variant: small-caps; font-size: 18px; margin-bottom: 8px; }
.sommaire-haut strong svg { width: 18px; height: 18px; color: var(--or); }
.sommaire-haut ol { margin: 0; padding-left: 22px; columns: 2 240px; column-gap: 28px; }
.sommaire-haut li { break-inside: avoid; padding: 3px 0; }
.sommaire-haut button { background: none; border: 0; padding: 0; font: inherit; color: var(--encre); text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--trait-fort); text-underline-offset: 3px; }
.sommaire-haut button:hover, .sommaire-haut button:focus-visible { color: var(--or); text-decoration-color: var(--or); }
.carte-membre .avatar.grand > img:first-child { object-position: center 30%; }

/* Photos rondes : toujours recadrées dans leur cercle, quelle que soit leur forme */
.cr-avatar img, .avatar > img:first-child { width: 100% !important; height: 100% !important; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.cr-avatar { overflow: hidden; }

/* Équipe : vignettes et carte d'identité (modèle des fiches RP) */
.grille-mini-id { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; margin: 14px 0 30px; }
.carte-equipe .mi-photo img:not(.mi-blason) { width: 100%; height: 100%; object-fit: cover; }
.carte-equipe .puces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.carte-equipe .badge-role, .carte-id .badge-role { font-size: 10px; padding: 2px 8px; }
.ci-bandeau .badge-role { border-color: rgba(255,255,255,.8) !important; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.ci-vide { color: var(--encre-2); opacity: .7; font-size: .92em; }
.ci-bandeau .badge-role { flex: none !important; display: inline-block; }

/* Équipe : Étoile, Sceaux, verso, anciens membres */
.etoile-role { display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; color: #c99a2e; font-family: var(--f-ui); font-variant: normal; }
.etoile-role .insigne-svg { width: 1.35em; height: 1.35em; }
.etoile-role b { font-size: .55em; font-weight: 700; color: var(--encre-2); }
h1 .etoile-role, h2 .etoile-role { font-size: .85em; }
.puce-fondateur { border-color: #c99a2e !important; color: #8a6a14 !important; }
.ci-sceaux { margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--trait-fort); }
.ci-sceaux > strong { display: block; font-family: var(--f-ui); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-2); margin-bottom: 8px; }
.sceaux { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sceaux-ligne { display: flex; gap: 6px; flex-wrap: wrap; }
.sceau-f svg { width: 34px; height: 34px; display: block; border-radius: 50%; }
.sceaux.grands .sceau-f svg { width: 58px; height: 58px; }
.sceau-f.manquant { filter: grayscale(1); opacity: .38; }
.sceaux small { font-family: var(--f-ui); font-size: 12px; color: var(--encre-2); font-style: italic; }
.carte-flip { perspective: 1600px; max-width: 920px; }
.carte-flip > .carte-id { transition: transform .22s ease-in; transform-origin: center; }
.carte-flip.tourne > .carte-id:not([hidden]) { transform: rotateY(90deg); }
.carte-id .ci-pied { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ci-verso { padding: 24px 26px 18px; display: flex; flex-direction: column; gap: 14px; }
.ci-verso h2 { margin: 0; font-family: var(--f-titre); font-variant: small-caps; font-size: 30px; }
.ci-verso .ci-asavoir { margin: 0; }
.carte-ancien { filter: sepia(.3) saturate(.85); --halo: #8a7357; }
.ancien-ini { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--f-titre); font-size: 30px; color: #6b5638; background: color-mix(in srgb, #8a7357 22%, var(--papier-2)); }
@media (prefers-reduced-motion: reduce) { .carte-flip > .carte-id { transition: none; } }

/* Cartes d'identité aux couleurs du clan */
.carte-flip .carte-id { border: 2px solid var(--halo); background: linear-gradient(165deg, color-mix(in srgb, var(--halo) 16%, var(--papier)) 0%, color-mix(in srgb, var(--halo) 6%, var(--papier)) 55%, color-mix(in srgb, var(--halo) 11%, var(--papier)) 100%); }
.carte-flip .ci-bandeau { border-bottom: 3px solid color-mix(in srgb, var(--halo) 60%, #000); }
.carte-flip .ci-cadre { border: 3px solid var(--halo); box-shadow: 0 0 0 4px color-mix(in srgb, var(--halo) 22%, transparent), 0 14px 26px -16px rgba(0,0,0,.55); }
.carte-flip .ci-ligne { border-bottom-color: color-mix(in srgb, var(--halo) 45%, var(--trait)); }
.carte-flip .ci-ligne dt, .carte-flip .ci-sceaux > strong, .carte-flip .hf-titre { color: color-mix(in srgb, var(--halo) 75%, var(--encre)); }
.carte-flip .ci-asavoir { border-left-color: var(--halo); background: color-mix(in srgb, var(--halo) 11%, transparent); }
.carte-flip .ci-asavoir strong { color: color-mix(in srgb, var(--halo) 75%, var(--encre)); }
.carte-flip .ci-pied { border-top: 1px solid color-mix(in srgb, var(--halo) 35%, transparent); background: color-mix(in srgb, var(--halo) 7%, transparent); }
[data-theme="sombre"] .carte-flip .ci-ligne dt, [data-theme="sombre"] .carte-flip .ci-asavoir strong, [data-theme="sombre"] .carte-flip .hf-titre { color: color-mix(in srgb, var(--halo) 60%, #fff); }

/* Recrutement : un bandeau par pôle, une carte par rôle */
.pole-recrut { margin: 34px 0 10px; }
.pole-recrut > h2 { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-left: 5px solid var(--pole); background: color-mix(in srgb, var(--pole) 13%, transparent); border-radius: 0 10px 10px 0; }
.pole-recrut > h2 small { margin-left: auto; white-space: nowrap; font-family: var(--f-ui); font-size: 12px; letter-spacing: .06em; color: var(--encre-2); font-variant: normal; }
.pole-ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--pole); color: #fff; }
.pole-ico svg, .poste-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.postes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; margin-top: 12px; align-items: start; }
.poste { border: 1px solid color-mix(in srgb, var(--pole) 40%, var(--trait)); border-top: 3px solid var(--pole); border-radius: 10px; background: var(--papier); }
.poste[open] { grid-column: 1 / -1; }
.poste summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.poste summary::-webkit-details-marker { display: none; }
.poste-ico { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--pole) 16%, transparent); color: color-mix(in srgb, var(--pole) 70%, var(--encre)); }
.poste-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.poste-txt strong { font-family: var(--f-titre); font-size: 18px; }
.poste-txt small { color: var(--encre-2); font-style: italic; line-height: 1.35; }
.poste-age { flex: none; font-family: var(--f-ui); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: color-mix(in srgb, var(--pole) 18%, transparent); color: color-mix(in srgb, var(--pole) 60%, var(--encre)); white-space: nowrap; }
.poste-chev { flex: none; color: var(--encre-3); transition: transform .15s; }
.poste-chev svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.poste[open] .poste-chev { transform: rotate(180deg); }
.poste-corps { padding: 2px 18px 14px 64px; border-top: 1px dashed color-mix(in srgb, var(--pole) 35%, var(--trait)); }
.poste summary:focus-visible { outline: 2px solid var(--pole); outline-offset: 2px; border-radius: 8px; }
@media (max-width: 560px) { .poste-corps { padding-left: 16px; } .poste summary { flex-wrap: wrap; } .poste-age { margin-left: 50px; } }
@media (prefers-reduced-motion: reduce) { .poste-chev { transition: none; } }

/* Les créateurs de la saga : parchemin, filet doré, médaillon à l'encre */
.createurs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; margin: 14px 0 26px; }
.createur { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--papier-2, var(--papier)); border: 1px solid color-mix(in srgb, #b8964f 55%, transparent); border-radius: 4px; box-shadow: inset 0 0 0 3px var(--papier-2, var(--papier)), inset 0 0 0 4px color-mix(in srgb, #b8964f 30%, transparent); }
.createur-medaillon { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--encre-2); box-shadow: inset 0 0 0 3px var(--papier-2, var(--papier)), inset 0 0 0 4px var(--encre-3); font-family: var(--f-titre); font-size: 18px; letter-spacing: .04em; color: var(--encre); }
.createur-medaillon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.createur h3 { margin: 0; font-size: 1.05rem; }
.createur-role { display: block; font-family: var(--f-ui); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9a7a35; margin: 3px 0 6px; }
[data-theme="sombre"] .createur-role { color: #d6b56a; }
.createur p { margin: 0; font-size: .92rem; line-height: 1.5; }
.createur-lien { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-family: var(--f-ui); font-size: 12.5px; font-weight: 600; }
.createur-lien svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.pied-contact { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; margin: 14px 0 6px; }
.pied-contact svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Fiches des clans et figures dans les pages */
.fiche-clan { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: start; margin: 14px 0; padding: 14px 16px; border-left: 3px solid var(--halo); background: color-mix(in srgb, var(--halo) 6%, transparent); border-radius: 0 10px 10px 0; scroll-margin-top: 90px; }
.fiche-clan img { width: 76px; height: 76px; object-fit: contain; }
.fiche-clan h3 { margin: 0 0 4px; }
.fiche-clan p { margin: 0; }
.figure-page { margin: 18px 0 24px; }
.figure-page img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 12px 30px -18px rgba(0,0,0,.6); }
.figure-page figcaption { margin-top: 6px; font-family: var(--f-ui); font-size: 12.5px; color: var(--encre-2); text-align: center; }
.part-insigne .insigne-svg { width: 34px; height: 34px; }
.part-insigne { display: inline-flex; margin-right: 8px; vertical-align: middle; }
.part-logo { flex: none; width: 54px; height: 54px; object-fit: contain; border-radius: 8px; }
@media (max-width: 480px) { .fiche-clan { grid-template-columns: 56px 1fr; } .fiche-clan img { width: 56px; height: 56px; } }
.info-bulle { cursor: help; border-bottom: 1px dotted currentColor; }
.accueil-tete { background: radial-gradient(75% 130% at 15% 50%, color-mix(in srgb, var(--or-pale) 75%, transparent), transparent 72%), linear-gradient(180deg, color-mix(in srgb, var(--or-pale) 22%, transparent), transparent); }

/* FAQ : parties, questions repliables, cartes de contact */
.faq-partie { margin: 30px 0 8px; }
.faq-partie > h2 { display: flex; align-items: center; gap: 12px; }
.faq-partie > h2 .pole-ico { --pole: var(--or, #b8964f); background: color-mix(in srgb, #b8964f 85%, #000); }
.faq-theme { margin: 22px 0 8px; font-size: 1.1rem; }
.faq-q { margin: 8px 0; border: 1px solid color-mix(in srgb, #b8964f 40%, var(--trait)); border-radius: 10px; background: var(--papier-2, var(--papier)); scroll-margin-top: 90px; }
.faq-q summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; cursor: pointer; font-family: var(--f-ui); font-weight: 600; font-size: 15px; }
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary svg { flex: none; width: 18px; height: 18px; color: var(--encre-3); transition: transform .15s; }
.faq-q[open] summary svg { transform: rotate(180deg); }
.faq-q[open] summary { border-bottom: 1px dashed color-mix(in srgb, #b8964f 35%, var(--trait)); }
.faq-q summary:focus-visible { outline: 2px solid #b8964f; outline-offset: 2px; border-radius: 8px; }
.faq-r { padding: 4px 16px 10px; }
.faq-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; margin: 12px 0 16px; }
.faq-carte { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid color-mix(in srgb, #b8964f 45%, var(--trait)); border-radius: 10px; background: var(--papier-2, var(--papier)); color: inherit; text-decoration: none; }
a.faq-carte:hover { border-color: #b8964f; }
.faq-carte > svg { flex: none; width: 15px; height: 15px; margin-left: auto; color: var(--encre-3); }
.faq-carte-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--encre-3); color: var(--encre); }
.faq-carte-ico svg { width: 18px; height: 18px; }
.faq-carte-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.faq-carte-txt strong { font-family: var(--f-ui); font-size: 14px; }
.faq-carte-txt small { color: var(--encre-2); font-size: 12.5px; overflow-wrap: anywhere; }
.faq-illus img { aspect-ratio: 21 / 8; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .faq-q summary svg { transition: none; } }
.grille-partenaires { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.annonce-partenaire { font-family: var(--f-ui); font-size: 14px; line-height: 1.5; margin-top: 4px; overflow-wrap: anywhere; }
.annonce-partenaire .ann-titre { font-weight: 800; font-size: 20px; margin: 2px 0 4px; }
.annonce-partenaire .ann-t2 { font-size: 17px; } .annonce-partenaire .ann-t3 { font-size: 15px; }
.annonce-partenaire .ann-citation { border-left: 3px solid var(--encre-3); padding-left: 10px; }
.annonce-partenaire .ann-code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: color-mix(in srgb, var(--encre) 8%, transparent); border: 1px solid var(--trait); border-radius: 6px; padding: 6px 10px; margin: 4px 0; }
.annonce-partenaire .ann-vide { height: .7em; }
.part-fondation { margin-top: 8px !important; font-family: var(--f-ui); font-size: 12px !important; color: var(--encre-2); }
.part-statut { display: inline-block; margin: 0 0 8px; padding: 2px 9px; border-radius: 99px; font-family: var(--f-ui); font-size: 11px; font-weight: 700; background: color-mix(in srgb, #3fae6a 18%, transparent); color: color-mix(in srgb, #3fae6a 60%, var(--encre)); }
.part-liens { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.part-liens .btn-mini svg { width: 13px; height: 13px; }
