/* ============================================================
   Centre Culturel Russe — Magazine editorial independant
   Design system : "Cartel museal & carton d'invitation"
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Cormorant+Garamond:ital,wght@0,500;0,700;1,500;1,700&display=swap');

/* ---------- Design tokens ---------- */
:root {
  /* Couleurs principales */
  --parchemin-creme: #EDE4D3;
  --ivoire-chaud: #F8F1E1;
  --encre-nuit: #1B2845;
  --encre-clair: #3D4D6E;
  --or-patine: #B89B5E;
  --bordeaux-carton: #7A2430;
  --sepia-archive: #8A7754;

  /* Opacites derivees — encre nuit */
  --encre-95: rgba(27, 40, 69, 0.95);
  --encre-80: rgba(27, 40, 69, 0.80);
  --encre-65: rgba(27, 40, 69, 0.65);
  --encre-40: rgba(27, 40, 69, 0.40);
  --encre-20: rgba(27, 40, 69, 0.20);
  --encre-10: rgba(27, 40, 69, 0.10);
  --encre-06: rgba(27, 40, 69, 0.06);

  /* Opacites derivees — parchemin */
  --parchemin-95: rgba(237, 228, 211, 0.95);
  --parchemin-75: rgba(237, 228, 211, 0.75);
  --parchemin-40: rgba(237, 228, 211, 0.40);

  /* Opacites derivees — or patine */
  --or-50: rgba(184, 155, 94, 0.50);
  --or-25: rgba(184, 155, 94, 0.25);

  /* Polices */
  --ff-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --ff-body: 'Lora', Georgia, serif;
  --ff-accent: 'Cormorant Garamond', Georgia, 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;

  /* Espacements rythmiques */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3.5rem;
  --space-xl: 5rem;
  --space-xxl: 7rem;
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  background: var(--parchemin-creme);
  color: var(--encre-nuit);
  font-family: var(--ff-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--bordeaux-carton);
  text-decoration: none;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--dur-fast) var(--ease);
}

a:hover {
  color: var(--encre-nuit);
  text-decoration: underline;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  position: relative;
  padding-bottom: 0.75rem;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 84px;
  height: 1px;
  background: linear-gradient(
    to right,
    var(--or-patine) 0%,
    var(--or-patine) 60%,
    transparent 100%
  );
  transform-origin: left;
  transform: scaleX(0);
  transition: transform var(--dur-slow) var(--ease);
}

h2.visible::after,
.visible h2::after,
section:not(.reveal) h2::after {
  transform: scaleX(1);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  margin-top: var(--space-md);
  margin-bottom: 0.7rem;
  color: var(--encre-clair);
}

h4 {
  font-size: 1.15rem;
  margin-top: var(--space-sm);
  margin-bottom: 0.5rem;
  color: var(--encre-clair);
  font-family: var(--ff-accent);
  font-style: italic;
  font-weight: 700;
}

p {
  margin-bottom: 1.1em;
}

strong, b {
  font-weight: 700;
  color: var(--encre-nuit);
}

em, i {
  font-style: italic;
}

ul, ol {
  margin: 0 0 1.1em 1.2em;
}

li {
  margin-bottom: 0.35em;
}

blockquote {
  margin: var(--space-md) 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-left: 3px solid var(--bordeaux-carton);
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: 1.22rem;
  color: var(--encre-clair);
  line-height: 1.55;
}

hr {
  border: 0;
  height: 1px;
  background: var(--encre-20);
  margin: var(--space-lg) 0;
}

code {
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  background: var(--encre-06);
  border-radius: 3px;
  color: var(--bordeaux-carton);
}

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

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

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

/* ---------- Kickers / labels ---------- */
.kicker {
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bordeaux-carton);
  margin-bottom: 1rem;
  display: inline-block;
}

.kicker-cyr {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  color: var(--or-patine);
  text-transform: uppercase;
}

/* ---------- Fleurons ornementaux ---------- */
.fleuron {
  display: block;
  text-align: center;
  font-size: 1.5rem;
  color: var(--or-patine);
  margin: var(--space-lg) 0;
  opacity: 0.7;
}

.fleuron::before {
  content: '❦';
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--parchemin-95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}

