/* Carte des clubs : une carte de manuscrit, sans fond de carte externe */

.clubs { padding-block: 32px var(--section); }
.clubs__tete h1 { font-size: clamp(2.75rem, 10vw, 4.5rem); line-height: 1; margin-bottom: 24px; }
.clubs__tete .recherche { max-width: 640px; }
.clubs__message { min-height: 24px; margin: 8px 0 0; font-size: 1rem; color: var(--vermillon); }
.clubs__note { margin: 32px 0 0; max-width: 56em; font-size: var(--t-petit); line-height: 1.55; color: var(--texte-doux); }

.filtres { margin: 16px 0 24px; padding: 0; border: 0; min-width: 0; }
.filtres__liste { display: flex; flex-wrap: wrap; gap: 8px; min-height: 408px; }
.filtre { min-height: 44px; padding: 8px 16px; border: 1px solid var(--encre); background: var(--surface); color: var(--encre); font: 1rem/1.2 var(--livre); cursor: pointer; }
.filtre:hover { border-color: var(--vermillon); color: var(--vermillon); }
.filtre[aria-pressed="true"] { background: var(--lapis-fonce); border-color: var(--or); color: #F4EEDD; }

.clubs__grille { display: grid; gap: 24px; }
.carte-cadre { padding: 8px; background: var(--diapre-lapis) center / 28px; border: 2px solid var(--or); outline: 1px solid var(--or-fonce); box-shadow: var(--ombre); min-width: 0; }
#carte { height: 62vh; min-height: 400px; background: #EFE4C8; border: 2px solid var(--or); font-family: var(--livre); }
.leaflet-container { font: inherit; }
.leaflet-container a { color: var(--lien); }
.leaflet-bar a, .leaflet-bar a:hover { width: 44px; height: 44px; line-height: 44px; background: var(--velin-clair); color: var(--encre); border-color: var(--filet); font-size: 1.5rem; font-family: var(--livre); }
.leaflet-bar { border: 1px solid var(--encre) !important; border-radius: 0; box-shadow: none; }
.leaflet-bar a:first-child, .leaflet-bar a:last-child { border-radius: 0; }
.leaflet-popup-content-wrapper { border-radius: 0; background: var(--velin-clair); border: 1px solid var(--encre); box-shadow: 6px 6px 0 -1px var(--or); }
.leaflet-popup-content { margin: 16px; min-width: 200px; font-size: 1rem; line-height: 1.45; }
.leaflet-popup-tip { background: var(--encre); box-shadow: none; }
.leaflet-container a.leaflet-popup-close-button { width: 32px; height: 32px; font-size: 1.25rem; line-height: 32px; color: var(--encre); }

/* Le losange tourne à l'intérieur : Leaflet positionne l'icône avec transform. */
.losange i { display: block; width: 14px; height: 14px; margin: 3px; transform: rotate(45deg); background: var(--lapis); border: 2px solid var(--or); box-shadow: 0 0 0 1px var(--lapis-fonce); }
.losange:hover i { background: var(--vermillon); }
.grappe { display: grid; place-items: center; border-radius: 50%; background: var(--lapis-fonce); border: 2px solid var(--or); outline: 1px solid var(--lapis-fonce); color: #F2DD9A; font: 600 1.0625rem/1 var(--livre); }
.grappe:hover { background: var(--vermillon); color: var(--velin-clair); }
.ville { color: var(--encre-douce); font: italic 0.8125rem/16px var(--livre); text-align: center; white-space: nowrap; pointer-events: none; text-shadow: 0 0 3px var(--velin-clair), 0 0 3px var(--velin-clair); }

.liste__compte { margin: 0 0 16px; font-size: 1rem; line-height: 1.45; color: var(--texte-doux); }
.liste { list-style: none; margin: 0; padding: 0; }
.liste > li { padding-block: 16px; border-top: 1px solid var(--filet); }
.club p { margin: 0; }
.club__nom { font: 600 1.125rem/1.25 var(--livre); }
.club__lieu { color: var(--texte-doux); font-size: var(--t-petit); }
.club__inconnu { margin-top: 8px !important; color: var(--texte-doux); font-size: var(--t-petit); font-style: italic; }
.club__armes { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 0; padding: 0; }
.club__armes li { padding: 0 8px; border: 1px solid var(--filet); background: var(--fond); font-size: var(--t-petit); line-height: 1.6; }
.club__armes li.actif { border-color: var(--lapis); background: var(--lapis); color: var(--velin-clair); }
.club__liens { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: 8px !important; font-size: 1rem; }
.club__liens a { padding-block: 8px; }
.club__voir { min-height: 44px; margin-top: 4px; padding: 8px 0; border: 0; background: none; color: var(--vermillon); font: 0.9375rem var(--livre); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }

@media (min-width: 1024px) {
  .filtres__liste { min-height: 96px; }
  .clubs { padding-top: 48px; }
  .clubs__grille { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: start; }
  .carte-cadre { position: sticky; top: 96px; }
  #carte { height: calc(100vh - 136px); max-height: 820px; }
  .liste-cadre { max-height: calc(100vh - 112px); overflow-y: auto; padding-right: 8px; }
}
.clubs__regions { margin-top: 16px; }
.clubs__regions summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--lapis); text-decoration: underline; }
.clubs__regions summary::before { content: "▸"; margin-right: 8px; text-decoration: none; }
.clubs__regions[open] summary::before { content: "▾"; }
.clubs__regions .armes__liste--clair { margin-top: 8px; }
