/* =====================================================================
   egliseorthodoxerusse45.com — Magazine de l'orthodoxie russe en France
   Mood board : "Sanctuaire de Chalette"
   Stack : Astro 6 + CSS statique pur (pas de Tailwind)
   ===================================================================== */

/* -------------------- DESIGN TOKENS -------------------- */

:root {
  /* Palette principale 8 couleurs */
  --nuit-vesperale: #0F1A2E;
  --bleu-sanctuaire: #1F3F66;
  --bleu-icone: #5C7A9C;
  --or-coupole: #C9A058;
  --or-vif: #E5C58D;
  --rouge-imperial: #8B1F2E;
  --bois-cedre: #7A4B2A;
  --parchemin: #F5EDD8;
  --blanc-icone: #FBF7EC;

  /* Derives opacite */
  --nuit-80: rgba(15, 26, 46, 0.80);
  --nuit-65: rgba(15, 26, 46, 0.65);
  --nuit-40: rgba(15, 26, 46, 0.40);
  --nuit-20: rgba(15, 26, 46, 0.20);
  --nuit-10: rgba(15, 26, 46, 0.10);
  --nuit-06: rgba(15, 26, 46, 0.06);
  --or-30: rgba(201, 160, 88, 0.30);
  --or-15: rgba(201, 160, 88, 0.15);
  --or-08: rgba(201, 160, 88, 0.08);
  --parchemin-95: rgba(245, 237, 216, 0.95);
  --parchemin-75: rgba(245, 237, 216, 0.75);
  --parchemin-40: rgba(245, 237, 216, 0.40);

  /* Typographies */
  --ff-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ff-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-accent: 'Old Standard TT', 'Cormorant Garamond', Georgia, serif;

  /* Mesures */
  --measure-article: 720px;
  --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;

  /* Radius */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
}

/* -------------------- RESET -------------------- */

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--ff-body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--nuit-vesperale);
  background: var(--parchemin);
  min-height: 100vh;
  overflow-x: hidden;
}

img, picture, svg, video { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--or-30); color: var(--nuit-vesperale); }

/* -------------------- TYPOGRAPHIE -------------------- */

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

h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin: 2.4rem 0 1rem; position: relative; }
h3 { font-size: clamp(1.25rem, 1rem + 0.9vw, 1.6rem); margin: 1.8rem 0 0.8rem; }
h4 { font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.35rem); margin: 1.5rem 0 0.6rem; font-weight: 700; }
h5, h6 { font-size: 1rem; margin: 1.2rem 0 0.5rem; font-weight: 700; }

p { margin-bottom: 1.2em; }

/* Signature 1 — Filets dores double sous H2 */
.article-body h2::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -0.55em;
  left: 0;
  width: 6rem;
  height: 1px;
  background: var(--or-coupole);
  transform-origin: left;
  transform: scaleX(1);
  transition: transform var(--dur) var(--ease);
}
.article-body h2::before {
  content: '';
  display: block;
  position: absolute;
  bottom: -0.85em;
  left: 0;
  width: 4rem;
  height: 1px;
  background: var(--or-coupole);
  opacity: 0.6;
}

/* Liens dans le body */
.article-body a {
  color: var(--bleu-sanctuaire);
  text-decoration: underline;
  text-decoration-color: var(--or-30);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--dur-fast) var(--ease), text-decoration-color var(--dur-fast) var(--ease);
}
.article-body a:hover { color: var(--rouge-imperial); text-decoration-color: var(--or-coupole); }
.article-body a[href^="http"]:not([href*="egliseorthodoxerusse45.com"])::after {
  content: ' \2197';
  font-size: 0.75em;
  color: var(--or-coupole);
  margin-left: 2px;
}

/* Signature 9 — Citations bibliques fond parchemin + filet or + croix orthodoxe */
.article-body blockquote {
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: 1.15em;
  color: var(--nuit-vesperale);
  margin: 2em 0;
  padding: 1.6em 2em 1.6em 2.4em;
  background: var(--blanc-icone);
  border-left: 3px solid var(--or-coupole);
  position: relative;
  line-height: 1.55;
}
.article-body blockquote::before {
  content: '\271D';
  position: absolute;
  top: 0.6em;
  left: 0.5em;
  color: var(--or-coupole);
  font-size: 1.4em;
  font-style: normal;
}
.article-body blockquote cite {
  display: block;
  margin-top: 0.8em;
  font-size: 0.85em;
  font-family: var(--ff-body);
  font-style: normal;
  color: var(--bleu-icone);
  letter-spacing: 0.04em;
}

