/* Savoy — système de gabarits publics — 2026-09-23 */
body.savoy-template-reference,
body.savoy-template-status{background:#fbfaf7}
body.savoy-template-reference main,
body.savoy-template-status main{box-sizing:border-box;width:100%;margin:0 auto}
body.savoy-template-reference .editorial-breadcrumbs,
body.savoy-template-status .editorial-breadcrumbs{margin:0 0 22px;color:var(--muted);font:600 12px/1.4 var(--sans)}
body.savoy-template-reference .editorial-breadcrumbs a,
body.savoy-template-status .editorial-breadcrumbs a{color:var(--navy);text-decoration:none}
body.savoy-template-reference .editorial-breadcrumbs .breadcrumb-separator,
body.savoy-template-status .editorial-breadcrumbs .breadcrumb-separator{opacity:.42}
body.savoy-template-reference .site-footer,
body.savoy-template-status .site-footer{margin-top:0}
body.savoy-template-reference :is(a,button,input,select,summary):focus-visible,
body.savoy-template-status :is(a,button,input,select,summary):focus-visible{outline:2px solid var(--navy);outline-offset:3px}
/* Référence / connaissance */
body.savoy-template-reference .faith-page,
body.savoy-template-reference .scholarly-introduction,
body.savoy-template-reference .savoy-reference-page{max-width:1060px;padding:44px 28px 88px}
body.savoy-template-reference .faith-crumbs{display:none}
body.savoy-template-reference :is(.faith-hero,.intro-hero){max-width:860px;margin:0 0 34px}
body.savoy-template-reference :is(.faith-kicker,.intro-kicker,.dossier-kicker){color:#8a6b34;font-size:.74rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
body.savoy-template-reference :is(.faith-hero,.scholarly-introduction)>h1,
body.savoy-template-reference .faith-hero h1{margin:0;color:var(--navy);font:560 clamp(2.45rem,5vw,4rem)/1.05 Literata,Georgia,serif;letter-spacing:-.028em}
body.savoy-template-reference :is(.faith-lead,.scholarly-introduction>.lead){max-width:820px;color:#5f5a52;font:1.08rem/1.72 Literata,Georgia,serif}
body.savoy-template-reference :is(.faith-subnav,.intro-levels){display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 38px}
body.savoy-template-reference :is(.faith-subnav,.intro-levels) a{padding:8px 11px;border:1px solid #ded4c2;border-radius:999px;background:#fff;color:#173c56;text-decoration:none;font:650 .77rem/1.25 var(--sans)}
body.savoy-template-reference :is(.faith-subnav,.intro-levels) a:hover{border-color:#c8ad7b;background:#fbf7ef}
body.savoy-template-reference .faith-section{padding:34px 0;border-top:1px solid #e4ddd1}
body.savoy-template-reference .faith-section h2,
body.savoy-template-reference .scholarly-introduction h2{color:var(--navy);font-family:Literata,Georgia,serif;letter-spacing:-.018em}
body.savoy-template-reference :is(.faith-principle,.epistemic-note,.intro-source-note){padding:19px 21px;border:1px solid #ded2bd;border-left:3px solid #a88a56;border-radius:12px;background:#fbf8f1;color:#615b52}
body.savoy-template-reference :is(.faith-card,.faith-proof,.dossier-overview,.corpus-bridge,.authority-layer){border-color:#e0d6c4;border-radius:16px;background:#fff;box-shadow:0 7px 22px rgba(57,43,23,.035)}
body.savoy-template-reference .faith-card{padding:19px 20px;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
body.savoy-template-reference .faith-card:hover{transform:translateY(-2px);border-color:#c9b181;box-shadow:0 11px 26px rgba(57,43,23,.07)}
body.savoy-template-reference :is(.faith-card strong,.faith-proof h3){color:var(--navy);font-family:Literata,Georgia,serif}
body.savoy-template-reference :is(.faith-warning,.authority-definition){border-color:#d8c9ad;background:#faf6ee}
body.savoy-template-reference table{border-collapse:collapse}
body.savoy-template-reference :is(.faith-table th,.faith-table td){border-bottom-color:#e4ddd1}
/* Transparence / état */
body.savoy-template-status .transparency-page{max-width:1120px;padding:42px 28px 90px}
body.savoy-template-status .transparency-hero{max-width:850px;margin:0 0 28px}
body.savoy-template-status .transparency-hero:before{content:"Suivi éditorial";display:block;margin:0 0 9px;color:#8a6b34;font:800 .74rem/1.2 var(--sans);letter-spacing:.13em;text-transform:uppercase}
body.savoy-template-status .transparency-hero h1{margin:0;color:var(--navy);font:560 clamp(2.45rem,5vw,4rem)/1.05 Literata,Georgia,serif;letter-spacing:-.028em}
body.savoy-template-status .transparency-hero p{max-width:820px;color:#5f5a52;font:1.06rem/1.68 Literata,Georgia,serif}
body.savoy-template-status .transparency-actions{gap:8px;margin:18px 0 28px}
body.savoy-template-status .transparency-actions a{padding:8px 12px;border:1px solid #ded4c2;border-radius:999px;background:#fff;color:#173c56;text-decoration:none!important;font:650 .78rem/1.3 var(--sans)}
body.savoy-template-status .transparency-actions a:hover{border-color:#c8ad7b;background:#fbf7ef}
body.savoy-template-status .transparency-filters{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:12px;align-items:end;margin:24px 0 42px;padding:20px;border:1px solid #e1d7c7;border-radius:18px;background:#f8f5ef}
body.savoy-template-status .transparency-filters output{grid-column:1/-1;color:#6d6559}
body.savoy-template-status .transparency-filters :is(input,select,button){border-color:#d6cab7;border-radius:10px;background:#fff}
body.savoy-template-status .translation-section{margin:48px 0 0;padding-top:34px;border-top:1px solid #e4ddd1}
body.savoy-template-status .translation-section>h2{margin:0 0 16px;color:var(--navy);font:560 clamp(1.75rem,3vw,2.45rem)/1.12 Literata,Georgia,serif;letter-spacing:-.02em}
body.savoy-template-status .metric-grid{gap:12px;margin:18px 0}
body.savoy-template-status .metric-grid>div{padding:18px 19px;border:1px solid #e2d9ca;border-radius:16px;background:#fff;box-shadow:0 6px 20px rgba(57,43,23,.03)}
body.savoy-template-status .metric-grid strong{color:var(--navy);font:650 1.55rem/1.1 Literata,Georgia,serif}
body.savoy-template-status .metric-grid span{color:#6f675c;line-height:1.4}
body.savoy-template-status .paraphrase-coverage{border-left-color:#a88a56;border-radius:0 12px 12px 0;background:#fbf8f1}
body.savoy-template-status .corpus-group{margin:13px 0;border:1px solid #e1d7c7;border-radius:16px;background:#fff;overflow:hidden}
body.savoy-template-status .corpus-group>summary{padding:16px 18px;background:#fff}
body.savoy-template-status .corpus-group[open]>summary{background:#fbf8f1;border-bottom:1px solid #e5dccd}
body.savoy-template-status .corpus-group .book-grid{padding:16px}
body.savoy-template-status :is(.book-card,.chapter-card,.evidence-section){border-color:#e2d9ca;border-radius:16px;background:#fff;box-shadow:0 6px 18px rgba(57,43,23,.025)}
body.savoy-template-status .book-card h3,
body.savoy-template-status .chapter-card h2{color:var(--navy);font-family:Literata,Georgia,serif}
body.savoy-template-status .transparency-link{border-color:#d8ccb8;border-radius:999px;text-decoration:none!important}
body.savoy-template-status .editorial-state{border-radius:999px}
@media(max-width:820px){
  body.savoy-template-reference .faith-page,
  body.savoy-template-reference .scholarly-introduction,
  body.savoy-template-reference .savoy-reference-page,
  body.savoy-template-status .transparency-page{padding:34px 20px 70px}
  body.savoy-template-status .transparency-filters{grid-template-columns:1fr 1fr}
  body.savoy-template-status .transparency-filters label:first-child{grid-column:1/-1}
}
@media(max-width:620px){
  body.savoy-template-reference .faith-page,
  body.savoy-template-reference .scholarly-introduction,
  body.savoy-template-reference .savoy-reference-page,
  body.savoy-template-status .transparency-page{padding:28px 16px 58px}
  body.savoy-template-status .transparency-filters{grid-template-columns:1fr;padding:16px}
  body.savoy-template-status .transparency-filters label:first-child{grid-column:auto}
  body.savoy-template-status .metric-grid{grid-template-columns:1fr 1fr}
  body.savoy-template-reference :is(.faith-subnav,.intro-levels){gap:6px}
}
/* Outil / exploration */
body.savoy-template-tool{background:#fbfaf7}
body.savoy-template-tool :is(.search-page,.audio-page,.page-shell){box-sizing:border-box;width:100%;max-width:1120px;margin:0 auto;padding:40px 28px 84px}
body.savoy-template-tool :is(.search-page,.audio-page,.page-shell) h1{color:#173c56;font:560 clamp(2.35rem,4.7vw,3.9rem)/1.05 Literata,Georgia,serif;letter-spacing:-.027em}
body.savoy-template-tool :is(.search-kicker,.editions-kicker,.eyebrow){color:#8a6b34;font-size:.73rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
body.savoy-template-tool :is(.search-page>.lead,.audio-hero p,.hero>p:last-child){max-width:800px;color:#625b50;font:1.04rem/1.65 Literata,Georgia,serif}
body.savoy-template-tool :is(.search-page-card,.audio-tools,.search-card){margin:24px 0;padding:20px;border:1px solid #ded2bd;border-radius:20px;background:#f8f5ef;box-shadow:none}
body.savoy-template-tool :is(.search-page-form input,.search-page-form button,.audio-search,.audio-select,.search-form input,.search-form select,.search-form button){min-height:46px;border-color:#d7cbb8;border-radius:11px}
body.savoy-template-tool :is(.search-page-filters,.mode-tabs){gap:7px}
body.savoy-template-tool :is(.search-page-filters button,.mode-tabs button){border:1px solid #ded4c2;border-radius:999px;background:#fff;color:#173c56}
body.savoy-template-tool :is(.search-page-filters button.active,.mode-tabs button.active){border-color:#173c56;background:#173c56;color:#fff}
body.savoy-template-tool :is(.panel,.method-note,.audio-player,.audio-book){border-color:#e1d7c7;border-radius:16px;background:#fff;box-shadow:0 6px 20px rgba(57,43,23,.03)}
body.savoy-template-tool .panel h2,
body.savoy-template-tool .method-note h2{color:#173c56;font-family:Literata,Georgia,serif}
body.savoy-template-tool .summary-grid{gap:12px}
body.savoy-template-tool .summary-card{border-color:#e2d9ca;border-radius:16px;background:#fff}
body.savoy-template-tool .summary-card strong{color:#173c56;font-family:Literata,Georgia,serif}
body.savoy-template-tool .audio-stats{gap:10px}
body.savoy-template-tool .audio-stats>div{border:1px solid #e2d9ca;border-radius:16px;background:#fff}
body.savoy-template-tool .audio-book{overflow:hidden}
body.savoy-template-tool .audio-book>summary{padding:16px 18px}
body.savoy-template-tool .audio-book[open]>summary{background:#fbf8f1;border-bottom:1px solid #e5dccd}
body.savoy-template-tool .audio-book-title{color:#173c56;font-family:Literata,Georgia,serif}
body.savoy-template-tool .topbar{height:74px;padding:0 28px;border-bottom:1px solid #e0e3e5;background:rgba(251,250,247,.96);backdrop-filter:blur(12px)}
body.savoy-template-tool .topbar .brand{display:flex;align-items:center;letter-spacing:0}
body.savoy-template-tool .topbar .brand img{display:block;width:82px;height:auto}
body.savoy-template-tool .topbar nav a{color:#314553;font-size:.86rem;font-weight:650}
body.savoy-template-tool>footer{background:#f7f7f5;border-top-color:#dfe3e5;color:#6b7780}
@media(max-width:760px){
  body.savoy-template-tool :is(.search-page,.audio-page,.page-shell){padding:30px 16px 60px}
  body.savoy-template-tool :is(.search-page-card,.audio-tools,.search-card){padding:16px;border-radius:17px}
  body.savoy-template-tool .topbar{height:64px;padding:0 16px}
  body.savoy-template-tool .topbar nav{gap:14px}
  body.savoy-template-tool .topbar nav a{font-size:.78rem}
}
/* Référence simple : juridique, pages longues, dossiers sans hero dédié */
body.savoy-template-reference .savoy-reference-page>h1{max-width:900px;margin:0 0 16px;color:#173c56;font:560 clamp(2.35rem,4.8vw,3.8rem)/1.06 Literata,Georgia,serif;letter-spacing:-.027em}
body.savoy-template-reference .savoy-reference-page>.lead{max-width:840px;margin:0 0 34px;color:#5f5a52;font:1.08rem/1.72 Literata,Georgia,serif}
body.savoy-template-reference .savoy-reference-page>h2{max-width:880px;margin:44px 0 12px;padding-top:28px;border-top:1px solid #e4ddd1;color:#173c56;font:560 clamp(1.45rem,2.7vw,2.05rem)/1.18 Literata,Georgia,serif;letter-spacing:-.015em}
body.savoy-template-reference .savoy-reference-page>p,
body.savoy-template-reference .savoy-reference-page>ul,
body.savoy-template-reference .savoy-reference-page>ol{max-width:88ch;color:#393631;line-height:1.72}
body.savoy-template-reference .savoy-reference-page>.note{max-width:88ch;padding:18px 20px;border:1px solid #ded2bd;border-left:3px solid #a88a56;border-radius:12px;background:#fbf8f1;color:#615b52}
body.savoy-template-reference .savoy-reference-page code{padding:.08em .3em;border-radius:5px;background:#f1eee8;font-size:.9em}
