/* ============================================================
   CHDO — Feuille de styles principale
   Modifiez ici les couleurs, espacements et apparence du site.
   ============================================================ */

:root {
  --blue-950: #052f4a;
  --blue-900: #073b5c;
  --blue-800: #0b5f97;
  --blue-700: #1478b7;
  --blue-500: #58acd2;
  --blue-100: #e9f6fb;
  --gold-500: #f3c65b;
  --gold-200: #f9e6ac;
  --cream: #fffaf0;
  --ink: #102433;
  --muted: #5a6c78;
  --white: #ffffff;
  --border: rgba(7, 59, 92, 0.14);
  --shadow: 0 24px 70px rgba(7, 59, 92, 0.12);
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 9999; padding: 10px 14px; background: var(--blue-950); color: white; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 16px; }

.topbar { background: var(--blue-950); color: rgba(255,255,255,.9); font-size: .86rem; }
.topbar__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar a { color: white; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.95); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .2s ease, border-color .2s ease; }
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(7,59,92,.08); border-bottom-color: var(--border); }
.site-header--sub { position: relative; }
.header__inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 72px; height: 72px; object-fit: contain; border-radius: 50%; }
.brand__text { display: grid; line-height: 1.2; }
.brand__text strong { color: var(--blue-950); font-family: Georgia, "Times New Roman", serif; font-size: 1.04rem; }
.brand__text small { color: var(--blue-700); letter-spacing: .09em; margin-top: 5px; font-size: .68rem; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a { color: var(--blue-950); text-decoration: none; font-weight: 650; font-size: .95rem; position: relative; }
.main-nav a:not(.nav-cta)::after { content: ""; position: absolute; height: 2px; left: 0; right: 100%; bottom: -7px; background: var(--gold-500); transition: right .2s ease; }
.main-nav a:hover::after, .main-nav a.is-active::after { right: 0; }
.nav-cta { padding: 11px 17px; border-radius: 999px; color: white !important; background: var(--blue-800); }
.nav-cta:hover { background: var(--blue-950); }
.nav-toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border: 1px solid var(--border); background: white; border-radius: 14px; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; background: var(--blue-950); }

