/* ===================================================
   canton-quingey.fr — Design system "Terroir & Lumière"
   =================================================== */

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

/* --- Tokens couleurs --- */
:root {
  --sapin:      #2C5530;
  --sapin-80:   rgba(44, 85, 48, 0.80);
  --sapin-60:   rgba(44, 85, 48, 0.60);
  --sapin-20:   rgba(44, 85, 48, 0.20);
  --sapin-10:   rgba(44, 85, 48, 0.10);

  --calcaire:   #C8B89A;
  --calcaire-60: rgba(200, 184, 154, 0.60);
  --calcaire-20: rgba(200, 184, 154, 0.20);

  --loue:       #4A8FA0;
  --loue-80:    rgba(74, 143, 160, 0.80);
  --loue-20:    rgba(74, 143, 160, 0.20);

  --comte:      #C9A550;
  --comte-80:   rgba(201, 165, 80, 0.80);
  --comte-20:   rgba(201, 165, 80, 0.20);

  --fond:       #F7F4EE;
  --fond-alt:   #EDE8DF;
  --encre:      #2A2A2A;
  --encre-70:   rgba(42, 42, 42, 0.70);
  --encre-40:   rgba(42, 42, 42, 0.40);
  --encre-15:   rgba(42, 42, 42, 0.15);

  /* Polices */
  --ff-display: 'EB Garamond', Georgia, serif;
  --ff-body:    'Source Sans 3', system-ui, sans-serif;
  --ff-quote:   '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:  200ms;
  --dur:       400ms;
  --dur-slow:  600ms;
}

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

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

body {
  font-family: var(--ff-body);
  font-weight: 400;
  color: var(--encre);
  background: var(--fond);
  line-height: 1.75;
  min-height: 100dvh;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.site-header.scrolled {
  background: rgba(247, 244, 238, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--encre-15);
}

/* Header transparent sur hero — texte blanc */
.site-header:not(.scrolled) .header-logo { color: #fff; }
.site-header:not(.scrolled) .header-logo span { color: rgba(255,255,255,0.70); }
.site-header:not(.scrolled) .nav-link { color: rgba(255,255,255,0.90); }
.site-header:not(.scrolled) .nav-link:hover { color: #fff; background: rgba(255,255,255,0.15); }
.site-header:not(.scrolled) .nav-cta {
  background: rgba(255,255,255,0.20);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.40);
}
.site-header:not(.scrolled) .nav-cta:hover { background: rgba(255,255,255,0.30) !important; }

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--sapin);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.header-logo span { font-weight: 400; color: var(--encre-70); font-size: 0.85rem; }

nav.site-nav { display: flex; align-items: center; gap: 0.25rem; }

.nav-link {
  font-family: var(--ff-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--encre);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: color var(--dur-fast), background var(--dur-fast);
  letter-spacing: 0.01em;
}

.nav-link:hover { color: var(--sapin); background: var(--sapin-10); }

.nav-cta {
  background: var(--sapin);
  color: var(--fond) !important;
  border-radius: 4px;
  padding: 0.4rem 1rem !important;
}

.nav-cta:hover { background: #23452A !important; }

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-dropdown-toggle::after {
  content: '▾';
  font-size: 0.7rem;
  transition: transform var(--dur-fast);
}

.nav-dropdown:hover .nav-dropdown-toggle::after { transform: rotate(-180deg); }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--fond);
  border: 1px solid var(--encre-15);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 0.5rem 0;
  z-index: 200;
}

.nav-dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--encre);
  transition: background var(--dur-fast), color var(--dur-fast);
}

.dropdown-menu a:hover { background: var(--sapin-10); color: var(--sapin); }

