/* Annuaire public des activites (/activites) — voir public/activites/*.jsp.
   S'appuie sur site.css (variables) et actualites.css (.ac, blocs, pagination). */

.av-hero {
	margin: 18px 0 14px; padding: 34px 32px; border-radius: 18px; color: #fff;
	background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .18), transparent 45%),
		linear-gradient(135deg, #2b8a3e 0%, #1c6b2e 45%, #e8590c 130%);
}
.av-hero h1 { margin: 0 0 6px; font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.av-hero p { margin: 0 0 18px; font-size: 16px; opacity: .95; }
.av-recherche {
	position: relative; display: flex; gap: 8px; align-items: center; max-width: 760px; padding: 6px 6px 6px 42px;
	background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.av-recherche .fa { position: absolute; left: 16px; color: var(--muted); }
.av-recherche input { flex: 1; min-width: 0; height: 44px; border: 0; outline: none; font-size: 16px; color: var(--ink); }
.av-recherche select { height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; max-width: 200px; color: var(--ink); background: var(--soft); }
.av-recherche button { height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; }
@media (max-width: 600px) {
	.av-hero { padding: 24px 18px; }
	.av-hero h1 { font-size: 26px; }
	.av-recherche { flex-wrap: wrap; padding: 8px; }
	.av-recherche .fa { display: none; }
	.av-recherche input, .av-recherche select { flex: 1 1 100%; max-width: none; }
	.av-recherche button { flex: 1 1 100%; }
}

.av-cats { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: thin; }
.av-cats a {
	flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
	border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: 13.5px; white-space: nowrap;
}
.av-cats a span { font-size: 11.5px; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 0 7px; }
.av-cats a:hover { border-color: var(--accent); color: var(--ink); text-decoration: none; }
.av-cats a.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.av-cats a.is-on span { background: rgba(255, 255, 255, .2); color: #fff; }

.av-compte { color: var(--muted); margin: 8px 0 12px; }
.av-compte b { color: var(--ink); }
.av-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.av-carte {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px;
	overflow: hidden; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.av-carte:hover { transform: translateY(-2px); box-shadow: var(--shadow-fort); border-color: oklch(0.72 0.1 var(--h, 30)); color: var(--ink); text-decoration: none; }
.av-carte-visuel { display: block; height: 140px; background: linear-gradient(135deg, oklch(0.9 0.05 var(--h, 30)), oklch(0.78 0.09 var(--h, 30))); }
.av-carte-visuel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-initiale { display: grid; place-items: center; height: 100%; font-size: 52px; font-weight: 900; color: rgba(255, 255, 255, .9); text-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.av-carte-corps { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; min-width: 0; }
.av-carte-corps b { font-size: 16px; line-height: 1.3; }
.av-types { display: flex; flex-wrap: wrap; gap: 4px; }
.av-types span, .av-types a {
	font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px;
	background: oklch(0.95 0.03 var(--h, 30)); color: oklch(0.42 0.1 var(--h, 30)); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.av-ligne { font-size: 13px; color: #4a5562; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-ligne .fa { width: 14px; color: var(--muted); }
.av-ville { color: var(--muted); font-size: 12.5px; }
.av-pages { justify-content: center; margin-top: 22px; }
.av-vide { margin-top: 10px; }

/* ---------- fiche ---------- */
.av-ariane { margin-top: 18px; display: flex; gap: 6px; flex-wrap: wrap; }
.av-ariane span { color: var(--muted); }
.av-fiche-tete { display: flex; gap: 18px; align-items: center; margin: 6px 0 22px; }
.av-fiche-logo {
	flex: none; width: 92px; height: 92px; border-radius: 20px; overflow: hidden; display: grid; place-items: center;
	font-size: 40px; font-weight: 900; color: #fff; background: linear-gradient(135deg, oklch(0.75 0.11 var(--h, 30)), oklch(0.55 0.13 var(--h, 30)));
	box-shadow: var(--shadow);
}
.av-fiche-logo img { width: 100%; height: 100%; object-fit: cover; }
.av-fiche-tete h1 { margin: 6px 0 4px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.av-lieu { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .av-fiche-tete { align-items: flex-start; } .av-fiche-logo { width: 64px; height: 64px; font-size: 28px; } .av-fiche-tete h1 { font-size: 24px; } }
.av-chapo { font-size: 18px; line-height: 1.55; color: var(--ink); margin: 0 0 14px; }
.av-texte { white-space: pre-line; font-size: 16px; line-height: 1.7; color: #3d4752; max-width: 72ch; }
.av-bloc { margin-top: 26px; }
.av-bloc h2 { font-size: 18px; font-weight: 800; margin: 0 0 12px; }
.av-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.av-photos a { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--soft); }
.av-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.av-photos a:hover img { transform: scale(1.04); }
.av-services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 14px; }
.av-services li { font-size: 14.5px; }
.av-services .fa { color: var(--vert); margin-right: 6px; }
.av-voisines { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.av-voisines a { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; min-width: 0; }
.av-voisines a:hover { border-color: var(--accent); text-decoration: none; color: var(--ink); }
.av-voisines b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-voisines small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-voisines span:last-child { min-width: 0; }
.av-mini { flex: none; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; color: #fff; font-weight: 800; background: oklch(0.65 0.12 var(--h, 30)); }
.av-mini img { width: 100%; height: 100%; object-fit: cover; }
.av-coord { list-style: none; padding: 0; margin: 0 0 12px; }
.av-coord li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 14.5px; word-break: break-word; }
.av-coord .fa { width: 18px; color: var(--muted); margin-top: 3px; }
.av-itineraire { width: 100%; justify-content: center; }
.av-horaires { list-style: none; padding: 0; margin: 0; }
.av-horaires li { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; border-top: 1px solid var(--line); }
.av-horaires li:first-child { border-top: 0; }
.av-horaires span { color: var(--muted); }
