/* ===================================
   COMMENT ÇA MARCHE
   =================================== */

.page-hero {
  position: relative;
  padding: 4.5rem 2rem 3.5rem;
  background:
    radial-gradient(700px 420px at 50% 20%, rgba(102, 64, 42, 0.35), transparent 60%),
    #111119;
  border-bottom: 1px solid rgba(245,245,245,0.08);
}

.page-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.comment-eyebrow {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 2rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245,245,245,0.55);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.page-hero p {
  color: rgba(245,245,245,0.75);
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Steps grid */
.steps {
  padding: 2.5rem 2rem 1.5rem;
}

.steps-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.step-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(245,245,245,0.08);
  text-decoration: none;
  color: var(--light-text);
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(102, 64, 42, 0.55);
  box-shadow: 0 12px 35px rgba(0,0,0,0.35);
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(102, 64, 42, 0.18);
  border: 1px solid rgba(102, 64, 42, 0.35);
  flex: 0 0 auto;
}

.step-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  filter: brightness(1.05);
}

.step-number {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245,245,245,0.7);
  margin-bottom: 0.2rem;
}

.step-card h2 {
  font-size: 1rem;
  margin: 0;
}

/* Details */
.steps-detail {
  padding: 1rem 2rem 4rem;
}

.steps-detail-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.detail-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.4rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(245,245,245,0.08);
  scroll-margin-top: 110px; /* pour l’ancre sous la navbar sticky */
}

.detail-left {
  position: relative;
  display: grid;
  place-items: center;
}

.detail-left img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.35));
}

.detail-badge {
  position: absolute;
  top: -10px;
  left: 10px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: var(--wood-accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(102, 64, 42, 0.4);
}

.detail-right h2 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
  color: var(--wood-accent);
}

.detail-right p {
  color: rgba(245,245,245,0.85);
  line-height: 1.8;
  margin-bottom: 0;
}

/* Buttons */
.detail-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  background: var(--wood-accent);
  color: #fff;
  border: 1px solid rgba(102, 64, 42, 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  color: rgba(245,245,245,0.9);
  border: 1px solid rgba(245,245,245,0.18);
}

.btn-ghost:hover {
  border-color: rgba(102, 64, 42, 0.65);
}

/* Responsive */
@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-card {
    grid-template-columns: 120px 1fr;
  }
}

@media (max-width: 520px) {
  .page-hero {
    padding: 3.5rem 1.2rem 2.5rem;
  }
  .steps {
    padding-inline: 1.2rem;
  }
  .steps-detail {
    padding-inline: 1.2rem;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .detail-card {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .detail-left {
    justify-content: start;
    place-items: start;
  }
  .detail-badge {
    left: 0;
  }
}
