/* ============================================================
   ASSUR TOI — Feuille de style
   Archétype « Rapport annuel institutionnel »
   Colonne étroite centrée (~820px), filets d'or, chiffres romains,
   titres à empattements, lettres ornées, labels en petites capitales.
   Palette : bleu nuit profond + laiton/or sur ivoire/crème.
   ============================================================ */

:root {
  --navy: #0f2a47;
  --navy-deep: #0a1d33;
  --ink: #2a3442;
  --muted: #66696d;
  --brass: #a07824;
  --brass-deep: #7d5c1c;
  --gold: #c9a43a;
  --gold-pale: #e6d7ad;
  --paper: #f6f1e6;
  --ivory: #efe8d8;
  --white: #fbf8f0;
  --rule: rgba(15, 42, 71, 0.16);
  --rule-soft: rgba(15, 42, 71, 0.08);
  --rule-gold: rgba(160, 120, 36, 0.45);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  --col: 820px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

svg { display: block; max-width: 100%; }

a { color: var(--navy); }

.container {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typographie ---------- */

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.18; }

.lead {
  font-family: var(--serif);
  font-size: 1.16rem;
  color: var(--muted);
}

/* Labels en petites capitales */
.kicker, .breadcrumb, .colophon-title, .form-field label, .pill, .stat-lbl, .cover-eyebrow, .cover-cta,
.btn, .masthead-sub, .masthead-nav a {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  color: var(--brass-deep);
}
.kicker::before {
  content: "";
  width: 30px; height: 1px;
  background: var(--gold);
}

/* Lettre ornée (premier paragraphe) */
.lede::first-letter {
  font-family: var(--serif);
  font-size: 4.5em;
  line-height: 0.72;
  float: left;
  padding: 0.06em 0.12em 0 0;
  color: var(--brass);
  font-weight: 600;
}

/* ---------- Filets & ornements ---------- */

.rule-gold {
  border: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}

/* ---------- Liens & boutons ---------- */

a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

.link-quiet {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 3px;
}
.link-quiet:hover { color: var(--brass-deep); border-bottom-color: var(--brass-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 15px 28px;
  border: 1px solid var(--brass);
  color: var(--navy);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--brass); color: var(--paper); border-color: var(--brass); }
.btn-gold { border-color: var(--brass); color: var(--brass-deep); }
.btn-navy { border-color: var(--navy); color: var(--navy); }
.btn-navy:hover { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.btn-ghost { border-color: var(--rule-gold); color: var(--muted); }

/* ============================================================
   Mât de tête (en-tête) — fine colonne, filets d'or
   ============================================================ */

.masthead {
  background: var(--paper);
  color: var(--navy);
  border-top: 3px double var(--brass);
  border-bottom: 1px solid var(--rule-gold);
}
.masthead-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.masthead-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--navy);
}
.seal-mark, .colophon-seal { flex: none; width: 44px; height: 44px; color: var(--brass); }
.masthead-wordmark { display: flex; flex-direction: column; line-height: 1.08; }
.masthead-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.42rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}
.masthead-sub { font-size: 0.6rem; letter-spacing: 0.22em; color: var(--brass-deep); margin-top: 5px; }

.masthead-nav { display: flex; gap: 24px; align-items: center; }
.masthead-nav a {
  font-size: 0.7rem;
  color: var(--navy);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.masthead-nav a:hover { color: var(--brass-deep); border-bottom-color: var(--brass); }
.masthead-nav a.active { color: var(--brass-deep); border-bottom-color: var(--brass); }

/* ---------- Sélecteur de langue (EN | FR) ---------- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.lang-switch a:hover { color: var(--brass-deep); border-bottom-color: var(--brass); }
.lang-switch a.active { color: var(--brass-deep); border-bottom-color: var(--brass); }
.lang-sep { color: var(--rule-gold); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--rule-gold);
  cursor: pointer;
}
.nav-toggle span { display: flex; flex-direction: column; gap: 5px; }
.nav-toggle i { display: block; width: 22px; height: 2px; background: var(--brass-deep); transition: all 0.2s ease; }
body.nav-open .nav-toggle i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle i:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Page de couverture (accueil)
   ============================================================ */

.cover {
  padding: 110px 24px 96px;
  text-align: center;
  border-bottom: 1px solid var(--rule-gold);
}
.cover-inner { max-width: var(--col); margin: 0 auto; }
.cover-seal { width: 150px; height: 150px; margin: 0 auto 30px; color: var(--brass); }
.cover-eyebrow { font-size: 0.72rem; color: var(--brass-deep); margin-bottom: 20px; }
.cover-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 6px;
}
.cover-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.22rem;
  color: var(--muted);
  margin-bottom: 34px;
}
.cover-statement {
  max-width: 560px;
  margin: 0 auto 34px;
  font-size: 1.2rem;
  line-height: 1.66;
  color: var(--ink);
  text-align: left;
}
.cover-cta { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: center; align-items: center; }
.cover-sep { color: var(--brass); }