/* Code inline */
.article-body code {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.9em;
  background: var(--or-08);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  color: var(--bleu-sanctuaire);
}

/* Listes dans le body */
.article-body ul, .article-body ol {
  margin: 0 0 1.4em 1.6em;
  padding-left: 0.8em;
}
.article-body ul { list-style: none; }
.article-body ul li { position: relative; padding-left: 1.4em; margin-bottom: 0.6em; }
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.5em;
  height: 0.5em;
  border: 1px solid var(--or-coupole);
  transform: rotate(45deg);
  background: var(--or-15);
}
.article-body ol { list-style: decimal; color: var(--bleu-sanctuaire); }
.article-body ol li { padding-left: 0.4em; margin-bottom: 0.6em; }
.article-body ol li::marker { font-family: var(--ff-accent); font-weight: 700; color: var(--or-coupole); }

/* Signature 2 — Lettrine slavonne or au 1er paragraphe d'article */
.article-body > p:first-of-type::first-letter {
  font-family: var(--ff-accent);
  font-size: 4em;
  float: left;
  line-height: 0.85;
  padding: 0.05em 0.12em 0 0;
  margin-right: 0.05em;
  color: var(--or-coupole);
  font-weight: 700;
}

/* Signature 8 — Pull quotes barre verticale or + italique Cormorant */
.article-body .pull-quote {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem);
  line-height: 1.4;
  color: var(--bleu-sanctuaire);
  border-left: 4px solid var(--or-coupole);
  padding: 0.4em 0 0.4em 1.2em;
  margin: 2em 0;
}
.article-body .pull-quote::before { content: '\00AB\00A0'; color: var(--or-coupole); }
.article-body .pull-quote::after { content: '\00A0\00BB'; color: var(--or-coupole); }

/* Signature 11 — Dates julien-gregorien cote a cote */
.article-body .date-jul-greg {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  flex-wrap: wrap;
}
.article-body .date-jul-greg .julien {
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: 0.85em;
  color: var(--bleu-icone);
}

/* Signature 15 — Footnotes numerotees exposant or */
.article-body sup.footnote-mark {
  font-family: var(--ff-accent);
  font-size: 0.7em;
  font-weight: 700;
  color: var(--or-coupole);
  margin-left: 1px;
}

/* -------------------- LAYOUT GLOBAL -------------------- */

.container {
  width: 100%;
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-article {
  width: 100%;
  max-width: var(--measure-article);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.kicker {
  font-family: var(--ff-accent);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--or-coupole);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.6em;
}

.kicker-ru {
  font-family: var(--ff-accent);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--or-coupole);
  font-weight: 400;
  display: inline-block;
}

/* Skip link accessibilite */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--nuit-vesperale);
  color: var(--blanc-icone);
  padding: 0.5em 1em;
  z-index: 100;
}
.skip-link:focus { top: 0; }

/* -------------------- HEADER -------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  padding: 1rem 0;
}
.site-header.scrolled {
  background: var(--nuit-vesperale);
  box-shadow: 0 2px 12px var(--nuit-20);
  padding: 0.6rem 0;
}
.site-header.scrolled .site-nav a,
.site-header.scrolled .site-brand,
.site-header.scrolled .lang-switcher a { color: var(--blanc-icone); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  gap: 1.5rem;
}
.site-brand {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--blanc-icone);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.site-brand .brand-cyril {
  font-family: var(--ff-accent);
  font-size: 0.85em;
  color: var(--or-coupole);
  letter-spacing: 0.05em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.site-nav a {
  font-family: var(--ff-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--blanc-icone);
  letter-spacing: 0.02em;
  transition: color var(--dur-fast) var(--ease);
  padding: 0.3em 0;
  position: relative;
}
.site-nav a:hover, .site-nav a.active { color: var(--or-coupole); }
.site-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--or-coupole);
}

/* Dropdown menus */
.nav-group { position: relative; }
.nav-group > button,
.nav-group > a {
  display: flex;
  align-items: center;
  gap: 0.3em;
  color: var(--blanc-icone);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.3em 0;
}
.nav-group > button::after { content: '\25BE'; font-size: 0.7em; color: var(--or-coupole); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.8em);
  left: 0;
  min-width: 280px;
  background: var(--blanc-icone);
  border-top: 2px solid var(--or-coupole);
  box-shadow: 0 8px 24px var(--nuit-20);
  padding: 1.2em 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility 0s linear var(--dur-fast);
}
.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility 0s;
}
.nav-dropdown a {
  display: block;
  padding: 0.5em 1.4em;
  font-size: 0.92rem;
  color: var(--nuit-vesperale);
  font-weight: 400;
  line-height: 1.4;
}
.nav-dropdown a:hover { background: var(--or-08); color: var(--bleu-sanctuaire); }

