/* ==========================================================================
   Home depth — hero « motion design photoréaliste » (variante home-depth.html)
   --------------------------------------------------------------------------
   Plans photoréalistes (GPT Image, visuel conceptuel) animés en 2.5D par
   home-depth.js (WebGL). Le <picture> est le repli sans JS, sans WebGL, en
   Save-Data et en prefers-reduced-motion ; le canvas le recouvre en fondu
   une fois sa première image identique dessinée.

   Typographie : grammaire de la hero cinématique de la homepage (Cerebri Sans
   300, -0.052em, 1.06, encre #cbd7eb, accent en dégradé global). Le H1 reprend
   l'échelle mesurée de la hero d'accueil (≈ 4.75vw, 90px à 1905px) avec
   --cb-title-hero comme plancher, pour que la variante reste comparable.

   Deux compositions, mêmes seuils que les plans et que home-depth.js :
   - paysage (> 4/5) : plan plein cadre sous le header, texte à gauche ;
   - portrait (≤ 4/5) : plan vertical en tête, texte dessous.
   ========================================================================== */

.story-page--home-depth {
  --hdp-ink: var(--cb-display-ink-dark);
  --hdp-navy: #050a14;
  --hdp-ease: cubic-bezier(.22, .61, .36, 1);
  /* Recadrage du plan : identique dans object-position et dans le shader. */
  --hdp-overscan: 1.06;
}

.hdp-hero-pin {
  position: relative;
  z-index: 2;
}

.hdp-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: max(620px, calc(100svh - 72px));
  overflow: hidden;
  overflow: clip;
}

/* Desktop : le header collant est translucide, le plan passe dessous. */
@media (min-width: 1121px) {
  .hdp-hero {
    --hdp-head: var(--header-h, 100px);
    margin-top: calc(-1 * var(--hdp-head));
    padding-top: var(--hdp-head);
    min-height: max(720px, 100svh);
  }
}

/* --------------------------------------------------------------------------
   Plan, canvas et voile de lisibilité
   -------------------------------------------------------------------------- */
.hdp-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Paysage : le plan garde son ratio, calé à droite sous le header, et ses
   bords se fondent dans le navy. Sa hauteur est plafonnée pour que le noyau
   reste à droite du texte sur les fenêtres presque carrées. */
.hdp-stage__media {
  --hdp-media-top: calc(var(--hdp-head, 0px) + 8px);
  position: absolute;
  top: var(--hdp-media-top);
  right: 0;
  width: auto;
  height: min(calc(100% - var(--hdp-media-top)), 76vw);
  aspect-ratio: 1672 / 941;
  overflow: hidden;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 22%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 22%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 82%, transparent 100%);
  mask-composite: intersect;
}

