/* ===========================================
   GUIDE — "3 étapes pour ne plus y penser"
   Section sur fond orange avec 3 cards numérotées + CTA final.
   =========================================== */

.guide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  padding: 100px 85px;
  background-color: var(--color-accent);
}

/* --- Titre --- */
.guide__heading {
  width: 100%;
  max-width: 1270px;
  padding: 10px;
  margin: 0;
  font-size: 36px;
  font-weight: var(--fw-semibold);
  line-height: 54px;
  text-align: center;
  color: var(--color-text);
}

.guide__heading-accent {
  color: var(--color-bg);
}

/* --- Container des 3 cards --- */
.guide__steps {
  display: flex;
  justify-content: center;
  gap: 100px;
  padding: 10px;
  width: 100%;
  max-width: 1270px;
}

/* --- Step card --- */
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 350px;
  padding: 10px 10px 30px 10px;
  background-color: var(--color-bg);
  border: 2px solid var(--color-text);
  box-shadow: 8px 8px 0 0 var(--color-text);
}

/* Grand numéro 1 / 2 / 3 */
.guide-card__number {
  margin: 0;
  padding: 10px;
  font-size: 64px;
  font-weight: var(--fw-medium);
  line-height: 96px;
  text-align: center;
  color: var(--color-accent);
}

/* Titre de l'étape */
.guide-card__title {
  margin: 0;
  padding: 10px 30px;
  font-size: 24px;
  font-weight: var(--fw-medium);
  line-height: 36px;
  text-align: center;
  color: var(--color-text);
}

/* Description (paragraphes multiples) */
.guide-card__description {
  margin: 0;
  padding: 30px 10px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  font-size: 20px;
  line-height: 30px;
  color: var(--color-text);
}

.guide-card__description p {
  margin: 0;
}

.guide-card__description strong {
  font-weight: var(--fw-semibold);
}

/* Trust line en bas (Poppins light) */
.guide-card__trust {
  margin: auto 0 0 0; /* push to bottom of card */
  padding: 0 10px;
  font-size: 16px;
  font-weight: var(--fw-light);
  line-height: 24px;
  text-align: center;
  color: var(--color-text);
}

/* --- CTA wrapper --- */
.guide__cta-wrapper {
  display: flex;
  justify-content: center;
  padding: 20px;
}

/* CTA inverse (beige sur fond orange) — ombre visible au repos qui
   se rétracte au hover, à l'inverse du comportement par défaut de
   .btn--inverse. */
.guide__cta {
  padding: 20px 40px;
  font-size: 20px;
  line-height: 30px;
  gap: 5px;
  box-shadow: 8px 8px 0 0 var(--color-text);
}

.guide__cta:hover {
  box-shadow: 0 0 0 0 var(--color-text);
}

/* Largeur fixe pour ne pas faire grandir le bouton au hover. La hampe
   et la pointe sont en absolu à l'intérieur ; seule la width de la
   hampe et le left de la pointe sont animés — pas de transform donc
   pas de risque de déformation sub-pixel. */
.guide__cta-arrow {
  position: relative;
  display: inline-block;
  width: 25px;
  height: 18px;
  flex-shrink: 0;
}

.guide__cta-arrow-shaft {
  position: absolute;
  left: 2px;
  top: 50%;
  margin-top: -1px;
  height: 2px;
  width: 14px;
  background-color: currentColor;
  border-radius: 1px;
  transition: width 250ms ease;
}

.guide__cta-arrow-head {
  position: absolute;
  left: 10px;
  top: 50%;
  margin-top: -5px;
  width: 7px;
  height: 10px;
  transition: left 250ms ease;
}

.guide__cta:hover .guide__cta-arrow-shaft {
  width: 21px;
}

.guide__cta:hover .guide__cta-arrow-head {
  left: 17px;
}

/* ============================
   TABLET (768-1199px)
   3 cards stackées en colonne.
   ============================ */
@media (max-width: 1199px) {
  .guide {
    padding: 100px 50px;
  }

  .guide__steps {
    flex-direction: column;
    align-items: center;
    gap: 100px;
    max-width: 794px;
  }
}

/* ============================
   MOBILE (< 768px)
   ============================ */
@media (max-width: 767px) {
  .guide {
    padding: 60px 20px;
    gap: 60px;
  }

  .guide__heading {
    font-size: 32px;
    line-height: 48px;
    text-align: left;
    padding: 10px 20px;
  }

  .guide__steps {
    gap: 100px;
  }

  .guide-card {
    width: 100%;
    max-width: 353px;
  }

  /* Mobile : description, trust line et CTA shrinkent. Le titre H3 et
     le grand numéro 64px restent identiques (cf. Figma mobile spec). */
  .guide-card__description {
    font-size: 16px;
    line-height: 24px;
  }

  .guide-card__trust {
    font-size: 13px;
    line-height: 20px;
  }

  .guide__cta {
    font-size: 16px;
    line-height: 24px;
  }
}

/* Reveal au scroll : titre slide-up, 3 cartes slide-from-right en
   cascade (l'une après l'autre), CTA slide-up. Scoped sous .js. */
@keyframes guide-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes guide-slide-from-right {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.js .guide__heading[data-reveal],
.js .guide__steps[data-reveal] .guide-card,
.js .guide__cta-wrapper[data-reveal] {
  opacity: 0;
}

.guide__heading.is-visible {
  animation: guide-slide-up 600ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.guide__steps.is-visible .guide-card {
  animation: guide-slide-from-right 600ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.guide__steps.is-visible .guide-card:nth-child(1) { animation-delay:   0ms; }
.guide__steps.is-visible .guide-card:nth-child(2) { animation-delay: 150ms; }
.guide__steps.is-visible .guide-card:nth-child(3) { animation-delay: 300ms; }

.guide__cta-wrapper.is-visible {
  animation: guide-slide-up 600ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .js .guide__heading[data-reveal],
  .js .guide__steps[data-reveal] .guide-card,
  .js .guide__cta-wrapper[data-reveal] {
    opacity: 1;
    animation: none;
  }
}
