/* FAQ page (page-faq.php, template-parts/faq/list.php and help.php, assets/js/faq-story.js).
   A paper page: the title band follows the page scheme (.gp-paper-top), the questions sit on paper (light tokens in
   both schemes), the closing band stays dark (gp-scheme-dark). faq-story.js adds .is-live to .gp-fq (it owns the
   answers) and .is-motion when motion is allowed; an inline script of the page adds .is-pre before the first paint
   (answers folded from the start) and takes it back when faq-story.js never runs. Motion is transform, opacity and
   clip-path only, plus the answers' height (grid rows 0fr → 1fr); main.css stops every transition and animation under
   reduced motion. Without JavaScript every answer shows, the search and the « + » do not. */

.gp-fq { --fq-card: #fff; --fq-r: 18px; --fq-bar: 0px; }

/* ---------- Title band and search ---------- */
.gp-fq-hero { position: relative; overflow: hidden; isolation: isolate; padding-bottom: var(--space-sheet); border-bottom: 1px solid var(--line); } /* the edge shows when the title band is light, like the paper below */
.gp-fq-hero__grid { position: relative; z-index: 1; display: grid; gap: 22px; align-items: end; }
.gp-fq-hero .gp-eyebrow { margin-bottom: .55rem; }
.gp-fq-hero__title { margin: 0; font-size: clamp(3.6rem, 2.2rem + 6vw, 7.4rem); }
.gp-fq-hero__lead { max-width: 54ch; margin-top: 1rem; color: var(--ink-2); }
.gp-fq-hero__lead > * + * { margin-top: .8em; }
.gp-fq-hero__find { display: grid; gap: 12px; justify-items: start; }
.gp-fq-hero__ghost { position: absolute; z-index: 0; top: 50%; right: calc(var(--gutter) - .06em); margin: 0; font-family: var(--font-display); font-size: clamp(15rem, 30vw, 31rem); font-weight: 800; line-height: .74; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--ink) 12%, transparent); translate: 0 -42%; transform: translateY(calc(var(--fq-h, 0) * 80px)) rotate(calc(var(--fq-h, 0) * 12deg)); transform-origin: 50% 80%; pointer-events: none; user-select: none; }
@media (min-width: 960px) {
	.gp-fq-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 600px); column-gap: clamp(32px, 4vw, 72px); }
	.gp-fq-hero__ghost { right: auto; left: clamp(270px, 25vw, 440px); }
}
@media (max-width: 959.98px) {
	.gp-fq-hero__ghost { top: calc(var(--header-total) + 2px); right: -.04em; font-size: clamp(11rem, 44vw, 15rem); translate: none; }
}

.gp-fq-search { position: relative; width: 100%; }
.gp-fq:not(.is-live):not(.is-pre) .gp-fq-search { display: none; } /* no script, no search: every answer shows below */
.gp-fq-search__input { display: block; width: 100%; min-height: 62px; margin: 0; padding: 0 64px 0 56px; border: 1.5px solid var(--field-line); border-radius: 999px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: 1.0625rem; font-weight: 500; line-height: 1.3; -webkit-appearance: none; appearance: none; }
.gp-fq-search__input::placeholder { color: var(--muted); opacity: 1; }
.gp-fq-search__input::-webkit-search-cancel-button, .gp-fq-search__input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.gp-fq-search__input:focus { border-color: var(--accent-ink); outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.gp-fq-search__icon { position: absolute; top: 50%; left: 20px; display: grid; color: var(--ink-2); translate: 0 -50%; pointer-events: none; }
.gp-fq-search__icon .gp-i { width: 22px; height: 22px; }
.gp-fq-search__key, .gp-fq-find__key { display: none; min-width: 26px; height: 26px; padding: 0 8px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 7px; color: var(--muted); font: 700 .8rem/23px var(--font-body); text-align: center; }
.gp-fq-search__key { position: absolute; top: 50%; right: 22px; translate: 0 -50%; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
	.gp-fq-search__key, .gp-fq-find__key { display: block; }
	.gp-fq-search.has-value .gp-fq-search__key, .gp-fq-search__input:focus ~ .gp-fq-search__key { display: none; }
}
.gp-fq-search__clear { position: absolute; top: 50%; right: 9px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); translate: 0 -50%; cursor: pointer; }
.gp-fq-search__clear:hover { background: var(--surface-3); }
.gp-fq-search__clear .gp-i { width: 20px; height: 20px; }
@media (max-width: 599.98px) {
	.gp-fq-search__input { min-height: 56px; padding: 0 52px 0 48px; font-size: 1rem; }
	.gp-fq-search__icon { left: 16px; }
	.gp-fq-search__clear { right: 6px; }
	.gp-fq-search__key { display: none !important; }
}

