/* Academy Hub — lot 01.
   À charger en dernier. Toutes les règles restent sur le renderHub :
   elles sont inactives sur les autres pages et réversibles en retirant le link. */

.page-home:has(> .page-hero-hub) {
  --home-bg: #EEF4F9;
  --home-bg-deep: #E6EFF6;
  --home-surface: #FFFFFF;
  --home-ink: #0E2438;
  --home-secondary: #39556F;
  --home-muted: rgba(14,36,56,.68);
  --home-border: rgba(14,36,56,.12);
  --home-border-strong: rgba(14,36,56,.20);
  --home-shadow: 0 10px 28px rgba(14,36,56,.08);
  --home-shadow-hover: 0 14px 34px rgba(14,36,56,.12);
  --home-night-text: #F4F8FB;
  --home-night-secondary: rgba(220,231,239,.82);
  --home-night-muted: rgba(220,231,239,.68);
  --home-night-soft: #DCE7EF;

  /* Palette locale : seuls le jaune et l’orange NK sont employés ci-dessous.
     Les autres tons sont réservés et ne sont pas appliqués. */
  --home-yellow: #F5B806;
  --home-orange: #F08300;
  --home-orange-light: #F59A33;
  --home-orange-rgb: 240,131,0;
  --home-violet: #662483;
  --home-rose: #EC6476;
  --home-anise: #B8CE34;
  --home-green: #2DAB60;
  --home-blue: #008FCF;
  --home-gray: #94A4A5;

  --orange-500: var(--home-orange);
  --orange-400: var(--home-orange-light);
  --nk-orange: var(--home-orange);
  --nk-orange-rgb: var(--home-orange-rgb);
}

.page-home:has(> .page-hero-hub) .theme-orange {
  --cta: var(--home-orange);
  --cta-soft: var(--home-orange-light);
  --cta-rgb: var(--home-orange-rgb);
}

.page-home:has(> .page-hero-hub) .hub-band.theme-orange {
  --hub-universe-rgb: var(--home-orange-rgb);
}

.page-home:has(> .page-hero-hub) .hub-ulogo[href^="/numeriklub"] {
  --u-rgb: var(--home-orange-rgb) !important;
}

.page-home:has(> .page-hero-hub) > section#decouverte .btn-primary[href^="/numeriklub"] {
  --cta: var(--home-orange);
  --cta-soft: var(--home-orange-light);
  --cta-rgb: var(--home-orange-rgb);
  background: var(--cta);
  color: var(--home-ink);
}

.page-home:has(> .page-hero-hub) > section#decouverte .btn-primary[href^="/formation-continue"] {
  background: var(--cta);
}

/* Les sections non .zone-light restent sombres quel que soit html.light.
   Contact conserve intégralement son traitement de surface et de formulaire. */
