/* =========================================================================
   paroisses-saintfons-feyzin.fr — Style global
   Direction artistique : Catholique latine moderne
   Palette : pierre claire / encre nuit / bleu Marial / pourpre liturgique / or doux
   Typos : Cormorant Garamond (display) + Inter (body) + Lora italic (kickers)
   ========================================================================= */

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

:root {
  /* Couleurs principales */
  --pierre-claire: #F0EBE2;
  --encre-nuit: #0E1B2C;
  --bleu-marial: #3A5680;
  --bleu-marial-clair: #5A7AA0;
  --pourpre-liturgique: #7A2E3F;
  --or-doux: #C9A35A;
  --or-clair: #E0C188;
  --blanc-cierge: #FBFAF6;
  --gris-cendre: #8A8A85;

  /* Variantes opacité (encre-nuit) */
  --nuit-80: rgba(14, 27, 44, 0.80);
  --nuit-65: rgba(14, 27, 44, 0.65);
  --nuit-40: rgba(14, 27, 44, 0.40);
  --nuit-20: rgba(14, 27, 44, 0.20);
  --nuit-10: rgba(14, 27, 44, 0.10);
  --nuit-06: rgba(14, 27, 44, 0.06);

  /* Variantes opacité (blanc-cierge) */
  --cierge-95: rgba(251, 250, 246, 0.95);
  --cierge-75: rgba(251, 250, 246, 0.75);
  --cierge-40: rgba(251, 250, 246, 0.40);

  /* Polices */
  --ff-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ff-body: 'Inter', system-ui, -apple-system, sans-serif;
  --ff-quote: 'Lora', Georgia, serif;

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

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

/* =========================================================================
   RESET / BASE
   ========================================================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--encre-nuit);
  background: var(--blanc-cierge);
  font-weight: 400;
  overflow-x: hidden;
}

img, picture, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--bleu-marial);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
a:hover, a:focus {
  color: var(--pourpre-liturgique);
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--ff-display);
  color: var(--encre-nuit);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.75em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.2em; }
ul, ol { padding-left: 1.5em; margin: 0 0 1.2em; }
li { margin: 0 0 0.5em; }

blockquote {
  margin: 2em 0;
  padding: 0.5em 0 0.5em 1.5em;
  border-left: 3px solid var(--bleu-marial);
  font-family: var(--ff-quote);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--nuit-80);
}

hr {
  border: none;
  border-top: 1px solid var(--nuit-20);
  margin: 3em auto;
  max-width: 4em;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* =========================================================================
   TYPOGRAPHIE — kickers, lettrines, filets
   ========================================================================= */

.kicker {
  font-family: var(--ff-quote);
  font-style: italic;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--or-doux);
  font-weight: 500;
  margin: 0 0 0.75em;
  display: inline-block;
}

.section-title {
  position: relative;
  padding-bottom: 0.5em;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3em;
  height: 2px;
  background: var(--or-doux);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}
.section-title.reveal.visible::after { transform: scaleX(1.5); }

/* Lettrine premier paragraphe articles */
.article-body > p:first-of-type::first-letter {
  font-family: var(--ff-display);
  font-size: 4.2em;
  font-weight: 600;
  line-height: 0.9;
  float: left;
  margin: 0.05em 0.1em 0 0;
  color: var(--or-doux);
}

/* Pull quote */
.pull-quote {
  margin: 2.5em 0;
  padding: 0 1.5em;
  border-left: 4px solid var(--bleu-marial);
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--encre-nuit);
}
.pull-quote cite {
  display: block;
  margin-top: 0.75em;
  font-family: var(--ff-body);
  font-style: normal;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--or-doux);
}

/* =========================================================================
   LAYOUT GLOBAL
   ========================================================================= */

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

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