.site-header.scrolled {
  background: var(--parchemin-95);
  border-bottom-color: var(--encre-10);
  box-shadow: 0 1px 20px var(--encre-06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  gap: 1.5rem;
}

.logo {
  font-family: var(--ff-display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--encre-nuit);
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.logo-fleuron {
  color: var(--or-patine);
  font-size: 1.1rem;
  display: inline-block;
  transform: translateY(-2px);
}

.logo:hover {
  color: var(--bordeaux-carton);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  font-family: var(--ff-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--encre-nuit);
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.35rem 0;
  position: relative;
  white-space: nowrap;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--or-patine);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-fast) var(--ease);
}

.main-nav a:hover::after,
.main-nav a[aria-current='page']::after {
  transform: scaleX(1);
  transform-origin: left;
}

.main-nav a[aria-current='page'] {
  color: var(--bordeaux-carton);
}

.lang-switch {
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--encre-20);
  border-radius: 2px;
  color: var(--encre-clair);
  white-space: nowrap;
}

.lang-switch:hover {
  border-color: var(--or-patine);
  color: var(--bordeaux-carton);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 22px;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--encre-nuit);
  transition: transform var(--dur-fast) var(--ease),
    opacity var(--dur-fast) var(--ease);
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--parchemin-creme);
    border-top: 1px solid var(--encre-10);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem var(--gutter);
    gap: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dur) var(--ease);
  }
  body.nav-open .main-nav {
    max-height: 80vh;
    overflow-y: auto;
  }
  .main-nav a {
    font-size: 1.1rem;
    font-family: var(--ff-display);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(400px, 62vh, 640px);
  overflow: hidden;
  background: var(--encre-nuit);
}

.hero-home {
  min-height: clamp(560px, 85vh, 820px);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    var(--encre-65) 0%,
    var(--encre-40) 35%,
    var(--encre-80) 100%
  );
}

.hero-overlay-parchemin {
  background: linear-gradient(
    180deg,
    rgba(27, 40, 69, 0.55) 0%,
    rgba(27, 40, 69, 0.25) 40%,
    rgba(237, 228, 211, 0.88) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: inherit;
  padding-top: clamp(4rem, 12vh, 8rem);
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
  color: var(--parchemin-creme);
}

.hero-home .hero-inner {
  justify-content: center;
  text-align: center;
}

.hero h1,
.hero .hero-title {
  font-size: clamp(2.3rem, 5.5vw, 4.2rem);
  font-weight: 900;
  color: var(--parchemin-creme);
  line-height: 1.08;
  max-width: 14ch;
  margin-bottom: 1rem;
}

.hero-home h1 {
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-kicker {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  letter-spacing: 0.2em;
  color: var(--or-patine);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: block;
}

.hero-description {
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.5;
  color: var(--parchemin-95);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero-home .hero-description {
  margin-left: auto;
  margin-right: auto;
}

.hero-breadcrumb {
  font-family: var(--ff-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--parchemin-75);
  margin-bottom: 1.2rem;
}

.hero-breadcrumb a {
  color: var(--parchemin-75);
  border-bottom: 1px solid transparent;
}

.hero-breadcrumb a:hover {
  color: var(--or-patine);
  border-bottom-color: var(--or-patine);
}

.hero-breadcrumb .sep {
  margin: 0 0.4rem;
  color: var(--or-patine);
  opacity: 0.6;
}

.hero-meta {
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: 1rem;
  color: var(--parchemin-75);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.hero-meta .dot {
  color: var(--or-patine);
  margin: 0 0.2rem;
}

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

.hero-home .hero-cta-group {
  justify-content: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--parchemin-75);
  font-family: var(--ff-body);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  animation: scroll-pulse 3s ease-in-out infinite;
}

.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 28px;
  background: var(--or-patine);
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(4px); }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 1.7rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  transition: background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--bordeaux-carton);
  color: var(--parchemin-creme);
  border-color: var(--bordeaux-carton);
}

.btn-primary:hover {
  background: var(--encre-nuit);
  border-color: var(--encre-nuit);
  color: var(--parchemin-creme);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--parchemin-creme);
  border-color: var(--parchemin-75);
}

.btn-secondary:hover {
  background: var(--or-patine);
  border-color: var(--or-patine);
  color: var(--encre-nuit);
  text-decoration: none;
}

.btn-dark {
  background: var(--encre-nuit);
  color: var(--parchemin-creme);
  border-color: var(--encre-nuit);
}

.btn-dark:hover {
  background: var(--bordeaux-carton);
  border-color: var(--bordeaux-carton);
  color: var(--parchemin-creme);
}

/* ---------- Sections ---------- */
section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.section-intro {
  max-width: 820px;
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  margin-bottom: 0.8rem;
}

