/* ==========================================================================
   Église du Batlescouillisme — feuille de style
   ========================================================================== */

:root {
  --bg: #050505;
  --bg-raise: #0c0b09;
  --line: rgba(201, 165, 76, .2);
  --line-strong: rgba(201, 165, 76, .45);
  --gold: #c9a54c;
  --gold-light: #ecd393;
  --gold-dark: #8a6a2a;
  --text: #ece6d8;
  --muted: #a39b8a;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--gold); color: #0a0804; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.kicker {
  margin: 0;
  font-family: var(--display);
  font-size: .74rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}

.fine { font-size: .95rem; color: var(--muted); margin: 18px 0 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 28px;
  border: 1px solid var(--gold);
  color: #0a0804;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 34px -10px rgba(201, 165, 76, .7); }
.btn-ghost { background: transparent; color: var(--gold-light); }
.btn-ghost:hover { background: rgba(201, 165, 76, .08); }
.btn-sm { padding: 10px 16px; font-size: .66rem; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 24px;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.scrolled {
  background: rgba(5, 5, 5, .86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-color: var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.brand svg { width: 36px; height: 36px; flex: none; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-family: var(--display);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--gold-light); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 84px 20px 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 24%, rgba(201, 165, 76, .17), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(201, 165, 76, .06), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; width: 100%; max-width: 860px; --fig: min(540px, 86vw, 58vh); }

/* Le Grand Prêtre : lueur, rayons et auréole derrière la tête */
.hero-figure { position: relative; width: var(--fig); margin: 0 auto; }
.hero-figure img { position: relative; z-index: 2; display: block; width: 100%; height: auto; }
.hero-figure::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 15%;
  width: 130%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 227, 168, .36) 0%, rgba(201, 165, 76, .15) 24%, transparent 56%);
  pointer-events: none;
}
.hero-rays {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 14.4%;
  width: 210%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(236, 211, 147, .2) 0deg 2deg, transparent 2deg 10deg);
  -webkit-mask-image: radial-gradient(circle, #000 4%, rgba(0, 0, 0, .55) 22%, transparent 58%);
  mask-image: radial-gradient(circle, #000 4%, rgba(0, 0, 0, .55) 22%, transparent 58%);
  transform: translate(-50%, -50%);
  animation: rays-spin 240s linear infinite;
  pointer-events: none;
}
.hero-halo {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 14.4%;
  width: 27%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(246, 227, 168, .8);
  box-shadow: 0 0 26px rgba(246, 227, 168, .5), inset 0 0 22px rgba(246, 227, 168, .3);
  pointer-events: none;
}
.hero-text {
  position: relative;
  z-index: 3;
  margin-top: calc(var(--fig) * -0.15);
  text-shadow: 0 2px 22px rgba(0, 0, 0, .9);
}
.hero-text h1 { text-shadow: none; filter: drop-shadow(0 2px 16px rgba(0, 0, 0, .85)); }
@keyframes rays-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero h1 {
  margin: .3em 0 .35em;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 7.4vw, 5.6rem);
  line-height: 1.05;
  letter-spacing: .03em;
  background: linear-gradient(180deg, #f6e3a8 0%, var(--gold) 58%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 small {
  display: block;
  font-size: .3em;
  font-weight: 400;
  letter-spacing: .5em;
  padding-left: .5em;
  margin-bottom: .35em;
}
.lead {
  margin: 0 auto 2.2rem;
  max-width: 620px;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  font-style: italic;
  line-height: 1.4;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-foot { margin: 2.6rem 0 0; font-size: 1.05rem; color: var(--muted); }
.hero-foot strong { color: var(--gold-light); font-weight: 600; }

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  margin-left: -.5px;
  width: 1px;
  height: 56px;
  background: linear-gradient(var(--gold), transparent);
  transform-origin: top;
  animation: cue 2.6s ease-in-out infinite;
}

/* ---------- Bandeau défilant ---------- */
.ticker {
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  background: var(--bg-raise);
}
.ticker-track { display: flex; width: max-content; animation: ticker 45s linear infinite; }
.ticker-group { display: flex; gap: 2.2em; padding-right: 2.2em; }
.ticker-group span {
  font-family: var(--display);
  font-size: .86rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

/* ---------- Sections ---------- */
main > section:not(.hero) { position: relative; padding: clamp(84px, 12vw, 150px) 0; }
section.alt { background: var(--bg-raise); border-block: 1px solid rgba(201, 165, 76, .08); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(48px, 7vw, 76px); }
.section-head h2 {
  margin: .45em 0 .3em;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: .05em;
  color: var(--gold-light);
}
.section-head > p:last-child { margin: 0; color: var(--muted); font-style: italic; font-size: 1.3rem; }

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0;
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}
.ornament::before, .ornament::after {
  content: "";
  height: 1px;
  width: clamp(36px, 9vw, 90px);
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament::after { transform: scaleX(-1); }

/* ---------- Révélation ---------- */
.revelation-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose p:first-child::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 4.4em;
  line-height: .8;
  padding: .07em .12em 0 0;
  color: var(--gold);
}

.arch {
  position: relative;
  margin: 0;
  padding: clamp(80px, 9vw, 104px) 32px 48px;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px 999px 6px 6px;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(201, 165, 76, .16), transparent 68%),
    var(--bg-raise);
}
.arch::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid var(--line);
  border-radius: inherit;
  pointer-events: none;
}
.arch blockquote {
  margin: .6em 0 .5em;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.2;
  color: var(--gold-light);
}
.arch figcaption {
  font-family: var(--display);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text);
}
.arch-note { margin: 1.8em 0 0; font-size: 1rem; font-style: italic; color: var(--muted); }