/* Live status « Ouvert · jusqu’à 18 h » (shown by the script, from the opening hours of the settings). */
.gp-fq-live { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 44px; margin: 0; padding: 8px 16px 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-1); color: var(--ink); font-size: .9rem; font-weight: 650; line-height: 1.3; text-decoration: none; }
a.gp-fq-live:hover { background: var(--surface-2); }
.gp-fq-live__lead { padding-right: 10px; border-right: 1px solid var(--line); color: var(--ink-2); font-weight: 500; }
.gp-fq-live__dot { position: relative; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.gp-fq-live.is-open .gp-fq-live__dot { background: var(--accent-ink); }
.gp-fq-live__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
	.gp-fq-live.is-open .gp-fq-live__dot::after { animation: gp-fq-ping 2.2s ease-out 2; } /* two pulses, under 5 s (WCAG 2.2.2), then still */
}
@keyframes gp-fq-ping { 0% { opacity: .6; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(2.8); } }

/* ---------- Layout: topics beside the questions (large screens), a sticky row of chips above them (phones) ---------- */
.gp-fq-body { padding-block: var(--space-sheet) var(--space-section); } /* a band's padding under the title band, the section room above the help band (main.css) */
.gp-fq-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.gp-fq-main { min-width: 0; }

.gp-fq-find { display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 0; padding: 0 12px 0 16px; border: 1.5px solid var(--field-line); border-radius: 999px; background: var(--fq-card); color: var(--ink-2); font: inherit; font-size: .95rem; text-align: left; cursor: pointer; }
.gp-fq-find:hover { border-color: var(--ink); color: var(--ink); }
.gp-fq-find .gp-i { width: 20px; height: 20px; }
.gp-fq-find__key { margin-left: auto; }

