/* Carte des œuvres. Identity: sources/spec/DESIGN.md and app/content/identite.json through the theme tokens (tokens.css). */
.ueah-carte, .ueah-carte * { box-sizing: border-box; min-width: 0; }
.ueah-carte-filtres { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .75rem 1rem; align-items: end; margin-block: 1rem; }
.ueah-carte-filtres label { display: grid; gap: .25rem; font-weight: 700; }
.ueah-carte-filtres select { width: 100%; min-height: 44px; padding: .5rem; border: 1px solid var(--ueah-texte); border-radius: 0; background: var(--ueah-fond); color: var(--ueah-texte); font: inherit; font-weight: 400; }
.ueah-carte-filtres button { min-height: 44px; padding: .5rem 1rem; border: 1px solid currentColor; border-radius: 0; background: var(--ueah-texte); color: var(--ueah-fond); font: inherit; font-weight: 700; cursor: pointer; }
.ueah-carte-filtres a { display: inline-flex; align-items: center; min-height: 44px; }
.ueah-carte-compte { font-weight: 700; }
.ueah-carte-tablist { display: flex; flex-wrap: wrap; gap: .25rem; margin-block: 1.5rem 0; border-block-end: 2px solid var(--ueah-bordure); }
.ueah-carte-onglet { display: inline-flex; align-items: center; min-height: 44px; margin-block-end: -2px; padding: .5rem 1rem; border: 2px solid transparent; border-block-end: 0; color: inherit; font-family: var(--ueah-police-titres); font-size: var(--wp--preset--font-size--moyen, 1.375rem); text-decoration: none; }
.ueah-carte-onglet[aria-selected="true"] { border-color: var(--ueah-bordure); background: var(--ueah-fond); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.ueah-carte-onglet:hover { background: var(--ueah-brume); }
.ueah-carte-panneau { padding-block: 1.25rem; }
.ueah-carte-panneau[hidden] { display: none; }
.ueah-carte-panneau > p:first-child { margin-block-start: 0; }
/* The frame of the GIP and the dynamic map take the wide column on a large screen. */
.ueah-carte-panneau .ueah-iframe { margin: 1rem 0; }
.ueah-explorer-garde { min-height: 0; aspect-ratio: auto; }
.ueah-explorer-carte { width: 100%; min-height: min(70vh, 32rem); border: 1px solid var(--ueah-bordure); background: var(--ueah-brume); }
.ueah-explorer-carte[hidden] { display: none; }
.ueah-explorer-carte[data-ueah-fond="indisponible"] { display: grid; place-items: center; min-height: 10rem; }
.ueah-explorer-message { margin-block: .75rem; padding: .75rem 1rem; border-inline-start: 4px solid currentColor; background: var(--ueah-brume); color: var(--ueah-texte); }
.ueah-explorer-message[hidden] { display: none; }
.ueah-explorer-points { margin: 0; padding: 0; list-style: none; }
.ueah-explorer-points li { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; padding-block: .25rem; border-block-end: 1px solid var(--ueah-bordure); overflow-wrap: anywhere; }
.ueah-explorer-points a { display: inline-flex; align-items: center; min-height: 44px; }
.ueah-explorer-point { flex: 1 1 16rem; min-height: 44px; padding: .5rem .75rem; border: 1px solid currentColor; border-radius: 0; background: var(--ueah-fond); color: var(--ueah-texte); font: inherit; text-align: start; cursor: pointer; }
.ueah-explorer-point:hover { background: var(--ueah-brume); }
.ueah-explorer-point[aria-expanded="true"] { background: var(--ueah-texte); color: var(--ueah-fond); }
.ueah-explorer-volet { margin-block: 1rem; padding: 1rem; border: 1px solid var(--ueah-texte); background: var(--ueah-fond); color: var(--ueah-texte); }
.ueah-explorer-volet[hidden] { display: none; }
.ueah-explorer-volet-entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.ueah-explorer-volet-entete h3 { margin: 0; }
.ueah-explorer-volet-entete button { min-height: 44px; padding: .5rem .75rem; border: 1px solid currentColor; border-radius: 0; background: var(--ueah-fond); color: var(--ueah-texte); font: inherit; cursor: pointer; }
.ueah-explorer-volet ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1.25rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.ueah-explorer-volet figure { margin: 0 0 .5rem; }
.ueah-explorer-volet img { display: block; width: 100%; height: auto; }
.ueah-explorer-volet h4 { margin-block: .25rem; }
.ueah-explorer-volet p { margin-block: .25rem; overflow-wrap: anywhere; }
.ueah-carte-liste-section { margin-block-start: 2rem; }
.ueah-carte-vide { padding: 1rem; background: var(--ueah-brume); }
.ueah-carte-vide[hidden] { display: none; }
.ueah-carte-liste { margin: 0; padding: 0; list-style: none; counter-reset: ueah-carte; }
.ueah-carte-liste > li { counter-increment: ueah-carte; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: .75rem; padding-block: 1rem; border-block-end: 1px solid var(--ueah-bordure); }
.ueah-carte-liste > li[hidden] { display: none; }
.ueah-carte-liste > li::before { content: counter(ueah-carte); grid-row: 1 / span 6; font-family: var(--ueah-police-titres); font-size: 1.75rem; font-weight: 700; line-height: 1; }
.ueah-carte-liste > li > * { grid-column: 2; margin-block: .2rem; overflow-wrap: anywhere; }
.ueah-carte-liste h3 { margin-block: 0 .25rem; }
.ueah-carte-liste a { text-underline-offset: .15em; }
.ueah-carte-liste [data-ueah-sans-point] { padding: .5rem .75rem; border-inline-start: 4px solid currentColor; background: var(--ueah-brume); }
@media (min-width: 48em) {
  .ueah-carte-liste > li { grid-template-columns: 3rem minmax(0, 1fr); }
}
