/**
 * Dahu Theme Annad 2026 — page FAQ (maquette modeles/faq.png).
 *
 * Propre à ce gabarit uniquement : fond clair, tokens, cartes, champs et boutons viennent du socle
 * partagé light-zone.css (.annad-light-page). Questions = blocs « Détails » natifs, repliés/dépliés
 * sans JavaScript ; seule la recherche est scriptée (assets/js/faq-search.js).
 * Mobile-first, breakpoint 64em.
 */

/* ---------- Tête de page ---------- */

.annad-faq-page__breadcrumb {
	margin-bottom: 1.5rem;
	font-size: 0.8125rem;
	font-weight: 300;
	color: var(--light-muted);
}

.annad-faq-page__breadcrumb a {
	text-decoration: none;
}

.annad-faq-page__breadcrumb a:hover {
	text-decoration: underline;
}

.annad-faq-page__title {
	margin-bottom: 2.5rem;
	font-family: var(--font-heading);
	font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
	font-weight: 800;
	line-height: 1.15;
}

/* ---------- Champ de recherche (pilule blanche + loupe) ---------- */

.annad-faq-search {
	position: relative;
	max-width: 21rem;
	margin-bottom: 3rem;
}

.annad-faq-search__icon {
	position: absolute;
	top: 50%;
	left: 1rem;
	display: flex;
	transform: translateY(-50%);
	color: var(--light-muted);
	pointer-events: none;
}

/* Sélecteur renforcé : le socle clair impose déjà une largeur et un rayon aux champs */
.annad-light-page .annad-faq-search__input {
	width: 100%;
	min-height: 3rem;
	padding: 0.625rem 1.25rem 0.625rem 2.75rem;
	background-color: var(--light-field);
	border: 1px solid var(--light-line);
	border-radius: 999px;
}

.annad-faq-search__input::-webkit-search-cancel-button {
	cursor: pointer;
}

.annad-faq-search__empty {
	margin-bottom: 2rem;
	font-weight: 600;
}

/* ---------- Liste de questions ---------- */
/* Une question par ligne, séparateurs fins ; le bloc « Détails » natif apporte le repli. */

.annad-faq-page .annad-faq-list {
	border-top: 1px solid var(--light-line);
}

.annad-faq-page .annad-faq-entry {
	padding: 0;
	border-bottom: 1px solid var(--light-line);
}

.annad-faq-page .annad-faq-entry > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.25rem 0.25rem;
	font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
	font-weight: 700;
	line-height: 1.35;
	cursor: pointer;
	list-style: none; /* triangle natif retiré : remplacé par le chevron rond ci-dessous */
}

.annad-faq-page .annad-faq-entry > summary::-webkit-details-marker {
	display: none;
}

.annad-faq-page .annad-faq-entry > summary:focus-visible {
	outline: 2px solid var(--color-on-surface-light);
	outline-offset: -2px;
}

/* Chevron rond à droite : cercle fin + chevron, pivoté quand la question est ouverte */
.annad-faq-page .annad-faq-entry > summary::after {
	content: "";
	flex: 0 0 auto;
	width: 1.5rem;
	height: 1.5rem;
	background-color: currentColor;
	transition: transform var(--annad-transition-fast) var(--annad-ease);
	-webkit-mask: var(--annad-faq-chevron) center / contain no-repeat;
	mask: var(--annad-faq-chevron) center / contain no-repeat;
}

.annad-faq-page .annad-faq-entry[open] > summary::after {
	transform: rotate(180deg);
}

.annad-faq-page {
	/* Cercle + chevron, en SVG inline (aucun fichier image, aucune requête supplémentaire) */
	--annad-faq-chevron: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="none" stroke="black" stroke-width="1.5"/><path d="M8 10.5l4 4 4-4" fill="none" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

.annad-faq-page .annad-faq-entry > :not(summary) {
	margin: 0 0 1.5rem;
	padding-inline: 0.25rem;
	text-align: justify;
	line-height: 1.6;
	color: var(--light-muted);
}

/* ---------- Bas de page ---------- */

.annad-faq-page .annad-faq-cta {
	margin-top: 4rem;
	text-align: center;
}

.annad-faq-page .annad-faq-cta p {
	margin-bottom: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
	.annad-faq-page .annad-faq-entry > summary::after {
		transition: none;
	}
}