.gp-fq-nav { position: relative; }
.gp-fq-nav__label { margin: 0 0 8px; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.gp-fq-nav__list { position: relative; margin: 0; padding: 0; list-style: none; }
.gp-fq-nav__item { margin: 0; }
.gp-fq-nav__link { position: relative; color: var(--ink-2); text-decoration: none; isolation: isolate; }
.gp-fq-nav__link:hover, .gp-fq-nav__link.is-active { color: var(--ink); }
.gp-fq-nav__num { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.gp-fq-nav__link.is-active .gp-fq-nav__num { color: var(--accent-ink); }
.gp-fq-nav__count { flex: none; min-width: 28px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .76rem; font-weight: 700; line-height: 1.35; text-align: center; font-variant-numeric: tabular-nums; }
.gp-fq-nav__bar { display: block; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.gp-fq-nav__bar i { display: block; height: 100%; background: var(--accent-ink); transform: scaleX(var(--p, 0)); transform-origin: left; }
.gp-fq-nav__glide { position: absolute; top: 0; left: 0; display: none; width: 2px; height: 1px; background: var(--accent-ink); transform-origin: 0 0; transform: scaleY(0); pointer-events: none; }
.gp-fq.is-motion .gp-fq-nav__glide { transition: transform .55s var(--ease-out); }
.gp-fq-side__help { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; color: var(--ink); font-size: .92rem; font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent-ink); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.gp-fq-side__help .gp-i { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.gp-fq-side__help:hover .gp-i { transform: translateX(4px); }
.gp-fq-side__progress { display: none; }

@media (min-width: 960px) {
	.gp-fq-layout { grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); column-gap: clamp(36px, 5vw, 88px); }
	.gp-fq-layout--single { grid-template-columns: minmax(0, 1fr); }
	.gp-fq-side { position: sticky; top: calc(var(--header-total) + 24px); display: grid; gap: 22px; max-height: calc(100vh - var(--header-total) - 40px); padding: 2px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
	.gp-fq-nav__list { display: grid; gap: 2px; padding-left: 16px; border-left: 2px solid var(--line); }
	.gp-fq-nav__glide { display: block; }
	.gp-fq-nav__link { display: grid; grid-template-columns: 2em minmax(0, 1fr) auto; align-items: baseline; column-gap: 6px; min-height: 44px; padding: 9px 0; font-size: .94rem; font-weight: 600; line-height: 1.3; }
	.gp-fq-nav__bar { grid-column: 2 / -1; margin-top: 8px; opacity: 0; }
	.gp-fq-nav__link.is-active .gp-fq-nav__bar { opacity: 1; }
	.gp-fq.is-motion .gp-fq-nav__bar { transition: opacity .3s ease; }
	.gp-fq-nav__link.is-active .gp-fq-nav__count { background: var(--accent); color: var(--on-accent); }
}

@media (max-width: 959.98px) {
	.gp-fq { --fq-bar: 68px; } /* height of the sticky row of topics */
	.gp-fq-side { position: sticky; z-index: 30; top: var(--header-total); display: flex; align-items: center; gap: 8px; margin: 0 calc(-1 * var(--gutter)) 18px; padding: 9px var(--gutter); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); transition: transform var(--dur-header) var(--ease-out); }
	body:has(#gp-header.is-hidden) .gp-fq-side { transform: translateY(calc(-1 * var(--header-h))); } /* the bar follows the header when it slides away (main.js, phones) */
	.gp-fq-find { flex: none; justify-content: center; width: 44px; height: 44px; min-height: 0; padding: 0; color: var(--ink); }
	.gp-fq-find .gp-fq-find__key { display: none; } /* the « / » hint does not fit in the round button (narrow desktop windows) */
	.gp-fq-find__label, .gp-fq-nav__label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
	.gp-fq-nav { flex: 1; min-width: 0; }
	.gp-fq-nav__list { display: flex; gap: 6px; padding: 2px 28px 2px 10px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 30px), transparent); }
	.gp-fq-nav__name { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; } /* two lines at most: the full name heads the topic */
	.gp-fq-nav__list::-webkit-scrollbar { display: none; }
	.gp-fq-nav__item { flex: none; }
	.gp-fq-nav__link { display: flex; align-items: center; gap: 8px; min-height: 44px; max-width: 15em; padding: 5px 7px 5px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--fq-card); color: var(--ink); font-size: .86rem; font-weight: 600; line-height: 1.15; }
	.gp-fq-nav__link::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: var(--accent); opacity: 0; }
	.gp-fq.is-motion .gp-fq-nav__link { transition: background-color .3s ease; }
	.gp-fq-nav__link.is-active { border-color: transparent; background: var(--accent); } /* on the chip itself, so its text always reads against it */
	.gp-fq-nav__link.is-active::before { opacity: 1; }
	.gp-fq-nav__num, .gp-fq-nav__bar, .gp-fq-side__help { display: none; }
	.gp-fq-side__progress { position: absolute; right: 0; bottom: -1px; left: 0; display: block; height: 2px; overflow: hidden; }
	.gp-fq-side__progress i { display: block; height: 100%; background: var(--accent-ink); transform: scaleX(0); transform-origin: left; }
}
@media (max-width: 959.98px) and (max-height: 480px) {
	body:has(#gp-header.is-hidden) .gp-fq-side { transform: translateY(calc(-1 * var(--header-total))); }
}

/* ---------- Summary, « Tout ouvrir », no result ---------- */
.gp-fq-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; min-height: 44px; margin-bottom: 10px; }
.gp-fq-tools__sum { margin: 0; color: var(--ink-2); font-size: .95rem; font-weight: 600; }
.gp-fq-tools__all, .gp-fq-empty__clear { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 8px 2px; border: 0; background: none; color: var(--ink); font: inherit; font-size: .92rem; font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent-ink); text-decoration-thickness: 2px; text-underline-offset: .3em; cursor: pointer; }
.gp-fq-tools__all:hover, .gp-fq-empty__clear:hover { text-decoration-thickness: 3px; }

