/* =========================================================
   TATEA — S10 « Questions fréquentes » : 4 pistes dans la grille commune
   intro + 4 thèmes + bouton jaune à gauche (--col), la mise en page de la piste à droite (--r).
   Piste A « l'accordéon » retenue le 2026-10-15 ; les styles des pistes B, C, D restent ici tant que rien n'est figé.
   ========================================================= */
[data-fq] .fq__groups { display: none; }
.fqx button { font: inherit; color: inherit; text-align: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.fqx h3, .fqx h4, .fqx p, .fqx ol { margin: 0; }
.fqx ol { padding: 0; list-style: none; }

/* la grille commune */
.fqx { position: absolute; left: var(--edge); right: var(--edge); top: calc(var(--top) + var(--tth, 110px) + var(--tg)); bottom: var(--bot);
  display: grid; grid-template-columns: minmax(0, var(--col)) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "intro vis" "side vis" "foot vis"; gap: 16px var(--gap); }
.fqx .fq__intro { grid-area: intro; font-size: var(--intro); line-height: 1.45; color: var(--text); max-width: 38ch; }
.fqx__vis { grid-area: vis; position: relative; min-height: 0; }
.fqx .fq__foot { grid-area: foot; display: grid; justify-items: start; }

/* les 4 thèmes : le thème en cours en bleu nuit */
.fqx__side { grid-area: side; align-self: start; display: grid; gap: 6px; max-width: 360px; }
.fqx__side button:hover::before { background: rgb(22 33 61 / .1); }
.fqx__side button { position: relative; isolation: isolate; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; padding: 11px 16px; border-radius: 12px; transition: color .35s; }
.fqx__side button::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgb(22 33 61 / .06); transition: opacity .35s; }
.fqx__side button::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--night); opacity: 0; transition: opacity .35s; }
.fqx__side b { font-size: 15px; font-weight: 500; }
.fqx__side i { display: none; }
.fqx__side small { font-size: 12.5px; color: var(--text); transition: color .35s; }
.fqx__side li.on button { color: #fff; }
.fqx__side li.on button::after { opacity: 1; }
.fqx__side li.on small { color: var(--gold); }

.fqx__k { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-strong); }

/* ---------- A : l'accordéon ---------- */
.fqx__card { position: absolute; inset: 0; padding: clamp(20px, 2.4vw, 36px); border-radius: var(--r); background: #fff; color: var(--ink); overflow: hidden; }
.fqx__pane { position: absolute; inset: clamp(20px, 2.4vw, 36px); visibility: hidden; transition: visibility 0s .3s; }
.fqx__pane.on { visibility: visible; transition: none; }
.fqx__pane .fqx__k { margin-bottom: 10px; opacity: 0; transition: opacity .3s; }
.fqx__pane.on .fqx__k { opacity: 1; }
.fqx__qa { border-bottom: 1px solid rgb(22 33 61 / .1); opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity .25s, transform .3s; }
.fqx__pane.on .fqx__qa { opacity: 1; transform: none; transition: opacity .4s, transform .5s var(--ease); }
.fqx__pane.on .fqx__qa:nth-of-type(2) { transition-delay: 60ms; }
.fqx__pane.on .fqx__qa:nth-of-type(3) { transition-delay: 120ms; }
.fqx__pane.on .fqx__qa:nth-of-type(4) { transition-delay: 180ms; }
.fqx__qa > button { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: clamp(14px, 2vh, 20px) 0; font-size: clamp(16px, 1.25vw, 19px); font-weight: 500; }
.fqx__qa i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #f1f2f4; transition: background-color .35s, transform .45s var(--ease); }
.fqx__qa i::before, .fqx__qa i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: currentColor; }
.fqx__qa i::after { transform: rotate(90deg); transition: transform .45s var(--ease); }
.fqx__qa.on i { background: var(--gold); transform: rotate(180deg); }
.fqx__qa.on i::after { transform: rotate(0deg); }
.fqx__ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.fqx__ans > div { overflow: hidden; }
.fqx__ans p { padding: 0 54px clamp(14px, 2vh, 20px) 0; font-size: 15px; line-height: 1.55; color: var(--text); opacity: 0; transition: opacity .3s; }
.fqx__qa.on .fqx__ans { grid-template-rows: 1fr; }
.fqx__qa.on .fqx__ans p { opacity: 1; transition: opacity .4s .12s; }

