/* GÉNÉRÉ — ne pas éditer à la main | [DOC:robes-de-rendu-livre-ecran-web@V1.0#r1 · sha:6a305adc] | declinaison=HENRY-SACRETV | robe=ROBE-MES | domaine=www.sacre.tv | genere=2026-11-28T15:41:22Z */
@font-face {
  font-family: "HenryDidot";
  src: url("../fonts/henry-didot.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CormorantEditorial";
  src: url("../fonts/cormorant-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CormorantEditorial";
  src: url("../fonts/cormorant-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "CormorantEditorial";
  src: url("../fonts/cormorant-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CormorantEditorial";
  src: url("../fonts/cormorant-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CormorantEditorial";
  src: url("../fonts/cormorant-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HenryGrecPolytonic";
  src: url("../fonts/gentium-polytonic-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HenryGrecPolytonic";
  src: url("../fonts/gentium-polytonic-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "HenryGrecPolytonic";
  src: url("../fonts/gentium-polytonic-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HenryGrecPolytonic";
  src: url("../fonts/gentium-polytonic-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HenryHebreu";
  src: url("../fonts/hebreu-serif.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --robe-psi: 1.324717957244746;
  --robe-phi: 1.618033988749895;
  --robe-corps-m1: 0.7549rem;
  --robe-corps-0: 1.0000rem;
  --robe-corps-1: 1.3247rem;
  --robe-corps-2: 1.7549rem;
  --robe-corps-3: 2.3247rem;
  --robe-corps-4: 3.0796rem;
  --robe-espace-m2: 0.3820rem;
  --robe-espace-m1: 0.6180rem;
  --robe-espace-0: 1.0000rem;
  --robe-espace-1: 1.6180rem;
  --robe-espace-2: 2.6180rem;
  --robe-espace-3: 4.2361rem;
  --robe-mesure-min: 45ch;
  --robe-mesure-ideale: 64ch;
  --robe-mesure-max: 68ch;
  --robe-font-titrage: "HenryDidot", "HenryGrecPolytonic", "CormorantEditorial", Georgia, serif;
  --robe-font-corps: "CormorantEditorial", "HenryGrecPolytonic", "HenryHebreu", Georgia, serif;
  --robe-font-ui: "HenryGrecPolytonic", "CormorantEditorial", Georgia, serif;
  --robe-font-grec: "HenryGrecPolytonic", Georgia, serif;
  --robe-font-hebreu: "HenryHebreu", Georgia, serif;
  --robe-font-mono: "Latin Modern Mono", "Liberation Mono", ui-monospace, monospace;
  --robe-bg: #FBF7EF;
  --robe-bg-alt: #F2E7CE;
  --robe-surface: #FFFDF8;
  --robe-ink: #23190F;
  --robe-ink-muted: #4A3A28;
  --robe-accent: #7D620F;
  --robe-accent-strong: #26305E;
  --robe-gold: #C9A227;
  --robe-border: #D6C5A2;
  --robe-ok: #1F6F3D;
  --robe-warn: #8C5E05;
  --robe-err: #8A2424;
  --robe-hero-overlay: rgba(11, 16, 36, 0.72);
  --robe-safe-top: env(safe-area-inset-top);
  --robe-safe-right: env(safe-area-inset-right);
  --robe-safe-bottom: env(safe-area-inset-bottom);
  --robe-safe-left: env(safe-area-inset-left);
  --robe-radius-sm: 0.375rem;
  --robe-radius-md: 0.625rem;
  --robe-radius-lg: 1rem;
  --robe-shadow: 0 0.5rem 1.75rem rgba(11, 16, 36, 0.08);
}

:root[data-theme="nuit"] {
  --robe-bg: #0B1024;
  --robe-bg-alt: #121A36;
  --robe-surface: #162042;
  --robe-ink: #FBF7EF;
  --robe-ink-muted: #DFD4BC;
  --robe-accent: #E8C958;
  --robe-accent-strong: #C9A227;
  --robe-gold: #C9A227;
  --robe-border: #304173;
  --robe-ok: #58D68D;
  --robe-warn: #F4C95D;
  --robe-err: #F1948A;
  --robe-hero-overlay: rgba(8, 12, 28, 0.76);
  --robe-shadow: 0 0.75rem 2.25rem rgba(0, 0, 0, 0.42);
}

:root[data-theme="sepia"] {
  --robe-bg: #F4EAD5;
  --robe-bg-alt: #EADBBF;
  --robe-surface: #FAF2E1;
  --robe-ink: #2B1D0E;
  --robe-ink-muted: #5C452B;
  --robe-accent: #7A540C;
  --robe-accent-strong: #3E2712;
  --robe-gold: #B68A1E;
  --robe-border: #CBB68E;
  --robe-hero-overlay: rgba(32, 20, 9, 0.72);
  --robe-shadow: 0 0.5rem 1.75rem rgba(43, 29, 14, 0.12);
}

/* Palette chromatique perceptuelle OKLCH et thème Contraste Élevé WCAG 2.2 AAA (21:1) */
@supports (color: oklch(97% 0.01 85)) {
  :root[data-theme="jour"] {
    --robe-bg-oklch: oklch(97.2% 0.011 85);
    --robe-ink-oklch: oklch(21.5% 0.018 260);
    --robe-gold-oklch: oklch(53% 0.118 84);
  }
  :root[data-theme="nuit"] {
    --robe-bg-oklch: oklch(15.2% 0.022 264);
    --robe-ink-oklch: oklch(93% 0.014 85);
    --robe-gold-oklch: oklch(80% 0.125 85);
  }
}

:root[data-theme="contraste"] {
  --robe-bg: #FFFFFF;
  --robe-bg-alt: #F2F2F2;
  --robe-surface: #FFFFFF;
  --robe-ink: #000000;
  --robe-ink-muted: #1A1A1A;
  --robe-accent: #002366;
  --robe-accent-strong: #000000;
  --robe-gold: #5C4500;
  --robe-border: #1A1A1A;
  --robe-hero-overlay: rgba(0, 0, 0, 0.86);
  --robe-shadow: 0 0.35rem 1.1rem rgba(0, 0, 0, 0.22);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 112.5%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: var(--robe-safe-top) var(--robe-safe-right) var(--robe-safe-bottom) var(--robe-safe-left);
  background-color: var(--robe-bg);
  color: var(--robe-ink);
  font-family: var(--robe-font-corps);
  font-size: var(--robe-corps-0);
  line-height: 1.618;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--robe-accent);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--robe-accent-strong);
}

:focus-visible {
  outline: 1px solid var(--robe-gold);
  outline-offset: 0.18rem;
}

.skip-link {
  position: absolute;
  top: -8rem;
  left: var(--robe-espace-0);
  z-index: 1000;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: var(--robe-espace-m1) var(--robe-espace-0);
  background: var(--robe-accent-strong);
  color: #FBF7EF;
  border: 1px solid var(--robe-gold);
  border-radius: var(--robe-radius-sm);
  font-family: var(--robe-font-titrage);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--robe-espace-m1);
}

.container {
  width: min(76rem, 92vw);
  margin-inline: auto;
}

.prose {
  max-inline-size: var(--robe-mesure-ideale);
}

.prose-narrow {
  max-inline-size: var(--robe-mesure-min);
}

/* En-tête souveraine 2 barres compactes & ultra-lisibles (V14.0 — zéro empilement, zéro débordement mobile) */
[id] {
  scroll-margin-top: 5.2rem;
}

.site-topbar {
  background: var(--robe-bg-alt);
  border-bottom: 1px solid var(--robe-border);
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--robe-espace-m1);
  padding-block: 0.25rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--robe-surface);
  border-bottom: 1px solid var(--robe-gold);
  box-shadow: 0 0.2rem 0.9rem rgba(11, 16, 36, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--robe-espace-m1);
  padding-block: 0.15rem;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--robe-ink);
  min-height: 44px;
  min-width: 0;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--robe-font-titrage);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.1;
  display: block;
  color: var(--robe-ink);
}

.brand-sub {
  font-family: var(--robe-font-ui);
  font-size: 0.78rem;
  color: var(--robe-ink-muted);
  display: block;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
  overflow-x: auto;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.78rem;
  text-decoration: none;
  color: var(--robe-ink);
  font-family: var(--robe-font-ui);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  white-space: nowrap;
  border-radius: var(--robe-radius-sm);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: var(--robe-gold);
  background: var(--robe-bg-alt);
  color: var(--robe-accent-strong);
}

.nav-drawer {
  display: none;
  width: 100%;
}

.nav-drawer summary {
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.75rem;
  font-family: var(--robe-font-ui);
  font-size: 1rem;
  font-weight: 700;
  color: var(--robe-ink);
  background: var(--robe-bg-alt);
  border: 1px solid var(--robe-gold);
  border-radius: var(--robe-radius-sm);
  cursor: pointer;
}

.nav-drawer summary::-webkit-details-marker {
  display: none;
}

.nav-drawer-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.5rem;
  padding-bottom: 0.4rem;
}

.nav-drawer-list a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  font-family: var(--robe-font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: var(--robe-ink);
  text-decoration: none;
  border-radius: var(--robe-radius-sm);
  border: 1px solid transparent;
}

.nav-drawer-list a[aria-current="page"],
.nav-drawer-list a:hover {
  background: var(--robe-bg-alt);
  border-color: var(--robe-gold);
}

@media (max-width: 60rem) {
  .site-nav {
    display: none;
  }
  .nav-drawer {
    display: block;
  }
  .topbar-inner {
    justify-content: space-between;
  }
  .brand-sub {
    display: none;
  }
}

.header-tools {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}

.btn, button, select, input, textarea {
  font-family: inherit;
  font-size: inherit;
}

.btn, .tool-btn {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--robe-espace-m2);
  padding: var(--robe-espace-m2) var(--robe-espace-0);
  border-radius: var(--robe-radius-sm);
  border: 1px solid var(--robe-border);
  background: var(--robe-surface);
  color: var(--robe-ink);
  text-decoration: none;
  cursor: pointer;
  font-family: var(--robe-font-titrage);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  transition: transform 0.16s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.btn:hover, .tool-btn:hover {
  border-color: var(--robe-gold);
  transform: translateY(-0.06rem);
}

.btn-primary {
  background: var(--robe-accent-strong);
  color: #FBF7EF;
  border-color: var(--robe-gold);
}

.btn-primary:hover {
  color: #FBF7EF;
  background: var(--robe-accent);
}

.btn-gold {
  background: var(--robe-gold);
  color: #0B1024;
  border-color: var(--robe-gold);
  font-weight: 700;
}

.btn-gold:hover {
  color: #0B1024;
  filter: brightness(1.06);
}

.currency-select {
  min-height: 44px;
  min-width: 44px;
  padding: var(--robe-espace-m2) var(--robe-espace-m1);
  border-radius: var(--robe-radius-sm);
  border: 1px solid var(--robe-border);
  background: var(--robe-surface);
  color: var(--robe-ink);
  font-family: var(--robe-font-mono);
  font-size: var(--robe-corps-m1);
}

/* Héro éditorial plein souffle */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--robe-gold);
  background: #0B1024;
  color: #FBF7EF;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
}

.hero-scrim {
  position: relative;
  z-index: 2;
  background: linear-gradient(120deg, var(--robe-hero-overlay) 0%, rgba(11, 16, 36, 0.56) 100%);
  padding-block: var(--robe-espace-3);
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--robe-font-mono);
  font-size: var(--robe-corps-m1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #E8C958;
  border-bottom: 1px solid #C9A227;
  padding-bottom: var(--robe-espace-m2);
  margin-bottom: var(--robe-espace-0);
}

.hero h1 {
  font-family: var(--robe-font-titrage);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  margin: 0 0 var(--robe-espace-0) 0;
  max-inline-size: 24ch;
  color: #FBF7EF;
}

.hero-lead {
  font-size: var(--robe-corps-1);
  line-height: 1.55;
  max-inline-size: 56ch;
  color: #F2E7CE;
  margin: 0 0 var(--robe-espace-1) 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--robe-espace-0);
}

