/* Section 9 — Questions fréquentes (#faq). Paper section.
   Accordion = native <details>/<summary>; faq.js adds the smooth height animation.
   Signature: each answer is "served" — the little cloche lifts its lid and a brass spark appears. */

#faq { overflow-x: clip; } /* clip, not hidden: keeps position: sticky working */
#faq .faq-grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 64px); align-items: start; }
@media (min-width: 980px) { #faq .faq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(56px, 7vw, 112px); } }

/* ------------------------------------------------------------------ left column */
#faq .faq-head { position: relative; z-index: 1; }
#faq .faq-head .h2 { max-width: 9.5em; }
#faq .faq-lead { max-width: 26em; }
@media (min-width: 980px) { #faq .faq-sticky { position: sticky; top: 120px; } }

#faq .faq-counter { display: none; }
@media (min-width: 980px) {
  #faq .faq-counter { display: flex; align-items: flex-end; gap: 14px; margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--line); max-width: 320px; }
}
#faq .faq-counter-label { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--brass); padding-bottom: 14px; }
#faq .faq-counter-num { --i: 0; display: block; height: 1em; overflow: hidden; font-size: 112px; line-height: 1; font-weight: 300; letter-spacing: -.05em; color: var(--ink); }
#faq .faq-roll { display: flex; flex-direction: column; transform: translateY(calc(var(--i) * -1em)); transition: transform .8s var(--ease-out); }
#faq .faq-roll > span { display: block; height: 1em; }
#faq .faq-counter-of { font-size: 22px; color: var(--muted); padding-bottom: 14px; }

#faq .faq-all { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 28px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 15px; font-weight: 600; color: var(--ink); transition: box-shadow .25s, background-color .25s; }
#faq .faq-all:hover { background: var(--card); box-shadow: inset 0 0 0 1px var(--ink); }
#faq .faq-all[hidden] { display: none; }
#faq .faq-all-ico { position: relative; width: 14px; height: 14px; flex: none; }
#faq .faq-all-ico::before, #faq .faq-all-ico::after { content: ""; position: absolute; left: 0; top: 6.25px; width: 14px; height: 1.5px; border-radius: 2px; background: var(--wine); transition: transform .4s var(--ease-out); }
#faq .faq-all-ico::after { transform: rotate(90deg); }
#faq .faq-all[aria-expanded="true"] .faq-all-ico::after { transform: rotate(0deg); }

/* ------------------------------------------------------------------ accordion */
#faq .faq-list { position: relative; z-index: 1; border-top: 1px solid var(--line-strong); }
#faq .faq-item { position: relative; border-bottom: 1px solid var(--line-strong); }
#faq .faq-item.faq-anim { overflow: hidden; }
/* brass hairline drawn under the open question */
#faq .faq-item::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, var(--brass-deco), var(--brass-deco) 60%, transparent); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out); pointer-events: none; }
#faq .faq-item[open]:not(.faq-closing)::after { transform: scaleX(1); }
#faq .faq-item.faq-anim::after { bottom: 0; }

#faq .faq-q { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) 44px; gap: 12px; align-items: center; min-height: 76px; padding: 18px 0; list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; isolation: isolate; }
#faq .faq-q::-webkit-details-marker { display: none; }
#faq .faq-q::marker { content: ""; }
#faq .faq-q:focus-visible { outline-offset: 4px; border-radius: 12px; }
@media (min-width: 600px) { #faq .faq-q { grid-template-columns: 44px minmax(0, 1fr) 48px; gap: 16px; min-height: 92px; padding: 22px 0; } }

/* soft linen wash on hover */
#faq .faq-q::before { content: ""; position: absolute; z-index: -1; top: 6px; bottom: 6px; left: -12px; right: -12px; border-radius: 16px; background: var(--paper-2); opacity: 0; transform: scaleX(.97); transition: opacity .35s, transform .5s var(--ease-out); }
@media (hover: hover) { #faq .faq-q:hover::before { opacity: 1; transform: none; } }

#faq .faq-n { font-style: italic; font-size: 15px; color: var(--brass); letter-spacing: .02em; padding-top: 2px; align-self: start; margin-top: .42em; }
@media (min-width: 600px) { #faq .faq-n { font-size: 16px; margin-top: .55em; } }
#faq .faq-qt { font-family: var(--serif); font-weight: 400; font-size: clamp(19px, 2.1vw, 25px); line-height: 1.25; letter-spacing: -.012em; color: var(--ink); font-optical-sizing: auto; transition: color .3s, transform .5s var(--ease-out); }
@media (hover: hover) { #faq .faq-q:hover .faq-qt { transform: translateX(4px); } }
#faq .faq-item[open]:not(.faq-closing) .faq-qt { color: var(--wine); }

/* the cloche marker */
#faq .faq-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--card); transition: background-color .45s var(--ease-out), box-shadow .45s; justify-self: end; }
@media (min-width: 600px) { #faq .faq-mark { width: 48px; height: 48px; } }
#faq .faq-mark svg { width: 30px; height: 30px; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
#faq .faq-plate, #faq .faq-lid { stroke: var(--brass); stroke-width: 1.6; transition: stroke .45s; }
#faq .faq-lid { transform-box: fill-box; transform-origin: 0% 100%; transition: transform .7s var(--ease-out), stroke .45s; }
#faq .faq-spark { stroke: var(--brass-light); stroke-width: 1.6; opacity: 0; transform-box: fill-box; transform-origin: 50% 60%; transform: scale(.3); transition: opacity .3s, transform .6s var(--ease-out); }
@media (hover: hover) { #faq .faq-q:hover .faq-mark { box-shadow: inset 0 0 0 1px var(--brass-deco); } #faq .faq-item:not([open]) .faq-q:hover .faq-lid { transform: rotate(-7deg) translate(0, -1px); } }
#faq .faq-item[open]:not(.faq-closing) .faq-mark { background: var(--wine); box-shadow: inset 0 0 0 1px var(--wine), 0 8px 20px rgba(138, 28, 53, .22); }
#faq .faq-item[open]:not(.faq-closing) .faq-plate, #faq .faq-item[open]:not(.faq-closing) .faq-lid { stroke: #fff; }
#faq .faq-item[open]:not(.faq-closing) .faq-lid { transform: rotate(-24deg) translate(-1px, -4px); }
#faq .faq-item[open]:not(.faq-closing) .faq-spark { opacity: 1; transform: none; transition-delay: .18s; }

/* answers */
#faq .faq-a { padding: 0 0 30px 42px; color: var(--muted); }
@media (min-width: 600px) { #faq .faq-a { padding: 0 64px 36px 60px; } }
#faq .faq-a p { margin: 0 0 14px; max-width: 36em; }
#faq .faq-a p:last-child { margin-bottom: 0; }
#faq .faq-a strong { color: var(--ink); font-weight: 650; }
#faq .faq-item[open]:not(.faq-closing) .faq-a { animation: faq-in .7s var(--ease-out) both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

#faq .faq-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--wine); font-weight: 650; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: rgba(138, 28, 53, .35); transition: text-decoration-color .25s; }
#faq .faq-link:hover { text-decoration-color: var(--wine); }
#faq .faq-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-out); }
#faq .faq-link:hover svg { transform: translateX(4px); }

/* ------------------------------------------------------------------ closing CTA band */
#faq .faq-cta { position: relative; z-index: 1; margin-top: clamp(88px, 11vw, 160px); padding: clamp(60px, 9vw, 112px) clamp(24px, 6vw, 80px) clamp(52px, 7vw, 88px); border-radius: var(--r-xl); text-align: center; background: radial-gradient(120% 80% at 50% 0%, var(--card) 0%, var(--paper-2) 55%, var(--linen) 100%); box-shadow: var(--shadow); }
#faq .faq-cta-frame, #faq .faq-cta-frame::after { position: absolute; pointer-events: none; border: 1px solid var(--brass-deco); }
#faq .faq-cta-frame { inset: 12px; border-radius: calc(var(--r-xl) - 12px); opacity: .75; }
#faq .faq-cta-frame::after { content: ""; inset: 5px; border-radius: calc(var(--r-xl) - 17px); opacity: .45; }

#faq .faq-cta-cloche { width: clamp(84px, 9vw, 112px); height: auto; margin: 0 auto 26px; overflow: visible; }
#faq .faq-cta-plate, #faq .faq-cta-lid { stroke: var(--brass-deco); stroke-width: 1.6; }
#faq .faq-cta-lid { transform-box: fill-box; transform-origin: 0% 100%; transition: transform 1.2s var(--ease-out) .55s; }
#faq .faq-cta-spark { stroke: var(--wine); stroke-width: 1.6; opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; transform: scale(.3); transition: opacity .5s .9s, transform .9s var(--ease-out) .9s; }
#faq .faq-cta.in .faq-cta-lid { transform: rotate(-14deg) translate(-3px, -7px); }
#faq .faq-cta.in .faq-cta-spark { opacity: 1; transform: none; }
html.no-js #faq .faq-cta-spark { opacity: 1; transform: none; }

#faq .faq-cta-line { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 7.4vw, 96px); line-height: 1; letter-spacing: -.035em; margin: 0 auto 40px; max-width: 11em; color: var(--ink); font-optical-sizing: auto; text-wrap: balance; }
#faq .faq-cta-line em { font-style: italic; color: var(--wine); }
#faq .faq-cta-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; }
#faq .faq-cta-acts .btn { max-width: 100%; }
#faq .faq-soon { gap: 12px; color: var(--ink); }
#faq .faq-soon:hover { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
#faq .faq-soon-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brass-deco); box-shadow: 0 0 0 4px rgba(201, 164, 92, .2); flex: none; }
#faq .faq-cta-note { margin: 24px auto 0; max-width: 34em; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
@media (max-width: 420px) { #faq .faq-cta-acts .btn { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  #faq .faq-item[open]:not(.faq-closing) .faq-a { animation: none; }
  #faq .faq-roll, #faq .faq-lid, #faq .faq-cta-lid, #faq .faq-spark, #faq .faq-cta-spark { transition: none; }
}
