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

/* ============================================================
   DESIGN TOKENS — Izba & vapeur
   (Distinct de Bibliotheque linguistique, Datcha&samovar, Protocole slave, Cahier bilingue, etc.)
   ============================================================ */
:root {
  /* Couleurs — Izba & vapeur */
  --isba-bois: #6D4530;       /* bois brulé par la vapeur */
  --isba-bois-clair: #8B5D45;
  --isba-foyer: #B5462E;      /* brique rouge du poele */
  --isba-foyer-clair: #D6593C;
  --vapeur: #E8E4DD;          /* fond principal blanc vapeur */
  --vapeur-alt: #D4CEC1;
  --neige: #F8F6F1;
  --charbon: #2B221D;         /* noir charbon texte */
  --ecorce: #8F7561;          /* texte secondaire bouleau */
  --bordure: #C7BEAF;

  /* Dérivés opacité */
  --bois-55: rgba(109, 69, 48, 0.55);
  --bois-75: rgba(109, 69, 48, 0.75);
  --charbon-80: rgba(43, 34, 29, 0.80);

  /* Polices */
  --ff-display: 'Merriweather', Georgia, serif;
  --ff-body: 'DM Sans', -apple-system, system-ui, sans-serif;

  /* Mesures */
  --measure-article: 720px;
  --measure-wide: 1200px;
  --measure-hero: 1440px;
  --gutter: clamp(1rem, 4vw, 2rem);

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 380ms;
  --dur-slow: 600ms;
}

/* ============================================================
   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: 17px;
  line-height: 1.65;
  color: var(--charbon);
  background: var(--vapeur);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--isba-foyer); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--isba-bois); }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--isba-bois);
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.015em; font-weight: 900; }
h2 {
  font-size: clamp(1.5rem, 3.1vw, 2.05rem);
  margin: 3rem 0 1rem;
  padding-bottom: 0.75rem;
  position: relative;
}
h2::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 40px; height: 2px;
  background: var(--isba-foyer);
}
h3 { font-size: clamp(1.18rem, 2.2vw, 1.45rem); margin: 2rem 0 0.75rem; color: var(--isba-bois-clair); font-weight: 700; }
p { margin-bottom: 1.25rem; }
ul, ol { margin: 0 0 1.25rem 1.5rem; }
li { margin-bottom: 0.5rem; }
strong { color: var(--isba-bois); font-weight: 700; }
em { font-family: var(--ff-display); font-style: italic; color: var(--isba-bois-clair); }

/* Signature unique : petite icône SVG veniki en filigrane dans les H2 */
.article-body h2 {
  position: relative;
}
.article-body h2[data-veniki]::before {
  content: "";
  position: absolute;
  top: -1.2rem;
  right: -0.2rem;
  width: 80px;
  height: 80px;
  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='%236D4530' stroke-width='1.5' stroke-linecap='round'><path d='M50 15 L50 85'/><path d='M50 30 Q35 25 28 35'/><path d='M50 30 Q65 25 72 35'/><path d='M50 45 Q33 40 24 52'/><path d='M50 45 Q67 40 76 52'/><path d='M50 60 Q32 57 22 70'/><path d='M50 60 Q68 57 78 70'/><ellipse cx='28' cy='35' rx='6' ry='10' transform='rotate(-30 28 35)' fill='%236D4530' fill-opacity='0.3'/><ellipse cx='72' cy='35' rx='6' ry='10' transform='rotate(30 72 35)' fill='%236D4530' fill-opacity='0.3'/><ellipse cx='24' cy='52' rx='7' ry='11' transform='rotate(-35 24 52)' fill='%236D4530' fill-opacity='0.3'/><ellipse cx='76' cy='52' rx='7' ry='11' transform='rotate(35 76 52)' fill='%236D4530' fill-opacity='0.3'/><ellipse cx='22' cy='70' rx='8' ry='12' transform='rotate(-40 22 70)' fill='%236D4530' fill-opacity='0.3'/><ellipse cx='78' cy='70' rx='8' ry='12' transform='rotate(40 78 70)' fill='%236D4530' fill-opacity='0.3'/><path d='M45 85 Q50 92 55 85' stroke-width='2'/></g></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.article-body h2 > * { position: relative; z-index: 1; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--vapeur);
  border-bottom: 1px solid var(--bordure);
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.scrolled {
  background: var(--neige);
  box-shadow: 0 2px 12px rgba(43, 34, 29, 0.08);
}
.header-inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-logo {
  font-family: var(--ff-display);
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--isba-bois);
  text-decoration: none;
  letter-spacing: -0.015em;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.site-logo .logo-accent {
  color: var(--isba-foyer);
  font-style: italic;
  font-weight: 700;
}
.site-logo:hover { color: var(--isba-bois-clair); }
.site-nav {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}
.site-nav a {
  font-size: 0.92rem;
  color: var(--charbon);
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--isba-foyer);
  transition: width var(--dur) var(--ease);
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { width: 100%; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--isba-bois);
  margin: 5px 0;
  transition: all var(--dur) var(--ease);
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--vapeur);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: 0 4px 16px rgba(43, 34, 29, 0.10);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--dur) var(--ease);
  }
  body.nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  body.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--isba-bois);
  color: var(--vapeur);
  text-align: center;
}
.hero-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(109, 69, 48, 0.50) 0%, rgba(43, 34, 29, 0.72) 100%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--measure-article);
  padding: 4rem var(--gutter);
}
.hero-kicker {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--isba-foyer-clair);
  margin-bottom: 1.25rem;
}
.hero h1 {
  color: var(--neige);
  margin-bottom: 1.5rem;
}
.hero-lead {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.1rem, 1.9vw, 1.3rem);
  color: rgba(248, 246, 241, 0.92);
  max-width: 620px;
  margin: 0 auto 2rem;
  font-weight: 400;
  line-height: 1.5;
}
.hero-home { min-height: 78vh; }
.hero-page { min-height: 48vh; }