.section-intro p {
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--encre-clair);
  line-height: 1.6;
}

.section-alt {
  background: var(--ivoire-chaud);
}

.section-dark {
  background: var(--encre-nuit);
  color: var(--parchemin-creme);
}

.section-dark h2,
.section-dark h3 {
  color: var(--parchemin-creme);
}

.section-dark h2::after {
  background: linear-gradient(
    to right,
    var(--or-patine) 0%,
    var(--or-patine) 60%,
    transparent 100%
  );
}

.section-dark a {
  color: var(--or-patine);
}

.section-dark a:hover {
  color: var(--parchemin-creme);
}

/* ---------- Cards generiques ---------- */
.card {
  background: var(--ivoire-chaud);
  border: 1px solid var(--encre-10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--or-patine);
  box-shadow: 0 12px 40px var(--encre-10);
}

.card-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--encre-06);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.card:hover .card-image img {
  transform: scale(1.04);
}

.card-body {
  padding: 1.4rem 1.5rem 1.7rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-kicker {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--or-patine);
  font-weight: 600;
}

.card-title {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--encre-nuit);
  line-height: 1.25;
}

.card:hover .card-title {
  color: var(--bordeaux-carton);
}

.card-desc {
  font-size: 0.95rem;
  color: var(--encre-clair);
  line-height: 1.55;
  margin-top: 0.3rem;
}

.card-meta {
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--sepia-archive);
  margin-top: auto;
  padding-top: 0.8rem;
}

/* ---------- Grid asymetrique piliers ---------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.pillars-grid > * {
  grid-column: span 4;
}

.pillars-grid > *:nth-child(1),
.pillars-grid > *:nth-child(4) {
  grid-column: span 6;
}

@media (max-width: 900px) {
  .pillars-grid > *,
  .pillars-grid > *:nth-child(1),
  .pillars-grid > *:nth-child(4) {
    grid-column: span 12;
  }
}

@media (max-width: 620px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .pillars-grid > *,
  .pillars-grid > *:nth-child(1),
  .pillars-grid > *:nth-child(4) {
    grid-column: auto;
  }
}

/* ---------- Grid 3 colonnes ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Article page (PageLayout/BlogLayout) ---------- */
.article-wrapper {
  background: var(--parchemin-creme);
}

.article-summary {
  max-width: var(--measure-article);
  margin: var(--space-lg) auto var(--space-md);
  padding: 0 var(--gutter);
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--encre-clair);
  text-align: center;
  position: relative;
}

.article-summary::before,
.article-summary::after {
  content: '❦';
  display: block;
  color: var(--or-patine);
  font-size: 1rem;
  margin: 0.8rem auto;
  opacity: 0.55;
}

.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, var(--measure-article)) 1fr;
  gap: 3rem;
  max-width: var(--measure-wide);
  margin: 0 auto var(--space-xxl);
  padding: 0 var(--gutter);
}

@media (max-width: 1100px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.article-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  font-size: 0.88rem;
  padding-right: 1rem;
  border-right: 1px solid var(--encre-10);
}

@media (max-width: 1100px) {
  .article-toc {
    position: static;
    max-height: none;
    border-right: none;
    border-top: 1px solid var(--encre-20);
    border-bottom: 1px solid var(--encre-20);
    padding: 1rem 0;
    margin-bottom: 1rem;
  }
}

.article-toc-title {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or-patine);
  margin-bottom: 0.8rem;
}

.article-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.article-toc li {
  counter-increment: toc;
  margin-bottom: 0.45rem;
  line-height: 1.4;
}

.article-toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--ff-accent);
  font-style: italic;
  color: var(--or-patine);
  margin-right: 0.5em;
  font-size: 0.85em;
}

.article-toc a {
  color: var(--encre-clair);
  border-bottom: 1px solid transparent;
}

.article-toc a:hover {
  color: var(--bordeaux-carton);
  border-bottom-color: var(--or-patine);
}

.article-body {
  max-width: var(--measure-article);
  min-width: 0;
  font-size: 1.08rem;
  line-height: 1.75;
}

.article-body > *:first-child::first-letter,
.article-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 4.5rem;
  line-height: 0.9;
  color: var(--or-patine);
  margin: 0.1rem 0.6rem 0 0;
  padding-right: 0.1rem;
  border-right: 1px solid var(--or-25);
  padding-left: 0.05rem;
}

.article-body h2 {
  margin-top: var(--space-lg);
}

