/* Page d'accueil : compléments à ../style.css. */
/* Liste des atlas (et de leurs sources) : panneau caché par défaut, ouvert depuis le menu, par-dessus la carte (à droite ;
   en bas sur mobile) */
.monde { flex: 1; position: relative; min-height: 0; display: flex; }
.carte-monde { position: relative; flex: 1; min-width: 0; }
.carte-monde #carte { position: absolute; inset: 0; }
.topbar .recherche { margin-left: auto; }
.atlas {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 5; width: 360px; overflow-y: auto; background: var(--surface-1);
  border-left: 1px solid var(--border); box-shadow: -6px 0 24px rgb(0 0 0 / .12); padding: 12px 16px;
}
.atlas[hidden] { display: none; }
.atlas-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.atlas h2 { font-size: var(--taille-1); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 0; }
.atlas ul { list-style: none; margin: 0; padding: 0; }
.atlas li + li { border-top: 1px solid var(--border); }
.atlas li a { display: block; padding: 8px 10px 2px; margin: 0 -10px; border-radius: 8px; color: inherit; text-decoration: none; }
.atlas li a:hover, .atlas li a:focus-visible { background: var(--accent-soft); }
.atlas li strong { display: block; font-size: var(--taille-3); }
.atlas li span { display: block; font-size: var(--taille-1); color: var(--text-secondary); margin-top: 2px; }
.atlas .sources { font-size: var(--taille-1); color: var(--text-muted); margin: 4px 0 8px; line-height: 1.4; }
.atlas .sources i { font-style: normal; opacity: .8; }
.atlas .note { font-size: var(--taille-1); color: var(--text-muted); margin: 8px 0 0; }
@media (max-width: 900px) {
  .topbar { flex-wrap: nowrap; }
  .topbar .recherche { width: auto; flex: 1; order: 0; }
  .atlas { top: auto; left: 0; width: auto; max-height: 75%; border-left: 0; border-top: 1px solid var(--border);
           border-radius: 14px 14px 0 0; box-shadow: 0 -6px 24px rgb(0 0 0 / .15);
           padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}
/* Couches de la carte du monde (légende) : atlas, ou systèmes électoraux */
.legende-monde .couches { display: flex; flex-wrap: wrap; margin: 4px 0 8px; }
.legende-monde .couches button { font-size: var(--taille-1); padding: 4px 8px; }