/* ============================================================
   BUTTONS — carrés, pas de radius
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--ff-body);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  border-radius: 0;
}
.btn-primary {
  background: var(--isba-foyer);
  color: var(--neige);
  border-color: var(--isba-foyer);
}
.btn-primary:hover {
  background: var(--isba-bois);
  color: var(--neige);
  border-color: var(--isba-bois);
}
.btn-outline {
  background: transparent;
  color: var(--neige);
  border-color: var(--neige);
}
.btn-outline:hover {
  background: var(--neige);
  color: var(--isba-bois);
}
.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   LAYOUT
   ============================================================ */
main { display: block; }
.container {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.article-container {
  max-width: var(--measure-article);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: 5rem 0; }
.section-alt { background: var(--vapeur-alt); }
.section-dark { background: var(--isba-bois); color: var(--neige); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--neige); }
.section-dark h2::after { background: var(--isba-foyer-clair); }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title .kicker {
  display: block;
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--isba-foyer);
  margin-bottom: 1rem;
}
.section-title h2 { display: inline-block; }
.section-title h2::after { left: 50%; transform: translateX(-50%); }

/* ============================================================
   ARTICLE BODY
   ============================================================ */
.article-summary {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--isba-bois-clair);
  padding: 2rem 0;
  border-top: 1px solid var(--bordure);
  border-bottom: 1px solid var(--bordure);
  margin-bottom: 2.5rem;
}
.article-body {
  font-size: 1.06rem;
  line-height: 1.75;
}
.article-body h2:first-child { margin-top: 0; }
.article-body img {
  margin: 2.5rem auto;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.article-body blockquote {
  border-left: 3px solid var(--isba-foyer);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--isba-bois-clair);
}
.article-body figcaption {
  font-size: 0.88rem;
  color: var(--ecorce);
  text-align: center;
  margin-top: -1.5rem;
  margin-bottom: 2rem;
  font-style: italic;
}

/* ============================================================
   CARDS — rectangulaires, bordure bois
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.card {
  background: var(--neige);
  border: 1px solid var(--isba-bois);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  border-radius: 0;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(109, 69, 48, 0.18);
  border-color: var(--isba-foyer);
}
.card-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--vapeur-alt);
}
.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.03); }
.card-body { padding: 1.75rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-kicker {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--isba-foyer);
  margin-bottom: 0.5rem;
}
.card-title {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--isba-bois);
}
.card-desc {
  font-size: 0.95rem;
  color: var(--ecorce);
  margin-bottom: 1rem;
  flex-grow: 1;
  line-height: 1.6;
}
.card-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--isba-foyer);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.card-link::after { content: " →"; }

/* ============================================================
   FAQ (<details> natif)
   ============================================================ */
