/* ============================================================
   mieydebearn.fr — "Encyclopédie du Béarn rural"
   CSS statique pur — design tokens + tous les styles
   Mood board : "Béarn pierre & vert"
   ============================================================ */

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

/* ============================================================
   1. DESIGN TOKENS — "Béarn pierre & vert"
   ============================================================ */

:root {
  /* Palette principale */
  --encre-bearn:    #1A2F2A;
  --vert-pyrenees:  #2F5D4A;
  --vert-clair:     #5A8A6F;
  --terre-basque:   #A8462E;
  --ocre-gascon:    #B8853C;
  --pierre-creme:   #EEE8D8;
  --ivoire:         #F5F0E2;
  --galet:          #A3958A;

  /* Dérivés opacité */
  --encre-80: rgba(26,47,42,0.80);
  --encre-60: rgba(26,47,42,0.60);
  --encre-40: rgba(26,47,42,0.40);
  --encre-20: rgba(26,47,42,0.20);
  --encre-10: rgba(26,47,42,0.10);
  --encre-06: rgba(26,47,42,0.06);
  --vert-15: rgba(47,93,74,0.15);
  --vert-30: rgba(47,93,74,0.30);
  --pierre-95: rgba(238,232,216,0.95);
  --ocre-20: rgba(184,133,60,0.20);
  --terre-15: rgba(168,70,46,0.15);

  /* Typographie */
  --ff-display: 'Cardo', 'Georgia', serif;
  --ff-body:    'Source Sans 3', system-ui, sans-serif;
  --ff-accent:  'EB Garamond', Georgia, serif;

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

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 280ms;
  --dur:      480ms;
  --dur-slow: 700ms;

  /* Ombres */
  --shadow-sm: 0 1px 3px rgba(26,47,42,0.12);
  --shadow-md: 0 4px 16px rgba(26,47,42,0.14);
  --shadow-lg: 0 8px 32px rgba(26,47,42,0.18);

  /* Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */

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

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

body {
  font-family: var(--ff-body);
  font-size: clamp(0.975rem, 1vw + 0.7rem, 1.075rem);
  line-height: 1.75;
  color: var(--encre-bearn);
  background-color: var(--pierre-creme);
  min-height: 100vh;
}

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

a { color: var(--vert-pyrenees); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--terre-basque); }

ul, ol { list-style: none; }

/* ============================================================
   3. TYPOGRAPHIE
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--encre-bearn);
}

h1 { font-size: clamp(1.85rem, 3.5vw + 1rem, 2.75rem); }
h2 { font-size: clamp(1.4rem, 2.5vw + 0.7rem, 2rem); margin-top: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: clamp(1.15rem, 1.8vw + 0.6rem, 1.45rem); margin-top: 2rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; }

/* SIGNATURE 1 — Filet doublé sous les H2 (vert-pyrenees + terre-basque) */
.article-body h2,
.page-body h2 {
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--vert-pyrenees);
  box-shadow: 0 2px 0 0 var(--terre-basque);
  position: relative;
}

.article-body h2::after { display: none; }

/* SIGNATURE 2 — Lettrine ocre-gascon */
.article-body > p:first-of-type::first-letter,
.page-body > p:first-of-type::first-letter {
  font-family: var(--ff-display);
  font-size: 3.8em;
  font-weight: 700;
  float: left;
  line-height: 0.82;
  margin: 0.08em 0.12em 0 0;
  color: var(--ocre-gascon);
  text-shadow: 1px 2px 0 var(--encre-20);
}

/* SIGNATURE 5 — Pull quotes barre terre-basque */
.article-body blockquote,
.page-body blockquote {
  border-left: 4px solid var(--terre-basque);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--ivoire);
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: 1.1em;
  color: var(--encre-80);
}

/* SIGNATURE 6 — Numérotation EB Garamond ocre */
.num-label {
  font-family: var(--ff-accent);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--ocre-gascon);
  line-height: 1;
}

p { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   4. HEADER & NAVIGATION
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--encre-bearn);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-fast) var(--ease);
}

.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--measure-wide);
  margin-inline: auto;
  padding: 0.75rem var(--gutter);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.site-logo-text {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ivoire);
  display: block;
  line-height: 1.1;
}

.site-logo-sub {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  color: var(--galet);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
}

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