/* Sections & Rythme phi */
.section {
  padding-block: var(--robe-espace-2);
  border-bottom: 1px solid var(--robe-border);
}

.section-alt {
  background: var(--robe-bg-alt);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--robe-espace-0);
  margin-bottom: var(--robe-espace-1);
  padding-bottom: var(--robe-espace-m1);
  border-bottom: 1px solid var(--robe-gold);
}

.section-kicker {
  font-family: var(--robe-font-mono);
  font-size: var(--robe-corps-m1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--robe-accent);
  display: block;
  margin-bottom: var(--robe-espace-m2);
}

h1, h2, h3, h4 {
  font-family: var(--robe-font-titrage);
  font-weight: 500;
  line-height: 1.22;
  margin-top: 0;
}

h2 {
  font-size: var(--robe-corps-2);
  margin-bottom: var(--robe-espace-m2);
}

h3 {
  font-size: var(--robe-corps-1);
  margin-bottom: var(--robe-espace-m2);
}

/* Grilles & Cartes */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr));
  gap: var(--robe-espace-1);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  gap: var(--robe-espace-1);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(15.5rem, 100%), 1fr));
  gap: var(--robe-espace-0);
}

.card {
  background: var(--robe-surface);
  border: 1px solid var(--robe-border);
  border-radius: var(--robe-radius-md);
  padding: var(--robe-espace-1);
  box-shadow: var(--robe-shadow);
  display: flex;
  flex-direction: column;
  gap: var(--robe-espace-m1);
}