.gp-fq-empty { margin: 0 0 28px; padding: clamp(22px, 3vw, 34px); border: 1.5px dashed var(--field-line); border-radius: 22px; background: var(--fq-card); }
.gp-fq-empty__title { margin: 0; font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; overflow-wrap: anywhere; }
.gp-fq-empty__text { max-width: 56ch; margin: .55em 0 0; color: var(--ink-2); }
.gp-fq-empty .gp-fq-acts { margin-top: 18px; }
.gp-fq-empty__clear { margin-top: 10px; }
.gp-fq.is-motion .gp-fq-empty:not([hidden]) { animation: gp-fq-in .5s var(--ease-out) both; }

/* ---------- Topics and questions ---------- */
.gp-fq-group { scroll-margin-top: calc(var(--fq-bar) + 4px); }
.gp-fq-group:not([hidden]) ~ .gp-fq-group { margin-top: clamp(40px, 5vw, 68px); } /* a topic the search hides leaves no gap */
.gp-fq-group__head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: clamp(14px, 1.6vw, 22px); margin-bottom: 16px; }
.gp-fq-group__num { position: relative; grid-row: 1 / span 2; padding-top: .1em; color: transparent; font-family: var(--font-display); font-size: clamp(2.8rem, 2rem + 2.6vw, 4.4rem); font-weight: 800; line-height: .8; letter-spacing: -.03em; font-variant-numeric: tabular-nums; -webkit-text-stroke: 1.5px var(--accent-ink); }
.gp-fq-group__num::after { content: attr(data-n); position: absolute; inset: 0; padding-top: inherit; color: var(--accent-ink); -webkit-text-stroke: 0; clip-path: inset(100% 0 0 0); }
.gp-fq.is-motion .gp-fq-group__num::after { transition: clip-path .9s var(--ease-out); }
.gp-fq:not(.is-live) .gp-fq-group__num::after, .gp-fq-group.is-reached .gp-fq-group__num::after { clip-path: inset(0); } /* fills in once the topic is reached */
.gp-fq-group__title { margin: 0; font-family: var(--font-display); font-size: clamp(1.4rem, 1.05rem + 1.3vw, 2.15rem); font-weight: 800; line-height: 1.04; letter-spacing: -.015em; text-wrap: balance; }
.gp-fq-group__count { margin: 6px 0 0; color: var(--muted); font-size: .88rem; font-weight: 600; }

.gp-fq-items { display: grid; gap: 8px; }
/* The questions of a topic rise in, one after the other (--k), the first time the topic comes into view. */
.gp-fq.is-motion .gp-fq-items > .gp-fq-item { transition: opacity .55s ease calc(var(--k, 0) * 55ms), transform .8s var(--ease-out) calc(var(--k, 0) * 55ms); }
.gp-fq.is-motion .gp-fq-items:not(.is-in) > .gp-fq-item { opacity: 0; transform: translateY(22px); }
.gp-fq-item { position: relative; border: 1px solid var(--line); border-radius: var(--fq-r); background: var(--fq-card); scroll-margin-top: calc(var(--fq-bar) + 8px); }
.gp-fq-item::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 1px 0 rgba(18, 19, 22, .04), 0 22px 44px -28px rgba(18, 19, 22, .45); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.gp-fq-item:hover::after, .gp-fq-item.is-open::after { opacity: 1; }
.gp-fq-item.is-open { border-color: color-mix(in srgb, var(--ink) 22%, transparent); }
.gp-fq-item__h { position: relative; z-index: 1; margin: 0; font: inherit; letter-spacing: normal; text-transform: none; color: inherit; }
.gp-fq-item__btn { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 64px; margin: 0; padding: 14px 14px 14px 22px; border: 0; border-radius: calc(var(--fq-r) - 1px); background: none; color: var(--ink); font: inherit; font-size: clamp(1rem, .97rem + .2vw, 1.09rem); font-weight: 650; line-height: 1.38; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gp-fq-item__btn:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: -3px; border-radius: calc(var(--fq-r) - 1px); }
.gp-fq-item__q { min-width: 0; overflow-wrap: anywhere; text-wrap: pretty; }
@media (hover: hover) { .gp-fq-item__btn:hover .gp-fq-item__q { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; } }
.gp-fq-item__icon { position: relative; display: grid; place-items: center; flex: none; width: 38px; height: 38px; color: var(--ink); }
.gp-fq-item__icon::before, .gp-fq-item__icon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.gp-fq-item__icon::before { background: var(--surface-2); }
.gp-fq-item__icon::after { background: var(--accent); opacity: 0; transform: scale(.35); }
.gp-fq-item__icon .gp-i { position: relative; z-index: 1; width: 20px; height: 20px; }
.gp-fq.is-live .gp-fq-item__icon::after { transition: opacity .3s ease, transform .5s var(--ease-out); }
.gp-fq.is-live .gp-fq-item__icon .gp-i { transition: transform .5s var(--ease-out); }
.gp-fq-item.is-open .gp-fq-item__icon, .gp-fq.is-pre:not(.is-live) .gp-fq-item:target .gp-fq-item__icon { color: var(--on-accent); }
.gp-fq-item.is-open .gp-fq-item__icon::after, .gp-fq.is-pre:not(.is-live) .gp-fq-item:target .gp-fq-item__icon::after { opacity: 1; transform: none; }
.gp-fq-item.is-open .gp-fq-item__icon .gp-i, .gp-fq.is-pre:not(.is-live) .gp-fq-item:target .gp-fq-item__icon .gp-i { transform: rotate(135deg); }
.gp-fq:not(.is-live):not(.is-pre) .gp-fq-item__icon { display: none; } /* no script: every answer shows, nothing to toggle */
.gp-fq:not(.is-live):not(.is-pre) .gp-fq-item__btn { cursor: default; }
/* The whole row is the button, so the floating WhatsApp button (bottom right) never covers all of it; html's
   scroll-padding-bottom (main.css) keeps a focused question above it. No room is reserved: phones keep the width. */