.hero { overflow: hidden; background: linear-gradient(135deg, #f4fbff 0%, #fffdf6 60%, #fff 100%); }
.hero__grid { min-height: 650px; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 70px; padding-block: 90px; }
.eyebrow { margin: 0 0 14px; color: var(--blue-700); text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 800; }
.eyebrow--gold { color: var(--gold-500); }
h1,h2,h3 { font-family: Georgia, "Times New Roman", serif; color: var(--blue-950); line-height: 1.08; margin-top: 0; }
h1 { font-size: clamp(3rem, 6vw, 5.7rem); letter-spacing: -.035em; margin-bottom: 24px; }
h2 { font-size: clamp(2.25rem, 4vw, 4rem); letter-spacing: -.025em; margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 12px; }
p { margin-top: 0; }
.hero__lead { max-width: 760px; font-size: clamp(1.12rem, 2vw, 1.38rem); color: #39596a; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 13px 19px; border-radius: 999px; text-decoration: none; font-weight: 800; border: 1px solid transparent; transition: transform .16s ease, background .16s ease, color .16s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue-800); color: white; }
.btn--primary:hover { background: var(--blue-950); }
.btn--ghost { color: var(--blue-950); border-color: rgba(7,59,92,.2); background: rgba(255,255,255,.65); }
.btn--ghost:hover { border-color: var(--blue-800); }
.btn--light { background: white; color: var(--blue-950); }
.hero__note { margin-top: 44px; display: grid; gap: 3px; padding-left: 18px; border-left: 3px solid var(--gold-500); color: var(--muted); }
.hero__note strong { color: var(--blue-950); font-size: 1.05rem; }
.hero__note-label { color: var(--blue-700); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.hero__visual { position: relative; min-height: 460px; display: grid; place-items: center; }
.hero__visual img { width: min(90%, 470px); position: relative; z-index: 2; filter: drop-shadow(0 22px 35px rgba(7,59,92,.14)); border-radius: 44px; }
.hero__halo { position: absolute; width: 430px; height: 430px; border-radius: 50%; background: radial-gradient(circle, rgba(243,198,91,.38), rgba(88,172,210,.18) 46%, transparent 70%); filter: blur(4px); }

.section { padding-block: 110px; }
.section--light { background: #f7fbfd; }
.section--warm { background: var(--cream); }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: start; }
.prose { color: #365464; font-size: 1.08rem; }
.prose p + p { margin-top: 18px; }
.text-link { color: var(--blue-800); font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.06rem; }
.section-heading--center { text-align: center; margin-inline: auto; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { position: relative; padding: 34px 30px 32px; min-height: 300px; border: 1px solid var(--border); border-radius: var(--radius-md); background: white; box-shadow: 0 10px 35px rgba(7,59,92,.05); overflow: hidden; }
.service-card::before { content: ""; position: absolute; inset: auto -30px -70px auto; width: 170px; height: 170px; border-radius: 50%; background: var(--blue-100); }
.service-card__number { color: var(--blue-500); font-weight: 900; letter-spacing: .08em; }
.service-card__icon { margin: 30px 0 24px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: var(--blue-950); background: linear-gradient(135deg, var(--gold-200), #fff8db); font-size: 1.7rem; font-weight: 900; }
.service-card h3, .service-card p { position: relative; z-index: 2; }
.service-card p { color: var(--muted); }

.vision { padding-block: 100px; background: var(--blue-950); color: rgba(255,255,255,.88); }
.vision__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
.vision h2 { color: white; }
.vision__grid > p { font-size: 1.25rem; }

.involve-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.involve-grid > div:first-child > p:last-child { color: var(--muted); font-size: 1.08rem; }
.involve-card { background: white; padding: 42px; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid rgba(243,198,91,.35); }
.involve-card__mark { display: block; margin-bottom: 20px; color: var(--gold-500); font-size: 2rem; }
.involve-card p { color: var(--muted); }

.contact-section { background: white; }
.contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.contact-card { min-height: 150px; display: grid; align-content: center; gap: 4px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-md); text-decoration: none; background: linear-gradient(180deg,#fff,#fbfdfe); position: relative; }
.contact-card > span:last-child { position: absolute; top: 25px; right: 25px; color: var(--blue-500); }
.contact-card__label { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 800; }
.contact-card strong { color: var(--blue-950); font-size: 1.05rem; overflow-wrap: anywhere; }
a.contact-card:hover { border-color: var(--blue-500); transform: translateY(-2px); }
.socials { margin-top: 28px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.socials a { padding: 9px 14px; border-radius: 999px; background: var(--blue-100); color: var(--blue-900); text-decoration: none; font-weight: 750; }
.socials a:hover { background: var(--blue-800); color: white; }

.site-footer { background: #041f31; color: rgba(255,255,255,.75); padding-block: 34px; }
.footer__grid { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer__brand { display: flex; gap: 12px; align-items: center; }
.footer__brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; }
.footer__brand div { display: grid; }
.footer__brand strong { color: white; }
.footer__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 20px; font-size: .9rem; }
.footer__links a { color: white; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }

/* Page Notre histoire */
.story-hero { background: linear-gradient(135deg,#eef9fd 0%,#fff9e8 100%); padding-block: 90px; }
.story-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 75px; align-items: center; }
.story-hero h1 { font-size: clamp(2.8rem,5vw,5.1rem); }
.story-hero__image { background: white; padding: 16px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.story-hero__image img { width: 100%; height: 560px; object-fit: cover; object-position: 50% 20%; border-radius: calc(var(--radius-lg) - 10px); }
.story-hero__image p { color: var(--muted); font-size: .86rem; margin: 12px 6px 2px; }
.story-intro .prose p:first-child { font-size: 1.12rem; color: var(--blue-950); }

.memory-section { background: white; }
.memory-slider { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #fbfdfe; }
.memory-track { position: relative; min-height: 540px; }
.memory-slide { display: none; grid-template-columns: 1fr 1fr; min-height: 540px; }
.memory-slide.is-active { display: grid; }
.memory-slide__media { min-height: 540px; background: var(--blue-100); overflow: hidden; }
.memory-slide__media img { width: 100%; height: 100%; object-fit: cover; }
.memory-slide__media--photo img { object-position: 50% 20%; }
.memory-slide__media--logo { display: grid; place-items: center; background: white; }
.memory-slide__media--logo img { width: 78%; height: auto; object-fit: contain; }
.memory-slide__media--symbol { display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, #fff5ca, #e8f7fc 55%, #d6edf7); }
.memory-slide__media--symbol span { display: grid; place-items: center; width: 180px; height: 180px; border-radius: 50%; background: white; color: var(--blue-800); font-family: Georgia,serif; font-size: 5rem; box-shadow: 0 20px 60px rgba(7,59,92,.12); }
.memory-slide__content { display: flex; flex-direction: column; justify-content: center; padding: 56px; }
.memory-slide__content > span { color: var(--blue-700); text-transform: uppercase; font-size: .77rem; letter-spacing: .15em; font-weight: 800; }
.memory-slide__content h3 { margin-top: 12px; font-size: clamp(2rem,3vw,3rem); }
.memory-slide__content p { color: var(--muted); font-size: 1.1rem; max-width: 520px; }
.slider-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 16px 20px; border-top: 1px solid var(--border); background: white; }
.slider-btn { border: 0; background: transparent; color: var(--blue-800); font-weight: 800; cursor: pointer; padding: 10px; }
.slider-btn:last-child { justify-self: end; }
.slider-btn:hover { color: var(--blue-950); text-decoration: underline; }
.slider-count { color: var(--muted); }
.slider-count strong { color: var(--blue-950); }

.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.person-card { border-radius: var(--radius-md); overflow: hidden; background: white; border: 1px solid var(--border); box-shadow: 0 12px 40px rgba(7,59,92,.08); }
.person-card img { width: 100%; height: 390px; object-fit: cover; object-position: center 20%; }
.person-card__body { padding: 24px 26px 28px; }
.person-card__body span { color: var(--blue-700); text-transform: uppercase; letter-spacing: .12em; font-size: .73rem; font-weight: 850; }
.person-card__body h3 { margin: 8px 0 0; }
.story-cta { background: var(--blue-950); color: white; padding-block: 78px; }
.story-cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.story-cta h2 { color: white; max-width: 820px; margin-bottom: 0; font-size: clamp(2rem,3.5vw,3.2rem); }

@media (prefers-reduced-motion: no-preference) {
  .service-card, .contact-card, .person-card { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
  .service-card:hover, .person-card:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(7,59,92,.1); }
}

@media (max-width: 980px) {
  .topbar { display: none; }
  .header__inner { min-height: 78px; }
  .brand img { width: 58px; height: 58px; }
  .brand__text strong { font-size: .93rem; }
  .brand__text small { display: none; }
  .nav-toggle { display: flex; }
  .main-nav { position: absolute; left: 20px; right: 20px; top: calc(100% + 8px); display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border: 1px solid var(--border); border-radius: 20px; background: white; box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 12px; }
  .main-nav a::after { display: none; }
  .nav-cta { text-align: center; margin-top: 4px; }
  .hero__grid, .story-hero__grid { grid-template-columns: 1fr; gap: 38px; padding-block: 70px; }
  .hero__grid { min-height: auto; }
  .hero__visual { min-height: 360px; }
  .hero__visual img { width: min(70%,430px); }
  .hero__halo { width: 360px; height: 360px; }
  .split, .vision__grid, .involve-grid { grid-template-columns: 1fr; gap: 38px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .story-hero__image img { height: 520px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .memory-slide { grid-template-columns: 1fr; }
  .memory-track, .memory-slide { min-height: auto; }
  .memory-slide__media { min-height: 390px; }
  .memory-slide__content { padding: 38px; }
  .story-cta__inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 660px) {
  .container { width: min(100% - 28px, var(--container)); }
  .brand__text strong { max-width: 210px; font-size: .82rem; }
  h1 { font-size: clamp(2.7rem,14vw,4rem); }
  h2 { font-size: clamp(2rem,10vw,3rem); }
  .hero__grid { padding-block: 55px; }
  .hero__visual { min-height: 300px; }
  .hero__visual img { width: 86%; }
  .hero__halo { width: 300px; height: 300px; }
  .section { padding-block: 76px; }
  .services-grid, .team-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .vision { padding-block: 76px; }
  .involve-card { padding: 30px; }
  .footer__grid { align-items: flex-start; flex-direction: column; }
  .footer__links { justify-content: flex-start; }
  .story-hero { padding-block: 58px; }
  .story-hero__image img { height: 460px; }
  .memory-slide__media { min-height: 320px; }
  .memory-slide__content { padding: 30px 26px; }
  .slider-controls { grid-template-columns: 1fr 1fr; }
  .slider-count { grid-column: 1 / -1; grid-row: 1; text-align: center; margin-bottom: 5px; }
  .slider-btn { grid-row: 2; }
  .person-card img { height: 430px; }
}

/* ============================================================
   DONS — PayPal / carte de débit ou crédit
   ============================================================ */
.nav-donate { background: linear-gradient(135deg, var(--gold-500), #ffd96f); color: var(--blue-950) !important; box-shadow: 0 8px 20px rgba(243,198,91,.22); }
.nav-donate:hover { background: #ffd96f; }
.btn--donate { background: linear-gradient(135deg, var(--gold-500), #ffd96f); color: var(--blue-950); border-color: rgba(5,47,74,.08); box-shadow: 0 10px 24px rgba(243,198,91,.22); }
.btn--donate:hover { background: #ffd96f; }
.btn--donate-outline { color: var(--blue-950); border-color: rgba(243,198,91,.9); background: #fff9df; }
.btn--donate-outline:hover { background: #fff2bd; }
.btn--large { min-height: 56px; padding: 16px 24px; font-size: 1.02rem; }
.involve-card__actions, .donation-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.donation-section { background: var(--blue-950); color: rgba(255,255,255,.9); }
.donation-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center; }
.donation-copy h2 { color: white; }
.donation-copy > p:not(.eyebrow) { max-width: 760px; font-size: 1.14rem; }
.donation-actions { margin-top: 28px; }
.text-link--light { color: white; }
.donation-note { margin-top: 22px !important; color: rgba(255,255,255,.7); font-size: .92rem !important; }
.donation-qr-card { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; padding: 28px; border-radius: var(--radius-lg); background: white; color: var(--blue-950); }
.donation-qr-card img { width: 150px; aspect-ratio: 1; object-fit: contain; border-radius: 16px; }
.donation-qr-card div { display: grid; gap: 4px; }
.donation-qr-card strong { font-size: 1.15rem; }
.donation-qr-card span { color: var(--muted); }

.don-page-hero { padding-block: 95px; background: linear-gradient(135deg,#eef9fd 0%,#fff9e8 100%); }
.donate-page-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
.donate-page-grid h1 { font-size: clamp(3rem,6vw,5.5rem); }
.donation-security { margin-top: 22px; color: var(--muted); max-width: 720px; font-size: .92rem; }
.don-page-card { padding: 34px; text-align: center; border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow); border: 1px solid var(--border); }
.don-page-card img { width: min(280px, 100%); margin: 0 auto 24px; border-radius: 24px; }
.don-page-card h2 { font-size: 2rem; margin-bottom: 10px; }
.don-page-card p { color: var(--muted); }
.donation-options .service-card { min-height: 320px; }
.don-final-cta { margin-top: 42px; display: flex; justify-content: center; }

.thankyou-page { min-height: 100vh; background: linear-gradient(135deg,#eef9fd,#fff9e8); }
.thankyou-shell { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.thankyou-card { width: min(700px,100%); padding: 54px; text-align: center; background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.thankyou-card img { width: 110px; margin: 0 auto 24px; border-radius: 30px; }
.thankyou-card h1 { font-size: clamp(2.5rem,7vw,4.7rem); }
.thankyou-card > p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; margin-bottom: 28px; }

@media (max-width: 980px) {
  .donation-grid, .donate-page-grid { grid-template-columns: 1fr; gap: 38px; }
  .donation-qr-card { max-width: 620px; }
}

@media (max-width: 660px) {
  .donation-qr-card { grid-template-columns: 1fr; text-align: center; }
  .donation-qr-card img { margin-inline: auto; }
  .donation-actions, .involve-card__actions { align-items: stretch; flex-direction: column; }
  .donation-actions .btn, .involve-card__actions .btn, .don-final-cta .btn { width: 100%; }
  .don-page-hero { padding-block: 62px; }
  .thankyou-card { padding: 38px 24px; }
}
