/* ============================================================
   GAAM ASBL — Design system « Le Fil de l'Héritage »
   Palette Terre & Espérance · Typo Fraunces + Public Sans
   ============================================================ */

:root {
  --encre: #182720;
  --encre-douce: #46564E;
  --papier: #FFFFFF;
  --sable: #F7F4EE;
  --orange: #E07B2A;
  --orange-fonce: #B85E18;
  --vert: #2D6A4F;
  --vert-fonce: #1E4A37;
  --or: #D9A441;
  --trait: #E5E0D6;

  --display: "Fraunces", Georgia, serif;
  --texte: "Public Sans", -apple-system, "Segoe UI", sans-serif;

  --largeur: 1120px;
  --rythme: clamp(64px, 9vw, 120px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--texte);
  color: var(--encre);
  background: var(--papier);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Liseré kitenge (signature) ---------- */
.lisere {
  height: 10px;
  background:
    repeating-linear-gradient(
      -45deg,
      var(--orange) 0 14px,
      var(--vert) 14px 28px,
      var(--or) 28px 34px,
      var(--vert-fonce) 34px 48px
    );
}
.lisere--fin { height: 5px; }

/* ---------- Utilitaires ---------- */
.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 28px; }
.section { padding: var(--rythme) 0; }
.section--sable { background: var(--sable); }
.section--vert { background: var(--vert-fonce); color: #F3F0E8; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.section--vert .eyebrow { color: var(--or); }

.titre-1 {
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.titre-2 {
  font-family: var(--display);
  font-weight: 540;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.titre-3 {
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.25;
}
.titre-1 em, .titre-2 em { font-style: italic; color: var(--orange); }
.section--vert .titre-2 em { color: var(--or); }

.chapo {
  font-size: clamp(17px, 1.9vw, 20px);
  color: var(--encre-douce);
  max-width: 640px;
  margin-top: 22px;
}
.section--vert .chapo { color: rgba(243, 240, 232, 0.82); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  font-family: var(--texte);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-radius: 100px;
  padding: 15px 32px;
  transition: transform 0.2s, background 0.2s, color 0.2s;
  cursor: pointer;
  border: none;
}
.btn:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }
.btn--plein { background: var(--orange); color: #fff; }
.btn--plein:hover { background: var(--orange-fonce); transform: translateY(-1px); }
.btn--ligne { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--encre); }
.btn--ligne:hover { background: var(--encre); color: #fff; }
.section--vert .btn--ligne { color: #F3F0E8; box-shadow: inset 0 0 0 1.5px rgba(243,240,232,0.6); }
.section--vert .btn--ligne:hover { background: #F3F0E8; color: var(--vert-fonce); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--trait);
}
.nav__barre {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__logo img { height: 40px; width: auto; }
.nav__logo span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  color: var(--encre);
  letter-spacing: 0.01em;
}
.nav__liens { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav__liens a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--encre-douce);
  transition: color 0.2s;
  padding: 6px 0;
}
.nav__liens a:hover, .nav__liens a[aria-current="page"] { color: var(--orange); }
.nav__liens .btn { padding: 11px 24px; }

.nav__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav__burger span { width: 24px; height: 2.5px; background: var(--encre); border-radius: 2px; transition: 0.25s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__burger { display: flex; }
  .nav__liens {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--papier);
    border-bottom: 1px solid var(--trait);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 28px 28px;
    gap: 18px;
    display: none;
  }
  .nav__liens.ouvert { display: flex; }
}

/* ---------- Hero ---------- */
.hero { padding: calc(var(--rythme) * 0.9) 0 var(--rythme); }
.hero__grille {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }
.hero__portrait { position: relative; }
.hero__portrait img {
  width: 100%;
  border-radius: 6px;
  aspect-ratio: 4/4.6;
  object-fit: cover;
  object-position: top;
}
.hero__portrait::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1.5px solid var(--or);
  border-radius: 6px;
  z-index: -1;
}
.hero__legende {
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--encre-douce);
  border-left: 3px solid var(--orange);
  padding-left: 14px;
  line-height: 1.5;
}
@media (max-width: 860px) {
  .hero__grille { grid-template-columns: 1fr; }
  .hero__portrait { max-width: 380px; }
}