.nav-link {
  font-family: var(--ff-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(245,240,226,0.80);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: color var(--dur-fast), background var(--dur-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active { color: var(--ivoire); background: var(--vert-15); text-decoration: none; }

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

.nav-dropdown-toggle {
  font-family: var(--ff-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(245,240,226,0.80);
  background: none;
  border: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: color var(--dur-fast), background var(--dur-fast);
  white-space: nowrap;
}

.nav-dropdown-toggle:hover { color: var(--ivoire); background: var(--vert-15); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 200px;
  background: var(--encre-bearn);
  border: 1px solid var(--vert-30);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  box-shadow: var(--shadow-lg);
  z-index: 200;
}

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

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

.nav-dropdown-menu a:hover { background: var(--vert-15); color: var(--ivoire); }

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

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

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .site-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--encre-bearn);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0;
    overflow-y: auto;
    z-index: 90;
  }
  body.nav-open .site-nav { display: flex; }
  .nav-dropdown-menu {
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }
}

/* ============================================================
   5. HERO
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(320px, 50vw, 560px);
  display: flex;
  align-items: flex-end;
}

.hero-home { min-height: clamp(400px, 60vw, 680px); }

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26,47,42,0.85) 0%,
    rgba(26,47,42,0.50) 50%,
    rgba(26,47,42,0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--measure-wide);
  margin-inline: auto;
  padding: 2.5rem var(--gutter);
}

.hero-kicker {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ocre-gascon);
  display: block;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4vw + 0.5rem, 3.2rem);
  font-weight: 700;
  color: var(--ivoire);
  margin: 0;
  line-height: 1.15;
  max-width: 760px;
}

.hero-description {
  color: rgba(245,240,226,0.80);
  font-size: clamp(0.95rem, 1.5vw + 0.5rem, 1.15rem);
  margin-top: 1rem;
  max-width: 600px;
}

.hero-breadcrumb {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(245,240,226,0.65);
  margin-bottom: 1rem;
}

.hero-breadcrumb a { color: rgba(245,240,226,0.65); text-decoration: none; }
.hero-breadcrumb a:hover { color: var(--ivoire); }

.hero-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: rgba(245,240,226,0.65);
}

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

/* SIGNATURE 3 — Watermark fronton dans le hero */
.hero-watermark {
  position: absolute;
  right: var(--gutter);
  bottom: 1rem;
  width: min(180px, 20vw);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}

/* ============================================================
   6. BOUTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  font-family: var(--ff-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--vert-pyrenees);
  color: var(--ivoire);
  border-color: var(--vert-pyrenees);
}

.btn-primary:hover {
  background: var(--vert-clair);
  border-color: var(--vert-clair);
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(47,93,74,0.30);
}

.btn-outline {
  background: transparent;
  color: var(--ivoire);
  border-color: rgba(245,240,226,0.50);
}

.btn-outline:hover {
  background: rgba(245,240,226,0.12);
  border-color: var(--ivoire);
  text-decoration: none;
}

/* ============================================================
   7. CARDS & GRILLES
   ============================================================ */

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

.card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  text-decoration: none;
  background: var(--ivoire);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  /* SIGNATURE 4 — clip-path coin coupé bas-droite */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }

.card-img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,47,42,0.75) 0%, transparent 60%);
}

.card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
}

.card-kicker {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ocre-gascon);
  display: block;
  margin-bottom: 0.25rem;
}

.card-title {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ivoire);
  display: block;
  line-height: 1.3;
}

/* ============================================================
   8. BLOG CARDS
   ============================================================ */

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

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ivoire);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }

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

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

.blog-card-kicker {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terre-basque);
}

.blog-card-title {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--encre-bearn);
  line-height: 1.3;
  margin: 0;
}

.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--galet);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  font-size: 0.75rem;
  color: var(--galet);
  margin-top: auto;
  padding-top: 0.5rem;
}

/* Blog listing with filters */
.blog-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1.5rem var(--gutter);
  max-width: var(--measure-wide);
  margin-inline: auto;
}

.blog-filter-btn {
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--encre-20);
  background: transparent;
  color: var(--galet);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}

.blog-filter-btn:hover { background: var(--vert-15); color: var(--vert-pyrenees); }
.blog-filter-btn.active { background: var(--vert-pyrenees); color: var(--ivoire); border-color: var(--vert-pyrenees); }

.blog-listing { padding: 0 var(--gutter) 4rem; max-width: var(--measure-wide); margin-inline: auto; }
.blog-listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

/* ============================================================
   9. ARTICLE / PAGE
   ============================================================ */

.page-wrapper { min-height: 60vh; }

.article-container {
  display: grid;
  grid-template-columns: 1fr;
  max-width: var(--measure-wide);
  margin-inline: auto;
  padding: 3rem var(--gutter) 5rem;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .article-container {
    grid-template-columns: minmax(0, var(--measure-article)) 220px;
    align-items: start;
  }
}

article { min-width: 0; }

.article-summary {
  font-family: var(--ff-accent);
  font-size: 1.1em;
  font-style: italic;
  color: var(--galet);
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--ocre-gascon);
  line-height: 1.65;
}

.article-body,
.page-body {
  line-height: 1.8;
}

.article-body p,
.page-body p { margin-bottom: 1.4rem; }

.article-body a,
.page-body a { color: var(--vert-pyrenees); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover,
.page-body a:hover { color: var(--terre-basque); }

.article-body ul,
.page-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
}

.article-body ul li,
.page-body ul li { margin-bottom: 0.4rem; }

.article-body ol,
.page-body ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
}

.article-body strong,
.page-body strong { font-weight: 600; color: var(--encre-bearn); }

/* ============================================================
   10. TOC SIDEBAR
   ============================================================ */

.toc {
  position: sticky;
  top: 80px;
  align-self: start;
  background: var(--ivoire);
  border: 1px solid var(--encre-10);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: none;
}

@media (min-width: 1024px) { .toc { display: block; } }

.toc-title {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--galet);
  margin-bottom: 0.75rem;
}

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

