/* Lot REFONTE-B-L-ARTICLE (09/11/2026, C460-C462, C466) : guides et exemples (G10), index de section (G11) en direction B. Mise en forme seulement, texte inchange. Toutes les regles sous body.rfb-g10 ou body.rfb-g11. Aucune couleur nouvelle : jetons de rf-refonte-b.css.
 * G10 : une colonne de lecture de 640 px centree (Lot REFONTE-B-REPRISE, C479 : 45-75 caracteres par ligne) ; tableaux et documents peuvent etre plus larges. G11 : sommaire en lignes, titre de section a gauche a l'ordinateur. Aucune pastille, aucun badge (C462). */

/* ---- Commun : bouton final, liens de suite ---- */
:is(body.rfb-g10, body.rfb-g11) .ctas .btn-primaire { min-height: 56px; padding: 0 26px; background: var(--blanc); color: var(--nuit) !important; border: 0; border-radius: 99px; font-size: 18px; font-weight: 620; transition: transform 140ms cubic-bezier(.23, 1, .32, 1); }
:is(body.rfb-g10, body.rfb-g11) .ctas .btn-primaire:hover { background: var(--ciel); color: var(--nuit) !important; }
:is(body.rfb-g10, body.rfb-g11) .ctas .btn-primaire:active { transform: scale(.97); }
:is(body.rfb-g10, body.rfb-g11) .corps > .ctas { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 56px; margin-bottom: 0; padding: 24px; background: var(--nuit-2); border: 1px solid var(--trait); border-radius: 16px; }
:is(body.rfb-g10, body.rfb-g11) .corps ul.suite a { min-height: 44px; font-weight: 600; }
:is(body.rfb-g10, body.rfb-g11) .corps a:hover { color: var(--blanc); }
:is(body.rfb-g10, body.rfb-g11) .corps .ctas .btn-primaire:hover { color: var(--nuit) !important; }
:is(body.rfb-g10, body.rfb-g11) .tableau table { font-variant-numeric: tabular-nums; line-height: 1.5; }
:is(body.rfb-g10, body.rfb-g11) .tableau th, :is(body.rfb-g10, body.rfb-g11) .tableau td { padding: 14px 18px; }
:is(body.rfb-g10, body.rfb-g11) .tableau thead th { font-weight: 600; font-size: 15px; }
:is(body.rfb-g10, body.rfb-g11) .tableau {
  background:
    linear-gradient(90deg, var(--nuit-2) 45%, transparent) left / 36px 100% no-repeat local,
    linear-gradient(270deg, var(--nuit-2) 45%, transparent) right / 36px 100% no-repeat local,
    linear-gradient(90deg, var(--trait), transparent) left / 12px 100% no-repeat scroll,
    linear-gradient(270deg, var(--trait), transparent) right / 12px 100% no-repeat scroll,
    var(--nuit-2);
}

/* ---- G10 : lecture longue ---- */
body.rfb-g10 .fil, body.rfb-g10 .hero { max-width: 680px; }
body.rfb-g10 .hero { padding-bottom: 8px; }
body.rfb-g10 .hero h1 { max-width: none; font-size: clamp(30px, 7.8vw, 46px); line-height: 1.1; letter-spacing: -.03em; }
body.rfb-g10 .hero > p { max-width: none; font-size: 18px; line-height: 1.6; color: var(--doux); }
body.rfb-g10 .hero > p:has(> em:only-child) { margin: 0 0 14px; font-size: 15px; line-height: 1.5; }
body.rfb-g10 .hero > p > em:only-child { font-style: normal; }
body.rfb-g10 .hero > p.maj { margin: 18px 0 0; }
body.rfb-g10 .hero .encadre { max-width: none; }
body.rfb-g10 .encadre { margin: 26px 0 0; padding: 20px 22px; background: var(--nuit-2); border: 1px solid var(--trait); border-radius: 16px; }
body.rfb-g10 .encadre p { margin: 0; line-height: 1.6; }
body.rfb-g10 .encadre strong { color: var(--blanc); font-weight: 600; }
body.rfb-g10 .encadre p + ul { margin-top: 10px; }
body.rfb-g10 .encadre ul { margin: 0; padding-left: 20px; }
body.rfb-g10 .encadre li { margin: 0 0 8px; line-height: 1.55; }
body.rfb-g10 .encadre li:last-child { margin-bottom: 0; }

body.rfb-g10 .corps { font-size: 18px; line-height: 1.7; padding-top: 0; }
body.rfb-g10 .corps > :is(h2, h3, p, ul, ol, dl, .encadre, .ctas) { max-width: 640px; margin-left: auto; margin-right: auto; }
body.rfb-g10 .corps > .tableau { max-width: 940px; margin-left: auto; margin-right: auto; }
body.rfb-g10 .corps > .visuel { max-width: 760px; margin-left: auto; margin-right: auto; }
body.rfb-g10 .corps h2 { margin-top: 64px; margin-bottom: 16px; font-size: clamp(26px, 5.6vw, 32px); line-height: 1.18; letter-spacing: -.022em; scroll-margin-top: 88px; }
body.rfb-g10 .corps h3 { margin-top: 36px; margin-bottom: 8px; font-size: 21px; line-height: 1.3; letter-spacing: -.012em; }
body.rfb-g10 .corps > h2 + h3 { margin-top: 20px; }
body.rfb-g10 .corps > p { margin-bottom: 18px; }
body.rfb-g10 .corps > :is(ul, ol):not(.suite) { margin-bottom: 20px; padding-left: 24px; }
body.rfb-g10 .corps > :is(ul, ol):not(.suite) > li { margin-bottom: 10px; padding-left: 2px; }
body.rfb-g10 .corps ol > li::marker { color: var(--ciel); font-variant-numeric: tabular-nums; }
body.rfb-g10 .corps ul.suite { margin-top: 12px; margin-bottom: 8px; }
body.rfb-g10 .corps strong { font-weight: 600; }
body.rfb-g10 .corps a:not(.btn) { text-decoration-thickness: 1px; }
body.rfb-g10 .corps > .tableau { margin-top: 22px; margin-bottom: 26px; }
body.rfb-g10 .corps > .visuel { margin-top: 30px; margin-bottom: 30px; }
body.rfb-g10 .visuel img { border-radius: 12px; }

