/* ============================================================
   mariage-musulman.com — Design "Manuscrit Enluminé"
   Palette : jade × or × ivoire | Typographies : Amiri × Crimson Pro × Cormorant Garamond
   ============================================================ */

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

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --jade:       #1B4332;
  --jade-mid:   #2D6A4F;
  --jade-light: #52B788;
  --or:         #B8860B;
  --or-clair:   #D4A853;
  --ivoire:     #FAF6EF;
  --ivoire-alt: #F0E8D5;
  --encre:      #1A1209;
  --encre-60:   rgba(26, 18, 9, 0.60);
  --encre-30:   rgba(26, 18, 9, 0.30);
  --encre-10:   rgba(26, 18, 9, 0.10);
  --jade-80:    rgba(27, 67, 50, 0.80);
  --jade-10:    rgba(27, 67, 50, 0.10);
  --or-pale:    rgba(212, 168, 83, 0.12);

  --ff-display: 'Amiri', Georgia, serif;
  --ff-body:    'Crimson Pro', Georgia, serif;
  --ff-accent:  'Cormorant Garamond', Georgia, serif;

  --measure-article: 700px;
  --measure-wide:    1280px;
  --gutter:          clamp(1rem, 4vw, 2rem);

  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 220ms;
  --dur:      380ms;
  --dur-slow: 600ms;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-body);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--encre);
  background: var(--ivoire);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--jade); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--jade-mid); }

/* ── Typographie ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  line-height: 1.2;
  color: var(--jade);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; margin: 2.5rem 0 1rem; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.6rem); font-weight: 400; font-style: italic; margin: 2rem 0 0.75rem; }

p { margin-bottom: 1.25rem; }

strong { font-weight: 600; color: var(--jade); }
em { font-style: italic; color: var(--encre-60); }

/* ── Layout containers ───────────────────────────────────── */
.container {
  max-width: var(--measure-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* ── Header ─────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--or-pale);
  transition: box-shadow var(--dur-fast) var(--ease);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(27, 67, 50, 0.12);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--jade);
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

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

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

.nav-main a {
  font-family: var(--ff-accent);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--encre);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 3px;
  transition: color var(--dur-fast), background var(--dur-fast);
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--jade);
  background: var(--jade-10);
}

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

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

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--jade);
}

.hero-home {
  min-height: 92vh;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 8s ease-out;
}

.hero:hover .hero-bg { transform: scale(1.03); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(27, 67, 50, 0.90) 0%,
    rgba(27, 67, 50, 0.50) 50%,
    rgba(27, 67, 50, 0.20) 100%
  );
  z-index: 1;
}

/* Filigrane croissant + étoile */
.hero-filigrane {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-filigrane svg {
  width: min(60vw, 400px);
  height: auto;
  opacity: 0.05;
  fill: var(--or-clair);
}

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

.hero-kicker {
  font-family: var(--ff-accent);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--or-clair);
  border-left: 2px solid var(--or-clair);
  padding-left: 0.75rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.hero h1, .hero-title {
  color: var(--ivoire);
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-lead {
  font-family: var(--ff-body);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(250, 246, 239, 0.88);
  max-width: 680px;
  margin-bottom: 2rem;
  font-style: italic;
}

.hero-home .hero-lead { margin-inline: auto; }

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-home .hero-cta-group { justify-content: center; }

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-accent);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--or-clair);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 32px;
  background: var(--or-clair);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

.hero-breadcrumb {
  font-family: var(--ff-accent);
  font-size: 0.8rem;
  color: rgba(212, 168, 83, 0.8);
  margin-bottom: 0.75rem;
}

.hero-breadcrumb a {
  color: rgba(212, 168, 83, 0.8);
  text-decoration: none;
}

.hero-breadcrumb a:hover { color: var(--or-clair); }

.hero-breadcrumb span + span::before { content: ' › '; opacity: 0.6; }

.hero-meta {
  font-family: var(--ff-accent);
  font-size: 0.8rem;
  color: rgba(250, 246, 239, 0.65);
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
}

