/* ============ ONG Le Refuge — style.css ============ */
:root {
  --blue-900: #14335f;
  --blue-800: #1b4478;
  --blue-700: #245a9d;
  --orange: #e87b1e;
  --orange-dark: #d3660d;
  --orange-light: #f5a45c;
  --cream: #fbf7f0;
  --white: #ffffff;
  --text: #33383f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 51, 95, .12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}
h1, h2, h3 { font-weight: 600; color: var(--blue-900); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, 92%); margin-inline: auto; }
.orange { color: var(--orange); }
.orange-link { color: var(--orange-dark); font-weight: 600; text-decoration: underline; }
.light { color: var(--cream); }
.kicker {
  text-transform: uppercase; letter-spacing: .25em;
  font-size: .78rem; color: var(--orange-dark); font-weight: 600;
}
.orange-line {
  width: 72px; height: 3px; background: var(--orange);
  margin: 16px auto 0; border-radius: 3px;
}
.orange-line.left { margin-left: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: transform .2s, box-shadow .2s, background .2s;
  cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-orange {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: var(--white); box-shadow: 0 6px 18px rgba(232, 123, 30, .35);
}
.btn-outline { border: 1.5px solid var(--white); color: var(--white); background: transparent; }
.btn-lg { padding: 15px 40px; font-size: 1rem; }

/* ---------- En-tête ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(20, 51, 95, .95); backdrop-filter: blur(10px);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; gap: 26px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 56px; width: auto; border-radius: 50%; background: #fff; padding: 3px; }
.brand-name { color: var(--white); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
  color: var(--cream); font-size: .9rem; font-weight: 500;
  position: relative; padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--orange); transition: width .25s;
}
.nav a:hover::after { width: 100%; }
.header-cta { margin-left: 6px; padding: 10px 22px; font-size: .85rem; }
.burger { display: none; background: none; border: none; cursor: pointer; }
.burger span {
  display: block; width: 26px; height: 2.5px; margin: 5px 0;
  background: var(--white); border-radius: 2px;
}

/* ---------- Bannière événement ---------- */
.event-banner {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white); padding: 34px 0;
}
.event-banner-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.event-tag {
  display: inline-block; background: var(--white); color: var(--orange-dark);
  font-size: .78rem; font-weight: 700; letter-spacing: .05em;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 8px;
}
.event-banner h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 6px; }
.event-banner p { font-size: .95rem; color: #fff3e6; }
.event-banner-side { display: grid; gap: 12px; justify-items: center; }
.countdown { display: flex; gap: 12px; }
.cd-box {
  background: rgba(255,255,255,.15); border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 12px; padding: 8px 18px; text-align: center;
}
.cd-box span { display: block; font-size: 1.6rem; font-weight: 700; }
.cd-box small { font-size: .72rem; color: #fff3e6; }
.btn-navy { background: var(--blue-900); color: var(--white); }
.btn-navy-outline { border: 1.5px solid var(--blue-900); color: var(--blue-900); background: transparent; }

/* ---------- Détails événement ---------- */
.event-grid {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start;
}
.event-affiche img {
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.event-meta {
  display: grid; gap: 12px; background: var(--cream);
  border-radius: var(--radius); padding: 20px 22px; font-size: .93rem;
}
.event-info h3 { margin: 22px 0 10px; font-size: 1.15rem; }
.event-program { list-style: none; display: grid; gap: 9px; font-size: .95rem; }
.event-program li { padding-left: 4px; }
.event-cta-line {
  margin: 18px 0; color: var(--orange-dark); font-weight: 600; font-size: 1.05rem;
}
.event-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.event-note { margin-top: 16px; font-size: .85rem; color: #666d78; }
.presidente { font-size: .93rem; color: #555b64; }

/* ---------- Héro ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: url("../assets/hero-enfants.jpg") center 25% / cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,51,95,.45), rgba(20,51,95,.8));
}
.hero-content { position: relative; color: var(--cream); text-align: center; padding: 150px 0 60px; }
.hero h1 { color: var(--white); margin: 14px 0 18px; }
.hero-sub { max-width: 620px; margin-inline: auto; font-size: 1.05rem; color: #e6e9f2; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin: 32px 0 56px; flex-wrap: wrap; }
.hero-stats {
  display: flex; justify-content: center; gap: clamp(24px, 6vw, 80px);
  border-top: 1px solid rgba(255,255,255,.2); padding-top: 26px;
}
.hero-stats strong {
  display: block; font-size: 1.4rem; color: var(--orange-light);
}
.hero-stats span { font-size: .82rem; color: #cfd8e8; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-head { text-align: center; margin-bottom: 50px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(20,51,95,.18); }

/* Mission */
.mission-card { border-top: 5px solid var(--orange); text-align: center; }
.mission-icon { font-size: 2.4rem; margin-bottom: 12px; }
.mission-card h3 { font-size: 1.3rem; margin-bottom: 10px; }

/* Actions */
.section-blue { background: var(--blue-900); }
.section-blue h2 { color: var(--cream); }
.action-card { padding: 0; overflow: hidden; text-align: center; }
.action-img { width: 100%; height: 170px; object-fit: cover; }
.action-card h3 { font-size: 1.1rem; margin: 16px 0 8px; }
.action-card p { font-size: .88rem; color: #555b64; padding: 0 18px 22px; }

/* À propos */
.apropos { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; }
.apropos-text p { margin: 16px 0; font-size: .97rem; }
.apropos-text .btn { margin-top: 10px; }
.apropos-img img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Galerie */
.section-cream { background: var(--cream); }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); margin: 0;
}
.gallery-item img { width: 100%; height: 230px; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(20,51,95,.9));
  color: var(--white); font-size: .88rem; font-weight: 500;
  padding: 32px 16px 12px;
}

/* Vidéos */
.video-grid { grid-template-columns: repeat(3, 1fr); }
.video-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); margin: 0;
}
.video-card video {
  width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block;
  background: var(--blue-900);
}
.video-card figcaption {
  padding: 12px 16px; font-size: .88rem; font-weight: 500; color: var(--blue-900);
}

/* Actualités */
.news-list { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.news-card { border-top: 5px solid var(--orange); padding: 28px 28px 30px; }
.news-card:hover { transform: none; }
.news-date {
  display: inline-block; font-size: .8rem; font-weight: 600; color: var(--white);
  background: var(--blue-900); padding: 4px 14px; border-radius: 999px; margin-bottom: 14px;
}
.news-card h3 { font-size: 1.3rem; line-height: 1.35; margin-bottom: 8px; }
.news-desc { color: #555b64; font-size: .95rem; }
.news-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.news-videos video {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
  border-radius: 10px; background: var(--blue-900);
}

/* Dons */
.don-card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px 26px; text-align: center;
  box-shadow: var(--shadow); border-top: 5px solid var(--blue-700);
}
.don-card.featured { border-top-color: var(--orange); transform: scale(1.03); }
.don-icon { font-size: 2.2rem; margin-bottom: 10px; }
.don-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.don-card p { font-size: .9rem; color: #555b64; }
.don-details { margin-top: 10px; line-height: 1.9; }
.don-note {
  text-align: center; margin-top: 34px; color: #cfd8e8;
  font-size: .9rem;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.contact-item { display: flex; gap: 14px; font-size: .92rem; }
.contact-item span { font-size: 1.4rem; }
.contact-item strong { color: var(--blue-900); }
.form {
  background: var(--white); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow); display: grid; gap: 16px;
}
.form label { display: grid; gap: 7px; font-weight: 600; font-size: .86rem; color: var(--blue-900); }
.form input, .form select, .form textarea {
  font: inherit; padding: 12px 14px; border-radius: 8px;
  border: 1.5px solid #d9dce3; background: #fbfbfd; transition: border-color .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--orange); }
.form button { justify-self: start; }
.form-ok {
  background: #eef7ef; color: #1e6b34; border: 1px solid #bfe3c8;
  padding: 12px 16px; border-radius: 8px; font-size: .9rem;
}
.form-error {
  background: #fdf0ef; color: #a33; border: 1px solid #eec6c2;
  padding: 12px 16px; border-radius: 8px; font-size: .9rem;
}

/* Bouton WhatsApp flottant */
.whatsapp-btn {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-btn:hover { transform: scale(1.08); box-shadow: 0 10px 30px rgba(37, 211, 102, .6); }

/* Pied de page */
.footer { background: var(--blue-900); color: #b9c8dd; padding: 46px 0; }
.footer-inner { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.footer-logo { height: 84px; border-radius: 50%; background: #fff; padding: 4px; }
.footer p { font-size: .92rem; }
.footer-slogan { color: var(--orange-light); font-weight: 500; }
.footer .legal { font-size: .78rem; margin-top: 8px; color: #7d8aa5; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .apropos, .contact-grid, .event-grid { grid-template-columns: 1fr; }
  .event-banner-inner { flex-direction: column; text-align: center; }
  .nav {
    position: fixed; top: 74px; right: -100%;
    flex-direction: column; gap: 4px;
    background: var(--blue-900); width: min(78vw, 320px);
    padding: 24px 30px; border-radius: 0 0 0 18px;
    transition: right .3s; box-shadow: -8px 0 30px rgba(0,0,0,.35);
  }
  .nav.open { right: 0; }
  .nav a { padding: 11px 0; font-size: 1rem; }
  .burger { display: block; margin-left: auto; }
  .header-cta { display: none; }
  .don-card.featured { transform: none; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .brand-name { display: none; }
  .brand-logo { height: 50px; }
  .hero-stats { gap: 20px; }
  .news-videos { grid-template-columns: 1fr; }
  .news-list { grid-template-columns: 1fr; }
}
