@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Source+Sans+3:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@1,300;1,400;1,500;1,600&display=swap');

/* =========================================================
   CERCLEPOUCHKINE.COM — BIBLIOTHEQUE IMPERIALE DESIGN SYSTEM
   ========================================================= */

:root {
  /* PALETTE — 7 couleurs principales */
  --nuit-empire: #162038;     /* Texte principal, hero overlays — bleu nuit imperial */
  --bleu-academie: #2D3E5C;   /* Primaire — bleu academique, liens hover */
  --bleu-parchemin: #5A6E8A;  /* Secondaire — bleu tenu, subtitles */
  --or-patine: #B89864;       /* Accent principal — or vieilli */
  --or-vif: #D4AF7A;          /* Accent highlight — hover, badges */
  --rouge-imperial: #841F27;  /* Accent discret — rouge laque */
  --parchemin: #E8DCC5;       /* Fond alt — parchemin vieilli */
  --creme-livre: #F5EEDF;     /* Fond principal — creme page ancienne */

  /* DERIVES OPACITE nuit-empire */
  --nuit-80: rgba(22, 32, 56, 0.80);
  --nuit-65: rgba(22, 32, 56, 0.65);
  --nuit-40: rgba(22, 32, 56, 0.40);
  --nuit-20: rgba(22, 32, 56, 0.20);
  --nuit-10: rgba(22, 32, 56, 0.10);
  --nuit-06: rgba(22, 32, 56, 0.06);

  /* DERIVES OPACITE creme */
  --creme-95: rgba(245, 238, 223, 0.95);
  --creme-75: rgba(245, 238, 223, 0.75);
  --creme-40: rgba(245, 238, 223, 0.40);

  /* DERIVES OPACITE or */
  --or-40: rgba(184, 152, 100, 0.40);
  --or-20: rgba(184, 152, 100, 0.20);

  /* POLICES */
  --ff-display: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --ff-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --ff-accent: 'Cormorant Garamond', 'Times New Roman', serif;

  /* MESURES */
  --measure-article: 680px;
  --measure-wide: 1280px;
  --measure-hero: 1440px;
  --gutter: clamp(1rem, 4vw, 2rem);

  /* TRANSITIONS */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 300ms;
  --dur: 500ms;
  --dur-slow: 700ms;

  /* TYPOGRAPHIE RESPONSIVE */
  --fs-xs: clamp(0.75rem, 1.5vw, 0.8125rem);
  --fs-sm: clamp(0.875rem, 2vw, 0.9375rem);
  --fs-body: clamp(1rem, 2.2vw, 1.0625rem);
  --fs-lg: clamp(1.125rem, 2.5vw, 1.25rem);
  --fs-xl: clamp(1.375rem, 3vw, 1.625rem);
  --fs-h3: clamp(1.375rem, 3vw, 1.75rem);
  --fs-h2: clamp(1.75rem, 4.5vw, 2.375rem);
  --fs-h1: clamp(2.25rem, 6vw, 3.75rem);
  --fs-hero: clamp(2.75rem, 8vw, 5rem);
}

/* =========================================================
   RESET & BASE
   ========================================================= */

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

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

body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--nuit-empire);
  background: var(--creme-livre);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }

a {
  color: var(--bleu-academie);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--rouge-imperial); }

button { font-family: inherit; cursor: pointer; border: none; background: transparent; }

/* =========================================================
   TITRES — EB Garamond pour l'atmosphere academique XIXe
   ========================================================= */

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--nuit-empire);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); margin-top: 3rem; margin-bottom: 1.25rem; }
h3 { font-size: var(--fs-h3); margin-top: 2.25rem; margin-bottom: 0.875rem; }
h4 { font-size: var(--fs-lg); margin-top: 1.75rem; margin-bottom: 0.625rem; }

/* Double filet or sous H2 — style livre ancien */
.article-body h2 {
  position: relative;
  padding-bottom: 1rem;
  margin-top: 3.5rem;
}
.article-body h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 120px;
  height: 6px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 6'><line x1='0' y1='1' x2='120' y2='1' stroke='%23B89864' stroke-width='1.5'/><line x1='20' y1='5' x2='100' y2='5' stroke='%23B89864' stroke-width='0.5'/><circle cx='60' cy='3' r='1.5' fill='%23841F27'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  transform-origin: left center;
  transition: transform var(--dur-slow) var(--ease);
}
.article-body.visible h2::after { transform: scaleX(1.25); }