/* ── Boutons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-family: var(--ff-accent);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all var(--dur-fast) var(--ease);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--or-clair);
  color: var(--jade);
}

.btn-primary:hover {
  background: var(--or);
  color: var(--ivoire);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 168, 83, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--ivoire);
  border: 1px solid rgba(212, 168, 83, 0.5);
}

.btn-outline:hover {
  border-color: var(--or-clair);
  background: rgba(212, 168, 83, 0.1);
  color: var(--or-clair);
}

/* ── Séparateur arabesque ─────────────────────────────────── */
.arabesque-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 0;
  color: var(--or-clair);
  opacity: 0.6;
}

.arabesque-sep::before,
.arabesque-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to var(--dir, right), transparent, var(--or-clair));
  max-width: 200px;
}

.arabesque-sep::before { --dir: right; }
.arabesque-sep::after  { --dir: left; }

/* ── Kicker ───────────────────────────────────────────────── */
.kicker {
  font-family: var(--ff-accent);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--or-clair);
  border-left: 2px solid var(--or-clair);
  padding-left: 0.75rem;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.kicker-center {
  border-left: none;
  padding-left: 0;
  text-align: center;
  display: block;
}

/* ── Article summary ──────────────────────────────────────── */
.article-summary {
  max-width: var(--measure-article);
  margin: 2.5rem auto;
  padding: 1.5rem 2rem;
  font-family: var(--ff-body);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--jade-mid);
  border-left: 3px solid var(--or-clair);
  background: var(--or-pale);
  border-radius: 0 4px 4px 0;
}

/* ── Article layout (TOC + body) ──────────────────────────── */
.article-layout {
  max-width: var(--measure-wide);
  margin-inline: auto;
  padding: 0 var(--gutter) 4rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}

.article-toc {
  position: sticky;
  top: 5rem;
  font-family: var(--ff-accent);
  font-size: 0.88rem;
}

.article-toc-title {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--or-pale);
}

.article-toc ol {
  list-style: none;
  counter-reset: toc;
}

.article-toc li {
  counter-increment: toc;
  margin-bottom: 0.35rem;
}

.article-toc a {
  color: var(--encre-60);
  text-decoration: none;
  font-size: 0.84rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  transition: color var(--dur-fast);
}

.article-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--or-clair);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 0.1em;
}

.article-toc a:hover,
.article-toc a.active {
  color: var(--jade);
}

/* ── Article body ─────────────────────────────────────────── */
.article-body {
  max-width: var(--measure-article);
  min-width: 0;
}

/* Lettrine */
.article-body > p:first-of-type::first-letter {
  font-family: var(--ff-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--jade);
  float: left;
  line-height: 0.75;
  margin-right: 0.12em;
  margin-top: 0.1em;
}

.article-body h2 {
  position: relative;
  padding-bottom: 0.5rem;
  margin-top: 3rem;
}

.article-body h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2.5rem;
  height: 2px;
  background: var(--or-clair);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
}

.article-body h2.visible::after { transform: scaleX(1); }

.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

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

.article-body blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 3rem;
  background: var(--or-pale);
  border-radius: 4px;
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 1.1rem;
}

.article-body blockquote::before {
  content: '❝';
  font-family: var(--ff-display);
  font-size: 5rem;
  color: var(--jade);
  opacity: 0.15;
  position: absolute;
  top: -0.5rem;
  left: 0.25rem;
  line-height: 1;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.article-body th {
  background: var(--jade);
  color: var(--ivoire);
  font-family: var(--ff-accent);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.article-body td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--encre-10);
}

.article-body tr:nth-child(even) td { background: var(--ivoire-alt); }

/* ── Pull quote ───────────────────────────────────────────── */
.pull-quote {
  position: relative;
  margin: 2.5rem 0;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  border-left: 3px solid var(--or-clair);
  font-family: var(--ff-accent);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 300;
  color: var(--jade);
  line-height: 1.5;
}

.pull-quote::before {
  content: '❝';
  font-family: var(--ff-display);
  font-size: 6rem;
  color: var(--jade);
  opacity: 0.08;
  position: absolute;
  top: -1rem;
  left: -0.5rem;
  line-height: 1;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-section {
  background: var(--ivoire-alt);
  padding: 4rem var(--gutter);
  margin-top: 3rem;
}

.faq-inner {
  max-width: 800px;
  margin-inline: auto;
}

.faq-list {
  margin-top: 1.5rem;
}

.faq-title {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--jade);
  text-align: center;
  margin-bottom: 2rem;
}

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

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