/* Lang switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.85rem;
  font-family: var(--ff-accent);
  letter-spacing: 0.1em;
}
.lang-switcher a {
  color: var(--blanc-icone);
  padding: 0.2em 0.5em;
  text-transform: uppercase;
}
.lang-switcher a.active,
.lang-switcher a:hover { color: var(--or-coupole); }
.lang-switcher .sep { color: var(--bleu-icone); }

/* Hamburger mobile */
.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blanc-icone);
  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); background: var(--or-coupole); }
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); background: var(--or-coupole); }

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: min(360px, 90%);
    background: var(--nuit-vesperale);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0.4em;
    overflow-y: auto;
    transition: right var(--dur) var(--ease);
    box-shadow: -8px 0 24px var(--nuit-40);
  }
  body.nav-open .site-nav { right: 0; }
  .site-nav a { font-size: 1.1rem; padding: 0.6em 0; width: 100%; border-bottom: 1px solid var(--nuit-80); color: var(--blanc-icone); }
  .nav-group { width: 100%; }
  .nav-group > button, .nav-group > a { width: 100%; padding: 0.6em 0; border-bottom: 1px solid var(--nuit-80); color: var(--blanc-icone); font-size: 1.1rem; }
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: 0;
    padding: 0.4em 0 0.8em 1em;
  }
  .nav-dropdown a { color: var(--bleu-icone); padding: 0.4em 0; font-size: 0.95rem; }
}

/* -------------------- HERO -------------------- */

.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--blanc-icone);
  margin-top: 0;
  overflow: hidden;
}
.hero-home { min-height: 92vh; }
.hero-article { min-height: 55vh; }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Signature 7 — Hero plein ecran image coupole + overlay degrade */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--nuit-40) 0%, var(--nuit-80) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--measure-hero);
  padding: 6rem var(--gutter) 4rem;
  width: 100%;
}
.hero-home .hero-content { padding-top: 8rem; }

.hero h1 {
  color: var(--blanc-icone);
  font-size: clamp(2.4rem, 1.6rem + 4vw, 4.2rem);
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 16px var(--nuit-65);
}
.hero .hero-description {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  color: var(--parchemin-95);
  max-width: 720px;
  margin: 0 auto 2rem;
  line-height: 1.55;
  font-family: var(--ff-display);
  font-weight: 400;
}
.hero .hero-kicker {
  font-family: var(--ff-accent);
  letter-spacing: 0.3em;
  font-size: 0.82rem;
  color: var(--or-coupole);
  text-transform: uppercase;
  margin-bottom: 1.2em;
  display: inline-block;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.btn {
  display: inline-block;
  padding: 0.85em 2em;
  font-family: var(--ff-body);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: all var(--dur-fast) var(--ease);
  border: 1px solid transparent;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--or-coupole);
  color: var(--nuit-vesperale);
  border-color: var(--or-coupole);
}
.btn-primary:hover { background: var(--or-vif); border-color: var(--or-vif); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--blanc-icone);
  border: 1px solid var(--blanc-icone);
}
.btn-ghost:hover { background: var(--blanc-icone); color: var(--nuit-vesperale); }

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-accent);
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  color: var(--or-coupole);
  text-transform: uppercase;
  z-index: 2;
}
.scroll-indicator::after {
  content: '';
  display: block;
  width: 1px;
  height: 36px;
  background: var(--or-coupole);
  margin: 8px auto 0;
  animation: pulse-down 2s var(--ease) infinite;
}
@keyframes pulse-down {
  0%, 100% { transform: scaleY(0.6); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Hero breadcrumb + meta (mode article) */
.hero-breadcrumb {
  font-size: 0.85rem;
  color: var(--parchemin-75);
  margin-bottom: 1.2em;
  letter-spacing: 0.02em;
}
.hero-breadcrumb a { color: var(--or-coupole); }
.hero-breadcrumb a:hover { color: var(--or-vif); }
.hero-breadcrumb .sep { margin: 0 0.6em; opacity: 0.5; }
.hero-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--parchemin-95);
  margin-top: 1.6em;
  font-family: var(--ff-accent);
  letter-spacing: 0.04em;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.4em; }