/* Texte sacré (vidéo) */
.scripture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  max-width: 920px;
  margin: clamp(80px, 11vw, 130px) auto 0;
}
.scripture-head > p:not(.kicker):not(.video-alt) { margin: 0; color: var(--muted); font-style: italic; font-size: 1.3rem; }
.scripture .video-alt { margin: 20px 0 0; }
.video--vertical { width: 100%; max-width: 360px; }
.video--vertical .vp { aspect-ratio: 9 / 16; --vp-crop: 160px; }
@media (max-width: 760px) {
  .scripture { grid-template-columns: 1fr; text-align: center; }
  .scripture-head > p:not(.kicker):not(.video-alt) { max-width: 520px; margin: 0 auto; }
  .video--vertical { margin: 0 auto; }
}
.scripture-head h3 {
  margin: .45em 0 .3em;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  letter-spacing: .05em;
  color: var(--gold-light);
}

.video {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg-raise);
  box-shadow: 0 30px 80px -30px rgba(201, 165, 76, .25);
}

/* Lecteur maison : YouTube piloté en coulisses, interface réduite à l'essentiel */
.vp {
  --vp-crop: 80px;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  color: var(--gold-light);
  user-select: none;
  -webkit-user-select: none;
}
.vp:focus { outline: none; }
.vp:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; }
.vp:-webkit-full-screen { width: 100%; height: 100%; aspect-ratio: auto; }
.vp-stage { position: absolute; inset: 0; overflow: hidden; }
/* Plein écran d'une vidéo verticale : on garde une scène 9:16 centrée */
.video--vertical .vp:fullscreen .vp-stage { right: auto; left: 50%; width: min(100%, 100vh * 9 / 16); transform: translateX(-50%); }
.video--vertical .vp:-webkit-full-screen .vp-stage { right: auto; left: 50%; width: min(100%, 100vh * 9 / 16); transform: translateX(-50%); }
/* L'iframe déborde en haut et en bas (--vp-crop) : YouTube y place son titre, son logo
   et les boutons des Shorts, qui sont ainsi rognés, tandis que la vidéo (centrée)
   remplit exactement le cadre. */