/* ============================================================
   Chapitres (chiffres romains)
   ============================================================ */

.chapter { padding: 80px 24px; }
.chapter + .chapter { border-top: 1px solid var(--rule); }
.chapter-alt { background: var(--ivory); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.chapter-inner { max-width: var(--col); margin: 0 auto; }

.chapter-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.chapter-num {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 3.3rem;
  line-height: 1;
  color: var(--brass);
  margin-bottom: 18px;
}
.chapter-head::after {
  content: "";
  display: block;
  width: 44px; height: 1px;
  margin: 22px auto 0;
  background: var(--gold);
}
.chapter-title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 0 0 14px; }
.chapter-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 12px;
}
.chapter-sub { color: var(--muted); font-size: 1.08rem; text-align: left; max-width: 620px; margin: 0 auto; }
.tac { text-align: center; }

/* ---- Sommaires / entrées (sans cartes) ---- */

.entries { list-style: none; counter-reset: entry; }
.entry {
  position: relative;
  padding: 22px 0 22px 54px;
  border-top: 1px solid var(--rule);
}
.entries .entry:last-child { border-bottom: 1px solid var(--rule); }
.entry::before {
  content: counter(entry, decimal-leading-zero);
  counter-increment: entry;
  position: absolute;
  left: 0; top: 26px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--brass);
}
.entry h3 { font-size: 1.55rem; margin-bottom: 8px; }
.entry p { color: var(--muted); font-size: 1.02rem; margin-bottom: 10px; }
.entry .feature-link { margin-top: 2px; }

/* ---- Registre des chiffres clés ---- */

.ledger {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule-gold);
  border-bottom: 1px solid var(--rule-gold);
}
.ledger .stat { padding: 28px 10px; text-align: center; border-left: 1px solid var(--rule); }
.ledger .stat:first-child { border-left: none; }
.ledger dt { font-family: var(--serif); font-weight: 600; font-size: 2.5rem; line-height: 1; color: var(--navy); }
.ledger dd { margin: 12px 0 0; font-size: 0.66rem; letter-spacing: 0.14em; color: var(--muted); }

/* ---- Principes ---- */

.principles, .sectors { list-style: none; max-width: 680px; margin: 0 auto; }
.principles li, .sectors li {
  position: relative;
  padding: 20px 0 20px 48px;
  border-top: 1px solid var(--rule);
}
.principles li:last-child, .sectors li:last-child { border-bottom: 1px solid var(--rule); }
.principles li::before, .sectors li::before {
  content: "";
  position: absolute;
  left: 0; top: 31px;
  width: 26px; height: 1px;
  background: var(--brass);
}
.principles li strong { font-weight: 600; color: var(--navy); }
.principles li { font-size: 1.08rem; color: var(--ink); }
.sectors h3 { font-size: 1.4rem; margin-bottom: 6px; }
.sectors p { color: var(--muted); }

/* ---- Citation / vers ---- */

