@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,400;0,500;0,600;0,700;0,900;1,500;1,600&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --navy: #0b1830;
  --navy-deep: #060d1c;
  --navy-soft: #17294d;
  --ivory: #f6f1e6;
  --off-white: #fffdf8;
  --gold: #c8a250;
  --gold-deep: #a07f34;
  --gold-light: #f1e6c9;
  --ink: #1f2430;
  --muted: #666c7c;
  --line: #e6e0d1;
  --white: #f7ecd0;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 24, 48, 0.07);
  --max: 1160px;
}

* { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

section[id] { scroll-margin-top: 88px; }

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.7;
  width: 100%;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, .display {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1.1em; }

a { color: inherit; text-decoration: none; }

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

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Header / Nav */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(6px);
  backdrop-filter: saturate(160%) blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px;
  max-width: 1320px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--navy);
}

.logo img { display: block; height: 52px; width: auto; }

@media (max-width: 640px) {
  .logo img { height: 46px; }
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  display: inline-block;
  padding: 8px 9px;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

nav.main-nav a:hover { color: var(--gold-deep); }

nav.main-nav a.active {
  border-bottom-color: var(--gold);
}

/* "Accueil" only appears in the collapsed menu (the logo is home on desktop) */
.nav-home { display: none; }

/* Two permanent calls to action: help / give */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-actions .btn {
  padding: 9px 15px;
  font-size: 0.74rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
}

.mobile-cta-bar { display: none; }

/* Hero */
.hero {
  position: relative;
  background-image:
    radial-gradient(ellipse 900px 500px at 88% -10%, rgba(200, 162, 80, 0.2), transparent 60%),
    linear-gradient(100deg, rgba(6, 13, 28, 0.93) 0%, rgba(6, 13, 28, 0.78) 34%, rgba(9, 18, 38, 0.5) 58%, rgba(6, 13, 28, 0.72) 100%),
    url('../images/accueil.jpg');
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: 0 0, 0 0, center 32%;
  background-size: auto, auto, cover;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.25;
  pointer-events: none;
}

.hero-top {
  position: relative;
  z-index: 2;
  padding-top: 48px;
  padding-bottom: 28px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: start;
}

.hero-copy .kicker { color: var(--gold); }

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 600;
  color: var(--off-white);
  max-width: 22ch;
  margin-bottom: 0.3em;
}

.hero h1 em {
  display: block;
  font-style: normal;
  color: var(--gold);
}

.hero-copy .lead {
  color: #c9cede;
  font-size: 1.02rem;
  max-width: 46ch;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  text-align: right;
}

.hero-quote {
  border-right: 2px solid var(--gold);
  padding-right: 18px;
}

.hero-quote p {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--off-white);
  font-size: 1.15rem;
  line-height: 1.45;
  margin: 0 0 8px;
}

.hero-tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  color: #aeb4c6;
  font-size: 0.95rem;
  line-height: 1.4;
  max-width: 20ch;
}

.hero-steps {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 16px;
  padding-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hero-steps::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: rgba(6, 13, 28, 0.8);
  z-index: -1;
}

.hero-steps li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-steps li:first-child { border-left: none; padding-left: 0; }

.hero-steps .step-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  color: var(--gold);
}

.hero-steps strong {
  display: block;
  color: var(--off-white);
  font-size: 0.82rem;
  letter-spacing: 0.4px;
  font-weight: 600;
}

.hero-steps span {
  display: block;
  color: #9aa1b5;
  font-size: 0.76rem;
  margin-top: 2px;
}

.hero-photo-mobile { display: none; }

