/* ========================================
   fcomte.fr — Design "Blason Comtois"
   Portail éditorial Franche-Comté
   ======================================== */

/* ---- DESIGN TOKENS ---- */
:root {
  /* Couleurs héraldiques */
  --rouge:        #8B1A2A;
  --rouge-light:  #A8263A;
  --rouge-dark:   #5C1019;
  --or:           #C8952C;
  --or-vif:       #D4A843;
  --or-pale:      #E8D5A0;
  --or-dark:      #8B6020;

  /* Naturel Jura */
  --vert-jura:    #2D5A3D;
  --vert-light:   #4A7A5A;
  --vert-dark:    #1A3D28;

  /* Neutres */
  --ardoise:      #2C3344;
  --pierre:       #6B7280;
  --pierre-light: #9CA3AF;

  /* Fonds */
  --parchemin:     #F5F0E8;
  --parchemin-alt: #EEE8D8;
  --parchemin-dark:#DDD4C0;
  --fond-sombre:   #1A0D10;

  /* Textes */
  --txt:       #2C3344;
  --txt-sec:   #5C6470;
  --txt-light: #9CA3AF;
  --txt-white: #F5F0E8;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(44,51,68,.08), 0 2px 6px rgba(44,51,68,.05);
  --shadow-md: 0 1px 3px rgba(44,51,68,.08), 0 4px 12px rgba(44,51,68,.06), 0 8px 24px rgba(44,51,68,.04);
  --shadow-lg: 0 2px 4px rgba(44,51,68,.08), 0 8px 24px rgba(44,51,68,.06), 0 16px 48px rgba(44,51,68,.05);
  --shadow-gold: 0 2px 8px rgba(200,149,44,.2), 0 8px 32px rgba(200,149,44,.15);

  /* Mesures */
  --measure-article: 680px;
  --measure-wide:    1280px;
  --measure-hero:    1440px;
  --gutter: clamp(1rem, 4vw, 2rem);

  /* Polices */
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Lora', Georgia, serif;
  --ff-quote:   'Cormorant Garamond', Georgia, serif;
  --ff-mono:    'DM Mono', 'Courier New', monospace;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 300ms;
  --dur:      500ms;
  --dur-slow: 700ms;
}

/* ---- GOOGLE FONTS ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap');

/* ---- 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: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.75;
  color: var(--txt);
  background: var(--parchemin);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---- TYPOGRAPHIE ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  line-height: 1.2;
  color: var(--ardoise);
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p { margin-bottom: 1.25rem; }
strong { font-weight: 600; color: var(--ardoise); }
em { font-style: italic; }

/* ---- HEADER ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26, 13, 16, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,149,44,.2);
  transition: all var(--dur-fast) var(--ease);
}

.site-header.scrolled {
  background: rgba(26, 13, 16, 0.98);
  border-bottom-color: rgba(200,149,44,.4);
}

.header-inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.header-logo-text {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--or);
  letter-spacing: .02em;
}

.header-logo-sub {
  font-family: var(--ff-body);
  font-size: .65rem;
  color: var(--or-pale);
  opacity: .7;
  display: block;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: -2px;
}

/* Navigation principale */
.main-nav { display: flex; align-items: center; gap: .25rem; }

.main-nav a {
  font-family: var(--ff-body);
  font-size: .875rem;
  font-weight: 500;
  color: var(--or-pale);
  padding: .5rem .875rem;
  border-radius: 4px;
  letter-spacing: .04em;
  transition: color var(--dur-fast), background var(--dur-fast);
}

.main-nav a:hover {
  color: var(--or);
  background: rgba(200,149,44,.1);
}

.main-nav a.active { color: var(--or); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--or);
  border-radius: 2px;
  transition: transform var(--dur-fast), opacity var(--dur-fast);
}

.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .hamburger span:nth-child(2) { opacity: 0; }
.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--fond-sombre);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: .45;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(139,26,42,.7) 0%,
    rgba(26,13,16,.8) 50%,
    rgba(45,90,61,.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: calc(80px + 3rem) var(--gutter) 4rem;
  width: 100%;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ff-quote);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 1.25rem;
}

.hero-kicker::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--or);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--txt-white);
  line-height: 1.05;
  max-width: 14ch;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(26,13,16,.5);
}

.hero-description {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(245,240,232,.8);
  max-width: 55ch;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Mode article */
.hero-article {
  min-height: 55vh;
}

.hero-article .hero-content {
  padding-top: calc(64px + 2rem);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  font-size: .875rem;
  color: rgba(245,240,232,.6);
}

.hero-meta time { color: var(--or-pale); }

.hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: rgba(245,240,232,.5);
  margin-bottom: .75rem;
  flex-wrap: wrap;
}