.article-body h3 {
  margin-top: var(--space-md);
}

.article-body img {
  width: 100%;
  margin: var(--space-md) 0;
  border: 1px solid var(--encre-10);
}

.article-body figure {
  margin: var(--space-md) 0;
}

.article-body figcaption {
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--sepia-archive);
  text-align: center;
  margin-top: 0.6rem;
}

.article-body a {
  color: var(--bordeaux-carton);
  border-bottom: 1px solid var(--or-25);
}

.article-body a:hover {
  color: var(--encre-nuit);
  border-bottom-color: var(--encre-nuit);
  text-decoration: none;
}

.article-body ul {
  padding-left: 1.3rem;
}

.article-body ul li::marker {
  color: var(--or-patine);
}

/* Pull quote */
.pull-quote {
  margin: var(--space-lg) 0;
  padding: 1rem 0 1rem 2rem;
  border-left: 3px solid var(--bordeaux-carton);
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.45;
  color: var(--encre-nuit);
}

.pull-quote cite {
  display: block;
  font-family: var(--ff-body);
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sepia-archive);
  margin-top: 0.8rem;
}

/* ---------- Cartel museal ---------- */
.cartel {
  display: block;
  border: 1px solid var(--or-25);
  background: var(--ivoire-chaud);
  padding: 1rem 1.3rem;
  margin: var(--space-md) 0;
  font-family: var(--ff-accent);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--encre-nuit);
  position: relative;
}

.cartel::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  height: 1px;
  background: var(--or-patine);
  opacity: 0.5;
}

.cartel-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--encre-nuit);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.cartel-meta {
  font-style: italic;
  color: var(--sepia-archive);
  font-size: 0.95rem;
}

.cartel-meta span + span::before {
  content: ' · ';
  color: var(--or-patine);
}

/* ---------- FAQ ---------- */
.faq-section {
  max-width: var(--measure-article);
  margin: var(--space-xl) auto;
  padding: 0 var(--gutter);
}

.faq-title {
  text-align: center;
  margin-bottom: var(--space-md);
}

.faq-title::after {
  left: 50%;
  transform: translateX(-50%) scaleX(0);
}

.faq-title.visible::after,
section:not(.reveal) .faq-title::after {
  transform: translateX(-50%) scaleX(1);
}

.faq-item {
  border-bottom: 1px solid var(--encre-20);
  padding: 1.3rem 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--encre-20);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--encre-nuit);
  line-height: 1.3;
  gap: 1rem;
}

.faq-question:hover {
  color: var(--bordeaux-carton);
}

.faq-ornement {
  font-size: 1rem;
  color: var(--or-patine);
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
}

.faq-item.open .faq-ornement {
  transform: rotate(45deg);
  color: var(--bordeaux-carton);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur) var(--ease),
    padding var(--dur) var(--ease);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--encre-clair);
}

.faq-item.open .faq-answer {
  max-height: 2000px;
  padding-top: 1rem;
}

.faq-answer p {
  margin-bottom: 0.8rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ---------- Related ---------- */
.related-section {
  max-width: var(--measure-wide);
  margin: 0 auto var(--space-xxl);
  padding: var(--space-lg) var(--gutter) 0;
  border-top: 1px solid var(--encre-10);
}

.related-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--encre-nuit);
  color: var(--parchemin-75);
  padding: var(--space-lg) 0 1.5rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: var(--space-lg);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand .logo {
  color: var(--parchemin-creme);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.footer-brand p {
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: 1rem;
  color: var(--parchemin-75);
  line-height: 1.5;
}

.footer-col h4 {
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or-patine);
  font-style: normal;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.55rem;
}

.footer-col a {
  color: var(--parchemin-75);
  border-bottom: 1px solid transparent;
}

.footer-col a:hover {
  color: var(--or-patine);
  border-bottom-color: var(--or-patine);
}

.footer-disclaimer {
  border-top: 1px solid var(--encre-80);
  padding-top: 1.5rem;
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--parchemin-75);
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.footer-copyright {
  margin-top: 1.2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--encre-40);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-copyright a {
  color: var(--parchemin-75);
}

/* ---------- Breadcrumb article ---------- */
.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-family: var(--ff-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--parchemin-75);
}

.breadcrumb-list li + li::before {
  content: '›';
  margin-right: 0.4rem;
  color: var(--or-patine);
}

/* ---------- Homepage intro ---------- */
.home-intro {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.home-intro .kicker {
  display: block;
  margin-bottom: 1rem;
}

.home-intro h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 1.2rem;
}