.verse {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  line-height: 1.42;
  color: var(--navy);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.verse::before { content: "\201C"; color: var(--brass); }
.verse::after { content: "\201D"; color: var(--brass); }
.cite {
  text-align: center;
  margin-top: 22px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
.closing { text-align: center; margin-top: 40px; }

.quote { text-align: center; padding: 70px 0; }
.quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.42;
  color: var(--navy);
  max-width: 720px;
  margin: 0 auto;
}
.quote blockquote::before { content: "\201C"; color: var(--brass); }
.quote blockquote::after { content: "\201D"; color: var(--brass); }

/* ============================================================
   Pages internes — titre de page (clair, centré)
   ============================================================ */

.page-hero {
  text-align: center;
  padding: 88px 24px 60px;
  border-bottom: 1px solid var(--rule-gold);
}
.page-hero .container { max-width: var(--col); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); margin: 16px 0 16px; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }
.page-hero .breadcrumb { letter-spacing: 0.12em; }
.breadcrumb { font-size: 0.72rem; color: var(--brass-deep); }
.breadcrumb a { color: var(--brass-deep); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Sections ---------- */

.section { padding: 76px 0; }
.section-alt {
  background: var(--ivory);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.section-head { max-width: 680px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 14px 0 16px; }
.section-head p { color: var(--muted); }

/* ---------- Grilles (aplaties : plus de cartes en relief) ---------- */

.grid { display: grid; gap: 8px 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 22px 0 18px;
  box-shadow: none;
  border-top: 1px solid var(--rule);
}
.card::before { content: none; }
.card:hover { box-shadow: none; transform: none; }
.card h3 { font-size: 1.35rem; margin: 0 0 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }

.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  color: var(--brass);
}
.card-icon svg { width: 24px; height: 24px; }

.feature-link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
}
.feature-link:hover { color: var(--brass-deep); border-bottom-color: var(--brass-deep); }

/* ---- Listes à tirets d'or ---- */

.plist { list-style: none; }
.plist li { position: relative; padding-left: 26px; margin-bottom: 13px; color: var(--ink); }
.plist li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 14px; height: 1px; background: var(--brass); }
.plist li strong { color: var(--navy); }

/* ---- Étiquettes (« pill ») ---- */

.pill {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--brass-deep);
  padding: 0 0 4px;
  border-bottom: 1px solid var(--brass);
}
.pill.gold { color: var(--brass-deep); }

/* ---- Sceaux (centrés, sans boîte) ---- */

.seal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 32px; }
.seal { text-align: center; background: none; border: none; border-radius: 0; padding: 20px 0; box-shadow: none; }
.seal svg { margin: 0 auto 14px; color: var(--brass); width: 32px; height: 32px; }
.seal h3 { font-size: 1.3rem; margin-bottom: 8px; }
.seal p { font-size: 0.94rem; color: var(--muted); }

/* ---- Encart / note ---- */

.callout {
  background: var(--ivory);
  border: 1px solid var(--rule-gold);
  border-left: 2px solid var(--brass);
  border-radius: 0;
  padding: 26px 28px;
}
.callout h3 { font-size: 1.3rem; margin-bottom: 12px; }
.callout p { color: var(--ink); }

/* ============================================================
   Tables & données
   ============================================================ */

.table-wrap { overflow-x: auto; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
thead th {
  text-align: left;
  padding: 13px 14px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  background: transparent;
  border-bottom: 2px solid var(--brass);
}
tbody td { padding: 13px 14px; border-bottom: 1px solid var(--rule); color: var(--ink); vertical-align: top; }
tbody tr:nth-child(even) { background: var(--ivory); }
tbody tr:last-child td { border-bottom: none; }

.meta-table { width: 100%; border-collapse: collapse; }
.meta-table td { padding: 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.meta-table td:first-child { color: var(--navy); font-weight: 600; width: 40%; }
.meta-table tr:last-child td { border-bottom: none; }

/* ============================================================
   Formulaires
   ============================================================ */

.form-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 36px 32px;
  box-shadow: none;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.72rem; color: var(--navy); letter-spacing: 0.12em; }
.form-field label .req { color: var(--brass-deep); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  padding: 11px 13px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(160, 120, 36, 0.15);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.84rem; color: var(--muted); }

.form-success {
  display: none;
  border: 1px solid rgba(46, 139, 87, 0.4);
  background: #eef5ee;
  color: #1e5c38;
  padding: 16px 18px;
  border-radius: 0;
  margin-bottom: 20px;
}
.form-success.visible { display: block; }

/* ============================================================
   Sommaire & corps juridique
   ============================================================ */

.toc {
  background: transparent;
  border: none;
  border-top: 1px solid var(--rule-gold);
  border-bottom: 1px solid var(--rule-gold);
  padding: 26px 0;
  font-size: 0.94rem;
}
.toc h4 { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: 14px; }
.toc ul { list-style: none; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--navy); text-decoration: none; }
.toc li::before { content: "\00A7\00A0"; color: var(--brass); }
.toc a:hover { color: var(--brass-deep); }

