/* =========================================================
   LA MAISON DES ENFANTS — feuille de style principale
   Palette extraite du logo :
   rouge #e20612 · vert #75c250 · jaune #f8d611 · orange #f79b14
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@500;600;700&family=Nunito+Sans:opsz,wght@6..12,400;6..12,600;6..12,700;6..12,800&display=swap');

:root{
  --red: #e20612;
  --red-dark: #b8040e;
  --red-light: #fdeceb;
  --green: #75c250;
  --green-dark: #56a233;
  --yellow: #f8d611;
  --yellow-dark: #e0bd00;
  --orange: #f79b14;
  --ink: #241c1a;
  --ink-soft: #5a504c;
  --paper: #fffdf8;
  --cream: #fff6e6;
  --line: #f0e6d6;

  --font-head: 'Quicksand', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --shadow: 0 12px 32px rgba(36, 28, 26, 0.10);
  --shadow-soft: 0 6px 18px rgba(36, 28, 26, 0.07);
  --container: 1160px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,h4{
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--ink);
}
h1{ font-size: clamp(2rem, 4vw, 3.1rem); }
h2{ font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3{ font-size: 1.25rem; }
p{ margin: 0 0 1em; }
a{ color: var(--red); text-decoration:none; }
img{ max-width:100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }
.container{ width:100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section{ padding: 88px 0; }
@media (max-width: 768px){ section{ padding: 56px 0; } }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-head); font-weight:700; letter-spacing:.06em;
  text-transform: uppercase; font-size:.8rem; color: var(--red);
  background: var(--red-light); padding: 6px 16px; border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before{ content:""; width:7px; height:7px; border-radius:50%; background: var(--green); }

.section-head{ max-width: 680px; margin: 0 0 48px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head p{ color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family: var(--font-head); font-weight:700; font-size:.98rem;
  padding: 14px 30px; border-radius: 999px; border: 2px solid transparent;
  cursor:pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary{ background: var(--red); color:#fff; box-shadow: 0 10px 24px rgba(226,6,18,.28); }
.btn-primary:hover{ background: var(--red-dark); transform: translateY(-2px); }
.btn-secondary{ background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover{ border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost-light{ background: rgba(255,255,255,.14); color:#fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover{ background:#fff; color: var(--red); }
.btn-yellow{ background: var(--yellow); color: var(--ink); box-shadow: 0 10px 24px rgba(248,214,17,.35);}
.btn-yellow:hover{ background: var(--yellow-dark); transform: translateY(-2px); }
.btn-block{ width:100%; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index: 200;
  background: rgba(255,253,248,.98);
  border-bottom: 1px solid var(--line);
}
.topbar{
  background: var(--ink); color: #f4ece3; font-size:.82rem;
}
.topbar .container{ display:flex; justify-content:space-between; align-items:center; padding-top:8px; padding-bottom:8px; gap: 16px; flex-wrap: wrap;}
.topbar a{ color:#f4ece3; }
.topbar-links{ display:flex; gap:20px; }
.topbar-links li{ display:flex; align-items:center; gap:6px; }

.navbar{ display:flex; align-items:center; justify-content:space-between; padding: 14px 48px; gap: 20px; width:100%; box-sizing:border-box; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height:56px; width:56px; border-radius:50%; object-fit:cover; }
.brand-text{ font-family: var(--font-head); line-height:1.15; }
.brand-text strong{ display:block; font-size:1.08rem; color: var(--ink); }
.brand-text span{ display:block; font-size:.72rem; letter-spacing:.05em; color: var(--red); font-weight:700; text-transform:uppercase; }

.nav-links{ display:flex; align-items:center; gap: 30px; }
.nav-links a{
  color: var(--ink); font-weight:600; font-size:.96rem; position:relative; padding: 6px 0;
}
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:-2px; width:0; height:2px; background: var(--red);
  transition: width .2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after{ width:100%; }
.nav-links a.active{ color: var(--red); }
.nav-cta{ display:flex; align-items:center; gap:14px; }
.nav-toggle{ display:none; background:none; border:none; cursor:pointer; padding:6px; }
.nav-toggle span{ display:block; width:26px; height:3px; margin:5px 0; background: var(--ink); border-radius:2px; }

@media (max-width: 960px){
  .nav-links{
    position:fixed; inset: 0 0 0 30%; background:#fff; flex-direction:column; justify-content:flex-start;
    padding: 110px 32px 32px; gap: 26px; transform: translateX(100%); transition: transform .3s ease;
    box-shadow: -20px 0 40px rgba(0,0,0,.12);
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-toggle{ display:block; }
  .nav-cta .btn-secondary{ display:none; }
  .topbar-links{ gap:12px; }
  .navbar{ padding: 14px 20px; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative; overflow:hidden;
  background: radial-gradient(120% 140% at 15% -10%, #fff6df 0%, #fff 45%),
              linear-gradient(180deg, #fffdf8 0%, #fff6e6 100%);
  padding: 72px 0 60px;
}
.hero .container{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items:center; }
.hero-copy .eyebrow{ margin-bottom:20px; }
.hero-copy p{ font-size:1.12rem; color: var(--ink-soft); max-width:520px; }
.hero-actions{ display:flex; gap:16px; margin-top: 32px; flex-wrap:wrap; }
.hero-stats{ display:flex; gap:36px; margin-top:44px; flex-wrap:wrap; }
.hero-stats div strong{ display:block; font-family: var(--font-head); font-size:1.9rem; color: var(--red); }
.hero-stats div span{ font-size:.85rem; color: var(--ink-soft); }

.hero-art{ position:relative; display:flex; align-items:center; justify-content:center; }

/* ---------- Hero donation widget ---------- */
.donate-widget{
  position:relative; width:100%; max-width: 440px; background:#fff; border-radius: var(--radius-l);
  padding: 34px 32px; box-shadow: var(--shadow);
}
.donate-widget::before{
  content:""; position:absolute; top:-16px; right:-16px; width:72px; height:72px; border-radius:50%;
  background: conic-gradient(from 200deg, var(--yellow), var(--orange), var(--red), var(--orange), var(--yellow));
  z-index:-1;
}
.donate-widget-head{ display:flex; align-items:center; gap:12px; margin-bottom:22px; }
.donate-widget-head img{ width:44px; height:44px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.donate-widget h3{ margin:0; font-size:1.2rem; }
.donate-tabs{ display:flex; gap:10px; margin-bottom:22px; }
.donate-tabs .tab-btn{
  flex:1; margin:0; padding: 10px 6px; border:1.5px solid var(--line); border-radius: 999px; font-size:.86rem;
  color: var(--ink-soft);
}
.donate-tabs .tab-btn.active{ border-color: var(--red); color: var(--red); background: var(--red-light); }
.donate-widget .amount-grid{ margin-bottom:18px; }
.donate-widget .field{ margin-bottom:18px; }
.donate-tax{ font-size:.9rem; color: var(--ink-soft); text-align:center; margin: 0 0 20px; }
.donate-tax strong{ color: var(--red); font-family: var(--font-head); }
.donate-trust{ display:flex; align-items:center; justify-content:center; gap:8px; margin-top:18px; font-size:.8rem; color: var(--ink-soft); }
.donate-trust svg{ width:16px; height:16px; color: var(--green-dark); flex-shrink:0; }

@media (max-width: 900px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero-art{ order:-1; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero{
  background: linear-gradient(120deg, var(--red) 0%, #c9280f 60%, var(--orange) 100%);
  color:#fff; padding: 64px 0 56px; position:relative; overflow:hidden;
}
.page-hero::after{
  content:""; position:absolute; right:-60px; bottom:-90px; width:280px; height:280px; border-radius:50%;
  background: radial-gradient(circle, rgba(248,214,17,.5), transparent 70%);
}
.page-hero .eyebrow{ background: rgba(255,255,255,.16); color:#fff; }
.page-hero .eyebrow::before{ background:#fff; }
.page-hero h1{ color:#fff; max-width:700px; }
.page-hero p{ color: rgba(255,255,255,.9); max-width:600px; font-size:1.05rem; }
.breadcrumb{ font-size:.85rem; color: rgba(255,255,255,.75); margin-bottom:18px; }
.breadcrumb a{ color: rgba(255,255,255,.85); }

/* ---------- Cards / grids ---------- */
.grid{ display:grid; gap: 28px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px){ .grid-3, .grid-4{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .grid-3, .grid-4, .grid-2{ grid-template-columns: 1fr; } }

.card{
  background:#fff; border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 32px 26px; box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover{ transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon{
  width:58px; height:58px; border-radius:16px; display:flex; align-items:center; justify-content:center;
  margin-bottom: 20px; background: var(--red-light); color: var(--red);
}
.card-icon svg{ width:28px; height:28px; }
.card.icon-green .card-icon{ background: #edf7e6; color: var(--green-dark); }
.card.icon-yellow .card-icon{ background: #fff8dc; color: var(--yellow-dark); }
.card.icon-orange .card-icon{ background: #fff1e0; color: var(--orange); }
.card h3{ margin-bottom:.5em; }
.card p{ color: var(--ink-soft); font-size:.97rem; margin-bottom:0; }

/* ---------- Mission band ---------- */
.mission-band{
  background: var(--ink); color:#fff; border-radius: var(--radius-l);
  padding: 56px; display:grid; grid-template-columns: 1.2fr .8fr; gap:40px; align-items:center;
}
.mission-band h2{ color:#fff; }
.mission-band p{ color: rgba(255,255,255,.78); }
.mission-figures{ display:grid; grid-template-columns: repeat(2,1fr); gap:24px; }
.mission-figures div{ background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius: var(--radius-s); padding: 20px; text-align:center; }
.mission-figures strong{ display:block; font-family: var(--font-head); font-size:2rem; color: var(--yellow); }
.mission-figures span{ font-size:.8rem; color: rgba(255,255,255,.7); }
@media (max-width: 900px){ .mission-band{ grid-template-columns:1fr; padding: 36px 26px; } }

/* ---------- Stripe / stats ---------- */
.stats-strip{ background: var(--cream); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.stats-strip .grid-4{ text-align:center; }
.stat strong{ display:block; font-family: var(--font-head); font-size: 2.4rem; color: var(--red); }
.stat span{ color: var(--ink-soft); font-size:.9rem; }

/* ---------- Quote / testimonial ---------- */
.quote-block{
  background: var(--paper); border-left: 5px solid var(--yellow); border-radius: var(--radius-m);
  padding: 36px 40px; box-shadow: var(--shadow-soft); position:relative;
}
.quote-block p{ font-family: var(--font-head); font-size:1.25rem; font-weight:600; color: var(--ink); }
.quote-block footer{ font-size:.9rem; color: var(--ink-soft); }

/* ---------- CTA banner ---------- */
.cta-banner{
  background: linear-gradient(120deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: var(--radius-l); padding: 52px; color:#fff; display:flex; align-items:center; justify-content:space-between; gap: 30px; flex-wrap:wrap;
}
.cta-banner h2{ color:#fff; margin-bottom:.3em; }
.cta-banner p{ color: rgba(255,255,255,.9); margin-bottom:0; max-width:460px; }

/* ---------- News cards ---------- */
.news-card{ background:#fff; border-radius: var(--radius-m); overflow:hidden; border:1px solid var(--line); box-shadow: var(--shadow-soft); transition: transform .2s ease; }
.news-card:hover{ transform: translateY(-6px); }
.news-thumb{ height: 170px; display:flex; align-items:center; justify-content:center; color:#fff; font-family: var(--font-head); font-weight:700; }
.news-body{ padding: 22px 24px 26px; }
.news-date{ font-size:.78rem; text-transform:uppercase; letter-spacing:.05em; color: var(--red); font-weight:700; margin-bottom:8px; display:block; }
.news-body h3{ font-size:1.1rem; margin-bottom:.4em; }
.news-body p{ font-size:.92rem; color: var(--ink-soft); }
.news-link{ font-weight:700; font-size:.9rem; }

/* ---------- Forms ---------- */
.form-card{ background:#fff; border:1px solid var(--line); border-radius: var(--radius-m); padding: 40px; box-shadow: var(--shadow-soft); }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap:20px; margin-bottom:20px; }
@media (max-width:620px){ .form-row{ grid-template-columns:1fr; } }
.field{ display:flex; flex-direction:column; gap:8px; margin-bottom:20px; }
.field label{ font-weight:700; font-size:.88rem; }
.field input, .field select, .field textarea{
  border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 13px 16px; font-family: var(--font-body); font-size:1rem;
  background: var(--paper); transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color: var(--red); }
.field-check{ display:flex; align-items:flex-start; gap:10px; font-size:.86rem; color: var(--ink-soft); }
.field-check input{ margin-top:3px; }

/* ---------- Donation amounts ---------- */
.amount-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:12px; margin-bottom:24px; }
@media (max-width:560px){ .amount-grid{ grid-template-columns: repeat(2,1fr); } }
.amount-option{
  border: 2px solid var(--line); border-radius: var(--radius-s); padding: 16px 8px; text-align:center; cursor:pointer;
  font-family: var(--font-head); font-weight:700; background:#fff; transition: all .15s ease;
}
.amount-option input{ display:none; }
.amount-option:has(input:checked){ border-color: var(--red); background: var(--red-light); color: var(--red); }
.tabs{ display:flex; gap:10px; margin-bottom: 30px; border-bottom: 2px solid var(--line); }
.tab-btn{ background:none; border:none; padding: 12px 4px; margin-right: 26px; font-family: var(--font-head); font-weight:700; color: var(--ink-soft); cursor:pointer; border-bottom: 3px solid transparent; margin-bottom:-2px; }
.tab-btn.active{ color: var(--red); border-color: var(--red); }

/* ---------- Team ---------- */
.team-card{ text-align:center; }
.team-avatar{
  width:110px; height:110px; border-radius:50%; margin: 0 auto 18px; display:flex; align-items:center; justify-content:center;
  font-family: var(--font-head); font-weight:700; font-size:1.6rem; color:#fff;
}
.team-role{ color: var(--red); font-size:.85rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }

/* ---------- Values timeline (about page) ---------- */
.timeline{ position:relative; padding-left: 34px; }
.timeline::before{ content:""; position:absolute; left:9px; top:6px; bottom:6px; width:2px; background: var(--line); }
.timeline-item{ position:relative; padding-bottom: 34px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-item::before{ content:""; position:absolute; left:-34px; top:4px; width:20px; height:20px; border-radius:50%; background: var(--yellow); border:4px solid var(--paper); box-shadow:0 0 0 2px var(--yellow); }
.timeline-item h3{ margin-bottom:.2em; }
.timeline-item span.year{ color: var(--red); font-family: var(--font-head); font-weight:700; }

/* ---------- FAQ ---------- */
.faq-item{ border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item summary{ cursor:pointer; font-family: var(--font-head); font-weight:700; font-size:1.02rem; list-style:none; display:flex; justify-content:space-between; align-items:center; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:"+"; font-size:1.4rem; color: var(--red); }
.faq-item[open] summary::after{ content:"–"; }
.faq-item p{ color: var(--ink-soft); margin-top:12px; margin-bottom:0; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--ink); color: #e8ded4; padding: 72px 0 0; margin-top: 60px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (max-width: 900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-brand{ display:flex; gap:14px; align-items:center; margin-bottom: 16px; }
.footer-brand img{ height:52px; width:52px; border-radius:50%; }
.footer-brand strong{ font-family: var(--font-head); font-size:1.05rem; color:#fff; }
.site-footer p{ color: rgba(232,222,212,.7); font-size:.92rem; }
.site-footer h4{ color:#fff; font-family: var(--font-head); font-size:.95rem; text-transform:uppercase; letter-spacing:.04em; margin-bottom: 18px; }
.footer-links li{ margin-bottom: 10px; }
.footer-links a{ color: rgba(232,222,212,.8); font-size:.92rem; }
.footer-links a:hover{ color: var(--yellow); }
.footer-contact li{ display:flex; gap:10px; margin-bottom:14px; font-size:.9rem; color: rgba(232,222,212,.85); }
.footer-contact svg{ flex-shrink:0; color: var(--yellow); width:18px; height:18px; margin-top:2px; }
.social-row{ display:flex; gap:10px; margin-top:18px; }
.social-row a{ width:38px; height:38px; border-radius:50%; background: rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; color:#fff; transition: background .2s ease; }
.social-row a:hover{ background: var(--red); }
.newsletter-form{ display:flex; gap:8px; margin-top: 6px; }
.newsletter-form input{ flex:1; min-width:0; padding: 11px 14px; border-radius: 8px; border:1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color:#fff; }
.newsletter-form input::placeholder{ color: rgba(255,255,255,.5); }
.newsletter-form button{ background: var(--yellow); color: var(--ink); border:none; padding: 0 18px; border-radius:8px; font-family: var(--font-head); font-weight:700; cursor:pointer; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding: 22px 0; font-size:.82rem; color: rgba(232,222,212,.6); flex-wrap:wrap; gap:10px; }
.footer-bottom a{ color: rgba(232,222,212,.6); }
.footer-bottom a:hover{ color:#fff; }

/* ---------- Utilities ---------- */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; }
.reveal{ opacity:0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }
.map-embed{ border-radius: var(--radius-m); overflow:hidden; border:1px solid var(--line); box-shadow: var(--shadow-soft); }
.map-embed iframe{ width:100%; height: 320px; border:0; display:block; }
.banner-note{ background: var(--yellow); color: var(--ink); text-align:center; font-size:.85rem; font-weight:700; padding: 8px 16px; }
