/* Annuaire des entreprises du Val-d'Oise (#208). Complète actualites.css (classes .act-*) ; jetons de styles.css. */
.an-filtres { display: grid; grid-template-columns: 1fr; gap: 12px 16px; padding: 16px; align-items: end; }
.an-filtres .ui-field { min-width: 0; }
.an-filtres select.ui-input { max-width: 100%; text-overflow: ellipsis; }
.an-filtres__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 640px) { .an-filtres { grid-template-columns: repeat(2, minmax(0, 1fr)); } .an-filtres__q, .an-filtres__actions { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .an-filtres { grid-template-columns: repeat(6, minmax(0, 1fr)); } .an-filtres__q { grid-column: span 2; }
    .an-filtres__actions { grid-column: 1 / -1; } }
.an-barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.an-barre h2 { margin: 0; }
.an-barre__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.an-grille { display: grid; grid-template-columns: 1fr; gap: 12px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .an-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .an-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.an-tuile { position: relative; display: flex; align-items: flex-start; gap: 12px; min-width: 0; min-height: 96px; padding: 12px; background: #fff;
    border: 1px solid var(--c-border); border-radius: var(--r-md); box-shadow: var(--sh-1); transition: box-shadow .15s ease; }
.an-tuile:hover { box-shadow: var(--sh-2); }
.an-tuile:focus-within { outline: 2px solid var(--ui-focus); outline-offset: 2px; }
.an-tuile__logo { flex: 0 0 64px; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; padding: 6px;
    border-radius: 12px; background: #fff; border: 1px solid var(--c-border); overflow: hidden; }
.an-tuile__logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.an-tuile__logo--sigle { padding: 0; border: 0; background: #E0E7FF; color: #2E465B; font-size: 18px; font-weight: 800; letter-spacing: .02em; }
.an-tuile__texte { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.an-tuile__nom { margin: 0; font-size: 15px; line-height: 20px; font-weight: 700; overflow-wrap: anywhere; }
.an-tuile__nom a { color: var(--c-text) !important; text-decoration: none; }
.an-tuile__nom a::after { content: ""; position: absolute; inset: 0; }
.an-tuile:hover .an-tuile__nom a { color: var(--c-action-hover) !important; }
.an-tuile__usuel, .an-tuile__lieu, .an-tuile__meta { margin: 0; font-size: 13px; line-height: 18px; color: var(--c-text-2); overflow-wrap: anywhere; }
.an-tuile__usuel { color: var(--c-text-body); }
.an-tuile__meta { display: flex; flex-wrap: wrap; gap: 0 10px; }
.an-tuile__filiere { font-weight: 700; color: #2E465B; }
.an-vide { padding: 20px; margin: 0; }
.an-vide a, .an-mention a, .an-registre a { display: inline-block; padding: 11px 0; }
.an-carte-zone { display: flex; flex-direction: column; gap: 6px; }
.an-carte-zone[hidden] { display: none; }
#an-carte { width: 100%; height: 420px; border: 1px solid var(--c-border); border-radius: var(--r-md); background: #F1F5F9; z-index: 0; }
@media (max-width: 639.98px) { #an-carte { height: 340px; } }
.an-popup strong { display: block; overflow-wrap: anywhere; }
.an-popup a { display: inline-block; padding: 8px 0; font-weight: 600; }
.an-logo { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 176px; height: 99px; padding: 12px; background: #fff;
    border: 1px solid var(--c-border); border-radius: var(--r-md); }
.an-logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.an-mention { margin: 0; }
.an-liens { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.an-encart .act-renvois { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .an-tuile { transition: none; } }
.an-registre a { padding: 13px 0; }

/* #304 : recherche et boutons sur une ligne ; les listes de filtres s'ouvrent sous la ligne (menu « Filtres ») au lieu d'occuper trois rangées. */
.an-filtres { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 12px; margin: 0; }
.an-filtres__q { flex: 1 1 14rem; min-width: 0; }
.an-filtres__q .ui-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.an-filtres__q .ui-input { min-height: 44px; }
.an-filtres .an-filtres__actions { flex: none; grid-column: auto; }
.an-plus { flex: none; order: 2; }
.an-filtres__actions { order: 3; }
.an-plus__t { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--c-border-strong, var(--c-border)); border-radius: var(--r-sm); background: var(--c-surface, #fff);
    font: var(--t-compact); font-weight: 600; color: var(--c-brand); cursor: pointer; list-style: none; }
.an-plus__t::-webkit-details-marker { display: none; }
.an-plus__t::after { content: ""; width: 6px; height: 6px; margin-left: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.an-plus[open] > .an-plus__t::after { transform: rotate(-135deg); }
.an-plus__corps { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; display: grid; grid-template-columns: 1fr; gap: 12px 16px; padding: 16px; margin-top: 4px;
    border: 1px solid var(--c-border-strong, var(--c-border)); border-radius: var(--r-sm); background: var(--c-surface, #fff); box-shadow: 0 12px 24px rgba(15, 23, 42, .14); }
@media (min-width: 640px) { .an-plus__corps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .an-plus__corps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media print { .an-plus__corps { position: static; box-shadow: none; } }

/* #306 : offre « fichiers d'entreprises » en tête de l'annuaire, compacte : deux produits côte à côte. */
.act section.ui-panel.pf { padding: 12px 16px; margin: 0 0 8px; }
.act section.ui-panel.pf .ui-h2 { margin: 0 0 4px; font-size: 20px; line-height: 26px; }
.act section.ui-panel.pf > p { margin: 0 0 8px; }
.act section.ui-panel.pf .pf__liste { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.act section.ui-panel.pf .pf__liste li { padding: 0; }
.act section.ui-panel.pf .pf__liste p { margin: 0 0 4px; }
.act section.ui-panel.pf .pf__liste .ui-h3 { margin: 0 0 2px; font-size: 16px; line-height: 22px; }
.act section.ui-panel.pf .ui-help { margin: 8px 0 0; }
@media (min-width: 900px) { .act section.ui-panel.pf .pf__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; } }
.act section.ui-panel.pf p, .act section.ui-panel.pf li { font-size: 15px; line-height: 22px; }
.act section.ui-panel.pf .ui-btn--primary, .act section.ui-panel.pf .ui-btn--primary:hover { color: var(--c-on-brand, #fff); }
.act section.ui-panel.pf .ui-btn { min-height: 40px; }
.act section.ui-panel.pf .ui-actions { margin: 0; }
