/* =========================================================
   page-fv-fondations.css — page "La Flamme Violette (Fondations)"
   Construit PAR-DESSUS FV-base.css (h1-page, h1-page-baseline,
   fv-h2, white-bg, purple-line ne sont pas redéfinis ici).
   Toutes les classes propres à cette page sont préfixées
   .fv-fond- pour éviter toute collision avec FV-base et les
   autres pages du Hub.
   Mobile-first — 3 breakpoints : base (<640px), tablette
   (>=640px), desktop (>=1024px). CSS Grid/Flexbox uniquement,
   aucune largeur figée en px, pas de Bootstrap.
   Palette : #9F0070 (primaire) + variantes rgba, fond #fff7ff.
   Polices : Optima (corps), Cinzel (titres), Great Vibes
   (script, non utilisée ici), Josefin Sans (liens/labels).
   ========================================================= */

.fv-fond-h1-tag {
  font-size: 0.55em;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(159, 0, 112, 0.5);
}

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

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

/* ---------- Origines & Fondations ---------- */
.fv-fond-origines {
  margin-top: -0.55rem;
}

.fv-fond-media {
  margin: 1.75rem 0;
}

.fv-fond-media-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(90, 0, 70, 0.15);
}

.fv-fond-media-caption {
  margin-top: 0.6rem;
  text-align: center;
  font-family: 'Optima', 'Jost', sans-serif;
  font-size: 0.8rem;
  font-style: italic;
  color: rgba(159, 0, 112, 0.65);
}

/* ---------- Frise chronologique ---------- */
.fv-fond-timeline {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.85rem;
}

.fv-fond-tl-item {
  position: relative;
  padding-left: 2.4rem;
}

.fv-fond-tl-item::before {
  content: '';
  position: absolute;
  left: 0.4rem;
  top: 1.2rem;
  bottom: -1.85rem;
  width: 2px;
  background: rgba(159, 0, 112, 0.2);
}

.fv-fond-tl-item:last-child::before {
  display: none;
}

.fv-fond-tl-dot {
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: #9F0070;
  box-shadow: 0 0 0 4px #fff7ff;
}

.fv-fond-tl-year {
  display: block;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #9F0070;
  margin-bottom: 0.3rem;
}

.fv-fond-tl-title {
  margin: 0 0 0.3rem;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 1rem;
  color: rgba(60, 0, 50, 0.9);
}

.fv-fond-tl-alias {
  font-weight: 400;
  font-style: italic;
  font-size: 0.85em;
  color: rgba(159, 0, 112, 0.7);
}

.fv-fond-tl-text {
  margin: 0;
  text-align: left;
  font-family: 'Optima', 'Jost', sans-serif;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(60, 0, 50, 0.75);
}

/* ---------- La Présence JE SUIS ---------- */
.fv-fond-presence-layout {
  display: flex;
  flex-direction: column-reverse;
  gap: 2rem;
  margin-top: 1.5rem;
}

.fv-fond-presence-text {
  display: flex;
  flex-direction: column;
}

.fv-fond-presence-note {
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(159, 0, 112, 0.8);
  border-left: 2px solid rgba(159, 0, 112, 0.3);
  padding-left: 1rem;
  text-align: left;
}

.fv-fond-presence-media {
  margin: 0;
}

.fv-fond-presence-img {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 5 / 8;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(90, 0, 70, 0.18);
}

/* ---------- Encart "Un mot avant d'aller plus loin" ---------- */
.fv-fond-encart {
  background: #ffeffa;
  border: 1px solid rgba(159, 0, 112, 0.25);
  border-radius: 22px;
  padding: 1.85rem 1.5rem;
}

.fv-fond-encart .fv-h2 {
  margin-top: 0;
}

.fv-fond-encart-signature {
  font-style: italic;
  color: rgba(159, 0, 112, 0.85);
  margin-bottom: 0 !important;
}

/* ---------- Références ---------- */
.fv-fond-refs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.fv-fond-ref-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  background: #ffffff;
  border: 1px solid rgba(159, 0, 112, 0.15);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 6px 20px rgba(90, 0, 70, 0.08);
}

/* Portraits/logos ajoutés par Julien (non prévus par le mockup CD) */
.fv-fond-ref-media {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(90, 0, 70, 0.15);
}

.fv-fond-ref-title {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: #9F0070;
}

.fv-fond-ref-text {
  margin: 0;
  flex: 1;
  text-align: left;
  font-family: 'Optima', 'Jost', sans-serif;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(60, 0, 50, 0.8);
}

.fv-fond-ref-link {
  align-self: flex-start;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: #9F0070;
}

.fv-fond-ref-link--sub {
  margin-top: -0.35rem;
  font-size: 0.78rem;
  opacity: 0.65;
}

/* ---------- La suite : la pratique ---------- */
.fv-fond-suite {
  border-top: 1px solid rgba(159, 0, 112, 0.2);
  padding-top: 1.75rem;
}

.fv-fond-suite p {
  text-align: justify;
}

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

  .fv-fond-refs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fv-fond-presence-img {
    max-width: 380px;
  }
}

/* =========================================================
   DESKTOP — >= 1024px
   ========================================================= */
@media (min-width: 1024px) {
  .fv-fond-timeline {
    flex-direction: row;
    gap: 0;
    padding-top: 0.5rem;
    position: relative;
  }

  .fv-fond-timeline::after {
    content: '';
    position: absolute;
    left: 6%;
    right: 6%;
    top: 0.72rem;
    height: 2px;
    background: linear-gradient(to right,
      rgba(159, 0, 112, 0) 0%,
      rgba(159, 0, 112, 0.35) 8%,
      rgba(159, 0, 112, 0.35) 92%,
      rgba(159, 0, 112, 0) 100%);
  }

  .fv-fond-tl-item {
    flex: 1;
    padding-left: 0;
    padding-top: 1.7rem;
    text-align: center;
  }

  .fv-fond-tl-item::before {
    display: none;
  }

  .fv-fond-tl-dot {
    left: 50%;
    top: 0.3rem;
    transform: translateX(-50%);
  }

  .fv-fond-tl-year {
    text-align: center;
  }

  .fv-fond-tl-content {
    padding: 0 1rem;
  }

  .fv-fond-tl-text {
    text-align: center;
  }

  .fv-fond-presence-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 3.5rem;
  }

  .fv-fond-presence-text {
    flex: 1 1 62%;
  }

  .fv-fond-presence-media {
    flex: 0 0 32%;
    position: sticky;
    top: 2rem;
  }

  .fv-fond-presence-img {
    max-width: 100%;
  }

  .fv-fond-refs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
