/* =========================================================
   SAIYASART — Le Grand Livre de la Magie Sacrée de Thaïlande
   Feuille de style principale
   ========================================================= */

:root {
  --noir: #0d0805;
  --noir-2: #160e08;
  --brun: #241509;
  --bordeaux: #4a0f12;
  --or: #d9a441;
  --or-clair: #f3cf7a;
  --or-pale: #f8e6b8;
  --creme: #efe4cf;
  --texte: #e2d6bf;
  --texte-doux: #b9a98d;
  --ligne: rgba(217, 164, 65, .35);
  --rayon: 6px;
  --ombre: 0 18px 50px rgba(0, 0, 0, .55);
  --largeur: 1180px;
  --titre: "Cinzel", "Trajan Pro", Georgia, serif;
  --corps: "Lora", Georgia, "Times New Roman", serif;
}

/* Polices hébergées sur le site (aucun appel à Google) — licence SIL Open Font License */
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cinzel-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cinzel-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/cinzel-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lora-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/lora-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/lora-latin-500-normal.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--noir);
  background-image:
    radial-gradient(ellipse at top, rgba(74, 15, 18, .35), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(36, 21, 9, .6), transparent 60%);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 1.075rem;
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--or-clair); text-decoration: none; transition: color .2s; }
a:hover { color: var(--or-pale); }
h1, h2, h3, h4 { font-family: var(--titre); color: var(--or); line-height: 1.2; letter-spacing: .04em; margin: 0 0 .6em; font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); text-align: center; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
.conteneur { width: min(var(--largeur), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--sombre { background: rgba(0, 0, 0, .35); border-block: 1px solid rgba(217, 164, 65, .12); }
.surtitre { display: block; text-align: center; font-family: var(--titre); font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--texte-doux); margin-bottom: .8rem; }
.intro { max-width: 760px; margin: 0 auto 3rem; text-align: center; color: var(--texte-doux); font-size: 1.12rem; }

/* Ornement lotus entre deux filets dorés */
.ornement { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 1.2rem auto 2rem; color: var(--or); }
.ornement::before, .ornement::after { content: ""; height: 1px; width: min(140px, 25vw); background: linear-gradient(90deg, transparent, var(--or)); }
.ornement::after { transform: scaleX(-1); }
.ornement svg { width: 26px; height: 26px; fill: currentColor; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: .95em 1.8em; border-radius: var(--rayon); font-family: var(--titre); font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; border: 1px solid transparent; text-align: center; }
.btn--or { background: linear-gradient(180deg, var(--or-clair), var(--or) 60%, #b07d27); color: #1b1006; box-shadow: 0 6px 24px rgba(217, 164, 65, .35); }
.btn--or:hover { color: #1b1006; transform: translateY(-2px); box-shadow: 0 10px 32px rgba(217, 164, 65, .5); }
.btn--contour { border-color: var(--or); color: var(--or-clair); background: rgba(0, 0, 0, .3); }
.btn--contour:hover { background: rgba(217, 164, 65, .12); color: var(--or-pale); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- En-tête ---------- */
.entete { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.entete.est-defile { background: rgba(13, 8, 5, .94); box-shadow: 0 1px 0 var(--ligne); backdrop-filter: blur(6px); }
.entete__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: var(--titre); font-size: 1.45rem; letter-spacing: .14em; color: var(--or); font-weight: 700; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a { font-family: var(--titre); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--texte); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--or-clair); }
.nav .btn { padding: .6em 1.1em; font-size: .78rem; }
.burger { display: none; background: none; border: 0; color: var(--or); width: 44px; height: 44px; cursor: pointer; }
.burger svg { width: 28px; height: 28px; }

@media (max-width: 1080px) {
  .burger { display: block; }
  .nav { position: fixed; inset: 72px 0 auto 0; background: rgba(13, 8, 5, .98); border-bottom: 1px solid var(--ligne); max-height: 0; overflow: hidden; transition: max-height .35s ease; }
  .nav.est-ouvert { max-height: 480px; }
  .nav ul { flex-direction: column; padding: 18px 0 26px; gap: 18px; }
}

/* ---------- Héros ---------- */
.heros { min-height: 100vh; display: flex; align-items: center; padding: 110px 0 70px; position: relative; overflow: hidden; }
.heros::before { content: ""; position: absolute; inset: 0; background: url("../img/wai-kroo-offrandes.jpg") center/cover no-repeat; opacity: .14; filter: blur(2px) saturate(1.1); }
.heros::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, rgba(217, 164, 65, .18), transparent 55%), linear-gradient(180deg, rgba(13, 8, 5, .2), var(--noir)); }
.heros__grille { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(260px, 430px) 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.heros__livre { perspective: 1400px; }
.heros__livre img { border-radius: 3px 8px 8px 3px; box-shadow: -8px 0 0 #2a1709, -9px 0 0 rgba(217,164,65,.35), var(--ombre), 0 0 80px rgba(217, 164, 65, .18); transform: rotateY(-12deg) rotateX(2deg); transition: transform .6s ease; }
.heros__livre:hover img { transform: rotateY(-3deg); }
.heros h1 { margin: 0 0 1.4rem; }
.heros__titre { display: block; font-size: clamp(2.8rem, 7vw, 5.4rem); margin-bottom: .1em; letter-spacing: .08em; background: linear-gradient(180deg, var(--or-pale), var(--or) 55%, #a8731f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.heros__sous { display: block; font-family: var(--titre); font-size: clamp(1.05rem, 2.2vw, 1.5rem); color: var(--creme); letter-spacing: .08em; margin-bottom: 1.4rem; font-weight: 500; }
.heros h1 .heros__sous { margin-bottom: 0; }
.heros__accroche { font-size: 1.15rem; color: var(--texte); max-width: 600px; }
.heros__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 1.6rem 0 2rem; color: var(--texte-doux); font-size: .95rem; }
.heros__meta span::before { content: "◆"; color: var(--or); margin-right: .5em; font-size: .7em; vertical-align: middle; }
.prix { font-family: var(--titre); color: var(--or-clair); font-size: 1.1rem; margin-top: 1rem; }
@media (max-width: 820px) {
  .heros__grille { grid-template-columns: 1fr; text-align: center; }
  .heros__livre { max-width: 300px; margin: 0 auto; }
  .heros__livre img { transform: none; }
  .heros__accroche { margin-inline: auto; }
  .heros__meta, .btns { justify-content: center; }
}

/* ---------- Chiffres ---------- */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ligne); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; }
.chiffre { background: var(--noir-2); padding: 28px 16px; text-align: center; }
.chiffre strong { display: block; font-family: var(--titre); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--or); line-height: 1.1; }
.chiffre span { color: var(--texte-doux); font-size: .92rem; }
@media (max-width: 700px) { .chiffres { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Deux colonnes ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.duo--inverse > :first-child { order: 2; }
.duo img { border-radius: var(--rayon); box-shadow: var(--ombre); border: 1px solid var(--ligne); }
.duo h2 { text-align: left; }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } .duo--inverse > :first-child { order: 0; } .duo h2 { text-align: center; } }

/* ---------- Sommaire ---------- */
.sommaire { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.sommaire li { background: linear-gradient(180deg, rgba(217,164,65,.07), rgba(217,164,65,.02)); border: 1px solid rgba(217, 164, 65, .2); border-radius: var(--rayon); padding: 22px 22px 20px 56px; position: relative; }
.sommaire li::before { content: attr(data-n); position: absolute; left: 18px; top: 20px; font-family: var(--titre); color: var(--or); font-size: 1.15rem; }
.sommaire strong { display: block; color: var(--creme); font-family: var(--titre); font-weight: 600; letter-spacing: .03em; margin-bottom: .3em; font-size: 1.02rem; }
.sommaire span { color: var(--texte-doux); font-size: .95rem; line-height: 1.6; display: block; }

/* ---------- Extraits ---------- */
.extraits { display: grid; gap: clamp(48px, 7vw, 90px); }
.extrait { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.extrait:nth-child(even) > figure { order: 2; }
.extrait figure { margin: 0; position: relative; }
.extrait figure img { border-radius: var(--rayon); box-shadow: var(--ombre); border: 1px solid var(--ligne); cursor: zoom-in; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.extrait figure.portrait img { aspect-ratio: 3 / 4; max-height: 560px; }
.extrait figcaption { font-size: .85rem; color: var(--texte-doux); margin-top: .6rem; font-style: italic; text-align: center; }
.extrait__chap { font-family: var(--titre); font-size: .78rem; letter-spacing: .25em; text-transform: uppercase; color: var(--texte-doux); }
.extrait h3 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); margin: .3em 0 .7em; }
.extrait__texte { margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--or); color: var(--creme); font-size: 1.06rem; }
.extrait__texte p:first-child::first-letter { font-family: var(--titre); float: left; font-size: 3.3em; line-height: .85; padding: .06em .12em 0 0; color: var(--or); }
@media (max-width: 820px) { .extrait { grid-template-columns: 1fr; } .extrait:nth-child(even) > figure { order: 0; } }

/* ---------- Galerie ---------- */
.galerie { columns: 4 240px; column-gap: 14px; }
.galerie a { display: block; margin-bottom: 14px; break-inside: avoid; border-radius: var(--rayon); overflow: hidden; border: 1px solid rgba(217,164,65,.2); position: relative; }
.galerie img { transition: transform .5s ease, filter .5s; width: 100%; }
.galerie a:hover img { transform: scale(1.05); filter: brightness(1.08); }
.galerie a span { position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px; font-size: .82rem; color: var(--creme); background: linear-gradient(transparent, rgba(0,0,0,.85)); opacity: 0; transition: opacity .3s; }
.galerie a:hover span, .galerie a:focus span { opacity: 1; }

/* ---------- Cartes ---------- */
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.carte { background: var(--noir-2); border: 1px solid rgba(217,164,65,.22); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s; }
.carte:hover { transform: translateY(-4px); border-color: var(--or); }
.carte img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.carte__corps { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.carte__corps p { color: var(--texte-doux); font-size: .97rem; flex: 1; }
.carte__lien { font-family: var(--titre); font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; }

/* ---------- Auteur ---------- */
.auteur { max-width: 820px; margin: 0 auto; text-align: center; }
.auteur__sceau { width: 92px; height: 92px; margin: 0 auto 1.4rem; border-radius: 50%; border: 1px solid var(--or); display: grid; place-items: center; color: var(--or); background: radial-gradient(circle, rgba(217,164,65,.15), transparent 70%); }
.auteur__sceau svg { width: 46px; height: 46px; fill: currentColor; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid rgba(217,164,65,.2); padding: 6px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-family: var(--titre); color: var(--creme); font-size: 1.05rem; letter-spacing: .03em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 10px; color: var(--or); font-size: 1.6rem; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--texte-doux); padding-bottom: 8px; }

/* ---------- Appel final ---------- */
.appel { text-align: center; position: relative; overflow: hidden; }
.appel::before { content: ""; position: absolute; inset: 0; background: url("../img/sukhothai-patrimoine.jpg") center/cover; opacity: .22; }
.appel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--noir), rgba(13,8,5,.55) 50%, var(--noir)); }
.appel > * { position: relative; z-index: 1; }
.appel .btns { justify-content: center; margin-top: 2rem; }

