/* =========================================================
   Libérer les Captifs — Page temporaire
   Système de design : sombre + or, esthétique spirituelle
   ========================================================= */

:root {
  /* Fonds */
  --bg:            #0B0D12;
  --bg-2:          #0F1319;
  --bg-3:          #12161D;
  --surface:       rgba(255, 255, 255, 0.02);
  --surface-2:     rgba(217, 164, 65, 0.04);

  /* Or / accents */
  --gold:          #D9A441;
  --gold-soft:     #E8C06A;
  --gold-bright:   #F4D58D;
  --blue:          #2FA8E0; /* rappel du logo, en touche */

  /* Texte */
  --text:          #F5EEDD; /* titres / crème */
  --text-body:     #C7CBD1; /* corps */
  --text-muted:    #8A8F98; /* atténué */

  /* Lignes & ombres */
  --border:        rgba(217, 164, 65, 0.18);
  --border-soft:   rgba(245, 238, 221, 0.08);
  --shadow-gold:   0 14px 40px -14px rgba(217, 164, 65, 0.45);
  --shadow-soft:   0 24px 60px -24px rgba(0, 0, 0, 0.75);

  /* Typo */
  --font-display:  "Cinzel", Georgia, serif;
  --font-serif:    "Cormorant Garamond", Georgia, serif;
  --font-body:     "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw:          1120px;
  --maxw-narrow:   760px;
  --radius:        16px;
  --radius-sm:     10px;

  --gold-gradient: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, #b9862c);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 75% -10%, rgba(217, 164, 65, 0.10), transparent 60%),
    radial-gradient(900px 500px at 10% 5%, rgba(47, 168, 224, 0.05), transparent 55%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--gold-soft); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-bright); }

h1, h2, h3 { color: var(--text); line-height: 1.15; margin: 0 0 .4em; }

::selection { background: rgba(217, 164, 65, 0.28); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #12160c;
  padding: .6rem 1rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}
.narrow { max-width: var(--maxw-narrow); }
.center { text-align: center; margin-inline: auto; }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt {
  background:
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-block: 1px solid var(--border-soft);
}

/* ---------- Typo helpers ---------- */
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 .9rem;
}
.eyebrow.center { display: block; }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.9rem);
  letter-spacing: .02em;
}
.section-title .amp { color: var(--gold); font-family: var(--font-serif); font-style: italic; }

.lead {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 1.4rem;
}
.lead em { color: var(--gold-soft); font-style: italic; }

.body { color: var(--text-body); }
.body strong { color: var(--text); }

/* ---------- Boutons ---------- */
.btn {
  --_pad-y: .8rem;
  --_pad-x: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: var(--_pad-y) var(--_pad-x);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-lg { --_pad-y: 1rem; --_pad-x: 1.9rem; font-size: 1rem; }
.btn-sm { --_pad-y: .5rem; --_pad-x: .9rem; font-size: .82rem; }

.btn-primary {
  background: var(--gold-gradient);
  color: #1a1405;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px -14px rgba(217, 164, 65, 0.6);
  color: #1a1405;
}

.btn-secondary {
  background: transparent;
  color: var(--gold-soft);
  border-color: var(--border);
  backdrop-filter: blur(4px);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  color: var(--gold-bright);
  background: var(--surface-2);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border-soft);
}
.btn-ghost:hover { border-color: var(--border); color: var(--gold-bright); }

.yt-glyph {
  display: inline-grid;
  place-items: center;
  width: 1.15em;
  height: 1.15em;
  font-size: .8em;
  color: #ff3b30;
}
.btn-primary .yt-glyph { color: #b5231b; }

.btn-icon { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }

/* ---------- Réseaux sociaux ---------- */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.social { display: inline-flex; gap: .55rem; }
.social-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.02);
  transition: transform .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
}
.social-btn svg { width: 20px; height: 20px; fill: currentColor; }
.social-btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  color: var(--gold-bright);
  background: var(--surface-2);
}
.social-sm .social-btn { width: 38px; height: 38px; }
.social-sm .social-btn svg { width: 17px; height: 17px; }

.hero-social {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
}
.hero-social-label {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 18, 0.55);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom-color: var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-logo {
  width: 40px; height: 40px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(0,0,0,.4);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: .04em;
}
.header-nav { display: flex; align-items: center; gap: 1.6rem; }
.header-nav > a:not(.btn) {
  color: var(--text-body);
  font-size: .92rem;
  font-weight: 500;
}
.header-nav > a:not(.btn):hover { color: var(--gold-bright); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 860px);
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* évite le "grid blowout" au max-content */
  place-items: center;
  padding: 6rem 0 5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #0b0d12 url("images/banniere_15_04_53.png") center 30% / cover no-repeat;
  transform: scale(1.18);
  /* Flou : la bannière contient déjà le titre incrusté ; on le rend indistinct
     pour ne garder que le titre HTML net par-dessus (fond atmosphérique). */
  filter: blur(8px) brightness(.86) saturate(1.06);
  animation: heroDrift 26s ease-in-out infinite alternate;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(135% 105% at 50% 30%, rgba(7,9,13,.44) 0%, rgba(7,9,13,.80) 52%, rgba(9,11,16,.97) 100%),
    linear-gradient(180deg, rgba(7,9,13,.62) 0%, rgba(7,9,13,.66) 42%, rgba(11,13,18,.99) 100%);
}
@keyframes heroDrift {
  from { transform: scale(1.18) translate(0, 0); }
  to   { transform: scale(1.24) translate(-1.2%, -1.5%); }
}

