/* =========================
   HERO — Planiso (clean + dark-safe)
   ========================= */

.planiso-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  min-height: clamp(520px, 70vh, 780px);
  display: flex;
  align-items: center;
}

/* Background image + overlay (LIGHT) */
.planiso-hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    /* 1) “shade” global très léger */
    linear-gradient(0deg,
      rgba(15, 18, 25, 0.10),
      rgba(15, 18, 25, 0.10)
    ),

    /* 2) ton overlay existant (gauche -> droite) */
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.86) 0%,
      rgba(255, 255, 255, 0.62) 38%,
      rgba(255, 255, 255, 0.22) 62%,
      rgba(255, 255, 255, 0.00) 100%
    ),

    /* 3) l’image */
    url("../../../assets/img/slider.png");

  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  z-index: -1;
}

/* Optionnel: vignette pour donner de la profondeur */
.planiso-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    1200px circle at 70% 40%,
    rgba(0,0,0,0.00) 0%,
    rgba(0,0,0,0.10) 55%,
    rgba(0,0,0,0.18) 100%
  );
  pointer-events: none;
}



.planiso-hero::shadow{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:120px;
  pointer-events:none;

  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.00) 0%,
    rgba(0,0,0,0.10) 45%,
    rgba(0,0,0,0.22) 100%
  );
}


/* Dark mode — overlay tuned for CTA contrast */
[data-bs-theme="dark"] .planiso-hero::before {
  background-image:
    linear-gradient(90deg,
      rgba(7, 10, 18, 0.92) 0%,
      rgba(7, 10, 18, 0.66) 34%,
      rgba(7, 10, 18, 0.32) 60%,
      rgba(7, 10, 18, 0.06) 100%),
    url("../../../assets/img/slider.png");
}



/* Typography tuning */
.planiso-hero h1 {
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.planiso-hero .lead {
  max-width: 56ch;
}

.planiso-heroTagline {
  max-width: 72ch;
}

/* CTA fixes — keep Bootstrap behavior, but readable in DARK */
[data-bs-theme="dark"] .planiso-hero .btn-primary {
  color: #111 !important;
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.60),
    0 2px 0 rgba(255, 255, 255, 0.10) inset;
}

/* “Discover more” typically is outline/secondary/light → enforce contrast */
[data-bs-theme="dark"] .planiso-hero .btn-outline-secondary,
[data-bs-theme="dark"] .planiso-hero .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.30) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(4px);
}

[data-bs-theme="dark"] .planiso-hero .btn-outline-secondary:hover,
[data-bs-theme="dark"] .planiso-hero .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
}

/* Focus visible (clean + accessible) */
.planiso-hero .btn:focus-visible {
  box-shadow:
    0 0 0 0.25rem rgba(var(--planiso-primary-rgb), 0.22),
    0 12px 30px rgba(0, 0, 0, 0.20);
}

/* Mobile adjust */
@media (max-width: 992px) {
  .planiso-hero::before {
    background-position: 70% center;
  }
}
