/* =========================================================
   page-fv-meditation-presence.css — page "Méditation guidée —
   Se relier à la Présence JE SUIS"
   Construit PAR-DESSUS FV-base.css (h1-page, h1-page-baseline,
   fv-h2, white-bg, purple-line, container ne sont pas redéfinis
   ici). Toutes les classes propres à cette page sont préfixées
   .fv-med- pour éviter toute collision. Page satellite rattachée
   à Décrets, pas une des 4 cartes du Hub.
   Mobile-first — 3 breakpoints : base (<640px), tablette
   (>=640px), desktop (>=1024px).
   Palette : #9F0070 (primaire) + variantes rgba, fond #fff7ff.
   Polices : Optima (corps), Cinzel (titres), Great Vibes
   (script, baseline), Josefin Sans (liens/labels/CTA).
   ========================================================= */

.fv-med-body {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

/* ---------- Intro (pas de titre) ---------- */
.fv-med-intro {
  display: flex;
  flex-direction: column;
}

/* ---------- Étapes : grille titre + vignette + texte ---------- */
/* CSS Grid (pas flex) : contrôle explicite de l'ordre par breakpoint.
   Base (<640px) : titre → image → texte, empilés (fix bug mobile).
   Tablette (>=640px) : image à gauche, texte (titre+corps) à droite, jamais d'inversion.
   Desktop (>=1024px) : alternance gauche/droite via .fv-med-step--reverse. */
.fv-med-steps {
  margin-top: -1.75rem;
}

.fv-med-steps-list {
  display: flex;
  flex-direction: column;
  gap: 3.25rem;
}

.fv-med-step {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "title"
    "media"
    "body";
  gap: 0.75rem 1.5rem;
}

.fv-med-step-title {
  grid-area: title;
  margin: 0;
  text-align: left;
  color: rgba(159, 0, 112, 0.9);
}

/* Vignette discrète : ne domine jamais le texte */
.fv-med-step-media {
  grid-area: media;
  margin: 0 auto;
  width: clamp(160px, 55vw, 210px);
}

.fv-med-step-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(90, 0, 70, 0.14);
  border: 1px solid rgba(159, 0, 112, 0.12);
}

.fv-med-step-body {
  grid-area: body;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fv-med-step-body p {
  margin: 0 0 0.85em;
}

.fv-med-step-body p:last-child {
  margin-bottom: 0;
}

.fv-med-step-body em {
  font-style: italic;
  color: rgba(159, 0, 112, 0.9);
}

.fv-med-quote {
  max-width: 420px;
  margin: 0.3rem auto 0.85rem;
  padding: 1.1rem 1.4rem;
  text-align: center;
  background: #ffeffa;
  border: 1px solid rgba(159, 0, 112, 0.2);
  border-radius: 20px;
}

.fv-med-quote p {
  margin: 0 !important;
  font-style: italic;
  color: #9F0070;
  line-height: 1.5;
  text-align: center;
}

/* ---------- Pour bien pratiquer ---------- */
.fv-med-practice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.fv-med-practice-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: #ffffff;
  border: 1px solid rgba(159, 0, 112, 0.15);
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 6px 20px rgba(90, 0, 70, 0.08);
}

.fv-med-practice-item h3 {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  text-align: left;
  color: #9F0070;
}

.fv-med-practice-item p {
  margin: 0;
  text-align: left;
  font-size: 0.94rem;
  line-height: 1.5;
  color: rgba(60, 0, 50, 0.8);
}

/* ---------- Téléchargement ---------- */
.fv-med-download {
  text-align: center;
}

.fv-med-download .fv-h2 {
  text-align: left;
}

.fv-med-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.fv-med-btn {
  display: inline-flex;
  align-items: center;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  text-decoration: none !important;
  color: #ffffff !important;
  background: #9F0070;
  border-radius: 999px;
  padding: 0.75em 1.8em;
  box-shadow: 0 8px 20px rgba(140, 80, 200, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.fv-med-btn:hover {
  opacity: 1 !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(140, 80, 200, 0.38);
}

.fv-med-btn--soft {
  color: #9F0070 !important;
  background: rgba(159, 0, 112, 0.12);
  box-shadow: none;
}

.fv-med-btn--soft:hover {
  background: rgba(159, 0, 112, 0.2);
}

.fv-med-cta-note {
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(159, 0, 112, 0.65);
}

/* ---------- Retour ---------- */
.fv-med-back {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  font-family: 'Josefin Sans', sans-serif;
  letter-spacing: 0.02em;
}

.fv-med-back p {
  margin: 0;
}

/* =========================================================
   TABLETTE — >= 640px
   ========================================================= */
@media (min-width: 640px) {
  .fv-med-body {
    gap: 3.5rem;
  }
}

/* =========================================================
   DESKTOP — >= 1024px
   (en dessous, tablette garde le même empilement 1 colonne
   que le mobile — image centrée au-dessus du texte, cf. base)
   ========================================================= */
@media (min-width: 1024px) {
  .fv-med-step {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "media title"
      "media body";
    align-items: start;
    gap: 0.4rem 1.5rem;
  }

  .fv-med-step-media {
    width: clamp(140px, 15vw, 190px);
  }

  .fv-med-step--reverse {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "title media"
      "body  media";
  }

  .fv-med-practice-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}
