/* =========================================================
   page-fv-decrets.css — page "La Flamme Violette (Décrets)"
   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-dec- 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 interdit pour la
   grille de décrets (Flexbox + flex-wrap uniquement, cf.
   contrainte de hauteur indépendante par carte). Pas de
   Bootstrap, pas de largeur figée en px.
   Palette : #9F0070 (primaire) + variantes rgba, fond #fff7ff.
   Polices : Optima (corps), Cinzel (titres), Great Vibes
   (script, non utilisée ici), Josefin Sans (liens/labels).
   ========================================================= */

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

/* ---------- Bandeau ---------- */
.fv-dec-banner {
  margin: 0;
}

.fv-dec-banner-img {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 12px 34px rgba(90, 0, 70, 0.18);
}

/* ---------- Intro ---------- */
.fv-dec-intro {
  display: flex;
  flex-direction: column;
}

.fv-dec-med-buttons {
  margin: 0.5rem 0 1.75rem;
}

.fv-dec-quote {
  max-width: 480px;
  margin: 0.6rem auto 2rem;
  padding: 1.25rem 1.5rem;
  text-align: center;
  background: #ffeffa;
  border: 1px solid rgba(159, 0, 112, 0.2);
  border-radius: 20px;
}

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

/* ---------- Grille des décrets ---------- */
.fv-dec-grid-section {
  margin-top: -1.75rem;
}

.fv-dec-chapo {
  color: rgba(60, 0, 50, 0.7);
}

.fv-dec-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem;
  margin: 1.75rem 0;
}

.fv-dec-card {
  position: relative;
  box-sizing: border-box;
  flex: 1 1 100%;
  background: #ffffff;
  border: 1px solid rgba(159, 0, 112, 0.15);
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(90, 0, 70, 0.08);
  overflow: visible;
}

.fv-dec-card[open] {
  box-shadow: 0 10px 28px rgba(90, 0, 70, 0.14);
}

.fv-dec-summary {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.2rem 2.6rem;
  -webkit-tap-highlight-color: transparent;
}

.fv-dec-summary::-webkit-details-marker {
  display: none;
}

.fv-dec-summary::marker {
  content: '';
}

.fv-dec-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(159, 0, 112, 0.1);
  color: #9F0070;
}

.fv-dec-icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.fv-dec-summary-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.fv-dec-divider {
  display: block;
  height: 1px;
  width: 100%;
  margin: 0.2rem 0 0.05rem;
  background: linear-gradient(to right, rgba(159, 0, 112, 0.4), rgba(159, 0, 112, 0.05));
}

.fv-dec-theme {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: rgba(159, 0, 112, 0.9);
  text-align: left;
}

.fv-dec-teaser {
  margin: 0 !important;
  text-align: left !important;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(60, 0, 50, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fv-dec-icon-toggle {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: #9F0070;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(90, 0, 70, 0.3);
  transition: transform 0.25s ease;
}

.fv-dec-icon-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
}

.fv-dec-card[open] .fv-dec-icon-toggle {
  transform: rotate(180deg);
}

.fv-dec-content {
  padding: 1rem 1.2rem 2.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid rgba(159, 0, 112, 0.12);
  margin-top: -0.1rem;
}

.fv-dec-card[open] .fv-dec-teaser {
  display: none;
}

.fv-dec-decret {
  margin: 0;
  text-align: left;
  font-style: italic;
  font-size: 0.94rem;
  line-height: 1.55;
  color: #9F0070;
}

.fv-dec-repeat {
  align-self: flex-start;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: rgba(159, 0, 112, 0.6);
}

.fv-dec-note {
  font-size: 0.88rem;
  font-style: italic;
  color: rgba(159, 0, 112, 0.75);
  border-left: 2px solid rgba(159, 0, 112, 0.25);
  padding-left: 1rem;
  text-align: left;
}

/* ---------- Pour aller plus loin : grille de livres ---------- */
/* Pattern repris de .fv-vp-book (page-fv-voie-pratique.css), préfixé .fv-dec- */
/* CSS Grid (pas flex) : évite qu'une carte seule sur la dernière ligne s'étire */
.fv-dec-books {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.375rem;
  margin-top: 1.5rem;
}

.fv-dec-book {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(120, 42, 120, 0.08);
  padding: 1rem;
}

.fv-dec-book-cover {
  width: clamp(85px, 16vw, 115px);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  flex: none;
  display: block;
  box-shadow: 0 2px 8px rgba(120, 42, 120, 0.15);
}

.fv-dec-book-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1 160px;
  min-width: 0;
}

.fv-dec-book-body h3 {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.3;
  color: #9F0070;
  text-align: left;
}

.fv-dec-book-author {
  margin: 0 !important;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.875rem !important;
  color: #B853BE !important;
  text-align: left;
}

.fv-dec-book-body p:last-child {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(60, 0, 50, 0.7);
  text-align: left;
}

.fv-dec-book-link {
  margin-top: 0.15rem !important;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: #9F0070;
  text-align: left;
}

/* ---------- Retour ---------- */
.fv-dec-back {
  margin: 0;
  text-align: center;
  font-family: 'Josefin Sans', sans-serif;
  letter-spacing: 0.02em;
}

/* =========================================================
   TABLETTE — >= 640px
   ========================================================= */
@media (min-width: 640px) {
  .fv-dec-card {
    flex: 1 1 calc(50% - 0.75rem);
  }

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

/* =========================================================
   DESKTOP — >= 1024px
   ========================================================= */
@media (min-width: 1024px) {
  .fv-dec-card {
    flex: 1 1 calc(33.333% - 1rem);
  }
}
