@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,400;1,9..144,500;1,9..144,600&family=Inter:wght@400;500;600;700&family=Caveat:wght@400;500;600;700&display=swap');

/* =========================================================
   LEPICERIERUSSE.FR — DATCHA & SAMOVAR DESIGN SYSTEM
   ========================================================= */

:root {
  /* PALETTE — 7 couleurs principales */
  --nuit-encre: #0F1E2E;      /* Texte principal, hero overlays */
  --gzhel: #1E3A5F;           /* Primaire — bleu porcelaine Gzhel */
  --gzhel-clair: #4A6B8A;     /* Liens, secondaire */
  --palekh: #9E2A2B;          /* Accent — rouge laque Palekh */
  --or-patine: #B8935A;       /* Filets, numerotations */
  --bois-blanchi: #D9CFC0;    /* Fond alt — bois datcha */
  --neige-chaude: #F5EFE6;    /* Fond principal — blanc casse chaud */

  /* DERIVES OPACITE nuit */
  --nuit-80: rgba(15, 30, 46, 0.80);
  --nuit-65: rgba(15, 30, 46, 0.65);
  --nuit-40: rgba(15, 30, 46, 0.40);
  --nuit-20: rgba(15, 30, 46, 0.20);
  --nuit-10: rgba(15, 30, 46, 0.10);
  --nuit-06: rgba(15, 30, 46, 0.06);

  /* DERIVES OPACITE neige */
  --neige-95: rgba(245, 239, 230, 0.95);
  --neige-75: rgba(245, 239, 230, 0.75);
  --neige-40: rgba(245, 239, 230, 0.40);

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

  /* POLICES */
  --ff-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --ff-accent: 'Caveat', 'Brush Script MT', cursive;

  /* 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-encre);
  background: var(--neige-chaude);
  -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(--gzhel);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--palekh); }

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

/* =========================================================
   TITRES
   ========================================================= */

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

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; }

/* Filet Khokhloma sous H2 dans article-body */
.article-body h2 {
  position: relative;
  padding-bottom: 0.75rem;
}
.article-body h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 80px;
  height: 8px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 8'><path d='M0 4 Q 5 0, 10 4 T 20 4 T 30 4 T 40 4 T 50 4 T 60 4 T 70 4 T 80 4' stroke='%23B8935A' stroke-width='1.5' fill='none'/><circle cx='10' cy='4' r='1.5' fill='%239E2A2B'/><circle cx='30' cy='4' r='1.5' fill='%239E2A2B'/><circle cx='50' cy='4' r='1.5' fill='%239E2A2B'/><circle cx='70' cy='4' r='1.5' fill='%239E2A2B'/></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.5); }

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

p { margin-bottom: 1.15rem; }

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

/* Lettrine Gzhel au premier paragraphe d'un article */
.article-body > p:first-of-type::first-letter {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 3.75em;
  float: left;
  line-height: 0.85;
  margin: 0.25rem 0.75rem 0 0;
  color: var(--neige-chaude);
  background: var(--gzhel);
  padding: 0.35rem 0.55rem 0.4rem;
  border-radius: 3px;
  box-shadow: 0 2px 0 var(--or-patine);
}

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-encre); font-weight: 600; }
em { font-style: italic; }

blockquote {
  border-left: 4px solid var(--palekh);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: var(--fs-xl);
  color: var(--nuit-encre);
  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(--bois-blanchi);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  color: var(--palekh);
}

/* =========================================================
   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(--neige-95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--dur-fast) var(--ease),
              padding var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
  padding: 1rem 0;
}
.site-header.scrolled {
  box-shadow: 0 4px 24px var(--nuit-10);
  padding: 0.625rem 0;
}
.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: 700;
  font-size: 1.375rem;
  color: var(--nuit-encre);
  line-height: 1;
}
.logo svg { width: 36px; height: 36px; }
.logo:hover { color: var(--gzhel); }

/* NAV */
.main-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.main-nav a {
  color: var(--nuit-encre);
  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(--palekh);
  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-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-encre);
  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(--neige-chaude);
    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); }
}

