/* ═══════════════════════════════════════════════
   CABINET BONTEMPS — Fiches / articles (lecture)
   DA blanc & doré (lot 2). Charge APRÈS style.css.
   Toutes les classes sont préfixées .fiche-.
═══════════════════════════════════════════════ */

/* ── En-tête d'article ── */
.fiche-header { padding: 9rem 5vw 3rem; min-height: 260px; align-items: flex-end; }
.rdv-divider { width: 100%; height: 1px; background: var(--line); }

.fiche-back {
  font-family: 'Raleway', sans-serif;
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-deep); text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.5rem; transition: color 0.2s;
}
.fiche-back:hover { color: var(--gold-deep-hover); }

.fiche-header-meta {
  font-family: 'Raleway', sans-serif;
  font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); display: flex; align-items: center; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem;
}
.fiche-header-meta .dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

/* ── Ossature : sommaire + corps ── */
#art-body { padding: 3.5rem 5vw 5rem; background: var(--paper); }
.fiche-layout {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 4rem; align-items: start;
}
.fiche-body { max-width: 760px; font-family: 'Raleway', sans-serif; }

/* ── Sommaire (cliquable, scrollspy) ── */
.fiche-toc {
  position: sticky; top: 96px; max-height: calc(100vh - 128px); overflow-y: auto;
  border-left: 1px solid var(--line); padding: 0.2rem 0 0.2rem 1.2rem;
}
.fiche-toc[open] { padding-bottom: 0.6rem; }
.fiche-toc-label {
  font-family: 'Raleway', sans-serif; list-style: none; cursor: pointer;
  font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem;
}
.fiche-toc-label::-webkit-details-marker { display: none; }
.fiche-toc-label::before { content: ''; width: 20px; height: 1px; background: var(--gold); flex-shrink: 0; }
.fiche-toc a {
  display: block; font-size: 0.74rem; line-height: 1.4; color: var(--ink-soft);
  text-decoration: none; padding: 0.34rem 0 0.34rem 0.8rem; margin-left: -0.8rem;
  border-left: 2px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.fiche-toc a.sub { padding-left: 1.7rem; font-size: 0.7rem; }
.fiche-toc a:hover { color: var(--gold-deep); }
.fiche-toc a.active { color: var(--gold-deep); border-left-color: var(--gold); }

/* ── Chapô ── */
.fiche-chapo {
  font-family: 'Cormorant Garamond', serif; font-style: normal; font-weight: 300;
  font-size: 1.5rem; line-height: 1.6; color: var(--ink);
  padding-bottom: 2.4rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line);
}

/* ── Titres de section ── */
.fiche-body h1, .fiche-body h2, .fiche-body h3 { scroll-margin-top: 96px; }
.fiche-body h1 {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: 2rem; line-height: 1.15; color: var(--gold-deep);
  margin: 3.2rem 0 1.3rem; padding-bottom: 0.55rem; border-bottom: 1px solid var(--line);
}
.fiche-body h1:first-of-type { margin-top: 1.2rem; }
.fiche-body h2 {
  font-family: 'EB Garamond', serif; font-weight: 600;
  font-size: 1.42rem; color: var(--ink); margin: 2.4rem 0 0.9rem;
}
.fiche-body h3 {
  font-family: 'Raleway', sans-serif; font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-deep); margin: 1.8rem 0 0.7rem;
}

/* ── Prose ── */
.fiche-body p { font-size: 1.02rem; line-height: 1.9; color: var(--ink); margin-bottom: 1.25rem; }
.fiche-body strong { color: var(--ink); font-weight: 600; }
/* Plus aucun italique sur le site : les em (citations, locutions latines) gardent la couleur or, en droit */
.fiche-body em { color: var(--gold-deep); font-style: normal; }
.fiche-body a { color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid var(--line); transition: color 0.2s; }
.fiche-body a:hover { color: var(--gold-deep-hover); }
/* Le bouton plein garde son texte blanc malgré la règle .fiche-body a ci-dessus */
.fiche-body a.btn-gold { color: var(--paper); border-bottom: none; }
.fiche-body a.btn-gold:hover { color: var(--paper); }

/* Puces : li en bloc (le display:flex cassait en colonnes les puces
   contenant un élément en gras) — puce en pseudo-élément positionné */
.fiche-body ul { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.fiche-body ul li {
  font-size: 1.02rem; line-height: 1.75; color: var(--ink);
  display: block; position: relative; padding-left: 1.5rem; margin-bottom: 0.55rem;
}
.fiche-body ul li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
  position: absolute; left: 0.2rem; top: 0.62em;
}
.fiche-body ul li p { margin: 0; }
.fiche-body ol { margin: 0 0 1.4rem 1.2rem; padding-left: 0.6rem; color: var(--ink); }
.fiche-body ol li { font-size: 1.02rem; line-height: 1.8; margin-bottom: 0.5rem; padding-left: 0.3rem; }
.fiche-body ol li::marker { color: var(--gold-deep); }

