/* Lot REFONTE-B-L-LONGUES (09/11/2026, C460-C462, C466) : direction B sur /fonctionnalites (G06) et /faq (G07). Mise en forme seulement ; toutes les regles sous body.rfb-g06 ou body.rfb-g07 ; aucune couleur nouvelle (jetons de rf-refonte-b.css) ; aucun mouvement decoratif. */

/* Haut de page : la lumiere de l'accueil B, fixe */
body:is(.rfb-g06, .rfb-g07) .hero { isolation: isolate; padding-bottom: 24px; }
body:is(.rfb-g06, .rfb-g07) .hero::before { content: ""; position: absolute; z-index: -1; top: 0; left: -10%; width: 90%; height: 130%; background: radial-gradient(closest-side, rgba(47, 128, 255, .2), transparent); pointer-events: none; }
body:is(.rfb-g06, .rfb-g07) .hero h1 { max-width: 22ch; }

/* Sommaire : bande qui defile au doigt ; colonne fixe sur grand ecran */
body:is(.rfb-g06, .rfb-g07) .rfl-grille { max-width: 1160px; margin: 0 auto; }
body:is(.rfb-g06, .rfb-g07) .rfl-grille > .sommaire { margin: 0 0 12px; }
body:is(.rfb-g06, .rfb-g07) .sommaire ol { flex-wrap: nowrap; gap: 8px; padding: 0 20px 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-padding-inline: 20px; scrollbar-width: thin; scrollbar-color: var(--trait) transparent; }
body:is(.rfb-g06, .rfb-g07) .sommaire li { flex: none; }
body:is(.rfb-g06, .rfb-g07) .sommaire a { min-height: 44px; border-radius: 99px; font-size: 16px; font-weight: 520; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  body:is(.rfb-g06, .rfb-g07) .sommaire a { transition: color 150ms ease, background-color 150ms ease; }
  body:is(.rfb-g06, .rfb-g07) .sommaire a:active { transform: scale(.97); }
}

/* Sections */
body:is(.rfb-g06, .rfb-g07) .corps .rfl-section { padding: 44px 0 8px; border-top: 1px solid var(--trait); }
body:is(.rfb-g06, .rfb-g07) .corps .rfl-section:first-child { padding-top: 16px; border-top: 0; }
body:is(.rfb-g06, .rfb-g07) .corps h2 { margin: 0 0 16px; }
body:is(.rfb-g06, .rfb-g07) .corps .rfl-section :is(p, ul) { max-width: 68ch; }
body:is(.rfb-g06, .rfb-g07) .corps p { text-wrap: pretty; }
body:is(.rfb-g06, .rfb-g07) .corps ul { padding-left: 20px; }
body:is(.rfb-g06, .rfb-g07) .corps li { margin: 8px 0; }
body.rfb-g06 .corps .rfl-bloc { margin-top: 32px; }
body.rfb-g06 .corps .rfl-bloc h3 { margin: 0 0 8px; font-size: 20px; }

/* Captures de l'application : cadre fin, sans ombre de carte */
body.rfb-g06 .corps .visuel { margin: 20px 0 8px; }
body.rfb-g06 .corps .visuel:not(.visuel-mobile) { max-width: 760px; }
body.rfb-g06 .corps .visuel:not(.visuel-mobile) img { border-radius: 14px; }
body.rfb-g06 .corps .visuel-mobile img { width: min(300px, 78vw); max-width: 100%; border: 8px solid var(--nuit-3); border-radius: 32px; box-shadow: 0 0 0 1px var(--trait); } /* largeur connue avant le chargement : place reservee, CLS 0 */
@media (min-width: 720px) {
  body.rfb-g06 .corps .rfl-tel { display: grid; grid-template-columns: minmax(0, 1fr) 280px; column-gap: 40px; align-items: start; }
  body.rfb-g06 .corps .rfl-tel .visuel-mobile { margin: 0; }
  body.rfb-g06 .corps .rfl-tel .visuel-mobile img { width: 100%; }
}

/* Ce que RankFlux ne fait pas : a part, lisible d'un coup d'oeil */
body.rfb-g06 .corps .rfl-limites { margin-top: 44px; padding: 24px 20px 12px; background: var(--nuit-2); border: 1px solid var(--trait); border-radius: 16px; }

/* Questions : lignes separees par un filet, reponses toujours visibles */
body.rfb-g07 .corps .faq { padding: 18px 0 20px; border-top: 1px solid var(--trait); }
body.rfb-g07 .corps .faq-q { margin: 0 0 8px; font-size: 19px; line-height: 1.3; font-weight: 600; }
body.rfb-g07 .corps .faq-r { margin: 0; }

/* Appel final */
body:is(.rfb-g06, .rfb-g07) .corps .rfl-fin { margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--trait); text-align: center; }
body:is(.rfb-g06, .rfb-g07) .corps .rfl-limites + .rfl-fin { border-top: 0; padding-top: 12px; }
body:is(.rfb-g06, .rfb-g07) .rfl-fin h2 { margin-inline: auto; max-width: 22ch; }
body:is(.rfb-g06, .rfb-g07) .rfl-fin > p { margin-inline: auto; max-width: 54ch; }
body:is(.rfb-g06, .rfb-g07) .rfl-fin .ctas { justify-content: center; margin: 22px auto 0; max-width: 54ch; }
body:is(.rfb-g06, .rfb-g07) .rfl-fin a.rfb-bouton { width: 100%; }

@media (min-width: 560px) { body:is(.rfb-g06, .rfb-g07) .rfl-fin a.rfb-bouton { width: auto; } }
@media (min-width: 900px) { body:is(.rfb-g06, .rfb-g07) .sommaire ol { padding-inline: 40px; scroll-padding-inline: 40px; } }
@media (min-width: 1024px) {
  body:is(.rfb-g06, .rfb-g07) .rfl-grille { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 64px; align-items: start; padding: 16px 40px 0; }
  /* Focus du sommaire (09/11/2026) : la boite qui defile (overflow-y) deborde de 6 px de chaque cote (18 a gauche, pour la marge de -12 px de la liste) et se reprend en marge negative : texte et liens au meme endroit, anneau (2 + 3 px) et fond de survol jamais coupes. Avant : top: 88px; margin: 0; max-height: calc(100vh - 112px) */
  body:is(.rfb-g06, .rfb-g07) .rfl-grille > .sommaire { position: sticky; top: 82px; margin: -6px -6px -6px -18px; padding: 6px 6px 6px 18px; max-height: calc(100vh - 100px); overflow-y: auto; scroll-padding-block: 6px; }
  body:is(.rfb-g06, .rfb-g07) .sommaire ol { display: block; margin-left: -12px; padding: 0; overflow: visible; }
  body:is(.rfb-g06, .rfb-g07) .sommaire a { display: flex; padding: 8px 12px; background: none; border: 0; border-radius: 10px; color: var(--doux); white-space: normal; }
  body:is(.rfb-g06, .rfb-g07) .sommaire a:hover { background: var(--nuit-2); color: var(--blanc); }
  body:is(.rfb-g06, .rfb-g07) .rfl-grille > .corps { margin: 0; padding: 0 0 88px; }
  body.rfb-g07 .corps .faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 40px; }
  body.rfb-g07 .corps .faq-q { margin: 0; }
}