/* Tableaux au telephone : montants sur une ligne (4 colonnes et plus, cellules courtes) ; 3 colonnes de texte : largeur de lecture, le tableau defile dans son cadre */
body.rfb-g10:not(.page-guides-conservation-factures-fec) .tableau table:has(thead th:nth-child(4)) td { white-space: nowrap; }

/* ---- G11 : sommaire d'une section ---- */
body.rfb-g11 .corps ul.cartes { display: block; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--trait); }
body.rfb-g11 .corps ul.cartes > li { position: relative; display: block; margin: 0; padding: 14px 0 16px; background: none; border: 0; border-bottom: 1px solid var(--trait); border-radius: 0; box-shadow: none; }
body.rfb-g11 .cartes li strong { display: block; font-weight: 600; }
body.rfb-g11 .corps .cartes li a { display: flex; align-items: center; min-height: 44px; font-size: 19px; line-height: 1.3; letter-spacing: -.01em; color: var(--blanc); text-decoration: none; transition: color 150ms ease; }
body.rfb-g11 .cartes li a::after { content: ""; position: absolute; inset: 0; }
body.rfb-g11 .cartes .li-suite { margin-top: 2px; font-size: 16px; line-height: 1.55; }
@media (hover: hover) and (pointer: fine) {
  body.rfb-g11 .corps .cartes li:hover a { color: var(--ciel); }
}
/* Lot FINITIONS-2 (C486) : introductions a la largeur de lecture des articles (640 px, et 18 px comme le corps des articles au-dessus de 600 px : 45-75 caracteres par ligne), a toutes les largeurs (avant : 720 px, 17 px) */
body.rfb-g11 .corps > :is(p, ul:not(.cartes):not(.suite)) { max-width: 640px; }
@media (min-width: 601px) { body.rfb-g11 .corps > :is(p, ul:not(.cartes):not(.suite)) { font-size: 18px; line-height: 1.7; } }
body.rfb-g11 .tableau th a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
body.rfb-g11 .tableau tbody th, body.rfb-g11 .tableau tbody td { padding-top: 6px; padding-bottom: 6px; vertical-align: middle; }

@media (min-width: 900px) {
  body.rfb-g10 .fil, body.rfb-g10 .hero { max-width: 720px; }
  /* Captures de facture tres hautes : 560 px a l'ordinateur, le texte de l'article reste le fil de lecture */
  body.rfb-g10:is(.page-guides-retenue-de-garantie, .page-guides-acompte-situation-facture-de-solde, .page-guides-autoliquidation-tva-sous-traitance-btp) .corps > .visuel { max-width: 560px; }
  body.rfb-g11 .corps { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); column-gap: 56px; align-items: start; }
  body.rfb-g11 .corps > * { grid-column: 2; min-width: 0; max-width: none; }
  body.rfb-g11 .corps > :is(p, ul:not(.cartes):not(.suite)) { max-width: 640px; } /* Lot FINITIONS-2 : 640 px (avant : 720 px) ; ici car la regle `.corps > *` ci-dessus remet max-width a none */
  body.rfb-g11 .corps > h2 { grid-column: 1; margin-top: 56px; margin-bottom: 0; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
  body.rfb-g11 .corps > ul.cartes { max-width: none; }
  body.rfb-g11 .corps > h2 + :is(ul, .tableau, p) { margin-top: 62px; }
  body.rfb-g11 .corps > h2:first-child { margin-top: 24px; }
  body.rfb-g11 .corps > h2:first-child + :is(ul, .tableau, p) { margin-top: 30px; }
  body.rfb-g11 .corps > .ctas { max-width: 720px; }
}
@media (min-width: 1100px) {
  body.rfb-g11 .corps ul.cartes > li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 32px; align-items: baseline; padding: 14px 0; }
  body.rfb-g11 .cartes .li-suite { margin-top: 0; }
}
@media (max-width: 600px) {
  body.rfb-g10 .corps { font-size: 17px; line-height: 1.65; }
  body.rfb-g10 .hero > p { font-size: 17px; }
  :is(body.rfb-g10, body.rfb-g11) .tableau th, :is(body.rfb-g10, body.rfb-g11) .tableau td { padding: 12px 12px; font-size: 15px; }
  body.rfb-g10 .corps h2 { margin-top: 52px; }
  body.rfb-g10 .tableau table:has(thead th:nth-child(3):last-child) { min-width: 640px; }
  body.rfb-g10.page-guides-conservation-factures-fec .tableau table { min-width: 720px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(body.rfb-g10, body.rfb-g11) .ctas .btn-primaire { transition: none; }
  :is(body.rfb-g10, body.rfb-g11) .ctas .btn-primaire:active { transform: none; }
  body.rfb-g11 .corps .cartes li a { transition: none; }
}