/* Hamburger mobile */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--encre);
  border-radius: 2px;
  transition: transform var(--dur-fast), opacity var(--dur-fast);
}

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }

  .site-nav {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--fond);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem var(--gutter);
    overflow-y: auto;
  }

  .nav-open .site-nav { display: flex; }

  .nav-link { width: 100%; padding: 0.75rem 0; border-radius: 0; border-bottom: 1px solid var(--encre-15); }

  .dropdown-menu { position: static; box-shadow: none; border: none; padding: 0 0 0 1rem; background: transparent; }
  .nav-dropdown:hover .dropdown-menu { display: none; }
  .dropdown-menu.open { display: block; }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 92dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--encre);
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  transition: opacity var(--dur-slow);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--sapin-80) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: calc(64px + 3rem) var(--gutter) 3rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-kicker {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--comte);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-kicker::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--comte);
}

.hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 720px;
}

.hero-description {
  font-family: var(--ff-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  line-height: 1.6;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--comte);
  color: var(--encre);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background var(--dur-fast), transform var(--dur-fast);
  letter-spacing: 0.02em;
}

.btn-primary:hover { background: #b8922e; transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  color: #fff;
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.3);
  text-decoration: none;
  transition: background var(--dur-fast);
}

.btn-secondary:hover { background: rgba(255,255,255,0.25); }

/* Hero article (pages internes) */
.hero--article { min-height: 55dvh; }
.hero--article .hero-inner { padding-top: calc(64px + 2rem); padding-bottom: 2rem; }
.hero--article .hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); }

.hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.70);
  flex-wrap: wrap;
}

.hero-breadcrumb a { color: rgba(255,255,255,0.70); text-decoration: none; }
.hero-breadcrumb a:hover { color: #fff; }
.hero-breadcrumb span { color: rgba(255,255,255,0.45); }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.70);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.60);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--ff-body);
  font-weight: 500;
  cursor: pointer;
  animation: bounce 2s infinite;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.50), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* --- SVG map filigrane --- */
.hero-map-watermark {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: min(45%, 600px);
  opacity: 0.12;
  pointer-events: none;
}

/* --- Contenu principal --- */
main { padding-top: 0; }

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

/* --- Section intro homepage --- */
.section-intro {
  padding: 5rem var(--gutter);
  max-width: var(--measure-wide);
  margin: 0 auto;
  text-align: center;
}

.section-kicker {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sapin);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.section-kicker::before,
.section-kicker::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--sapin-60);
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--encre);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.section-desc {
  font-family: var(--ff-body);
  font-size: 1.05rem;
  color: var(--encre-70);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Section guides --- */
.section-guides {
  padding: 4rem var(--gutter);
  max-width: var(--measure-wide);
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-header-left { display: flex; flex-direction: column; gap: 0.5rem; }

.view-all-link {
  font-family: var(--ff-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sapin);
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--dur-fast);
}

.view-all-link:hover { gap: 0.7rem; }

/* Grille guides — pattern 4-3-1-2 */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.guide-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: var(--encre);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-fast) var(--ease);
}

.guide-card:hover { transform: translateY(-3px); }

.guide-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  opacity: 0.65;
  transition: opacity var(--dur) var(--ease);
}

.guide-card.portrait img { aspect-ratio: 3/4; }
.guide-card.feature { grid-column: span 2; }
.guide-card.feature img { aspect-ratio: 16/9; }

.guide-card:hover img { opacity: 0.5; }

.guide-card-body {
  position: absolute;
  inset: 0;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(transparent 30%, rgba(0,0,0,0.75));
}

.guide-card-cat {
  font-family: var(--ff-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--comte);
  margin-bottom: 0.35rem;
}

.guide-card-title {
  font-family: var(--ff-display);
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.guide-card.feature .guide-card-title { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

@media (max-width: 900px) {
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-card.feature { grid-column: span 2; }
  .guide-card.portrait img { aspect-ratio: 4/3; }
}

@media (max-width: 600px) {
  .guides-grid { grid-template-columns: 1fr; }
  .guide-card.feature { grid-column: span 1; }
}

/* --- Section immersive --- */
.section-immersive {
  position: relative;
  min-height: 60dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin: 4rem 0;
}

.section-immersive img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.section-immersive-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--sapin-80), rgba(74, 143, 160, 0.60));
}