.card-gold {
  border-color: var(--robe-gold);
}

.card-meta {
  font-family: var(--robe-font-mono);
  font-size: var(--robe-corps-m1);
  color: var(--robe-ink-muted);
}

.card-price {
  font-family: var(--robe-font-titrage);
  font-size: var(--robe-corps-1);
  color: var(--robe-accent);
  font-weight: 700;
}

.card-price-alt {
  font-family: var(--robe-font-mono);
  font-size: var(--robe-corps-m1);
  color: var(--robe-ink-muted);
  margin-left: var(--robe-espace-m2);
}

.card-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--robe-espace-m2);
  padding-top: var(--robe-espace-m1);
}

.badge {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border-radius: var(--robe-radius-sm);
  border: 1px solid var(--robe-border);
  background: var(--robe-bg-alt);
  color: var(--robe-ink);
  font-family: var(--robe-font-mono);
  font-size: var(--robe-corps-m1);
  line-height: 1.35;
  vertical-align: middle;
}

.badge-accent {
  border-color: var(--robe-gold);
  color: var(--robe-accent);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--robe-espace-m2);
}

/* Chiffres clés / KPI sobres */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
  gap: var(--robe-espace-0);
}

.kpi-box {
  background: var(--robe-surface);
  border: 1px solid var(--robe-border);
  border-top: 1px solid var(--robe-gold);
  border-radius: var(--robe-radius-sm);
  padding: var(--robe-espace-0);
}

.kpi-val {
  font-family: var(--robe-font-titrage);
  font-size: var(--robe-corps-2);
  color: var(--robe-accent);
  display: block;
}

.kpi-label {
  font-size: var(--robe-corps-m1);
  color: var(--robe-ink-muted);
}

/* Barre de filtres & recherche */
.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  gap: var(--robe-espace-0);
  background: var(--robe-surface);
  border: 1px solid var(--robe-border);
  border-radius: var(--robe-radius-md);
  padding: var(--robe-espace-0);
  margin-bottom: var(--robe-espace-1);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.field label {
  font-family: var(--robe-font-mono);
  font-size: var(--robe-corps-m1);
  color: var(--robe-ink-muted);
}

.field input, .field select, .field textarea {
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--robe-radius-sm);
  border: 1px solid var(--robe-border);
  background: var(--robe-bg);
  color: var(--robe-ink);
}

/* Partage doré Cabinet 38.2 % / 61.8 % */
.split-golden {
  display: grid;
  grid-template-columns: minmax(min(18rem, 100%), 38.2%) 1fr;
  gap: var(--robe-espace-1);
  align-items: start;
}

@media (max-width: 56rem) {
  .split-golden {
    grid-template-columns: 1fr;
  }
}

/* Bloc 6 obligatoire / Table bibliographique */
.biblio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.biblio-table th, .biblio-table td {
  text-align: left;
  padding: var(--robe-espace-m1);
  border-bottom: 1px solid var(--robe-border);
  vertical-align: top;
}

.biblio-table th {
  font-family: var(--robe-font-mono);
  font-size: var(--robe-corps-m1);
  color: var(--robe-ink-muted);
  width: 34%;
}

/* Citation / Seuil sanskrit */
.quote-sacred {
  margin: var(--robe-espace-1) 0;
  padding: var(--robe-espace-1);
  border-left: 1px solid var(--robe-gold);
  background: var(--robe-bg-alt);
  border-radius: 0 var(--robe-radius-md) var(--robe-radius-md) 0;
  font-size: var(--robe-corps-1);
  font-style: italic;
}

/* Visionneuse Musée modale accessible (clavier + focus) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(11, 16, 36, 0.92);
  color: #FBF7EF;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--robe-espace-1);
}

.lightbox.open {
  display: flex;
}

.lightbox-dialog {
  width: min(56rem, 96vw);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--robe-surface);
  color: var(--robe-ink);
  border: 1px solid var(--robe-gold);
  border-radius: var(--robe-radius-lg);
  padding: var(--robe-espace-1);
}

/* Fil d'Ariane */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--robe-espace-m2);
  font-family: var(--robe-font-mono);
  font-size: var(--robe-corps-m1);
  color: var(--robe-ink-muted);
  margin-bottom: var(--robe-espace-0);
}

/* Pied de page souverain (jamais fixé) */
.site-footer {
  background: var(--robe-bg-alt);
  border-top: 1px solid var(--robe-gold);
  padding-block: var(--robe-espace-2);
  color: var(--robe-ink-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: var(--robe-espace-1);
  margin-bottom: var(--robe-espace-1);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--robe-espace-m2);
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-legal {
  border-top: 1px solid var(--robe-border);
  padding-top: var(--robe-espace-0);
  font-size: var(--robe-corps-m1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--robe-espace-0);
}

.notice {
  padding: var(--robe-espace-0);
  border-radius: var(--robe-radius-sm);
  border: 1px solid var(--robe-gold);
  background: var(--robe-bg-alt);
}

.hidden {
  display: none !important;
}

/* V2.0 — Flipbook 3D Anticopie, Double-Formulation Juridique, Timeline & PWA */
.flipbook-stage {
  background: var(--robe-bg-alt);
  border: 1px solid var(--robe-gold);
  border-radius: var(--robe-radius-md);
  padding: var(--robe-espace-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--robe-espace-0);
  user-select: none;
  -webkit-user-select: none;
}

.flipbook-canvas {
  width: min(38rem, 100%);
  height: auto;
  border: 1px solid var(--robe-gold);
  border-radius: var(--robe-radius-sm);
  box-shadow: var(--robe-shadow);
  background: #FBF7EF;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.flipbook-canvas.turning {
  transform: perspective(60rem) rotateY(-14deg) scale(0.985);
  opacity: 0.72;
}

.dual-law {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: var(--robe-espace-0);
  margin-block: var(--robe-espace-0);
}

.dual-law-plain {
  background: var(--robe-surface);
  border: 1px solid var(--robe-gold);
  border-left: 1px solid var(--robe-gold);
  border-radius: var(--robe-radius-sm);
  padding: var(--robe-espace-0);
}

.dual-law-legal {
  background: var(--robe-bg-alt);
  border: 1px solid var(--robe-border);
  border-radius: var(--robe-radius-sm);
  padding: var(--robe-espace-0);
  font-size: 0.94rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr));
  gap: var(--robe-espace-m1);
  list-style: none;
  padding: 0;
  margin: var(--robe-espace-0) 0;
}

