/*
Theme Name: AMAD
Theme URI: https://amad-sud-bergeracois.fr
Author: AMAD
Description: Thème vitrine pour l'Association de Maintien à Domicile — Sud Bergeracois.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Text Domain: amad
*/

/* Styles minimaux — Tailwind gère la majorité du rendu via CDN */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

.sr-only:focus {
	position: fixed;
	width: auto;
	height: auto;
	padding: 0.5rem 1rem;
	margin: 0;
	overflow: visible;
	clip: auto;
	white-space: normal;
}

details summary::-webkit-details-marker {
	display: none;
}

.amad-icon-box {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	min-width: 2.75rem;
}

.amad-icon-box svg {
	display: block;
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
}

.prose-amad h2 {
	font-size: 1.25rem;
	font-weight: 700;
	color: #0f172a;
	margin-top: 1.5rem;
	margin-bottom: 0.75rem;
}

.prose-amad ul {
	display: grid;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin: 0.75rem 0;
}

.prose-amad p {
	margin-bottom: 1rem;
}

.prose-amad p:last-child {
	margin-bottom: 0;
}

.amad-historique-content {
	transition: max-height 0.45s ease;
}

.amad-historique-content--collapsed {
	max-height: var(--amad-historique-collapsed-height, 18rem);
}

.amad-historique-content--expanded {
	max-height: var(--amad-historique-expanded-height, none);
}

.amad-historique-fade {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 5rem;
	background: linear-gradient(to bottom, rgba(248, 250, 252, 0), rgb(248, 250, 252));
	transition: opacity 0.3s ease;
}

.amad-historique-fade.is-hidden {
	opacity: 0;
}