@media (max-width: 980px) {
  .hero-top { grid-template-columns: 1fr; }
  .hero-side { align-items: flex-start; text-align: left; }
  .hero-quote { border-right: none; border-left: 2px solid var(--gold); padding-right: 0; padding-left: 18px; }

  /* A wide landscape photo used as a full-bleed background crops hard on a
     narrow, tall viewport. Instead, show it whole as its own band above the
     text (like it reads on desktop), then keep the text on a plain navy
     gradient below — always fully legible, never cropped or covering faces. */
  .hero-photo-mobile {
    display: block;
    width: 100%;
    height: auto;
  }

  .hero {
    background-image:
      radial-gradient(ellipse 700px 500px at 90% 0%, rgba(200, 162, 80, 0.18), transparent 55%),
      linear-gradient(155deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-soft) 100%);
  }
}

@media (max-width: 700px) {
  .hero-steps { grid-template-columns: 1fr; }
  .hero-steps li {
    border-left: none;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
  .hero-steps li:first-child { border-top: none; padding-top: 0; }
  .hero-steps li:last-child { padding-bottom: 0; }
}

/* Kicker (eyebrow label) */
.kicker {
  display: inline-flex;
  align-items: center;
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 8px;
}

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--ivory); }

.section-head { margin-bottom: 40px; max-width: 720px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 0.4em; }
.section-head .lead { color: var(--muted); font-size: 1.03rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker { margin-left: auto; margin-right: auto; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.grid-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1000px) {
  .grid-pillars { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .grid-pillars { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px;
}

.card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.card .icon { width: 30px; height: 30px; color: var(--gold-deep); margin-bottom: 16px; }


.card ul { margin: 0; padding-left: 20px; color: var(--ink); }
.card li { margin-bottom: 6px; }

/* Pillar cards */
.pillar-card {
  text-align: left;
  padding: 30px 24px;
}

.pillar-card .icon {
  width: 40px;
  height: 40px;
  color: var(--gold-deep);
  margin-bottom: 20px;
}

.pillar-card h3 { font-size: 1.15rem; }
.pillar-card p { color: var(--muted); margin: 0; }

/* Action steps (parcours) */
.action-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.action-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.action-card p { color: var(--muted); margin-bottom: 14px; }
.action-card p:last-child { margin-bottom: 0; }
.action-card ul { margin: 0; padding-left: 18px; }
.action-card li { margin-bottom: 5px; }

.no-mb { margin-bottom: 0; }
.mt-24 { margin-top: 24px; }
.text-center { text-align: center; }
.kicker-center { margin-left: auto; margin-right: auto; }

/* Panel (mission / vision / criteria / contact) */
.panel { border-radius: var(--radius); padding: 34px; }
.panel.white-box { background: var(--white); border: 1px solid var(--line); }
.panel h3 { font-size: 1.2rem; margin-bottom: 12px; }
.panel-lead { color: var(--ink); font-size: 1.08rem; }

.sub-title { font-size: 1.3rem; margin: 48px 0 20px; }

/* Checklist (public list, criteria) */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 760px;
}

.check-list li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid var(--line);
}

.check-list li:last-child { border-bottom: none; }

.check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 21px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.check-list.compact li { padding: 9px 0 9px 26px; font-size: 0.95rem; }
.check-list.compact li::before { top: 17px; width: 8px; height: 8px; }

/* Small print + callout */
.microtext {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 760px;
  margin: 20px 0 0;
}

.callout {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-top: 28px;
  max-width: 760px;
}

.callout-title {
  display: block;
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* Levels of help */
.level-tag {
  display: inline-block;
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Request steps */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.steps li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 18px 62px;
  position: relative;
  font-weight: 500;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--gold-deep);
  font-family: 'Fraunces', serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

.request-cta { margin-top: 36px; }
.request-cta .microtext { margin-top: 16px; }

/* FAQ */
.faq { max-width: 820px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 22px;
  font-weight: 600;
  color: var(--navy);
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-deep);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item summary:focus-visible,
.btn:focus-visible,
nav.main-nav a:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

.faq-item p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

.pull-quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--navy);
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin: 32px 0;
}

/* Chips (raison d'être / partners) */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.chip {
  border: 1px solid var(--gold);
  color: var(--navy);
  background: var(--gold-light);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
}