@media (max-width: 599.98px) {
	.gp-fq-item__btn { gap: 10px; min-height: 60px; padding: 12px 10px 12px 16px; font-size: 1rem; }
	.gp-fq-item__icon { width: 36px; height: 36px; }
}

/* The answer. Folded from the first paint (.is-pre, set by the page's inline script), except the one the address
   points to; the script then owns .is-open. The rows go 0fr → 1fr; a folded answer is hidden from the keyboard and
   screen readers (visibility), and takes hidden="until-found" once folded, whose content find-in-page still searches. */
.gp-fq.is-pre .gp-fq-item__panel, .gp-fq.is-live .gp-fq-item__panel { display: grid; grid-template-rows: 0fr; visibility: hidden; }
.gp-fq.is-pre:not(.is-live) .gp-fq-item:target .gp-fq-item__panel, .gp-fq .gp-fq-item.is-open .gp-fq-item__panel { grid-template-rows: 1fr; visibility: visible; }
.gp-fq.is-live .gp-fq-item__panel { transition: grid-template-rows .5s var(--ease-out), visibility 0s linear .5s; }
.gp-fq.is-live .gp-fq-item.is-open .gp-fq-item__panel { transition: grid-template-rows .5s var(--ease-out), visibility 0s; }
.gp-fq-item__panel[hidden="until-found"] { display: grid !important; }
.gp-fq.is-live .gp-fq-item__panel[hidden="until-found"] { visibility: visible; }
.gp-fq-item__inner { min-height: 0; overflow: hidden; }
.gp-fq-item__body { max-width: 70ch; padding: 0 22px 20px; color: var(--ink-2); line-height: 1.65; }
.gp-fq.is-live .gp-fq-item__body { opacity: 0; translate: 0 -8px; transition: opacity .2s ease, translate .3s var(--ease-out); }
.gp-fq.is-live .gp-fq-item.is-open .gp-fq-item__body { opacity: 1; translate: none; transition: opacity .45s ease .1s, translate .6s var(--ease-out) .1s; }
.gp-fq-item.is-instant .gp-fq-item__panel, .gp-fq-item.is-instant .gp-fq-item__body, .gp-fq-item.is-instant .gp-fq-item__icon::after, .gp-fq-item.is-instant .gp-fq-item__icon .gp-i { transition: none !important; }
@media (max-width: 599.98px) { .gp-fq-item__body { padding-inline: 16px; } }
.gp-fq-item__body > * { margin: 0; }
.gp-fq-item__body > * + * { margin-top: .75em; }
.gp-fq-item__body ul, .gp-fq-item__body ol { padding-left: 1.25em; list-style: disc; }
.gp-fq-item__body ol { list-style: decimal; }
.gp-fq-item__body li + li { margin-top: .3em; }
.gp-fq-item__body a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent-ink); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.gp-fq-item__body a:hover { text-decoration-thickness: 3px; }
.gp-fq-item__body .gp-fq-more { margin-top: .35em; }
.gp-fq-item__body .gp-fq-more a { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; }
.gp-fq-item__body .gp-fq-more a::after { content: ""; flex: none; width: 1.1em; height: 1.1em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .35s var(--ease-out); }
.gp-fq-item__body .gp-fq-more a:hover::after { transform: translateX(4px); }
.gp-fq-item__foot { display: flex; justify-content: flex-end; margin: -8px 0 0; padding: 0 10px 8px; }
.gp-fq-item__copy { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: .84rem; font-weight: 650; cursor: pointer; }
.gp-fq-item__copy:hover { background: var(--surface-2); color: var(--ink); }
.gp-fq-item__copy.is-done { color: var(--accent-ink); }
.gp-fq-item__copy .gp-i { width: 18px; height: 18px; }