.timeline li {
  background: var(--robe-surface);
  border: 1px solid var(--robe-border);
  border-top: 1px solid var(--robe-gold);
  border-radius: var(--robe-radius-sm);
  padding: var(--robe-espace-m1);
  font-size: var(--robe-corps-m1);
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(11rem, 100%), 1fr));
  gap: var(--robe-espace-m1);
  margin-top: var(--robe-espace-m1);
}

.photo-preview-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--robe-radius-sm);
  border: 1px solid var(--robe-gold);
}

/* ==========================================================================
   V3.0-TRANSCENDANCE · LOIS HARMONIQUES CHARLES HENRY (PHI = 1.618, PSI = 1.3247)
   ========================================================================== */
body {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 162, 39, 0.085), transparent 68%),
    radial-gradient(ellipse 60% 45% at 100% 100%, rgba(38, 48, 94, 0.06), transparent 70%);
  background-attachment: fixed;
  transition: background-color 0.45s cubic-bezier(0.22, 1, 0.36, 1), color 0.35s ease;
}

:root[data-theme="nuit"] body {
  background-image:
    radial-gradient(ellipse 75% 48% at 50% 0%, rgba(232, 201, 88, 0.12), transparent 66%),
    radial-gradient(ellipse 55% 40% at 12% 85%, rgba(96, 165, 250, 0.08), transparent 70%);
}

/* Barre de progression dorée filiforme en HAUT (jamais fixée en bas — Porte G-3) */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 0.22rem;
  z-index: 950;
  background: linear-gradient(90deg, var(--robe-accent), var(--robe-gold), #F4DC7A);
  pointer-events: none;
  transition: width 0.12s linear;
}

/* En-tête verre cathédrale translucide */
.site-header {
  background: color-mix(in srgb, var(--robe-surface) 90%, transparent);
  backdrop-filter: blur(0.85rem);
  -webkit-backdrop-filter: blur(0.85rem);
  border-bottom: 1px solid color-mix(in srgb, var(--robe-gold) 45%, var(--robe-border));
  box-shadow: 0 0.25rem 1.25rem rgba(11, 16, 36, 0.06);
}

/* Hero Cinématographique Ken Burns contemplatif + double cadre or */
@keyframes henryKenBurns {
  0% { transform: scale(1.00); }
  100% { transform: scale(1.075); }
}

.hero {
  position: relative;
  min-height: clamp(28rem, 68vh, 44rem);
  overflow: hidden;
  border-bottom: 1px solid var(--robe-gold);
}

.hero-media {
  animation: henryKenBurns 26s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-scrim {
  background: linear-gradient(
    180deg,
    rgba(11, 16, 36, 0.42) 0%,
    var(--robe-hero-overlay) 55%,
    rgba(11, 16, 36, 0.88) 100%
  );
}

.hero h1 {
  font-family: var(--robe-font-titrage);
  font-size: clamp(2.1rem, 4.4vw, 3.65rem);
  line-height: 1.12;
  letter-spacing: 0.015em;
  text-shadow: 0 0.2rem 1.4rem rgba(0, 0, 0, 0.48);
}

/* Lettrine enluminée Cathédrale & Filet fleuronné Charles Henry */
.dropcap::first-letter {
  float: left;
  font-family: var(--robe-font-titrage);
  font-size: 3.45rem;
  line-height: 0.84;
  padding: 0.22rem 0.55rem 0.1rem 0;
  color: var(--robe-accent);
  font-weight: 700;
}

.ornament-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--robe-espace-0);
  margin-block: var(--robe-espace-1);
  color: var(--robe-gold);
  font-family: var(--robe-font-titrage);
  letter-spacing: 0.25em;
}

.ornament-rule::before,
.ornament-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--robe-gold), transparent);
}

/* Cartes Cathédrale à élévation harmonique & éclat d'or dynamogène */
.card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.32s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(201, 162, 39, 0.11) 0%, transparent 42%, transparent 65%, rgba(201, 162, 39, 0.06) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.42s ease;
}

.card:hover {
  transform: translateY(-0.26rem);
  border-color: var(--robe-gold);
  box-shadow: 0 1.15rem 2.6rem rgba(11, 16, 36, 0.13), 0 0 0 1px rgba(201, 162, 39, 0.35);
}

.card:hover::before {
  opacity: 1;
}

.card-gold {
  border-top: 1px solid var(--robe-gold);
  box-shadow: 0 0.65rem 2.1rem rgba(125, 98, 15, 0.09);
}

/* Boutons d'orfèvrerie */
.btn {
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

.btn:hover {
  transform: translateY(-0.12rem);
  box-shadow: 0 0.45rem 1.25rem rgba(11, 16, 36, 0.16);
}

.btn-gold {
  background: linear-gradient(135deg, #B9901A 0%, #DFC05B 50%, #A98012 100%);
  color: #151008;
  border-color: #9A7310;
  font-weight: 700;
}

.btn-gold:hover {
  color: #0B1024;
  box-shadow: 0 0.6rem 1.6rem rgba(201, 162, 39, 0.38);
}

/* KPI Strip en verre cathédrale */
.kpi-box {
  background: linear-gradient(160deg, var(--robe-surface) 0%, var(--robe-bg-alt) 100%);
  border: 1px solid color-mix(in srgb, var(--robe-gold) 55%, var(--robe-border));
  box-shadow: var(--robe-shadow);
}

.kpi-val {
  font-family: var(--robe-font-titrage);
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  color: var(--robe-accent);
}

/* Double formulation juridique (En clair + Droit opposable) */
.legal-dual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: var(--robe-espace-0);
  margin-top: var(--robe-espace-m1);
}

.legal-plain {
  background: linear-gradient(180deg, var(--robe-surface) 0%, color-mix(in srgb, var(--robe-gold) 8%, var(--robe-surface)) 100%);
  border: 1px solid var(--robe-gold);
  border-radius: var(--robe-radius-sm);
  padding: var(--robe-espace-0);
}

.legal-strict {
  background: var(--robe-bg-alt);
  border: 1px solid var(--robe-border);
  border-radius: var(--robe-radius-sm);
  padding: var(--robe-espace-0);
  font-size: 0.94rem;
}

.timeline-step {
  background: var(--robe-surface);
  border: 1px solid var(--robe-border);
  border-top: 1px solid var(--robe-gold);
  border-radius: var(--robe-radius-sm);
  padding: var(--robe-espace-m1) var(--robe-espace-0);
}

/* Révélation douce sans jamais masquer le contenu (zéro écran blanc opacity:0) */
.js-ready [data-reveal] {
  opacity: 1;
  transform: none;
}

.js-ready [data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* Grille Cahiers & Articles (75 % article respirant à gauche / 25 % sommaire sticky à droite) */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem);
  gap: 2.25rem;
  align-items: start;
}

.article-layout > aside {
  position: sticky;
  top: 4.5rem;
}

@media (max-width: 62rem) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  .article-layout > aside {
    position: static;
  }
}