.faq-question:hover { color: var(--jade-mid); }

.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1px solid var(--or-clair);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--or-clair);
  transition: transform var(--dur-fast) var(--ease);
  margin-left: auto;
}

.faq-item[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

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

.faq-item[aria-expanded="true"] .faq-answer { max-height: 800px; }

.faq-answer-inner {
  padding: 0 0 1.25rem;
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--encre-60);
  line-height: 1.75;
}

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

.card {
  position: relative;
  background: var(--ivoire);
  border: 1px solid var(--or-clair);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: var(--encre);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(27, 67, 50, 0.12);
  border-color: var(--or);
}

/* Coin arabesque au hover */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M28 0 L28 28 L0 28' fill='none' stroke='%23D4A853' stroke-width='1.5'/%3E%3Ccircle cx='20' cy='8' r='2' fill='%23D4A853' opacity='0.5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity var(--dur-fast);
}

.card:hover::before { opacity: 1; }

.card-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform var(--dur) var(--ease);
}

.card:hover .card-image img { transform: scale(1.04); }

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

.card-kicker {
  font-family: var(--ff-accent);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 0.4rem;
}

.card-title {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--jade);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.card-desc {
  font-family: var(--ff-body);
  font-size: 0.9rem;
  color: var(--encre-60);
  line-height: 1.55;
  flex: 1;
}

/* Numérotation en fond de card */
.card-num {
  position: absolute;
  bottom: 0.5rem;
  right: 0.75rem;
  font-family: var(--ff-accent);
  font-size: 5rem;
  font-weight: 300;
  color: var(--jade);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
}

/* ── Homepage sections ───────────────────────────────────── */
.section {
  padding: 5rem var(--gutter);
}

.section-alt { background: var(--ivoire-alt); }
.section-jade { background: var(--jade); color: var(--ivoire); }

.section-kicker {
  font-family: var(--ff-accent);
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--or-clair);
  display: block;
  margin-bottom: 0.5rem;
}

.section-jade .section-kicker { color: rgba(212, 168, 83, 0.8); }

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: var(--jade);
  margin-bottom: 0.5rem;
}

.section-jade .section-title { color: var(--ivoire); }

.section-lead {
  font-family: var(--ff-body);
  font-size: 1.1rem;
  color: var(--encre-60);
  max-width: 640px;
  margin-bottom: 2.5rem;
  font-style: italic;
}

.section-jade .section-lead { color: rgba(250, 246, 239, 0.75); }

/* ── Section immersive ───────────────────────────────────── */
.section-immersive {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--jade);
}

.section-immersive-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.section-immersive-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--jade-80) 0%, rgba(27,67,50,0.6) 100%);
}

.section-immersive-content {
  position: relative;
  z-index: 1;
  padding: 4rem var(--gutter);
  max-width: 680px;
}

.section-immersive-content .section-title { color: var(--ivoire); }
.section-immersive-content .section-kicker { color: var(--or-clair); }
.section-immersive-content p { color: rgba(250,246,239,0.85); margin-bottom: 1.5rem; }

/* ── Blog listing ────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

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

.blog-card:hover {
  box-shadow: 0 8px 24px rgba(27,67,50,0.1);
  border-color: var(--or-clair);
}

.blog-card-image {
  aspect-ratio: 16 / 9;
  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.04); }

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

.blog-card-date {
  font-family: var(--ff-accent);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 0.4rem;
}

.blog-card-title {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--jade);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.blog-card-summary {
  font-size: 0.9rem;
  color: var(--encre-60);
  line-height: 1.55;
  flex: 1;
}

/* ── Blog post header ────────────────────────────────────── */
.blog-header {
  max-width: var(--measure-article);
  margin-inline: auto;
  padding: 2rem var(--gutter) 0;
  text-align: center;
}

/* ── Guides piliers grid (asymétrique) ──────────────────── */
.piliers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.pilier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--encre);
  border: 1px solid var(--or-clair);
  border-radius: 4px;
  overflow: hidden;
  background: var(--ivoire);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast);
}