/* Search: marks, the passage of an answer-only match, questions coming back. */
.gp-fq-mark { padding: 0 .05em; border-radius: .2em; background: color-mix(in srgb, var(--accent) 72%, transparent); color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.gp-fq-item__hint { position: relative; z-index: 1; margin: -8px 0 0; padding: 0 22px 16px; color: var(--muted); font-size: .9rem; line-height: 1.5; cursor: pointer; }
.gp-fq-item.is-open .gp-fq-item__hint { display: none; }
@media (max-width: 599.98px) { .gp-fq-item__hint { padding-inline: 16px; } }
.gp-fq.is-motion .gp-fq-item.is-back { animation: gp-fq-in .45s var(--ease-out) both; }
@keyframes gp-fq-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* The question an address points to: one ring, then nothing. */
.gp-fq-item.is-flash::before { content: ""; position: absolute; inset: -5px; z-index: 2; border: 2px solid var(--accent-ink); border-radius: calc(var(--fq-r) + 5px); opacity: 0; animation: gp-fq-flash 1.6s var(--ease-out) both; pointer-events: none; }
@keyframes gp-fq-flash { 0% { opacity: 0; transform: scale(.985); } 20% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ---------- Focus: the site's ring (main.css), keeping each shape; inside the scrolling boxes it is drawn inside ---------- */
.gp-fq-find:focus-visible, a.gp-fq-live:focus-visible, .gp-fq-search__clear:focus-visible, .gp-fq-item__copy:focus-visible { border-radius: 999px; }
.gp-fq-act:focus-visible { border-radius: 20px; }
.gp-fq-nav__link:focus-visible { outline-offset: -2px; border-radius: 10px; }
@media (max-width: 959.98px) { .gp-fq-nav__link:focus-visible { border-radius: 999px; } }
@media (min-width: 960px) { .gp-fq-side { margin: -6px; padding: 6px; } }

/* ---------- Plain chapters of the page ---------- */
.gp-fq-plain .gp-prose { padding-block: 0 clamp(40px, 5vw, 70px); }

/* ---------- Closing band: « Toujours besoin d’aide ? » ---------- */
.gp-fq-help { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(56px, 7.5vw, 112px); border-radius: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) 0 0; background: var(--bg); }
.gp-fq-help__glow { position: absolute; z-index: -1; top: -30%; right: -12%; width: min(78vw, 980px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 20%, transparent), transparent 64%); transform: translate3d(calc((1 - var(--fq-b, 1)) * 14%), calc((1 - var(--fq-b, 1)) * -10%), 0) scale(calc(.8 + var(--fq-b, 1) * .2)); opacity: calc(.35 + var(--fq-b, 1) * .65); pointer-events: none; }
.gp-fq-help__grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 960px) { .gp-fq-help__grid:not(.gp-fq-help__grid--solo) { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.gp-fq-help .gp-fq-live { margin-bottom: 18px; }
.gp-fq-help__title { margin: 0; }
.gp-fq-help__body { max-width: 54ch; margin-top: 18px; color: var(--ink-2); font-size: clamp(1.02rem, .98rem + .25vw, 1.15rem); line-height: 1.6; }
.gp-fq-help__body > * { margin: 0; }
.gp-fq-help__body > * + * { margin-top: .8em; }
.gp-fq-help__body a { color: var(--ink); font-weight: 650; text-decoration: underline; text-decoration-color: var(--accent-ink); text-decoration-thickness: 2px; text-underline-offset: .2em; white-space: nowrap; }
.gp-fq-help__body a:hover { text-decoration-thickness: 3px; }
.gp-fq-help__btns { margin-top: 28px; }

.gp-fq-acts { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.gp-fq-acts > li { margin: 0; }
.gp-fq-act { position: relative; display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 14px 20px 14px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-1); color: var(--ink); text-decoration: none; overflow: hidden; isolation: isolate; }
.gp-fq-act::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--surface-2); opacity: 0; transition: opacity .25s ease; }
.gp-fq-act:hover::before { opacity: 1; }
.gp-fq-act__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: var(--on-accent); transition: transform .45s var(--ease-out); }
.gp-fq-act:hover .gp-fq-act__icon { transform: rotate(-8deg) scale(1.06); }
.gp-fq-act__icon .gp-i { width: 22px; height: 22px; }
.gp-fq-act__text { display: grid; min-width: 0; }
.gp-fq-act__label { font-weight: 700; line-height: 1.25; }
.gp-fq-act__value { color: var(--ink-2); font-size: .92rem; line-height: 1.35; overflow-wrap: anywhere; }
.gp-fq-act__go { flex: none; margin-left: auto; color: var(--accent-ink); transition: transform .35s var(--ease-out); }
.gp-fq-act:hover .gp-fq-act__go { transform: translateX(5px); }
.gp-fq-act__go .gp-i { width: 22px; height: 22px; }
.gp-fq-acts--compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.gp-fq-acts--compact .gp-fq-act { min-height: 64px; padding: 10px 14px 10px 10px; gap: 12px; background: var(--paper); }
.gp-fq-acts--compact .gp-fq-act__icon { width: 42px; height: 42px; border-radius: 12px; }