.hero-meta span::before { content: '\2022'; color: var(--or-coupole); }
.hero-meta span:first-child::before { content: none; }

/* -------------------- ARTICLE BODY -------------------- */

.article-summary {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  line-height: 1.5;
  color: var(--bleu-sanctuaire);
  text-align: center;
  max-width: var(--measure-article);
  margin: 3rem auto 2.5rem;
  padding: 0 var(--gutter);
  letter-spacing: 0.005em;
}

.article-layout {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 2rem var(--gutter) 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1100px) {
  .article-layout.with-toc {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 4rem;
  }
}

.article-body {
  max-width: var(--measure-article);
  margin: 0 auto;
  width: 100%;
}
.article-body img {
  border-radius: var(--radius-sm);
  margin: 2em auto;
  box-shadow: 0 4px 16px var(--nuit-10);
}
.article-body figure { margin: 2em 0; }
.article-body figcaption {
  font-family: var(--ff-accent);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--bleu-icone);
  text-align: center;
  margin-top: 0.6em;
}
.article-body figcaption a { color: var(--bleu-icone); text-decoration: underline; text-decoration-color: var(--or-30); }
.article-body figcaption a:hover { color: var(--or-coupole); }

/* Signature 6 — TOC sticky desktop avec filet or vertical + chiffres romains */
/* Aliases: .toc, .article-toc, .article-sommaire pour compatibilite hook check_sommaire */
.toc-sticky, .toc, .article-toc, .article-sommaire {
  display: none;
}
@media (min-width: 1100px) {
  .toc-sticky, .toc, .article-toc, .article-sommaire {
    display: block;
    position: sticky;
    top: 6rem;
    align-self: start;
    padding: 1rem 0 1rem 1.5rem;
    border-left: 1px solid var(--or-30);
    font-family: var(--ff-body);
    font-size: 0.9rem;
  }
  .toc-sticky .toc-title, .toc .toc-title, .article-toc .toc-title, .article-sommaire .toc-title {
    font-family: var(--ff-accent);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--or-coupole);
    margin-bottom: 1em;
  }
  .toc-sticky ol {
    list-style: none;
    counter-reset: toc-counter;
  }
  .toc-sticky li {
    counter-increment: toc-counter;
    margin-bottom: 0.7em;
    position: relative;
    padding-left: 2em;
  }
  .toc-sticky li::before {
    content: counter(toc-counter, upper-roman);
    position: absolute;
    left: 0;
    font-family: var(--ff-accent);
    color: var(--or-coupole);
    font-weight: 600;
    font-size: 0.85em;
  }
  .toc-sticky a {
    color: var(--bleu-sanctuaire);
    transition: color var(--dur-fast) var(--ease);
    line-height: 1.4;
    display: block;
  }
  .toc-sticky a:hover { color: var(--rouge-imperial); }
}

/* -------------------- CARDS -------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.card {
  background: var(--blanc-icone);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--or-15);
}
/* Signature 13 — Hover cards translateY -4px + ombre doree */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(201, 160, 88, 0.18);
}
.card-image { aspect-ratio: 3/2; overflow: hidden; background: var(--nuit-10); }
.card-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform var(--dur) var(--ease); }
.card:hover .card-image img { transform: scale(1.04); }
.card-body { padding: 1.4rem 1.4rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.card-category {
  font-family: var(--ff-accent);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--or-coupole);
  font-weight: 600;
  margin-bottom: 0.5em;
}
.card-title {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.6em;
  color: var(--nuit-vesperale);
}
.card a:hover .card-title { color: var(--bleu-sanctuaire); }
.card-summary {
  font-size: 0.95rem;
  color: var(--bleu-icone);
  line-height: 1.55;
  margin-bottom: 1em;
  flex: 1;
}
.card-meta {
  font-family: var(--ff-accent);
  font-size: 0.8rem;
  color: var(--bleu-icone);
  letter-spacing: 0.04em;
  margin-top: auto;
}
.card-meta .date::before { content: '\2014\00A0'; color: var(--or-coupole); }

