/* ============================================================
   L48 CONSTELLATION - immersive 3D ecosystem section
   ============================================================ */

.l48-constellation-section {
  position: relative;
  overflow: hidden;
  padding: clamp(112px, 10vw, 160px) 0 clamp(104px, 9vw, 148px);
  background:
    radial-gradient(circle at 50% 18%, rgba(124, 181, 255, 0.16), transparent 34%),
    radial-gradient(circle at 18% 72%, rgba(150, 154, 255, 0.10), transparent 30%),
    radial-gradient(circle at 88% 54%, rgba(255, 255, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #05070b 0%, #0b0f14 48%, #06080d 100%);
  color: #ffffff;
  isolation: isolate;
}

.l48-constellation-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.06), transparent 22%, transparent 78%, rgba(255,255,255,0.05)),
    radial-gradient(circle at 50% 42%, rgba(255,255,255,0.08), transparent 48%);
}

.l48-constellation-copy {
  max-width: 1180px;
  margin: 0 auto 54px;
  text-align: center;
}

.l48-constellation-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 22px;
  color: rgba(219, 234, 254, 0.88);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.l48-constellation-kicker::before,
.l48-constellation-kicker::after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 220, 255, 0.62));
}

.l48-constellation-kicker::after {
  background: linear-gradient(90deg, rgba(198, 220, 255, 0.62), transparent);
}

.l48-constellation-copy h2 {
  margin: 0;
  font-size: clamp(46px, 7.6vw, 112px);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: -0.07em;
  color: rgba(255, 255, 255, 0.96);
}

.l48-constellation-copy h2 span {
  display: inline-block;
  margin-top: 8px;
  background: linear-gradient(105deg, #9fc7ff 0%, #ffffff 42%, #c7d2df 76%, #b5b7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.l48-constellation-copy > p:last-child {
  max-width: 980px;
  margin: 30px auto 0;
  color: rgba(229, 236, 247, 0.72);
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.018em;
}

.l48-constellation-stage {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
}

.l48-constellation-canvas {
  position: relative;
  height: clamp(620px, 58vw, 760px);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 48%, rgba(91, 141, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
  box-shadow:
    0 42px 140px rgba(0,0,0,0.46),
    inset 0 1px 0 rgba(255,255,255,0.20),
    inset 0 -1px 0 rgba(255,255,255,0.08);
  isolation: isolate;
}

.l48-constellation-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.12) 0 1px, transparent 1.4px) 0 0 / 92px 92px,
    radial-gradient(circle at 20% 28%, rgba(255,255,255,0.08), transparent 24%),
    linear-gradient(120deg, rgba(255,255,255,0.11), transparent 30%, transparent 70%, rgba(255,255,255,0.05));
  opacity: 0.52;
}

.l48-constellation-canvas canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.l48-constellation-label {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(8, 13, 20, 0.48);
  color: rgba(255,255,255,0.92);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  transform: translate(-50%, -50%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow:
    0 12px 32px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.22);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.l48-constellation-label.is-active {
  border-color: rgba(191, 219, 254, 0.72);
  background: rgba(30, 47, 68, 0.62);
  transform: translate(-50%, -50%) scale(1.08);
}

.l48-constellation-fallback {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  width: min(520px, calc(100% - 44px));
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(10,16,24,0.76), rgba(18,28,38,0.48)),
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.20), transparent 36%);
  color: #ffffff;
  text-align: center;
  transform: translate(-50%, -50%);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 32px 100px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.28);
}

.l48-constellation-canvas.is-ready .l48-constellation-fallback {
  display: none;
}

.l48-constellation-fallback strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.l48-constellation-fallback span {
  display: block;
  color: rgba(229,236,247,0.76);
  font-size: 16px;
  line-height: 1.5;
}

.l48-constellation-hint {
  max-width: 760px;
  margin: 24px auto 0;
  color: rgba(229, 236, 247, 0.54);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 980px) {
  .l48-constellation-section {
    padding: 104px 0 96px;
  }

  .l48-constellation-copy {
    margin-bottom: 38px;
  }

  .l48-constellation-canvas {
    height: 560px;
    min-height: 560px;
    border-radius: 34px;
  }
}

@media (max-width: 680px) {
  .l48-constellation-section {
    padding: 84px 0 78px;
  }

  .l48-constellation-copy h2 {
    font-size: clamp(42px, 13.4vw, 64px);
    letter-spacing: -0.052em;
  }

  .l48-constellation-copy > p:last-child {
    font-size: 17px;
  }

  .l48-constellation-canvas {
    height: 460px;
    min-height: 420px;
    border-radius: 28px;
  }

  .l48-constellation-label {
    max-width: 118px;
    min-height: 28px;
    padding: 6px 9px;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
  }
}

@media (prefers-reduced-motion: reduce) {
  .l48-constellation-label {
    transition: none;
  }
}

/* ============================================================
   L48 HEX PLANET PICKER — Inspiré de PwC, 9 planètes
   ============================================================ */