/* =========================================================================
   HEADER / NAV
   ========================================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--cierge-95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nuit-10);
  transition: padding var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  padding: 0.85rem 0;
}
.site-header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 18px var(--nuit-10);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--encre-nuit);
  line-height: 1;
}
.brand-tag {
  display: block;
  font-family: var(--ff-quote);
  font-style: italic;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--bleu-marial);
  margin-top: 0.15em;
}

.site-nav { display: flex; align-items: center; gap: 0.5rem; }
.site-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
  align-items: center;
}
.site-nav li { margin: 0; position: relative; }
.site-nav a {
  display: block;
  padding: 0.6rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--encre-nuit);
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.25rem;
  height: 1px;
  background: var(--or-doux);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-fast) var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a:hover { color: var(--bleu-marial); text-decoration: none; }

.dropdown { position: relative; }
.dropdown-trigger { display: flex; align-items: center; gap: 0.25rem; }
.dropdown-trigger::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 0.4em;
  vertical-align: middle;
  transition: transform var(--dur-fast) var(--ease);
}
.dropdown.open > .dropdown-trigger::after { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  min-width: 240px;
  background: var(--blanc-cierge);
  border: 1px solid var(--nuit-10);
  box-shadow: 0 12px 32px var(--nuit-20);
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  display: none;
  flex-direction: column;
  gap: 0;
  z-index: 110;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.dropdown.open > .dropdown-menu {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.dropdown-menu li { width: 100%; }
.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  white-space: nowrap;
}
.dropdown-menu a::after { display: none; }
.dropdown-menu a:hover { background: var(--nuit-06); color: var(--bleu-marial); }

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  border: 1px solid var(--nuit-20);
  border-radius: 4px;
}
.menu-toggle span {
  display: block;
  width: 1.2rem;
  height: 1.5px;
  background: var(--encre-nuit);
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(0.45rem) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-0.45rem) rotate(-45deg); }

@media (max-width: 1024px) {
  .menu-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(100%, 360px);
    background: var(--blanc-cierge);
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    flex-direction: column;
    justify-content: flex-start;
    padding: 5rem 1.5rem 2rem;
    overflow-y: auto;
    box-shadow: -8px 0 32px var(--nuit-20);
  }
  .nav-open .site-nav { transform: translateX(0); }
  .site-nav ul {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 0;
  }
  .site-nav a { padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--nuit-06); }
  .site-nav a::after { display: none; }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid var(--nuit-06);
    padding: 0 0 0.5rem 1rem;
    background: var(--nuit-06);
  }
}

/* =========================================================================
   HERO
   ========================================================================= */

.hero {
  position: relative;
  min-height: clamp(70vh, 95vh, 100vh);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  color: var(--blanc-cierge);
  padding: 8rem 0 4rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--nuit-65) 0%, var(--nuit-80) 60%, rgba(14, 27, 44, 0.92) 100%);
}
.hero-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero-kicker {
  font-family: var(--ff-quote);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.85rem;
  color: var(--or-clair);
  margin-bottom: 1.5em;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.2s forwards;
}
.hero h1 {
  color: var(--blanc-cierge);
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.05;
  margin-bottom: 0.5em;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.4s forwards;
}
.hero-lede {
  font-family: var(--ff-quote);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--cierge-95);
  max-width: 640px;
  margin: 0 auto 2em;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.6s forwards;
}
.hero-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.8s forwards;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  justify-content: center;
  align-items: center;
  margin-top: 1.5em;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cierge-75);
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.6s forwards;
}
.hero-meta time { font-family: var(--ff-quote); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 0.95rem; }

.hero-breadcrumb {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cierge-75);
  margin-bottom: 1em;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.2s forwards;
}
.hero-breadcrumb a { color: var(--or-clair); text-decoration: none; }
.hero-breadcrumb a:hover { color: var(--blanc-cierge); }
.hero-breadcrumb .sep { margin: 0 0.5em; opacity: 0.5; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cierge-75);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.2s forwards;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 1.5rem;
  background: var(--or-clair);
  animation: pulseLine 2s var(--ease) infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseLine {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.5); }
}

/* =========================================================================
   BOUTONS
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95em 2em;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--bleu-marial);
  color: var(--blanc-cierge);
}
.btn-primary:hover {
  background: var(--encre-nuit);
  color: var(--blanc-cierge);
  text-decoration: none;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--blanc-cierge);
  border-color: var(--cierge-75);
}
.btn-outline:hover {
  background: var(--cierge-95);
  color: var(--encre-nuit);
  border-color: var(--blanc-cierge);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--bleu-marial);
  border-color: var(--bleu-marial);
}
.btn-ghost:hover {
  background: var(--bleu-marial);
  color: var(--blanc-cierge);
  text-decoration: none;
}

/* =========================================================================
   SECTIONS GÉNÉRIQUES
   ========================================================================= */

section { padding: clamp(3rem, 7vw, 6rem) 0; }

.section-intro {
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.section-intro p { font-family: var(--ff-quote); font-style: italic; font-size: 1.15rem; color: var(--nuit-80); }

/* =========================================================================
   GRID — guides piliers
   ========================================================================= */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) { .pillars-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 600px) { .pillars-grid { grid-template-columns: 1fr; gap: 1rem; } }

