/* Dossier Église & Tradition : feuille de style commune */

html, body { margin: 0; padding: 0; background: #f6f1e6; }
body { font-family: 'EB Garamond', Georgia, serif; color: #2b2118; }
a { color: #8c1c13; text-decoration-color: rgba(140,28,19,.35); }
a:hover { color: #5e120c; text-decoration-color: #5e120c; }

/* ---------- En-tête & navigation ---------- */
.site-header { border-bottom: 1px solid #d8cdb4; background: #f6f1e6; }
.site-header .inner {
  max-width: 1180px; margin: 0 auto; padding: 26px 32px 20px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 24px; justify-content: space-between;
}
.kicker { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: #8c1c13; }
.site-header h1 { margin: 6px 0 0; font-size: 34px; font-weight: 600; letter-spacing: .01em; }
.nav { display: flex; gap: 22px; font-size: 16px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: #6b5d49; }
.nav a:hover { color: #2b2118; }
.nav a.active { color: #2b2118; border-bottom: 2px solid #8c1c13; padding-bottom: 2px; }

/* ---------- Mise en page ---------- */
.main { max-width: 1180px; margin: 0 auto; padding: 34px 32px 70px; }
.main.narrow { max-width: 1020px; }
.main.deck { max-width: 900px; padding-top: 30px; }
.lede { max-width: 70ch; font-size: 18px; line-height: 1.55; margin: 0 0 8px; color: #4a3f31; }

.card { background: #fffdf6; border: 1px solid #d8cdb4; }
.panel { background: #efe8d6; border: 1px solid #d8cdb4; padding: 24px 28px; }
.muted { color: #8a7a5f; }
.smallcaps { font-variant: small-caps; letter-spacing: .06em; }

.section-title {
  font-size: 28px; font-weight: 600; margin: 0 0 4px;
  border-bottom: 2px solid #8c1c13; display: inline-block; padding-bottom: 4px;
}
.section-title.gold { border-bottom-color: #b08d3e; }

/* ---------- Arbre (page Le Concile) ---------- */
.tree details { margin-bottom: 10px; }
.tree summary { list-style: none; cursor: pointer; }
.tree summary::-webkit-details-marker { display: none; }
.tree .row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 10px 14px; border-left: 4px solid #8c1c13; background: #fffdf6;
}
.tree .chev { font-size: 14px; width: 14px; color: #8a7a5f; }
.tree details[open] > summary .chev .closed { display: none; }
.tree details:not([open]) > summary .chev .opened { display: none; }
.tree .t { font-size: 20px; font-weight: 600; }
.tree .d { margin-left: auto; font-size: 14px; color: #8a7a5f; white-space: nowrap; }
.tree .kids { margin: 2px 0 6px 20px; border-left: 1px solid #d8cdb4; padding-left: 0; }
.tree .kids details { margin-bottom: 0; }
.tree .kids .row { border-left: none; background: transparent; padding: 7px 12px 7px 18px; }
.tree .kids .t { font-size: 17px; font-weight: 500; }
.tree .kids .chev { font-size: 12px; width: 12px; }
.tree .kids .kids { margin-left: 34px; border-left: 1px solid #e2d9c3; }
.tree .kids .kids .row { padding: 5px 12px 5px 16px; }
.tree .kids .kids .t { font-size: 15.5px; font-weight: 400; }
.tree .desc {
  background: #fffdf6; border: 1px solid #e6dcc4; margin: 4px 0 10px 26px;
  padding: 12px 18px; font-size: 16px; line-height: 1.6;
}
.tree .desc p { margin: 0 0 10px; }
.tree .desc p:last-child { margin-bottom: 0; }
.tree .desc .src { font-size: 15px; margin-top: 8px; }

/* ---------- Frise chronologique ---------- */
.timeline { display: grid; grid-template-columns: 110px 1fr; column-gap: 26px; }
.timeline .year {
  text-align: right; font-size: 19px; font-weight: 600; color: #8c1c13;
  padding: 14px 22px 14px 0; border-right: 2px solid #d8cdb4; position: relative;
}
.timeline .year::after {
  content: ""; position: absolute; right: -6px; top: 22px; width: 10px; height: 10px;
  border-radius: 50%; background: #8c1c13; border: 2px solid #f6f1e6;
}
.timeline .event { padding: 14px 0 18px; border-bottom: 1px solid #ece3cd; }
.timeline .event .title { font-size: 18.5px; font-weight: 600; }
.timeline .event .who { font-weight: 400; color: #8a7a5f; font-size: 15px; }
.timeline .event .txt { font-size: 16px; line-height: 1.55; color: #4a3f31; margin-top: 3px; }
.timeline .event .src { font-size: 15px; margin-top: 5px; }

/* ---------- Disputatio ---------- */
.duel-heads { display: flex; gap: 18px; margin: 34px 0 6px; }
.duel-heads > div {
  flex: 1; text-align: center; padding: 10px; color: #f6f1e6;
  font-size: 15px; letter-spacing: .18em; text-transform: uppercase;
}
.duel-heads .pro { background: #3f5a73; }
.duel-heads .con { background: #8c1c13; }
.duel { display: flex; gap: 18px; align-items: stretch; }
.duel > div { flex: 1; background: #fffdf6; border: 1px solid #d8cdb4; padding: 20px 22px; }
.duel > .pro { border-top: 3px solid #3f5a73; }
.duel > .con { border-top: 3px solid #8c1c13; }
.arg { margin-bottom: 14px; }
.arg .txt { font-size: 16.5px; line-height: 1.55; }
.arg .src { font-size: 14.5px; color: #8a7a5f; margin-top: 3px; font-style: italic; }
.arg .src a { font-style: normal; }
.nexus {
  margin-top: 12px; background: #efe8d6; border-left: 3px solid #b08d3e;
  padding: 12px 18px; font-size: 16px; line-height: 1.55; max-width: 100ch;
}
.nexus .lead { font-variant: small-caps; letter-spacing: .06em; color: #7a5230; }
.q-title { font-size: 25px; font-weight: 600; margin: 0 0 4px; }
.q-title .num { color: #8a7a5f; }
.q-sub { margin: 0 0 14px; font-size: 16px; color: #6b5d49; max-width: 80ch; }

/* ---------- Grilles de cartes ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid2 .card { padding: 18px 20px; }
.grid2 .card .head { font-variant: small-caps; letter-spacing: .06em; font-size: 17px; color: #7a5230; }
.grid2 .card p { font-size: 16px; line-height: 1.55; margin: 6px 0 0; }
.callout { margin-top: 16px; background: #efe8d6; border-left: 3px solid #b08d3e; padding: 14px 18px; max-width: 100ch; }
.callout .head { font-variant: small-caps; letter-spacing: .06em; font-size: 16px; }
.callout p { font-size: 16px; line-height: 1.55; margin: 6px 0 0; }
.srcline { margin-top: 14px; font-size: 15.5px; display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Flashcards ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.filters button {
  font-family: inherit; font-size: 15px; cursor: pointer; padding: 6px 14px;
  border: 1px solid #d8cdb4; background: #fffdf6; color: #6b5d49;
}
.filters button.active { border-color: #8c1c13; background: #8c1c13; color: #f6f1e6; }
.deck-status { text-align: center; font-size: 15px; color: #8a7a5f; margin-bottom: 14px; }
.flashcard {
  cursor: pointer; min-height: 340px; background: #fffdf6; border: 1px solid #d8cdb4;
  border-top: 4px solid #8c1c13; box-shadow: 0 2px 0 #e6dcc4; padding: 34px 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.flashcard .card-kicker { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: #8c1c13; margin-bottom: 14px; }
.flashcard .card-text { font-size: 24px; line-height: 1.5; font-weight: 600; }
.flashcard.flipped .card-text { font-size: 19px; font-weight: 400; }
.flashcard .card-src { font-size: 15px; color: #8a7a5f; font-style: italic; margin-top: 18px; display: none; }
.flashcard.flipped .card-src { display: block; }
.flashcard .card-hint { font-size: 14px; color: #b3a689; margin-top: 26px; text-align: center; }
.deck-controls { display: flex; justify-content: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.deck-controls button {
  font-family: inherit; font-size: 16px; cursor: pointer; padding: 9px 22px;
  border: 1px solid #d8cdb4; background: #fffdf6; color: #2b2118;
}
.deck-controls button.primary { border-color: #8c1c13; background: #8c1c13; color: #f6f1e6; }
.deck-controls button.soft { background: #efe8d6; color: #6b5d49; }
.deck-help { text-align: center; font-size: 14.5px; color: #8a7a5f; margin-top: 16px; }

/* ---------- Voix (Situation 2026) ---------- */
.voice {
  background: #fffdf6; border: 1px solid #d8cdb4; padding: 18px 22px; margin-bottom: 14px;
  display: grid; grid-template-columns: 240px 1fr; gap: 20px;
}
.voice .name { font-size: 18px; font-weight: 600; }
.voice .role { font-size: 14.5px; color: #8a7a5f; line-height: 1.4; margin-top: 3px; }
.voice .link { font-size: 14.5px; margin-top: 8px; }
.voice .body { font-size: 16px; line-height: 1.55; }
.voice .body .label { font-variant: small-caps; letter-spacing: .05em; color: #7a5230; }
.voice .body > div + div { margin-top: 8px; }

/* ---------- Chrono compacte (Situation 2026) ---------- */
.chrono { display: grid; grid-template-columns: 130px 1fr; column-gap: 24px; font-size: 16.5px; line-height: 1.55; }
.chrono .when {
  text-align: right; font-weight: 600; color: #8c1c13; padding: 8px 20px 8px 0;
  border-right: 2px solid #d8cdb4;
}
.chrono .what { padding: 8px 0; border-bottom: 1px solid #ece3cd; }
.chrono .what.last { border-bottom: none; }

/* ---------- Réactivité ---------- */
@media (max-width: 900px) {
  .site-header h1 { font-size: 27px; }
  .main, .site-header .inner { padding-left: 18px; padding-right: 18px; }
  .grid2 { grid-template-columns: 1fr; }
  .duel, .duel-heads { flex-direction: column; }
  .voice { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 80px 1fr; column-gap: 16px; }
  .chrono { grid-template-columns: 90px 1fr; column-gap: 14px; }
  .flashcard { padding: 24px 20px; }
}