/* =========================================================
   PARAGRAPHES & TEXTE
   ========================================================= */

p { margin-bottom: 1.15rem; }

.article-body p {
  max-width: var(--measure-article);
  color: var(--nuit-80);
}

/* Lettrine enluminee au premier paragraphe */
.article-body > p:first-of-type::first-letter {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 4em;
  float: left;
  line-height: 0.82;
  margin: 0.3rem 0.75rem 0 0;
  color: var(--or-patine);
  font-style: italic;
  padding: 0.1rem 0.4rem 0;
  border-left: 2px solid var(--or-patine);
  background: linear-gradient(to bottom, var(--creme-95) 0%, transparent 100%);
}

ul, ol { padding-left: 1.5rem; margin-bottom: 1.15rem; max-width: var(--measure-article); color: var(--nuit-80); }
li { margin-bottom: 0.4rem; }

strong { color: var(--nuit-empire); font-weight: 600; }
em { font-style: italic; }

blockquote {
  border-left: 3px solid var(--or-patine);
  padding: 0.5rem 0 0.5rem 1.75rem;
  margin: 2rem 0;
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: var(--fs-xl);
  color: var(--nuit-empire);
  max-width: var(--measure-article);
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--or-40), transparent);
  margin: 3rem auto;
  max-width: var(--measure-article);
}

code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.9em;
  background: var(--parchemin);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  color: var(--rouge-imperial);
}

/* =========================================================
   CONTAINER
   ========================================================= */

.container {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container-article {
  max-width: 960px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--creme-95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--dur-fast) var(--ease),
              padding var(--dur-fast) var(--ease);
  padding: 1rem 0;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  box-shadow: 0 4px 24px var(--nuit-10);
  padding: 0.625rem 0;
  border-bottom-color: var(--or-20);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--nuit-empire);
  line-height: 1;
  letter-spacing: 0.01em;
}
.logo svg { width: 36px; height: 36px; }
.logo:hover { color: var(--bleu-academie); }
.logo-cyrillic {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 700;
  color: var(--or-patine);
  font-size: 1.65em;
  line-height: 0.85;
}

/* NAV */
.main-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.main-nav a {
  color: var(--nuit-empire);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--or-patine);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur-fast) var(--ease);
}
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

.nav-lang {
  padding-left: 1.25rem;
  margin-left: 0.5rem;
  border-left: 1px solid var(--nuit-20);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bleu-parchemin);
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--nuit-empire);
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    width: min(360px, 85vw);
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 6rem 2rem 2rem;
    background: var(--creme-livre);
    box-shadow: -8px 0 32px var(--nuit-20);
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    align-items: flex-start;
    overflow-y: auto;
  }
  body.nav-open .main-nav { transform: translateX(0); }
  .main-nav a { font-size: 1.125rem; padding: 0.875rem 0; width: 100%; border-bottom: 1px solid var(--nuit-10); }
  .nav-lang { border: none; padding-left: 0; margin-left: 0; }
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  margin-top: 0;
  padding: 6rem 0 3rem;
}
.hero-home { min-height: 92vh; }

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(0.9);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(22, 32, 56, 0.92) 0%,
      rgba(22, 32, 56, 0.55) 45%,
      rgba(22, 32, 56, 0.35) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--creme-livre);
  max-width: 900px;
  padding: 0 var(--gutter);
  margin: 0 auto;
  width: 100%;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--or-patine);
  margin-bottom: 1.5rem;
}
.hero-kicker::before {
  content: '';
  width: 44px;
  height: 1px;
  background: var(--or-patine);
}

.hero-kicker-cyrillic {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  letter-spacing: 0.3em;
  color: var(--or-patine);
  display: block;
  margin-top: 0.35rem;
  text-transform: uppercase;
  font-weight: 500;
}

.hero h1 {
  color: var(--creme-livre);
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  max-width: 22ch;
  letter-spacing: -0.01em;
}