.hero-breadcrumb a { color: var(--or-pale); }
.hero-breadcrumb a:hover { color: var(--or); }
.hero-breadcrumb span { opacity: .5; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(200,149,44,.7);
  font-family: var(--ff-quote);
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(200,149,44,.7), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---- BOUTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 4px;
  font-family: var(--ff-body);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: all var(--dur-fast) var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--or);
  color: var(--fond-sombre);
  border-color: var(--or);
}

.btn-primary:hover {
  background: var(--or-vif);
  border-color: var(--or-vif);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--txt-white);
  border-color: rgba(245,240,232,.4);
}

.btn-outline:hover {
  border-color: var(--or);
  color: var(--or);
}

.btn-rouge {
  background: var(--rouge);
  color: var(--txt-white);
  border-color: var(--rouge);
}

.btn-rouge:hover {
  background: var(--rouge-light);
  border-color: var(--rouge-light);
  transform: translateY(-2px);
}

/* ---- CONTAINERS ---- */
.container {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-article {
  max-width: var(--measure-article);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- SECTIONS ---- */
section { padding: 4rem 0; }

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ff-quote);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--or-dark);
  margin-bottom: .75rem;
}

.section-kicker::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--or);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--ardoise);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: .75rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: var(--or);
  border-radius: 2px;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--txt-sec);
  max-width: 60ch;
  margin-bottom: 2.5rem;
}

/* Section sombre */
.section-sombre {
  background: var(--fond-sombre);
  color: var(--txt-white);
}

.section-sombre .section-title {
  color: var(--txt-white);
}

.section-sombre .section-lead {
  color: rgba(245,240,232,.7);
}

/* Section parchemin alt */
.section-alt { background: var(--parchemin-alt); }

/* ---- GRILLE GUIDES ---- */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.guide-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast);
  display: flex;
  flex-direction: column;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.guide-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.guide-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform var(--dur) var(--ease);
}

.guide-card:hover .guide-card-image img {
  transform: scale(1.05);
}

.guide-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.guide-card-kicker {
  font-family: var(--ff-quote);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--or-dark);
  margin-bottom: .4rem;
}

.guide-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ardoise);
  margin-bottom: .5rem;
  line-height: 1.3;
}

.guide-card-excerpt {
  font-size: .875rem;
  color: var(--txt-sec);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-card-footer {
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid var(--parchemin-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.guide-card-link {
  font-size: .8rem;
  font-weight: 600;
  color: var(--rouge);
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: .35rem;
  transition: gap var(--dur-fast);
}

.guide-card:hover .guide-card-link { gap: .6rem; }

/* ---- GRILLE BLOG ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card-image {
  aspect-ratio: 3/2;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform var(--dur) var(--ease);
}

.blog-card:hover .blog-card-image img { transform: scale(1.05); }

.blog-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-category {
  font-family: var(--ff-quote);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--or-dark);
  margin-bottom: .4rem;
}

.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ardoise);
  margin-bottom: .5rem;
  line-height: 1.35;
  flex: 1;
}

.blog-card-date {
  font-size: .78rem;
  color: var(--txt-light);
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--parchemin-dark);
}

/* ---- LAYOUT ARTICLE ---- */
.article-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 4rem;
  align-items: start;
}

/* TOC sticky */
.toc {
  position: sticky;
  top: 80px;
}

.toc-title {
  font-family: var(--ff-quote);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--or-dark);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--parchemin-dark);
}

.toc ol {
  list-style: none;
  counter-reset: toc-counter;
}

.toc ol li {
  counter-increment: toc-counter;
  margin-bottom: .5rem;
}

.toc ol li a {
  display: flex;
  gap: .6rem;
  align-items: baseline;
  font-size: .85rem;
  color: var(--txt-sec);
  transition: color var(--dur-fast);
  line-height: 1.4;
}

.toc ol li a::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: var(--ff-quote);
  font-size: .7rem;
  color: var(--or-dark);
  flex-shrink: 0;
}

.toc ol li a:hover { color: var(--rouge); }

/* Article body */
.article-body {
  min-width: 0;
}

.article-summary {
  background: var(--parchemin-alt);
  border-left: 4px solid var(--or);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0 6px 6px 0;
  font-family: var(--ff-quote);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--txt-sec);
  line-height: 1.6;
}

/* Lettrine */
.article-body > p:first-of-type::first-letter {
  font-family: var(--ff-display);
  font-size: 4rem;
  font-weight: 900;
  color: var(--rouge);
  float: left;
  line-height: .8;
  margin: .1em .15em -.05em 0;
}

.article-body h2 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--ardoise);
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--parchemin-dark);
  position: relative;
}

.article-body h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--or);
  border-radius: 1px;
  transition: width var(--dur) var(--ease);
}

.article-body h2:hover::after { width: 100%; }