.p-card { grid-column: span 4; position: relative; aspect-ratio: 4 / 5; overflow: hidden; isolation: isolate; }
.p-card-wide { grid-column: span 8; aspect-ratio: 16 / 9; }
.p-card-tall { grid-column: span 4; aspect-ratio: 3 / 4; }
.p-card-sq { grid-column: span 6; aspect-ratio: 1 / 1; }
@media (max-width: 1024px) {
  .p-card, .p-card-wide, .p-card-tall, .p-card-sq { grid-column: span 6; aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .p-card, .p-card-wide, .p-card-tall, .p-card-sq { grid-column: span 1; aspect-ratio: 4 / 3; }
}

.p-card a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.p-card-img { position: absolute; inset: 0; z-index: -2; }
.p-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.p-card a:hover .p-card-img img { transform: scale(1.05); }
.p-card-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 27, 44, 0.20) 0%, rgba(14, 27, 44, 0.65) 70%, rgba(14, 27, 44, 0.90) 100%);
}
.p-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  color: var(--blanc-cierge);
}
.p-card-kicker {
  font-family: var(--ff-quote);
  font-style: italic;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--or-clair);
  margin: 0 0 0.5em;
  display: block;
}
.p-card-title {
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--blanc-cierge);
  margin: 0 0 0.5em;
}
.p-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--cierge-75);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================================================
   GRID — articles blog
   ========================================================================= */

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

.b-card {
  display: flex;
  flex-direction: column;
  background: var(--blanc-cierge);
  border: 1px solid var(--nuit-10);
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.b-card:hover {
  border-color: var(--bleu-marial);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--nuit-10);
  text-decoration: none;
}
.b-card-img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.b-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur) var(--ease); }
.b-card:hover .b-card-img img { transform: scale(1.05); }
.b-card-body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.b-card-kicker {
  font-family: var(--ff-quote);
  font-style: italic;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--or-doux);
  margin: 0 0 0.5em;
}
.b-card-title {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--encre-nuit);
  margin: 0 0 0.5em;
}
.b-card-excerpt {
  color: var(--nuit-80);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 1em;
  flex: 1;
}
.b-card-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.78rem;
  color: var(--gris-cendre);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* =========================================================================
   ARTICLE — pilier ou blog
   ========================================================================= */

.article-summary {
  max-width: var(--measure-article);
  margin: 0 auto 3rem;
  padding: 0 var(--gutter);
  font-family: var(--ff-quote);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--nuit-80);
  text-align: center;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 1024px) {
  .article-shell { grid-template-columns: 1fr; }
}

.article-toc {
  position: sticky;
  top: 6rem;
  font-size: 0.92rem;
}
@media (max-width: 1024px) { .article-toc { position: static; } }
.article-toc h2 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--or-doux);
  font-family: var(--ff-body);
  margin: 0 0 1em;
  font-weight: 600;
}
.article-toc ul { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--nuit-10); }
.article-toc li { margin: 0; }
.article-toc a {
  display: block;
  padding: 0.55em 1em;
  color: var(--nuit-80);
  font-size: 0.92rem;
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: all var(--dur-fast) var(--ease);
}
.article-toc a:hover { color: var(--bleu-marial); border-left-color: var(--bleu-marial); text-decoration: none; }

.article-body {
  max-width: var(--measure-article);
  font-size: 1.075rem;
  line-height: 1.75;
}
.article-body h2 {
  margin: 2.5em 0 0.8em;
  position: relative;
  padding-top: 0.5em;
  scroll-margin-top: 6rem;
}
.article-body h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5em;
  height: 2px;
  background: var(--or-doux);
}
.article-body h3 { margin: 2em 0 0.6em; color: var(--bleu-marial); scroll-margin-top: 6rem; }
.article-body p { margin: 0 0 1.3em; }
.article-body ul, .article-body ol { margin: 1.3em 0; }
.article-body img {
  margin: 2em auto;
  width: 100%;
  border-radius: 0;
}
.article-body figure {
  margin: 2.5em 0;
  text-align: center;
}
.article-body figure img { margin: 0 auto; }
.article-body figcaption {
  margin-top: 0.75em;
  font-family: var(--ff-quote);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--gris-cendre);
}

.article-body a { color: var(--bleu-marial); border-bottom: 1px solid var(--nuit-20); text-decoration: none; transition: all var(--dur-fast) var(--ease); }
.article-body a:hover { color: var(--pourpre-liturgique); border-bottom-color: var(--pourpre-liturgique); text-decoration: none; }

/* =========================================================================
   FAQ ACCORDION
   ========================================================================= */