.hero-description {
  font-size: var(--fs-lg);
  color: var(--creme-75);
  max-width: 62ch;
  margin-bottom: 2rem;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.875rem;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all var(--dur-fast) var(--ease);
}
.btn-primary {
  background: var(--rouge-imperial);
  color: var(--creme-livre);
}
.btn-primary:hover {
  background: var(--creme-livre);
  color: var(--rouge-imperial);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--nuit-20);
}
.btn-secondary {
  background: transparent;
  color: var(--creme-livre);
  border-color: var(--or-patine);
}
.btn-secondary:hover {
  background: var(--or-patine);
  color: var(--nuit-empire);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--or-patine);
  font-size: var(--fs-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  z-index: 2;
  animation: fadeUp 2s ease-in-out infinite alternate;
}

@keyframes fadeUp {
  from { opacity: 0.4; transform: translate(-50%, 0); }
  to { opacity: 1; transform: translate(-50%, -6px); }
}

/* =========================================================
   BREADCRUMB
   ========================================================= */

.breadcrumb {
  font-size: var(--fs-xs);
  color: var(--creme-75);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}
.breadcrumb a { color: var(--or-patine); }
.breadcrumb a:hover { color: var(--creme-livre); }
.breadcrumb .sep { margin: 0 0.5rem; opacity: 0.6; }

.article-meta {
  font-size: var(--fs-xs);
  color: var(--creme-75);
  letter-spacing: 0.05em;
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.article-meta .sep-gold { color: var(--or-patine); margin: 0 0.35rem; }

/* =========================================================
   ARTICLE LAYOUT
   ========================================================= */

.article-summary {
  max-width: 780px;
  margin: 3rem auto 2rem;
  padding: 0 var(--gutter);
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: var(--fs-xl);
  line-height: 1.55;
  color: var(--nuit-empire);
  border-left: 3px solid var(--or-patine);
  padding-left: 1.75rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: var(--measure-wide);
  margin: 2rem auto 4rem;
  padding: 0 var(--gutter);
  gap: 3rem;
}
@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

.toc-sticky {
  display: none;
}
@media (min-width: 1024px) {
  .toc-sticky {
    display: block;
    position: sticky;
    top: 6rem;
    align-self: start;
    font-family: var(--ff-body);
    font-size: var(--fs-xs);
    padding-right: 1rem;
    border-right: 1px solid var(--nuit-10);
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
  }
}
.toc-sticky h3 {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--or-patine);
  margin-bottom: 1rem;
  padding-bottom: 0;
  margin-top: 0;
}
.toc-sticky ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
.toc-sticky li {
  counter-increment: toc;
  padding: 0.4rem 0;
  position: relative;
  padding-left: 2.4rem;
  border-bottom: 1px solid var(--nuit-06);
  transition: padding-left var(--dur-fast) var(--ease);
}
/* Chiffres romains automatiques via CSS counter-style */
.toc-sticky li::before {
  content: counter(toc, upper-roman) ".";
  position: absolute;
  left: 0;
  top: 0.4rem;
  font-family: var(--ff-display);
  font-style: italic;
  color: var(--or-patine);
  font-size: 0.95em;
  font-weight: 500;
  width: 2rem;
  text-align: right;
  padding-right: 0.25rem;
}
.toc-sticky li:hover { padding-left: 2.7rem; }
.toc-sticky a {
  color: var(--nuit-80);
  display: block;
  line-height: 1.4;
}
.toc-sticky a:hover { color: var(--rouge-imperial); }

