/* Lot REFONTE-B-L-COURTES (09/11/2026, C460-C462, C466) : pages institutionnelles (G12) et 404 du site (G14) en direction B. Complete rf-refonte-b.css et rf-refonte-b-vitrine.css ; toutes les regles sont sous body.rfb-g12 ou body.rfb-g14. Aucune couleur nouvelle, aucune animation, aucun texte ajoute. Le bandeau des cookies n'est pas touche. */

/* Haut de page : halo fixe, comme l'accueil B, sans mouvement ni element au-dessus du titre (C462) */
body:is(.rfb-g12, .rfb-g14) main { position: relative; overflow: clip; isolation: isolate; }
body:is(.rfb-g12, .rfb-g14) main::before { content: ""; position: absolute; z-index: -1; left: -30%; top: -220px; width: 130%; height: 620px; background: radial-gradient(closest-side, color-mix(in srgb, var(--bleu) 30%, transparent), color-mix(in srgb, var(--bleu) 8%, transparent) 60%, transparent); pointer-events: none; }
body:is(.rfb-g12, .rfb-g14) .hero h1 { max-width: 16ch; }
body.rfb-g12 .hero { padding-bottom: 12px; }
body.rfb-g12 .corps { padding-top: 20px; }

/* Rubriques : un filet, le titre, puis le texte ; deux colonnes sur grand ecran */
body.rfb-g12 .rfb-c-rubrique { padding: 28px 0 32px; border-top: 1px solid var(--trait); }
body.rfb-g12 .corps .rfb-c-rubrique h2 { margin: 0 0 14px; font-size: clamp(23px, 5.6vw, 28px); line-height: 1.18; letter-spacing: -.02em; }
body.rfb-g12 .rfb-c-texte { max-width: 720px; }
body.rfb-g12 .rfb-c-texte > :first-child { margin-top: 0; }
body.rfb-g12 .rfb-c-texte > :last-child { margin-bottom: 0; }
body.rfb-g12 .rfb-c-texte :is(p, li) { overflow-wrap: anywhere; }
body.rfb-g12 .rfb-c-texte li + li { margin-top: 8px; }
body.rfb-g12 .corps .rfb-c-texte h3 { margin: 26px 0 10px; }
body.rfb-g12 .corps .rfb-c-texte h3:first-child { margin-top: 0; }
body.rfb-g12 .corps > .ctas { padding-top: 12px; margin-bottom: 0; }