/* ---------- Tissage des missions ---------- */
.tissage { display: grid; gap: 18px; margin-top: 54px; }
.fil {
  display: grid;
  grid-template-columns: 190px 1fr 1fr;
  border: 1px solid var(--trait);
  border-radius: 10px;
  overflow: hidden;
  background: var(--papier);
}
.fil__nom {
  padding: 30px 26px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.fil__nom small { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.8; font-weight: 700; }
.fil__nom strong { font-family: var(--display); font-size: 21px; font-weight: 560; line-height: 1.2; }
.fil--1 .fil__nom { background: var(--orange); }
.fil--2 .fil__nom { background: var(--vert); }
.fil--3 .fil__nom { background: var(--or); color: var(--encre); }
.fil__case { padding: 30px 26px; }
.fil__case + .fil__case { border-left: 1px solid var(--trait); }
.fil__case h3 { font-family: var(--display); font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.fil__case p { font-size: 14.5px; color: var(--encre-douce); }
@media (max-width: 860px) {
  .fil { grid-template-columns: 1fr; }
  .fil__case + .fil__case { border-left: none; border-top: 1px solid var(--trait); }
}

/* ---------- Cartes génériques ---------- */
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 50px; }
.carte {
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: 12px;
  padding: 34px 30px;
}
.carte--accent { border-top: 4px solid var(--orange); }
.carte h3 { margin-bottom: 10px; }
.carte p { font-size: 15px; color: var(--encre-douce); }
.carte .btn { margin-top: 22px; }

/* ---------- Citation ---------- */
.citation {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.citation blockquote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 480;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.4;
}
.citation cite {
  display: block;
  margin-top: 24px;
  font-family: var(--texte);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--or);
}

/* ---------- Galerie ---------- */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 50px; }
.galerie img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.attente {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1.5px dashed var(--trait);
  background: var(--sable);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 22px;
}
.attente__pictogramme { font-size: 30px; opacity: 0.45; }
.attente strong { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--encre-douce); }
.attente span { font-size: 12px; color: var(--encre-douce); opacity: 0.75; }

/* ---------- Dons ---------- */
.don-vedette {
  background: linear-gradient(120deg, var(--vert-fonce), var(--vert));
  color: #F3F0E8;
  border-radius: 16px;
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 50px;
}
.don-vedette__qr {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: var(--encre);
  justify-self: center;
}
.don-vedette__qr img { width: 190px; height: auto; margin: 0 auto; }
.don-vedette__qr small { display: block; margin-top: 10px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--encre-douce); }
.don-vedette .paypal-bloc { background: #fff; border-radius: 12px; padding: 22px; margin-top: 26px; display: inline-block; }
@media (max-width: 860px) { .don-vedette { grid-template-columns: 1fr; } }

.moyens { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 46px; }
.moyen {
  border: 1px solid var(--trait);
  border-radius: 12px;
  padding: 32px 28px;
  background: var(--papier);
}
.moyen h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.moyen p { font-size: 14.5px; color: var(--encre-douce); }
.moyen ul { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.moyen li { font-size: 14.5px; background: var(--sable); border-radius: 8px; padding: 10px 14px; }
.moyen li b { color: var(--vert); }

.note-transparence {
  margin-top: 46px;
  border-left: 4px solid var(--or);
  background: var(--sable);
  border-radius: 0 10px 10px 0;
  padding: 24px 28px;
  font-size: 15px;
}

/* ---------- Formulaire ---------- */
.formulaire { display: grid; gap: 18px; max-width: 620px; margin-top: 40px; }
.champ label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }
.champ input, .champ select, .champ textarea {
  width: 100%;
  font-family: var(--texte);
  font-size: 15px;
  padding: 13px 15px;
  border: 1.5px solid var(--trait);
  border-radius: 9px;
  background: var(--papier);
  color: var(--encre);
  transition: border-color 0.2s;
}
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.champ--double { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .champ--double { grid-template-columns: 1fr; } }

/* ---------- Coordonnées ---------- */
.coordonnees { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 46px; }
.coordonnee { border-top: 3px solid var(--vert); padding-top: 18px; }
.coordonnee small { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--encre-douce); }
.coordonnee p { font-size: 16.5px; font-weight: 600; margin-top: 6px; }
.coordonnee a { color: var(--vert); text-decoration: none; }
.coordonnee a:hover { text-decoration: underline; }

