/* SPC · typographie et en-têtes homogènes · 19.11.2026
   Feuille chargée en dernier sur toutes les pages.
   Les tailles de titres du site passent par cinq jetons (définis aussi dans site.css) :
   --t-h1 titre de page, --t-h1l titre long (article), --t-h2 titre de section,
   --t-h3l titre de bloc, --t-h3 titre de carte. Aucun texte sous 15 px. */
:root{--t-h1:clamp(36px,4.5vw,60px);--t-h1l:clamp(31px,3.8vw,50px);--t-h2:clamp(28px,3.5vw,46px);--t-h3l:clamp(23px,2.4vw,31px);--t-h3:clamp(20px,1.9vw,25px);--t-lead:clamp(18px,1.55vw,21px)}

/* Césures : titres équilibrés, pas de mot isolé en fin de paragraphe */
h1,h2,h3{text-wrap:balance}
p,li,figcaption{text-wrap:pretty}

/* 1 · Connexion : un pictogramme, présent sur toutes les pages */
.hxr > a.spc-account-menu{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;color:#f7f9fb;text-decoration:none;border-radius:var(--spc-control-radius,4px)}
.hxr > a.spc-account-menu svg{display:block;width:24px;height:24px}
.hxr > a.spc-account-menu:hover,.hxr > a.spc-account-menu:focus-visible,.hxr > a.spc-account-menu[aria-current="page"]{color:#9fdcf2}
.hxr > a.spc-account-menu:focus-visible{outline:2px solid #9fdcf2;outline-offset:2px}
.ft22 a.spc-account-menu{display:inline-flex;align-items:center;gap:10px;color:#f7f9fb;font-size:clamp(16px,2vw,24px);margin-inline-end:20px;text-underline-offset:4px}
.ft22 a.spc-account-menu svg{flex:none;width:24px;height:24px}
@media (max-width:720px){.ft22 a.spc-account-menu{margin:0 12px 12px 0}}

/* 2 · En-têtes Réseau et Devenir membre : le titre sur toute la largeur, la photo dessous.
   Même construction que l'accueil : fond uni, titre, ligne d'appui, puis l'image. */
.j47-copy h1 > span{display:block}
.j66-gains{list-style:none;margin:clamp(22px,2.6vw,36px) 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(18px,2.4vw,36px)}
.j66-gains li{display:grid;gap:8px;align-content:start;padding-top:16px;border-top:2px solid #9fdcf2}
.j66-gains svg{width:30px;height:30px;color:#9fdcf2}
.j66-gains b{font-size:var(--t-h3);font-weight:600;letter-spacing:-.015em;line-height:1.2;color:#fff}
.j66-gains span{font-size:17px;line-height:1.45;color:#dbe8ef}
.j47-copy .j66-fact{margin:clamp(20px,2.4vw,32px) 0 clamp(18px,2vw,26px);font-size:17px;font-weight:400;line-height:1.45;color:#dbe8ef;max-width:44em}
@media (max-width:1023px){.j66-gains{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.j66-gains{grid-template-columns:1fr}}
@media (min-width:761px){
  html body #top > .j47-hero{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;min-height:0;padding-top:clamp(108px,11vw,160px);background:#102e49}
  html body #top > .j47-hero::after{display:none}
  html body #top > .j47-hero > .j47-copy{order:1;position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;column-gap:clamp(24px,4vw,56px);width:auto;max-width:none;padding:0 var(--gutter) clamp(30px,3.6vw,52px)}
  html body #top > .j47-hero > .j47-copy h1{grid-column:1/-1;max-width:none}
  html body #top > .j47-hero > .j47-copy .j66-gains{grid-column:1/-1}
  html body #top > .j47-hero > .j47-copy h1 + p{grid-column:1;max-width:44em;margin:clamp(16px,1.8vw,26px) 0 0;font-size:var(--t-lead);line-height:1.45}
  html body #top > .j47-hero > .j47-copy .j66-fact{grid-column:1;margin-bottom:0}
  html body #top > .j47-hero > .j47-copy > a{grid-column:2;justify-self:end;margin:0}
  html body #top > .j47-hero > picture{order:2;position:relative;inset:auto;left:auto;z-index:0;width:100%;height:clamp(280px,40vw,540px);overflow:hidden;background:#102e49}
  html body #top > .j47-hero > picture img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 36%;transform:none;-webkit-mask-image:none;mask-image:none}
  /* Devenir membre : cadrage sur l'échange devant le poster */
  html body #top > .j47-hero.join53-hero > picture img{inset:0 0 0 auto;width:145%;object-position:50% 20%}
}

/* 3 · Cartes des deux axes (page Réseau) : mêmes tailles que le reste du site */
#filiere .filiere52-axes.ax64 li b{font-size:var(--t-h3);letter-spacing:-.015em;line-height:1.2;padding:18px 20px 0}
#filiere .filiere52-axes.ax64 li span{font-size:17px;line-height:1.5;padding:8px 20px 14px}
#filiere .filiere52-axes.ax64 li .radar-photo-credit{margin:0;padding:0 20px 18px;font-size:15px;line-height:1.4;color:#536b7e}
#filiere .filiere52-axes.ax64 li img[src*="robot-roboy"]{object-position:50% 10%}
#filiere .filiere52-axes.ax64 li .radar-photo-credit a{color:inherit;text-underline-offset:2px}

/* 4 · Cotisation : le texte prend la largeur, sans colonne étroite */
html:root body .x-sec .pr59n{grid-column:1/-1;max-width:75ch !important}
.pr59 .pr59g .d{max-width:none}

/* 5 · Titres et petits textes sans règle propre : mêmes jetons que le reste */
:where(main,section,article) :where(h3){font-size:var(--t-h3);letter-spacing:-.015em;line-height:1.2}
:where(small){font-size:max(15px,.88em)}

/* 6 · Menu mobile : l'adhésion en grand, la connexion dessous, le tout aligné à gauche */
@media (max-width:1260px){
  .hx .hxm nav.m22 .ft22{flex-direction:column;flex-wrap:nowrap;align-items:flex-start;gap:14px;max-width:520px}
  .hx .hxm nav.m22 .ft22 .jo20{order:1;align-self:stretch;margin:0;min-height:64px;padding:0 28px;font-size:21px !important;font-weight:650}
  .hx .hxm nav.m22 .ft22 a.spc-account-menu{order:2;margin:0;min-height:48px;padding:0;gap:12px;font-size:20px !important;line-height:1.2 !important;letter-spacing:0 !important;font-weight:600;color:#f7f9fb;text-decoration:none}
  .hx .hxm nav.m22 .ft22 a.spc-account-menu svg{width:26px;height:26px;color:#9fdcf2}
}

/* 7 · Titres de section : toute la largeur, sur une ligne dès que le texte tient */
html:root body .x-h2,html:root body .x-sec .x-h2,html:root body .j47-section h2{max-width:none !important}
html body #filiere .n22ld{max-width:none !important;font-size:var(--t-lead) !important;line-height:1.45 !important;color:#102e49}
html body #filiere .filiere52-tags li{font-size:17px}
html body #filiere .ax58{font-size:var(--t-lead)}

/* 8 · Crédits photo des cartes de formation */
.cr66{margin:14px 0 0;font-size:15px;line-height:1.4;color:#b9cbd8}
.cr66 a{color:inherit;text-underline-offset:2px}
