/* ==========================================================================
   DIGITAL LION · Page Solutions
   Hero « Mon besoin », les 5 solutions, la chaîne qui les relie, les packs.
   Construit sur les tokens de style.css (rayons 16/6, sans ombres).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero compact : on choisit son besoin
   -------------------------------------------------------------------------- */
.hero--solutions {
  height: auto;
  min-height: 0;
  overflow: hidden;
  padding: clamp(130px, 17vh, 180px) 0 clamp(16px, 3vw, 32px);
}
.hero--solutions .hero__content { height: auto; padding-top: 0; gap: 24px; }
.hero--solutions .hero__title { font-size: clamp(44px, 6vw, 92px); }
.hero--solutions .hero__sub { max-width: 620px; }
.hero--solutions .hero__glow { top: 48%; width: 80vmin; height: 80vmin; }

.needs { display: grid; gap: 14px; justify-items: center; margin-top: 16px; max-width: 1310px; }
.needs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.need {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 16px;
  border-radius: var(--r-sm);
  background: var(--c-kelp);
  box-shadow: inset 0 0 0 1px var(--c-line);
  font-size: 15px; color: var(--c-ash);
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.need svg { width: 18px; height: 18px; color: var(--c-cyan); flex: none; }
.need:hover { background: var(--c-kelp-2); color: var(--c-platinum); box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.45); transform: translateY(-2px); }
.need:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   Les 5 solutions
   -------------------------------------------------------------------------- */
.sols { padding-top: clamp(56px, 7vw, 96px); }
.sols__list { display: grid; gap: 16px; }
.sol {
  position: relative;
  display: grid; grid-template-columns: 4fr 5fr 3fr; gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: clamp(28px, 3.4vw, 48px);
  border-radius: var(--r-card);
  background: var(--c-kelp);
  scroll-margin-top: 110px;
  transition: background 0.5s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.sol:hover { background: var(--c-kelp-2); }
/* Ancre décalée : la carte s'arrête sous l'en-tête quand on choisit un besoin */
.sol__anchor { position: absolute; left: 0; top: -70px; width: 1px; height: 1px; scroll-margin-top: 40px; pointer-events: none; }
.sol.is-flash { background: var(--c-kelp-2); box-shadow: inset 0 0 0 1px var(--c-cyan), 0 0 0 6px rgba(0, 212, 255, 0.08); }
.sol__head { display: grid; gap: 12px; align-content: start; }
.sol__idx { color: var(--c-slate); }
.sol__ico { width: 52px; height: 52px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--c-arrow-bg); color: var(--c-cyan); margin: 4px 0 8px; }
.sol__ico svg { width: 26px; height: 26px; }
.sol__name { font-size: clamp(28px, 2.6vw, 38px); letter-spacing: -0.035em; line-height: 1.05; }
.sol__tagline { font-size: 15px; color: var(--c-cyan); }
.sol__body { display: grid; gap: 20px; }
.sol__points { display: grid; gap: 10px; }
.sol__points li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; color: var(--c-ash); }
.sol__points svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--c-cyan); }
.sol__price { display: grid; gap: 8px; justify-items: end; text-align: right; }
.sol__amount { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sol__amount strong { font-size: clamp(40px, 3.6vw, 54px); font-weight: 500; line-height: 1; letter-spacing: -0.04em; color: var(--c-platinum); }
.sol__from { font-size: 14px; color: var(--c-silver); }
.sol__then { font-size: 14px; color: var(--c-silver); }
.sol__price .btn { margin-top: 10px; }

/* --------------------------------------------------------------------------
   Chaîne : comment les solutions se relaient
   -------------------------------------------------------------------------- */
.chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.chain__step {
  position: relative;
  display: grid; gap: 10px; align-content: start;
  padding: 24px 22px;
  border-radius: var(--r-card);
  background: var(--c-kelp);
}
.chain__step:not(:last-child)::after {
  content: ""; position: absolute; top: 46px; right: -24px;
  width: 20px; height: 1px; background: var(--g-bio);
}
.chain__step:not(:last-child)::before {
  content: ""; position: absolute; top: 43px; right: -24px;
  width: 6px; height: 6px; border-top: 1px solid #8b5cf6; border-right: 1px solid #8b5cf6; transform: rotate(45deg);
}
.chain__ico { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--c-arrow-bg); color: var(--c-cyan); margin-bottom: 6px; }
.chain__ico svg { width: 22px; height: 22px; }
.chain__step .caption { color: var(--c-cyan); }
.chain__step p { font-size: 16px; line-height: 1.35; letter-spacing: -0.01em; color: var(--c-platinum); }
.chain__step.is-lit { background: var(--c-kelp-2); box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.45); }
.chain__step { transition: background 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out); }

.sols__packs { margin-top: clamp(48px, 6vw, 80px); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .sol { grid-template-columns: 1fr 1fr; }
  .sol__price { grid-column: 1 / -1; grid-template-columns: auto 1fr auto; align-items: center; justify-items: start; text-align: left; padding-top: 24px; border-top: 1px solid var(--c-line); }
  .sol__amount { justify-content: flex-start; }
  .sol__price .btn { margin: 0; justify-self: end; }
  .chain { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chain__step:nth-child(3)::after, .chain__step:nth-child(3)::before { display: none; }
}
@media (max-width: 760px) {
  .sol { grid-template-columns: 1fr; }
  .sol__price { grid-template-columns: 1fr; }
  .sol__price .btn { justify-self: start; }
  .chain { grid-template-columns: 1fr; gap: 24px; }
  .chain__step::after, .chain__step::before { display: block; }
  .chain__step:not(:last-child)::after { top: auto; bottom: -20px; right: auto; left: 44px; width: 1px; height: 16px; }
  .chain__step:not(:last-child)::before { top: auto; bottom: -18px; right: auto; left: 41px; transform: rotate(135deg); }
  .chain__step:nth-child(3)::after, .chain__step:nth-child(3)::before { display: block; }
  .pack { grid-template-columns: 1fr; }
  .pack__price { justify-items: start; text-align: left; }
}
