/* ============================================================
   Savoira — Refonte Comment ça marche : composants de page
   Complète redesign.css + refonte-accueil.css + refonte-formations.css
   (brief étape 3, §2–§5)
   ============================================================ */

/* ---------- Intro « Cinq étapes, en clair. » (§3.3) ---------- */

.steps-section { padding: 104px 0; }
.steps-section .section-head { margin-bottom: 56px; }

/* ---------- Bloc étape texte (§2.1) ---------- */

.step-row {
  display: grid;
  grid-template-columns: 11fr 9fr;
  gap: 64px;
  align-items: center;
}
.step-row + .step-row { margin-top: 96px; }
.step-row.alt { grid-template-columns: 9fr 11fr; }
.step-row.alt .step-text { order: 2; }
.step-row.alt .step-media { order: 1; }

.step-text {
  position: relative;
  border-top: 2px solid var(--line);
  padding-top: 20px;
}
.step-text::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--green);
}
.st-kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-deep);
}
.step-text h3 {
  font-size: clamp(24px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-top: 14px;
}
.st-dur {
  display: inline-flex;
  align-items: center;
  background: var(--mint);
  border: 1px solid var(--mint-line);
  border-radius: 999px;
  padding: 5px 11px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--green-deep);
  margin-top: 14px;
  white-space: nowrap;
}
.step-text p { font-size: 15px; line-height: 1.62; color: var(--body); margin-top: 16px; max-width: 520px; text-wrap: pretty; }
.st-checks { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.st-checks li { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--body); }
.st-checks li svg { color: var(--green); flex: none; margin-top: 2px; }

/* ---------- Bloc média (§2.2) ---------- */

.step-media .frame {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: var(--card);
}
.step-media .frame img {
  width: 100%;
  aspect-ratio: 5 / 3.6;
  object-fit: cover;
}

/* ---------- « Destination » (§3.5) ---------- */

.dest-section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.dest-section .h2 { margin-top: 12px; }
.dest-section p {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  margin: 14px auto 0;
  text-wrap: pretty;
}
.dest-section .btn { margin-top: 28px; }

/* ---------- FAQ (§3.6) ---------- */

.faq-section { padding: 104px 0; }
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.faq-intro { position: sticky; top: 88px; }
.faq-intro .h2 { margin-top: 12px; }
.faq-intro .section-sub { font-size: 15.5px; margin-top: 14px; max-width: 340px; }

/* Carte support (§2.5) */
.support-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px;
  margin-top: 28px;
  max-width: 340px;
}
.support-card .sc-title { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.support-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-top: 5px; }
.support-card a {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green-deep);
  margin-top: 12px;
}
.support-card a:hover { text-decoration: underline; color: var(--green-deep); }

/* Accordéon (§2.4) */
.fq-list { display: flex; flex-direction: column; gap: 8px; }
.fq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  transition: border-color .15s ease;
}
.fq-item.open { border-color: var(--mint-line); }
.fq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 16px 18px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.008em;
  line-height: 1.4;
}
.fq-x {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green-deep);
  flex: none;
}
.fq-x svg { transition: transform .15s ease; }
.fq-item.open .fq-x svg { transform: rotate(45deg); }
.fq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .25s ease;
}
.fq-a > div { overflow: hidden; }
.fq-a p { font-size: 14.5px; line-height: 1.6; color: var(--body); padding: 0 18px 16px; }
.fq-item.open .fq-a { grid-template-rows: 1fr; }

@media (prefers-reduced-motion: reduce) {
  .fq-a, .fq-x svg { transition: none; }
}

/* ---------- Responsive (§5) ---------- */

@media (max-width: 1000px) {
  .step-row, .step-row.alt { gap: 40px; }
  .faq-layout { gap: 40px; }
}

@media (max-width: 880px) {
  /* Fin de l'alternance : média au-dessus du texte, ordre 01→05 */
  .step-row, .step-row.alt { grid-template-columns: 1fr; gap: 28px; }
  .step-row .step-text, .step-row.alt .step-text { order: 2; }
  .step-row .step-media, .step-row.alt .step-media { order: 1; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
}

@media (max-width: 600px) {
  .steps-section { padding: 72px 0; }
  .steps-section .section-head { margin-bottom: 40px; }
  .step-row + .step-row { margin-top: 64px; }
  .dest-section { padding: 72px 0; }
  /* C1 (révision CCM) : seul CTA de conversion de la page → pleine largeur au pouce */
  .dest-section .btn { display: flex; width: 100%; }
  .faq-section { padding: 72px 0; }
  .support-card { max-width: none; }
  .faq-intro .section-sub { max-width: none; }
}