/* ---------- Page intérieure ---------- */
.page-titre { padding: 150px 0 60px; text-align: center; position: relative; overflow: hidden; }
.page-titre::before { content: ""; position: absolute; inset: 0; background: center/cover no-repeat; opacity: .18; }
.page-titre--benja::before { background-image: url("../img/benjapakee.jpg"); }
.page-titre--autel::before { background-image: url("../img/autel-amulettes-maison.jpg"); }
.page-titre::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,8,5,.3), var(--noir)); }
.page-titre > * { position: relative; z-index: 1; }
.page-titre h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { text-align: left; font-size: clamp(1.45rem, 3vw, 2rem); margin-top: 2.4em; }
.prose h3 { margin-top: 1.8em; color: var(--or-clair); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--or); }
.prose figure { margin: 2.2rem 0; }
.prose figure img { border-radius: var(--rayon); border: 1px solid var(--ligne); box-shadow: var(--ombre); }
.prose figcaption { font-size: .88rem; color: var(--texte-doux); font-style: italic; text-align: center; margin-top: .6rem; }
.encadre { border: 1px solid var(--ligne); border-left: 3px solid var(--or); background: rgba(217,164,65,.06); padding: 20px 24px; border-radius: var(--rayon); margin: 2rem 0; }
.encadre p:last-child { margin: 0; }
.table-scroll { overflow-x: auto; margin: 1.6rem 0; border: 1px solid var(--ligne); border-radius: var(--rayon); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(217,164,65,.15); vertical-align: top; }
th { font-family: var(--titre); color: var(--or); font-weight: 600; letter-spacing: .05em; background: rgba(217,164,65,.08); font-size: .88rem; }
tr:last-child td { border-bottom: 0; }