.faq-section {
  background: var(--pierre-claire);
  margin: 4rem 0 0;
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.faq-list {
  max-width: var(--measure-article);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.faq-item {
  border-bottom: 1px solid var(--nuit-20);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25em 0;
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--encre-nuit);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease);
}
.faq-question:hover { color: var(--bleu-marial); }
.faq-question::after {
  content: '+';
  font-family: var(--ff-display);
  font-size: 1.6rem;
  color: var(--or-doux);
  font-weight: 400;
  transition: transform var(--dur-fast) var(--ease);
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.faq-answer-inner { padding: 0 0 1.25em; color: var(--nuit-80); line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 1500px; }

/* =========================================================================
   RELATED ARTICLES
   ========================================================================= */

.related-section {
  padding: 4rem 0;
  border-top: 1px solid var(--nuit-10);
}
.related-section h2 {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--or-doux);
  font-family: var(--ff-body);
  font-weight: 600;
  margin: 0 0 2rem;
  text-align: center;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* =========================================================================
   FOOTER
   ========================================================================= */

.site-footer {
  background: var(--encre-nuit);
  color: var(--cierge-75);
  padding: 4rem 0 2rem;
  font-size: 0.92rem;
}
.site-footer a { color: var(--cierge-75); text-decoration: none; }
.site-footer a:hover { color: var(--or-clair); text-decoration: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h3 {
  color: var(--blanc-cierge);
  font-family: var(--ff-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 1.2em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0 0 0.6em; }
.footer-brand h3 {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--blanc-cierge);
  margin: 0 0 0.4em;
}
.footer-brand .footer-tag {
  font-family: var(--ff-quote);
  font-style: italic;
  color: var(--or-clair);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 1em;
}
.footer-brand p { line-height: 1.65; }
.footer-bottom {
  border-top: 1px solid rgba(251, 250, 246, 0.10);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(251, 250, 246, 0.5);
}
.footer-heritage {
  font-family: var(--ff-quote);
  font-style: italic;
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(251, 250, 246, 0.5);
}

/* =========================================================================
   IMMERSIVE — section pleine largeur avec image
   ========================================================================= */

.immersive {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--blanc-cierge);
  text-align: center;
  padding: 6rem 0;
}
.immersive-bg { position: absolute; inset: 0; z-index: -2; }
.immersive-bg img { width: 100%; height: 100%; object-fit: cover; }
.immersive-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(14, 27, 44, 0.72);
}
.immersive-content { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }
.immersive h2 { color: var(--blanc-cierge); font-size: clamp(2rem, 4vw, 3rem); }
.immersive p { font-family: var(--ff-quote); font-style: italic; font-size: 1.2rem; line-height: 1.55; color: var(--cierge-95); margin-bottom: 2rem; }

/* =========================================================================
   ANIMATIONS SCROLL REVEAL
   ========================================================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================================
   PAGE CONTENT (utilitaires + locales)
   ========================================================================= */

.page-shell {
  max-width: var(--measure-article);
  margin: 0 auto;
  padding: 8rem var(--gutter) 4rem;
}
.page-shell h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.5em; }
.page-shell .article-body { max-width: 100%; }

.contact-email {
  background: var(--pierre-claire);
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}
.contact-email .btn { margin: 1rem 0; }

/* =========================================================================
   404
   ========================================================================= */

.not-found {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem var(--gutter);
  text-align: center;
}
.not-found h1 { font-size: clamp(3rem, 8vw, 6rem); margin-bottom: 0.25em; color: var(--bleu-marial); }
.not-found p { font-family: var(--ff-quote); font-style: italic; font-size: 1.2rem; color: var(--nuit-80); margin-bottom: 2rem; max-width: 540px; }
.not-found .btn-list { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* =========================================================================
   STATS — chiffres-clés
   ========================================================================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-num {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--bleu-marial);
  line-height: 1;
  margin-bottom: 0.3em;
}
.stat-label {
  font-family: var(--ff-quote);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gris-cendre);
}

/* =========================================================================
   INTERVIEW BLOCKS (Phase 5 — articles 11-12)
   ========================================================================= */

.interview-meta {
  background: var(--pierre-claire);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-left: 4px solid var(--bleu-marial);
}
.interview-meta strong { color: var(--bleu-marial); }
.journalist-question {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--bleu-marial);
  margin-top: 2.5em;
  padding: 0.5em 0 0.5em 1em;
  border-left: 3px solid var(--or-doux);
}
.expert-answer {
  margin-bottom: 2em;
  padding-left: 1em;
}

/* =========================================================================
   DIVERS UTILITAIRES
   ========================================================================= */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.lead { font-family: var(--ff-quote); font-style: italic; font-size: 1.2rem; line-height: 1.55; color: var(--nuit-80); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--or-doux);
  margin-bottom: 0.75em;
}
