/* Lot REFONTE-B-L-METIER (09/11/2026, C460-C462, C466) : pages metiers et /micro-entreprise (G08) en direction B. Complete rf-refonte-b.css et rf-refonte-b-vitrine.css (non modifiees). Toutes les regles sont sous body.rfb-g08.
 * Aucune couleur nouvelle : jetons de la feuille B (le halo reprend le bleu --bleu, comme la feuille B). Rien ne bouge au defilement ; pas de pastille ni de badge (C462). */

/* Halo du haut de page : fixe, sous le contenu, dans le conteneur (aucun debordement) */
body.rfb-g08 .conteneur { position: relative; isolation: isolate; }
body.rfb-g08 .conteneur::before { content: ""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: min(720px, 100%); background: radial-gradient(70% 62% at 16% 6%, rgba(47, 128, 255, .24), rgba(47, 128, 255, .07) 58%, transparent 78%); pointer-events: none; }

/* Haut de page : titre, texte, appel */
body.rfb-g08 .hero > p { line-height: 1.5; }
body.rfb-g08 .hero .ctas { flex-direction: column; align-items: stretch; gap: 12px; max-width: 460px; margin: 20px 0 8px; }
body.rfb-g08 .ctas a.rfb-bouton { width: 100%; }
body.rfb-g08 .ctas .cta-note { flex-basis: auto; font-size: 16px; line-height: 1.45; }

/* Corps : une section par H2 */
body.rfb-g08 .corps { padding-top: 20px; }
body.rfb-g08 .rfbm-s { padding: 40px 0; border-top: 1px solid var(--trait); }
body.rfb-g08 .rfbm-s:first-child { padding-top: 12px; border-top: 0; }
body.rfb-g08 .rfbm-s h2 { margin: 0 0 16px; font-size: clamp(25px, 6.4vw, 30px); line-height: 1.16; letter-spacing: -.024em; scroll-margin-top: 88px; }
body.rfb-g08 .rfbm-c > * { max-width: 720px; }
body.rfb-g08 .rfbm-c > :first-child { margin-top: 0; }
body.rfb-g08 .rfbm-c > :last-child { margin-bottom: 0; }
body.rfb-g08 .rfbm-c p, body.rfb-g08 .rfbm-c li { line-height: 1.6; }
body.rfb-g08 .rfbm-c li + li { margin-top: 8px; }
body.rfb-g08 .rfbm-c .tableau li + li { margin-top: 0; }

/* Liens de suite, autres metiers : cibles de 44 px */
body.rfb-g08 ul.suite { margin: 14px 0 0; gap: 0; }
body.rfb-g08 ul.suite li + li { margin-top: 0; }
body.rfb-g08 ul.suite a, body.rfb-g08 a.plus { display: inline-flex; align-items: center; min-height: 44px; }
body.rfb-g08 p.autres { max-width: 720px; margin: 8px 0 0; padding-top: 20px; border-top: 1px solid var(--trait); color: var(--doux); }
body.rfb-g08 p.autres a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }

/* Captures */
body.rfb-g08 .visuel { margin: 24px 0 8px; }
body.rfb-g08 .visuel img { border-radius: 14px; background: var(--nuit-2); }
body.rfb-g08 .visuel-mobile { width: min(264px, 72vw); margin-inline: auto; }
body.rfb-g08 .visuel-mobile img { width: 100%; max-width: none; margin: 0; border: 8px solid var(--nuit-3); border-radius: 30px; }

/* Tableaux : en-tetes sur plusieurs lignes, tout le tableau tient dans la colonne ; montants alignes */
body.rfb-g08 .tableau thead th, body.rfb-g08 .tableau thead td { white-space: normal; }
body.rfb-g08 .tableau td { font-variant-numeric: tabular-nums; }

/* Questions */
body.rfb-g08 .rfbm-faq .faq { padding: 16px 0 14px; border-top: 1px solid var(--trait); }
body.rfb-g08 .rfbm-faq .faq:first-child { padding-top: 0; border-top: 0; }
body.rfb-g08 .rfbm-faq .faq-q { margin: 0 0 6px; font-size: 19px; line-height: 1.3; }
body.rfb-g08 .rfbm-faq .faq-r { margin: 0; }

/* Dernier appel */
body.rfb-g08 .rfbm-fin { max-width: 720px; margin: 24px auto 40px; padding: 32px 20px; border-top: 0; border-radius: 20px; text-align: center; background: linear-gradient(160deg, var(--nuit-3), var(--nuit-2)); box-shadow: 0 0 0 1px rgba(143, 187, 255, .3), 0 0 90px rgba(47, 128, 255, .2); }
body.rfb-g08 .rfbm-fin h2 { margin-bottom: 20px; }
body.rfb-g08 .rfbm-fin .ctas { flex-direction: column; align-items: center; gap: 12px; margin: 0 auto; }
body.rfb-g08 .rfbm-fin .ctas .cta-note { max-width: 52ch; }

@media (max-width: 359px) { body.rfb-g08 .rfbm-fin { padding: 24px 14px; } }

@media (min-width: 560px) {
  body.rfb-g08 .ctas a.rfb-bouton { width: auto; align-self: flex-start; }
  body.rfb-g08 .rfbm-fin .ctas a.rfb-bouton { align-self: center; }
}

/* Haut de page en deux colonnes : l'appel dans une plaque a droite, ordre du HTML inchange */
@media (min-width: 900px) {
  body.rfb-g08 .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); column-gap: 56px; align-items: start; padding-bottom: 40px; }
  body.rfb-g08 .hero > :not(.ctas) { grid-column: 1; }
  body.rfb-g08 .hero h1 { font-size: clamp(38px, 4.3vw, 54px); max-width: 20ch; }
  body.rfb-g08 .hero .ctas { grid-column: 2; grid-row: 1 / span 6; align-self: center; max-width: none; margin: 0; padding: 26px 24px; border-radius: 20px; background: linear-gradient(160deg, var(--nuit-3), var(--nuit-2)); box-shadow: 0 0 0 1px rgba(143, 187, 255, .3), 0 0 90px rgba(47, 128, 255, .2); }
  body.rfb-g08 .hero .ctas a.rfb-bouton { width: 100%; align-self: stretch; padding: 0 16px; }
  body.rfb-g08 .rfbm-s { padding: 56px 0; }
}

/* Grand ecran : titre de section a gauche, qui reste visible pendant la lecture ; texte a droite */
@media (min-width: 1120px) {
  body.rfb-g08 .rfbm-s:not(.rfbm-fin) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 680px); column-gap: 56px; align-items: start; }
  body.rfb-g08 .rfbm-s:not(.rfbm-fin) h2 { position: sticky; top: 96px; margin: 0; }
  body.rfb-g08 .rfbm-tel .rfbm-c { position: relative; min-height: 800px; padding-right: 288px; }
  body.rfb-g08 .rfbm-tel .visuel-mobile { position: absolute; top: 0; right: 0; width: 248px; margin: 0; }
  body.rfb-g08 p.autres { max-width: 680px; margin-left: auto; }
}