/* Glossaire */
.glossaire-filtre { width: 100%; padding: 14px 18px; background: var(--noir-2); border: 1px solid var(--ligne); border-radius: var(--rayon); color: var(--creme); font: inherit; margin-bottom: 1.5rem; }
.glossaire-filtre:focus { outline: none; border-color: var(--or); }
.glossaire { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 32px; margin: 0; }
.glossaire div { padding: 14px 0; border-bottom: 1px solid rgba(217,164,65,.14); }
.glossaire dt { font-family: var(--titre); color: var(--or-clair); font-weight: 600; letter-spacing: .03em; }
.glossaire dt em { font-family: var(--corps); color: var(--texte-doux); font-size: .85em; font-weight: 400; }
.glossaire dd { margin: .2em 0 0; color: var(--texte-doux); font-size: .97rem; line-height: 1.6; }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--ligne); padding: 56px 0 30px; background: #080503; font-size: .95rem; }
.pied__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px 40px; }
.pied h4 { font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: .5em; }
.pied a { color: var(--texte-doux); }
.pied a:hover { color: var(--or-clair); }
.pied__bas { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(217,164,65,.12); color: #7d6f5a; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 760px) { .pied__grille { grid-template-columns: 1fr; } }

/* ---------- Visionneuse ---------- */
.visionneuse { position: fixed; inset: 0; z-index: 100; background: rgba(5, 3, 2, .95); display: none; align-items: center; justify-content: center; padding: 20px; flex-direction: column; }
.visionneuse.est-ouverte { display: flex; }
.visionneuse img { max-height: 84vh; max-width: 94vw; border: 1px solid var(--ligne); border-radius: 4px; box-shadow: var(--ombre); }
.visionneuse p { color: var(--texte-doux); margin-top: 14px; text-align: center; font-style: italic; }
.visionneuse button { position: absolute; background: rgba(0,0,0,.5); border: 1px solid var(--ligne); color: var(--or); width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center; }
.visionneuse .v-fermer { top: 16px; right: 16px; }
.visionneuse .v-prec { left: 12px; top: 50%; transform: translateY(-50%); }
.visionneuse .v-suiv { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Apparition au défilement ---------- */
.revele { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.revele.est-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .revele { opacity: 1; transform: none; transition: none; }
  .heros__livre img { transform: none; }
}

/* Barre d'achat mobile */
.barre-achat { position: fixed; inset: auto 0 0 0; z-index: 40; padding: 10px 16px; background: rgba(13,8,5,.96); border-top: 1px solid var(--ligne); display: none; }
.barre-achat .btn { width: 100%; }
@media (max-width: 700px) { .barre-achat.est-visible { display: block; } body { padding-bottom: 70px; } }

:focus-visible { outline: 2px solid var(--or-clair); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sélecteur de langue */
.nav a.langue { border: 1px solid var(--ligne); border-radius: 4px; padding: .3em .6em; font-size: .75rem; }
.nav a.langue:hover { border-color: var(--or); }

/* ---------- Formulaire de contact ---------- */
.contact-grille { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-grille aside img { border-radius: var(--rayon); border: 1px solid var(--ligne); box-shadow: var(--ombre); margin-bottom: 1.6rem; }
.contact-grille aside p { color: var(--texte-doux); }
@media (max-width: 820px) { .contact-grille { grid-template-columns: 1fr; } }
.formulaire { background: var(--noir-2); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: clamp(22px, 4vw, 40px); }
.formulaire .ligne2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .formulaire .ligne2 { grid-template-columns: 1fr; } }
.formulaire label { display: block; font-family: var(--titre); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--or); margin-bottom: .4em; }
.formulaire .champ { margin-bottom: 18px; }
.formulaire input, .formulaire textarea, .formulaire select { width: 100%; padding: 13px 15px; background: rgba(0,0,0,.35); border: 1px solid rgba(217,164,65,.3); border-radius: var(--rayon); color: var(--creme); font: inherit; font-size: 1rem; }
.formulaire textarea { min-height: 170px; resize: vertical; line-height: 1.6; }
.formulaire input:focus, .formulaire textarea:focus, .formulaire select:focus { outline: none; border-color: var(--or); box-shadow: 0 0 0 3px rgba(217,164,65,.15); }
.formulaire select option { background: var(--noir-2); }
.formulaire .note { font-size: .85rem; color: var(--texte-doux); margin: 4px 0 20px; }
.formulaire .btn { width: 100%; border: 0; }
.piege { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.message-etat { padding: 16px 20px; border-radius: var(--rayon); margin-bottom: 22px; display: none; }
.message-etat.est-visible { display: block; }
.message-etat--ok { background: rgba(92, 160, 90, .15); border: 1px solid rgba(120, 190, 110, .5); color: #cfe8c8; }
.message-etat--erreur { background: rgba(170, 50, 50, .15); border: 1px solid rgba(210, 90, 90, .5); color: #f0c9c9; }

/* ---------- Pages de contenu (fiches, glossaire) ---------- */
.page-titre--somdej::before { background-image: url("../img/somdej-piece-etalon.jpg"); }
.page-titre--nangkwak::before { background-image: url("../img/autel-commerce-nang-gwak.jpg"); }
.page-titre--gumarn::before { background-image: url("../img/gumarn-tong-autel.jpg"); }
.page-titre--glossaire::before { background-image: url("../img/cosmologie-mont-meru.jpg"); background-position: center 30%; }
.page-titre--familles::before { background-image: url("../img/familles-amulettes.jpg"); }
.h1-alt { display: block; font-size: .5em; color: var(--texte-doux); letter-spacing: .1em; margin-top: .3em; }
.fil-ariane { margin-bottom: 1.2rem; font-size: .85rem; }
.fil-ariane ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; color: var(--texte-doux); }
.fil-ariane li + li::before { content: "›"; margin: 0 .55em; color: var(--or); }
.fil-ariane a { color: var(--texte-doux); }
.fil-ariane a:hover { color: var(--or-clair); }
.citation { margin: 2rem 0; padding: 1.4rem 1.6rem; border-left: 3px solid var(--or); background: rgba(217,164,65,.06); border-radius: 0 var(--rayon) var(--rayon) 0; }
.citation p { font-size: 1.18rem; font-style: italic; color: var(--creme); margin-bottom: .5rem; }
.citation cite { font-style: normal; font-size: .85rem; color: var(--texte-doux); letter-spacing: .04em; }
.citation cite::before { content: "— "; }
.familles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 1rem 0 2rem; }
.familles > div { background: var(--noir-2); border: 1px solid rgba(217,164,65,.2); border-radius: var(--rayon); padding: 16px 18px; }
.familles dt { font-family: var(--titre); color: var(--or-clair); font-weight: 600; letter-spacing: .03em; margin-bottom: .3em; }
.familles dt a { color: var(--or-clair); border-bottom: 1px solid var(--ligne); }
.familles dt a::after { content: " →"; }
.familles dd { margin: 0; color: var(--texte-doux); font-size: .95rem; line-height: 1.6; }
.encadre--livre { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; margin-top: 3.5rem; }
.encadre--livre img { border-radius: 3px; box-shadow: var(--ombre); }
.encadre__titre { font-family: var(--titre); color: var(--or); font-size: 1.2rem; margin-bottom: .5rem !important; }
.encadre--livre .btns { margin-top: 1rem; }
@media (max-width: 560px) { .encadre--livre { grid-template-columns: 1fr; text-align: center; } .encadre--livre img { width: 120px; margin: 0 auto; } .encadre--livre .btns { justify-content: center; } }
.prose .faq { max-width: none; }
.g-index { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 1rem; }
.g-index a { display: inline-grid; place-items: center; min-width: 34px; height: 34px; border: 1px solid var(--ligne); border-radius: 4px; font-family: var(--titre); font-size: .85rem; }
.g-index a:hover { border-color: var(--or); }
.prose h2.g-lettre { font-size: 1.6rem; margin: 1.6em 0 .2em; padding-bottom: .2em; border-bottom: 1px solid var(--ligne); scroll-margin-top: 90px; }
.g-chap { color: #8c7d66; font-size: .9em; }
.g-voir { font-size: .88em; white-space: nowrap; }
.prose [id] { scroll-margin-top: 90px; }
.page-titre--culture::before { background-image: url("../img/sukhothai-patrimoine.jpg"); }
.page-titre--sakyant::before { background-image: url("../img/sak-yant-maitre.jpg"); }
.page-titre--esprits::before { background-image: url("../img/maison-des-esprits.jpg"); background-position: center 40%; }
.page-titre--temples::before { background-image: url("../img/sukhothai-patrimoine.jpg"); background-position: center 70%; }
.encadre--teaser { border-left-color: var(--or-clair); }
.encadre--teaser ul { margin: .4rem 0 0; }
.familles dt em { font-family: var(--corps); font-weight: 400; color: var(--texte-doux); font-size: .85em; letter-spacing: 0; }
.prose ol li::marker { color: var(--or); font-family: var(--titre); }
.prose .cartes { margin: 1.5rem 0 1rem; }
.prose .carte h3 { margin-top: 0; }
.auteur__photo { width: 190px; height: 190px; border-radius: 50%; object-fit: cover; object-position: center 30%; margin: 0 auto 1.6rem; border: 2px solid var(--or); box-shadow: 0 0 0 6px rgba(217,164,65,.12), var(--ombre); }
.auteur--duo { max-width: 1040px; display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; text-align: left; }
.auteur--duo .surtitre, .auteur--duo h2 { text-align: left; }
.auteur__portrait { margin: 0; }
.auteur__portrait img { border-radius: var(--rayon); border: 1px solid var(--ligne); box-shadow: var(--ombre), 0 0 60px rgba(217,164,65,.12); cursor: zoom-in; }
@media (max-width: 760px) { .auteur--duo { grid-template-columns: 1fr; text-align: center; } .auteur--duo .surtitre, .auteur--duo h2 { text-align: center; } .auteur__portrait { max-width: 300px; margin: 0 auto; } }