.toc-item a {
  font-size: 0.82rem;
  color: var(--galet);
  text-decoration: none;
  display: block;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast), color var(--dur-fast);
  line-height: 1.4;
}

.toc-item a:hover { background: var(--vert-15); color: var(--vert-pyrenees); }
.toc-item.active a { background: var(--vert-15); color: var(--vert-pyrenees); font-weight: 600; }

/* ============================================================
   11. FAQ ACCORDION
   ============================================================ */

.faq-section {
  margin-top: 3rem;
  border-top: 2px solid var(--encre-10);
  padding-top: 2rem;
}

.faq-title {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  color: var(--encre-bearn);
  margin-bottom: 1.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--encre-10);
}

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

.faq-question:hover { color: var(--vert-pyrenees); }

/* SIGNATURE 8 — FAQ accordion + rotation 45° */
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: transform var(--dur-fast) var(--ease), color var(--dur-fast);
}

.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--vert-pyrenees); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur) var(--ease);
}

.faq-item.open .faq-answer { max-height: 800px; }

.faq-answer-inner {
  padding-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--galet);
  line-height: 1.7;
}

/* ============================================================
   12. RELATED SECTION
   ============================================================ */

.related-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--encre-10);
}

.related-title {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--galet);
  margin-bottom: 1rem;
}

.related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.related-item {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--ivoire);
  border: 1px solid var(--encre-20);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--vert-pyrenees);
  text-decoration: none;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}

.related-item:hover { background: var(--vert-15); border-color: var(--vert-pyrenees); text-decoration: none; }

/* ============================================================
   13. SECTIONS HOMEPAGE
   ============================================================ */

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

.section-block {
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  max-width: var(--measure-wide);
  margin-inline: auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 2.5vw + 0.5rem, 1.8rem);
  color: var(--encre-bearn);
  margin: 0;
}

.section-link {
  font-size: 0.875rem;
  color: var(--vert-pyrenees);
  text-decoration: none;
  font-weight: 600;
}

.section-link:hover { text-decoration: underline; }

.kicker {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ocre-gascon);
}

/* Intro homepage */
.hp-intro {
  background: var(--ivoire);
  border-bottom: 1px solid var(--encre-10);
}

.hp-intro-inner { max-width: 720px; }

/* Guides + sidebar */
.hp-guides-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .hp-guides-wrapper { grid-template-columns: 200px 1fr; }
}

.hp-sidebar { display: none; }
@media (min-width: 1024px) { .hp-sidebar { display: block; } }

.hp-sidebar-sticky {
  position: sticky;
  top: 80px;
  background: var(--ivoire);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--encre-10);
}

.hp-sidebar-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--galet);
  margin-bottom: 0.75rem;
}

.hp-sidebar-list { display: flex; flex-direction: column; gap: 0.1rem; }

.hp-sidebar-item {
  font-size: 0.82rem;
  color: var(--galet);
  text-decoration: none;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  display: block;
  transition: background var(--dur-fast), color var(--dur-fast);
  line-height: 1.4;
}

.hp-sidebar-item:hover { background: var(--vert-15); color: var(--vert-pyrenees); }

/* Section immersive */
.hp-immersive {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.hp-immersive-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-immersive-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,47,42,0.72);
}

.hp-immersive-content {
  position: relative;
  z-index: 2;
  max-width: var(--measure-wide);
  margin-inline: auto;
  padding: 3rem var(--gutter);
  color: var(--ivoire);
}

.hp-immersive-content h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2.4rem);
  color: var(--ivoire);
  margin: 0.5rem 0 1rem;
}

.hp-immersive-content p { color: rgba(245,240,226,0.80); max-width: 540px; }

/* ============================================================
   14. FOOTER
   ============================================================ */

.site-footer {
  background: var(--encre-bearn);
  color: rgba(245,240,226,0.65);
  padding: 3rem var(--gutter) 2rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--measure-wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-inner { grid-template-columns: repeat(3, 1fr); }
}

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

.footer-logo-text {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ivoire);
}

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(245,240,226,0.55);
  line-height: 1.5;
  max-width: 240px;
}

.footer-col h3 {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--galet);
  margin-bottom: 0.75rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a { font-size: 0.85rem; color: rgba(245,240,226,0.65); text-decoration: none; }
.footer-links a:hover { color: var(--ivoire); }

.footer-bottom {
  max-width: var(--measure-wide);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245,240,226,0.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(245,240,226,0.40);
}

.footer-bottom a { color: rgba(245,240,226,0.40); }
.footer-bottom a:hover { color: rgba(245,240,226,0.70); }

/* ============================================================
   15. ANIMATIONS (SIGNATURE 9 — Reveal fade-up)
   ============================================================ */

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

/* ============================================================
   16. UTILITIES
   ============================================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }

/* ============================================================
   17. 404 PAGE
   ============================================================ */

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
  padding: 4rem var(--gutter);
}

.error-code {
  font-family: var(--ff-display);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  color: var(--encre-20);
  line-height: 1;
}

.error-message {
  font-size: 1.1rem;
  color: var(--galet);
  max-width: 440px;
}