/* ── Encadré « article de loi » ── */
.fiche-legal {
  background: var(--grey); border-left: 3px solid var(--gold);
  padding: 1.4rem 1.7rem; margin: 1.8rem 0;
}
.fiche-legal-ref {
  font-family: 'Raleway', sans-serif; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 500; margin-bottom: 0.7rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.fiche-legal-ref::before { content: ''; width: 16px; height: 1px; background: var(--gold); flex-shrink: 0; }
.fiche-legal p { font-size: 0.92rem; line-height: 1.8; color: var(--ink); margin: 0; }

/* ── Note / encadré (« En bref », « Les textes »…) ── */
.fiche-note {
  background: var(--grey); border-left: 3px solid var(--gold);
  padding: 1.5rem 1.7rem; margin: 2rem 0;
}
.fiche-note-title {
  font-family: 'Raleway', sans-serif; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 0.9rem;
}
.fiche-note p { font-size: 0.95rem; line-height: 1.8; color: var(--ink); margin-bottom: 0.6rem; }
.fiche-note p:last-child { margin-bottom: 0; }
.fiche-note--warn { border-left-color: var(--gold-deep); background: var(--grey); }

/* ── Tableaux ── */
.fiche-table-wrap { margin: 1.8rem 0; overflow-x: auto; border: 1px solid var(--line-soft); }
.fiche-table-wrap.scroll { max-height: 440px; overflow-y: auto; }
.fiche-table { width: 100%; border-collapse: collapse; font-family: 'Raleway', sans-serif; }
.fiche-table th, .fiche-table td {
  text-align: left; padding: 0.75rem 1rem; vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.fiche-table thead th {
  position: sticky; top: 0; background: var(--grey);
  font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 500; border-bottom: 1px solid var(--line);
}
.fiche-table td { font-size: 0.86rem; line-height: 1.65; color: var(--ink); }
.fiche-table tbody tr:hover { background: var(--grey); }
.fiche-table strong { color: var(--ink); }

/* ── Simulateur d'indemnités ── */
.fiche-calc {
  border: 1px solid var(--line); background: var(--grey);
  padding: 2rem 1.9rem; margin: 2rem 0;
}
.fiche-calc-eyebrow {
  font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep);
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem;
}
.fiche-calc-eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--gold); }
.fiche-calc h3 {
  font-family: 'EB Garamond', serif !important; font-weight: 600 !important;
  font-size: 1.6rem !important; letter-spacing: 0 !important; text-transform: none !important;
  color: var(--ink) !important; margin: 0 0 1.4rem !important;
}
.fiche-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; margin-bottom: 1.5rem; }
.fiche-calc-field label {
  display: block; font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 0.5rem;
}
.fiche-calc-field input, .fiche-calc-field select {
  width: 100%; padding: 0.75rem 0.9rem; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 0; outline: none; appearance: none;
  font-family: 'Raleway', sans-serif; font-size: 1rem; transition: border-color 0.2s;
}
.fiche-calc-field input:focus, .fiche-calc-field select:focus { border-color: var(--gold-deep); }
.fiche-calc-out { border-top: 1px solid var(--line); padding-top: 1.5rem; display: grid; gap: 1.3rem; }
.fiche-calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.fiche-calc-row .lbl { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.5; max-width: 60%; }
.fiche-calc-row .val { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; color: var(--gold-deep); white-space: nowrap; }
.fiche-calc-row .val small { font-family: 'Raleway', sans-serif; font-size: 0.7rem; color: var(--ink-soft); letter-spacing: 0.06em; display: block; text-align: right; margin-top: 0.1rem; }
.fiche-calc-note { font-size: 0.72rem; line-height: 1.65; color: var(--ink-soft); margin-top: 1.4rem; }

/* ── Pied d'article ── */
.fiche-footer-note { margin: 3.5rem 0 0; padding-top: 2rem; border-top: 1px solid var(--line-soft); }
.fiche-disclaimer { font-size: 0.75rem; line-height: 1.7; color: var(--ink-soft); margin-bottom: 2rem; }
.fiche-footer-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.fiche-footer-cta .back-link { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); text-decoration: none; transition: color 0.2s; }
.fiche-footer-cta .back-link:hover { color: var(--gold-deep-hover); }

/* ── Fiches liées ── */
.fiche-related { margin-top: 3.5rem; }
.fiche-related-label { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.3rem; }
.fiche-related-label::before { content: ''; width: 20px; height: 1px; background: var(--gold); }
.fiche-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.fiche-related-card {
  border: 1px solid var(--line-soft); background: var(--grey);
  padding: 1.3rem 1.4rem; text-decoration: none; color: inherit; transition: border-color 0.2s, transform 0.2s;
}
.fiche-related-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.fiche-related-card .tag { font-size: 0.55rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); display: block; margin-bottom: 0.5rem; }
.fiche-related-card h4 { font-family: 'EB Garamond', serif; font-weight: 600; font-size: 1.2rem; line-height: 1.2; color: var(--ink); }
.fiche-related-card:hover h4 { color: var(--gold-deep); }

/* ── Responsive ── */
@media(max-width: 980px) {
  .fiche-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .fiche-toc {
    position: static; max-height: none; overflow: visible;
    border-left: none; border: 1px solid var(--line-soft); padding: 1rem 1.2rem;
    background: var(--grey);
  }
  .fiche-toc:not([open]) { padding: 1rem 1.2rem; }
  .fiche-toc-label { margin-bottom: 0; }
  .fiche-toc[open] .fiche-toc-label { margin-bottom: 0.9rem; }
  .fiche-body { max-width: 100%; }
}
@media(max-width: 820px) {
  .fiche-header { padding: 6rem 5vw 1.8rem; min-height: unset; }
  #art-body { padding: 2.5rem 5vw 3.5rem; }
  .fiche-chapo { font-size: 1.2rem; }
  .fiche-body h1 { font-size: 1.6rem; }
  .fiche-body p, .fiche-body ul li { font-size: 0.98rem; }
  .fiche-calc-grid { grid-template-columns: 1fr; }
}