.vp-stage iframe {
  position: absolute;
  left: 0;
  top: calc(-1 * var(--vp-crop));
  width: 100%;
  height: calc(100% + 2 * var(--vp-crop));
  border: 0;
  pointer-events: none;
}
.vp-shield { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.vp--hide-ui[data-state="playing"] .vp-shield { cursor: none; }

.vp .video-facade { position: absolute; inset: 0; z-index: 4; }
.vp:not([data-state="idle"]):not([data-state="loading"]):not([data-state="ready"]) .video-facade,
.vp--native .video-facade { display: none; }
.vp[data-state="loading"] .video-facade .video-play { opacity: 0; }

.vp-pause {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(0, 0, 0, .62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  pointer-events: none;
}
.vp[data-state="paused"] .vp-pause { display: flex; }
.video-play.is-static { position: relative; left: auto; top: auto; margin: 0; }
.vp-pause-label {
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.vp-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: none;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border: 2px solid rgba(201, 165, 76, .22);
  border-top-color: var(--gold-light);
  border-radius: 50%;
  animation: spin .9s linear infinite;
  pointer-events: none;
}
.vp[data-state="loading"] .vp-spinner,
.vp[data-state="buffering"] .vp-spinner { display: block; }

.vp-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 5;
  display: none;
  margin: 0;
  text-align: center;
  font-family: var(--display);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-shadow: 0 1px 8px #000;
  pointer-events: none;
}
.vp--native .vp-hint { display: block; }
.vp--native .vp-shield { display: none; }
.vp--native .vp-stage iframe { pointer-events: auto; }

.vp-end {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(201, 165, 76, .18), transparent 65%),
    #050505;
}
.vp[data-state="ended"] .vp-end { display: flex; }
.vp-end-title {
  margin: 10px 0 22px;
  font-family: var(--display);
  font-size: clamp(1.2rem, 3.2vw, 2rem);
  letter-spacing: .05em;
  color: var(--gold-light);
}
.vp-end-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.vp-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 36px 14px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .82));
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}
.vp[data-state="playing"] .vp-controls,
.vp[data-state="paused"] .vp-controls,
.vp[data-state="buffering"] .vp-controls { opacity: 1; pointer-events: auto; }
.vp.vp--hide-ui[data-state="playing"] .vp-controls { opacity: 0; pointer-events: none; }
.vp--native .vp-controls { display: none; }

.vp-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--gold-light);
  cursor: pointer;
  transition: background .2s;
}
.vp-btn:hover { background: rgba(201, 165, 76, .16); }
.vp-btn svg { width: 22px; height: 22px; fill: currentColor; }
.vp .ico-pause, .vp .ico-muted, .vp .ico-fs-exit { display: none; }
.vp[data-state="playing"] .ico-play, .vp[data-state="buffering"] .ico-play { display: none; }
.vp[data-state="playing"] .ico-pause, .vp[data-state="buffering"] .ico-pause { display: block; }
.vp--muted .ico-vol { display: none; }
.vp--muted .ico-muted { display: block; }
.vp--fs .ico-fs { display: none; }
.vp--fs .ico-fs-exit { display: block; }

.vp-time {
  flex: none;
  font-family: var(--display);
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.vp-progress {
  --p: 0%;
  flex: 1;
  min-width: 0;
  height: 22px;
  margin: 0 4px;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.vp-progress:focus { outline: none; }
.vp-progress:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
.vp-progress::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold) var(--p), rgba(255, 255, 255, .22) var(--p));
}
.vp-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 0 4px rgba(201, 165, 76, .25);
}
.vp-progress::-moz-range-track { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
.vp-progress::-moz-range-progress { height: 3px; border-radius: 2px; background: var(--gold); }
.vp-progress::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: var(--gold-light); }

/* Repli : lecteur YouTube standard si l'API ne se charge pas */
.vp--fallback > :not(.vp-stage) { display: none !important; }
.vp--fallback .vp-stage iframe { top: 0; height: 100%; pointer-events: auto; }