/* =========================================================
   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(15, 30, 46, 0.92) 0%,
      rgba(15, 30, 46, 0.55) 45%,
      rgba(15, 30, 46, 0.35) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--neige-chaude);
  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(--neige-chaude);
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  max-width: 20ch;
}

.hero-description {
  font-size: var(--fs-lg);
  color: var(--neige-75);
  max-width: 60ch;
  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(--palekh);
  color: var(--neige-chaude);
}
.btn-primary:hover {
  background: var(--neige-chaude);
  color: var(--palekh);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--nuit-20);
}
.btn-secondary {
  background: transparent;
  color: var(--neige-chaude);
  border-color: var(--or-patine);
}
.btn-secondary:hover {
  background: var(--or-patine);
  color: var(--nuit-encre);
}

.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(--neige-75);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}
.breadcrumb a { color: var(--or-patine); }
.breadcrumb a:hover { color: var(--neige-chaude); }
.breadcrumb .sep { margin: 0 0.5rem; opacity: 0.6; }

.article-meta {
  font-size: var(--fs-xs);
  color: var(--neige-75);
  letter-spacing: 0.05em;
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

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

.article-summary {
  max-width: 780px;
  margin: 3rem auto 2rem;
  padding: 0 var(--gutter);
  font-family: var(--ff-display);
  font-style: italic;
  font-size: var(--fs-xl);
  line-height: 1.55;
  color: var(--nuit-encre);
  border-left: 3px solid var(--palekh);
  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: 2rem;
  border-bottom: 1px solid var(--nuit-06);
  transition: padding-left var(--dur-fast) var(--ease);
}
.toc-sticky li::before {
  content: counter(toc, decimal-leading-zero) ".";
  position: absolute;
  left: 0;
  top: 0.4rem;
  font-family: var(--ff-display);
  font-style: italic;
  color: var(--or-patine);
  font-size: 0.875em;
}
.toc-sticky li:hover { padding-left: 2.3rem; }
.toc-sticky a {
  color: var(--nuit-80);
  display: block;
  line-height: 1.4;
}
.toc-sticky a:hover { color: var(--palekh); }

.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
   ========================================================= */

.pull-quote {
  max-width: var(--measure-article);
  margin: 2.75rem auto;
  padding: 1.75rem 0 1.75rem 2rem;
  border-left: 4px solid var(--palekh);
  font-family: var(--ff-display);
  font-style: italic;
  font-size: var(--fs-xl);
  line-height: 1.45;
  color: var(--nuit-encre);
  position: relative;
}
.pull-quote cite {
  display: block;
  font-family: var(--ff-accent);
  font-style: normal;
  font-size: 1.125rem;
  color: var(--or-patine);
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
}
.pull-quote cite::before { content: '— '; }

/* =========================================================
   FAQ
   ========================================================= */

.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-encre);
  position: relative;
  display: block;
  line-height: 1.4;
}
.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='%23B8935A' stroke-width='1'/><path d='M16 8 L16 24 M8 16 L24 16' stroke='%239E2A2B' stroke-width='1.2' stroke-linecap='round'/><circle cx='16' cy='16' r='2' fill='%23B8935A'/></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 (articles, recettes, guides)
   ========================================================= */

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

.card {
  display: flex;
  flex-direction: column;
  background: var(--neige-chaude);
  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;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px var(--nuit-10);
  border-color: var(--or-patine);
}
.card::before {
  /* Corne haut-droit papier — effet corne de carte */
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 24px; height: 24px;
  background:
    linear-gradient(225deg, var(--bois-blanchi) 50%, transparent 50%);
  z-index: 2;
}

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

.card-body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 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-encre);
}

.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-size: 1rem;
  color: var(--gzhel-clair);
  margin-top: auto;
}

.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--neige-95);
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
  font-family: var(--ff-accent);
  font-size: 0.95rem;
  color: var(--palekh);
  box-shadow: 0 2px 8px var(--nuit-10);
  z-index: 1;
}

/* 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-encre); color: var(--neige-chaude); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--neige-chaude); }
.section-dark p { color: var(--neige-75); }

/* Cards inside section-dark keep their own contrast */
.section-dark .card { background: var(--neige-chaude); }
.section-dark .card .card-title,
.section-dark .card h3 { color: var(--nuit-encre); }
.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(--gzhel-clair); }
.section-alt { background: var(--bois-blanchi); }

.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: 60ch;
  color: var(--nuit-65);
  font-size: var(--fs-lg);
  margin-bottom: 2.5rem;
}
.section-dark .section-intro { color: var(--neige-75); }

/* Section immersive — datcha + samovar */
.section-immersive {
  position: relative;
  color: var(--neige-chaude);
  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(15,30,46,0.88) 0%, rgba(15,30,46,0.55) 80%);
  z-index: 1;
}
.section-immersive .container { position: relative; z-index: 2; }
.section-immersive h2 { color: var(--neige-chaude); max-width: 20ch; }
.section-immersive p { color: var(--neige-75); max-width: 50ch; }

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

.site-footer {
  background: var(--nuit-encre);
  color: var(--neige-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(--neige-chaude);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.footer-brand p {
  color: var(--neige-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(--neige-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(--neige-40);
}
.footer-bottom a { color: var(--neige-75); }

/* =========================================================
   RECIPE LAYOUT
   ========================================================= */

.recipe-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.recipe-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: var(--bois-blanchi);
  border: 1px solid var(--or-40);
  border-radius: 2px;
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  color: var(--nuit-encre);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.recipe-badge-icon {
  color: var(--palekh);
  font-family: var(--ff-accent);
  font-size: 1rem;
}

.recipe-body {
  display: grid;
  gap: 2.5rem;
  margin: 2.5rem 0;
}
@media (min-width: 900px) {
  .recipe-body { grid-template-columns: 280px 1fr; }
}

.recipe-ingredients {
  background: var(--bois-blanchi);
  padding: 1.75rem;
  border-radius: 2px;
  position: sticky;
  top: 6rem;
  align-self: start;
}
.recipe-ingredients h3 {
  margin-top: 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--or-patine);
  font-size: var(--fs-lg);
}
.recipe-ingredients ul { list-style: none; padding: 0; margin: 0; }
.recipe-ingredients li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--nuit-20);
  font-size: var(--fs-sm);
  color: var(--nuit-80);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.recipe-ingredients li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--palekh);
  flex-shrink: 0;
}

