/* =========================================================================
   Annuaires de Quistinic — styles front
   Préfixe .annu — toutes les couleurs passent par des variables CSS,
   redéfinissables dans le thème enfant.
   ====================================================================== */

.annu {
	--annu-accent:      #1f7a5a;
	--annu-accent-doux: #e8f2ee;
	--annu-texte:       #1c2b26;
	--annu-texte-doux:  #5d6b66;
	--annu-trait:       #dfe4e1;
	--annu-fond-carte:  #fff;
	--annu-rayon:       10px;
	--annu-gap:         20px;

	container-type: inline-size;
	margin: 0 0 2.5rem;
}

/* --- Barre de filtres + recherche ------------------------------------- */

.annu-barre {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 14px;
}

.annu-filtres {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	flex: 1 1 460px;
}

.annu-filtre {
	font: inherit;
	font-size: 0.875rem;
	line-height: 1.2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 13px;
	border: 1px solid var(--annu-trait);
	border-radius: 999px;
	background: transparent;
	color: var(--annu-texte-doux);
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}

.annu-filtre:hover {
	border-color: var(--annu-accent);
	color: var(--annu-accent);
}

.annu-filtre.is-actif {
	background: var(--annu-accent);
	border-color: var(--annu-accent);
	color: #fff;
}

.annu-filtre__n {
	font-size: 0.72em;
	font-variant-numeric: tabular-nums;
	opacity: .65;
}

.annu-recherche { flex: 0 1 260px; }

.annu-champ {
	width: 100%;
	font: inherit;
	font-size: 0.9375rem;
	padding: 9px 14px;
	border: 1px solid var(--annu-trait);
	border-radius: 999px;
	background: #fff;
	color: var(--annu-texte);
}

.annu-champ:focus {
	outline: 2px solid var(--annu-accent);
	outline-offset: 1px;
	border-color: transparent;
}

.annu-compteur {
	font-size: 0.8125rem;
	color: var(--annu-texte-doux);
	margin: 0 0 18px;
	min-height: 1.2em;
}

/* --- Grille ----------------------------------------------------------- */

.annu-grille {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--annu-gap);
	list-style: none;
	margin: 0;
	padding: 0;
}

.annu[data-colonnes="2"] .annu-grille { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.annu[data-colonnes="4"] .annu-grille { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

@container (max-width: 520px) {
	.annu-grille { grid-template-columns: 1fr; }
}

/* --- Carte ------------------------------------------------------------ */

.annu-carte {
	display: flex;
	flex-direction: column;
	gap: 11px;
	padding: 18px;
	background: var(--annu-fond-carte);
	border: 1px solid var(--annu-trait);
	border-radius: var(--annu-rayon);
	list-style: none;
	margin: 0;
	transition: border-color .15s, box-shadow .15s;
}

.annu-carte:hover {
	border-color: color-mix(in srgb, var(--annu-accent) 45%, var(--annu-trait));
	box-shadow: 0 4px 18px rgb(0 0 0 / .06);
}

.annu-carte[hidden] { display: none; }

.annu-carte__tete {
	display: flex;
	gap: 13px;
	align-items: flex-start;
}

.annu-carte__logo {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	overflow: hidden;
	display: grid;
	place-items: center;
	background: var(--annu-accent-doux);
}

.annu-carte__logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 4px;
	display: block;
}

.annu-carte__logo--mono span {
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--annu-accent);
}

.annu-carte__ident { min-width: 0; }

.annu-carte__titre {
	font-size: 1rem;
	line-height: 1.3;
	margin: 0 0 2px;
	color: var(--annu-texte);
	overflow-wrap: anywhere;
}

.annu-carte__titre a {
	color: inherit;
	text-decoration: none;
}

.annu-carte__titre a:hover,
.annu-carte__titre a:focus-visible {
	color: var(--annu-accent);
	text-decoration: underline;
}

.annu-carte__secteur {
	font-size: 0.8125rem;
	color: var(--annu-texte-doux);
	margin: 0;
	font-style: italic;
}

/* --- Catégories ------------------------------------------------------- */

.annu-carte__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.annu-carte__cats li {
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	padding: 3px 8px;
	border-radius: 4px;
	background: var(--annu-accent-doux);
	color: var(--annu-accent);
}

/* --- Coordonnées ------------------------------------------------------ */

