/* assets/css/how-it-works.css */
/* Bloc "Comment ça marche" — style premium, cohérent Nomacool */

.hiw{
  padding: 34px 0 10px;
  background: transparent;
}

.hiwInner{
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.hiwTitle{
  margin: 6px 0 10px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-align: center;
}

.hiwLead{
  margin: 0 auto 18px;
  max-width: 860px;
  color: var(--muted);
  text-align: center;
  font-size: 15px;
  line-height: 1.55;
}

.hiwSteps{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin-top: 18px;
}

.hiwStep{
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;

  padding: 18px 18px 16px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid rgba(165,172,175,.25);
  box-shadow:
    0 18px 50px rgba(0,0,0,.08),
    0 4px 14px rgba(0,0,0,.06);
  overflow: hidden;
}

/* Halo haut (subtil) */
.hiwStep::before{
  content:"";
  position:absolute;
  inset: -40px -40px auto -40px;
  height: 130px;
  background: radial-gradient(60% 90% at 20% 20%, rgba(19,153,255,.22) 0%, rgba(19,153,255,0) 60%),
              radial-gradient(60% 90% at 80% 10%, rgba(0,76,84,.16) 0%, rgba(0,76,84,0) 60%);
  pointer-events:none;
}

/* Petite ligne d’accent (prime) */
.hiwStep::after{
  content:"";
  position:absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 3px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(90deg, var(--prime), rgba(19,153,255,.35));
  opacity: .85;
  pointer-events:none;
}

.hiwIcon{
  width: 74px;
  height: 74px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(19,153,255,.14), rgba(0,76,84,.10));
  border: 1px solid rgba(165,172,175,.20);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.75),
    0 10px 24px rgba(0,0,0,.08);
  margin-top: 2px;
}

.hiwKicker{
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(61,74,80,.85);
  margin: 4px 0 6px;
}

.hiwStepTitle{
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.hiwStepBody{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.hiwStepBody strong{
  color: var(--midnight);
  font-weight: 800;
}

/* SVG tokens : on pilote depuis le CSS (palette site) */
.hiwSvgBg{ fill: rgba(247,249,251,.65); }
.hiwSvgStroke{ stroke: rgba(0,76,84,.55); }
.hiwSvgMid{ fill: rgba(0,76,84,.10); }
.hiwSvgPrime{ fill: rgba(19,153,255,.18); }
.hiwSvgPrimeStroke{ stroke: rgba(19,153,255,.90); }
.hiwSvgCheck{ stroke: rgba(19,153,255,.95); }
.hiwSvgSolidMid{ fill: rgba(0,76,84,.72); }
.hiwSvgSolidPrime{ fill: rgba(19,153,255,.95); }

/* Responsive */
@media (max-width: 980px){
  .hiwSteps{ grid-template-columns: 1fr; }
  .hiwStep{
    grid-template-columns: 84px 1fr;
    grid-template-rows: auto;
    align-items: start;
    gap: 14px;
    padding: 16px;
  }
  .hiwIcon{ width: 72px; height: 72px; border-radius: 18px; }
  .hiwStepTitle{ font-size: 16px; }
}

/* Petites optimisations touch */
@media (max-width: 640px){
  .hiw{ padding-top: 28px; }
  .hiwInner{ width: min(1100px, calc(100% - 24px)); }
}
.hiwImg{
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px; /* pour suivre les bords arrondis */
}