/* =========================================================
   Le Sanctuaire de Braise — feuille de style commune
   Polices hébergées localement (aucun appel à Google : RGPD)
   ========================================================= */
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/eb-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/eb-garamond-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/assets/fonts/spectral-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/assets/fonts/spectral-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/assets/fonts/spectral-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --abysse: #0b0908;
  --obsidienne: #161210;
  --obsidienne-2: #1f1916;
  --braise: #e05a1b;
  --braise-vive: #ff7a33;
  --or: #d4af37;
  --or-pale: #e9cf7a;
  --parchemin: #f4ece6;
  --parchemin-2: #b9aca1;
  --trait: rgba(212, 175, 55, .18);
  --trait-doux: rgba(244, 236, 230, .08);
  --f-titre: "EB Garamond", Garamond, Georgia, serif;
  --f-texte: "Spectral", Georgia, "Times New Roman", serif;
  --rayon: 14px;
  --max: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--abysse); color: var(--parchemin);
  font: 400 1.05rem/1.7 var(--f-texte); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--or-pale); text-underline-offset: 3px; }
a:hover { color: var(--braise-vive); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saut { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--or); color: var(--abysse); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.saut:focus { top: 12px; }

#braises { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.page { position: relative; z-index: 1; }
.conteneur { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* ---------- Typo ---------- */
h1, h2, h3 { font-family: var(--f-titre); font-weight: 500; line-height: 1.05; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h3 { font-size: 1.6rem; }
.surtitre { font: 600 .74rem/1 var(--f-texte); letter-spacing: .28em; text-transform: uppercase; color: var(--or); margin: 0 0 16px; display: inline-flex; align-items: center; gap: 12px; }
.surtitre::before, .surtitre::after { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--or)); }
.surtitre::after { transform: scaleX(-1); }
.chapeau { color: var(--parchemin-2); max-width: 40em; margin: 16px auto 0; }
.or { color: var(--or); }
.feu { background: linear-gradient(100deg, var(--or-pale), var(--braise-vive) 55%, var(--braise)); -webkit-background-clip: text; background-clip: text; color: transparent; }

section { padding-block: clamp(72px, 10vw, 120px); }
.entete-section { text-align: center; margin-bottom: 48px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px;
  padding: 12px 24px; border-radius: 999px; border: 1px solid var(--trait); background: rgba(22, 18, 16, .6);
  color: var(--parchemin); text-decoration: none; font-weight: 600; letter-spacing: .01em; text-align: center;
  transition: transform .2s, border-color .2s, box-shadow .3s, background .2s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--or); color: var(--parchemin); }
.btn-feu {
  background: linear-gradient(135deg, var(--braise) 0%, var(--braise-vive) 60%, var(--or) 130%);
  color: #1a0d05; border-color: transparent; box-shadow: 0 10px 30px -10px var(--braise), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-feu:hover { color: #1a0d05; box-shadow: 0 16px 44px -10px var(--braise), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-or { border-color: var(--or); color: var(--or-pale); }
.btn-plein { width: 100%; }
.btn small { font-weight: 400; opacity: .85; }
.fleche { transition: transform .2s; }
.btn:hover .fleche { transform: translateX(4px); }

/* ---------- En-tête ---------- */
.barre-haut { position: absolute; top: 0; left: 0; right: 0; z-index: 5; padding-block: 18px; }
.barre-haut .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marque { display: inline-flex; align-items: center; gap: 10px; color: var(--parchemin); text-decoration: none; font: 500 1.25rem/1 var(--f-titre); }
.marque svg { width: 28px; height: 28px; }
.nav-haut { display: flex; gap: 22px; font-size: .92rem; }
.nav-haut a { color: var(--parchemin-2); text-decoration: none; }
.nav-haut a:hover { color: var(--or-pale); }

/* ---------- Pied ---------- */
.pied { position: relative; z-index: 1; border-top: 1px solid var(--trait); background: linear-gradient(180deg, transparent, rgba(224, 90, 27, .05)); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); font-size: .92rem; color: var(--parchemin-2); }
.pied .conteneur { display: grid; gap: 22px; }
.mention-amazon { border: 1px solid var(--trait); border-radius: 10px; padding: 12px 16px; color: var(--parchemin); background: rgba(22,18,16,.7); }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pied nav a { color: var(--parchemin-2); }
.pied small { opacity: .75; }

/* ---------- Pages légales ---------- */
.legal { padding-top: 120px; }
.legal article { max-width: 44em; margin: 0 auto; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.7rem; margin: 2.2em 0 .5em; color: var(--or-pale); }
.legal p, .legal li { color: #e6ddd6; }
.legal .maj { color: var(--parchemin-2); font-size: .9rem; }
.a-completer { background: rgba(224, 90, 27, .15); border: 1px dashed var(--braise); border-radius: 4px; padding: 0 4px; }

@media (max-width: 760px) {
  .nav-haut { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