.faq {
  max-width: var(--measure-article);
  margin: 3rem auto;
}
.faq details {
  border-bottom: 1px solid var(--bordure);
  padding: 1.3rem 0;
}
.faq summary {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--isba-bois);
  transition: color var(--dur) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--ff-display);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--isba-foyer);
  transition: transform var(--dur) var(--ease);
  flex-shrink: 0;
}
.faq summary:hover { color: var(--isba-foyer); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > :not(summary) {
  margin-top: 1rem;
  color: var(--charbon);
  line-height: 1.7;
}

/* ============================================================
   TABLES
   ============================================================ */
.article-body table,
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}
.article-body th,
.article-body td,
.table th,
.table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--bordure);
}
.article-body th,
.table th {
  background: var(--vapeur-alt);
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--isba-bois);
  border-bottom: 2px solid var(--isba-foyer);
  font-size: 1rem;
}

/* ============================================================
   ANNUAIRE / guide régional
   ============================================================ */
.annuaire-region {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--bordure);
}
.annuaire-region:last-child { border-bottom: none; }
.annuaire-disclaimer {
  background: var(--vapeur-alt);
  border-left: 3px solid var(--isba-foyer);
  padding: 1.35rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.96rem;
  color: var(--isba-bois-clair);
}
.annuaire-disclaimer strong { color: var(--isba-bois); }

/* ============================================================
   CONTRE-INDICATIONS callout (page santé)
   ============================================================ */
.health-warning {
  background: #FFF0E8;
  border-top: 3px solid var(--isba-foyer);
  border-bottom: 3px solid var(--isba-foyer);
  padding: 1.75rem 1.75rem;
  margin: 2.5rem 0;
  font-family: var(--ff-body);
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--charbon);
}
.health-warning h3 {
  color: var(--isba-foyer);
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.health-warning ul { margin: 0.5rem 0 0 1.25rem; }
.health-warning strong { color: var(--isba-foyer); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--neige);
  border: 1px solid var(--isba-bois);
  padding: 3rem 2.5rem;
  text-align: center;
}
.contact-card .btn { margin: 1rem 0 1.5rem; }
.contact-meta {
  font-size: 0.9rem;
  color: var(--ecorce);
  margin-top: 1.5rem;
}

/* ============================================================
   DISCLAIMER LEGAL
   ============================================================ */
.legal-callout {
  background: var(--vapeur-alt);
  border-top: 2px solid var(--isba-foyer);
  border-bottom: 2px solid var(--isba-foyer);
  padding: 2rem;
  margin: 2.5rem 0;
  font-family: var(--ff-body);
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--charbon);
}
.legal-callout strong { color: var(--isba-bois); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--charbon);
  color: var(--vapeur-alt);
  padding: 4rem 0 2rem;
}
.footer-grid {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand {
  font-family: var(--ff-display);
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--neige);
  margin-bottom: 1rem;
}
.footer-brand .logo-accent {
  color: var(--isba-foyer-clair);
  font-style: italic;
  font-weight: 700;
}
.footer-desc {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--vapeur-alt);
  max-width: 380px;
}
.footer-col h4 {
  font-family: var(--ff-body);
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--isba-foyer-clair);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.75rem; }
.footer-col a { color: var(--vapeur-alt); font-size: 0.94rem; }
.footer-col a:hover { color: var(--neige); }
.footer-bottom {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 2rem var(--gutter) 0;
  border-top: 1px solid rgba(248, 246, 241, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--vapeur-alt);
}

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

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   UTILS
   ============================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  font-size: 0.84rem;
  color: var(--ecorce);
  margin: 2rem auto 1rem;
  max-width: var(--measure-article);
  padding: 0 var(--gutter);
}
.breadcrumb a { color: var(--ecorce); }
.breadcrumb a:hover { color: var(--isba-foyer); }
.breadcrumb-sep { margin: 0 0.5rem; color: var(--bordure); }

/* ============================================================
   404
   ============================================================ */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem var(--gutter);
  background: var(--vapeur);
}
.error-page h1 { font-size: clamp(3rem, 8vw, 5rem); color: var(--isba-foyer); margin-bottom: 1rem; }
.error-page p { font-size: 1.18rem; margin-bottom: 2rem; color: var(--isba-bois-clair); max-width: 560px; }