.article-body h3 {
  font-size: 1.2rem;
  margin-top: 1.75rem;
  margin-bottom: .75rem;
  color: var(--rouge-dark);
}

.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article-body ul { list-style: none; }
.article-body ul li { position: relative; padding-left: 1.25rem; margin-bottom: .4rem; }
.article-body ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--or);
  font-weight: 700;
}

.article-body ol { list-style: decimal; }
.article-body ol li { margin-bottom: .4rem; }

.article-body blockquote {
  border-left: 4px solid var(--rouge);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--parchemin-alt);
  border-radius: 0 6px 6px 0;
  font-family: var(--ff-quote);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--txt-sec);
}

.article-body a {
  color: var(--rouge);
  text-decoration: underline;
  text-decoration-color: rgba(139,26,42,.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-fast);
}

.article-body a:hover {
  text-decoration-color: var(--rouge);
}

.article-body img {
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
  width: 100%;
}

/* Images body */
.body-image {
  margin: 2rem 0;
}

.body-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.body-image figcaption {
  font-size: .8rem;
  color: var(--txt-light);
  text-align: center;
  margin-top: .5rem;
  font-family: var(--ff-quote);
  font-style: italic;
}

/* ---- FAQ ACCORDÉON ---- */
.faq-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--parchemin-dark);
}

.faq-title {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  margin-bottom: 1.5rem;
  color: var(--ardoise);
}

.faq-item {
  border: 1px solid var(--parchemin-dark);
  border-radius: 6px;
  margin-bottom: .75rem;
  overflow: hidden;
  background: white;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ardoise);
  user-select: none;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.faq-question:hover {
  background: var(--parchemin-alt);
  color: var(--rouge);
}

.faq-item.open .faq-question {
  background: var(--rouge);
  color: white;
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1;
  transition: transform var(--dur-fast) var(--ease);
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur) var(--ease);
}

.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer-inner {
  padding: 1rem 1.25rem;
  font-size: .95rem;
  color: var(--txt-sec);
  line-height: 1.7;
  background: var(--parchemin);
}

/* ---- COMPOSANT SAVIAISVOUS ---- */
.saviaisvous {
  position: relative;
  background: var(--parchemin-alt);
  border-left: 4px solid var(--or-vif);
  padding: 1.5rem 1.75rem 1.5rem 2rem;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
  overflow: hidden;
}

.saviaisvous-kicker {
  font-family: var(--ff-quote);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--or-dark);
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.saviaisvous-kicker::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--or);
}

.saviaisvous-text {
  font-family: var(--ff-quote);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ardoise);
  line-height: 1.6;
}

.saviaisvous-source {
  font-size: .8rem;
  color: var(--txt-light);
  margin-top: .75rem;
  font-style: normal;
}

.saviaisvous-watermark {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: .04;
  pointer-events: none;
  width: 80px;
}

/* ---- COMPOSANT CARTE COMTOISE ---- */
.carte-comtoise {
  background: var(--parchemin-alt);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.carte-comtoise-title {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ardoise);
  text-align: center;
  margin-bottom: 1.5rem;
}

.carte-svg-wrapper {
  max-width: 400px;
  margin: 0 auto;
}

.carte-dept {
  cursor: pointer;
  transition: fill var(--dur-fast);
}

.carte-dept:hover { fill: var(--or-pale); }
.carte-dept:hover .carte-dept-overlay { fill: var(--or); opacity: .3; }

/* ---- COMPOSANT GALERIE CLOCHERS ---- */
.galerie-clochers {
  margin: 2rem 0;
}

.galerie-clochers-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ardoise);
  margin-bottom: 1.25rem;
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.galerie-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform var(--dur) var(--ease);
}

.galerie-item:hover img { transform: scale(1.08); }

.galerie-overlay {
  position: absolute;
  inset: 0;
  background: rgba(139,26,42,.75);
  opacity: 0;
  transition: opacity var(--dur-fast);
  display: flex;
  align-items: flex-end;
  padding: .75rem;
}

.galerie-item:hover .galerie-overlay { opacity: 1; }

.galerie-caption {
  color: white;
  font-size: .8rem;
  font-family: var(--ff-quote);
  line-height: 1.3;
}

/* ---- SECTION IMMERSIVE ---- */
.section-immersive {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.section-immersive-bg {
  position: absolute;
  inset: 0;
}

.section-immersive-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.section-immersive-overlay {
  position: absolute;
  inset: 0;
  background: rgba(139,26,42,.75);
}

.section-immersive-content {
  position: relative;
  z-index: 2;
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 4rem var(--gutter);
  text-align: center;
}

.section-immersive-title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: white;
  margin-bottom: 1rem;
}

.section-immersive-text {
  color: rgba(245,240,232,.85);
  font-size: 1.1rem;
  max-width: 55ch;
  margin: 0 auto 2rem;
}