/* ---------- Professionnels (/espace-pro/faq/, template-parts/faq/pro-page.php) and the Pro world ----------
   The Espace Pro section nav heads the title band (pro.css styles it). A long title (« FAQ Professionnels ») is set
   smaller, the search under it. In the Pro world the accent is a cream fill: text on it takes --on-accent (dark,
   as on lime); on the paper the cream is 1.08:1, so the current chip takes an olive rim and the marks of the search a
   tint of the olive ink (#121316 on it 11.9:1) (G1). */
.gp-fq-hero__nav { position: relative; z-index: 1; }
.gp-fq-hero__nav .gp-pro-nav { margin-bottom: clamp(18px, 2.6vw, 34px); }
.gp-fq-hero--stack .gp-fq-hero__title { font-size: clamp(2.2rem, 1rem + 5vw, 6rem); }
.gp-fq-hero--stack .gp-fq-hero__grid { grid-template-columns: minmax(0, 1fr); row-gap: clamp(18px, 2.4vw, 28px); }
@media (min-width: 960px) {
	.gp-fq-hero--stack .gp-fq-hero__find { grid-template-columns: minmax(0, 600px) auto; align-items: center; column-gap: 16px; }
	.gp-fq-hero--stack .gp-fq-hero__ghost { right: calc(var(--gutter) - .06em); left: auto; }
}
:root[data-gp-world="b2b"] .gp-fq { --fq-mark: color-mix(in srgb, var(--accent-ink) 24%, transparent); }
:root[data-gp-world="b2b"] .gp-fq-mark { background: var(--fq-mark); }
@media (max-width: 959.98px) {
	:root[data-gp-world="b2b"] .gp-fq-nav__link.is-active { color: var(--on-accent); }
	:root[data-gp-world="b2b"] .gp-fq-nav__link.is-active { box-shadow: 0 0 0 1.5px var(--accent-rim); } /* outside the ::before fill: olive on the paper, none on dark (G1) */
	:root[data-gp-world="b2b"] .gp-fq-nav__link.is-active .gp-fq-nav__count { background: rgba(255, 255, 255, .3); color: var(--on-accent); } /* a lighter cream: #0a0b0d on it 19.4:1 */
	:root[data-gp-world="b2b"] .gp-fq-nav__link.is-active:focus-visible { outline-color: var(--band-focus, #0a0b0d); }
}