.page-home:has(> .page-hero-hub) > section.section:not(.zone-light):not(#contact) {
  color: #F4F8FB;
  --text: #F4F8FB;
  --text-secondary: rgba(220,231,239,.82);
  --text-muted: rgba(220,231,239,.68);
  --heading: #F4F8FB;
  --heading-soft: #DCE7EF;
  --grad-heading: linear-gradient(115deg,#F4F8FB 8%,#DCE7EF 92%);
  --eyebrow: #DCE7EF;
  --tint: 244,248,251;
  --border: rgba(220,231,239,.14);
  --border-strong: rgba(220,231,239,.22);
}

.page-home:has(> .page-hero-hub) > section.section:not(.zone-light) {
  background-color: #0B1E2E !important;
  background-image:
    linear-gradient(180deg,rgba(11,30,46,.62) 0%,rgba(8,20,32,.93) 100%),
    linear-gradient(180deg,#0E2438 0%,#081420 100%) !important;
}

/* The pre-existing light theme paints these cards white. Pair their inherited
   text with that surface, without changing their layout or media. */
.page-home:has(> .page-hero-hub):is(html.light *) > section.section:not(.zone-light):not(#contact) .card {
  --text: var(--home-ink);
  --text-primary: var(--home-ink);
  --text-secondary: var(--home-secondary);
  --text-muted: var(--home-muted);
  --heading: var(--home-ink);
  --heading-soft: var(--home-secondary);
  --grad-heading: linear-gradient(115deg,var(--home-ink),var(--home-secondary));
  --eyebrow: var(--home-secondary);
  background: var(--home-surface) !important;
}

/* These even-numbered sections already use white cards in both themes. */
.page-home:has(> .page-hero-hub) > section:is(#chiffres,#certifs) .card {
  --text: var(--home-ink);
  --text-primary: var(--home-ink);
  --text-secondary: var(--home-secondary);
  --text-muted: var(--home-muted);
  --heading: var(--home-ink);
  --heading-soft: var(--home-secondary);
  --grad-heading: linear-gradient(115deg,var(--home-ink),var(--home-secondary));
  --eyebrow: var(--home-secondary);
}

.page-home:has(> .page-hero-hub) > section#certifs .card h3 {
  color: var(--home-ink);
  -webkit-text-fill-color: var(--home-ink);
}

/* Preserve the form's own tokens and fields. Only its surrounding card gets
   the opaque light surface it previously borrowed from the light section. */
.page-home:has(> .page-hero-hub):is(html.light *) > section#contact .card {
  background: var(--home-surface) !important;
}

.page-home:has(> .page-hero-hub) > section.cta-final-section .card,
.page-home:has(> .page-hero-hub):is(html.light *) > section.section.cta-final-section:not(.zone-light):not(#contact) .card {
  --heading: var(--home-night-text);
  --text: var(--home-night-text);
  --text-primary: var(--home-night-text);
  --text-secondary: var(--home-night-secondary);
  --text-muted: var(--home-night-muted);
  --heading-soft: var(--home-night-soft);
  --grad-heading: linear-gradient(115deg,var(--home-night-text),var(--home-night-soft));
  background: var(--home-ink) !important;
}

.page-home:has(> .page-hero-hub) > section.section:not(.zone-light):not(#contact) .btn:not(.btn-primary) {
  background: var(--home-ink);
  color: var(--home-night-text);
  border-color: rgba(220,231,239,.20);
}

.page-home:has(> .page-hero-hub) .btn-wa-label {
  color: var(--home-ink);
}

/* Only heading-owned variables change on Contact; form tokens stay inherited
   exactly as before. No field, validation or submission behaviour is altered. */
.page-home:has(> .page-hero-hub) > section#contact .section-head {
  --heading: #F4F8FB;
  --eyebrow: #DCE7EF;
  --text-secondary: rgba(220,231,239,.82);
}

/* La section Au programme a des cartes explicitement blanches sur fond sombre
   dans site.css : garder leur encre lisible en modes clair et sombre. */
.page-home:has(> .page-hero-hub) > section#decouverte .card {
  --text: #0E2438;
  --text-primary: #0E2438;
  --text-secondary: #39556F;
  --text-muted: rgba(14,36,56,.68);
  --heading: #0E2438;
  --heading-soft: #39556F;
  --grad-heading: linear-gradient(115deg,#0E2438 8%,#39556F 92%);
  --eyebrow: #39556F;
  --tint: 14,36,56;
  --border: rgba(14,36,56,.12);
  --border-strong: rgba(14,36,56,.20);
  --surface: #FFFFFF;
  --surface-raised: #FFFFFF;
  color: #0E2438;
}

/* Le triptyque et sa bande partenaires restent sur leur scène sombre en
   html.light. Sources, filtres des médias et fichiers de logos inchangés. */
.page-home:has(> .page-hero-hub) > .page-hero-hub {
  background-color: #081420;
  --hub-noise: none;
  --hub-band-noise: none;
}