/* Polices grecque polytonique & hébraïque dédiées (100 % auto-hébergées) */
.qmw-grec,
[lang="grc"],
[lang="el"] {
  font-family: var(--robe-font-grec) !important;
  font-feature-settings: "kern" 1, "liga" 1, "ccmp" 1, "mark" 1, "mkmk" 1;
  font-size: 1.03em;
  letter-spacing: 0.01em;
}

.qmw-hebreu,
[lang="he"] {
  font-family: var(--robe-font-hebreu) !important;
  direction: rtl;
  unicode-bidi: isolate;
  font-size: 1.08em;
}

/* Protection absolue anti-débordement mobile & cadrage parfait du Hero V20.0 (pleine hauteur, zéro coupure) */
.hero {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: clamp(23rem, 54vh, 34rem);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  z-index: 1;
}

.hero-scrim {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  width: 100%;
  padding-block: clamp(2.4rem, 5.5vh, 4rem);
  background: linear-gradient(96deg, rgba(11, 16, 36, 0.88) 0%, rgba(11, 16, 36, 0.62) 52%, rgba(11, 16, 36, 0.24) 100%);
}

:root[data-robe="ROBE-IDM"] .hero-scrim {
  background: linear-gradient(96deg, rgba(26, 13, 42, 0.86) 0%, rgba(26, 13, 42, 0.56) 52%, rgba(26, 13, 42, 0.18) 100%);
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  gap: 0.85rem;
}

.kpi-box {
  background: var(--robe-surface);
  border: 1px solid var(--robe-border);
  border-top: 0.125rem solid var(--robe-gold);
  border-radius: var(--robe-radius-sm);
  padding: 0.95rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 0.25rem 0.9rem rgba(11, 16, 36, 0.05);
}

.kpi-val {
  font-family: var(--robe-font-titrage);
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  font-weight: 700;
  color: var(--robe-accent);
  line-height: 1.1;
}

.kpi-label {
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--robe-ink);
}

.grid-4 > .card,
.grid-3 > .card,
.grid-2 > .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hero h1,
.hero-lead,
.hero-eyebrow,
.container {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
}

.btn,
.tool-btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

@media (max-width: 48rem) {
  html {
    font-size: 100%;
  }
  .container {
    width: 100%;
    padding-inline: 1rem;
  }
  .topbar-inner {
    gap: 0.45rem;
  }
  .header-tools {
    width: 100%;
    justify-content: flex-start;
  }
  .hero-scrim {
    padding-block: 2.25rem;
  }
  .hero h1 {
    font-size: clamp(1.5rem, 6.8vw, 2.1rem) !important;
    max-inline-size: 100%;
  }
  .hero-lead {
    font-size: 1rem;
    max-inline-size: 100%;
  }
  .currency-select,
  .tool-btn {
    font-size: 0.82rem;
    padding: 0.3rem 0.5rem;
  }
}

/* Scènes interactives V3.0 : Constellation, Laboratoire Charles Henry, Ex-Libris, Mandala Vivant */
.constellation-stage,
.henry-wheel-stage,
.mandala-breathe-stage {
  position: relative;
  border: 1px solid var(--robe-gold);
  border-radius: var(--robe-radius-lg);
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #16234F 0%, #090E22 72%, #050814 100%);
  box-shadow: 0 1.4rem 3.4rem rgba(6, 10, 26, 0.42);
  padding: var(--robe-espace-0);
  color: #FBF7EF;
}

.constellation-canvas,
.henry-wheel-canvas,
.mandala-breathe-canvas,
.exlibris-canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--robe-radius-md);
  cursor: pointer;
}

.exlibris-canvas {
  border: 1px solid var(--robe-gold);
  background: #FBF7EF;
  box-shadow: var(--robe-shadow);
}

.video-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  gap: var(--robe-espace-0);
  margin-top: var(--robe-espace-0);
}

.sanctuary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  background: var(--robe-bg-alt);
  border: 1px solid var(--robe-border);
  border-radius: var(--robe-radius-md);
  margin-bottom: var(--robe-espace-0);
  font-size: 0.92rem;
}

.sanctuary-bar .btn {
  padding: 0.32rem 0.65rem;
  font-size: 0.84rem;
}

.room-mockup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  gap: var(--robe-espace-0);
  margin-top: var(--robe-espace-0);
}