/* Contact : la premiere ligne de chaque moyen de joindre porte l'information */
body.page-contact :is(#email, #telephone, #courrier) + .rfb-c-texte > p:first-child { color: var(--blanc); font-size: 19px; line-height: 1.45; }
body.page-contact .corps a.lien-tel { color: var(--ciel); font-weight: 620; }

/* A propos : la liste des regles se lit en lignes */
body.page-a-propos #methode + .rfb-c-texte ul { list-style: none; padding: 0; margin: 18px 0 0; }
body.page-a-propos #methode + .rfb-c-texte li { margin: 0; padding: 16px 0; border-top: 1px solid var(--trait); }
body.page-a-propos #methode + .rfb-c-texte li:last-child { padding-bottom: 0; }
body.page-a-propos #methode + .rfb-c-texte li > strong { display: block; margin-bottom: 4px; font-weight: 600; }

/* Partenaire : RankFlux × OBTP, bloc typographique ; pas de logo OBTP */
body.page-partenaire-obtp .duo { justify-content: flex-start; gap: 14px; margin: 22px 0 8px; padding: 0; background: none; color: var(--blanc); border-radius: 0; }
body.page-partenaire-obtp .duo-nom { font-size: clamp(26px, 7vw, 34px); font-weight: 640; letter-spacing: -.03em; }
body.page-partenaire-obtp .duo-x { font-size: 24px; color: var(--doux); }
body.page-partenaire-obtp .duo-partenaire { color: var(--ciel); }

/* Boutons du contenu : pilule blanche (rfb-bouton) et bouton secondaire au trait */
body:is(.rfb-g12, .rfb-g14) .ctas a.rfb-bouton { flex: 1 1 100%; min-height: 56px; font-size: 18px; }
body.rfb-g12 .ctas a.btn-contour { flex: 1 1 100%; min-height: 56px; padding: 0 26px; background: transparent; color: var(--blanc) !important; font-weight: 620; border: 1px solid color-mix(in srgb, var(--ciel) 55%, transparent); border-radius: 99px; transition: transform 130ms cubic-bezier(.23, 1, .32, 1); }
body.rfb-g12 .ctas a.btn-contour:hover { background: var(--nuit-3); transform: none; }
body.rfb-g12 .ctas a.btn-contour:active { transform: scale(.97); }

/* 404 : titre, puis les pages utiles en lignes, puis l'offre */
body.rfb-g14 .hero { padding-top: 36px; padding-bottom: 72px; }
body.rfb-g14 .hero h1 { max-width: none; }
body.rfb-g14 ul.suite { display: block; max-width: 720px; margin: 28px 0 8px; border-top: 1px solid var(--trait); }
body.rfb-g14 ul.suite li { border-bottom: 1px solid var(--trait); }
body.rfb-g14 ul.suite a { display: flex; flex-direction: row-reverse; justify-content: space-between; min-height: 52px; color: var(--blanc); font-weight: 500; text-decoration: none; }
body.rfb-g14 ul.suite a::before { color: var(--ciel); }
body.rfb-g14 ul.suite a:hover { color: var(--ciel); text-decoration: none; }
body.rfb-g14 .ctas { margin: 28px 0 0; }
body.rfb-g14 .ctas .cta-note { flex: 1 1 100%; font-size: 16px; }

/* Cibles de 44 px jusqu'a 1023 px, y compris sans ecran tactile (951 x 669) : le socle garde 32 px au pied et 40 px aux listes a partir de 720 px */
@media (max-width: 1023px) {
  body:is(.rfb-g12, .rfb-g14) :is(.pied a, .fil a, ul.suite a) { min-height: 44px; }
  body:is(.rfb-g12, .rfb-g14) :is(.pied a, .fil a) { min-width: 44px; }
}

@media (min-width: 700px) {
  body:is(.rfb-g12, .rfb-g14) .ctas a.rfb-bouton { flex: 0 0 auto; }
  body.rfb-g12 .ctas a.btn-contour { flex: 0 0 auto; }
  body.rfb-g14 ul.suite { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
@media (min-width: 900px) {
  body:is(.rfb-g12, .rfb-g14) main::before { left: -10%; width: 80%; top: -260px; height: 760px; }
  body.rfb-g12 .hero { padding-bottom: 28px; }
  body.rfb-g12 .hero:has(> .duo) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); column-gap: 72px; }
  body.rfb-g12 .hero:has(> .duo) > :is(h1, p) { grid-column: 1; }
  body.rfb-g12 .hero:has(> .duo) > .duo { grid-column: 2; grid-row: 1 / span 2; align-self: center; flex-direction: column; align-items: flex-start; margin: 0; padding: 28px 32px; background: var(--nuit-2); border: 1px solid var(--trait); border-radius: 16px; gap: 2px; }
  body.page-partenaire-obtp .duo-nom { font-size: 42px; }
  body.rfb-g12 .rfb-c-rubrique { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 720px); column-gap: 56px; padding: 40px 0 44px; }
  body.rfb-g12 .corps .rfb-c-rubrique h2 { position: sticky; top: 92px; align-self: start; margin: 0; }
  body.rfb-g12 .corps > .ctas { margin-left: 356px; }
  body.rfb-g14 .hero { padding-top: 72px; padding-bottom: 112px; }
}

/* Impression : encre sur papier, les jetons sombres sont neutralises */
@media print {
  body.rfb:is(.rfb-g12, .rfb-g14) { --nuit: Canvas; --nuit-2: Canvas; --nuit-3: Canvas; --blanc: CanvasText; --doux: CanvasText; --ciel: CanvasText; --trait: CanvasText; }
  body:is(.rfb-g12, .rfb-g14) main::before { display: none; }
}