/* ---------- Pied de page ---------- */
.pied {
  background: var(--encre);
  color: rgba(243, 240, 232, 0.85);
  padding: 60px 0 34px;
}
.pied__grille {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 46px;
}
.pied__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pied__logo img { height: 42px; }
.pied__logo span { font-family: var(--display); font-size: 20px; color: #fff; }
.pied p { font-size: 14px; }
.pied h4 { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--or); margin-bottom: 16px; }
.pied ul { list-style: none; display: grid; gap: 10px; }
.pied a { color: rgba(243,240,232,0.85); text-decoration: none; font-size: 14.5px; }
.pied a:hover { color: var(--orange); }
.pied__bas {
  border-top: 1px solid rgba(243,240,232,0.15);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  opacity: 0.75;
}
@media (max-width: 780px) { .pied__grille { grid-template-columns: 1fr; gap: 32px; } }

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

/* ---------- Bandeau page intérieure ---------- */
.bandeau { padding: calc(var(--rythme) * 0.7) 0 calc(var(--rythme) * 0.55); border-bottom: 1px solid var(--trait); }

/* ---------- Bouton PayPal (fourni par PayPal, harmonisé) ---------- */
.pp-XJBVKTDAG6GML {
  text-align: center;
  border: none;
  border-radius: 100px;
  min-width: 186px;
  padding: 0 32px;
  height: 46px;
  font-weight: 700;
  background-color: #FFD140;
  color: #000;
  font-family: var(--texte);
  font-size: 16px;
  cursor: pointer;
}

/* ---------- Visionneuse photo (lightbox) ---------- */
.galerie img { cursor: zoom-in; transition: transform 0.25s, box-shadow 0.25s; }
.galerie img:hover { transform: scale(1.02); box-shadow: 0 8px 28px rgba(0,0,0,0.18); }

.visionneuse {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(16, 24, 20, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.visionneuse.ouverte { opacity: 1; pointer-events: auto; }

.visionneuse img {
  max-width: min(1100px, 92vw);
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.visionneuse__legende {
  margin-top: 18px;
  color: rgba(243, 240, 232, 0.9);
  font-size: 15px;
  text-align: center;
  max-width: 720px;
  line-height: 1.5;
}
.visionneuse__compteur {
  margin-top: 6px;
  color: var(--or);
  font-size: 12px;
  letter-spacing: 0.2em;
  font-weight: 700;
}

.visionneuse__bouton {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #F3F0E8;
  border-radius: 100px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  user-select: none;
}
.visionneuse__bouton:hover { background: var(--orange); border-color: var(--orange); transform: scale(1.06); }
.visionneuse__bouton:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }

.visionneuse__fermer { top: 22px; right: 22px; }
.visionneuse__prec { left: 22px; top: 50%; transform: translateY(-50%); }
.visionneuse__suiv { right: 22px; top: 50%; transform: translateY(-50%); }
.visionneuse__prec:hover { transform: translateY(-50%) scale(1.06); }
.visionneuse__suiv:hover { transform: translateY(-50%) scale(1.06); }

@media (max-width: 640px) {
  .visionneuse { padding: 16px; }
  .visionneuse__bouton { width: 44px; height: 44px; font-size: 18px; }
  .visionneuse__prec { left: 10px; }
  .visionneuse__suiv { right: 10px; }
  .visionneuse__fermer { top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .galerie img, .visionneuse, .visionneuse__bouton { transition: none; }
}