/* ---------- B : les fiches ---------- */
.fqx__deck { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 12px; visibility: hidden; transition: visibility 0s .35s; }
.fqx__deck--3 { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.fqx__deck--3 .fqx__fc:first-child { grid-column: 1 / -1; }
.fqx__deck--2 { grid-template-columns: minmax(0, 1fr); }
.fqx__deck.on { visibility: visible; transition: none; }
.fqx__fc { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 12px; padding: clamp(18px, 2vw, 28px); border-radius: var(--r); background: #fff; color: var(--ink); overflow: hidden;
  opacity: 0; transform: translate3d(0, 18px, 0) scale(.98); transition: opacity .3s, transform .35s, color .4s; }
.fqx__fc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--night); opacity: 0; transition: opacity .4s; }
.fqx__deck.on .fqx__fc { opacity: 1; transform: none; transition: opacity .45s calc(var(--i) * 80ms), transform .6s var(--ease) calc(var(--i) * 80ms), color .4s; }
.fqx__fc i { font-style: normal; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; color: var(--gold-strong); transition: color .4s; }
.fqx__fc h4 { font-size: clamp(17px, 1.35vw, 22px); font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.fqx__fc p { margin-top: auto; font-size: 14.5px; line-height: 1.5; color: var(--text); transition: color .4s; }
.fqx__fc.is-cur { color: #fff; }
.fqx__fc.is-cur::before { opacity: 1; }
.fqx__fc.is-cur i { color: var(--gold); }
.fqx__fc.is-cur p { color: rgb(255 255 255 / .78); }

/* ---------- C : la conversation ---------- */
.fqx__chat { position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: var(--r); background: #fff; color: var(--ink); overflow: hidden; }
.fqx__ch { display: flex; align-items: center; gap: 12px; padding: 16px clamp(18px, 2vw, 28px); border-bottom: 1px solid rgb(22 33 61 / .08); }
.fqx__av { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--night); color: var(--gold); font-size: 13px; font-weight: 700; }
.fqx__ch p { display: grid; gap: 2px; font-size: 15px; }
.fqx__ch b { font-weight: 600; }
.fqx__ch small { font-size: 12.5px; color: var(--text); }
.fqx__ch small::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #2fb46c; }
.fqx__win { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #f6f7f9; }
.fqx__thr { display: flex; flex-direction: column; gap: 10px; padding: 18px clamp(18px, 2vw, 28px); transition: transform .6s var(--ease); }
.fqx__day { align-self: center; margin: 8px 0 2px !important; padding: 4px 12px; border-radius: 999px; background: rgb(22 33 61 / .07); font-size: 12px; font-weight: 600; color: var(--text); }
.fqx__msg { max-width: min(78%, 520px); opacity: 0; transform: translate3d(0, 14px, 0) scale(.97); transition: opacity .25s, transform .3s; }
.fqx__msg.on { opacity: 1; transform: none; transition: opacity .4s, transform .5s var(--ease); }
.fqx__msg--a.on { transition-delay: .35s; }
.fqx__msg p { padding: 12px 16px; font-size: 15px; line-height: 1.5; }
.fqx__msg--q { align-self: flex-end; transform-origin: 100% 100%; }
.fqx__msg--q p { border-radius: 18px 18px 4px 18px; background: var(--night); color: #fff; font-weight: 500; }
.fqx__msg--a { align-self: flex-start; transform-origin: 0 100%; }
.fqx__msg--a p { border-radius: 18px 18px 18px 4px; background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgb(11 22 38 / .06); }

/* ---------- D : la grande réponse ---------- */
.fqx--d .fqx__vis { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px; }
.fqx__toc { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: var(--r); background: #fff; overflow: hidden; }
.fqx__toc li { flex: 1; min-height: 0; display: flex; }
.fqx__toc button { position: relative; isolation: isolate; flex: 1; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 10px; font-size: 14px; color: var(--text); transition: color .3s; }
.fqx__toc button::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #f1f2f4; opacity: 0; transition: opacity .3s; }
.fqx__toc button:hover::before { opacity: 1; }
.fqx__toc i { flex: none; width: 22px; font-style: normal; font-size: 12px; font-weight: 600; color: rgb(22 33 61 / .4); }
.fqx__toc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fqx__toc li.on button { color: var(--ink); font-weight: 500; }
.fqx__toc li.on button::before { opacity: 1; background: color-mix(in srgb, var(--gold) 26%, #fff); }
.fqx__toc li.on i { color: var(--gold-strong); }
.fqx__big { position: relative; border-radius: var(--r); background: var(--night); color: #fff; overflow: hidden; }
.fqx__sl { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: clamp(22px, 3vw, 44px);
  opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity .3s, transform .45s var(--ease); }
.fqx__sl.is-past { transform: translate3d(0, -30px, 0); }
.fqx__sl.on { opacity: 1; transform: none; transition: opacity .45s .1s, transform .7s var(--ease) .1s; }
.fqx__sl .fqx__k { color: var(--gold); }
.fqx__sl h4 { font-size: clamp(24px, 2.3vw, 38px); font-weight: 400; line-height: 1.12; letter-spacing: -.02em; }
.fqx__sl p:last-child { font-size: clamp(15px, 1.1vw, 17px); line-height: 1.55; color: rgb(255 255 255 / .78); max-width: 46ch; }


/* ---------- écrans peu hauts ---------- */
@media (min-width: 900px) and (max-height: 820px) {
  .fqx__side button { padding: 8px 14px; }
  .fqx__qa > button { padding: 11px 0; font-size: 16px; }
  .fqx__ans p { font-size: 14px; padding-bottom: 12px; }
  .fqx__qa i { width: 30px; height: 30px; }
  .fqx__fc p { font-size: 13.5px; }
  .fqx__toc button { font-size: 13px; }
}

/* ---------- tablette en paysage ---------- */
@media (min-width: 900px) and (max-width: 1180px) {
  .fqx__side small { display: none; }
  .fqx--d .fqx__vis { grid-template-columns: minmax(0, 1fr); }
  .fqx--d .fqx__toc { display: none; }
  .fqx__fc { padding: 16px; gap: 8px; }
  .fqx__fc h4 { font-size: 16px; }
  .fqx__fc p { font-size: 13px; }
}

/* ---------- téléphone et tablette en portrait ---------- */
@media (max-width: 899px) {
  .fqx { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-areas: "intro" "side" "vis" "foot"; gap: 12px; }
  .fqx .fq__intro { display: none; }
  .fqx__side { max-width: none; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgb(22 33 61 / .07); }
  .fqx__side li { flex: 1; min-width: 0; }
  .fqx__side button { justify-content: center; padding: 7px 4px; border-radius: 999px; }
  .fqx__side button::before { display: none; }
  .fqx__side b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fqx__side small, .fqx__side b { display: none; }
  .fqx__side i { display: block; font-style: normal; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
  .fqx__card { padding: 16px 16px; }
  .fqx__pane { inset: 16px; }
  .fqx__qa > button { padding: 11px 0; font-size: 15px; gap: 12px; }
  .fqx__qa i { width: 28px; height: 28px; }
  .fqx__ans p { padding-right: 0; font-size: 14px; }
  .fqx__deck { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .fqx__deck--3 .fqx__fc:first-child { grid-column: auto; }
  .fqx__deck--3 { grid-template-rows: none; }
  .fqx__fc { padding: 12px 14px; gap: 4px; border-radius: 14px; }
  .fqx__fc i { display: none; }
  .fqx__fc h4 { font-size: 14.5px; }
  .fqx__fc p { margin-top: 0; font-size: 12.5px; line-height: 1.4; }
  .fqx__ch { padding: 12px 14px; }
  .fqx__av { width: 36px; height: 36px; }
  .fqx__thr { padding: 14px; }
  .fqx__msg { max-width: 86%; }
  .fqx__msg p { font-size: 14px; padding: 10px 13px; }
  .fqx--d .fqx__vis { grid-template-columns: minmax(0, 1fr); }
  .fqx--d .fqx__toc { display: none; }
  .fqx__sl h4 { font-size: 24px; }
}