.home-intro h2::after {
  left: 50%;
  transform: translateX(-50%) scaleX(0);
}

.home-intro h2.visible::after {
  transform: translateX(-50%) scaleX(1);
}

.home-intro p {
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--encre-clair);
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur-slow) var(--ease),
    transform var(--dur-slow) var(--ease);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  *, *::before, *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
}

/* ---------- Themes pages / timeline ---------- */
.theme-hero-media {
  aspect-ratio: 16/9;
}

.timeline {
  position: relative;
  max-width: var(--measure-wide);
  margin: var(--space-lg) auto;
  padding: 0 var(--gutter);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--or-25);
}

.timeline-item {
  position: relative;
  padding: 1rem 0;
  width: 50%;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
  padding-left: 2rem;
}

.timeline-item:nth-child(odd) {
  padding-right: 2rem;
  text-align: right;
}

.timeline-item::before {
  content: '❦';
  position: absolute;
  top: 1.2rem;
  color: var(--or-patine);
  background: var(--parchemin-creme);
  padding: 0 0.3rem;
  font-size: 1rem;
}

.timeline-item:nth-child(odd)::before {
  right: -0.5rem;
}

.timeline-item:nth-child(even)::before {
  left: -0.5rem;
}

.timeline-date {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--bordeaux-carton);
}

.timeline-content {
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--encre-clair);
  margin-top: 0.25rem;
}

@media (max-width: 760px) {
  .timeline::before { left: 1rem; }
  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding-left: 2.5rem;
    padding-right: 0;
    text-align: left;
  }
  .timeline-item::before,
  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::before {
    left: 0.45rem;
    right: auto;
  }
}

/* ---------- Institution card ---------- */
.institution-card {
  background: var(--ivoire-chaud);
  border: 1px solid var(--or-25);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
}

.institution-card h3 {
  font-size: 1.2rem;
  margin: 0;
  color: var(--encre-nuit);
}

.institution-card .institution-address {
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--sepia-archive);
}

.institution-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--encre-clair);
  margin-bottom: 0;
}

.institution-card .institution-link {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bordeaux-carton);
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--or-25);
}

/* ---------- Portrait artiste ---------- */
.portrait-card {
  display: flex;
  flex-direction: column;
  background: var(--ivoire-chaud);
  border: 1px solid var(--encre-10);
  overflow: hidden;
  height: 100%;
}

.portrait-image {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--encre-06);
}

.portrait-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-body {
  padding: 1rem 1.2rem 1.3rem;
}

.portrait-name {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--encre-nuit);
  margin-bottom: 0.2rem;
}

.portrait-dates {
  font-family: var(--ff-accent);
  font-style: italic;
  color: var(--sepia-archive);
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.portrait-discipline {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--or-patine);
  margin-bottom: 0.6rem;
}

.portrait-bio {
  font-size: 0.92rem;
  color: var(--encre-clair);
  line-height: 1.55;
}

/* ---------- Glossaire ---------- */
.glossaire-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2.5rem;
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
}

@media (max-width: 720px) {
  .glossaire-list {
    grid-template-columns: 1fr;
  }
}

.glossaire-entry {
  border-bottom: 1px dashed var(--or-25);
  padding-bottom: 0.8rem;
  margin-bottom: 0.2rem;
}

.glossaire-cyr {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--encre-nuit);
}

.glossaire-translit {
  font-family: var(--ff-accent);
  font-style: italic;
  color: var(--sepia-archive);
  font-size: 0.95rem;
  margin-left: 0.6rem;
}

.glossaire-fr {
  display: block;
  font-size: 0.95rem;
  color: var(--encre-clair);
  margin-top: 0.25rem;
}

/* ---------- Contact ---------- */
.contact-email {
  max-width: 640px;
  margin: var(--space-md) auto;
  padding: 2rem;
  background: var(--ivoire-chaud);
  border: 1px solid var(--or-25);
  text-align: center;
}

.contact-email strong {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  color: var(--encre-nuit);
}

.contact-email p {
  margin-bottom: 1rem;
}

/* ---------- 404 ---------- */
.page-404 {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-xl) var(--gutter);
}

.page-404 .kicker-cyr {
  font-size: 7rem;
  line-height: 1;
  color: var(--or-patine);
  opacity: 0.6;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--or-patine);
  outline-offset: 3px;
}

/* Selection */
::selection {
  background: var(--or-25);
  color: var(--encre-nuit);
}
