:root {
    --encre: #111317;
    --texte: #4b5160;
    --discret: #858b99;
    --rouge: #E20814;
    --trait: #E1E3E8;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #f4f4f4; color: var(--encre); font-family: var(--police-texte); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--rouge); outline-offset: 4px; border-radius: 6px; }
.fq-wrap { max-width: 1320px; margin: 0 auto; padding: 0 1.25rem; }

/* En-tête (identique à la page avis) */
.fq-entete { background: #0f0f0f; }
.fq-entete-ligne { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.fq-logo { width: 48px; height: 48px; border-radius: 50%; background: #fff; padding: 6px; display: flex; }
.fq-logo img { width: 100%; height: 100%; object-fit: contain; }
.fq-retour { color: #fff; text-decoration: none; font-size: .9rem; font-weight: 500; opacity: .85; }
.fq-retour:hover { opacity: 1; }

/* Grille : grand titre à gauche, questions à droite */
.fq-grille { display: grid; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 5rem; }
.fq-intro { container-type: inline-size; } /* le titre se dimensionne selon la largeur de sa colonne */
.fq-surtitre { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rouge); }
.fq-titre {
    font-family: var(--police-titre); font-weight: 800; text-transform: uppercase;
    font-size: min(14.8cqi, 6.5rem); line-height: .92; letter-spacing: -.045em; margin-top: .75rem;
}
.fq-texte { margin-top: 1.25rem; max-width: 26rem; color: var(--texte); font-size: 1.05rem; line-height: 1.6; }

/* Questions */
.fq-item { border-bottom: 1px solid var(--trait); }
.fq-item summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    padding: 1.6rem 0;
}
.fq-item summary::-webkit-details-marker { display: none; }
.fq-item h2 { font-family: var(--police-titre); font-weight: 600; font-size: 1.12rem; line-height: 1.35; letter-spacing: -.01em; }
.fq-plus {
    position: relative; flex: none; width: 44px; height: 44px; border-radius: 10px;
    background: #fff; border: 1px solid var(--trait); transition: background-color .2s ease, border-color .2s ease;
}
.fq-plus::before, .fq-plus::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; border-radius: 2px;
    background: var(--encre); transform: translate(-50%, -50%); transition: transform .25s ease, background-color .2s ease;
}
.fq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.fq-item summary:hover .fq-plus { border-color: var(--encre); }
.fq-item[open] .fq-plus { background: var(--rouge); border-color: var(--rouge); }
.fq-item[open] .fq-plus::before, .fq-item[open] .fq-plus::after { background: #fff; }
.fq-item[open] .fq-plus::after { transform: translate(-50%, -50%) rotate(0deg); } /* + devient − */

.fq-reponse { padding: 0 0 1.75rem 0; color: var(--texte); font-size: 1rem; line-height: 1.7; }
.fq-reponse p + p, .fq-reponse p + ul { margin-top: .75rem; }
.fq-reponse strong { color: var(--encre); font-weight: 600; }
.fq-reponse ul { list-style: none; display: grid; gap: .6rem; }
.fq-reponse li { position: relative; padding-left: 1.1rem; }
.fq-reponse li::before { content: ''; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--rouge); }
.fq-reponse a { color: var(--encre); font-weight: 600; text-underline-offset: 3px; }

/* Pied de la liste */
.fq-pied {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
    margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--trait);
}
.fq-pied p { color: var(--discret); }
.fq-contact { display: inline-flex; align-items: center; gap: .65rem; font-weight: 600; text-decoration: none; }
.fq-fleche {
    width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid var(--encre);
    display: flex; align-items: center; justify-content: center; transition: background-color .2s ease, color .2s ease;
}
.fq-contact:hover .fq-fleche { background: var(--encre); color: #fff; }

.fq-bas { border-top: 1px solid var(--trait); padding: 1.5rem 0; font-size: .85rem; color: var(--discret); }

@media (min-width: 720px) { .fq-wrap { padding: 0 2rem; } }
@media (min-width: 1024px) {
    .fq-wrap { padding: 0 3rem; }
    .fq-grille { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; padding-top: 5rem; padding-bottom: 7rem; }
    .fq-intro { position: sticky; top: 3rem; align-self: start; } /* le titre reste visible pendant la lecture */
    .fq-item h2 { font-size: 1.25rem; }
    .fq-reponse { padding-right: 4rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ===== Animations (posées par animations.js : data-anim puis .visible) ===== */
[data-anim] { opacity: 0; transition: opacity .7s ease, translate .9s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0s); }
[data-anim="monte"] { translate: 0 28px; }
[data-anim="gauche"] { translate: -36px 0; }
[data-anim].visible { opacity: 1; translate: none; }
/* titre lettre par lettre, texte mot par mot */
[data-anim="lettres"], [data-anim="mots"] { opacity: 1; translate: none; }
[data-anim="lettres"] .mot { display: inline-block; white-space: nowrap; }
[data-anim="lettres"] .lettre {
    display: inline-block; opacity: 0; translate: 0 .55em; rotate: 12deg; transform-origin: 0 100%;
    transition: opacity .55s ease, translate .9s cubic-bezier(.16, 1, .3, 1), rotate .9s cubic-bezier(.16, 1, .3, 1);
    transition-delay: calc(var(--d, 0s) + var(--i, 0) * 35ms);
}
[data-anim="lettres"].visible .lettre { opacity: 1; translate: none; rotate: none; }
[data-anim="mots"] .mot {
    display: inline-block; opacity: 0; translate: 0 .6em;
    transition: opacity .5s ease, translate .7s cubic-bezier(.16, 1, .3, 1);
    transition-delay: calc(var(--d, 0s) + var(--i, 0) * 28ms);
}
[data-anim="mots"].visible .mot { opacity: 1; translate: none; }
/* le surtitre « FAQ » : un petit trait rouge se dessine devant */
.fq-surtitre { display: flex; align-items: center; gap: .6rem; }
.fq-surtitre::before { content: ''; width: 1.5rem; height: 2px; background: var(--rouge); transform-origin: left; }
.fq-surtitre[data-anim]::before { transform: scaleX(0); transition: transform .7s cubic-bezier(.65, 0, .35, 1) calc(var(--d, 0s) + .2s); }
.fq-surtitre[data-anim].visible::before { transform: scaleX(1); }
/* une question s'ouvre : la réponse glisse et apparaît, le titre de la question passe en rouge au survol */
.fq-item[open] .fq-reponse { animation: fq-ouvre .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes fq-ouvre { from { opacity: 0; translate: 0 -10px; } }
.fq-item h2 { transition: color .2s ease, translate .3s cubic-bezier(.16, 1, .3, 1); }
@media (hover: hover) { .fq-item summary:hover h2 { color: var(--rouge); translate: 4px 0; } }
.fq-plus { transition: background-color .2s ease, border-color .2s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.fq-item[open] .fq-plus { transform: rotate(180deg); }
/* flèche « Nous contacter » qui s'envole au survol */
.fq-fleche svg { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.fq-contact:hover .fq-fleche svg { transform: translate(2px, -2px); }
@media (prefers-reduced-motion: reduce) {
    [data-anim], [data-anim] * { opacity: 1 !important; translate: none !important; rotate: none !important; }
    .fq-item[open] .fq-reponse { animation: none; }
}
.fq-contact { position: relative; }
.fq-contact::before { content: ''; position: absolute; inset: -8px -6px; }