.page-home:has(> .page-hero-hub) > .page-hero-hub .hub-wall-band {
  background:
    linear-gradient(152deg,
      rgba(var(--hub-wall-rgb),.28) 0%,
      rgba(var(--hub-wall-deep-rgb),.12) 46%,
      transparent 100%),
    radial-gradient(95% 65% at 50% -5%,rgba(88,140,185,.22),transparent 72%),
    linear-gradient(180deg,rgba(11,30,46,.62) 0%,rgba(8,20,32,.93) 100%),
    linear-gradient(180deg,#0E2438 0%,#081420 100%);
  background-size: auto,auto,auto,auto;
}

.page-home:has(> .page-hero-hub) > .page-hero-hub .hub-floor-band {
  background:
    linear-gradient(166deg,
      rgba(var(--hub-floor-rgb),.82) 0%,
      rgba(var(--hub-floor-deep-rgb),.62) 42%,
      rgba(var(--hub-floor-rgb),.42) 100%),
    radial-gradient(95% 65% at 50% -5%,rgba(var(--hub-floor-rgb),.38),transparent 72%),
    linear-gradient(180deg,rgba(11,30,46,.62) 0%,rgba(8,20,32,.93) 100%),
    linear-gradient(180deg,#0E2438 0%,#081420 100%);
  background-size: auto,auto,auto,auto;
}

.page-home:has(> .page-hero-hub) > .page-hero-hub .hub-panel-fallback {
  background:
    radial-gradient(125% 82% at 24% 8%,rgba(255,255,255,.32),transparent 48%),
    linear-gradient(145deg,
      rgb(var(--hub-band-rgb)) 0%,
      rgb(var(--hub-band-rgb)) 50%,
      rgb(var(--hub-band-deep-rgb)) 100%);
  background-size: auto,auto;
  background-blend-mode: screen,normal;
}

.page-home:has(> .page-hero-hub) > .page-hero-hub .hub-hero-copy {
  --text: #F4F8FB;
  --text-secondary: rgba(220,231,239,.86);
  --text-muted: rgba(220,231,239,.72);
  --heading: #F4F8FB;
  --heading-soft: #DCE7EF;
  --eyebrow: #DCE7EF;
  color: #F4F8FB;
}

.page-home:has(> .page-hero-hub) > .page-hero-hub .hub-hero-copy h1 {
  max-width: 14ch;
  color: #F4F8FB;
  font-family: Nunito,system-ui,sans-serif;
  font-weight: 800;
  font-size: var(--hero-h1);
  line-height: 1.02;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.page-home:has(> .page-hero-hub) > .page-hero-hub .hub-hero-copy .lead,
.page-home:has(> .page-hero-hub) > .page-hero-hub .hub-hero-copy .hero-sub {
  max-width: 48ch;
  color: rgba(244,248,251,.88);
  font-size: clamp(1.125rem,1.4vw,1.375rem);
  line-height: 1.55;
}

.page-home:has(> .page-hero-hub) > .page-hero-hub .hub-hero-copy .eyebrow,
.page-home:has(> .page-hero-hub) > .page-hero-hub .hub-hero-copy .hero-loc {
  color: #DCE7EF;
}

/* Always-dark hero: keep the original white lockups, not their light-surface
   masks. Files and DOM remain unchanged. */
.page-home:has(> .page-hero-hub) > .page-hero-hub .lg-on-dark {
  display: block !important;
  filter: none !important;
  opacity: 1;
}

.page-home:has(> .page-hero-hub) > .page-hero-hub .lg-on-light {
  display: none !important;
}

.page-home:has(> .page-hero-hub) > .page-hero-hub .hub-hero-copy .btn:not(.btn-primary) {
  background: rgba(88,140,185,.14);
  color: var(--heading);
  border-color: rgba(220,231,239,.20);
}

/* Unique trait + repère géographique, sous le bloc de copie. */
.page-home:has(> .page-hero-hub) > .page-hero-hub .hub-hero-copy::after {
  content: "14° N";
  display: block;
  width: min(520px,100%);
  min-height: 22px;
  margin-top: clamp(24px,3vw,40px);
  padding-top: 7px;
  background: linear-gradient(var(--home-yellow),var(--home-yellow)) left top / 100% 1px no-repeat;
  color: var(--home-yellow);
  font: 700 var(--text-2xs)/1 var(--font-body);
  letter-spacing: .12em;
  text-align: right;
  animation: home01-latitude-draw .9s var(--ease-out) both;
}

@keyframes home01-latitude-draw {
  from { background-size: 0 1px; }
  to { background-size: 100% 1px; }
}

.page-home:has(> .page-hero-hub):is(body.is-booting *) > .page-hero-hub .hub-hero-copy::after {
  animation-play-state: paused;
}

/* Bande logos sur scène sombre, sans filtre de conversion des logos blancs. */
.page-home:has(> .page-hero-hub) > .page-hero-hub .hero-marquee {
  border-block: 1px solid rgba(220,231,239,.18);
  background: linear-gradient(90deg,rgba(8,20,32,.94),rgba(21,49,74,.42),rgba(8,20,32,.94));
  box-shadow: 0 12px 28px rgba(2,8,16,.24),inset 0 1px 0 rgba(255,255,255,.08);
}

.page-home:has(> .page-hero-hub) > .page-hero-hub .hero-marquee-logo,
.page-home:has(> .page-hero-hub) > .page-hero-hub .hero-marquee-logo:not(.is-white),
.page-home:has(> .page-hero-hub) > .page-hero-hub .hero-marquee-logo.is-white {
  filter: none;
  opacity: .92;
}

.page-home:has(> .page-hero-hub) > .page-hero-hub .hub-ulogo {
  border-color: rgba(220,231,239,.18);
  background: linear-gradient(180deg,rgba(220,231,239,.07),rgba(220,231,239,.025));
  box-shadow: inset 0 1px 0 rgba(220,231,239,.07);
}

.page-home:has(> .page-hero-hub) > .page-hero-hub .hub-ulogo-txt {
  color: #F4F8FB;
}

/* Zone claire commune : le renderer conserve les six sections, leurs ID et
   leur contenu ; le parent leur ajoute .zone-light. Aucun fond avec grain. */
.page-home:has(> .page-hero-hub) > section.zone-light:is(#univers,#pourquoi,#comment,#temoignages,#actualites,#faq) {
  color: var(--home-ink);
  --bg: var(--home-bg);
  --bg-deep: var(--home-bg-deep);
  --surface: var(--home-surface);
  --surface-raised: var(--home-surface);
  --elevation: var(--home-surface);
  --text: var(--home-ink);
  --text-secondary: var(--home-secondary);
  --text-muted: var(--home-muted);
  --heading: var(--home-ink);
  --heading-soft: var(--home-secondary);
  --grad-heading: linear-gradient(115deg,var(--home-ink) 8%,var(--home-secondary) 92%);
  --eyebrow: var(--home-secondary);
  --tint: 14,36,56;
  --border: var(--home-border);
  --border-strong: var(--home-border-strong);
  --border-active: #15314A;
  --shadow-card: var(--home-shadow);
  --shadow-card-light: var(--home-shadow);
  --bg-noise: none;
  --bg-noise-onlight: none;
  background-color: var(--home-bg);
  background-image: linear-gradient(180deg,var(--home-bg) 0%,var(--home-bg-deep) 100%);
}

/* Head : Nunito italique conservé, contraste plein (pas de texte transparent
   par background-clip), 12px entre les éléments et espace éditorial en dessous. */
.page-home:has(> .page-hero-hub) > section.section .section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
  margin-bottom: clamp(32px,5vw,56px);
}

.page-home:has(> .page-hero-hub) > section.section .section-head .num {
  margin: 0;
  color: var(--eyebrow);
  font-variant-numeric: tabular-nums;
}

.page-home:has(> .page-hero-hub) > section.section .section-head h2,
.page-home:has(> .page-hero-hub) > section.cta-final-section h2 {
  max-width: 20ch;
  margin: 0;
  color: var(--heading);
  -webkit-text-fill-color: var(--heading);
  background: none;
  -webkit-background-clip: border-box;
  font-family: Nunito,system-ui,sans-serif;
  font-size: clamp(2rem,3.4vw,3rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.page-home:has(> .page-hero-hub) > section.section .section-head p,
.page-home:has(> .page-hero-hub) > section.cta-final-section .card > p {
  max-width: 60ch;
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-lg);
  line-height: 1.55;
}

.page-home:has(> .page-hero-hub) > section.cta-final-section h2 + p {
  margin-top: 12px;
}

/* Neutraliser les cartes en dur de pourquoi et les surfaces héritées du
   thème global. Titres, descriptions et caption reçoivent les alias d’encre. */
.page-home:has(> .page-hero-hub) > section.zone-light:is(#univers,#pourquoi,#comment,#temoignages,#actualites,#faq) .card {
  --text: var(--home-ink);
  --text-primary: var(--home-ink);
  --text-secondary: var(--home-secondary);
  --text-muted: var(--home-muted);
  --heading: var(--home-ink);
  --heading-soft: var(--home-secondary);
  --grad-heading: linear-gradient(115deg,var(--home-ink) 8%,var(--home-secondary) 92%);
  --eyebrow: var(--home-secondary);
  --tint: 14,36,56;
  --border: var(--home-border);
  --border-strong: var(--home-border-strong);
  --surface: var(--home-surface);
  --surface-raised: var(--home-surface);
  --shadow-card: var(--home-shadow);
  background: var(--surface) !important;
  color: var(--home-ink);
  border-color: var(--border) !important;
  box-shadow: var(--shadow-card) !important;
}

.page-home:has(> .page-hero-hub) > section.zone-light:is(#univers,#pourquoi,#comment,#temoignages,#actualites,#faq) .card:hover {
  border-color: var(--home-border-strong) !important;
  box-shadow: var(--home-shadow-hover) !important;
}

.page-home:has(> .page-hero-hub) > section.zone-light:is(#univers,#pourquoi,#comment,#temoignages,#actualites,#faq) .card-title,
.page-home:has(> .page-hero-hub) > section.zone-light:is(#univers,#pourquoi,#comment,#temoignages,#actualites,#faq) .card-body,
.page-home:has(> .page-hero-hub) > section.zone-light:is(#univers,#pourquoi,#comment,#temoignages,#actualites,#faq) .card p,
.page-home:has(> .page-hero-hub) > section.zone-light:is(#univers,#pourquoi,#comment,#temoignages,#actualites,#faq) .faq summary,
.page-home:has(> .page-hero-hub) > section.zone-light:is(#univers,#pourquoi,#comment,#temoignages,#actualites,#faq) .testi-text,
.page-home:has(> .page-hero-hub) > section.zone-light:is(#univers,#pourquoi,#comment,#temoignages,#actualites,#faq) .testi-card .who,
.page-home:has(> .page-hero-hub) > section.zone-light:is(#univers,#pourquoi,#comment,#temoignages,#actualites,#faq) .quote-eyebrow {
  color: var(--text-secondary);
}

.page-home:has(> .page-hero-hub) > section.zone-light:is(#univers,#pourquoi,#comment,#temoignages,#actualites,#faq) .card-title,
.page-home:has(> .page-hero-hub) > section.zone-light:is(#univers,#pourquoi,#comment,#temoignages,#actualites,#faq) .faq summary {
  color: var(--heading);
}

.page-home:has(> .page-hero-hub) > section.zone-light:is(#pourquoi) .card,
.page-home:has(> .page-hero-hub) > section.zone-light:is(#pourquoi) .card-title,
.page-home:has(> .page-hero-hub) > section.zone-light:is(#pourquoi) .card h3,
.page-home:has(> .page-hero-hub) > section.zone-light:is(#pourquoi) .card h4,
.page-home:has(> .page-hero-hub) > section.zone-light:is(#pourquoi) .card-body,
.page-home:has(> .page-hero-hub) > section.zone-light:is(#pourquoi) .card p {
  color: var(--home-ink) !important;
}

.page-home:has(> .page-hero-hub) > section.zone-light:is(#pourquoi) .card-body,
.page-home:has(> .page-hero-hub) > section.zone-light:is(#pourquoi) .card p {
  color: var(--home-secondary) !important;
}

/* Les vidéos restent les mêmes iframes : seule leur sous-couche opaque/sombre
   est retirée pour que les états de chargement aient un substrat clair. */
.page-home:has(> .page-hero-hub) > section.zone-light#univers .u-card {
  color: var(--home-ink);
  background: var(--home-surface);
}

.page-home:has(> .page-hero-hub) > section.zone-light#univers .u-card-media {
  background: var(--home-bg);
  box-shadow: inset 0 0 0 1px var(--home-border);
}

.page-home:has(> .page-hero-hub) > section.zone-light#univers .u-card-media::after {
  background: linear-gradient(180deg,transparent 62%,rgba(14,36,56,.08) 100%);
}

.page-home:has(> .page-hero-hub) > section.zone-light#univers .u-card-tint {
  background: transparent;
}

.page-home:has(> .page-hero-hub) > section.zone-light#univers .u-card-tint::after {
  background: transparent;
  mix-blend-mode: normal;
}

.page-home:has(> .page-hero-hub) > section.zone-light#univers .u-card .u-title {
  color: var(--home-ink);
  background: var(--grad-heading);
  -webkit-background-clip: text;
  background-clip: text;
}

.page-home:has(> .page-hero-hub) > section.zone-light#univers .u-card .u-desc,
.page-home:has(> .page-hero-hub) > section.zone-light#univers .u-card ul li {
  color: var(--home-secondary);
}

.page-home:has(> .page-hero-hub) > section.zone-light#univers .u-card .u-cta {
  color: var(--home-ink);
}

/* Keep the existing universe identities; only NK's orange changes. */
.page-home:has(> .page-hero-hub) > section.zone-light#univers .u-card.theme-orange .badge.tag {
  background: var(--home-orange);
  color: var(--home-ink);
  box-shadow: inset 0 0 0 1px rgba(var(--home-orange-rgb),.72),0 5px 12px rgba(var(--home-orange-rgb),.16);
}

.page-home:has(> .page-hero-hub) > section.zone-light#univers .u-card.theme-cyan .badge.tag,
.page-home:has(> .page-hero-hub) > section.zone-light#univers .u-card.theme-magenta .badge.tag {
  background: var(--cta);
  color: var(--on-cta);
  box-shadow: inset 0 0 0 1px var(--home-border);
}

.page-home:has(> .page-hero-hub) > section.zone-light#comment .step .n {
  color: var(--heading);
  font-variant-numeric: tabular-nums;
}

/* Pourquoi : garder la photographie et son cadrage, sans modifier la source. */
.page-home:has(> .page-hero-hub) > section.zone-light#pourquoi .pourquoi-card {
  background: var(--home-surface);
  border-color: var(--home-border) !important;
}

/* Témoignages : media/embed inchangé, captions sur surface encre lisible. */
.page-home:has(> .page-hero-hub) > section.zone-light#temoignages .testi-cap {
  background: var(--home-surface);
  color: var(--home-ink);
}

.page-home:has(> .page-hero-hub) > section.zone-light#temoignages .testi-text {
  color: var(--home-secondary);
}

.page-home:has(> .page-hero-hub) > section.zone-light#temoignages .testi-card .who,
.page-home:has(> .page-hero-hub) > section.zone-light#temoignages .quote-eyebrow {
  color: var(--home-secondary);
}

/* FAQ : carte blanche et texte encre quel que soit le mode global. */
.page-home:has(> .page-hero-hub) > section.zone-light#faq .faq details {
  background: var(--home-surface);
  color: var(--home-ink);
  border-color: var(--home-border);
  box-shadow: var(--home-shadow);
}