.section-immersive-inner {
  position: relative;
  z-index: 2;
  padding: 4rem var(--gutter);
  max-width: 680px;
  color: #fff;
}

.section-immersive-inner .section-kicker { color: var(--comte); }
.section-immersive-inner .section-kicker::before,
.section-immersive-inner .section-kicker::after { background: var(--comte-80); }
.section-immersive-inner .section-title { color: #fff; }
.section-immersive-inner .section-desc { color: rgba(255,255,255,0.85); }

/* --- Blog cards --- */
.section-blog {
  padding: 4rem var(--gutter);
  max-width: var(--measure-wide);
  margin: 0 auto;
  background: var(--fond-alt);
}

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

.blog-card {
  text-decoration: none;
  color: var(--encre);
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  background: var(--fond);
  border: 1px solid var(--encre-15);
  transition: box-shadow var(--dur-fast), transform var(--dur-fast);
}

.blog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.10); transform: translateY(-2px); }

.blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.blog-card-cat {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--loue);
}

.blog-card-title {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--encre);
}

.blog-card-summary {
  font-size: 0.875rem;
  color: var(--encre-70);
  line-height: 1.6;
  flex: 1;
}

.blog-card-date {
  font-size: 0.75rem;
  color: var(--encre-40);
  font-family: var(--ff-body);
}

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

/* --- Layout article (PageLayout / BlogLayout) --- */
.page-wrapper {
  display: grid;
  grid-template-columns: 240px minmax(0, var(--measure-article)) auto;
  gap: 2rem;
  max-width: calc(var(--measure-wide));
  margin: 0 auto;
  padding: 3rem var(--gutter) 5rem;
}

/* TOC sticky */
.toc-aside {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
}

.toc-aside h2 {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--encre-40);
  margin-bottom: 0.75rem;
}

.toc-list { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }

.toc-list a {
  font-size: 0.8rem;
  color: var(--encre-70);
  text-decoration: none;
  line-height: 1.4;
  padding: 0.2rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  display: block;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}

.toc-list a:hover, .toc-list a.active {
  color: var(--sapin);
  border-left-color: var(--sapin);
}

/* Article body */
.article-summary {
  font-family: var(--ff-quote);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--encre-70);
  line-height: 1.7;
  border-left: 3px solid var(--calcaire);
  padding-left: 1.5rem;
  margin-bottom: 2.5rem;
}

.article-body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--encre);
}

.article-body h2 {
  font-family: var(--ff-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--sapin);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sapin-20);
  letter-spacing: -0.02em;
  line-height: 1.2;
  position: relative;
}

.article-body h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--sapin);
}

.article-body h3 {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--encre);
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.article-body p { margin-bottom: 1.35rem; }

.article-body p:first-of-type::first-letter {
  font-family: var(--ff-display);
  font-size: 3.8rem;
  font-weight: 700;
  float: left;
  line-height: 0.78;
  padding-right: 0.12em;
  color: var(--sapin);
  margin-top: 0.08em;
}

.article-body a {
  color: var(--loue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--loue-20);
  transition: color var(--dur-fast), text-decoration-color var(--dur-fast);
}

.article-body a:hover { color: var(--sapin); text-decoration-color: var(--sapin-60); }

.article-body ul, .article-body ol {
  margin: 0.75rem 0 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.article-body blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--comte);
  background: var(--comte-20);
  border-radius: 0 6px 6px 0;
  font-family: var(--ff-quote);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--encre);
}

.article-body strong { font-weight: 600; }

.article-body img {
  width: 100%;
  border-radius: 8px;
  margin: 2rem 0;
}

/* Image en float à 35% et 65% */
.img-body {
  width: 100%;
  border-radius: 8px;
  margin: 2rem 0;
  height: auto;
}

/* Related pages */
.related-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--encre-15);
}

