/* ==========================================================================
   ONG Porteurs d'Espoir — surcouche mobile-first au-dessus de Bootstrap 5
   Palette pilotée par l'admin (variables :root injectées dans header.php)
   ========================================================================== */

:root {
  --p: #0E4A38; --g: #57A047; --b: #0B62A4; --a: #0C95C4;
  --gold: #E3B42A; --paper: #F8F5EC;
  --ink: #24352C; --muted: #4E6156; --light: #7E9184; --line: #D8E2D4;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { background: var(--paper); color: var(--ink); font-size: 1.02rem; }
a { color: var(--b); }
a:hover { color: var(--a); }

/* ---------- Barre de navigation ---------- */
.navbar-pde {
  background: rgba(248, 245, 236, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.navbar-pde .nav-link { color: var(--muted); font-weight: 600; }
.navbar-pde .nav-link:hover, .navbar-pde .nav-link:focus { color: var(--p); }
.navbar-toggler { border-color: var(--line); }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(87,160,71,.25); }
.brand-name { color: var(--p); font-size: 1rem; }
.brand-tag { color: var(--light); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Boutons ---------- */
.btn-pde { background: var(--p); color: #fff; border: 0; font-weight: 700; border-radius: 999px; }
.btn-pde:hover, .btn-pde:focus { background: var(--g); color: #fff; }
.btn-outline-pde { color: var(--p); border: 2px solid var(--p); font-weight: 700; border-radius: 999px; background: transparent; }
.btn-outline-pde:hover { background: var(--p); color: #fff; }

/* ---------- Héros : mobile d'abord (colonne, logo réduit), grand écran ensuite ---------- */
.hero { position: relative; overflow: hidden; padding: 2.6rem 0 9.5rem; }
.hero::before { /* soleil */
  content: ''; position: absolute; top: 10px; right: 4%;
  width: 76px; height: 76px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 55%, rgba(227,180,42,.35) 72%, rgba(227,180,42,.12) 100%);
  box-shadow: 0 0 46px rgba(227, 180, 42, .45);
}
.hero-logo { width: 110px; height: 110px; filter: drop-shadow(0 12px 22px rgba(14,74,56,.20)); }
.hero-kicker {
  color: var(--gold); font-weight: 800; letter-spacing: .18em;
  font-size: .74rem; text-transform: uppercase;
}
.hero-title { font-weight: 800; line-height: 1.06; font-size: clamp(2.3rem, 9vw, 3.9rem); }
.hero-title .t1 { color: var(--ink); display: block; }
.hero-title .t2 { color: var(--p); display: block; }
.hero-sub {
  margin-top: 1rem; font-size: 1.08rem; color: var(--muted); max-width: 560px;
  border-left: 4px solid var(--gold); padding-left: .9rem;
}
.hero-note { color: var(--light); font-size: .95rem; }
.hero-land { position: absolute; left: 0; right: 0; bottom: -2px; }
.hero-land svg { display: block; width: 100%; height: 120px; }

@media (min-width: 992px) {
  .hero { padding: 5rem 0 10rem; }
  .hero::before { width: 130px; height: 130px; top: 40px; right: 8%; box-shadow: 0 0 60px rgba(227,180,42,.45); }
  .hero-logo { width: 190px; height: 190px; }
  .hero-land svg { height: 150px; }
}

/* ---------- Sections ---------- */
.section-pde { padding: 4rem 0; }
.section-alt { background: linear-gradient(180deg, rgba(12,149,196,.05), rgba(87,160,71,.07)); }
.section-title { color: var(--p); font-weight: 800; font-size: clamp(1.55rem, 5.5vw, 2.2rem); }
.section-title::after {
  content: ''; display: block; width: 60px; height: 4px; border-radius: 4px;
  background: var(--gold); margin-top: .8rem;
}
.section-title.center::after { margin-left: auto; margin-right: auto; }
.section-lead { color: var(--muted); }

/* ---------- Introduction ---------- */
.intro-text p { color: var(--muted); }
.intro-text p:first-of-type::first-letter {
  color: var(--p); font-weight: 800; font-size: 2.5em; float: left;
  line-height: .85; padding-right: .45rem;
}
.intro-logo-card {
  background: #fff; border: 0; border-radius: 1.1rem; border-top: 5px solid var(--g);
  box-shadow: 0 10px 30px rgba(14,74,56,.10);
}
.intro-logo-card img { width: 130px; height: 130px; }

/* ---------- Cartes domaines (1 colonne mobile → 2 tablette → 3 grand écran) ---------- */
.card-domain {
  background: #fff; border: 0; border-radius: 1.1rem; border-top: 5px solid var(--g);
  box-shadow: 0 10px 30px rgba(14,74,56,.10);
  transition: transform .2s, box-shadow .2s;
  height: 100%; color: inherit; display: block; position: relative;
}
.card-domain:hover, .card-domain:focus {
  transform: translateY(-5px); color: inherit;
  box-shadow: 0 16px 38px rgba(14,74,56,.16);
}
.card-domain.c2 { border-top-color: var(--a); }
.card-domain.c3 { border-top-color: var(--gold); }
.card-domain.c4 { border-top-color: var(--b); }
.card-domain.c5 { border-top-color: var(--p); }
.card-domain .num {
  position: absolute; top: .8rem; right: 1.1rem; font-size: 2.3rem;
  font-weight: 800; color: var(--line); line-height: 1;
}
.card-domain .ico { font-size: 2.1rem; }
.card-domain h3 { color: var(--p); font-size: 1.18rem; font-weight: 700; }
.card-domain .sub { color: var(--a); font-weight: 600; font-size: .88rem; }
.card-domain p { color: var(--muted); font-size: .94rem; }
.card-domain .more { font-weight: 700; color: var(--p); font-size: .9rem; }
.card-domain .more::after { content: ' →'; }

/* ---------- Engagement ---------- */
.droit-pill {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .65rem 1.3rem; font-weight: 700; color: var(--p);
  box-shadow: 0 6px 18px rgba(14,74,56,.08); display: inline-flex; gap: .55rem; align-items: center;
}
.slogan-pde { color: var(--p); font-weight: 800; font-size: clamp(1.3rem, 5.5vw, 1.9rem); }
.slogan-pde::before { content: '« '; color: var(--gold); }
.slogan-pde::after { content: ' »'; color: var(--gold); }

/* ---------- Contact ---------- */
.contact-ci {
  width: 44px; height: 44px; border-radius: .8rem; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 1.15rem; background: rgba(87,160,71,.12);
}
.form-control, .form-select { border: 1.5px solid var(--line); background: #FCFBF6; border-radius: .7rem; padding: .7rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--a); box-shadow: 0 0 0 .2rem rgba(12,149,196,.15); }
.form-label { font-weight: 700; color: var(--p); font-size: .9rem; }
.form-card { background: #fff; border: 0; border-radius: 1.1rem; box-shadow: 0 10px 30px rgba(14,74,56,.10); }

/* ---------- Page domaine ---------- */
.domaine-ico {
  font-size: 2.3rem; width: 84px; height: 84px; border-radius: 1.4rem;
  background: #fff; box-shadow: 0 10px 30px rgba(14,74,56,.10);
  display: grid; place-items: center; border-bottom: 4px solid var(--gold);
}
.objectif-card {
  background: #fff; border: 0; border-left: 6px solid var(--p); border-radius: .9rem;
  box-shadow: 0 10px 30px rgba(14,74,56,.10);
}
.objectif-card h2, .list-card h2 { font-size: .92rem; letter-spacing: .14em; font-weight: 800; }
.objectif-card h2 { color: var(--b); }
.list-card { background: #fff; border: 0; border-radius: 1.1rem; box-shadow: 0 10px 30px rgba(14,74,56,.10); height: 100%; }
.list-card.actions h2 { color: var(--g); }
.list-card.impacts h2 { color: var(--b); }
.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li { position: relative; padding: .6rem 0 .6rem 1.9rem; color: var(--muted); border-bottom: 1px dashed var(--line); }
.tick-list li:last-child { border-bottom: 0; }
.tick-list li::before { content: '●'; position: absolute; left: .2rem; top: .68rem; font-size: .75rem; }
.list-card.actions .tick-list li::before { color: var(--g); }
.list-card.impacts .tick-list li::before { color: var(--a); }
.back-link { font-weight: 700; color: var(--p); display: inline-block; margin-bottom: 1.4rem; }
.back-link::before { content: '← '; }

/* ---------- Pied de page ---------- */
.footer-pde { background: var(--p); color: #DCE8DF; }
.footer-waves { display: block; width: 100%; height: 90px; margin-top: -89px; }
.footer-note { color: #AFC8B8; font-size: .92rem; }
.footer-title { color: var(--gold); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-link { display: block; color: #DCE8DF; text-decoration: none; margin-bottom: .55rem; font-size: .94rem; }
a.footer-link:hover { color: var(--gold); }
.footer-bar { border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; color: #AFC8B8; }
.footer-admin { color: #AFC8B8; }
.footer-admin:hover { color: var(--gold); }
