/* Page FAQ générale (/faq/) — présentation « centre d’aide » validée le 2026-10-09. */

/* ---------- Commun ---------- */
.agte-fx { --fx-trait: #e4e9f0; --fx-doux: #6a7a8e; margin-top: 2.2rem; }
.agte-fx__liste { border-top: 1px solid var(--fx-trait); }
.agte-fx__item { border-bottom: 1px solid var(--fx-trait); scroll-margin-top: 6rem; }
.agte-fx__question { align-items: flex-start; cursor: pointer; display: flex; gap: 1.25rem; justify-content: space-between; list-style: none; padding: 1.3rem 0; }
.agte-fx__question::-webkit-details-marker { display: none; }
.agte-fx__question:focus-visible { border-radius: 6px; outline: var(--agte-focus); outline-offset: 4px; }
.agte-fx__titre { color: var(--agte-marine); font-size: 1.06rem; font-weight: 600; line-height: 1.45; margin: 0; transition: color 0.15s ease; }
.agte-fx__question:hover .agte-fx__titre, .agte-fx__item[open] .agte-fx__titre { color: var(--agte-bleu); }
.agte-fb mark { background: #fde8d7; border-radius: 3px; color: inherit; padding: 0; }
/* Signe + / − : deux traits, sans cadre. */
.agte-fx__signe { flex: none; height: 1.45rem; margin-top: 0.05rem; position: relative; width: 1.45rem; }
.agte-fx__signe::before, .agte-fx__signe::after { background: var(--agte-bleu); border-radius: 2px; content: ""; height: 2px; left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); transition: transform 0.2s ease, opacity 0.2s ease; width: 0.9rem; }
.agte-fx__signe::after { transform: translate(-50%, -50%) rotate(90deg); }
.agte-fx__item[open] .agte-fx__signe::after { opacity: 0; transform: translate(-50%, -50%) rotate(0deg); }
.agte-fx__reponse { color: var(--agte-texte); font-size: 1rem; line-height: 1.75; max-width: 68ch; padding: 0 2.7rem 1.6rem 0; }
.agte-fx__reponse p { margin: 0 0 0.8rem; }
.agte-fx__reponse p:last-child { margin-bottom: 0; }
.agte-fx__reponse ul { margin: 0 0 0.8rem; padding-left: 1.2rem; }
.agte-fx__reponse li { margin-bottom: 0.35rem; }
.agte-fx__reponse li::marker { color: var(--agte-accent); }

.agte-fx__recherche label { color: var(--agte-marine); display: block; font-weight: 700; margin-bottom: 0.5rem; }
.agte-fx__champ { align-items: center; display: flex; position: relative; }
.agte-fx__loupe { color: var(--fx-doux); height: 1.2rem; left: 0.95rem; pointer-events: none; position: absolute; width: 1.2rem; }
.agte-fx__champ input { -webkit-appearance: none; appearance: none; background: var(--agte-fond); border: 1px solid transparent; border-radius: 999px; color: var(--agte-texte); font: inherit; min-height: 2.9rem; padding: 0.6rem 2.8rem 0.6rem 2.75rem; width: 100%; }
.agte-fx__champ input::placeholder { color: #7b8a9c; }
.agte-fx__champ input:focus { background: #fff; border-color: var(--agte-bleu); outline: 3px solid rgba(29, 79, 138, 0.18); }
.agte-fx__champ input::-webkit-search-cancel-button { display: none; }
.agte-fx__effacer { align-items: center; background: none; border: 0; border-radius: 999px; color: var(--agte-texte-doux); cursor: pointer; display: inline-flex; font-size: 1.35rem; height: 2.2rem; justify-content: center; line-height: 1; position: absolute; right: 0.35rem; width: 2.2rem; }
.agte-fx__effacer:hover { background: var(--agte-bleu-clair); color: var(--agte-marine); }
.agte-fx__effacer:focus-visible { outline: var(--agte-focus); }
.agte-fx__etat { color: var(--fx-doux); font-size: 0.88rem; margin: 0.5rem 0 0; min-height: 1.3em; }
.agte-fx__etat:empty { min-height: 0; margin: 0; }
.agte-fx__nb { color: var(--fx-doux); font-size: 0.82rem; font-variant-numeric: tabular-nums; font-weight: 500; }
[data-agte-fx] [hidden] { display: none !important; }

/* ---------- Bandeau de recherche, filtres, rubriques ---------- */
.agte-fb__haut { background: var(--agte-marine); border-radius: 20px; color: #fff; display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding: clamp(1.6rem, 1rem + 3vw, 3rem); }
.agte-fb__recherche label { color: #fff; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); font-weight: 700; margin-bottom: 1rem; }
.agte-fb__recherche .agte-fx__champ input { background: #fff; min-height: 3.4rem; }
.agte-fb__recherche .agte-fx__champ input:focus { border-color: transparent; outline: 3px solid var(--wp--preset--color--accent-clair, #fdba74); }
.agte-fb__recherche .agte-fx__etat { color: #fff; font-size: 1rem; font-weight: 700; margin-top: 0.75rem; }
.agte-fb__populaires-titre { color: #fdba74; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; margin: 0.35rem 0 0.6rem; text-transform: uppercase; }
.agte-fb__populaires ul { list-style: none; margin: 0; padding: 0; }
.agte-fb__populaires li + li { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.agte-fb__populaires a { color: #fff; display: block; font-size: 0.95rem; line-height: 1.4; padding: 0.6rem 1.6rem 0.6rem 0; position: relative; text-decoration: none; }
.agte-fb__populaires a::after { color: #fdba74; content: "→"; position: absolute; right: 0.2rem; top: 0.6rem; transition: transform 0.15s ease; }
.agte-fb__populaires a:hover { text-decoration: underline; text-underline-offset: 3px; }
.agte-fb__populaires a:hover::after { transform: translateX(3px); }
.agte-fb__populaires a:focus-visible { outline: 3px solid #fdba74; outline-offset: 2px; }

.agte-fb__filtres { background: var(--agte-surface); margin: 2.4rem -16px 0.6rem; padding: 0.7rem 16px; position: sticky; top: 0; z-index: 5; }
.agte-fb__filtres ul { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.agte-fb__filtre { background: var(--agte-fond); border-radius: 999px; color: var(--agte-marine); display: inline-flex; font-size: 0.93rem; font-weight: 600; gap: 0.45rem; padding: 0.5rem 1rem; text-decoration: none; transition: background-color 0.15s ease, color 0.15s ease; }
.agte-fb__filtre:hover { background: var(--agte-bleu-clair); }
.agte-fb__filtre[aria-current="true"] { background: var(--agte-marine); color: #fff; }
.agte-fb__filtre[aria-current="true"] .agte-fx__nb { color: #c9d6e6; }
.agte-fb__filtre:focus-visible { outline: var(--agte-focus); outline-offset: 2px; }

.agte-fb__rubrique { display: grid; gap: 1rem 3.5rem; grid-template-columns: 15rem minmax(0, 1fr); padding: 2.6rem 0 0.4rem; scroll-margin-top: 4.5rem; }
.agte-fb__entete { align-self: start; } /* défile avec le contenu (2026-10-09) */
.agte-fb__picto { color: var(--agte-accent); display: block; margin-bottom: 0.8rem; }
.agte-fb__picto .agte-icone { height: 1.8rem; width: 1.8rem; }
.agte-fb__entete h2 { color: var(--agte-marine); font-size: 1.4rem; line-height: 1.25; margin: 0; }
.agte-fb__compte { color: var(--fx-doux); font-size: 0.9rem; margin: 0.35rem 0 0; }

.agte-fb__fin { align-items: center; border-top: 1px solid var(--fx-trait); display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; margin-top: 3rem; padding-top: 2rem; }
.agte-fb__fin p { margin: 0; }
.agte-fb__fin-titre { color: var(--agte-marine); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.2rem !important; }
.agte-fb__fin .agte-bouton { text-decoration: none; }

/* ---------- Recherche : résultats sous le champ, à la place des rubriques (2026-10-09) ---------- */
.agte-fb.is-recherche .agte-fb__haut { grid-template-columns: minmax(0, 46rem); padding-bottom: clamp(1.2rem, 0.8rem + 1.5vw, 1.8rem); }
.agte-fb__resultats { margin-top: 1.2rem; }
.agte-fb__res-outils { margin-bottom: 0.9rem; }
.agte-fb__res-effacer { align-items: center; background: #fff; border: 1px solid var(--agte-bleu); border-radius: 999px; color: var(--agte-bleu); cursor: pointer; display: inline-flex; font: inherit; font-size: 0.93rem; font-weight: 600; gap: 0.45rem; min-height: 2.75rem; padding: 0.45rem 1.1rem; transition: background-color 0.15s ease, color 0.15s ease; }
.agte-fb__res-effacer:hover { background: var(--agte-bleu); color: #fff; }
.agte-fb__res-effacer:focus-visible { outline: var(--agte-focus); outline-offset: 2px; }
.agte-fb__res-liste { border-top: 1px solid var(--fx-trait); list-style: none; margin: 0; padding: 0; }
.agte-fb__res { border-bottom: 1px solid var(--fx-trait); }
.agte-fb__res-titre { font-size: inherit; font-weight: inherit; margin: 0; }
.agte-fb__res-bouton { background: none; border: 0; color: inherit; cursor: pointer; display: grid; font: inherit; gap: 0.35rem 1.25rem; grid-template-columns: minmax(0, 1fr) auto; padding: 1.15rem 0; text-align: left; width: 100%; }
.agte-fb__res-bouton:focus-visible { border-radius: 6px; outline: var(--agte-focus); outline-offset: 4px; }
.agte-fb__res-question { color: var(--agte-marine); font-size: 1.06rem; font-weight: 600; grid-column: 1; line-height: 1.45; transition: color 0.15s ease; }
.agte-fb__res-bouton:hover .agte-fb__res-question, .agte-fb__res.is-ouvert .agte-fb__res-question { color: var(--agte-bleu); }
.agte-fb__res-extrait { color: var(--agte-texte-doux); font-size: 0.93rem; grid-column: 1; line-height: 1.6; max-width: 68ch; }
.agte-fb__res.is-ouvert .agte-fb__res-extrait { display: none; }
.agte-fb__res-signe { grid-column: 2; grid-row: 1; height: 1.45rem; margin-top: 0.05rem; position: relative; width: 1.45rem; }
.agte-fb__res-signe::before, .agte-fb__res-signe::after { background: var(--agte-bleu); border-radius: 2px; content: ""; height: 2px; left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); transition: transform 0.2s ease, opacity 0.2s ease; width: 0.9rem; }
.agte-fb__res-signe::after { transform: translate(-50%, -50%) rotate(90deg); }
.agte-fb__res.is-ouvert .agte-fb__res-signe::after { opacity: 0; transform: translate(-50%, -50%) rotate(0deg); }
.agte-fb__res-reponse { padding-bottom: 1.4rem; }
.agte-fb__res-aucun { padding: 1.4rem 0 0.5rem; }
.agte-fb__res-aucun p { color: var(--agte-texte-doux); margin: 0 0 1rem; }
.agte-fb__res-aucun .agte-fb__res-aucun-titre { color: var(--agte-marine); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.3rem; }
.agte-fb__res-aucun .agte-bouton { text-decoration: none; }
@media (prefers-reduced-motion: reduce) {
	.agte-fb__res-effacer, .agte-fb__res-question, .agte-fb__res-signe::before, .agte-fb__res-signe::after { transition: none; }
}

@media (max-width: 960px) {
	.agte-fb__haut { gap: 1.8rem; grid-template-columns: 1fr; }
	.agte-fb__rubrique { display: block; padding-top: 2rem; }
	.agte-fb__entete { align-items: center; display: flex; flex-wrap: wrap; gap: 0.2rem 0.7rem; margin-bottom: 0.8rem; position: static; }
	.agte-fb__picto { margin: 0; }
	.agte-fb__picto .agte-icone { height: 1.5rem; width: 1.5rem; }
	.agte-fb__compte { flex-basis: 100%; margin: 0; }
	.agte-fb__filtres ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.agte-fb__filtres ul::-webkit-scrollbar { display: none; }
	.agte-fb__filtre { white-space: nowrap; }
}

@media (max-width: 600px) {
	.agte-fx__reponse { padding-right: 0; }
	.agte-fx__titre { font-size: 1rem; }
	.agte-fx__question { gap: 0.9rem; padding: 1.1rem 0; }
	.agte-fb__haut { border-radius: 14px; margin: 0 -4px; }
	.agte-fb__fin .agte-bouton { justify-content: center; width: 100%; }
	.agte-fb__res-question { font-size: 1rem; }
	.agte-fb__res-bouton { gap: 0.3rem 0.9rem; padding: 1rem 0; }
	.agte-fb__res-effacer { justify-content: center; width: 100%; }
	.agte-fb__res-aucun .agte-bouton { justify-content: center; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.agte-fx__titre, .agte-fx__signe::before, .agte-fx__signe::after, .agte-fb__filtre, .agte-fb__populaires a::after { transition: none; }
}

/* ---------- Repère de survol, d'appui et de focus sur les questions (2026-10-09) ----------
   Fond bleu clair du site sur toute la ligne de la question ; texte marine (contraste élevé).
   Survol : seulement avec une souris (pas d'état « collé » après un appui sur mobile). Appui : :active. */
.agte-fx__question, .agte-fb__res-bouton { border-radius: 10px; margin-inline: -0.75rem; padding-inline: 0.75rem; transition: background-color 0.15s ease; }
@media (hover: hover) {
	.agte-fx__question:hover, .agte-fb__res-bouton:hover { background: var(--agte-bleu-clair); }
	.agte-fx__question:hover .agte-fx__titre, .agte-fb__res-bouton:hover .agte-fb__res-question { color: var(--agte-marine); }
}
/* Question ouverte : le bandeau garde le fond bleu clair tant que la réponse est dépliée (2026-10-09). */
.agte-fx__item[open] > .agte-fx__question, .agte-fb__res.is-ouvert .agte-fb__res-bouton { background: var(--agte-bleu-clair); }
.agte-fx__question:active, .agte-fb__res-bouton:active, .agte-fx__question.is-appui, .agte-fb__res-bouton.is-appui,
.agte-fx__question:focus-visible, .agte-fb__res-bouton:focus-visible { background: var(--agte-bleu-clair); }
.agte-fx__question:active .agte-fx__titre, .agte-fb__res-bouton:active .agte-fb__res-question, .agte-fx__question.is-appui .agte-fx__titre, .agte-fb__res-bouton.is-appui .agte-fb__res-question,
.agte-fx__question:focus-visible .agte-fx__titre, .agte-fb__res-bouton:focus-visible .agte-fb__res-question { color: var(--agte-marine); }
.agte-fx__question:focus-visible, .agte-fb__res-bouton:focus-visible { border-radius: 10px; outline-offset: 2px; }
.agte-fb__res-bouton:hover .agte-fb__res-extrait, .agte-fb__res-bouton:focus-visible .agte-fb__res-extrait { color: var(--agte-texte); }
@media (prefers-reduced-motion: reduce) {
	.agte-fx__question, .agte-fb__res-bouton { transition: none; }
}
/* 2026-10-12 — Menu fixe : filtres de la FAQ fixés juste sous le menu */
.agte-fb__filtres { top: var(--agte-entete-h, 72px); }