.video-facade {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}
.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .62;
  transition: opacity .35s, transform .7s;
}
.video-facade:hover img { opacity: .85; transform: scale(1.025); }
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(5, 5, 5, .62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: transform .25s, background .25s;
}
.video-play::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 27px;
  border-style: solid;
  border-width: 15px 0 15px 24px;
  border-color: transparent transparent transparent var(--gold-light);
}
.video-facade:hover .video-play { transform: scale(1.08); background: rgba(201, 165, 76, .25); }
.video-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 22px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .88));
  font-family: var(--display);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-align: left;
}
.video-alt { margin: 16px 0 0; font-size: 1rem; }
.video-alt a { color: var(--muted); text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.video-alt a:hover { color: var(--gold-light); }

/* ---------- Commandements ---------- */
.tablets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
  max-width: 1000px;
  margin: 0 auto;
}
.tablet {
  position: relative;
  padding: 92px clamp(24px, 3.4vw, 44px) 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50% 50% 10px 10px / 110px 110px 10px 10px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 165, 76, .1), transparent 60%),
    var(--bg);
}
.tablet::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line);
  border-radius: inherit;
  pointer-events: none;
}
.tablet-title {
  position: absolute;
  top: 46px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}
.commandments { list-style: none; margin: 0; padding: 0; }
.commandments li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.commandments li:first-child { border-top: 0; }
.numeral {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  padding-top: .12em;
}
.commandments strong { display: block; font-size: 1.32rem; font-weight: 600; line-height: 1.3; }
.note { display: block; margin-top: 5px; font-size: 1.08rem; font-style: italic; line-height: 1.45; color: var(--muted); }

/* ---------- Saintes Paroles ---------- */
main > section.sayings {
  padding: clamp(64px, 9vw, 110px) 0;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(201, 165, 76, .08), transparent 70%);
}
/* Verset I en grand sur toute la largeur, les suivants en grille 2 colonnes
   séparée par de fins traits dorés (s'adapte à n'importe quel nombre de versets). */
.sayings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 980px;
  margin: clamp(32px, 5vw, 48px) auto 0;
}
.saying {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: clamp(26px, 3.5vw, 40px) clamp(18px, 3.5vw, 44px);
  text-align: center;
}
.saying:first-child { grid-column: 1 / -1; padding-top: 0; padding-bottom: clamp(30px, 4vw, 48px); }
.saying:not(:first-child) { border-top: 1px solid var(--line); }
.saying:nth-child(odd):not(:first-child) { border-left: 1px solid var(--line); }
.saying:last-child:nth-child(even) { grid-column: 1 / -1; }
.saying blockquote {
  margin: 0;
  font-size: clamp(1.3rem, 2.3vw, 1.75rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  color: var(--gold-light);
  text-wrap: balance;
}
.saying:first-child blockquote { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.1; }
.saying figcaption {
  margin-top: 18px;
  font-family: var(--display);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 700px) {
  .sayings-grid { grid-template-columns: 1fr; }
  .saying { padding-left: 4px; padding-right: 4px; }
  .saying:nth-child(odd):not(:first-child) { border-left: 0; }
}

/* ---------- Rites ---------- */
.rites {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.rite { padding: 38px 32px 40px; background: var(--bg); transition: background .3s; }
.rite:hover { background: #0b0a08; }
.rite .idx {
  font-family: var(--display);
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
}
.rite h3 {
  margin: 14px 0 12px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.12rem;
  letter-spacing: .08em;
  color: var(--gold-light);
}
.rite p { margin: 0; color: var(--muted); line-height: 1.5; }

.calendar-title {
  margin: clamp(80px, 11vw, 120px) 0 28px;
  text-align: center;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: .06em;
  color: var(--gold-light);
}
.calendar { list-style: none; max-width: 880px; margin: 0 auto; padding: 0; }
.calendar li {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  padding: 24px 4px;
  border-top: 1px solid var(--line);
}
.calendar li:last-child { border-bottom: 1px solid var(--line); }
.when {
  padding-top: .55em;
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.calendar h4 { margin: 0 0 4px; font-size: 1.4rem; font-weight: 600; }
.calendar p { margin: 0; color: var(--muted); }

/* ---------- Credo ---------- */
.credo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 45% 55% at 50% 60%, rgba(201, 165, 76, .08), transparent 70%);
  pointer-events: none;
}
.credo-text {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 68px) clamp(24px, 5vw, 60px);
  text-align: center;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-style: italic;
  line-height: 1.55;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--gold), var(--gold)) top left / 30px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top left / 1px 30px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / 30px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / 1px 30px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 30px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 1px 30px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 30px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 1px 30px no-repeat;
}
.credo-text p { margin: 0 0 1em; }
.credo-text .amen {
  margin: 1.5em 0 0;
  padding-left: .45em;
  font-family: var(--display);
  font-style: normal;
  font-size: 1.05em;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ---------- Grandes Messes ---------- */
.mass::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(201, 165, 76, .12), transparent 70%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(201, 165, 76, .07), transparent 70%);
  pointer-events: none;
}
.mass .wrap { position: relative; }
.mass-intro {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 60px);
  text-align: center;
  font-size: clamp(1.3rem, 2.3vw, 1.6rem);
  font-style: italic;
  line-height: 1.5;
}
.mass-cta { margin-top: clamp(40px, 6vw, 56px); text-align: center; }
.mass-cta .btn { padding: 18px 34px; font-size: .84rem; }