.article-body {
  min-width: 0;
}
.article-body > * { max-width: var(--measure-article); }
.article-body img {
  max-width: 100%;
  margin: 2.5rem auto;
  border-radius: 2px;
  box-shadow: 0 8px 32px var(--nuit-10);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.article-body h2 { max-width: var(--measure-article); }
.article-body h3 { max-width: var(--measure-article); }

/* =========================================================
   PULL QUOTE — guillemets francais or
   ========================================================= */

.pull-quote {
  max-width: var(--measure-article);
  margin: 2.75rem auto;
  padding: 1.75rem 0 1.75rem 2.25rem;
  border-left: 3px solid var(--or-patine);
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: var(--fs-xl);
  line-height: 1.5;
  color: var(--nuit-empire);
  position: relative;
}
.pull-quote::before {
  content: '«';
  position: absolute;
  left: 1rem;
  top: -0.5rem;
  font-family: var(--ff-display);
  font-size: 3.5rem;
  color: var(--or-patine);
  line-height: 1;
  opacity: 0.5;
}
.pull-quote cite {
  display: block;
  font-family: var(--ff-body);
  font-style: normal;
  font-size: var(--fs-sm);
  color: var(--or-patine);
  margin-top: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pull-quote cite::before { content: '— '; }

/* =========================================================
   POEM COMPONENT — 3 colonnes cyrillique / translit / francais
   ========================================================= */

.poem-block {
  max-width: var(--measure-wide);
  margin: 3.5rem auto;
  padding: 2.5rem var(--gutter) 2.75rem;
  background: var(--parchemin);
  border: 1px solid var(--or-40);
  border-radius: 3px;
  position: relative;
}
.poem-block::before {
  /* Corne haute-gauche papier vieilli */
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--creme-livre) 50%, transparent 50%);
}
.poem-block::after {
  /* Corne basse-droite */
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 28px; height: 28px;
  background: linear-gradient(315deg, var(--creme-livre) 50%, transparent 50%);
}

.poem-title {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: var(--fs-xl);
  color: var(--nuit-empire);
  text-align: center;
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.poem-title-ru {
  display: block;
  font-family: var(--ff-display);
  font-weight: 400;
  font-style: normal;
  color: var(--or-patine);
  font-size: 0.75em;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}
.poem-year {
  text-align: center;
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bleu-parchemin);
  margin-bottom: 2rem;
}

.poem-stanzas {
  display: grid;
  gap: 2.25rem;
  margin-bottom: 2rem;
}
.poem-stanza {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--or-40);
}
.poem-stanza:last-child { border-bottom: none; }

@media (min-width: 900px) {
  .poem-stanza {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }
}

.poem-cyrillic,
.poem-translit,
.poem-french {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--nuit-empire);
}
.poem-cyrillic {
  font-family: var(--ff-display);
  font-weight: 500;
  color: var(--bleu-academie);
}
.poem-translit {
  font-family: var(--ff-accent);
  font-style: italic;
  color: var(--or-patine);
}
.poem-french {
  font-family: var(--ff-accent);
  font-style: italic;
  color: var(--nuit-empire);
}
.poem-line { display: block; }
.poem-line + .poem-line { margin-top: 0.15rem; }

.poem-analysis {
  max-width: 640px;
  margin: 1.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--or-40);
  color: var(--nuit-80);
  font-size: var(--fs-sm);
  line-height: 1.7;
  font-family: var(--ff-body);
}
.poem-analysis h4 {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--or-patine);
  margin-bottom: 0.75rem;
  margin-top: 0;
  text-align: center;
  font-weight: 500;
}

/* =========================================================
   FAQ — floron or
   ========================================================= */

.faq-section {
  max-width: 880px;
  margin: 4rem auto;
  padding: 0 var(--gutter);
}
.faq-section > h2 {
  font-family: var(--ff-display);
  font-size: var(--fs-h2);
  margin-bottom: 2rem;
  text-align: center;
}
.faq-section > h2 > .faq-section-kicker {
  display: block;
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--or-patine);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.faq-item {
  border-bottom: 1px solid var(--nuit-10);
  padding: 0.25rem 0;
  transition: background var(--dur-fast) var(--ease);
}
.faq-item-button {
  width: 100%;
  text-align: left;
  padding: 1.25rem 3.5rem 1.25rem 0;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: var(--fs-lg);
  color: var(--nuit-empire);
  position: relative;
  display: block;
  line-height: 1.4;
}
/* Floron or style livre ancien — rotation 45 au ouvert */
.faq-item-button::after {
  content: '';
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none'><circle cx='16' cy='16' r='14' stroke='%23B89864' stroke-width='1'/><path d='M16 6 L18 14 L26 16 L18 18 L16 26 L14 18 L6 16 L14 14 Z' fill='%23B89864' fill-opacity='0.25' stroke='%23841F27' stroke-width='1'/><circle cx='16' cy='16' r='1.5' fill='%23841F27'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform var(--dur) var(--ease);
}
.faq-item.open .faq-item-button::after { transform: rotate(45deg); }
.faq-item-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur) var(--ease), padding var(--dur) var(--ease);
  color: var(--nuit-80);
  line-height: 1.65;
}
.faq-item.open .faq-item-answer {
  max-height: 1200px;
  padding: 0 0 1.5rem 0;
}
.faq-item.open { background: var(--nuit-06); margin: 0 -1rem; padding: 0 1rem; border-radius: 2px; }

