/* Vie d'une ville (J42, décision 0122) : complète dynasties.css, dont la page reprend la grille. */
.ville-legende { font-size: .78rem; margin: .35rem 0 .1rem; line-height: 1.7; }
.ville-legende .cle { margin-inline-end: .2rem; }
.ville-legende abbr { text-decoration: none; }
.dyn-legende.ville-legende .cata-cle { border: 0; inline-size: 0; block-size: 0; border-inline: 5px solid transparent; border-block-end: 9px solid var(--texte); }
.dyn-frise .regne.sans-fiche { fill: none; stroke: var(--discret); stroke-dasharray: 3 2; }
.dyn-frise .ville-trou { fill: var(--panneau); stroke: var(--discret); stroke-width: .6; stroke-dasharray: 1 2; }
.dyn-frise .manque { font-size: 9.5px; fill: var(--discret); }
.dyn-frise .pop.deb { stroke-dasharray: 2 1.5; }
.dyn-frise .pop-flou { stroke: var(--texte); stroke-width: 1.2; opacity: .6; }
.dyn-frise .axe-pop { stroke-dasharray: 2 3; }
.dyn-frise .invention { fill: #2b8a74; }
.dyn-frise .monument { fill: var(--or-vif); stroke: none; }
.ville-point { fill: var(--texte); stroke: var(--carte); stroke-width: .5; }
.dyn-etat.sans-fiche { fill: var(--discret); fill-opacity: .15; stroke: var(--discret); stroke-dasharray: 3 2; }
.dyn-legende.ville-legende .sans-cle, .dyn-legende-carte .sans-cle { border: 1px dashed var(--discret); background: none; }
.dyn-legende.ville-legende .trou-cle { border: 1px dotted var(--discret); background: var(--panneau); }
.dyn-legende.ville-legende .forme-rond { inline-size: 8px; block-size: 8px; border-radius: 50%; border: 1.5px solid var(--texte); }
.dyn-legende.ville-legende .forme-carre { inline-size: 8px; block-size: 8px; border: 1.5px solid var(--texte); }
.dyn-legende.ville-legende .forme-triangle { inline-size: 0; block-size: 0; border: 0; border-inline: 5px solid transparent; border-block-end: 8px solid var(--texte); }
.dyn-legende.ville-legende .forme-losange { inline-size: 7px; block-size: 7px; transform: rotate(45deg); border: 1.5px solid var(--texte); }
.dyn-legende.ville-legende .inv-cle { inline-size: 8px; block-size: 8px; border: 0; background: #2b8a74; }
.dyn-legende.ville-legende .mon-cle { inline-size: 8px; block-size: 8px; border: 0; background: var(--or-vif); }

/* Index des villes en atlas (décision 0181) : complète atlas.css, dont la page reprend les blocs. */
.page-villes .atlas-pano .aire-fond { fill: color-mix(in srgb, var(--c) 10%, transparent); }
.page-villes .atlas-pano .aire-bande { fill: var(--c); }
.page-villes .atlas-pano .aire-nom { font-size: 11.5px; }
.page-villes .atlas-pano .ville-nom { font-size: 10.5px; fill: var(--texte); }
.page-villes .atlas-pano .rang a:hover .ville-nom { text-decoration: underline; }
.page-villes .atlas-pano .ligne-ville { stroke: var(--ligne); stroke-width: 1; }
/* La ligne continue de la ville : de sa fondation (ou première date sourcée) à sa destruction (ou dernière). */
.page-villes .atlas-pano .vie-ville { stroke: var(--c); stroke-width: 2.4; stroke-linecap: round; opacity: .7; }
.page-villes .atlas-pano .vie-borne { fill: var(--c); stroke: var(--texte); stroke-width: 1.2; }
.page-villes .atlas-pano path.vie-borne { fill: none; }
.page-villes .atlas-pano .conf { fill: var(--alerte); fill-opacity: .85; stroke: var(--carte); stroke-width: .6; }
.page-villes .atlas-pano .marques-aire .conf { fill-opacity: .7; }
.page-villes .atlas-pano .sei { fill: var(--carte); stroke: var(--texte); stroke-width: 1.1; }
.page-villes .atlas-pano a:hover .conf { fill-opacity: 1; stroke: var(--texte); stroke-width: 1.4; }
.page-villes .atlas-pano a:hover .sei { fill: var(--texte); }
.atlas-pano-legende { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: .35rem 0 0; font-size: .74rem; color: var(--discret); }
.atlas-pano-legende i { display: inline-block; vertical-align: -1px; margin-inline-end: .3rem; }
.l-conf { inline-size: 8px; block-size: 8px; transform: rotate(45deg); background: var(--alerte); }
.l-sei { inline-size: 0; block-size: 0; border-inline: 5px solid transparent; border-block-end: 9px solid var(--texte); }
.l-vie { inline-size: 18px; block-size: 0; border-block-start: 2.4px solid var(--or-vif); border-radius: 2px; opacity: .8; vertical-align: 2px; }
/* Mini-cartes : le point de la ville sur les côtes du fond, comme les étapes d'un grand événement. */
.mini-carte circle.ville-pt { fill: var(--c); fill-opacity: .95; stroke: var(--texte); stroke-width: 1.2px; vector-effect: non-scaling-stroke; }
.une-evo .e-c { fill: var(--alerte); }
.une-evo .e-s { fill: var(--carte); stroke: var(--texte); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.une-evo .mini-evo-svg { display: block; inline-size: 100%; block-size: 26px; direction: ltr; }
.une-evo .vide { font-style: italic; }
/* Grille resserrée : date et pays sur une ligne, peu d'espace avant les compteurs. */
.page-villes .atlas-carte { min-block-size: 0; gap: .3rem; padding-block: .55rem .45rem; }
.page-villes .atlas-carte .atlas-dates { margin-top: .1rem; }
.page-villes .atlas-carte .atlas-ar { line-height: 1.2; }
.page-villes .atlas-carte .atlas-pied { padding-top: .3rem; }

/* Listes des onglets : une date longue (« activité : années 780 », « 786/787 (170H) – 809 »)
   passe à la ligne dans sa colonne au lieu de déborder sur le nom. */
.page-ville .dyn-l .a { inline-size: 9.5rem; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
.page-ville .dyn-l { flex-wrap: nowrap; }
.page-ville .dyn-l > a, .page-ville .dyn-l > bdi { min-inline-size: 0; }
.page-ville .dyn-l .s { flex: none; max-inline-size: 45%; text-align: end; }

/* Frise : le repère survolé ressort aussitôt (aucune transition). */
.page-ville .dyn-frise a, .page-ville .dyn-frise .regne, .page-ville .dyn-frise .barre, .page-ville .dyn-frise .pop { cursor: pointer; }
.page-ville .dyn-frise .losange:hover, .page-ville .dyn-frise .catastrophe:hover { fill: var(--alerte); stroke: var(--texte); stroke-width: 2; }
.page-ville .dyn-frise .regne:hover { fill: var(--or-vif); stroke: var(--texte); stroke-width: 1.6; }
.page-ville .dyn-frise .ville-trou:hover { stroke: var(--texte); }
.page-ville .dyn-frise .barre:hover { fill-opacity: .8; stroke-width: 1.6; }
.page-ville .dyn-frise .pop:hover { stroke-width: 3; stroke: var(--alerte); }
.page-ville .dyn-frise .invention:hover, .page-ville .dyn-frise .monument:hover { stroke: var(--texte); stroke-width: 2; }

/* Grande carte de la vue Cartes : les points sont des villes, cliquables. */
.atlas-carte-monde { padding: .6rem .8rem .7rem; margin-bottom: .2rem; }
.atlas-carte-monde h2 { font: 700 .95rem var(--corps); margin: 0 0 .35rem; }
.atlas-carte-monde svg { display: block; width: 100%; max-height: 420px; height: auto; direction: ltr; border-radius: 8px; background: var(--panneau); }
.atlas-carte-monde .pays { fill: color-mix(in srgb, var(--or) 22%, var(--carte)); }
.atlas-carte-monde a .pt { fill: var(--c); fill-opacity: .92; stroke: var(--texte); stroke-width: .35; }
.atlas-carte-monde a:hover .pt { stroke-width: .9; }
.atlas-carte-monde .etiq { font: 600 3.6px var(--corps); fill: var(--texte); paint-order: stroke; stroke: var(--panneau); stroke-width: 1px; stroke-linejoin: round; pointer-events: none; }
.atlas-carte-monde .leg { margin: .4rem 0 0; font-size: .74rem; color: var(--discret); }