.cert-mass { margin: -10px 0 26px; font-size: 1.1rem; }
.cert-mass a, .field-hint a { color: var(--gold-light); text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.cert-mass a:hover, .field-hint a:hover { color: #fff; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-size: 1.38rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold);
  transition: transform .25s;
}
.faq summary:hover { color: var(--gold-light); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 4px 26px; color: var(--muted); font-size: 1.25rem; }

/* ---------- Conversion ---------- */
.convert-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
}
.convert { min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field-label em { font-style: normal; color: var(--muted); letter-spacing: .1em; text-transform: none; font-family: var(--serif); font-size: 1rem; }
.field textarea {
  display: block;
  width: 100%;
  min-height: 96px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--text);
  background: #000;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea::placeholder { color: #5f594d; font-style: italic; }
.field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 165, 76, .18); }
.field-hint { display: block; margin-top: 6px; font-size: .95rem; font-style: italic; color: var(--muted); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }

.cert-bless {
  margin: 26px auto 0;
  max-width: 460px;
  padding: 20px 18px 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cert-request { margin: 10px 0 8px; font-size: 1.3rem; font-style: italic; color: var(--gold-light); overflow-wrap: anywhere; }
.cert-verdict { margin: 0 0 16px; font-size: 1.05rem; color: var(--muted); }
.cert-body strong { color: var(--gold-light); font-weight: 600; }

/* Le Registre / les Paroisses */
.parishes {
  position: relative;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 165, 76, .1), transparent 65%), var(--bg);
  text-align: center;
}
.parish-total {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 4.4rem);
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(180deg, #f6e3a8 0%, var(--gold) 60%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.parish-sub { margin: 10px 0 0; font-style: italic; color: var(--muted); }
.parishes h3 {
  margin: 32px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.parish-list { list-style: none; margin: 0; padding: 0; text-align: left; counter-reset: parish; }
.parish-list li {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 8px;
  align-items: baseline;
  padding: 9px 2px;
  border-bottom: 1px solid rgba(201, 165, 76, .1);
  counter-increment: parish;
}
.parish-list li::before {
  content: counter(parish, upper-roman);
  font-family: var(--display);
  font-size: .78rem;
  color: var(--gold);
}
.parish-name { overflow-wrap: anywhere; }
.parish-count { font-family: var(--display); font-size: .9rem; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.parish-list li.parish-empty { display: block; border: 0; text-align: center; font-style: italic; color: var(--muted); }
.parish-list li.parish-empty::before { content: none; }

@media (max-width: 960px) {
  .convert-grid { grid-template-columns: 1fr; max-width: 640px; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
}
.convert-form, .certificate {
  position: relative;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line-strong);
  background: var(--bg);
}
.convert-form::before, .certificate::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.field { display: block; margin: 0 0 26px; padding: 0; border: 0; min-width: 0; }
.field-label {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  font-family: var(--display);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.field input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1.3rem;
  color: var(--text);
  background: #000;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  transition: border-color .2s, box-shadow .2s;
}
.field input[type="text"]::placeholder { color: #5f594d; font-style: italic; }
.field input[type="text"]:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 165, 76, .18); }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block;
  padding: 8px 20px;
  font-size: 1.15rem;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.choice span:hover { border-color: var(--gold); }
.choice input:checked + span { background: var(--gold); border-color: var(--gold); color: #0a0804; font-weight: 600; }
.choice input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 2px; }

.oath { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 28px; font-style: italic; line-height: 1.45; cursor: pointer; }
.oath input { flex: none; width: 20px; height: 20px; margin: 5px 0 0; accent-color: var(--gold); cursor: pointer; }
.form-error { margin: -10px 0 20px; color: #e8a27c; font-style: italic; }

.certificate {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 165, 76, .16), transparent 62%),
    var(--bg);
  animation: appear .7s ease both;
}
.cert-emblem { width: 96px; height: 96px; margin: 0 auto 20px; }
.certificate .kicker { margin-bottom: 22px; }
.cert-body { margin: 0; font-size: 1.3rem; }
.cert-name {
  margin: .35em 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  letter-spacing: .04em;
  line-height: 1.2;
  color: var(--gold-light);
  overflow-wrap: anywhere;
}
.cert-status {
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.cert-status strong { color: var(--gold-light); font-weight: 600; }
.cert-blessing { margin: 1.1em 0 0; font-size: 1.3rem; font-style: italic; color: var(--gold-light); }
.cert-num { margin: 22px 0 28px; font-size: 1rem; color: var(--muted); }
.cert-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Pied de page ---------- */
.footer { padding: 72px 0 56px; text-align: center; border-top: 1px solid var(--line); }
.footer-emblem { width: 64px; height: 64px; margin: 0 auto 18px; opacity: .9; }
.footer-name {
  margin: 0;
  font-family: var(--display);
  font-size: .9rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.footer-domains { margin: 6px 0 0; color: var(--muted); font-size: 1.05rem; }
.footer .fine { max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Animations ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes cue {
  0% { transform: scaleY(0); opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}
@keyframes appear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .rites { grid-template-columns: repeat(2, 1fr); }
  .mass .rite:last-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .revelation-grid { grid-template-columns: 1fr; }
  .arch { max-width: 460px; width: 100%; margin: 0 auto; }
}
@media (max-width: 760px) {
  .tablets { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 600px) {
  body { font-size: 1.18rem; }
  .nav { padding: 10px 16px; }
  .wrap { padding: 0 16px; }
  .rites { grid-template-columns: 1fr; }
  .rite { padding: 30px 24px 32px; }
  .calendar li { grid-template-columns: 1fr; gap: 4px; }
  .when { padding-top: 0; }
  .video { padding: 5px; }
  .video-play { width: 66px; height: 66px; margin: -33px 0 0 -33px; }
  .video-play::after { left: 26px; top: 20px; border-width: 12px 0 12px 19px; }
  .video-title { font-size: .66rem; padding: 30px 14px 12px; }
  .vp-controls { gap: 2px; padding: 28px 6px 4px; }
  .vp-btn { width: 36px; height: 36px; }
  .vp-time { font-size: .6rem; }
  .vp-end-title { margin: 6px 0 14px; }
}
@media (max-width: 380px) {
  .vp-time { display: none; }
}
@media (max-width: 400px) {
  .brand span { display: none; }
}

/* ---------- Impression du certificat ---------- */
@media print {
  @page { margin: 12mm; }
  body { background: #fff; }
  .nav, .footer, .ticker,
  main > section:not(#conversion),
  #conversion .section-head,
  .parishes,
  .cert-actions { display: none !important; }
  .convert-grid { display: block; }
  #conversion { padding: 0 !important; background: none; border: 0; }
  .js .reveal { opacity: 1; transform: none; }
  .certificate {
    animation: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