.recipe-instructions {
  counter-reset: step;
}
.recipe-instructions h3 { font-size: var(--fs-xl); margin-top: 0; }
.recipe-step {
  counter-increment: step;
  padding: 1.25rem 0 1.25rem 3.5rem;
  position: relative;
  border-bottom: 1px solid var(--nuit-10);
}
.recipe-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.25rem;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--or-patine);
}
.recipe-step h4 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: var(--fs-lg);
}
.recipe-step p { margin-bottom: 0.4rem; color: var(--nuit-80); }

.recipe-nutrition {
  margin: 2.5rem 0;
  padding: 1.75rem;
  background: var(--neige-95);
  border: 1px solid var(--or-40);
  border-radius: 2px;
}
.recipe-nutrition h3 { margin-top: 0; font-size: var(--fs-lg); }
.recipe-nutrition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.recipe-nutrition-item {
  text-align: center;
  font-size: var(--fs-xs);
}
.recipe-nutrition-item strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.25rem;
  color: var(--palekh);
  margin-bottom: 0.2rem;
}

/* =========================================================
   GLOSSAIRE / TABLES
   ========================================================= */

.glossary-search {
  margin: 2rem 0;
  max-width: 480px;
}
.glossary-search input {
  width: 100%;
  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(--neige-chaude);
}
.glossary-search input:focus {
  outline: none;
  border-color: var(--gzhel);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.15);
}

.glossary-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: var(--fs-sm);
}
.glossary-table thead {
  background: var(--gzhel);
  color: var(--neige-chaude);
}
.glossary-table th {
  padding: 0.9rem 1rem;
  text-align: left;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.glossary-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--nuit-10);
  vertical-align: top;
}
.glossary-table tr:hover td { background: var(--nuit-06); }
.glossary-table td.cyrillic {
  font-family: var(--ff-display);
  font-weight: 500;
  color: var(--gzhel);
}
.glossary-table td.translit {
  font-style: italic;
  color: var(--or-patine);
}

/* =========================================================
   ANNUAIRE EPICERIES
   ========================================================= */

.map-container {
  width: 100%;
  height: 480px;
  margin: 2rem 0;
  border: 1px solid var(--nuit-20);
  border-radius: 2px;
  overflow: hidden;
}

.epicerie-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.epicerie-item {
  padding: 1.5rem;
  background: var(--neige-chaude);
  border: 1px solid var(--nuit-10);
  border-radius: 2px;
  transition: border-color var(--dur-fast) var(--ease);
}
.epicerie-item:hover { border-color: var(--or-patine); }
.epicerie-item h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: var(--fs-lg);
}
.epicerie-item address {
  font-style: normal;
  color: var(--nuit-65);
  font-size: var(--fs-sm);
  margin-bottom: 0.75rem;
}
.epicerie-item .phone, .epicerie-item .web {
  display: inline-block;
  font-size: var(--fs-sm);
  margin-right: 1rem;
}

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

.related-section {
  padding: 4rem 0;
  background: var(--bois-blanchi);
  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(--palekh); }
.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; }

/* =========================================================
   SAMOVAR FILIGRANE (decorative background)
   ========================================================= */

.samovar-watermark {
  position: absolute;
  width: 380px;
  height: 380px;
  opacity: 0.07;
  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='%23B8935A' stroke-width='0.5'><ellipse cx='50' cy='60' rx='28' ry='24'/><rect x='45' y='32' width='10' height='8'/><ellipse cx='50' cy='28' rx='16' ry='4'/><circle cx='50' cy='88' r='8'/><path d='M75 58 Q 82 60, 75 68'/><path d='M25 58 Q 18 60, 25 68'/><circle cx='50' cy='60' r='2' fill='%23B8935A'/></g></svg>");
  background-repeat: no-repeat;
  background-size: contain;
}
.samovar-tl { top: -60px; left: -60px; }
.samovar-br { bottom: -60px; right: -60px; }

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

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

/* =========================================================
   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(--palekh); }

/* =========================================================
   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(--neige-chaude);
  color: var(--nuit-encre);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--gzhel);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.15);
}
.contact-form textarea { min-height: 180px; resize: vertical; }

/* =========================================================
   PRINT (recettes)
   ========================================================= */

@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%; }
}