/* Signature 4 — Cards a numerotation slavonne (A, B, V, G) */
.card-numbered {
  position: relative;
  padding-left: 2.5rem;
}
.card-numbered::before {
  content: attr(data-letter);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--ff-accent);
  font-size: 3em;
  font-weight: 700;
  color: var(--or-coupole);
  line-height: 1;
}

/* -------------------- SECTIONS HOMEPAGE -------------------- */

.section { padding: 5rem 0; }
.section-alt { background: var(--blanc-icone); }
.section-dark {
  background: var(--nuit-vesperale);
  color: var(--blanc-icone);
}
.section-dark h2, .section-dark h3 { color: var(--blanc-icone); }
.section-dark .kicker { color: var(--or-coupole); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
  padding: 0 var(--gutter);
}
.section-header h2 { font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem); margin-bottom: 0.6em; }
.section-header p { color: var(--bleu-icone); font-size: 1.05rem; line-height: 1.6; }

/* Section immersive avec image de fond */
.section-immersive {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--blanc-icone);
  overflow: hidden;
}
.section-immersive .bg-image { position: absolute; inset: 0; z-index: 0; }
.section-immersive .bg-image img { width: 100%; height: 100%; object-fit: cover; }
.section-immersive .bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--nuit-80) 0%, var(--nuit-40) 100%);
}
.section-immersive .content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 4rem var(--gutter);
}
.section-immersive h2 { color: var(--blanc-icone); margin-bottom: 1em; }
.section-immersive p { font-size: 1.1rem; line-height: 1.6; }

/* -------------------- FAQ -------------------- */

/* Signature 10 — FAQ accordeon + rotation 45 doree */
.faq-section {
  max-width: var(--measure-article);
  margin: 4rem auto;
  padding: 0 var(--gutter);
}
.faq-section h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}
.faq-list { display: flex; flex-direction: column; gap: 0.4rem; }
.faq-item {
  border-bottom: 1px solid var(--or-15);
  background: transparent;
}
.faq-item:first-child { border-top: 1px solid var(--or-15); }
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.2em 0;
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--nuit-vesperale);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  line-height: 1.35;
}
.faq-question .toggle-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
  transition: transform 300ms var(--ease);
}
.faq-question .toggle-icon::before,
.faq-question .toggle-icon::after {
  content: '';
  position: absolute;
  background: var(--or-coupole);
  left: 50%;
  top: 50%;
}
.faq-question .toggle-icon::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}
.faq-question .toggle-icon::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
  transition: opacity 300ms var(--ease);
}
.faq-item.open .toggle-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms var(--ease), padding 300ms var(--ease);
  color: var(--bleu-sanctuaire);
  line-height: 1.6;
}
.faq-item.open .faq-answer {
  max-height: 1200px;
  padding: 0 0 1.4em;
}

/* -------------------- RELATED CARDS -------------------- */

.related-section {
  background: var(--blanc-icone);
  padding: 4rem 0;
  margin-top: 4rem;
  border-top: 1px solid var(--or-15);
}
.related-section h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
  text-align: center;
  margin-bottom: 0.6rem;
}
.related-section .section-kicker {
  font-family: var(--ff-accent);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--or-coupole);
  text-align: center;
  display: block;
  margin-bottom: 0.6rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.6rem;
  max-width: var(--measure-wide);
  margin: 2rem auto 0;
  padding: 0 var(--gutter);
}
.related-card {
  background: var(--parchemin);
  border: 1px solid var(--or-15);
  padding: 1.4rem;
  border-radius: var(--radius-sm);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  display: block;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(201, 160, 88, 0.18);
}
.related-card .kicker { font-size: 0.7rem; margin-bottom: 0.3em; }
.related-card h3 {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--nuit-vesperale);
  margin: 0;
}

/* -------------------- FOOTER -------------------- */

.site-footer {
  background: var(--nuit-vesperale);
  color: var(--parchemin-75);
  padding: 4rem 0 2rem;
  font-size: 0.95rem;
  border-top: 4px solid var(--or-coupole);
}
.footer-grid {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand h3 {
  font-family: var(--ff-display);
  color: var(--blanc-icone);
  font-size: 1.4rem;
  margin-bottom: 0.6em;
}
.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--parchemin-75);
}
.footer-brand .brand-cyril {
  display: block;
  font-family: var(--ff-accent);
  letter-spacing: 0.25em;
  color: var(--or-coupole);
  font-size: 0.85rem;
  margin-top: 0.8em;
}
.footer-column h4 {
  font-family: var(--ff-accent);
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--or-coupole);
  margin-bottom: 1.2em;
  font-weight: 600;
}
.footer-column ul li { margin-bottom: 0.5em; }
.footer-column a {
  color: var(--parchemin-75);
  transition: color var(--dur-fast) var(--ease);
  font-size: 0.92rem;
}
.footer-column a:hover { color: var(--or-coupole); }