/* ---- RELATED PAGES ---- */
.related-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--parchemin-dark);
}

.related-title {
  font-family: var(--ff-quote);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--or-dark);
  margin-bottom: 1rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.related-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.related-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.related-card-title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--ardoise);
  padding: .75rem;
  line-height: 1.35;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--fond-sombre);
  color: rgba(245,240,232,.7);
  padding: 3.5rem 0 0;
  margin-top: 4rem;
}

.footer-grid {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0 var(--gutter) 2.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .75rem;
}

.footer-brand-name {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--or);
}

.footer-brand-slogan {
  font-size: .875rem;
  color: rgba(245,240,232,.5);
  font-family: var(--ff-quote);
  font-style: italic;
  margin-bottom: 1rem;
}

.footer-col-title {
  font-family: var(--ff-quote);
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: .875rem;
}

.footer-links { display: flex; flex-direction: column; gap: .4rem; }

.footer-links a {
  font-size: .875rem;
  color: rgba(245,240,232,.6);
  transition: color var(--dur-fast);
}

.footer-links a:hover { color: var(--or); }

.footer-bottom {
  border-top: 1px solid rgba(200,149,44,.15);
  padding: 1.25rem var(--gutter);
  max-width: var(--measure-wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: .78rem;
  color: rgba(245,240,232,.4);
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
}

.footer-legal a {
  font-size: .78rem;
  color: rgba(245,240,232,.4);
  transition: color var(--dur-fast);
}

.footer-legal a:hover { color: var(--or-pale); }

/* ---- PAGE BLOG LISTING ---- */
.blog-header { padding: calc(64px + 3rem) 0 3rem; background: var(--fond-sombre); }
.blog-header-inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.blog-header-kicker {
  font-family: var(--ff-quote);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: .75rem;
}

.blog-header-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: white;
  font-weight: 900;
}

.blog-section { padding: 3rem 0 5rem; }

/* ---- PAGES UTILITAIRES ---- */
.page-hero {
  background: var(--fond-sombre);
  padding: calc(64px + 2.5rem) 0 2.5rem;
  text-align: center;
}

.page-hero-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--txt-white);
  font-weight: 700;
  margin-bottom: .5rem;
}

.page-hero-sub {
  font-size: 1rem;
  color: rgba(245,240,232,.6);
}

.page-content {
  max-width: var(--measure-article);
  margin: 0 auto;
  padding: 3rem var(--gutter) 5rem;
}

/* ---- FORMULAIRE CONTACT ---- */
.contact-email {
  background: var(--parchemin-alt);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.contact-email h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--ardoise);
}

/* ---- RÉVÉAL ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- 404 ---- */
.page-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(64px + 2rem) var(--gutter) 4rem;
}

.page-404-code {
  font-family: var(--ff-display);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 900;
  color: var(--parchemin-dark);
  line-height: 1;
  margin-bottom: .5rem;
}

.page-404-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--ardoise);
  margin-bottom: 1rem;
}

.page-404-text {
  color: var(--txt-sec);
  max-width: 45ch;
  margin: 0 auto 2rem;
}

/* ---- INTERVIEW STYLE ---- */
.interview-question {
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--rouge);
  font-size: 1.05rem;
  margin: 1.75rem 0 .5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--or);
}

.interview-answer {
  padding-left: 1rem;
}

.interview-expert {
  background: var(--parchemin-alt);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 2rem 0;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.interview-expert-info strong {
  font-size: 1rem;
  color: var(--ardoise);
  display: block;
  margin-bottom: .25rem;
}

.interview-expert-info span {
  font-size: .875rem;
  color: var(--txt-sec);
}

/* ---- PLAN DU SITE ---- */
.sitemap-section { margin-bottom: 2.5rem; }

.sitemap-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rouge);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--parchemin-dark);
}

.sitemap-links { display: flex; flex-direction: column; gap: .4rem; }

.sitemap-links a {
  color: var(--rouge);
  font-size: .95rem;
  text-decoration: underline;
  text-decoration-color: rgba(139,26,42,.3);
  transition: text-decoration-color var(--dur-fast);
}

.sitemap-links a:hover { text-decoration-color: var(--rouge); }

/* ---- MENTIONS LÉGALES ---- */
.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
  color: var(--rouge-dark);
  border-bottom: 1px solid var(--parchemin-dark);
  padding-bottom: .5rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--fond-sombre);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid rgba(200,149,44,.2);
    gap: .25rem;
  }

  .nav-open .main-nav { display: flex; }

  .main-nav a {
    width: 100%;
    padding: .875rem 1rem;
  }

  .hamburger { display: flex; }

  .guides-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .galerie-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .hero-title { max-width: 100%; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .galerie-grid { grid-template-columns: 1fr; }
}