.hdp-stage__plate,
.hdp-stage__plate img,
.hdp-stage__canvas,
.hdp-stage__scrim {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hdp-stage__plate img {
  object-fit: cover;
  object-position: 74% 42%;
  transform: scale(var(--hdp-overscan));
  transform-origin: 74% 42%;
}

.hdp-stage__canvas {
  opacity: 0;
  transition: opacity .9s var(--hdp-ease);
}

.hdp-stage.is-live .hdp-stage__canvas {
  opacity: 1;
}

.hdp-stage__scrim {
  background:
    linear-gradient(90deg, rgba(5, 10, 20, .88) 0%, rgba(5, 10, 20, .66) 28%, rgba(5, 10, 20, .2) 50%, rgba(5, 10, 20, 0) 62%),
    linear-gradient(180deg, rgba(5, 10, 20, .55) 0%, rgba(5, 10, 20, 0) 16%);
  -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 140px);
  mask-image: linear-gradient(0deg, transparent 0, #000 140px);
}

/* --------------------------------------------------------------------------
   Texte
   -------------------------------------------------------------------------- */
.hdp-hero__inner {
  position: relative;
  z-index: 2;
  align-self: center;
  width: var(--cb-shell);
  margin-inline: auto;
  padding-block: clamp(40px, 7vh, 96px) clamp(24px, 4vh, 48px);
}

.hdp-hero__copy {
  max-width: min(46rem, 52vw);
}

.hdp-hero__lockup {
  display: grid;
  justify-items: start;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 30px;
}

.hdp-hero__wordmark {
  display: inline-flex;
  align-items: baseline;
  margin: 0;
  color: #f2f6ff;
  font-family: var(--cb-display-font);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1;
  white-space: nowrap;
}

.hdp-hero__wordmark > strong,
.hdp-hero__wordmark > em {
  font: inherit;
}

.hdp-hero__wordmark > em {
  margin-left: 6px;
  background: var(--cb-accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hdp-hero__eyebrow {
  margin: 0;
  color: var(--cb-eyebrow-ink-dark);
  font-size: var(--cb-eyebrow-size);
  font-weight: var(--cb-eyebrow-weight);
  letter-spacing: var(--cb-eyebrow-tracking);
  line-height: 1;
  text-transform: uppercase;
}

.story-page--home-depth .hdp-hero__title {
  margin: 0;
  color: var(--hdp-ink);
  font-family: var(--cb-display-font);
  font-size: max(var(--cb-title-hero), min(4.75vw, 96px));
  font-weight: var(--cb-display-weight);
  letter-spacing: var(--cb-display-tracking);
  line-height: var(--cb-display-leading);
  text-shadow: 0 2px 28px rgba(5, 10, 20, .5);
}

.hdp-title__line {
  display: block;
}

.story-page--home-depth .hdp-hero__title em {
  font-style: normal;
  background: var(--cb-accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.hdp-hero__lead {
  margin: 30px 0 0;
  max-width: 36em;
  color: var(--cb-lead-ink-dark);
  font-size: clamp(17px, 1.05vw, 20px);
  font-weight: var(--cb-lead-weight);
  letter-spacing: var(--cb-lead-tracking);
  line-height: 1.52;
}

.hdp-hero__lead span {
  display: block;
}

.hdp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 34px;
  margin-top: 38px;
}

.story-page--home-depth .hdp-hero__actions .story-btn--primary {
  min-height: 60px;
  padding: 0 28px !important;
  font-weight: 600;
  letter-spacing: -.02em;
}

.story-page--home-depth .hdp-hero__actions .story-btn--ghost {
  min-height: 48px;
  color: #b9d6ef !important;
  font-weight: 500;
  letter-spacing: -.02em;
}

.story-page--home-depth .hdp-hero__actions .story-btn--ghost svg {
  transition: transform .25s var(--hdp-ease);
}

.story-page--home-depth .hdp-hero__actions .story-btn--ghost:hover svg {
  transform: translateX(4px);
}

.story-page--home-depth .hdp-hero__actions .story-btn:focus-visible {
  outline: 2px solid #9edcff;
  outline-offset: 4px;
}

/* Repères */
.hdp-hero__trust {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: var(--cb-shell);
  margin: 0 auto;
  padding: 0 0 clamp(22px, 3.4vh, 40px);
  list-style: none;
}

.hdp-hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 30px;
  color: rgba(203, 215, 234, .8);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.2;
}

.hdp-hero__trust li:first-child {
  padding-left: 0;
}

.hdp-hero__trust li + li {
  border-left: 1px solid rgba(165, 216, 255, .16);
}

.hdp-hero__trust svg {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #8fc4ff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hdp-hero__trust svg[viewBox="0 0 48 48"] {
  stroke-width: 3.2;
}

/* --------------------------------------------------------------------------
   Entrée : l'état final est l'état par défaut. home-motion.js pose
   .is-played sur [data-cbm-kinetic] ; la règle générique anime les enfants.
   -------------------------------------------------------------------------- */
.cbm-cinema .hdp-hero__copy[data-cbm-kinetic].is-played .hdp-title__line {
  animation: cbm-rise .94s var(--hdp-ease) both;
}
.cbm-cinema .hdp-hero__copy[data-cbm-kinetic].is-played .hdp-title__line:nth-child(1) { animation-delay: .16s; }
.cbm-cinema .hdp-hero__copy[data-cbm-kinetic].is-played .hdp-title__line:nth-child(2) { animation-delay: .26s; }
.cbm-cinema .hdp-hero__copy[data-cbm-kinetic].is-played .hdp-title__line:nth-child(3) { animation-delay: .36s; }
.cbm-cinema .hdp-hero__copy[data-cbm-kinetic].is-played .hdp-title__line:nth-child(4) { animation-delay: .46s; }

.cbm-cinema .hdp-hero__trust[data-cbm-kinetic].is-played > * {
  animation: cbm-rise-soft .72s var(--hdp-ease) both;
  animation-delay: calc(.58s + var(--cbm-i, 0) * 70ms);
}

/* --------------------------------------------------------------------------
   Tablette paysage
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .hdp-hero__inner,
  .hdp-hero__trust {
    width: min(calc(100% - 40px), 980px);
  }

  .hdp-hero__copy {
    max-width: min(40rem, 60vw);
  }

  .hdp-hero__trust li {
    padding: 10px 18px;
    font-size: 15px;
  }
}

/* --------------------------------------------------------------------------
   Portrait (téléphones, tablettes debout) — plan vertical en tête
   -------------------------------------------------------------------------- */
@media (max-aspect-ratio: 4/5) {
  .hdp-hero {
    grid-template-rows: auto auto;
    align-content: end;
    min-height: 0;
  }

  .hdp-stage {
    bottom: auto;
    height: min(100%, 162vw, 920px);
  }

  .hdp-stage__media {
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 52%, transparent 100%);
  }

  .hdp-stage__plate img {
    object-position: 68% 0%;
    transform-origin: 68% 0%;
  }

  .hdp-stage__scrim {
    background:
      linear-gradient(180deg, rgba(5, 10, 20, .4) 0%, rgba(5, 10, 20, 0) 12%, rgba(5, 10, 20, 0) 44%, rgba(5, 10, 20, .7) 66%, rgba(5, 10, 20, 0) 100%);
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hdp-hero__inner {
    align-self: end;
    /* Le pied du noyau tombe à ~50,5 % du plan (≈ 82vw) : le texte commence dessous. */
    padding-top: min(88vw, 640px);
    padding-bottom: 28px;
  }

  .hdp-hero__copy {
    max-width: 40rem;
  }

  .hdp-hero__lockup {
    margin-bottom: 22px;
  }

  .hdp-hero__lead {
    margin-top: 22px;
  }

  .hdp-hero__actions {
    margin-top: 28px;
  }

  .hdp-hero__trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 16px;
  }

  .hdp-hero__trust li,
  .hdp-hero__trust li:first-child {
    padding: 10px 0;
  }

  .hdp-hero__trust li + li {
    border-left: 0;
  }
}

/* --------------------------------------------------------------------------
   Téléphones
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .hdp-hero__inner,
  .hdp-hero__trust {
    width: calc(100% - 40px);
  }

  .hdp-hero__lockup {
    gap: 8px;
    margin-bottom: 22px;
  }

  .hdp-hero__wordmark {
    font-size: 28px;
  }

  .hdp-hero__eyebrow {
    font-size: 12px;
  }

  .story-page--home-depth .hdp-hero__title {
    font-size: clamp(40px, 11vw, 52px);
  }

  .hdp-hero__lead {
    margin-top: 22px;
    font-size: 17px;
  }

  .hdp-hero__lead span {
    display: inline;
  }

  .hdp-hero__actions {
    gap: 14px 24px;
    margin-top: 28px;
  }

  .story-page--home-depth .hdp-hero__actions .story-btn--primary {
    width: 100%;
    justify-content: center;
  }

  .hdp-hero__trust li {
    gap: 10px;
    font-size: 14px;
  }

  .hdp-hero__trust svg {
    width: 20px;
    height: 20px;
  }
}

/* ==========================================================================
   Section « Pilotage » (#platform) — motion design autonome
   --------------------------------------------------------------------------
   Remplace la console « maintenir pour activer ». Les trois promesses de la
   colonne gauche deviennent trois chapitres que home-depth-ops.js joue en
   boucle quand la section est visible :
   01 l'existant migre brique par brique vers le cœur Cloudbizz ;
   02 seules quelques briques s'allument (la combinaison change à chaque tour) ;
   03 un périmètre « Belgique » se dessine, les repères s'allument.
   L'état par défaut (sans JS, mouvement réduit, pause à l'arrivée) est
   l'état final complet. Le plan du graphe est un repère 1000 × 560 : les
   cartes sont placées en % de ce repère, les fils dans un SVG du même ratio.
   ========================================================================== */
.story-page--home-depth .story-band--control .story-band__layout {
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: clamp(32px, 3.6vw, 72px);
  align-items: center;
}

.story-page--home-depth .story-band--control .story-band__layout > :first-child {
  max-width: 520px;
}

/* Le rail de chapitres (home-motion.css, fixe, visible dès 1360px) ne doit pas
   chevaucher le plateau : le cadre de la section s'arrête avant lui. */
@media (min-width: 1360px) {
  .story-page--home-depth .story-band--control > .story-shell {
    width: min(calc(100% - 120px), calc(100vw - 2 * (max(12px, (100vw - 1520px) / 2 - 46px) + 92px)));
  }
}

/* Les trois promesses, devenues chapitres. */
.hdp-ops-steps {
  display: grid;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.hdp-ops-steps__item {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: baseline;
  padding: 14px 0 16px;
  border-top: 1px solid rgba(150, 190, 255, .12);
  color: rgba(238, 240, 255, .92);
  font-size: clamp(15px, .9vw, 17px);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.35;
  transition: color .5s var(--hdp-ease);
}

.hdp-ops-steps__item:last-child {
  border-bottom: 1px solid rgba(150, 190, 255, .12);
}

.hdp-ops-steps__num {
  background: var(--cb-accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

.hdp-ops-steps__bar {
  position: absolute;
  bottom: -1px;
  left: 46px;
  right: 0;
  height: 2px;
  opacity: 0;
  overflow: hidden;
  transition: opacity .4s var(--hdp-ease);
}

.hdp-ops-steps__bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cb-accent-gradient);
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
}

.hdp-ops-steps.is-live .hdp-ops-steps__item { color: rgba(238, 240, 255, .58); }
.hdp-ops-steps.is-live .hdp-ops-steps__item[data-state="done"] { color: rgba(238, 240, 255, .72); }
.hdp-ops-steps.is-live .hdp-ops-steps__item[data-state="active"] { color: #f4f7ff; }
.hdp-ops-steps.is-live .hdp-ops-steps__item[data-state="active"] .hdp-ops-steps__bar { opacity: 1; }

/* Le plateau */
.hdp-ops {
  position: relative;
  z-index: 2;
  container-type: inline-size;
  justify-self: end;
  width: min(100%, 940px, calc((var(--home-cinema-stage, 100svh) - 160px) * 1.36));
  padding: 16px 18px 18px;
  border: 1px solid rgba(150, 190, 255, .18);
  border-radius: 26px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 46%, rgba(66, 187, 223, .1), transparent 70%),
    linear-gradient(180deg, rgba(16, 30, 60, .82), rgba(7, 14, 30, .92));
  box-shadow: 0 40px 90px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .06);
  color: #dce8ff;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hdp-ops__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 4px 12px;
  border-bottom: 1px solid rgba(150, 190, 255, .1);
}

.hdp-ops__lights { display: inline-flex; gap: 6px; }
.hdp-ops__lights i { width: 8px; height: 8px; border-radius: 50%; background: rgba(150, 190, 255, .35); }

.hdp-ops__bar strong {
  margin-inline: auto;
  color: #e9f0ff;
  font-size: clamp(11px, 1.3cqw, 13px);
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.hdp-ops__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 1px solid rgba(103, 224, 185, .45);
  border-radius: 999px;
  color: #9ff0d4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hdp-ops__live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #67e0b9;
  box-shadow: 0 0 10px #67e0b9;
  animation: hdp-ops-blink 2.4s ease-in-out infinite;
}

.hdp-ops__map {
  position: relative;
  aspect-ratio: 1000 / 560;
  margin-top: 12px;
}

.hdp-ops__map::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(150, 190, 240, .16) 1px, transparent 1.6px) 0 0 / 2.4cqw 2.4cqw;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 80%);
  pointer-events: none;
}