/* =========================================================
   CARDS — numerotation romaine en arriere-plan
   ========================================================= */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 1.75rem;
  margin: 2rem 0;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--creme-livre);
  border: 1px solid var(--nuit-10);
  border-radius: 2px;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
  text-decoration: none;
  color: inherit;
  height: 100%;
  position: relative;
  counter-increment: card-num;
}
.cards-grid { counter-reset: card-num; }
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px var(--nuit-10);
  border-color: var(--or-patine);
}
/* Numerotation romaine en arriere-plan */
.card[data-n]::after {
  content: attr(data-n);
  position: absolute;
  bottom: 0.5rem;
  right: 0.75rem;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--or-patine);
  opacity: 0.18;
  line-height: 1;
  pointer-events: none;
}

.card-image {
  aspect-ratio: 3 / 2;
  width: 100%;
  object-fit: cover;
  display: block;
  background: var(--parchemin);
}

.card-body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 1;
}

.card-kicker {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or-patine);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--nuit-empire);
}

.card-excerpt {
  font-size: var(--fs-sm);
  color: var(--nuit-65);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1rem;
}

.card-meta {
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: 1rem;
  color: var(--bleu-parchemin);
  margin-top: auto;
}

.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--creme-95);
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rouge-imperial);
  box-shadow: 0 2px 8px var(--nuit-10);
  z-index: 1;
  font-weight: 600;
}

/* Grille asymetrique 4-3-1 — guides piliers homepage */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.guides-grid .card { height: 100%; }
.guides-grid .g-sq { grid-column: span 4; aspect-ratio: auto; }
.guides-grid .g-feature { grid-column: span 8; }
.guides-grid .g-feature .card-image { aspect-ratio: 21 / 9; }
.guides-grid .g-po { grid-column: span 4; }
.guides-grid .g-po .card-image { aspect-ratio: 3 / 4; }

@media (max-width: 780px) {
  .guides-grid { grid-template-columns: 1fr; }
  .guides-grid .g-sq,
  .guides-grid .g-feature,
  .guides-grid .g-po { grid-column: span 1; }
}

/* =========================================================
   SECTIONS
   ========================================================= */

section { padding: 4.5rem 0; }
.section-dark { background: var(--nuit-empire); color: var(--creme-livre); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--creme-livre); }
.section-dark p { color: var(--creme-75); }
.section-dark .card { background: var(--creme-livre); }
.section-dark .card .card-title,
.section-dark .card h3 { color: var(--nuit-empire); }
.section-dark .card .card-excerpt,
.section-dark .card p { color: var(--nuit-65); }
.section-dark .card .card-kicker { color: var(--or-patine); }
.section-dark .card .card-meta { color: var(--bleu-parchemin); }
.section-alt { background: var(--parchemin); }

.section-kicker {
  display: block;
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--or-patine);
  font-weight: 500;
  margin-bottom: 0.875rem;
}

.section-title {
  font-family: var(--ff-display);
  font-size: var(--fs-h2);
  max-width: 720px;
  margin-bottom: 1rem;
}

.section-intro {
  max-width: 62ch;
  color: var(--nuit-65);
  font-size: var(--fs-lg);
  margin-bottom: 2.5rem;
}
.section-dark .section-intro { color: var(--creme-75); }