.room-mockup-card {
  border: 1px solid var(--robe-gold);
  border-radius: var(--robe-radius-md);
  padding: var(--robe-espace-0);
  text-align: center;
  background: linear-gradient(180deg, #F6EFE2 0%, #E9DEC9 100%);
  color: #23190F;
}

.room-mockup-frame {
  width: min(11rem, 80%);
  margin: 0.5rem auto;
  padding: 0.6rem;
  background: #FFFDF8;
  border: 1px solid #C9A227;
  box-shadow: 0 0.75rem 1.8rem rgba(35, 25, 15, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .hero-media, .card, .btn, [data-reveal] {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ============================================================================
   QUALITÉ MUSÉALE WRONSKIENNE UNIVERSELLE (QMW · V12.0)
   Généricité phi/psi + Spécialisations Texte-Image, UX/UD, Justification, Vidéo
   ============================================================================ */
h1, h2, h3, h4 {
  text-wrap: balance;
}

.prose,
.qmw-prose {
  text-wrap: pretty;
  orphans: 3;
  widows: 3;
  hanging-punctuation: first last;
}

/* Justification muséale césurée V20.0 — effective sur TOUTE la prose éditoriale longue (>= 48 ch),
   fer à gauche strict garanti sur les cartes étroites (.grid-4) pour zéro rivière blanche */
@media (min-width: 48rem) {
  p.prose,
  .prose p,
  .qmw-prose,
  .qmw-diptyque-texte p,
  section p.prose,
  .split-golden p:not(.card-meta),
  main article p:not(.card-meta):not(.card-price),
  .card > p.prose,
  .quote-sacred {
    text-align: justify;
    text-justify: inter-word;
    text-align-last: left;
    hyphens: auto;
    -webkit-hyphens: auto;
    hyphenate-limit-chars: 6 3 3;
  }
  .grid-4 p,
  .grid-4 article p,
  .grid-4 .prose,
  .card-meta,
  .qmw-cartel,
  .biblio-table p {
    text-align: left !important;
    hyphens: manual !important;
    -webkit-hyphens: manual !important;
  }
}

:root[data-justify="gauche"] p.prose,
:root[data-justify="gauche"] .prose p,
:root[data-justify="gauche"] .qmw-prose,
:root[data-justify="gauche"] article p,
:root[data-justify="gauche"] .quote-sacred {
  text-align: left !important;
  hyphens: manual !important;
  -webkit-hyphens: manual !important;
}

/* Dialogue Muséal Texte <-> Ressources Graphiques (Partage doré 61,8 % / 38,2 %) */
.qmw-diptyque {
  display: grid;
  grid-template-columns: minmax(0, 61.8%) minmax(0, 38.2%);
  gap: var(--robe-espace-2);
  align-items: start;
  margin-block: var(--robe-espace-2);
  padding-top: var(--robe-espace-1);
  border-top: 1px solid color-mix(in srgb, var(--robe-gold) 32%, transparent);
}

/* Dans un Cahier avec sommaire latéral (.article-layout), ne JAMAIS étrangler le texte en 3 colonnes :
   la prose respire sur toute la largeur noble (66 ch) puis la planche s'expose en pleine majesté */
.article-layout .qmw-diptyque,
.article-layout .qmw-diptyque-rev {
  display: flex;
  flex-direction: column;
  gap: var(--robe-espace-1);
  margin-block: var(--robe-espace-1);
}

.article-layout .qmw-diptyque-rev .qmw-diptyque-visuel {
  order: 0;
}

.article-layout .qmw-diptyque-texte p {
  max-width: 68ch;
}

.article-layout .qmw-passepartout-wide img {
  max-height: 30rem;
  width: 100%;
  object-fit: contain;
}

.qmw-diptyque-rev {
  grid-template-columns: minmax(0, 38.2%) minmax(0, 61.8%);
}

.qmw-diptyque-rev .qmw-diptyque-visuel {
  order: -1;
}

@media (max-width: 58rem) {
  .qmw-diptyque,
  .qmw-diptyque-rev {
    grid-template-columns: 1fr;
    gap: var(--robe-espace-1);
  }
  .qmw-diptyque-rev .qmw-diptyque-visuel {
    order: 0;
  }
}

/* Passe-partout muséal non destructeur + Cartel analytique (QMW-TEXTE-IMAGE) */
.qmw-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--robe-espace-m1);
}

.qmw-passepartout {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--robe-espace-m1);
  background: linear-gradient(160deg, var(--robe-surface) 0%, var(--robe-bg-alt) 100%);
  border: 1px solid var(--robe-gold);
  border-radius: var(--robe-radius-sm);
  box-shadow: 0 0.75rem 2.1rem rgba(11, 16, 36, 0.14);
  overflow: hidden;
}

.qmw-passepartout img {
  width: 100%;
  object-fit: contain;
  border-radius: 0.2rem;
}

.qmw-passepartout-book img {
  height: 15.5rem;
}

.qmw-passepartout-book-lg img {
  max-height: 28rem;
  height: auto;
}

.qmw-passepartout-poster {
  background: linear-gradient(160deg, #101730 0%, #070B18 100%);
}

.qmw-passepartout-poster img {
  height: 13.5rem;
}

.qmw-passepartout-art {
  background: linear-gradient(160deg, #FFFDF8 0%, #F3E9D6 100%);
  border: 1px solid color-mix(in srgb, var(--robe-gold) 78%, var(--robe-border));
  padding: 0.72rem;
  aspect-ratio: 1 / 1;
  box-shadow: inset 0 0 0 0.18rem rgba(255, 253, 248, 0.85), 0 0.55rem 1.45rem rgba(35, 25, 15, 0.09);
}

:root[data-theme="nuit"] .qmw-passepartout-art {
  background: linear-gradient(160deg, #1E1133 0%, #120920 100%);
  box-shadow: inset 0 0 0 0.125rem rgba(201, 162, 39, 0.25), 0 0.65rem 1.75rem rgba(0, 0, 0, 0.45);
}

.qmw-passepartout-art img {
  height: 100%;
  object-fit: contain;
  border-radius: 0.18rem;
}

.qmw-passepartout-wide img {
  max-height: 22rem;
  object-fit: contain;
}

.qmw-cartel {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.5rem 0.75rem;
  border-left: 1px solid var(--robe-gold);
  background: color-mix(in srgb, var(--robe-bg-alt) 68%, transparent);
  border-radius: 0 var(--robe-radius-sm) var(--robe-radius-sm) 0;
  font-size: var(--robe-corps-m1);
  line-height: 1.45;
  text-align: left;
}

.qmw-cartel-titre {
  font-family: var(--robe-font-titrage);
  color: var(--robe-ink);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.qmw-cartel-cote {
  font-family: var(--robe-font-mono);
  color: var(--robe-accent);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.qmw-cartel-note {
  color: var(--robe-ink-muted);
  font-style: italic;
}

.qmw-video-stage {
  border: 1px solid var(--robe-gold);
  border-radius: var(--robe-radius-md);
  padding: var(--robe-espace-m1);
  background: #070B18;
  box-shadow: 0 1rem 2.6rem rgba(6, 10, 26, 0.32);
}

/* ============================================================================
   HAUTE TYPOGRAPHIE RAMAT, LIGATURES OPENTYPE & LETTRINES BIJOUX SVG (V13.0)
   ============================================================================ */
body,
.prose,
.qmw-prose {
  font-kerning: normal;
  font-variant-ligatures: common-ligatures discretionary-ligatures historical-ligatures contextual;
  font-feature-settings: "kern" 1, "liga" 1, "clig" 1, "dlig" 1, "hlig" 1, "calt" 1, "onum" 1, "pnum" 1;
  font-variant-numeric: oldstyle-nums proportional-nums;
}

/* Chiffres tabulaires alignés sur tableaux, prix, KPI et dates techniques */
.card-price,
.card-price-alt,
.kpi-val,
.biblio-table,
table {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "kern" 1, "liga" 1, "lnum" 1, "tnum" 1;
}

/* Titres d'œuvres impérativement détachés en italique (RAMAT) */
cite.ramat-oeuvre,
.ramat-oeuvre {
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.008em;
  color: inherit;
}

/* Siècles en petites capitales + exposants fins (RAMAT) */
.ramat-sc {
  font-variant-caps: all-small-caps;
  font-feature-settings: "c2sc" 1, "smcp" 1, "kern" 1;
  letter-spacing: 0.045em;
}

sup {
  font-size: 0.68em;
  line-height: 0;
  vertical-align: super;
}

/* Accessibilité écran/copier-coller pour l'initiale des Lettrines Bijoux */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Véritable Lettrine Enluminée Taille-Douce V17.0 — Gravure sur Vélin (3 lignes exactes) */
.qmw-has-lettrine {
  min-height: 4.8rem;
}

.qmw-lettrine-bijou {
  float: left;
  display: inline-block;
  width: 4.1rem;
  height: 4.1rem;
  margin: 0.16rem 0.62rem 0.14rem 0;
  border-radius: 0.1rem;
  box-shadow: 0 0.2rem 0.65rem rgba(35, 25, 15, 0.12);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease;
}

.qmw-lettrine-bijou:hover {
  transform: translateY(-0.08rem);
  box-shadow: 0 0.45rem 1.15rem rgba(125, 98, 15, 0.22);
}

.qmw-lettrine-bijou svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0.08rem;
}

.idm-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(11, 16, 36, 0.94);
  backdrop-filter: blur(0.45rem);
}

.idm-lightbox-overlay.is-open {
  display: flex;
}

.idm-lightbox-overlay.is-velin {
  background: rgba(250, 246, 236, 0.97);
}

.idm-lightbox-stage {
  width: min(74rem, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--robe-surface);
  border: 1px solid var(--robe-gold);
  border-radius: var(--robe-radius-md);
  padding: 1.15rem;
  box-shadow: var(--robe-shadow-lg);
}

.idm-lightbox-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.idm-lightbox-canvas {
  flex: 1 1 auto;
  min-height: 22rem;
  max-height: 68vh;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0F1426;
  border: 1px solid var(--robe-border);
  border-radius: var(--robe-radius-sm);
  padding: 1rem;
}

.idm-lightbox-overlay.is-velin .idm-lightbox-canvas {
  background: #FAF6EC;
}

.idm-lightbox-canvas img {
  max-width: 100%;
  max-height: 62vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.qmw-passepartout img {
  cursor: zoom-in;
}

/* En-tête translucide verre dépoli, micro-transitions fluides et palette de recherche rapide Ctrl+K */
.site-header {
  background: color-mix(in srgb, var(--robe-surface) 88%, transparent);
  backdrop-filter: blur(0.75rem);
  -webkit-backdrop-filter: blur(0.75rem);
}

.card,
.btn,
.tool-btn,
.kpi-box {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover,
.kpi-box:hover {
  transform: translateY(-0.14rem);
  box-shadow: 0 0.85rem 2.2rem rgba(11, 16, 36, 0.11);
}

.cmdk-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  border-radius: var(--robe-radius-sm);
  border: 1px solid var(--robe-border);
  background: var(--robe-bg-alt);
  color: var(--robe-ink);
  font-family: var(--robe-font-ui);
  font-size: 0.88rem;
  cursor: pointer;
}

.cmdk-trigger-btn:hover {
  border-color: var(--robe-gold);
}

.cmdk-kbd {
  font-family: var(--robe-font-mono);
  font-size: 0.74rem;
  padding: 0.1rem 0.36rem;
  border-radius: 0.22rem;
  border: 1px solid var(--robe-border);
  background: var(--robe-surface);
  color: var(--robe-ink-muted);
}

.site-cmdk-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 1rem 1rem;
  background: rgba(11, 16, 36, 0.72);
  backdrop-filter: blur(0.45rem);
}

.site-cmdk-backdrop.is-open {
  display: flex;
}

.site-cmdk-dialog {
  width: min(40rem, 100%);
  background: var(--robe-surface);
  color: var(--robe-ink);
  border: 1px solid var(--robe-gold);
  border-radius: var(--robe-radius-md);
  box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.site-cmdk-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--robe-border);
  background: var(--robe-bg-alt);
}

.site-cmdk-input {
  flex: 1;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--robe-ink);
  font-family: var(--robe-font-corps);
  font-size: 1.05rem;
  outline: none;
}

.site-cmdk-results {
  max-height: 22rem;
  overflow-y: auto;
  padding: 0.45rem;
}

.site-cmdk-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--robe-radius-sm);
  text-decoration: none;
  color: var(--robe-ink);
  border: 1px solid transparent;
}