.legal-body { max-width: 820px; }
.legal-body h2 {
  font-size: 1.6rem;
  margin: 44px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-gold);
}
.legal-body h3 { font-size: 1.18rem; margin: 28px 0 12px; }
.legal-body p, .legal-body li { margin-bottom: 14px; }
.legal-body ul { padding-left: 22px; }
.legal-body .meta-table { margin: 24px 0; }
.legal-body .placeholder {
  font-style: italic;
  color: var(--brass-deep);
}

.placeholder { font-style: italic; color: var(--brass-deep); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* ============================================================
   Colophon (pied de page) — filets d'or, identité conservée
   ============================================================ */

.colophon {
  background: var(--paper);
  color: var(--ink);
  border-top: 3px double var(--brass);
  border-bottom: 3px double var(--brass);
}
.colophon-inner { max-width: var(--col); margin: 0 auto; padding: 56px 24px 44px; text-align: center; }
.colophon-seal { width: 40px; height: 40px; margin: 0 auto 18px; }
.colophon-identity { font-family: var(--serif); color: var(--navy); font-size: 1.02rem; line-height: 1.6; }
.colophon-identity em { font-style: italic; color: var(--brass-deep); }

.colophon-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  text-align: left;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.colophon-title { display: block; font-size: 0.66rem; letter-spacing: 0.2em; color: var(--brass-deep); margin-bottom: 12px; }
.colophon-cols ul { list-style: none; }
.colophon-cols a { color: var(--navy); text-decoration: none; font-size: 0.95rem; line-height: 1.9; }
.colophon-cols a:hover { color: var(--brass-deep); text-decoration: underline; }
.colophon-contact li { font-size: 0.92rem; color: var(--muted); margin-bottom: 10px; line-height: 1.5; }
.colophon-contact em { color: var(--brass-deep); }

.colophon-bar {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.colophon-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; margin-top: 14px; }
.colophon-links a {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.colophon-links a:hover { border-bottom-color: var(--brass); color: var(--brass-deep); }

/* ============================================================
   Bannière de consentement aux cookies
   ============================================================ */

.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: var(--paper);
  color: var(--ink);
  border-top: 2px solid var(--brass);
  box-shadow: 0 -12px 40px rgba(10, 29, 51, 0.16);
  padding: 24px 24px;
  display: none;
}
.cookie-banner.visible { display: block; }
.cookie-inner {
  max-width: var(--col);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}
.cookie-inner p { max-width: 600px; font-size: 0.93rem; color: var(--muted); }
.cookie-inner a { color: var(--brass-deep); }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-cookie { font-size: 0.68rem; padding: 12px 20px; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .two-col, .seal-grid { grid-template-columns: 1fr; }
  .ledger { grid-template-columns: repeat(2, 1fr); }
  .ledger .stat { border-left: 1px solid var(--rule); border-top: 1px solid var(--rule); }
  .ledger .stat:nth-child(odd) { border-left: none; }
  .ledger .stat:nth-child(-n+2) { border-top: none; }
  .colophon-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .masthead-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule-gold);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 100;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  body.nav-open .masthead-nav { max-height: 420px; }
  .masthead-nav a { padding: 13px 24px; border-bottom: 1px solid var(--rule); color: var(--navy); }
  .masthead-nav a.active { border-bottom-color: var(--rule); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .chapter { padding: 60px 24px; }
  .cover { padding: 76px 24px 64px; }
  .colophon-cols { grid-template-columns: 1fr; gap: 24px; }
  .toc ul { columns: 1; }
  .ledger { grid-template-columns: 1fr 1fr; }
  .cover-seal { width: 110px; height: 110px; }
}

/* Accessibilité : contraste et focus */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