/* Section immersive — bibliotheque imperiale + paysage russe XIXe */
.section-immersive {
  position: relative;
  color: var(--creme-livre);
  padding: 8rem 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.section-immersive-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.section-immersive-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(22,32,56,0.90) 0%, rgba(22,32,56,0.55) 80%);
  z-index: 1;
}
.section-immersive .container { position: relative; z-index: 2; }
.section-immersive h2 { color: var(--creme-livre); max-width: 22ch; }
.section-immersive p { color: var(--creme-75); max-width: 54ch; }

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background: var(--nuit-empire);
  color: var(--creme-75);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .logo {
  color: var(--creme-livre);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.footer-brand p {
  color: var(--creme-75);
  font-size: var(--fs-sm);
  max-width: 38ch;
}
.footer-column h4 {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--or-patine);
  margin-bottom: 1rem;
  margin-top: 0;
  font-weight: 500;
}
.footer-column ul { list-style: none; padding: 0; }
.footer-column li { margin-bottom: 0.5rem; }
.footer-column a {
  color: var(--creme-75);
  font-size: var(--fs-sm);
}
.footer-column a:hover { color: var(--or-patine); }

.footer-bottom {
  border-top: 1px solid var(--nuit-20);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--fs-xs);
  color: var(--creme-40);
}
.footer-bottom a { color: var(--creme-75); }

/* =========================================================
   CARTE LIEUX POUCHKINE (Leaflet)
   ========================================================= */

.lieux-map {
  width: 100%;
  height: 520px;
  margin: 2rem 0;
  border: 1px solid var(--or-40);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 8px 32px var(--nuit-10);
}
.leaflet-popup-content {
  font-family: var(--ff-body) !important;
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.leaflet-popup-content h4 {
  font-family: var(--ff-display);
  font-size: 1.125rem;
  margin: 0 0 0.35rem;
  color: var(--nuit-empire);
}
.leaflet-popup-content .popup-year {
  font-family: var(--ff-accent);
  font-style: italic;
  color: var(--or-patine);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
.leaflet-popup-content a { color: var(--rouge-imperial); font-weight: 500; }

.lieux-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.lieu-item {
  padding: 1.5rem 1.25rem;
  background: var(--creme-livre);
  border-left: 3px solid var(--or-patine);
  border-radius: 0 2px 2px 0;
}
.lieu-item h4 {
  font-family: var(--ff-display);
  margin: 0 0 0.35rem;
  font-size: var(--fs-lg);
}
.lieu-item .lieu-year {
  font-family: var(--ff-accent);
  font-style: italic;
  color: var(--or-patine);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  display: block;
}
.lieu-item p { font-size: var(--fs-sm); color: var(--nuit-65); line-height: 1.6; margin-bottom: 0.5rem; }

/* =========================================================
   CHRONOLOGIE TIMELINE
   ========================================================= */

.chrono-wrap {
  max-width: 880px;
  margin: 3rem auto;
  position: relative;
  padding-left: 3rem;
}
.chrono-wrap::before {
  content: '';
  position: absolute;
  left: 1rem; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent 0%, var(--or-patine) 10%, var(--or-patine) 90%, transparent 100%);
}
.chrono-item {
  position: relative;
  padding: 1rem 0 1.75rem 1.5rem;
  border-left: 1px solid var(--nuit-10);
  margin-left: -1rem;
}
.chrono-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 1.4rem;
  width: 12px; height: 12px;
  background: var(--or-patine);
  border: 2px solid var(--creme-livre);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--or-40);
}
.chrono-item.chrono-major::before {
  background: var(--rouge-imperial);
  width: 16px; height: 16px;
  left: -9px;
  top: 1.2rem;
}
.chrono-year {
  display: block;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--or-patine);
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.chrono-title {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  margin-bottom: 0.35rem;
  color: var(--nuit-empire);
}
.chrono-desc {
  font-size: var(--fs-sm);
  color: var(--nuit-65);
  line-height: 1.6;
}
.chrono-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rouge-imperial);
  font-weight: 600;
}
.chrono-link::after { content: ' \2192'; transition: transform var(--dur-fast) var(--ease); display: inline-block; }
.chrono-link:hover::after { transform: translateX(4px); }

/* =========================================================
   RELATED
   ========================================================= */