.related-section h2 {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--encre-40);
  margin-bottom: 1.25rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.related-card {
  padding: 1.25rem;
  border: 1px solid var(--encre-15);
  border-radius: 8px;
  text-decoration: none;
  color: var(--encre);
  background: var(--fond);
  transition: border-color var(--dur-fast), background var(--dur-fast);
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
}

.related-card::before {
  content: '→';
  display: block;
  color: var(--sapin);
  margin-bottom: 0.5rem;
  font-family: var(--ff-body);
  font-size: 1rem;
}

.related-card:hover { border-color: var(--sapin); background: var(--sapin-10); }

/* Layout responsive */
@media (max-width: 1100px) {
  .page-wrapper { grid-template-columns: 200px minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .page-wrapper { grid-template-columns: 1fr; }
  .toc-aside { display: none; }
}

/* --- FAQ accordion --- */
.faq-section {
  margin-top: 3rem;
  padding: 2.5rem;
  background: var(--fond-alt);
  border-radius: 12px;
}

.faq-section-title {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--encre);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }

.faq-item {
  border: 1px solid var(--encre-15);
  border-radius: 8px;
  background: var(--fond);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--encre);
  line-height: 1.4;
  transition: background var(--dur-fast);
}

.faq-question:hover { background: var(--sapin-10); }

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sapin-10);
  color: var(--sapin);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast);
}

.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--sapin); color: #fff; }

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.925rem;
  color: var(--encre-70);
  line-height: 1.75;
}

.faq-item.open .faq-answer { display: block; }

/* --- Blog listing --- */
.blog-listing {
  padding: 3rem var(--gutter) 5rem;
  max-width: var(--measure-wide);
  margin: 0 auto;
}

.blog-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

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

/* --- Pages système (a-propos, contact, CGU, mentions) --- */
.page-simple {
  max-width: var(--measure-article);
  margin: 0 auto;
  padding: 5rem var(--gutter);
}

.page-simple h1 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--sapin);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-simple h2 {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--encre);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.page-simple p { margin-bottom: 1.25rem; color: var(--encre-70); line-height: 1.8; }
.page-simple ul { margin: 0.5rem 0 1.25rem 1.5rem; color: var(--encre-70); }
.page-simple a { color: var(--loue); text-decoration: underline; }

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-family: var(--ff-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--encre);
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--ff-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--encre-15);
  border-radius: 6px;
  background: #fff;
  color: var(--encre);
  transition: border-color var(--dur-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sapin);
  box-shadow: 0 0 0 3px var(--sapin-10);
}

.form-group textarea { min-height: 160px; resize: vertical; }

.btn-submit {
  align-self: flex-start;
  background: var(--sapin);
  color: #fff;
  border: none;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--dur-fast);
  letter-spacing: 0.02em;
}

.btn-submit:hover { background: #23452A; }

/* --- Footer --- */
.site-footer {
  background: var(--encre);
  color: rgba(255,255,255,0.65);
  padding: 4rem var(--gutter) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.footer-brand { display: flex; flex-direction: column; gap: 0.75rem; }

.footer-logo {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}

.footer-slogan {
  font-family: var(--ff-quote);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  max-width: 240px;
  line-height: 1.5;
}

.footer-section h3 {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
  margin-bottom: 1rem;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.60);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--measure-wide);
  margin: 1.5rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-heritage {
  font-family: var(--ff-quote);
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  max-width: 400px;
  text-align: right;
}

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

@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-heritage { text-align: left; }
}

/* --- Animations reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.reveal.visible { opacity: 1; transform: none; }

/* --- 404 --- */
.page-404 {
  min-height: 80dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem var(--gutter);
}

.page-404-inner { max-width: 560px; }

.page-404-code {
  font-family: var(--ff-display);
  font-size: 8rem;
  font-weight: 700;
  color: var(--sapin-20);
  line-height: 1;
  letter-spacing: -0.04em;
}

.page-404-title {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--encre);
  margin-bottom: 1rem;
}

.page-404-desc { color: var(--encre-70); margin-bottom: 2rem; }