.pilier-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(27,67,50,0.12);
}

.pilier-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.pilier-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform var(--dur) var(--ease);
}

.pilier-card:hover .pilier-card-image img { transform: scale(1.04); }

.pilier-card-body {
  padding: 1rem 1.1rem;
}

.pilier-card-num {
  font-family: var(--ff-accent);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--or-clair);
  margin-bottom: 0.25rem;
}

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

/* Layouts spéciaux de la grille asymétrique */
.pilier-card.feature {
  grid-column: span 2;
  grid-row: span 2;
}

.pilier-card.feature .pilier-card-image { aspect-ratio: 1 / 1; }
.pilier-card.feature .pilier-card-title { font-size: 1.3rem; }

/* ── Traditions régionales grid ──────────────────────────── */
.traditions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.tradition-card {
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  border-radius: 4px;
  overflow: hidden;
  background: var(--jade);
}

.tradition-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--dur) var(--ease);
}

.tradition-card:hover .tradition-card-bg { transform: scale(1.04); }

.tradition-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,67,50,0.85) 0%, transparent 60%);
}

.tradition-card-body {
  position: relative;
  z-index: 1;
  padding: 1.25rem;
}

.tradition-card-title {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ivoire);
}

.tradition-card-kicker {
  font-family: var(--ff-accent);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--or-clair);
  margin-bottom: 0.25rem;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--encre);
  color: var(--ivoire-alt);
  padding: 4rem var(--gutter) 2rem;
}

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

.footer-brand { }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ivoire);
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-logo .logo-mark { width: 30px; height: 30px; }

.footer-tagline {
  font-family: var(--ff-accent);
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(250,246,239,0.55);
  line-height: 1.5;
}

.footer-col h4 {
  font-family: var(--ff-accent);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--or-clair);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.4rem; }

.footer-col a {
  font-family: var(--ff-body);
  font-size: 0.9rem;
  color: rgba(250,246,239,0.65);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.footer-col a:hover { color: var(--or-clair); }

.footer-bottom {
  max-width: var(--measure-wide);
  margin-inline: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250,246,239,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--ff-accent);
  font-size: 0.78rem;
  color: rgba(250,246,239,0.4);
}

.footer-bottom a {
  color: rgba(250,246,239,0.4);
  text-decoration: none;
}

.footer-bottom a:hover { color: var(--or-clair); }

/* ── Pages utilitaires ───────────────────────────────────── */
.page-util {
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.page-util .container-narrow h1 {
  margin-bottom: 2rem;
}

.page-util .container-narrow h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
}

/* ── Contact ─────────────────────────────────────────────── */
.contact-box {
  background: var(--or-pale);
  border: 1px solid var(--or-clair);
  border-radius: 4px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.contact-email {
  margin: 1.5rem 0;
}

/* ── Plan du site ────────────────────────────────────────── */
.sitemap-section { margin-bottom: 2rem; }
.sitemap-section h2 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.sitemap-section ul { list-style: none; }
.sitemap-section li { margin-bottom: 0.35rem; }

/* ── Reveal animations ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 404 ─────────────────────────────────────────────────── */
.hero-404 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem var(--gutter) 4rem;
}

.hero-404 .num {
  font-family: var(--ff-accent);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 300;
  color: var(--jade);
  opacity: 0.1;
  line-height: 1;
  display: block;
}

.hero-404 h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.hero-404 p {
  color: var(--encre-60);
  max-width: 480px;
  margin-bottom: 2rem;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
    background: var(--or-pale);
    padding: 1rem 1.25rem;
    border-radius: 4px;
  }

  .piliers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .nav-toggle { display: flex; }

  .nav-open .nav-main {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--ivoire);
    z-index: 99;
    gap: 1rem;
  }

  .nav-open .nav-main a {
    font-size: 1.2rem;
    padding: 0.75rem 1.5rem;
  }

  .piliers-grid {
    grid-template-columns: 1fr;
  }

  .pilier-card.feature {
    grid-column: span 1;
    grid-row: span 1;
  }

  .traditions-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-home { min-height: 70vh; }

  .hero-cta-group { flex-direction: column; align-items: stretch; }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}