.chip-row.outline .chip { background: var(--white); border-color: var(--line); }

/* Pull quote / transition banner */
.transition-banner {
  background: var(--navy);
  color: var(--off-white);
  text-align: center;
  padding: 56px 24px;
}

.transition-banner p {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--off-white);
  max-width: 46ch;
  margin: 0 auto;
  line-height: 1.5;
}

.transition-banner p em { color: var(--gold); font-style: italic; }

/* Story / Histoire */
.story {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.story-photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
}

.story-photo img { width: 100%; display: block; }

.story-copy .kicker { margin-bottom: 10px; }
.story-copy h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

.story-full {
  max-width: 68ch;
  margin: 56px auto 0;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}

.story-full p { color: var(--ink); }
.story-full .signature { margin-top: 32px; }
.story-full .callout { max-width: none; }

@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story-photo { max-width: 320px; margin: 0 auto; }
}

/* Donate block */
.donate-block {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 48px;
  margin-top: 44px;
  text-align: center;
  color: var(--off-white);
}

.donate-block p { color: #c9cede; max-width: 56ch; margin-left: auto; margin-right: auto; }
.donate-block .trust-note { color: #8d93a8; font-size: 0.85rem; margin-top: 18px; margin-bottom: 0; }

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--off-white);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 28px;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { background: var(--navy-soft); }

.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-deep); color: var(--off-white); }

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--off-white);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* "J'ai besoin d'aide": navy on light backgrounds, light on the dark hero */
.btn-help { background: var(--navy); color: var(--off-white); }
.btn-help:hover { background: var(--navy-soft); }

.btn-light { background: var(--off-white); color: var(--navy); }
.btn-light:hover { background: var(--gold-light); }

.btn-help-outline {
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
}
.btn-help-outline:hover { background: var(--navy); color: var(--off-white); }

/* Footer */
footer.site-footer {
  background: var(--navy);
  color: #b9bfd0;
  padding: 48px 0 30px;
}

footer.site-footer .foot-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 20px;
}

footer.site-footer .foot-brand {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  color: var(--off-white);
  font-size: 1.1rem;
}

footer.site-footer .foot-tag {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-top: 4px;
}

footer.site-footer nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0;
  margin: 0;
}

footer.site-footer nav a { font-size: 0.86rem; }
footer.site-footer nav a:hover { color: var(--gold); }

footer.site-footer .foot-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: #7a8099;
}

footer.site-footer .foot-bottom a:hover { color: var(--gold); }

@media (max-width: 1130px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--off-white);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; align-items: flex-start; padding: 12px 28px 20px; }
  .nav-home { display: list-item; }
  .nav-toggle { display: block; }
}

/* Phones: the two permanent buttons move to a bar pinned at the bottom.
   (It lives outside the header because the header's backdrop-filter would
   otherwise trap position: fixed inside it.) */
@media (max-width: 700px) {
  .nav-actions { display: none; }
  .nav-bar { justify-content: space-between; }

  .mobile-cta-bar {
    display: flex;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 253, 248, 0.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(11, 24, 48, 0.08);
  }

  .mobile-cta-bar .btn {
    flex: 1;
    text-align: center;
    padding: 13px 8px;
    font-size: 0.85rem;
  }

  body { padding-bottom: 78px; }
}

/* Safety net: if the desktop nav is ever wider than the header, wrap rather than overflow */
nav.main-nav ul { flex-wrap: wrap; row-gap: 6px; }

/* Small-screen spacing adjustments */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .nav-bar { padding: 12px 20px; }
  .hero-top { padding-top: 32px; padding-bottom: 20px; }
  .section { padding: 56px 0; }
  .panel, .donate-block { padding: 26px; }
  .transition-banner { padding: 40px 20px; }
  .card { padding: 22px; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
  .cta-row .btn { flex: 1 1 100%; text-align: center; }
}