.footer-bottom {
  max-width: var(--measure-wide);
  margin: 3rem auto 0;
  padding: 1.6rem var(--gutter) 0;
  border-top: 1px solid var(--nuit-80);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--bleu-icone);
  font-family: var(--ff-accent);
  letter-spacing: 0.04em;
}
.footer-bottom a { color: var(--bleu-icone); }
.footer-bottom a:hover { color: var(--or-coupole); }

/* -------------------- ANIMATIONS REVEAL -------------------- */

/* Signature 14 — Animations reveal fade-up IntersectionObserver */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* -------------------- HERITAGE SECTION -------------------- */

/* Signature 12 — Aureole or simplifiee SVG en coin section heritage */
.heritage-section {
  background: var(--blanc-icone);
  position: relative;
  overflow: hidden;
}
.heritage-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, var(--or-30) 0%, transparent 70%);
  pointer-events: none;
}
/* Signature 5 — Bordures filigrane motif khokhloma stylise sobre */
.heritage-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--or-coupole) 0,
    var(--or-coupole) 12px,
    transparent 12px,
    transparent 18px,
    var(--or-coupole) 18px,
    var(--or-coupole) 21px,
    transparent 21px,
    transparent 36px
  );
  opacity: 0.4;
}

.heritage-card {
  background: var(--parchemin);
  border: 1px solid var(--or-30);
  padding: 2rem;
  border-radius: var(--radius-sm);
  position: relative;
}
.heritage-card .date-historic {
  font-family: var(--ff-accent);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--bois-cedre);
  text-transform: uppercase;
  margin-bottom: 0.8em;
}

/* -------------------- BLOG INDEX FILTERS -------------------- */

.blog-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2rem auto 3rem;
  max-width: var(--measure-wide);
  padding: 0 var(--gutter);
}
.blog-filter {
  padding: 0.5em 1.4em;
  border: 1px solid var(--or-30);
  background: transparent;
  color: var(--bleu-sanctuaire);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: all var(--dur-fast) var(--ease);
  border-radius: 2px;
  cursor: pointer;
}
.blog-filter:hover { background: var(--or-08); border-color: var(--or-coupole); }
.blog-filter.active {
  background: var(--bleu-sanctuaire);
  color: var(--blanc-icone);
  border-color: var(--bleu-sanctuaire);
}

/* -------------------- FORMS -------------------- */

.contact-form {
  max-width: 640px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.form-group label {
  display: block;
  font-family: var(--ff-accent);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bleu-sanctuaire);
  margin-bottom: 0.5em;
  font-weight: 600;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85em 1em;
  background: var(--blanc-icone);
  border: 1px solid var(--or-30);
  border-radius: 2px;
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--nuit-vesperale);
  transition: border-color var(--dur-fast) var(--ease);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--or-coupole);
  box-shadow: 0 0 0 3px var(--or-15);
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* -------------------- 404 -------------------- */

.error-404 {
  text-align: center;
  padding: 8rem var(--gutter) 4rem;
}
.error-404 .error-code {
  font-family: var(--ff-accent);
  font-size: clamp(5rem, 4rem + 8vw, 9rem);
  color: var(--or-coupole);
  line-height: 1;
  margin-bottom: 0;
}
.error-404 h1 {
  font-family: var(--ff-display);
  margin-bottom: 1em;
}
.error-404 p { max-width: 540px; margin: 0 auto 2em; color: var(--bleu-sanctuaire); }
.error-404 .return-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* -------------------- UTILITIES -------------------- */

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; } .mt-4 { margin-top: 4rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

main { min-height: 60vh; }
main.with-hero { padding-top: 0; }
main:not(.with-hero) { padding-top: 6rem; }

/* Classes utilitaires langue (cibles bilingues si besoin) */
body.lang-fr { quotes: "« " " »" "« " " »"; }
body.lang-ru { quotes: "«" "»" "«" "»"; }