.site-cmdk-item:hover,
.site-cmdk-item:focus-visible {
  background: var(--robe-bg-alt);
  border-color: var(--robe-gold);
  color: var(--robe-accent);
}

.site-cmdk-type {
  font-family: var(--robe-font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  padding: 0.12rem 0.45rem;
  border-radius: 999rem;
  border: 1px solid var(--robe-border);
  color: var(--robe-ink-muted);
  white-space: nowrap;
}

@media (max-width: 36rem) {
  .qmw-lettrine-bijou {
    width: 3.7rem;
    height: 3.7rem;
    margin: 0.18rem 0.72rem 0.18rem 0;
  }
}

/* Mode Salon / Grand Écran TV 4K (10-Foot UI : typographie majorée, overscan sûr et focus clavier lumineux) */
html[data-display="tv"] {
  font-size: 122%;
}
html[data-display="tv"] body {
  padding: 2.5% 4%;
}
html[data-display="tv"] a:focus-visible,
html[data-display="tv"] button:focus-visible,
html[data-display="tv"] select:focus-visible {
  outline: 0.2rem solid var(--robe-gold);
  outline-offset: 0.22rem;
  box-shadow: 0 0 1.4rem rgba(201, 162, 39, 0.45);
}

/* Mode Famille & Jeunes Explorateurs (lecture apaisée, contraste doux et repères clairs) */
html[data-mode="famille"] {
  font-size: 108%;
}
html[data-mode="famille"] .site-topbar {
  border-bottom: 0.18rem solid var(--robe-gold);
}

/* Indicateur actif discret pour la résonance 432 Hz et le Mode Salon 4K */
.tool-btn.is-active,
.cmdk-trigger-btn.is-active {
  border-color: var(--robe-gold);
  background: var(--robe-accent-strong);
  color: #FFFDF8;
}

/* Visionneuse Haute Définition universelle (Zoom 100 % - 350 %, Vélin / Nuit, clavier) */
.site-hd-overlay {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(11, 16, 36, 0.88);
  backdrop-filter: blur(0.45rem);
}
.site-hd-overlay.is-open {
  display: flex;
}
.site-hd-stage {
  width: min(74rem, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--robe-surface);
  color: var(--robe-ink);
  border: 1px solid var(--robe-gold);
  border-radius: var(--robe-radius-md);
  padding: 1rem;
}
.site-hd-canvas {
  flex: 1 1 auto;
  min-height: 20rem;
  max-height: 68vh;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0B1024;
  border: 1px solid var(--robe-border);
  border-radius: var(--robe-radius-sm);
  padding: 1rem;
}
.site-hd-overlay.is-velin .site-hd-canvas {
  background: #FAF6EC;
}
.site-hd-canvas img {
  max-width: 100%;
  max-height: 62vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 20mm 18mm;
  }
  body {
    background: #FFFFFF;
    color: #000000;
    font-size: 11pt;
    line-height: 1.55;
  }
  .site-topbar, .site-header, .constellation-bar, .header-tools, .filter-bar, .sni-explorer-bar, .btn, .reading-progress, .sanctuary-bar, .site-cmdk-backdrop, .site-hd-overlay, .idm-lightbox-overlay {
    display: none !important;
  }
  .card, .kpi-box, figure {
    break-inside: avoid;
    box-shadow: none !important;
  }
}

