/* LES PAGES DU SITE AU NOUVEAU STYLE — reglages propres aux pages interieures (hors accueil et fiches).
   Le moteur est celui de l'accueil en actes (actes.css, actes.js, suite.js), inclus tel quel ; cette feuille ne fait
   qu'adapter les gabarits des pages (id-main, gd-main, seo-main) a ce moteur, et fixe ce qui manquait :
   - LE FOND VERROUILLE partout (.bg + voile + grain) : les sous-pages le demandaient par une adresse relative
     (images/...) qui ne repondait pas, d'ou un noir plat ; ici l'adresse est absolue, comme sur l'accueil ;
   - les polices : titres en Michroma, texte en Inter Tight, surtitres en JetBrains Mono ;
   - les images des sections et des cartes : toutes a la meme dimension (bandeau 16/9, 340 px au plus). */

/* ---- le fond ---- */
body.pg .bg{background:#050505 url(/images/img_e675f278ad.jpg) center center/cover no-repeat!important}
@media(max-width:880px){body.pg .bg{background-image:url(/images/img_af71562633.jpg)!important}}
body.pg{background:#050505}

/* ---- les polices (variables des pages) ---- */
body.pg{--fd:"Michroma","Eurostile","Arial",sans-serif;--fb:"Inter Tight","Helvetica Neue",system-ui,sans-serif;--fm:"JetBrains Mono",ui-monospace,monospace;
font-family:var(--fb);font-synthesis:none}
body.pg :is(h1,h2,h3,h4){font-family:var(--fd)}
body.pg :is(p,li,td,th,dd,dt,blockquote,label,figcaption){font-family:var(--fb)}
body.pg .menu a{font-weight:400}

/* ---- les gabarits : en mode anime, les actes prennent toute la largeur et tout l'ecran ---- */
html.a7-js body.pg main{padding:0!important;margin:0!important}
html.a7-js body.pg :is(.id-wrap,.gd-wrap,.seo-wrap){max-width:none!important;padding:0!important;margin:0!important}
html.a7-js body.pg :is(#detail,article.guide-body){max-width:none!important;margin:0!important;padding:0!important}
/* #detail .sec (feuille de la page, regle par identifiant) ne doit pas defaire la mise en page de l'acte */
html.a7-js body.pg #detail .acte.suite-on .a7-sec,html.a7-js body.pg .guide-body .acte.suite-on .a7-sec{display:flex!important;min-height:0!important;
padding:clamp(76px,10vh,110px) 0 clamp(24px,4vh,48px)!important}
@media (orientation:portrait){html.a7-js body.pg #detail .acte.suite-on .a7-sec,html.a7-js body.pg .guide-body .acte.suite-on .a7-sec{padding:70px 0 18px!important}}

/* ---- sans le mode anime (sans script, mouvement reduit, ecran trop bas) : le texte en flux, lisible, sur le fond ---- */
body.pg .pg-acte{position:relative}
body.pg .pg-acte:not(.suite-on) .suite-ecran{min-height:0;overflow:visible}
body.pg .pg-acte:not(.suite-on) .suite-affiche{height:100vh;height:100svh;opacity:.55}
body.pg .pg-acte:not(.suite-on) .a7-sec-src{position:relative;z-index:3;max-width:1180px;margin:0 auto;padding:44px 24px}
body.pg .pg-acte:not(.suite-on) .a7-sec-src .wrap{max-width:none;padding:0}
body.pg .pg-acte:not(.suite-on) .pg-tete{padding-top:130px}
body.pg .pg-flux{position:relative;z-index:3;max-width:1180px;margin:0 auto!important;padding:56px 24px!important}

/* ---- l'en-tete de chaque page (fil d'Ariane, surtitre, titre, chapeau) ---- */
body.pg .pg-tete :is(.id-crumb,.gd-crumb){font:500 11.5px/1.6 "JetBrains Mono",monospace!important;letter-spacing:.16em;text-transform:uppercase;color:#9a9a9f;margin:0 0 clamp(16px,2.4vh,26px)!important;padding:0}
body.pg .pg-tete :is(.id-crumb,.gd-crumb) a{color:#d8b45c}
body.pg .pg-tete :is(.id-eyebrow,.seo-eyebrow){display:block;font:500 clamp(12px,1vw,15px)/1.3 "JetBrains Mono",monospace!important;letter-spacing:.3em;text-transform:uppercase;color:#d8b45c;margin:0 0 clamp(14px,2.2vh,26px)!important}
body.pg .pg-tete h1{font-family:"Michroma",sans-serif!important;font-weight:400!important;letter-spacing:-.015em;color:#f4f4f6;line-height:1.12}
body.pg .pg-tete h1 .n{font:500 .5em/1 "JetBrains Mono",monospace;color:#d8b45c;margin-right:.6em;vertical-align:middle}
html.a7-js body.pg .acte.suite-on .pg-tete .wrap{display:block!important}
html.a7-js body.pg .acte.suite-on .pg-tete .shead{margin-top:clamp(18px,3vh,34px)!important}
html.a7-js body.pg .acte.suite-on .pg-tete h1{font-size:clamp(34px,min(4.2vw,7.4vh),76px)!important;margin:0 0 clamp(16px,2.6vh,30px)!important;max-width:22ch!important}
html.a7-js body.pg .acte.suite-on .pg-tete p.a7-phrase{max-width:46ch!important}
@media (orientation:portrait){
html.a7-js body.pg .acte.suite-on .pg-tete,html.a7-js body.pg .acte.suite-on .pg-tete .shead{text-align:left}
html.a7-js body.pg .acte.suite-on .pg-tete h1{font-size:min(8.6vw,4.6vh,40px)!important}
html.a7-js body.pg .acte.suite-on .pg-tete p.a7-phrase{font-size:min(4.6vw,2.4vh,19px)!important}
}

/* ---- le texte libre dans un acte (chapitres du Guide, articles, pages Maroc) : la nouvelle ecriture ---- */
html.a7-js body.pg .acte.suite-on .a7-sec :is(h2,.xh2){font-family:"Michroma",sans-serif!important;font-weight:400!important;color:#f4f4f6}
html.a7-js body.pg .acte.suite-on .pg-grp .wrap>h2,html.a7-js body.pg .acte.suite-on .pg-grp .wrap>.xh2{font-size:clamp(26px,min(2.8vw,5.2vh),52px)!important;line-height:1.14;margin:0 0 clamp(12px,2vh,24px)!important}
html.a7-js body.pg .acte.suite-on .a7-sec :is(h3){font-size:clamp(17px,min(1.4vw,2.6vh),24px)}
html.a7-js body.pg .acte.suite-on .a7-sec a:not(.btn):not([class*="card"]):not(.xexp-row){color:#ecca7e}
html.a7-js body.pg .acte.suite-on .a7-sec :is(p,li) a:not(.btn){text-decoration:underline;text-underline-offset:3px}
html.a7-js body.pg .acte.suite-on .a7-sec blockquote{border-left:2px solid #d8b45c;padding-left:clamp(14px,1.4vw,24px);margin-left:0;font-style:normal}
/* les listes de texte libre : leurs puces d'origine */
html.a7-js body.pg .acte.suite-on .pg-grp .wrap>:is(ul,ol){padding-left:1.2em}
/* les tableaux (comparatifs, Guide) : lisibles sur le fond, jamais plus larges que l'ecran */
html.a7-js body.pg .acte.suite-on .a7-sec table{background:rgba(10,10,12,.55);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
html.a7-js body.pg .acte.suite-on .a7-sec :is(td,th){font-size:clamp(13px,min(1vw,1.9vh),17px)!important}
@media (orientation:portrait){
html.a7-js body.pg .acte.suite-on .pg-grp .wrap>h2,html.a7-js body.pg .acte.suite-on .pg-grp .wrap>.xh2{font-size:min(6.4vw,3.6vh,30px)!important}
html.a7-js body.pg .acte.suite-on .a7-sec :is(td,th){font-size:12.5px!important;padding:7px 8px!important}
html.a7-js body.pg .acte.suite-on .a7-sec table{min-width:0!important}
}

/* ---- les images : toutes au meme bandeau 16/9, 340 px au plus (cartes et sections) ---- */
body.pg .dvis.dimg{width:min(100%,340px)!important;max-width:340px!important;aspect-ratio:16/9!important;height:auto!important;margin:clamp(14px,2vh,24px) 0 0!important;border-radius:14px;overflow:hidden}
body.pg .dvis.dimg img{width:100%!important;height:100%!important;object-fit:cover!important;max-height:none!important;max-width:none!important}
body.pg .id-card .im{height:auto!important;aspect-ratio:16/9;overflow:hidden}
body.pg .id-card .im img{width:100%;height:100%;object-fit:cover}
body.pg .id-card{background:rgba(12,12,14,.42);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
html.a7-js body.pg .acte.suite-on .id-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),min(100%,340px)))!important;justify-content:start!important;gap:clamp(10px,1.2vw,18px)!important;margin:0!important}
html.a7-js body.pg .acte.suite-on .id-card .t{font-size:clamp(14px,1.05vw,18px)!important;line-height:1.3}
@media (orientation:portrait){
html.a7-js body.pg .acte.suite-on .id-grid{grid-template-columns:1fr!important;gap:12px!important}
html.a7-js body.pg .acte.suite-on .id-card .bd{padding:12px 14px}
html.a7-js body.pg .acte.suite-on .id-card .t{font-size:15px!important}
}

/* ---- la scene en image fixe (en attendant sa suite calculee) : le zoom suit le defilement, aller puis retour ---- */
html.a7-js body.pg .pg-acte[data-pg-fixe].suite-on .suite-toile{transform:scale(calc(1 + .24 * min(var(--suite-p,0), 1 - var(--suite-p,0))));transform-origin:50% 52%;will-change:transform}

/* ---- les outils (calculateur, diagnostic) : en flux normal, entierement utilisables, a la nouvelle ecriture ---- */
body.pg .pg-outil .shead h2{font:400 clamp(28px,min(3.2vw,6vh),58px)/1.12 "Michroma",sans-serif!important;color:#f4f4f6;letter-spacing:-.015em;margin:0 0 clamp(18px,3vh,36px)!important}
body.pg .pg-outil{max-width:1180px}
body.pg .pg-outil .wrap{max-width:none;padding:0}

/* ---- la navigation du Guide (chapitre precedent, sommaire, suivant) ---- */
body.pg .gd-nav.pg-flux{max-width:1180px;border-top:1px solid rgba(255,255,255,.12)}
body.pg .gd-nav a{font-family:"Inter Tight",sans-serif;font-size:15px;background:rgba(12,12,14,.45);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}

/* ---- le pied de page : la nouvelle ecriture, translucide sur le fond ---- */
body.pg footer :is(h4,.ft-h,summary){font-family:"Michroma",sans-serif;font-weight:400;letter-spacing:.02em}

/* ==== La mise en page dans les actes : scene, en-tete, sections, grilles ==== */
/* ON VOIT TOUJOURS LA SCENE : d'un acte a l'autre d'une meme page, la scene ne s'eteint pas (pas de fondu au noir) */
html.a7-js body.pg .suite.acte.pg-acte.suite-on .suite-toile{opacity:1!important}
/* l'en-tete : le chapeau en colonne lisible, l'intertitre plus petit que le titre, jamais colle a lui */
html.a7-js body.pg .acte.suite-on .a7-sec.pg-tete.pg-tete :is(p,.a7-phrase){max-width:min(100%,62ch)!important}
html.a7-js body.pg .acte.suite-on .a7-sec.pg-tete.pg-tete .shead>h2,html.a7-js body.pg .acte.suite-on .a7-sec.pg-tete.pg-tete .shead h2{font-size:clamp(22px,min(2.2vw,4.2vh),42px)!important;margin:0 0 clamp(14px,2.2vh,26px)!important;color:#ecca7e}
/* une section a grille, tableau ou formulaire : le titre au-dessus, le contenu dessous sur toute la largeur */
html.a7-js body.pg .acte.suite-on .a7-sec.a7-large:has(.grid,.feats,.faqgrid,table,form,.id-grid,.xfaq,.bens,.eng,.sgrid,.lvl,.pipe,.mstats,.xexp,.gd-toc,.seo-rel-grid,.ctaband,.contrast,.chipsbox,.faq,.tspec) .wrap{display:block!important}
html.a7-js body.pg .acte.suite-on .a7-sec.a7-large:has(.grid,.feats,.faqgrid,table,form,.id-grid,.xfaq,.bens,.eng,.sgrid,.lvl,.pipe,.mstats,.xexp,.gd-toc,.seo-rel-grid,.ctaband,.contrast,.chipsbox,.faq,.tspec) .wrap>.shead>h2,html.a7-js body.pg .acte.suite-on .a7-sec.a7-large:has(.grid,.feats,.faqgrid,table,form,.id-grid,.xfaq,.bens,.eng,.sgrid,.lvl,.pipe,.mstats,.xexp,.gd-toc,.seo-rel-grid,.ctaband,.contrast,.chipsbox,.faq,.tspec) .wrap>h2{margin:0 0 clamp(14px,2.4vh,30px)!important}
html.a7-js body.pg .acte.suite-on .a7-sec.a7-large:has(.grid,.feats,.faqgrid,table,form,.id-grid,.xfaq,.bens,.eng,.sgrid,.lvl,.pipe,.mstats,.xexp,.gd-toc,.seo-rel-grid,.ctaband,.contrast,.chipsbox,.faq,.tspec) .wrap>:is(.shead>p,p){max-width:min(100%,70ch)!important}
/* le texte seul (paragraphes sans intertitre) : plus grand, une colonne de lecture qui s'etale de son cote */
html.a7-js body.pg .acte.suite-on .a7-sec.pg-grp:not(:has(.wrap>:is(h2,h3,.shead,.xh2))) .wrap{display:block!important}
html.a7-js body.pg .acte.suite-on .a7-sec.pg-grp:not(:has(.wrap>:is(h2,h3,.shead,.xh2))) .wrap>:is(p,blockquote,ul,ol){font-size:clamp(19px,min(1.55vw,2.8vh),29px)!important;line-height:1.5!important;max-width:min(100%,58ch)!important}
html.a7-js body.pg .acte.suite-on .a7-sec.pg-grp[data-a7-cote=d]:not(:has(.wrap>:is(h2,h3,.shead,.xh2))) .wrap>*{margin-left:auto!important}
/* les grilles de cartes des pages (cartes, points forts, questions) : plusieurs par rangee, sur toute la largeur */
body.pg :is(.grid,.feats,.xfaq,.bens,.sgrid):not(.id-grid){display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))!important;gap:clamp(10px,1.1vw,16px)!important}
html.a7-js body.pg .acte.suite-on .a7-sec :is(.card,.feat,.xq,.ben,.pkc) h3{font-size:clamp(17px,min(1.35vw,2.4vh),24px)!important;line-height:1.3}
html.a7-js body.pg .acte.suite-on .a7-sec :is(.card,.feat,.xq,.ben,.pkc) :is(p,li){font-size:clamp(15px,min(1.1vw,2vh),20px)!important;line-height:1.5}
html.a7-js body.pg .acte.suite-on .a7-sec :is(.card,.feat,.xq,.ben,.pkc,.crow,.eng,.faq){background:rgba(12,12,14,.5)!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
@media (orientation:portrait){
/* telephone : la scene un peu plus sombre sous le texte, et les longs paragraphes alignes a gauche (lecture) */
html.a7-js body.pg .suite.acte.pg-acte.suite-on .suite-toile{filter:brightness(.48)}
html.a7-js body.pg .acte.suite-on .a7-sec.pg-grp .wrap>:is(p,blockquote,ul,ol){text-align:left!important;font-size:min(4.4vw,2.3vh,18px)!important}
body.pg :is(.grid,.feats,.xfaq,.bens,.sgrid):not(.id-grid){grid-template-columns:1fr!important}
html.a7-js body.pg .acte.suite-on .a7-sec :is(.card,.feat,.xq,.ben,.pkc) :is(p,li){font-size:14.5px!important}
}
/* les huit villes : la carte vue de pres est tres lumineuse ; assombrie sous le texte */
html.a7-js body.pg[class*="pg-vil"] .suite.acte.pg-acte.suite-on .suite-toile{filter:brightness(.55)}
@media (orientation:portrait){html.a7-js body.pg[class*="pg-vil"] .suite.acte.pg-acte.suite-on .suite-toile{filter:brightness(.38)}}
/* un intertitre sans surtitre : il commence a la premiere rangee (sinon une liste pleine largeur passait au-dessus de lui) */
html.a7-js body.pg .acte.suite-on .a7-sec .wrap:not(:has(>.shead>.eyebrow,>.eyebrow))>.shead>h2,html.a7-js body.pg .acte.suite-on .a7-sec .wrap:not(:has(>.shead>.eyebrow,>.eyebrow))>h2{grid-row:1/span 8!important}
/* les blocs en flux (outils) dans #detail : leurs marges, malgre la regle par identifiant de la page (#detail .sec) */
html body.pg #detail .pg-flux{padding:clamp(48px,8vh,96px) clamp(16px,4vw,48px)!important;margin:0 auto!important;max-width:1180px}
/* la liste des expertises : lisible */
html.a7-js body.pg .acte.suite-on .a7-sec .xexp-n{font:400 clamp(15px,min(1.15vw,2.1vh),20px)/1.3 "Michroma",sans-serif!important}
html.a7-js body.pg .acte.suite-on .a7-sec .xexp-d{font-size:clamp(14px,min(1vw,1.9vh),18px)!important;color:#d6d6da!important}

/* ==== Le passage d'un acte a l'autre ====
   JAMAIS DEUX ECRANS EPINGLES SUPERPOSES : l'acte qui en suit un autre (.pg-suit) remonte d'un ecran, si bien que son
   ecran s'epingle exactement quand celui du precedent se libere ; l'ecran qui part s'efface sur son dernier tiers
   d'ecran de defilement, celui qui arrive apparait sur son premier tiers (fondu par le fond du site, l'un apres l'autre). */
html.a7-js body.pg .pg-acte.suite-on>.suite-ecran{opacity:clamp(0,(1 - var(--suite-p,0)) * (var(--suite-ecrans,4) - 1) * 3,1)}
html.a7-js body.pg .pg-acte.pg-suit.suite-on>.suite-ecran{opacity:clamp(0,min(var(--suite-p,0),1 - var(--suite-p,0)) * (var(--suite-ecrans,4) - 1) * 3,1)}
html.a7-js body.pg .pg-acte.pg-suit.suite-on{margin-top:-100vh;margin-top:-100lvh}
/* LA SCENE NE DISPARAIT JAMAIS : sur les pages a scene, l'acte suivant s'epingle un tiers d'ecran AVANT que le precedent
   se libere ; pendant ce tiers d'ecran les deux fondus se croisent (l'un monte pendant que l'autre descend), au meme
   endroit, l'entrant par-dessus. Une page marquee pg-sans (sans scene) garderait le passage simple ci-dessus. */
html.a7-js body.pg:not(.pg-sans) .pg-acte.pg-suit.suite-on{margin-top:-133.4vh;margin-top:-133.4lvh}

/* ==== Telephone ====
   tableaux : toutes les colonnes dans l'ecran (largeur fixe, cesure des mots longs) ; blocs de code : retour a la ligne */
@media (orientation:portrait){
html body.pg #detail table,html body.pg .guide-body table,html body.pg table{display:table!important;table-layout:fixed!important;width:100%!important;min-width:0!important;max-width:100%!important;overflow:visible!important}
html body.pg :is(#detail,.guide-body,main) :is(td,th){word-break:break-word;overflow-wrap:anywhere;-webkit-hyphens:auto;hyphens:auto;white-space:normal!important}
html body.pg :is(#detail,.guide-body,main) pre{white-space:pre-wrap!important;word-break:break-word!important;overflow-wrap:anywhere!important;display:block!important;min-width:0!important;max-width:100%!important;overflow:visible!important}
html body.pg :is(#detail,.guide-body,main) :has(>table),html body.pg :is(#detail,.guide-body,main) :has(>pre){overflow:visible!important;max-width:100%!important;min-width:0!important}
/* les surtitres et le fil d'Ariane, lisibles au telephone */
html body.pg .pg-tete :is(.id-crumb,.gd-crumb){font-size:12.5px!important}
html body.pg .pg-tete :is(.id-eyebrow,.seo-eyebrow),html.a7-js body.pg .acte.suite-on .a7-sec .eyebrow{font-size:12.5px!important}
}
/* les blocs de code se lisent de gauche a droite, partout */
body.pg pre{text-align:left!important}
/* pendant le fondu croise, le texte de l'acte entrant attend que celui qui part ait disparu (jamais deux textes l'un
   sur l'autre) : il apparait juste apres le tiers d'ecran du fondu */
html.a7-js body.pg:not(.pg-sans) .pg-acte.pg-suit.suite-on .a7-sec{opacity:clamp(0,(var(--suite-p,0) * (var(--suite-ecrans,4) - 1) - .34) * 6,1)}

/* ==== Pages interieures : sans script, grilles, cadres, texte sur la scene ==== */
/* SANS JAVASCRIPT : l'en-tete est opaque (le moteur ne l'assombrit qu'au defilement, par script) ; le texte ne passe plus
   sous le logo */
html:not(.a7-js) body.pg #nav{background:rgba(5,5,5,.9)!important;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-bottom:1px solid rgba(255,255,255,.06)}
/* LES GRILLES EQUILIBREES (pages.js : .pg-eq, --pg-cols) : 6 cartes = 3 + 3, jamais une carte seule sur sa rangee */
@media (orientation:landscape){
html.a7-js body.pg .acte.suite-on .a7-sec .pg-eq:not(.id-grid){grid-template-columns:repeat(var(--pg-cols,3),minmax(0,1fr))!important}
html.a7-js body.pg .acte.suite-on .a7-sec .pg-eq.id-grid{grid-template-columns:repeat(var(--pg-cols,3),minmax(0,340px))!important}
}
/* PAS DE CADRE VIDE : une grille dont le conteneur porte un fond (« Ce que vous y gagnez ») s'affichait d'un bloc, vide,
   avant ses cartes ; le fond passe aux cartes, qui arrivent une a une */
html.a7-js body.pg .acte.suite-on .a7-sec :is(.bens,.feats,.xfaq,.sgrid,.grid):not(.id-grid){background:none!important;border:0!important;box-shadow:none!important;overflow:visible!important;border-radius:0!important}
html.a7-js body.pg .acte.suite-on .a7-sec .ben{border:1px solid rgba(255,255,255,.08)!important;border-radius:16px!important}
/* LE TEXTE SUR LA SCENE, EFFET CINEMA : sous chaque bloc de texte, la scene s'assombrit doucement (un halo sombre aux bords
   fondus, qui arrive et repart avec le texte) ; l'objet reste visible autour */
html.a7-js body.pg .acte.suite-on .a7-sec .a7-l.on:is(p,h1,h2,h3,h4,li,blockquote,dt,dd,figcaption,.eyebrow,.id-crumb,.gd-crumb,.sub,.xh2,nav):not(:is(.card,.feat,.xq,.ben,.pkc,.id-card,.exnote,.ctaband,table,.cta,.code,.node) *){background:rgba(5,5,5,.4);box-shadow:0 0 30px 20px rgba(5,5,5,.4);border-radius:14px}
html.a7-js body.pg .acte.suite-on .a7-sec :is(p,li,.eyebrow,.id-crumb,h3){text-shadow:0 1px 2px rgba(0,0,0,.85),0 0 18px rgba(0,0,0,.7)}
@media (orientation:portrait){
/* les puces des listes dans une carte centree : contre leur texte, pas collees au bord gauche */
html.a7-js body.pg .acte.suite-on .a7-sec :is(.card,.feat,.xq,.ben,.pkc) :is(ul,ol){list-style-position:inside!important;padding-left:0!important;margin-left:0!important}
html.a7-js body.pg #detail .acte.suite-on .a7-sec .pkc li,html.a7-js body.pg .acte.suite-on .a7-sec .pkc li{padding-left:0!important}
html.a7-js body.pg #detail .acte.suite-on .a7-sec .pkc li::before,html.a7-js body.pg .acte.suite-on .a7-sec .pkc li::before{position:relative!important;display:inline-block!important;left:auto!important;top:auto!important;margin:0 10px 0 0!important;vertical-align:middle}
/* UNE SEULE TAILLE D'IMAGE SUR TELEPHONE : toute image de carte ou de section prend la pleine largeur de sa carte, en 16/9
   (cartes en une colonne ; plus de 166 px ici, 338 px la) */
body.pg .id-grid{grid-template-columns:1fr!important}
body.pg .dvis.dimg{width:100%!important;max-width:none!important}
}
/* pendant la mesure par actes.js (premier instant), le bandeau de boutons des deux langues est affiche ; voir pages.js */
html.pg-mesure body.pg .pg-bandeau{display:block!important}
/* le dernier mot d'une question et son « ? » restent sur la meme ligne (boite .pg-insec posee a la generation des pages) */
body.pg .pg-insec{white-space:nowrap}
/* les mots ecrits un a un (boites .a7-m du moteur) a l'interieur d'une etiquette (.metas, .ptags) ne prennent pas le cadre de l'etiquette : une seule pastille par etiquette, pas une par mot */
html.a7-js body .acte.suite-on .a7-sec :is(.metas,.ptags,.xtags,.tech) span span,html.a7-js #detail .acte.suite-on .a7-sec.a7-sec :is(.metas,.ptags,.xtags,.tech) span span,html.a7-js #detail .acte.suite-on .a7-sec.ohero.ohero :is(.metas,.ptags,.xtags,.tech) span span{border:0!important;padding:0!important;background:none!important;border-radius:0!important;box-shadow:none!important;margin:0!important;min-height:0!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;font-size:inherit!important;letter-spacing:inherit!important}

/* ==== LA REGLE DES CARTES EGALES : toutes les cartes d'une meme rangee ont exactement la meme taille ; une rangee
   s'etale sur toute la largeur ; l'image remplit son cadre — ordinateur ET telephone ====
   Une seule regle pour toutes les familles de cartes, en trois couches :
   - le moteur (actes.css et actes.js, « LA REGLE DES CARTES ») : colonnes egales qui remplissent la largeur, rangees egales
     a la plus haute carte, image de carte en 16/9 sur toute la largeur de la carte ;
   - pages.js (partie 5) : mesure de chaque famille telle qu'elle s'affiche ; jamais une carte seule sur sa derniere rangee ;
   - ici, ce qui reste propre aux pages :
     1. L'IMAGE D'UNE CARTE REMPLIT SON CADRE : le plafond des images de section (340 x 191 px, actes.css) ne s'applique pas
        a l'image d'une carte ; elle prend toute la largeur et toute la hauteur de son cadre, en « cover » (ni lisere vide
        de 4 px au telephone, ni vignette de 340 px dans un cadre de 418 px sur ordinateur) ;
     2. LES LIENS « CHAPITRE PRECEDENT / SUIVANT » DU GUIDE : deux cartes de meme largeur et de meme hauteur, de part et
        d'autre du sommaire.
   La meme regle s'applique aux fiches (fiches.css, meme titre). */
html.a7-js body .acte.suite-on .a7-sec.a7-sec :is(.id-card,.card,.feat,.ben,.pkc,.xq,.a7-grille>*) :is(.im,.dimg,.pimg,.cimg,.frame,.vimg,.res-head,.tc-img,.ec-img,.essai-img,figure)>img{max-width:none!important;max-height:none!important;width:100%!important;height:100%!important;object-fit:cover!important;display:block}
body.pg .id-card .im>img{max-width:none!important;max-height:none!important;width:100%!important;height:100%!important;object-fit:cover!important;display:block}
body.pg .gd-nav.pg-flux>a:not(.gd-toc){display:flex!important;align-items:center!important;box-sizing:border-box}
body.pg .gd-nav.pg-flux>a:last-child:not(.gd-toc){justify-content:flex-end!important;text-align:right}
@media (orientation:landscape){
body.pg .gd-nav.pg-flux{align-items:stretch!important}
body.pg .gd-nav.pg-flux>a:not(.gd-toc){flex:1 1 0!important;min-width:0!important}
body.pg .gd-nav.pg-flux>a.gd-toc{align-self:center!important}
}
@media (orientation:portrait){
body.pg .gd-nav.pg-flux>a:not(.gd-toc){flex:1 1 100%!important;width:100%!important;max-width:none!important}
body.pg .gd-nav.pg-flux>a:last-child:not(.gd-toc){justify-content:flex-start!important;text-align:left}
}

/* ==== Finitions typographiques et cas particuliers ==== */
/* UNE PHRASE N'A QU'UNE TAILLE : actes.js (grossir) pose au chargement une taille fixe en style en ligne (22 px au plus)
   sur chaque element qui porte du texte ; le paragraphe est ensuite agrandi par actes.css, mais ses mots en gras, ses
   liens et la boite insecable garderaient 22 px : ils reprennent la taille de leur phrase */
html.a7-js .acte.suite-on .a7-sec :is(p,li,blockquote,dd,h2,h3,h4,.xqq,.xqa) :is(strong,b,em,i,a){font-size:inherit!important}
html.a7-js .acte.suite-on .pg-insec{font-size:inherit!important}
/* le mot et son signe (« : » « ; » « ? » « ! » « » », « « » et le mot suivant) restent sur la meme ligne
   (la boite .pg-insec est posee a la generation des pages) */
.pg-insec{white-space:nowrap}
/* un lien souligne l'est sous chaque mot (sans cette regle, le soulignement ne passe pas dans les boites de mots
   inline-block : seules les espaces seraient soulignees) ; un lien sans soulignement le reste (inherit) */
html.a7-js .acte.suite-on a :is(.pg-insec,strong,b,em,i),html.a7-js .acte.suite-on a :is(.a7-m,.a7-mg){text-decoration:inherit}
/* les etiquettes en rangee passent a la ligne plutot que de deborder */
html.a7-js body .acte.suite-on .a7-sec :is(.xtags,.tech){flex-wrap:wrap!important;max-width:100%!important;min-width:0!important}
/* le chapeau (.lead2) n'est jamais plus petit que les paragraphes qui le suivent (la regle d'origine
   « #detail .lead2{21px!important} » l'emporte sur actes.css a cause de l'identifiant) */
@media (orientation:landscape) and (min-width:1000px){
html.a7-js body.pg #detail .acte.suite-on .a7-sec .wrap>p.lead2.a7-phrase{font-size:clamp(18px,min(1.4vw,2.5vh),25px)!important}
html.a7-js body.pg #detail .acte.suite-on .a7-sec.pg-grp:not(:has(.wrap>:is(h2,h3,.shead,.xh2))) .wrap>p.lead2{font-size:clamp(19px,min(1.55vw,2.8vh),29px)!important}
}
/* l'etiquette d'une citation du Guide (<cite> « Ce qu'il faut retenir ») sous la citation, en petite etiquette */
body.pg blockquote>cite{display:block}
html.a7-js body.pg .acte.suite-on .a7-sec blockquote>cite{display:block!important;margin-top:12px!important;font:500 12.5px/1.4 "JetBrains Mono",monospace!important;letter-spacing:.14em;text-transform:uppercase;font-style:normal;color:#9a9a9f!important}
/* une carte .feat sans icone (.fi) : le titre au-dessus du texte (la regle d'origine « .feat{display:flex} » est faite
   pour une icone suivie d'un texte ; sans icone, le titre et le texte se mettraient en colonnes) */
html.a7-js body.pg .acte.suite-on .a7-sec .feat:not(:has(>.fi)){flex-direction:column!important;align-items:stretch!important;gap:6px!important}
/* LES OUTILS EN ANGLAIS (calculateur, diagnostic) : un acte qui suit un acte remonte d'un ecran (actes.css,
   « .suite.acte+.suite.acte »). Apres un outil, l'acte anglais suit l'acte francais CACHE : il remonterait d'un ecran sur
   l'outil. Une paire de langues suit le meme bloc : si l'acte francais ne relaie pas un acte (pas de pg-suit), l'anglais non
   plus */
html.a7-js body.pg .pg-acte.chap-fr+.pg-acte.chap-en:not(.pg-suit){margin-top:0!important}

/* ==== LE TELEPHONE : reglages propres aux gabarits des pages ====
   La regle commune (marges de 18 px, zone sure, cartes compactes, liste compacte, 15 px, 44 px) est dans actes.css
   (body.a7-page) ; les colonnes et la longueur des actes dans actes.js (TELP). Telephone seul (portrait, 767 px au plus) :
   l'ordinateur ne lit rien ici. */
@media (max-width:767px) and (orientation:portrait){
/* le texte libre (chapitres, articles) : 15 px au moins, meme sur un petit ecran bas (360 x 640) */
html.a7-js body.pg.a7-page .acte.suite-on .a7-sec.pg-grp .wrap>:is(p,blockquote,ul,ol){font-size:clamp(15px,min(4.4vw,2.3vh),18px)!important}
/* les encadres « Situation... » (texte a chasse fixe) : 15 px */
html.a7-js body.a7-page .acte .a7-sec-src.a7-sec-src:not(#a7-0) .exnote{font-size:15px!important;line-height:1.5!important;padding:14px 16px!important}
html.a7-js body.a7-page .acte .a7-sec-src.a7-sec-src:not(#a7-0) .exnote *{font-size:inherit!important}
/* les outils (calculateur, diagnostic), en flux : la meme marge de 18 px ; des champs de 16 px et des cibles de 44 px, au pouce */
html body.pg.a7-page #detail .pg-flux,html body.pg.a7-page .pg-flux{padding-left:18px!important;padding-right:18px!important}
body.pg.a7-page .pg-outil :is(input,select,textarea){font-size:16px!important;min-height:44px!important;box-sizing:border-box!important}
body.pg.a7-page .pg-outil :is(button,.toolbtn,.btn,a.btn){min-height:44px!important}
body.pg.a7-page .pg-outil :is(label,.hint){font-size:15px!important}
/* la navigation du Guide (chapitre precedent, sommaire, suivant) : 44 px, 15 px */
body.pg.a7-page .gd-nav a{min-height:44px!important;font-size:15px!important}
/* « Nos autres expertises » (.seo-rel-grid) : les mots ecrits un a un (span.a7-m) prenaient la petite etiquette doree de la
   carte (regle « .seo-rel-grid a span ») ; au telephone, le titre de la carte reprend sa taille (15 px) et son ecriture */
html.a7-js body.pg.a7-page .acte .seo-rel-grid a .a7-m{font:inherit!important;letter-spacing:inherit!important;text-transform:inherit!important;color:inherit!important;margin:0!important;display:inline-block!important}
html.a7-js body.pg.a7-page .acte .seo-rel-grid a>span[style]{font-size:15px!important;display:block!important;margin-top:4px!important}
html.a7-js body.pg.a7-page .acte .seo-rel-grid a>span:not([style]){font-size:12.5px!important}
html.a7-js body.pg.a7-page .acte .seo-rel-grid a{padding:12px 16px!important;min-height:44px}
}
/* BARRE DE DEFILEMENT au style du site (sans ces regles, la barre du menu s'affiche en blanc).
   Piste noir mat, curseur or sobre, menu ouvert comme menu ferme.
   - La page (html) : SEULEMENT scrollbar-color (Chrome recent, Firefox ; herite par toute zone qui defile). Aucun
     ::-webkit-scrollbar sur la page : sur Mac la barre reste superposee et la mise en page ne bouge pas.
   - Les panneaux internes qui defilent (menu, fenetre du Guide, fiche ouverte, tableaux, chatbot, champ message) :
     ::-webkit-scrollbar fin et arrondi sur ordinateur ; la zone garde la largeur native de Windows (15 px), donc la
     largeur utile ne change pas ; le curseur dore n'y occupe qu'un trait de 7 px.
   - Telephone et Firefox : scrollbar-width:thin sur les zones internes (pas sur la page). */
html{scrollbar-color:rgba(216,180,92,.55) #050505}
@media (hover:none),(pointer:coarse){html{scrollbar-color:rgba(216,180,92,.6) transparent}:where(body *){scrollbar-width:thin}}
@supports not selector(::-webkit-scrollbar){:where(body *){scrollbar-width:thin}}
@media (hover:hover) and (pointer:fine){@supports selector(::-webkit-scrollbar){
:where(#menu,.gov-scroll,#detail,.tw,.ctblwrap,.amcw-m,textarea) *{scrollbar-color:rgba(216,180,92,.55) #050505}
:is(#menu,.gov-scroll,#detail,.tw,.ctblwrap,.amcw-m,textarea){scrollbar-color:auto}
:is(#menu,.gov-scroll,#detail,.tw,.ctblwrap,.amcw-m,textarea)::-webkit-scrollbar{width:15px;height:15px;background:#050505}
:is(#menu,.gov-scroll,#detail,.tw,.ctblwrap,.amcw-m,textarea)::-webkit-scrollbar-track{background:#050505}
:is(#menu,.gov-scroll,#detail,.tw,.ctblwrap,.amcw-m,textarea)::-webkit-scrollbar-thumb{background:rgba(216,180,92,.5) padding-box;border:4px solid transparent;border-radius:999px;min-height:48px}
:is(#menu,.gov-scroll,#detail,.tw,.ctblwrap,.amcw-m,textarea)::-webkit-scrollbar-thumb:hover{background-color:rgba(216,180,92,.8)}
:is(#menu,.gov-scroll,#detail,.tw,.ctblwrap,.amcw-m,textarea)::-webkit-scrollbar-button{display:none;width:0;height:0}
:is(#menu,.gov-scroll,#detail,.tw,.ctblwrap,.amcw-m,textarea)::-webkit-scrollbar-corner{background:#050505}
}}