.l48-hpicker {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

/* ---- Grille hexagonale ---- */
.l48-hpicker-hex {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.l48-hrow {
  display: flex;
  gap: 8px;
}

.l48-hrow + .l48-hrow {
  margin-top: -38px; /* chevauchement honeycomb = 25 % de la hauteur du hex */
}

.l48-hrow--off {
  margin-left: 69px; /* décalage = (largeur + gap) / 2 = (130+8)/2 */
}

/* ---- Cellule hex ---- */
.l48-hcell {
  width: 130px;
  height: 150px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255,255,255,0.07);
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 22px 14px;
  text-align: center;
  transition: background 200ms ease, transform 220ms cubic-bezier(.22,.68,0,1.2);
  position: relative;
  flex-shrink: 0;
}

button.l48-hcell:hover {
  background: rgba(0,87,255,0.28);
  transform: scale(1.08);
  z-index: 2;
}

button.l48-hcell.is-active {
  background: rgba(0,87,255,0.50);
  transform: scale(1.08);
  z-index: 2;
}

.l48-hcell--cta {
  cursor: default;
  background: rgba(255,255,255,0.04);
  gap: 4px;
}

.l48-hcell-badge {
  display: inline-block;
  padding: 3px 8px;
  border: 1.5px solid rgba(0,87,255,0.65);
  border-radius: 4px;
  background: rgba(0,87,255,0.16);
  font-size: 12px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

button.l48-hcell.is-active .l48-hcell-badge {
  border-color: rgba(120,170,255,0.90);
  background: rgba(0,87,255,0.36);
}

.l48-hcell-sub {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.50);
  line-height: 1.3;
}

.l48-hcell--cta svg {
  color: rgba(0,87,255,0.80);
  flex-shrink: 0;
}

.l48-hcell--cta .l48-hcta-main {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  display: block;
}

.l48-hcell--cta .l48-hcta-sub {
  font-size: 9.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.46);
  line-height: 1.3;
  display: block;
}

/* ---- Panneau de détail (droite) ---- */
.l48-hpicker-panel {
  position: relative;
  min-height: 480px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.045);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.l48-hpanel-empty {
  text-align: center;
  padding: 48px 36px;
  color: rgba(255,255,255,0.36);
  font-size: 16px;
  line-height: 1.6;
  pointer-events: none;
}

.l48-hpanel-empty svg {
  display: block;
  margin: 0 auto 16px;
  color: rgba(255,255,255,0.20);
}

.l48-hpanel-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 280ms ease, transform 280ms ease;
  pointer-events: none;
}

.l48-hpanel-content.is-shown {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.l48-hpanel-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,0.80);
  transition: background 160ms;
}

.l48-hpanel-close:hover {
  background: rgba(255,255,255,0.22);
}

.l48-hpanel-img {
  position: relative;
  flex: 0 0 220px;
  overflow: hidden;
  background: #05070b;
}

.l48-hpanel-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.l48-hpanel-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(5,7,11,0.88) 100%);
}

.l48-hpanel-body {
  flex: 1;
  padding: 24px 28px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.l48-hpanel-badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 5px 12px;
  border: 1px solid rgba(114,167,255,0.30);
  border-radius: 999px;
  background: rgba(114,167,255,0.10);
  color: rgba(198,220,255,0.92);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.l48-hpanel-body h3 {
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 900;
  line-height: 1.10;
  letter-spacing: -0.030em;
  color: #ffffff;
  margin: 0 0 12px;
}

.l48-hpanel-body p {
  font-size: 14px;
  line-height: 1.60;
  color: rgba(232,238,247,0.70);
  margin: 0 0 16px;
}

.l48-hpanel-points {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 22px;
  list-style: none;
}

.l48-hpanel-points li {
  padding: 5px 11px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  font-weight: 800;
}

.l48-hpanel-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 20px;
  background: linear-gradient(135deg, #0057ff, #78aaff);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 32px rgba(0,87,255,0.26);
  transition: transform 180ms ease, box-shadow 180ms ease;
  margin-top: auto;
}

.l48-hpanel-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0,87,255,0.36);
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .l48-hpicker {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .l48-hpicker-hex {
    margin: 0 auto;
  }
  .l48-hpicker-panel {
    min-height: 420px;
  }
}

@media (max-width: 580px) {
  .l48-hcell {
    width: 100px;
    height: 116px;
  }
  .l48-hrow--off {
    margin-left: 54px;
  }
  .l48-hrow + .l48-hrow {
    margin-top: -29px;
  }
  .l48-hcell-badge {
    font-size: 10px;
    padding: 2px 6px;
  }
  .l48-hcell-sub {
    font-size: 9px;
  }
  .l48-hcell--cta svg {
    width: 22px;
    height: 22px;
  }
  .l48-hcell--cta .l48-hcta-main {
    font-size: 9.5px;
  }
  .l48-hcell--cta .l48-hcta-sub {
    font-size: 8.5px;
  }
  .l48-hpanel-img {
    flex: 0 0 160px;
  }
  .l48-hpanel-body {
    padding: 18px 20px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .l48-hcell {
    transition: none;
  }
  .l48-hpanel-content {
    transition: none;
  }
}
