@font-face { font-family: "Gilda Display"; src: url(fonts/gilda-display-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Questrial"; src: url(fonts/questrial-latin-400-normal.woff2) format("woff2"); font-display: swap; }

:root {
  --bg: #eeeae3;
  --band: #c8a792;
  --deep: #2f231d;
  --ink: #1d1714;
  --accent: #8f5f3e;
  --flame: #e0672a;
  --serif: "Gilda Display", Georgia, serif;
  --sans: "Questrial", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
p + p { margin-top: .9em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.block { padding-block: clamp(72px, 11vw, 150px); }

h2 { font: 400 clamp(2.2rem, 6vw, 4.6rem)/1.08 var(--serif); }
h2.big { text-transform: uppercase; font-size: clamp(2.1rem, 5.6vw, 4.4rem); }
h3 { margin-bottom: .5em; color: var(--accent); font: 700 .9rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.more { display: inline-block; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; text-underline-offset: 4px; transition: letter-spacing .4s var(--ease); }
.more:hover { letter-spacing: .14em; }

/* Barre de progression */
.progress { position: fixed; inset: 0 0 auto; z-index: 20; height: 3px; background: var(--flame); transform: scaleX(0); transform-origin: left; }
html:not(.anim) .progress { display: none; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: var(--bg); }
.nav-in { display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; width: min(1160px, 100% - 32px); margin-inline: auto; padding: 14px 0; }
.brand { font: 400 1.4rem/1.2 var(--serif); text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.nav nav { display: flex; gap: 8px 22px; flex-wrap: wrap; margin-right: auto; }
.nav nav a { position: relative; font-size: .95rem; text-decoration: none; }
.nav nav a::after { content: ""; position: absolute; inset: auto 0 -2px; border-top: 1.5px solid currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav nav a:hover::after, .nav nav a:focus-visible::after { transform: scaleX(1); }
.btn { padding: 8px 18px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-size: .95rem; white-space: nowrap; transition: background .3s, transform .4s var(--ease); }
.btn:hover { background: var(--flame); transform: translateY(-2px); }

/* Accueil : version sans animation */
.stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; min-height: 80vh; padding: 48px 16px; overflow: hidden; text-align: center; }
.sky, .clouds { position: absolute; inset: 0; background: url(img/ciel.jpg) center / cover; }
.clouds, .hint { display: none; }
.hero-title { position: relative; font: 400 clamp(2.6rem, 8vw, 6.6rem)/1 var(--serif); }
.hero-end { position: relative; }
.hero-end img { width: min(480px, 100%); margin: 0 auto 16px; }
.hero-end p { font-size: 1.15rem; }

/* Accueil : on traverse les nuages */
.anim .hero { height: 240vh; }
.anim .stage { position: sticky; top: 0; display: block; height: 100vh; height: 100svh; min-height: 0; padding: 0; }
.anim .sky { inset: -6%; opacity: 0; }
.anim .clouds { display: block; inset: 0 -14%; background-position: center bottom; -webkit-mask-image: linear-gradient(transparent 12%, #000 52%); mask-image: linear-gradient(transparent 12%, #000 52%); }
.anim .hero-title { position: absolute; top: 46%; left: 16px; right: 16px; opacity: 0; transform: translateY(-50%); font-size: clamp(2.6rem, 9.5vw, 8.5rem); }
.anim #a-propos { position: relative; z-index: 1; margin-top: -32px; border-radius: 32px 32px 0 0; background: var(--bg); }
.anim .hero-end { position: absolute; top: 50%; left: 50%; width: min(600px, 100% - 32px); opacity: 0; transform: translate(-50%, -50%); }
.anim .hint { display: block; position: absolute; bottom: 20px; left: 50%; width: 1.5px; height: 52px; overflow: hidden; background: rgb(29 23 20 / .2); }
.anim .hint::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: hint 2s var(--ease) infinite; }
@keyframes hint { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* Mots découpés */
.w { display: inline-block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; vertical-align: top; }
.w > span { display: inline-block; }
.anim [data-split]:not(.ready), .anim [data-r], .anim [data-stagger] > * { opacity: 0; }
.anim [data-split].ready .w > span { transform: translateY(115%); }

/* Présentation */
.intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; margin-top: clamp(32px, 5vw, 64px); }
.pastors { position: relative; width: min(460px, 100%); aspect-ratio: 1; margin-inline: auto; contain: paint; }
.ring { position: absolute; inset: 0; width: 100%; overflow: visible; }
.ring text { font: 400 24px var(--serif); fill: var(--ink); }
.circle { position: absolute; inset: 13%; overflow: hidden; border-radius: 50%; background: url(img/ciel.jpg) center / cover; }
.circle img { position: absolute; top: 9%; left: 50%; width: 72%; max-width: none; transform: translateX(-50%); }

/* Mission */
.mission { padding-block: clamp(72px, 11vw, 150px); background: var(--band); }
.mission h3 { color: var(--ink); }
.statement { margin-bottom: 36px; font: 400 clamp(1.7rem, 4vw, 3.2rem)/1.22 var(--serif); }
.statement strong { font-weight: 400; color: #fff; }
.anim .statement .word { opacity: .22; }

/* Projet */
.building { overflow: hidden; width: min(1400px, 100%); margin: clamp(32px, 5vw, 64px) auto; }
.building img { width: 100%; }
.anim .building { clip-path: inset(0 12% round 28px); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.budget dl div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid rgb(29 23 20 / .18); }
.budget dd { font-family: var(--serif); font-size: 1.2rem; white-space: nowrap; }
.bar { height: 6px; margin-top: 18px; border-radius: 3px; background: rgb(29 23 20 / .12); overflow: hidden; }
.bar span { display: block; width: 12.5%; height: 100%; background: var(--flame); transform-origin: left; }
.anim .bar span { transform: scaleX(0); }

/* Pourquoi soutenir */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; padding-block: clamp(32px, 6vw, 80px); }
.why h2 { position: sticky; top: 110px; }
.row { padding-block: clamp(24px, 4vw, 44px); border-top: 1.5px solid var(--ink); }
.row:last-child { border-bottom: 1.5px solid var(--ink); }

/* Bandeau défilant */
.marquee { overflow: hidden; margin-block: clamp(32px, 6vw, 72px) clamp(24px, 4vw, 48px); }
.track { width: max-content; font: 400 clamp(2.6rem, 8vw, 6.6rem)/1.15 var(--serif); color: var(--accent); white-space: nowrap; }

.build { max-width: 820px; padding-bottom: clamp(72px, 11vw, 150px); }
.build blockquote { margin-top: 1.1em; padding-left: 20px; border-left: 3px solid var(--flame); font: 400 clamp(1.25rem, 2.6vw, 1.7rem)/1.3 var(--serif); }
.build cite { font: 400 .95rem var(--sans); white-space: nowrap; }
.build .more { margin-top: 28px; }

/* Dons */
.give-band { padding-block: clamp(72px, 11vw, 150px); background: var(--deep); color: var(--bg); }
.give { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 88px); margin-top: clamp(32px, 5vw, 64px); }
.ways { display: grid; gap: 20px; align-content: start; }
.way { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 18px; border-radius: 22px; background: var(--bg); color: var(--ink); text-align: center; text-decoration: none; }
a.way { transition: transform .5s var(--ease), background .3s; }
a.way:hover { background: #fff; transform: translateY(-6px); }
.bank { font-size: .95rem; overflow-wrap: anywhere; }
.bank span { font-weight: 700; white-space: nowrap; }
.lead { font-size: 1.2rem; }
.give ul { margin: .3em 0 1.2em; padding-left: 1.4em; }

/* Contact */
.rule { display: flex; align-items: center; gap: 24px; }
.rule::after { content: ""; flex: 1; border-top: 1.5px solid var(--ink); transform-origin: left; }
.anim .rule::after { transform: scaleX(var(--line, 0)); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 48px; }
.contact > img { width: min(400px, 100%); margin-inline: auto; }
.contact ul { display: grid; gap: 18px; padding: 0; list-style: none; }
.contact li a { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; overflow-wrap: anywhere; transition: transform .4s var(--ease), color .3s; }
.contact li a:hover { color: var(--flame); transform: translateX(6px); }
.contact svg { flex: none; }
.foot { padding-block: 0 32px; font-size: .85rem; text-align: center; }

@media (max-width: 800px) {
  .intro, .why, .give, .contact { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .why h2 { position: static; }
  .anim .building { clip-path: inset(0 6% round 18px); }
  .nav-in { gap: 8px 16px; padding: 10px 0; }
  .brand { font-size: 1.15rem; margin-right: auto; }
  .nav nav { order: 3; width: 100%; gap: 4px 14px; }
  .nav nav a { font-size: .85rem; }
  .btn { padding: 5px 12px; font-size: .85rem; }
  html { scroll-padding-top: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
