/* ============================================================
   GAÉ Finance - Repères & définitions
   Index premium « ouvrage de référence » : sommaire thématique,
   catégories numérotées, fiches dictionnaire ouvertes (filets,
   pas de cards). Palette : exclusivement vars socle + hex
   validés. Aucun JS. Ancres stables (scroll-margin pour header).
   ============================================================ */

.rep-breadcrumb {
  padding: 18px 0 0;
  font-size: 0.85rem;
  color: #5d6470;
}

.rep-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.rep-breadcrumb li { display: flex; align-items: center; }

.rep-breadcrumb li + li::before {
  content: "›";
  margin-right: 10px;
  color: rgba(22, 24, 29, 0.35);
}

.rep-breadcrumb a { text-decoration: none; }
.rep-breadcrumb a:hover { text-decoration: underline; }

.rep-breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Encart « Comment utiliser cette page » ---------- */

.rep-use {
  margin: 22px 0 0;
  border-left: 2px solid #C4A97D;
  padding: 4px 0 4px 18px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 72ch;
}

.rep-use strong { color: var(--text); }
.rep-use a { color: var(--accent); }

/* ---------- Sommaire thématique ---------- */

.rep-index {
  background: #f7f5f1;
  border-radius: var(--radius-lg);
  padding: 34px 36px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px 26px;
}

.rep-index__col h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #163867;
  margin: 0;
}

.rep-index__col ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.rep-index__col a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
}

.rep-index__col a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ---------- Catégories ---------- */

.rep-cathead {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 6px;
}

.rep-cathead__num {
  font-size: 2.6rem;
  font-weight: 700;
  color: #C4A97D;
  line-height: 1;
}

.rep-cathead h2 { margin: 0; }

.rep-catside {
  margin: 0 0 8px;
  font-size: 0.94rem;
  color: var(--muted);
  max-width: 72ch;
  line-height: 1.7;
}

/* ---------- Fiches dictionnaire ---------- */

.rep-term {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  scroll-margin-top: 96px;
}

.rep-term:first-of-type { border-top: none; padding-top: 22px; }

.rep-term h3 {
  font-size: 1.32rem;
  line-height: 1.25;
  margin: 0;
  color: #10161f;
}

.rep-answer {
  max-width: 66ch;
  margin: 10px 0 0;
  font-size: 1.04rem;
  line-height: 1.7;
  color: #163867;
}

.rep-answer a { color: var(--accent); }

.rep-details {
  margin: 16px 0 0;
}

.rep-details > div {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 6px 30px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.rep-details > div:first-child { border-top: none; padding-top: 0; }

.rep-details dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a5a2b;
  padding-top: 4px;
}

.rep-details dd {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.7;
}

.rep-details dd a { color: var(--accent); }
.rep-details dd strong { color: var(--text); }

/* ---------- Renvoi final sobre ---------- */

.rep-more p {
  max-width: 66ch;
}

.rep-more {
  border-top: 1px solid var(--line);
  padding: 34px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
}

.rep-more p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

.rep-more a { color: var(--accent); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .rep-index { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 899px) {
  .rep-breadcrumb { padding-top: 12px; }

  .rep-index {
    grid-template-columns: repeat(2, 1fr);
    padding: 26px 24px;
  }

  .rep-cathead { gap: 12px; }
  .rep-cathead__num { font-size: 2rem; }

  .rep-details > div { grid-template-columns: 1fr; gap: 4px; }
  .rep-details dt { padding-top: 0; }
}

@media (max-width: 640px) {
  .rep-index { grid-template-columns: 1fr; }
  .rep-term { padding: 24px 0; }
  .rep-term h3 { font-size: 1.18rem; }
  .rep-answer { font-size: 0.98rem; }
}

/* Phase "En clair, chez GAÉ Finance" : conclusion éditoriale (liseré or fin, italique, discrète, sans card ni badge) */
.rep-plain {
  margin: 28px 0 0;
  padding-left: 20px;
  border-left: 2px solid #C4A97D;
}

.rep-plain__label {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #5d6470;
}

.rep-plain__text {
  max-width: 66ch;
  margin: 0;
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #3f454d;
}

/* ============================================================
   Phase 16C-3 - Repères & définitions : harmonisation système
   (16A/16B/16C). Contenu, structure, ancres et blocs
   « En clair, chez GAÉ Finance » strictement conservés.
   ============================================================ */

/* Palette passée aux variables du socle */
.rep-breadcrumb { color: var(--muted); }
.rep-use { border-left-color: var(--gold); }
.rep-index__col h3 { color: var(--accent); }
.rep-plain { border-left-color: var(--gold); }
.rep-plain__label { color: var(--muted); }

/* Sommaire thématique : boîte beige retirée, colonnes ouvertes
   sur filet (pattern sommaire /methode/) */
.rep-index {
  background: transparent;
  border-radius: 0;
  border-top: 1px solid var(--line-strong);
  padding: 24px 0 0;
}

/* Numérotation des catégories : serif italique or discret
   (pattern numérotation sémantique validée) */
.rep-cathead__num {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
}

/* Libellés de définitions : kicker marine (fini le brun pré-16A) */
.rep-details dt { color: var(--accent); }