.page-home:has(> .page-hero-hub) > section.zone-light#faq .faq summary,
.page-home:has(> .page-hero-hub) > section.zone-light#faq .faq .faq-chevron {
  color: var(--home-ink);
}

.page-home:has(> .page-hero-hub) > section.zone-light#faq .faq details p {
  color: var(--home-secondary);
}

/* Selection/focus change presentation only, never field attributes or handlers. */
.page-home:has(> .page-hero-hub) ::selection {
  background: var(--home-yellow);
  color: #0E2438;
}

.page-home:has(> .page-hero-hub) :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible {
  outline: 2px solid var(--home-yellow) !important;
  outline-offset: 3px;
}

.page-home:has(> .page-hero-hub) > section.zone-light :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible {
  outline-color: #15314A !important;
}

/* Future utility, intentionally not mounted anywhere. */
.page-home:has(> .page-hero-hub) .home-latitude-line {
  width: min(520px,100%);
  height: 1px;
  background: linear-gradient(var(--home-yellow),var(--home-yellow)) left top / 100% 1px no-repeat;
  animation: home01-latitude-draw .9s var(--ease-out) both;
}

@media (max-width: 720px) {
  .page-home:has(> .page-hero-hub) > section.section .section-head h2,
  .page-home:has(> .page-hero-hub) > section.cta-final-section h2 {
    font-size: clamp(1.75rem,7vw,2.2rem);
  }

  .page-home:has(> .page-hero-hub) > section.section .section-head p,
  .page-home:has(> .page-hero-hub) > section.cta-final-section .card > p {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home:has(> .page-hero-hub) > .page-hero-hub .hub-hero-copy::after,
  .page-home:has(> .page-hero-hub) .home-latitude-line {
    animation: none;
  }
}

/* HOME_NEON_STYLES_START: home booklet only, desktop cutouts unchanged. */
.page-home > .page-hero-hub .hub-neon-current {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
}
@media (max-width: 980px) {
  .page-home > .page-hero-hub .hub-char-1 { left: 2%; height: 35%; }
  .page-home > .page-hero-hub .hub-char-2 { left: 55%; height: 54%; }
  .page-home > .page-hero-hub .hub-char-3 { right: 5%; height: 86%; }
}
@media (max-width: 560px) {
  .page-home > .page-hero-hub .hub-char-1 { left: 2%; height: 31%; }
  .page-home > .page-hero-hub .hub-char-2 { left: 55%; height: 49%; }
  .page-home > .page-hero-hub .hub-char-3 { right: 1%; height: 78%; }
}
@media (prefers-reduced-motion: reduce) {
  .page-home > .page-hero-hub .hub-neon-current { display: none; }
}
/* HOME_NEON_STYLES_END */

/* HOME_BRAND_NEON_START: decorative borders only; existing links and logos stay intact. */
@property --hub-brand-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.page-home > .page-hero-hub .hub-ulogo {
  --hub-brand-rgb: 241,138,7;
  --hub-brand-delay: 0s;
}
.page-home > .page-hero-hub .hub-ulogo:nth-child(2) {
  --hub-brand-rgb: 21,198,206;
  --hub-brand-delay: -2s;
}
.page-home > .page-hero-hub .hub-ulogo:nth-child(3) {
  --hub-brand-rgb: 206,26,99;
  --hub-brand-delay: -4s;
}
.page-home > .page-hero-hub .hub-ulogo::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgb(var(--hub-brand-rgb));
  border-radius: inherit;
  pointer-events: none;
  opacity: .6;
  transition: opacity .2s ease;
}
.page-home > .page-hero-hub .hub-ulogo:is(:hover, :focus-visible) {
  transform: none;
  border-color: rgba(var(--hub-brand-rgb),.5);
  box-shadow: inset 0 1px 0 rgba(220,231,239,.06), 0 0 14px -3px rgba(var(--hub-brand-rgb),.25);
}
.page-home > .page-hero-hub .hub-ulogo:is(:hover, :focus-visible)::before { opacity: .85; }
@supports (background: conic-gradient(from 0deg, transparent, white)) and
  ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  .page-home > .page-hero-hub.has-brand-neon .hub-ulogo::before {
    border: 0;
    padding: 1px;
    background: conic-gradient(from var(--hub-brand-angle),
      transparent 0deg 274deg, rgba(var(--hub-brand-rgb),.12) 290deg,
      rgb(var(--hub-brand-rgb)) 346deg, #fff 356deg, transparent 360deg);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: hub-brand-current 6s linear infinite;
    animation-delay: var(--hub-brand-delay);
    animation-play-state: paused;
  }
  .page-home > .page-hero-hub[data-brand-neon="running"] .hub-ulogo::before {
    animation-play-state: running;
  }
}
@keyframes hub-brand-current { to { --hub-brand-angle: 360deg; } }
@media (max-width: 760px) {
  .page-home > .page-hero-hub .hub-ulogo::before { opacity: .42; }
  .page-home > .page-hero-hub .hub-ulogo:is(:hover, :focus-visible)::before { opacity: .65; }
}
@media (prefers-reduced-motion: reduce) {
  .page-home > .page-hero-hub.has-brand-neon .hub-ulogo::before {
    animation: none;
    background: none;
    padding: 0;
    border: 1px solid rgb(var(--hub-brand-rgb));
    -webkit-mask: none;
    mask: none;
  }
}
/* HOME_BRAND_NEON_END */