.related-section {
  padding: 4rem 0;
  background: var(--parchemin);
  margin-top: 4rem;
}
.related-section .section-kicker { text-align: center; }
.related-section .section-title { text-align: center; margin-left: auto; margin-right: auto; margin-bottom: 2.5rem; }

/* =========================================================
   UTILITAIRES
   ========================================================= */

.text-center { text-align: center; }
.text-accent { color: var(--rouge-imperial); }
.text-gold { color: var(--or-patine); }
.text-cyrillic { font-family: var(--ff-display); font-style: italic; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* =========================================================
   REVEAL ANIMATIONS (IntersectionObserver)
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease),
              transform var(--dur-slow) var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 120ms; }
.reveal-delay-2 { transition-delay: 240ms; }
.reveal-delay-3 { transition-delay: 360ms; }

/* =========================================================
   ORNEMENT FILIGRANE (vignette editeur XIXe)
   ========================================================= */

.ornement-watermark {
  position: absolute;
  width: 380px;
  height: 380px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='none' stroke='%23B89864' stroke-width='0.6'><path d='M50 12 L55 25 Q 50 30, 45 25 Z' fill='%23B89864' fill-opacity='0.3'/><circle cx='50' cy='40' r='18'/><circle cx='50' cy='40' r='12'/><path d='M35 40 Q 50 55, 65 40' stroke-width='0.4'/><path d='M38 40 Q 50 50, 62 40' stroke-width='0.3'/><path d='M50 58 L50 82'/><path d='M30 75 Q 50 88, 70 75'/><path d='M25 70 Q 50 95, 75 70' stroke-width='0.4'/><circle cx='50' cy='82' r='3' fill='%23841F27' fill-opacity='0.6'/><path d='M42 88 L58 88' stroke-width='1'/></g></svg>");
  background-repeat: no-repeat;
  background-size: contain;
}
.ornement-tl { top: -60px; left: -60px; }
.ornement-br { bottom: -60px; right: -60px; }

/* =========================================================
   PLAN DU SITE
   ========================================================= */

.sitemap-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.sitemap-col h3 {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--or-patine);
  border-bottom: 1px solid var(--or-40);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  margin-top: 0;
  font-weight: 500;
}
.sitemap-col ul { list-style: none; padding: 0; }
.sitemap-col li { margin-bottom: 0.35rem; }
.sitemap-col a { font-size: var(--fs-sm); color: var(--nuit-80); }
.sitemap-col a:hover { color: var(--rouge-imperial); }

/* =========================================================
   404
   ========================================================= */

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  background: var(--parchemin);
}
.error-page h1 {
  font-size: clamp(5rem, 16vw, 10rem);
  font-style: italic;
  color: var(--rouge-imperial);
  line-height: 1;
  margin-bottom: 1rem;
  font-family: var(--ff-display);
}
.error-page p { max-width: 48ch; margin: 0 auto 2rem; color: var(--nuit-65); }

/* =========================================================
   FORMS (contact)
   ========================================================= */

.contact-form {
  max-width: 640px;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nuit-65);
  font-weight: 500;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 0.85rem 1rem;
  border: 1px solid var(--nuit-20);
  border-radius: 2px;
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  background: var(--creme-livre);
  color: var(--nuit-empire);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--bleu-academie);
  box-shadow: 0 0 0 3px rgba(45, 62, 92, 0.15);
}
.contact-form textarea { min-height: 180px; resize: vertical; }

/* =========================================================
   FOOTNOTES
   ========================================================= */

sup.footnote-ref a {
  color: var(--or-patine);
  font-weight: 600;
  padding: 0 0.15em;
}
.footnotes {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--or-40);
  font-size: var(--fs-sm);
  color: var(--nuit-65);
  max-width: var(--measure-article);
}
.footnotes ol { padding-left: 1.25rem; }
.footnotes li { margin-bottom: 0.5rem; line-height: 1.55; }

/* =========================================================
   PRINT
   ========================================================= */

@media print {
  .site-header, .site-footer, .related-section, .faq-section, .scroll-indicator { display: none; }
  body { background: white; color: black; }
  .hero { min-height: auto; padding: 2rem 0; }
  .hero-overlay { display: none; }
  .article-body img { max-width: 60%; }
}