.hero-content {
  text-align: center;
  width: 100%;
  max-width: 760px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo {
  width: clamp(72px, 12vw, 96px);
  height: clamp(72px, 12vw, 96px);
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 1.4rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft), 0 0 40px -8px rgba(217,164,65,.4);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(217,164,65,.06);
  color: var(--gold-soft);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 1.6rem;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(217,164,65,.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(217,164,65,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(217,164,65,0); }
  100% { box-shadow: 0 0 0 0 rgba(217,164,65,0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 1.6rem + 6vw, 5.4rem);
  letter-spacing: .03em;
  margin: 0 0 .5rem;
  background: linear-gradient(180deg, #fff 0%, var(--gold-bright) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 30px rgba(217,164,65,.15);
}
.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, .95rem + .7vw, 1.5rem);
  color: var(--gold-soft);
  letter-spacing: .02em;
  margin: 0 0 1.5rem;
}
.hero-lead {
  color: var(--text-body);
  max-width: min(60ch, 100%);
  margin: 0 auto 2.2rem;
  font-size: clamp(1rem, .96rem + .2vw, 1.12rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  justify-content: center;
}

.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 2px solid var(--border);
  border-radius: 14px;
  display: grid;
  justify-items: center;
  padding-top: 7px;
}
.scroll-cue span {
  width: 4px; height: 8px;
  border-radius: 4px;
  background: var(--gold-soft);
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0%   { opacity: 0; transform: translateY(-4px); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ---------- Scripture / citation ---------- */
.scripture {
  margin: 2.4rem 0;
  padding: 2rem 1.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), transparent);
  position: relative;
  text-align: center;
}
.scripture .ornament {
  color: var(--gold);
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: .6rem;
}
.scripture blockquote {
  margin: 0 0 .8rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem);
  color: var(--text);
  line-height: 1.5;
}
.scripture figcaption {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  color: var(--gold);
  font-weight: 600;
}

/* ---------- Cartes mission ---------- */
.cards {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}
.card {
  padding: 1.7rem 1.5rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  background: var(--surface-2);
  box-shadow: 0 22px 50px -30px rgba(217,164,65,.55);
}
.card-icon {
  font-size: 1.7rem;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(217,164,65,.08);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.card p { margin: 0; font-size: .96rem; color: var(--text-body); }

/* ---------- Bande d'appel ---------- */
.cta-band {
  background:
    radial-gradient(90% 120% at 50% -10%, rgba(217,164,65,.12), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-3));
}
.cta-band .section-title { margin-bottom: 1rem; }
.cta-band .btn { margin-top: .6rem; }

/* ---------- Soutenir / Témoignages ---------- */
.fine-print {
  color: var(--text-muted);
  font-size: .84rem;
  margin: 1.1rem auto 0;
  max-width: 46ch;
}
.donate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  justify-content: center;
  margin-top: .4rem;
}
@media (max-width: 640px) {
  .donate-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg);
  padding: 2.4rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text);
}
.footer-brand img { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-body); font-size: .92rem; }
.footer-links a:hover { color: var(--gold-bright); }
.footer-note { color: var(--text-muted); font-size: .82rem; margin: 0; }

/* ---------- Page de remerciement (merci.html) ---------- */
.thanks {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 4rem 0;
  text-align: center;
  background-image:
    radial-gradient(1000px 520px at 50% -8%, rgba(217, 164, 65, 0.14), transparent 62%);
}
.thanks-logo {
  width: clamp(72px, 12vw, 96px);
  height: clamp(72px, 12vw, 96px);
  border-radius: 18px;
  object-fit: cover;
  margin: 0 auto 1.4rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft), 0 0 40px -8px rgba(217, 164, 65, 0.4);
}
.thanks-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 1.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(217, 164, 65, 0.08);
  color: var(--gold-bright);
}
.thanks-icon svg { width: 36px; height: 36px; fill: currentColor; }
.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  justify-content: center;
  margin-top: 2rem;
}
@media (max-width: 640px) {
  .thanks-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Feedback bouton newsletter (href non configuré) ---------- */
.btn.nudge { animation: nudge .5s ease; }
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

/* ---------- Révélations au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
/* En-tête : masque les liens texte + le nom dès que la place se réduit
   (le logo et les icônes sociales restent) */
@media (max-width: 820px) {
  .header-nav > a:not(.btn) { display: none; }
  .brand-name { display: none; }
}

@media (max-width: 640px) {
  .header-nav { gap: .9rem; }
  .hero { min-height: 92svh; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .badge {
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
    line-height: 1.5;
    letter-spacing: .12em;
    font-size: .66rem;
    max-width: 100%;
  }
  .scroll-cue { display: none; }
}

/* ---------- Préférence de mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg { animation: none; transform: scale(1.18); }
  .badge-dot, .scroll-cue span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