.annu-carte__coord {
	list-style: none;
	margin: auto 0 0;
	padding: 11px 0 0;
	border-top: 1px solid var(--annu-trait);
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.8438rem;
	line-height: 1.45;
}

.annu-l {
	position: relative;
	padding-left: 22px;
	color: var(--annu-texte-doux);
	overflow-wrap: anywhere;
}

.annu-l a {
	color: var(--annu-texte);
	text-decoration: none;
}

.annu-l a:hover,
.annu-l a:focus-visible {
	color: var(--annu-accent);
	text-decoration: underline;
}

.annu-l::before {
	content: "";
	position: absolute;
	left: 0;
	top: .18em;
	width: 15px;
	height: 15px;
	background: currentColor;
	opacity: .55;
	-webkit-mask: var(--ico) center / contain no-repeat;
	mask: var(--ico) center / contain no-repeat;
}

.annu-l--lieu { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5Z'/%3E%3C/svg%3E"); }
.annu-l--tel  { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.24 11.4 11.4 0 0 0 3.6.58 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.46.58 3.6a1 1 0 0 1-.25 1l-2.23 2.2Z'/%3E%3C/svg%3E"); }
.annu-l--mail { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2Zm0 4-8 5-8-5V6l8 5 8-5v2Z'/%3E%3C/svg%3E"); }
.annu-l--web  { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm6.9 6h-2.95a15.6 15.6 0 0 0-1.4-3.6A8 8 0 0 1 18.9 8ZM12 4.04c.65.94 1.16 2 1.5 3.96h-3c.34-1.96.85-3.02 1.5-3.96ZM4.26 14a8 8 0 0 1 0-4h3.38a16.5 16.5 0 0 0 0 4H4.26Zm.84 2h2.95c.34 1.3.81 2.53 1.4 3.6A8 8 0 0 1 5.1 16Zm2.95-8H5.1a8 8 0 0 1 4.35-3.6A15.6 15.6 0 0 0 8.05 8ZM12 19.96c-.65-.94-1.16-2-1.5-3.96h3c-.34 1.96-.85 3.02-1.5 3.96ZM14.34 14H9.66a14.7 14.7 0 0 1 0-4h4.68a14.7 14.7 0 0 1 0 4Zm.2 5.6c.6-1.07 1.07-2.3 1.41-3.6h2.95a8 8 0 0 1-4.35 3.6ZM16.36 14a16.5 16.5 0 0 0 0-4h3.38a8 8 0 0 1 0 4h-3.38Z'/%3E%3C/svg%3E"); }
.annu-l--info  { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 15h-2v-6h2v6Zm0-8h-2V7h2v2Z'/%3E%3C/svg%3E"); }
.annu-l--heure { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 10.6V6h-2v7.4l5 3 1-1.7-4-2.1Z'/%3E%3C/svg%3E"); }
.annu-l--tarif { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1.9 14.3c-.5.3-1.1.5-1.8.5-1.9 0-3.4-1.2-4-3H6.6v-1.2h1.3v-.8H6.6V10.6h1.5c.6-1.8 2.1-3 4-3 .7 0 1.3.2 1.8.5l-.5 1.4c-.4-.2-.8-.3-1.3-.3-1.1 0-2 .6-2.4 1.5h2.9v1.2H9.4v.8h3.2v1.2H9.7c.4.9 1.3 1.5 2.4 1.5.5 0 .9-.1 1.3-.3l.5 1.2Z'/%3E%3C/svg%3E"); }
.annu-l--lit   { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 13a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm12-3h-8v6H3V6H1v13h2v-3h18v3h2v-7a3 3 0 0 0-3-3Z'/%3E%3C/svg%3E"); }

/* --- États ------------------------------------------------------------ */

.annu-aucun,
.annu-vide {
	padding: 26px;
	text-align: center;
	color: var(--annu-texte-doux);
	border: 1px dashed var(--annu-trait);
	border-radius: var(--annu-rayon);
	margin: 0;
}

.annu-aucun[hidden] { display: none; }

/* --- Accessibilité ---------------------------------------------------- */

.annu :focus-visible {
	outline: 2px solid var(--annu-accent);
	outline-offset: 2px;
}

.annu .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.annu-carte,
	.annu-filtre { transition: none; }
}

/* --- Impression ------------------------------------------------------- */

@media print {
	.annu-barre,
	.annu-compteur { display: none; }
	.annu-grille { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.annu-carte { break-inside: avoid; box-shadow: none; }
}