/* ============================================================================
   V25.0 — CONSTELLATION INTER-SOUS-DOMAINES, EXPLORATEUR SNI & FAVORIS LOCAUX
   ============================================================================ */
.constellation-bar {
  background: var(--robe-bg-alt);
  border-bottom: 1px solid var(--robe-border);
  font-family: var(--robe-font-ui);
  font-size: 0.84rem;
}
.constellation-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.75rem;
  padding: 0.3rem 0;
}
.constellation-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.55rem;
}
.constellation-label {
  font-weight: 700;
  color: var(--robe-accent-strong);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.constellation-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--robe-radius-sm);
  border: 1px solid transparent;
  color: var(--robe-ink);
  text-decoration: none;
  font-weight: 600;
}
.constellation-links a:hover,
.constellation-links a[aria-current="location"] {
  border-color: var(--robe-gold);
  background: var(--robe-surface);
  color: var(--robe-accent-strong);
}
.constellation-sister {
  color: var(--robe-accent-strong);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dotted var(--robe-gold);
  padding: 0.15rem 0.25rem;
}
.sni-explorer-bar {
  background: var(--robe-surface);
  border: 1px solid var(--robe-gold);
  border-radius: var(--robe-radius-md);
  padding: 1.15rem;
  margin-bottom: 1.5rem;
}
.sni-explorer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.85rem;
}
.sni-explorer-input {
  flex: 1 1 16rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--robe-radius-sm);
  border: 1px solid var(--robe-border);
  background: var(--robe-bg);
  color: var(--robe-ink);
}
.sni-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.sni-pill {
  min-height: 2.75rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999rem;
  border: 1px solid var(--robe-border);
  background: var(--robe-bg-alt);
  color: var(--robe-ink);
  font-family: var(--robe-font-ui);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}
.sni-pill.is-active {
  background: var(--robe-accent-strong);
  border-color: var(--robe-gold);
  color: #FBF7EF;
}
.sni-hits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  gap: 0.9rem;
}
.sni-hit-card {
  background: var(--robe-bg);
  border: 1px solid var(--robe-border);
  border-radius: var(--robe-radius-sm);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.45rem;
}
.sni-hit-card a {
  color: var(--robe-ink);
  text-decoration: none;
  font-weight: 700;
}
.sni-hit-card a:hover {
  color: var(--robe-accent-strong);
  text-decoration: underline;
}
.site-cmdk-section {
  padding: 0.45rem 0.75rem 0.25rem;
  font-family: var(--robe-font-ui);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--robe-accent-strong);
}
@media (max-width: 44rem) {
  .constellation-bar {
    padding-block: 0.25rem;
  }
  .constellation-inner {
    gap: 0.3rem;
  }
  .constellation-label {
    display: none;
  }
  .constellation-links,
  .header-tools {
    flex-wrap: wrap;
    max-width: 100%;
    gap: 0.28rem;
  }
  .constellation-links a {
    font-size: 0.72rem;
    padding: 0.18rem 0.48rem;
  }
  .header-tools > * {
    font-size: 0.74rem;
    padding: 0.24rem 0.48rem;
  }
}
/* Internationalisation Universelle V27.0 — Palette 315 langues + RTL/LTR (0 px fautif G-4) */
.i18n-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  margin-block: 0.4rem 0.8rem;
  background: var(--robe-bg-alt);
  border: 1px solid var(--robe-gold);
  border-radius: var(--robe-radius-sm);
  font-family: var(--robe-font-ui);
  font-size: 0.86rem;
}
.i18n-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.i18n-mini-btn {
  padding: 0.3rem 0.65rem;
  border-radius: 999rem;
  border: 1px solid var(--robe-border);
  background: var(--robe-bg);
  color: var(--robe-ink);
  font-family: var(--robe-font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.i18n-mini-btn:hover {
  border-color: var(--robe-gold);
}
.lang-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(11, 16, 36, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lang-modal-card {
  width: min(56rem, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--robe-bg);
  color: var(--robe-ink);
  border: 1px solid var(--robe-gold);
  border-radius: var(--robe-radius);
  padding: 1.1rem;
  overflow: hidden;
  box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.35);
}
.lang-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.lang-detect-row {
  font-size: 0.82rem;
  color: var(--robe-ink-muted);
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.lang-reset-btn,
.lang-close-btn {
  padding: 0.3rem 0.65rem;
  border-radius: var(--robe-radius-sm);
  border: 1px solid var(--robe-border);
  background: var(--robe-bg-alt);
  color: var(--robe-ink);
  font-family: var(--robe-font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.lang-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.lang-search-input {
  flex: 1;
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--robe-gold);
  border-radius: var(--robe-radius-sm);
  background: var(--robe-surface);
  color: var(--robe-ink);
  font-family: var(--robe-font-ui);
  font-size: 0.95rem;
}
.lang-count {
  font-family: var(--robe-font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--robe-accent-strong);
  white-space: nowrap;
}
.lang-section-title {
  font-family: var(--robe-font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--robe-ink-muted);
  margin-bottom: 0.35rem;
}
.lang-chips,
.lang-region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.lang-chip,
.lang-tab {
  padding: 0.3rem 0.65rem;
  border-radius: 999rem;
  border: 1px solid var(--robe-border);
  background: var(--robe-bg-alt);
  color: var(--robe-ink);
  font-family: var(--robe-font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.lang-chip.is-active,
.lang-tab.is-active {
  background: var(--robe-accent-strong);
  border-color: var(--robe-gold);
  color: #FBF7EF;
}
.lang-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr));
  gap: 0.45rem;
  overflow-y: auto;
  padding-right: 0.2rem;
  max-height: 42vh;
}
.lang-item {
  text-align: start;
  padding: 0.55rem 0.7rem;
  border-radius: var(--robe-radius-sm);
  border: 1px solid var(--robe-border);
  background: var(--robe-surface);
  color: var(--robe-ink);
  font-family: var(--robe-font-ui);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}
.lang-item:hover,
.lang-item.is-active {
  border-color: var(--robe-gold);
  background: var(--robe-bg-alt);
}
.lang-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.9rem;
}
.lang-item-sub {
  font-size: 0.76rem;
  color: var(--robe-ink-muted);
}
.lang-tag {
  display: inline-block;
  padding: 0.05rem 0.3rem;
  border-radius: 0.25rem;
  background: var(--robe-bg-alt);
  border: 1px solid var(--robe-border);
  font-size: 0.68rem;
  margin-inline-end: 0.25rem;
}
.lang-tag-n1 {
  color: var(--robe-gold);
  border-color: var(--robe-gold);
}
html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .reading-progress {
  left: auto;
  right: 0;
}
html[dir="rtl"] .dropcap::first-letter {
  float: right;
  padding: 0.22rem 0 0.1rem 0.55rem;
}