.hdp-ops__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hdp-ops__wire-base {
  fill: none;
  stroke: rgba(150, 190, 240, .16);
  stroke-width: 1.6;
}

.hdp-ops__wire-line {
  fill: none;
  stroke: url(#hdp-ops-grad);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  transition: stroke-dashoffset 1s var(--hdp-ease), opacity .5s var(--hdp-ease);
}

.hdp-ops__wire-pulse {
  fill: none;
  stroke: #eafcff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: .07 .93;
  stroke-dashoffset: 1;
  opacity: 0;
  filter: drop-shadow(0 0 5px rgba(103, 224, 185, .95));
  transition: opacity .4s var(--hdp-ease);
}

.hdp-ops__wire.is-on .hdp-ops__wire-line,
.hdp-ops__wire.is-flowing .hdp-ops__wire-line { stroke-dashoffset: 0; opacity: 1; }
.hdp-ops__wire.is-done .hdp-ops__wire-line { stroke-dashoffset: 0; opacity: .32; }
.hdp-ops__wire.is-on .hdp-ops__wire-pulse,
.hdp-ops__wire.is-flowing .hdp-ops__wire-pulse { opacity: 1; animation: hdp-ops-pulse 1.7s linear infinite; }
.hdp-ops__wire.is-flowing .hdp-ops__wire-pulse { animation-duration: 1.05s; }

.hdp-ops__perimeter-area {
  fill: rgba(103, 224, 185, .035);
  opacity: 0;
  transition: opacity .9s var(--hdp-ease) .5s;
}

.hdp-ops__perimeter {
  fill: none;
  stroke: rgba(103, 224, 185, .62);
  stroke-width: 1.8;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  transition: stroke-dashoffset 1.9s var(--hdp-ease), opacity .4s var(--hdp-ease);
}

.hdp-ops__orbit {
  fill: none;
  stroke: url(#hdp-ops-grad);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: .05 .2;
  opacity: 0;
  transition: opacity .8s var(--hdp-ease);
}

.hdp-ops.is-sovereign .hdp-ops__perimeter { stroke-dashoffset: 0; opacity: 1; }
.hdp-ops.is-sovereign .hdp-ops__perimeter-area { opacity: 1; }
.hdp-ops.is-sovereign .hdp-ops__orbit { opacity: .8; animation: hdp-ops-orbit 6s linear infinite; }

/* Zone « existant » */
.hdp-ops__zone-label {
  position: absolute;
  top: 7.2%;
  left: 2.2%;
  margin: 0;
  color: rgba(190, 205, 230, .78);
  font-size: clamp(11px, 1.2cqw, 12.5px);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hdp-ops__legacy {
  position: absolute;
  top: 19.3%;
  left: 2.2%;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  row-gap: 13.4%;
  width: 21%;
  height: 61.4%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hdp-ops__legacy-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1cqw;
  padding: 0 3.2cqw 0 1.3cqw;
  border: 1px solid rgba(160, 185, 225, .24);
  border-radius: 1.3cqw;
  background: rgba(255, 255, 255, .04);
  color: rgba(226, 234, 250, .9);
  font-size: clamp(12px, 1.5cqw, 15px);
  font-weight: 600;
  line-height: 1.2;
  transition: color .5s var(--hdp-ease), border-color .5s var(--hdp-ease), background-color .5s var(--hdp-ease), box-shadow .5s var(--hdp-ease);
}

.hdp-ops__legacy-item svg,
.hdp-ops__module-icon svg,
.hdp-ops__core-disc svg,
.hdp-ops__chip svg,
.hdp-ops__metrics svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hdp-ops__legacy-item svg {
  flex: none;
  width: 2.5cqw;
  min-width: 16px;
  height: auto;
  stroke-width: 2;
  color: #8fb3e6;
}

.hdp-ops__check {
  position: absolute;
  top: 50%;
  right: 1.1cqw;
  width: 1.9cqw;
  min-width: 13px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.4 2.6 2.6L12 5.4' fill='none' stroke='%23051220' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat,
    var(--cb-accent-gradient);
  opacity: 0;
  transform: translateY(-50%) scale(.4);
  transition: opacity .4s var(--hdp-ease), transform .5s cubic-bezier(.34, 1.56, .64, 1);
}

.hdp-ops__legacy-item.is-flowing {
  border-color: rgba(66, 187, 223, .75);
  background: rgba(66, 187, 223, .1);
  box-shadow: 0 0 24px rgba(66, 187, 223, .25);
}

.hdp-ops__legacy-item.is-migrated {
  border-style: dashed;
  border-color: rgba(160, 185, 225, .2);
  background: rgba(255, 255, 255, .02);
  color: rgba(226, 234, 250, .62);
}

.hdp-ops__legacy-item.is-migrated .hdp-ops__check {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* Le cœur */
.hdp-ops__zone { position: static; }

.hdp-ops__core {
  position: absolute;
  top: 36.6%;
  left: 42.5%;
  display: grid;
  width: 15%;
  aspect-ratio: 1;
  place-items: center;
}

.hdp-ops__core-ring,
.hdp-ops__core-pulse,
.hdp-ops__core-disc {
  position: absolute;
  border-radius: 50%;
}

.hdp-ops__core-ring {
  inset: -5%;
  background: conic-gradient(from 0deg, #567eff, #42bbdf, #67e0b9, rgba(86, 126, 255, .2), #567eff);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: hdp-ops-spin 9s linear infinite;
}

.hdp-ops__core-pulse {
  inset: 0;
  border: 2px solid rgba(103, 224, 185, .8);
  opacity: 0;
}

.hdp-ops__core.is-absorbing .hdp-ops__core-pulse {
  animation: hdp-ops-absorb .9s var(--hdp-ease) both;
}

.hdp-ops__core-disc {
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .5cqw;
  background: radial-gradient(circle at 50% 32%, #1a3566, #0a1530 72%);
  box-shadow: 0 0 46px rgba(66, 187, 223, .28), inset 0 0 0 1px rgba(150, 190, 255, .28);
}

.hdp-ops__core-disc svg {
  width: 4.6cqw;
  height: auto;
  stroke-width: 3;
  color: #9fd8ff;
}

.hdp-ops__core-disc strong {
  color: #f4f7ff;
  font-size: clamp(12px, 1.6cqw, 16px);
  font-weight: 700;
  letter-spacing: -.02em;
}

/* Les briques */
.hdp-ops__modules {
  position: absolute;
  top: 10.7%;
  left: 75.2%;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  row-gap: 5.45%;
  width: 23%;
  height: 78.6%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hdp-ops__module a {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
  gap: 1cqw;
  padding: 0 3.8cqw 0 1.1cqw;
  border: 1px dashed rgba(150, 190, 240, .3);
  border-radius: 1.3cqw;
  background: rgba(10, 20, 42, .62);
  color: inherit;
  text-decoration: none;
  transition: border-color .5s var(--hdp-ease), background-color .5s var(--hdp-ease), box-shadow .5s var(--hdp-ease), transform .3s var(--hdp-ease);
}

.hdp-ops__module a:hover { transform: translateY(-2px); }

.hdp-ops__module a:focus-visible {
  outline: 2px solid #9edcff;
  outline-offset: 3px;
}

.hdp-ops__module-icon {
  display: grid;
  flex: none;
  width: 3.3cqw;
  min-width: 20px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: .9cqw;
  background: rgba(86, 126, 255, .12);
  color: #8fb3e6;
  transition: color .5s var(--hdp-ease), background-color .5s var(--hdp-ease);
}

.hdp-ops__module-icon svg { width: 66%; height: auto; stroke-width: 3.4; }

.hdp-ops__module-copy {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: .25cqw;
}

.hdp-ops__module-copy b,
.hdp-ops__module-copy small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hdp-ops__module-copy b {
  color: #eef3ff;
  font-size: clamp(12px, 1.5cqw, 15px);
  font-weight: 700;
  line-height: 1.15;
}

.hdp-ops__module-copy small {
  color: rgba(200, 214, 236, .78);
  font-size: clamp(11px, 1.2cqw, 12.5px);
  line-height: 1.2;
}

.hdp-ops__toggle {
  position: absolute;
  top: 1cqw;
  right: 1cqw;
  width: 2.6cqw;
  min-width: 18px;
  height: 1.45cqw;
  min-height: 10px;
  border: 1px solid rgba(150, 190, 240, .35);
  border-radius: 999px;
  transition: background-color .4s var(--hdp-ease), border-color .4s var(--hdp-ease);
}

.hdp-ops__toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 12%;
  width: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(190, 205, 230, .7);
  transform: translateY(-50%);
  transition: left .45s cubic-bezier(.34, 1.56, .64, 1), background-color .4s var(--hdp-ease);
}

.hdp-ops__module.is-on a {
  border-style: solid;
  border-color: rgba(103, 224, 185, .55);
  background: linear-gradient(135deg, rgba(30, 58, 110, .88), rgba(12, 28, 58, .92));
  box-shadow: 0 0 0 1px rgba(66, 187, 223, .12), 0 14px 30px rgba(0, 0, 0, .3), 0 0 28px rgba(66, 187, 223, .18);
}

.hdp-ops__module.is-on .hdp-ops__module-icon { background: rgba(66, 187, 223, .18); color: #9ff0d4; }
.hdp-ops__module.is-on .hdp-ops__toggle { border-color: transparent; background: var(--cb-accent-gradient); }
.hdp-ops__module.is-on .hdp-ops__toggle::after { left: 48%; background: #fff; }

/* Périmètre souverain : étiquette posée sur le trait */
.hdp-ops__chip {
  position: absolute;
  top: 2.86%;
  left: 40.6%;
  display: inline-flex;
  align-items: center;
  gap: .8cqw;
  margin: 0;
  padding: .55cqw 1.2cqw .55cqw .9cqw;
  border: 1px solid rgba(103, 224, 185, .55);
  border-radius: 999px;
  background: #0b1a33;
  color: #9ff0d4;
  font-size: clamp(11px, 1.2cqw, 12.5px);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-50%) scale(.92);
  transition: opacity .5s var(--hdp-ease), transform .5s var(--hdp-ease);
}

.hdp-ops__chip svg { width: 1.5cqw; min-width: 11px; height: auto; stroke-width: 2; }
.hdp-ops__chip b { color: #eafff7; font-weight: 700; }
.hdp-ops__chip span { color: rgba(200, 236, 222, .78); }
.hdp-ops.is-chip .hdp-ops__chip { opacity: 1; transform: translateY(-50%) scale(1); }

/* Repères */
.hdp-ops__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4cqw;
  margin-top: 1.2cqw;
}

.hdp-ops__metrics article {
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  min-width: 0;
  padding: 1.1cqw 1.4cqw;
  border: 1px solid rgba(150, 190, 255, .16);
  border-radius: 1.3cqw;
  background: rgba(255, 255, 255, .03);
  transition: opacity .5s var(--hdp-ease), border-color .5s var(--hdp-ease), box-shadow .5s var(--hdp-ease);
}

.hdp-ops__metrics svg {
  flex: none;
  width: 3cqw;
  min-width: 20px;
  height: auto;
  stroke-width: 2.6;
  color: #67e0b9;
}

.hdp-ops__metrics span { display: grid; min-width: 0; }

.hdp-ops__metrics strong {
  color: #f4f7ff;
  font-size: clamp(15px, 2.1cqw, 22px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.hdp-ops__metrics small {
  overflow: hidden;
  color: rgba(200, 214, 236, .8);
  font-size: clamp(11px, 1.25cqw, 13px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hdp-ops.is-live .hdp-ops__metrics article { opacity: .5; }

.hdp-ops.is-live .hdp-ops__metrics article.is-lit {
  border-color: rgba(103, 224, 185, .4);
  box-shadow: 0 0 26px rgba(66, 187, 223, .14);
  opacity: 1;
}

/* Remise à zéro entre deux tours : un fondu bref plutôt qu'un saut. */
.hdp-ops.is-resetting .hdp-ops__map,
.hdp-ops.is-resetting .hdp-ops__metrics {
  opacity: .25;
  transition: opacity .45s var(--hdp-ease);
}

.hdp-ops .hdp-ops__map,
.hdp-ops .hdp-ops__metrics {
  transition: opacity .6s var(--hdp-ease);
}

html.cbm-paused .hdp-ops *,
html.cbm-paused .hdp-ops *::before,
html.cbm-paused .hdp-ops *::after {
  animation-play-state: paused !important;
}

@keyframes hdp-ops-pulse { to { stroke-dashoffset: 0; } }
@keyframes hdp-ops-orbit { to { stroke-dashoffset: -1; } }
@keyframes hdp-ops-spin { to { transform: rotate(360deg); } }
@keyframes hdp-ops-blink { 50% { opacity: .35; } }
@keyframes hdp-ops-absorb {
  0% { opacity: .9; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.7); }
}

/* Deux colonnes resserrées, puis une seule colonne. */
@media (max-width: 1500px) {
  .story-page--home-depth .story-band--control .story-band__layout {
    grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
    gap: 40px;
  }
}

@media (max-width: 1280px) {
  .story-page--home-depth .story-band--control .story-band__layout {
    grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
    gap: 32px;
  }

  .story-page--home-depth .story-band--control .story-band__layout > :first-child {
    max-width: none;
  }
}

@media (max-width: 999px) {
  .story-page--home-depth .story-band--control .story-band__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .story-page--home-depth .story-band--control .story-band__layout > :first-child {
    max-width: 680px;
  }

  .hdp-ops {
    justify-self: center;
    width: min(100%, 760px);
  }
}

/* Plateau étroit (téléphones) : le graphe se réorganise en pile lisible. */
@container (max-width: 599px) {
  .hdp-ops__map {
    display: grid;
    gap: 12px;
    aspect-ratio: auto;
  }

  .hdp-ops__map::before,
  .hdp-ops__wires {
    display: none;
  }

  .hdp-ops__zone-label {
    position: static;
    font-size: 11px;
  }

  .hdp-ops__legacy {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 8px;
    width: auto;
    height: auto;
  }

  .hdp-ops__legacy-item {
    flex-direction: column;
    gap: 6px;
    padding: 12px 6px 10px;
    border-radius: 12px;
    font-size: 11.5px;
    text-align: center;
  }

  .hdp-ops__legacy-item svg { width: 20px; }
  .hdp-ops__check { top: 6px; right: 6px; width: 14px; transform: scale(.4); }
  .hdp-ops__legacy-item.is-migrated .hdp-ops__check { transform: scale(1); }

  .hdp-ops__zone {
    position: relative;
    display: grid;
    gap: 12px;
    margin-top: 6px;
    padding: 22px 10px 12px;
    border: 1px solid transparent;
    border-radius: 18px;
    transition: border-color .8s var(--hdp-ease), background-color .8s var(--hdp-ease);
  }

  .hdp-ops.is-sovereign .hdp-ops__zone {
    border-color: rgba(103, 224, 185, .5);
    background: rgba(103, 224, 185, .035);
  }

  .hdp-ops__chip {
    top: 0;
    left: 50%;
    gap: 6px;
    padding: 4px 10px;
    font-size: 11px;
    transform: translate(-50%, -50%) scale(.92);
  }

  .hdp-ops.is-chip .hdp-ops__chip { transform: translate(-50%, -50%) scale(1); }
  .hdp-ops__chip svg { width: 12px; }

  .hdp-ops__core {
    position: relative;
    top: auto;
    left: auto;
    width: 104px;
    margin: 4px auto;
  }

  .hdp-ops__core-disc svg { width: 32px; }
  .hdp-ops__core-disc strong { font-size: 13px; }

  .hdp-ops__modules {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 8px;
    width: auto;
    height: auto;
  }

  .hdp-ops__module a {
    min-height: 62px;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
  }

  .hdp-ops__module-icon { width: 28px; border-radius: 8px; }
  .hdp-ops__module-copy b { font-size: 12.5px; white-space: normal; }
  .hdp-ops__module-copy small { font-size: 11px; white-space: normal; }
  .hdp-ops__toggle { display: none; }

  .hdp-ops__metrics {
    gap: 8px;
    margin-top: 12px;
  }

  .hdp-ops__metrics article {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px;
    border-radius: 12px;
  }

  .hdp-ops__metrics small { white-space: normal; }
}

/* --------------------------------------------------------------------------
   Plein écran — icône discrète sur la ligne des repères, alignée sur le bord
   droit de la grille (--cb-shell), à hauteur du bouton pause. Desktop paysage
   seulement : le bouton du header reste masqué par story-cinematic.css.
   -------------------------------------------------------------------------- */
.hdp-hero .hdp-hero__fullscreen {
  display: none;
}

@media (min-width: 1121px) and (min-aspect-ratio: 4/5) {
  .hdp-hero .hdp-hero__fullscreen {
    position: absolute;
    z-index: 3;
    /* Neutralise l'ancien placement fixe du header (story-cinematic.css). */
    top: auto;
    right: calc((100% - var(--cb-shell)) / 2);
    bottom: calc(clamp(22px, 3.4vh, 40px) + 5px);
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(165, 216, 255, .12);
    border-radius: 10px;
    background: transparent;
    color: rgba(203, 215, 234, .5);
    cursor: pointer;
    transition: color .25s var(--hdp-ease), border-color .25s var(--hdp-ease), background-color .25s var(--hdp-ease);
  }

  .hdp-hero .hdp-hero__fullscreen svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.8;
  }

  .hdp-hero .hdp-hero__fullscreen:hover,
  .hdp-hero .hdp-hero__fullscreen:focus-visible,
  .hdp-hero .hdp-hero__fullscreen[aria-pressed="true"] {
    border-color: rgba(103, 224, 185, .45);
    background: rgba(10, 18, 34, .72);
    color: #eef4ff;
  }

  .hdp-hero .hdp-hero__fullscreen:focus-visible {
    outline: 2px solid #67e0b9;
    outline-offset: 3px;
  }
}

/* --------------------------------------------------------------------------
   Mouvement réduit, contraste forcé
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hdp-stage__canvas {
    display: none;
  }

  .hdp-hero [data-cbm-kinetic] > *,
  .hdp-hero .hdp-title__line {
    animation: none !important;
  }

  .hdp-ops *,
  .hdp-ops *::before,
  .hdp-ops *::after {
    animation: none !important;
    transition: none !important;
  }

  .hdp-ops__wire-pulse { display: none; }
}

@media (forced-colors: active) {
  .hdp-stage {
    display: none;
  }

  .hdp-hero__wordmark > em,
  .story-page--home-depth .hdp-hero__title em {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: currentColor;
  }
}
