/* ═══ La verrière : le hero de toutes les pages, sauf le blog (2026-11-23) ═══
   Le fond est dessiné par public/da/hero-verriere.js. Cette feuille retire les décors
   que le verre remplace, cale le canvas et donne le repli sans WebGL2.
   Elle est posée telle quelle après toutes les autres par DaPage (sans son préfixe
   automatique), liée par GeoStrategyPage et importée par /consultant-lead-seo/ et
   /audit-seo/ : chaque règle nomme donc sa page ou l'attribut posé par le script.
   Décisions de Tim du 23/11/2026 : verrière C, « il faut que le blanc recouvre tout au
   scroll », « appliquer ça à tous les hero de toutes les pages (sauf blog) ».

   Les familles de hero : .hero, .page-hero, .gl-hero, .site-map-hero, .sse-h2, .org-contact
   et .sia-hero des pages DA, .native-hero des stratégies GEO, .lds-hero de la page lead SEO,
   [data-verriere-hero] pour la page d'audit. */

/* les décors d'avant laissent la place au verre : illustration, halo, fumée animée */
:is(.da :is(#hero.hero,#hero.page-hero,#hero.gl-hero,#hero.site-map-hero,#hero.sse-h2,#hero.org-contact,.sia-hero),.organikk-page #hero.native-hero,.lds-page .lds-hero,[data-verriere-hero]) :is(.hero-art,.hero-glow,canvas.field){display:none}
:is(.da :is(#hero.hero,#hero.page-hero,#hero.gl-hero,#hero.site-map-hero,#hero.sse-h2,#hero.org-contact,.sia-hero),.organikk-page #hero.native-hero,.lds-page .lds-hero,[data-verriere-hero]) > canvas.nav-fond{display:none}
/* cas client : le voile bleu posé sur l'ancien panorama restait à l'écran une fois le hero blanchi */
.da #hero.lyo-panorama > .hero-stage::after{content:none}
/* /systeme-seo/ : la déflagration rose et son image laissent aussi la place au verre */
.da #hero.sse-h2 > :is(.sse-defla,.sse-cubes-bas){display:none}

/* le grain du hero, qui s'efface avec le voile */
:is(.da :is(#hero.hero,#hero.page-hero,#hero.gl-hero,#hero.site-map-hero,#hero.sse-h2,#hero.org-contact,.sia-hero),.organikk-page #hero.native-hero,.lds-page .lds-hero,[data-verriere-hero])::after{opacity:calc(.34*(1 - var(--hx-b,0)));-webkit-mask-image:none;mask-image:none}
.lds-page .lds-hero::before{opacity:calc(.32*(1 - var(--hx-b,0)))}

/* le canvas, dans la scène du hero ou dans celle que le script lui ajoute */
[data-hx]{isolation:isolate}
/* (!important : plusieurs pages placent tout enfant ou tout canvas de leur hero, [data-fond] > *, .native-hero canvas) */
[data-hx] .hx-cv{position:absolute !important;inset:0 !important;width:100% !important;height:100% !important;display:block !important}
[data-hx] > .hx-fond{position:absolute !important;inset:0 !important;z-index:-1 !important;overflow:hidden;border-radius:inherit;pointer-events:none}
:is(.da :is(#hero.hero,#hero.page-hero,#hero.gl-hero,#hero.site-map-hero,#hero.sse-h2,#hero.org-contact,.sia-hero),.organikk-page #hero.native-hero,.lds-page .lds-hero,[data-verriere-hero]).hx-on,:is(.da :is(#hero.hero,#hero.page-hero,#hero.gl-hero,#hero.site-map-hero,#hero.sse-h2,#hero.org-contact,.sia-hero),.organikk-page #hero.native-hero,.lds-page .lds-hero,[data-verriere-hero]).hx-on > .hero-stage{background:none}

/* repli sans WebGL2 (retiré dès que le canvas est en place : sinon ce bleu dépasse d'un pixel sur les bords) */
:is(.da :is(#hero.hero,#hero.page-hero,#hero.gl-hero,#hero.site-map-hero,#hero.sse-h2,#hero.org-contact,.sia-hero),.organikk-page #hero.native-hero,.lds-page .lds-hero,[data-verriere-hero]):not(.hx-on),
:is(.da :is(#hero.hero,#hero.page-hero,#hero.gl-hero,#hero.site-map-hero,#hero.sse-h2,#hero.org-contact,.sia-hero),.organikk-page #hero.native-hero,.lds-page .lds-hero,[data-verriere-hero]):not(.hx-on) > .hero-stage{background:radial-gradient(34% 60% at 0% 74%,#b8cdff,transparent 72%),radial-gradient(38% 64% at 100% 78%,#b8cdff,transparent 72%),repeating-linear-gradient(90deg,rgba(5,8,34,.32) 0 1px,transparent 1px 13px),linear-gradient(180deg,#1f33c4,#192cb0)}

/* au défilement, le contenu du hero s'efface avec le bleu (le menu, quand il est dans le hero, reste) */
[data-hx][data-hx-fondu] > :not(.hero-stage):not(.hx-fond):not(nav){opacity:var(--hx-o,1) !important}
[data-hx][data-hx-fondu="vide"] > :not(.hero-stage):not(.hx-fond):not(nav){visibility:hidden}

/* /consultant-lead-seo/ : son titre est prévu en blanc, mais une règle globale lui laissait un remplissage sombre,
   lisible sur l'ancien bleu clair et plus sur le verre */
.lds-page .lds-hero .lds-hero-copy :is(h1,h1 em){-webkit-text-fill-color:#fff !important}

/* home et pages de conseil : titre centré, la lumière reste sous le bouton et sur les bords */
@media (min-width:901px){
  .da[data-page="home"] .hero > .hero-copy{left:0;right:0;top:44%;max-width:none;text-align:center}
  .da[data-page="home"] .hero h1{max-width:1000px;margin-inline:auto;text-align:center;font-size:clamp(40px,4.7vw,70px) !important}
  .da[data-page="home"] .hero h1 span{text-align:center}
  .da[data-page="home"] .hero .dhero-cta{display:flex;justify-content:center}

  .da .hero.hero-edition > .hero-copy{left:0;right:0;top:44%;width:auto;max-width:none;padding:0 40px;text-align:center;text-shadow:none}
  .da .hero.hero-edition > .hero-copy::before{content:none}
  .da .hero.hero-edition .hero-copy h1{max-width:1000px;margin-inline:auto;text-align:center}
  .da .hero.hero-edition .hero-copy :is(h1 span,p,.strategy-byline span){text-align:center}
  .da .hero.hero-edition .hero-copy p{margin-inline:auto}
  .da .hero.hero-edition .hero-copy :is(.dhero-cta,.strategy-byline){display:flex;justify-content:center}

  .lds-page .lds-hero{justify-items:center}
  .lds-page .lds-hero .lds-hero-copy{width:min(100%,900px);text-align:center}
  .lds-page .lds-hero .lds-hero-copy :is(h1,p){text-align:center;margin-inline:auto}
  .lds-page .lds-hero .vct-actions{justify-content:center}
}
@media (min-width:1441px){.da[data-page="home"] .hero h1{font-size:68px !important}}

/* mobile : le texte est centré dans le hero, en largeur et en hauteur (Tim, 23/11 : « très moche sur mobile,
   il faut centrer sur mobile »). La place gardée sous le texte pour l'ancienne illustration disparaît. */
@media (max-width:900px){
  .da[data-page="home"] .hero > .hero-copy,
  .da .hero.hero-edition > .hero-copy{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:min(72vh,540px);min-height:min(72svh,540px);padding:86px 22px 86px;text-align:center}
  .da[data-page="home"] .hero > .hero-copy :is(h1,h1 span,p),
  .da .hero.hero-edition > .hero-copy :is(h1,h1 span,p,.strategy-byline span){text-align:center}
  .da[data-page="home"] .hero > .hero-copy :is(h1,p),
  .da .hero.hero-edition > .hero-copy :is(h1,p){margin-inline:auto}
  .da[data-page="home"] .hero > .hero-copy .dhero-cta,
  .da .hero.hero-edition > .hero-copy :is(.dhero-cta,.strategy-byline){display:flex;justify-content:center}

  .lds-page .lds-hero.hero-edition{align-items:center;justify-items:center;min-height:min(72vh,540px);min-height:min(72svh,540px);padding:86px 20px 86px}
  .lds-page .lds-hero .lds-hero-copy{text-align:center}
  .lds-page .lds-hero .lds-hero-copy :is(h1,p){text-align:center;margin-inline:auto}
  .lds-page .lds-hero .vct-actions{justify-content:center}

  /* les autres heros : titre, chapô, repère et boutons centrés aussi ; cartes, listes, vidéos et formulaires gardent leur alignement */
  :is(.da :is(#hero.hero,#hero.page-hero,#hero.gl-hero,#hero.site-map-hero,.sia-hero),.organikk-page #hero.native-hero) :is(h1,h1 span){text-align:center}
  .da #hero.page-hero > :is(p,.dmono),
  .da #hero.page-hero .sq-hero-txt,
  .da #hero.gl-hero .cb-hero-txt,
  .da #hero.site-map-hero > p,
  .da #hero.hero > .hero-copy,
  .da #hero.hero .bc-hero-copy,
  .da #hero.hero.qo-hero .hero-copy,
  .da #hero.hero.yt-hero .gd-lede,
  .organikk-page #hero.native-hero .hero-copy{text-align:center}
  .da #hero.page-hero > span.dmono{display:block}
  .da #hero.hero :is(.hero-sub,.bc-repere,.lyo-hero-question),
  .da #hero.gl-hero .cb-chapo,
  .da #hero:is(.page-hero,.site-map-hero) > p{text-align:center;margin-inline:auto}
  .da #hero.hero :is(.hero-copy,.bc-hero-copy) .dhero-cta{justify-content:center}
}

/* ═══════════ Pages React à hero clair : le hero devient le panneau de la home ═══════════
   Tim, 23/11 : « oui c'est le modèle pour tous les hero ». La page pose la classe .hxp et l'attribut
   data-verriere-hero sur son hero ; panneau, texte blanc centré, boutons de verre et menu posé sur le
   verre viennent d'ici. .hxp-bas : hero bas des pages utilitaires. .hxp-duo : texte à gauche, visuel à droite. */
.hxp{--hx-grain:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  position:relative !important;z-index:1 !important;isolation:isolate;overflow:hidden;box-sizing:border-box;
  display:grid;grid-template-columns:minmax(0,1fr);align-content:center;justify-items:center;
  min-height:clamp(620px,calc(100vh - 88px),940px);min-height:clamp(620px,calc(100svh - 88px),940px);
  margin:8px 16px 0 !important;padding:118px max(40px,calc((100% - 1000px) / 2)) 96px !important;
  border-radius:24px;color:#fff;text-align:center}
.hxp.hxp-bas{min-height:0;padding-top:150px !important;padding-bottom:72px !important}
.hxp::after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background-image:var(--hx-grain);background-size:260px 260px;mix-blend-mode:overlay}
.hxp > :is(.container,.vct-wrap,.lds-hero-copy,h1){position:relative;z-index:1}
.hxp > :is(.container,.vct-wrap,.lds-hero-copy){width:100% !important;max-width:none !important;margin:0 !important;padding:0 !important}
/* les décors du hero clair (quadrillage, halo, colonnes, dessin vectoriel) laissent la place au verre */
.hxp > div[style*="position:absolute"],.hxp > .ia-fil,.hxp .vct-colonnes,.hxp .vct-hero-art,.hxp .hero-art{display:none !important}
.hxp .vct-hero-grid{display:block}

/* :not(#x) hisse ces règles au-dessus des planchers globaux en !important (couleur des titres, boutons) */
.hxp:not(#x) h1,.hxp:not(#x) h1 *{color:#fff !important;-webkit-text-fill-color:#fff !important;background:none !important}
.hxp:not(#x) h1{max-width:1000px !important;margin-inline:auto !important;text-align:center;text-wrap:balance}
.hxp:not(#x) p{margin-inline:auto !important;color:rgba(255,255,255,.9) !important;text-align:center}
.hxp:not(#x) p :is(a,strong,b,em,span),.hxp:not(#x) a:not(.btn):not(.vct-btn):not(.case-pill){color:#fff !important;-webkit-text-fill-color:#fff !important}
.hxp:not(#x) .vct-lede{max-width:56ch}
.hxp:not(#x) div[style*="max-width"]{margin-inline:auto !important}
.hxp:not(#x) :is(.vct-actions,div[style*="flex-wrap"]){justify-content:center}

/* les boutons du hero reprennent le verre du bouton de la home ; au survol le liseré s'éclaire, rien ne monte */
.hxp:not(#x) :is(.btn,.vct-btn){width:auto !important;color:#fff !important;background:rgba(255,255,255,.08) !important;border:1px solid rgba(255,255,255,.32) !important;
  -webkit-backdrop-filter:blur(14px) saturate(1.4) !important;backdrop-filter:blur(14px) saturate(1.4) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 8px 24px rgba(20,34,100,.08) !important;transform:none !important}
.hxp:not(#x) :is(.btn,.vct-btn):is(:hover,:focus-visible){background:rgba(255,255,255,.13) !important;border-color:rgba(255,255,255,.55) !important}
.hxp:not(#x) :is(.btn,.vct-btn)::before,.hxp:not(#x) :is(.btn,.vct-btn)::after{content:none !important}
.hxp:not(#x) :is(.btn,.vct-btn) :is(svg,.arr,.vct-fleche){color:#fff !important}

/* le visuel gardé à droite du texte (cas client) */
@media (min-width:1021px){
  .hxp.hxp-duo{padding-inline:max(40px,calc((100% - 1180px) / 2)) !important;text-align:left}
  .hxp.hxp-duo:not(#x) :is(h1,p){margin-inline:0 !important;text-align:left}
}
@media (max-width:1020px){.hxp .case-hero-grid{grid-template-columns:minmax(0,1fr) !important}}
.hxp .case-pill-group{background:rgba(255,255,255,.14)}
.hxp .case-pill:not([data-active]){color:rgba(255,255,255,.86)}

/* page communauté : le titre perd son dégradé et ses marges de page claire ; la photo reprend de l'air */
.hxp .cs-titre{width:auto !important;padding:0 !important;font-family:inherit}
.cs .hxp + .cs-photo{padding-top:28px}
/* quiz du bootcamp : le titre du hero à la taille des titres de hero */
.hxp:not(#x) h1.home-h2{font-size:clamp(34px,3.6vw,52px) !important;line-height:1.06 !important;max-width:20ch !important;border-top:0 !important;padding-top:0 !important}

@media (max-width:900px){
  .hxp{min-height:min(72vh,540px);min-height:min(72svh,540px);margin:8px 12px 0 !important;padding:86px 22px 86px !important}
  .hxp.hxp-bas{min-height:0;padding-top:104px !important;padding-bottom:48px !important}
}

/* le menu en îlot des pages React, posé sur le verre tant que le hero est bleu (portage de l'état
   « sur le hero » de nav-island.css) ; hero-verriere.js pose .hx-clair quand le voile avance ou que le hero est passé */
body:has(.hxp) .inav{margin-bottom:-76px}
body:has(.hxp) .inav :is(.inav-logo,.inav-tabs,.inav-chip,.inav-puck,.inav-in){transition:background .3s ease,border-color .3s ease,box-shadow .3s ease,color .3s ease}
body:has(.hxp) .inav:not(.hx-clair) :is(.inav-logo,.inav-tabs){color:#fff;background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.34);box-shadow:0 10px 30px rgba(33,55,157,.18),inset 0 1px 0 rgba(255,255,255,.35)}
body:has(.hxp) .inav:not(.hx-clair) :is(.inav-chip,.inav-puck){background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.3)}
body:has(.hxp) .inav:not(.hx-clair) .inav-chip svg path{fill:#fff}
body:has(.hxp) .inav:not(.hx-clair) .inav-tabs::after{background:radial-gradient(120px circle at var(--lx,50%) var(--ly,50%),rgba(255,255,255,.18),transparent 65%)}
body:has(.hxp) .inav:not(.hx-clair) .inav-cta{box-shadow:0 10px 30px rgba(33,55,157,.24),inset 0 0 0 1px rgba(255,255,255,.34)}
@media (max-width:900px){body:has(.hxp) .inav{margin-bottom:-62px}}
@media (max-width:520px){
  body:has(.hxp) .inav{margin-bottom:-68px}
  body:has(.hxp) .inav:not(.hx-clair) .inav-in{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.34);box-shadow:0 10px 30px rgba(33,55,157,.18),inset 0 1px 0 rgba(255,255,255,.35)}
  body:has(.hxp) .inav:not(.hx-clair) :is(.inav-logo,.inav-tabs){background:transparent;border:0;box-shadow:none}
}

/* ═══════════ Pages statiques de public/ (Skills, Audit) : la même verrière ═══════════
   La page pose data-verriere-hero sur son #hero et charge cette feuille et hero-verriere.js.
   Valeur "centre" : le texte quitte la colonne de gauche et se centre, comme sur la home. */
.hero[data-verriere-hero] > .hero-tint{display:none}
.hero[data-verriere-hero] :is(h1,.hero-sub){text-shadow:none}
@media (min-width:861px){
  .hero[data-verriere-hero="centre"] > .hero-copy{left:0;right:0;top:46%;max-width:none;padding:0 40px;text-align:center}
  .hero[data-verriere-hero="centre"] h1{max-width:1000px;margin-inline:auto;text-align:center}
  .hero[data-verriere-hero="centre"] .hero-sub{max-width:620px;margin-inline:auto;text-align:center}
}
@media (max-width:860px){
  .hero[data-verriere-hero="centre"] > .hero-copy{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:min(72vh,540px);min-height:min(72svh,540px);padding:86px 22px 86px;text-align:center}
  .hero[data-verriere-hero="centre"] :is(h1,.hero-sub){text-align:center;margin-inline:auto}
}

/* ═══════════ Le mot fort du titre : bleu pâle très grainé ═══════════
   Tim, 23/11 : « tu dois mettre grainy noisy blue le mot ou groupe de mots très important par
   titre, comme sur la home, mais sur toutes les pages ». Même texture que « système SEO » sur
   la home (heros-propal.css) : deux bruits seuillés sur un dégradé bleu pâle, découpés par le
   texte. La classe se pose sur un span du H1, ou sur chacun de ses mots quand le titre s'anime
   mot à mot. :not(#x):not(#y) passe au-dessus des planchers de couleur des titres.
   .sse-mot : sur /systeme-seo/, le script redécoupe le groupe en mots, chacun porte la texture.
   color reste un bleu pâle (le remplissage, lui, est transparent) : hero-verriere.js lit cette
   couleur pour savoir qu'un texte est clair et garder le verre sombre dessous. */
h1 .hx-mot:not(#x):not(#y),h1 .hx-mot:not(#x):not(#y) .sse-mot{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='190' height='190'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 20 -10'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .32 0 0 0 0 .86 0 0 0 20 -8.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),linear-gradient(100deg,#ffffff 0%,#c3d4ff 45%,#9db6ff 100%) !important;background-size:190px 190px,150px 150px,100% 100% !important;background-repeat:repeat,repeat,no-repeat !important;background-position:0 0 !important;
  -webkit-background-clip:text !important;background-clip:text !important;color:#c3d4ff !important;-webkit-text-fill-color:transparent !important;text-shadow:none !important}