/* HOME_CHARACTER_SPACING_START: positions only, except a 5% small-mobile portrait reduction. */
.page-home > .page-hero-hub .hub-char-1 { left: -15%; }
.page-home > .page-hero-hub .hub-char-3 { right: 3.3%; }
@media (min-width: 981px) and (max-width: 1150px) {
  .page-home > .page-hero-hub .hub-char-1 { left: -1%; }
}
@media (max-width: 980px) {
  .page-home > .page-hero-hub .hub-char-1 { left: -1%; }
  .page-home > .page-hero-hub .hub-char-3 { right: 1.5%; }
}
@media (max-width: 560px) {
  .page-home > .page-hero-hub .hub-char-3 { right: -3%; height: 74.1%; }
}
/* HOME_CHARACTER_SPACING_END */

/* HOME_SCENE_FEATHER_START: decorative plane only; foreground stays separate. */
@supports (mask-composite: intersect) or (-webkit-mask-composite: source-in) {
  .page-home > .page-hero-hub .hub-booklet {
    --hub-edge-feather:
      linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent),
      linear-gradient(180deg, #000 80%, transparent);
    -webkit-mask-image: var(--hub-edge-feather);
    mask-image: var(--hub-edge-feather);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
  /* The painted wall occupies 24–76% of its plane, not its entire box.
     Feather its real outer edges too, without moving the clip-path seams. */
  .page-home > .page-hero-hub .hub-wall-plane {
    -webkit-mask-image: linear-gradient(90deg, transparent 24%, #000 34%, #000 66%, transparent 76%);
    mask-image: linear-gradient(90deg, transparent 24%, #000 34%, #000 66%, transparent 76%);
  }
}
@media (max-width: 980px) {
  body[data-route="/"] .page-home:has(> .page-hero-hub) > .page-hero-hub {
    padding-bottom: var(--space-5);
  }
  body[data-route="/"] .page-home:has(> .page-hero-hub) > .page-hero-hub .hub-hero-grid > .hero-marquee {
    margin-bottom: 0;
  }
  body[data-route="/"] #app .page-home:has(> .page-hero-hub) > section#univers {
    margin-top: 0;
  }
}
/* HOME_SCENE_FEATHER_END */
