@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;700&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,700;0,9..144,900&family=Inter:wght@300;400;500;600&display=swap');

/* ── VARIABLES / THÈMES ─────────────────────────────────────────────────── */
:root {
  --brand: #305694;
  --brand-dark: #1a2e4f;
  --gold: #b08d57;
  --bg: linear-gradient(135deg,#ffffff 0%,#fdf5e6 40%,rgba(48,86,148,0.07) 80%,#ffecb3 100%);
  --surface: rgba(255,255,255,0.85);
  --surface-border: rgba(48,86,148,0.15);
  --text-h: #1a1a2e;
  --text-body: #2d2d3a;
  --text-muted: #6b6b7b;
  --check-bg: rgba(48,86,148,0.08);
  --divider: rgba(48,86,148,0.12);
  --toggle-bg: rgba(48,86,148,0.1);
  --not-for-bg: rgba(220,53,69,0.06);
  --not-for-border: rgba(220,53,69,0.2);
  --for-bg: rgba(48,86,148,0.06);
  --for-border: rgba(48,86,148,0.2);
  --urgency-bg: rgba(176,141,87,0.08);
  --urgency-border: rgba(176,141,87,0.3);
  --input-bg: #ffffff;
  --input-border: rgba(48,86,148,0.25);
  --form-surface: rgba(255,255,255,0.95);
  --accent: var(--brand);
}
[data-theme="dark"] {
  --bg: linear-gradient(160deg,#1a2e4f 0%,#305694 50%,#254375 80%,#b08d57 100%);
  --surface: rgba(26,46,79,0.75);
  --surface-border: rgba(176,141,87,0.2);
  --text-h: #f0e6d3;
  --text-body: #d4c9b8;
  --text-muted: #9ba8be;
  --check-bg: rgba(176,141,87,0.15);
  --divider: rgba(176,141,87,0.15);
  --toggle-bg: rgba(255,255,255,0.1);
  --not-for-bg: rgba(220,53,69,0.1);
  --not-for-border: rgba(220,53,69,0.3);
  --for-bg: rgba(176,141,87,0.1);
  --for-border: rgba(176,141,87,0.3);
  --urgency-bg: rgba(176,141,87,0.12);
  --urgency-border: rgba(176,141,87,0.35);
  --input-bg: rgba(255,255,255,0.08);
  --input-border: rgba(176,141,87,0.4);
  --form-surface: rgba(26,46,79,0.9);
  --accent: #f0c060;
}

/* ── BASE ───────────────────────────────────────────────────────────────── */
*{box-sizing:border-box;margin:0;padding:0;}
body{font-family:'DM Sans',sans-serif;min-height:100vh;background:var(--bg);color:var(--text-body);line-height:1.7;}

/* ── TOGGLE ─────────────────────────────────────────────────────────────── */
.theme-toggle{position:fixed;top:1rem;right:1rem;z-index:100;background:var(--toggle-bg);border:0.5px solid var(--surface-border);border-radius:2rem;padding:6px 12px;cursor:pointer;font-size:13px;font-family:'DM Sans',sans-serif;color:var(--text-body);display:flex;align-items:center;gap:6px;backdrop-filter:blur(8px);transition:all .3s;}

/* ── LAYOUT ─────────────────────────────────────────────────────────────── */
.page{max-width:680px;margin:0 auto;padding:2rem 1.25rem 4rem;}

/* ── HEADER ─────────────────────────────────────────────────────────────── */
.header{text-align:center;padding:2rem 0 1.5rem;animation:fadeUp .6s ease both;}
.logo{height:36px;margin-bottom:1.5rem;opacity:.9;}
.brand-name{font-size:12px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:var(--text-muted);margin-bottom:.5rem;}
.event-badge{display:inline-flex;align-items:center;gap:8px;background:var(--brand);color:#fff;font-size:13px;font-weight:500;padding:6px 16px;border-radius:2rem;margin-bottom:1.75rem;}
.event-badge .dot{width:6px;height:6px;background:#f0c060;border-radius:50%;animation:pulse 1.8s infinite;}

/* ── HERO (3 variables) ─────────────────────────────────────────────────── */
.hero{text-align:center;margin-bottom:2rem;animation:fadeUp .6s .1s ease both;}
.hero-headline{
  font-family:'Outfit',sans-serif;
  font-size:clamp(1.45rem,4vw,2.2rem);
  font-weight:700;
  color:var(--text-h);
  line-height:1.2;
  margin-bottom:1rem;
  max-width:580px;
  margin-left:auto;
  margin-right:auto;
  letter-spacing:-0.01em;
}
.hero-subtitle{
  font-size:clamp(1.05rem,2.5vw,1.25rem);
  font-weight:500;
  color:#f0c060;
  font-style:normal;
  max-width:520px;
  margin:0 auto 0.75rem;
  line-height:1.6;
  letter-spacing:0.01em;
}
.hero-target{font-size:13px;color:rgba(255,255,255,0.65);font-style:italic;}

/* ── AUTEUR ─────────────────────────────────────────────────────────────── */
.author-block{display:flex;align-items:center;gap:1rem;justify-content:center;margin:1.5rem 0 2rem;animation:fadeUp .6s .2s ease both;}
.author-photo{width:64px;height:64px;border-radius:50%;object-fit:cover;border:2px solid var(--accent);}
.author-name{font-weight:500;font-size:15px;color:var(--text-h);}
.author-title{font-size:13px;color:var(--text-muted);}

/* ── FORMULAIRE ─────────────────────────────────────────────────────────── */
.form-card{background:var(--form-surface);border:0.5px solid var(--surface-border);border-radius:16px;padding:2rem 1.75rem;margin-bottom:2.5rem;backdrop-filter:blur(12px);animation:fadeUp .6s .25s ease both;}
.form-label-top{text-align:center;font-size:13px;color:var(--text-muted);margin-bottom:1.25rem;font-style:italic;}
.field{margin-bottom:.875rem;}
.field label{display:block;font-size:12px;font-weight:500;color:var(--text-muted);margin-bottom:5px;letter-spacing:.04em;text-transform:uppercase;}
.field input{width:100%;padding:10px 14px;font-size:15px;font-family:'DM Sans',sans-serif;background:var(--input-bg);border:0.5px solid var(--input-border);border-radius:8px;color:var(--text-h);outline:none;transition:border-color .2s;}
.field input::placeholder{color:var(--text-muted);opacity:.6;}
.field input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(48,86,148,.12);}
.btn-submit{width:100%;margin-top:1rem;padding:14px;font-size:16px;font-family:'DM Sans',sans-serif;font-weight:500;background:var(--brand);color:#fff;border:none;border-radius:8px;cursor:pointer;transition:all .2s;}
.btn-submit:hover{background:var(--brand-dark);transform:translateY(-1px);}
[data-theme="dark"] .btn-submit{background:#f0c060;color:#1a2e4f;}
[data-theme="dark"] .btn-submit:hover{background:#e0b050;}
.form-spam{text-align:center;font-size:11px;color:var(--text-muted);margin-top:.75rem;}

/* ── SECTIONS ───────────────────────────────────────────────────────────── */
.section{margin-bottom:2.5rem;animation:fadeUp .6s .3s ease both;}
.section-label{font-size:15px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#f0c060;margin-bottom:1rem;}

/* ── PROMESSES ──────────────────────────────────────────────────────────── */
.promise-list{display:flex;flex-direction:column;gap:.875rem;}
.promise-item{display:flex;gap:.875rem;align-items:flex-start;background:var(--check-bg);border-radius:10px;padding:.875rem 1rem;}
.check-icon{width:22px;height:22px;border-radius:50%;background:var(--brand);color:#fff;font-size:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px;}
[data-theme="dark"] .check-icon{background:#f0c060;color:#1a2e4f;}
.promise-text{font-size:14px;color:var(--text-body);line-height:1.6;}
.promise-text strong{color:var(--text-h);font-weight:500;}

/* ── DIVIDER ────────────────────────────────────────────────────────────── */
.divider{height:.5px;background:var(--divider);margin:2rem 0;}

/* ── NARRATION ──────────────────────────────────────────────────────────── */
.narration{font-size:15px;color:var(--text-body);margin-bottom:1.5rem;line-height:1.8;animation:fadeUp .6s .35s ease both;}
.narration p+p{margin-top:.75rem;}
.narration strong{color:var(--text-h);font-weight:500;}

/* ── ACTES ──────────────────────────────────────────────────────────────── */
.actes{display:flex;flex-direction:column;gap:1rem;margin-bottom:2rem;animation:fadeUp .6s .4s ease both;}
.acte-item{background:var(--surface);border:0.5px solid var(--surface-border);border-radius:12px;padding:1rem 1.25rem;display:flex;gap:1rem;align-items:flex-start;backdrop-filter:blur(8px);}
.acte-icon{font-size:20px;flex-shrink:0;margin-top:2px;}
.acte-title{font-weight:500;font-size:14px;color:var(--text-h);margin-bottom:3px;}
.acte-desc{font-size:13px;color:var(--text-muted);}

/* ── TÉMOIGNAGES ────────────────────────────────────────────────────────── */
.testimonials{display:flex;flex-direction:column;gap:1rem;margin-bottom:2rem;animation:fadeUp .6s .4s ease both;}
.testimonial{background:var(--surface);border-left:3px solid var(--accent);border-radius:0 10px 10px 0;padding:1rem 1.25rem;backdrop-filter:blur(8px);}
.testimonial-text{font-size:14px;color:var(--text-body);font-style:italic;line-height:1.7;margin-bottom:.5rem;}
.testimonial-author{font-size:12px;font-weight:500;color:var(--accent);letter-spacing:.03em;}

/* ── ÉLIGIBILITÉ ────────────────────────────────────────────────────────── */
.eligibility{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:2rem;animation:fadeUp .6s .45s ease both;}
@media(max-width:520px){.eligibility{grid-template-columns:1fr;}}
.elig-block{border-radius:12px;padding:1rem 1.25rem;}
.elig-block.not-for{background:var(--for-bg);border:0.5px solid var(--for-border);}
.elig-block.for{background:var(--for-bg);border:0.5px solid var(--for-border);}
.elig-title{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-bottom:.75rem;}
.elig-block.not-for .elig-title{color:#e05a2b;}
.elig-block.for .elig-title{color:var(--accent);}
.elig-list{list-style:none;display:flex;flex-direction:column;gap:.5rem;}
.elig-list li{font-size:13px;color:var(--text-body);display:flex;gap:.5rem;align-items:flex-start;}
.not-for .elig-list li::before{content:"\2715";color:#e05a2b;font-weight:500;flex-shrink:0;margin-top:2px;}
.for .elig-list li::before{content:"\2713";color:var(--accent);font-weight:500;flex-shrink:0;margin-top:2px;}

/* ── BIO ────────────────────────────────────────────────────────────────── */
.bio{background:var(--surface);border:0.5px solid var(--surface-border);border-radius:14px;padding:1.5rem 1.75rem;margin-bottom:2rem;backdrop-filter:blur(8px);animation:fadeUp .6s .5s ease both;}
.bio-header{display:flex;gap:1rem;align-items:center;margin-bottom:1rem;}
.bio-photo{width:56px;height:56px;border-radius:50%;object-fit:cover;border:2px solid var(--accent);}
.bio-name{font-weight:500;font-size:15px;color:var(--text-h);}
.bio-role{font-size:12px;color:var(--text-muted);}
.bio-text{font-size:14px;color:var(--text-body);line-height:1.75;}
.bio-text+.bio-text{margin-top:.75rem;}
.bio-stats{display:flex;gap:1.5rem;margin-top:1rem;padding-top:1rem;border-top:0.5px solid var(--divider);}
.stat{text-align:center;flex:1;}
.stat-num{font-family:'Outfit',sans-serif;font-size:1.5rem;font-weight:700;color:var(--accent);display:block;letter-spacing:-0.01em;}
.stat-label{font-size:11px;color:var(--text-muted);}

/* ── URGENCE ────────────────────────────────────────────────────────────── */
.urgency{background:var(--urgency-bg);border:0.5px solid var(--urgency-border);border-radius:12px;padding:1.25rem 1.5rem;margin-bottom:2rem;animation:fadeUp .6s .55s ease both;}
.urgency-title{font-size:12px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--gold);margin-bottom:.75rem;}
.urgency-list{list-style:none;display:flex;flex-direction:column;gap:.5rem;}
.urgency-list li{font-size:13px;color:var(--text-body);display:flex;gap:.5rem;}
.urgency-list li::before{content:"\26A0\FE0F";font-size:12px;flex-shrink:0;margin-top:2px;}

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.footer{text-align:center;padding-top:2rem;border-top:0.5px solid var(--divider);}
.footer-logo{height:28px;opacity:.5;margin-bottom:.5rem;}
.footer-legal{font-size:11px;color:var(--text-muted);}

/* ── ANIMATIONS ─────────────────────────────────────────────────────────── */
@keyframes fadeUp{from{opacity:0;transform:translateY(16px);}to{opacity:1;transform:translateY(0);}}
@keyframes pulse{0%,100%{opacity:1;}50%{opacity:.4;}}


/* ── PAGE MERCI ─────────────────────────────────────────────────────────── */
.merci-wrap { max-width: 600px; margin: 0 auto; padding: 3rem 1.25rem 4rem; text-align: center; }
.merci-logo { height: 36px; opacity: .9; margin-bottom: 2rem; }
.merci-emoji { font-size: 3rem; margin-bottom: 1rem; }
.merci-title { font-family: 'Fraunces', serif; font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 900; color: var(--text-h); margin-bottom: .5rem; }
.merci-subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: .25rem; }
.merci-name { font-size: 1.2rem; font-weight: 500; color: var(--accent); margin-bottom: 2rem; }
.merci-card { background: var(--form-surface); border: 0.5px solid var(--surface-border); border-radius: 16px; padding: 1.75rem; margin-bottom: 1.25rem; backdrop-filter: blur(12px); text-align: left; overflow: visible; }
.merci-card-title { font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.event-info { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.25rem; }
.event-info-row { display: flex; align-items: center; gap: .75rem; font-size: 15px; color: var(--text-body); }
.event-info-icon { font-size: 18px; flex-shrink: 0; }
.promises-merci { list-style: none; display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.25rem; }
.promises-merci li { display: flex; gap: .75rem; align-items: flex-start; font-size: 14px; color: var(--text-body); line-height: 1.5; }
.promises-merci li::before { content: "✓"; color: var(--accent); font-weight: 500; flex-shrink: 0; margin-top: 2px; }
.cal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; width: 100%; }
.cal-btn-single { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 4px; background: var(--check-bg); border: 0.5px solid var(--surface-border); border-radius: 8px; font-size: 11px; font-family: 'Inter', sans-serif; color: var(--text-body); text-decoration: none; transition: all .2s; text-align: center; line-height: 1.3; min-width: 0; overflow: hidden; }
.cal-btn-single:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
[data-theme="dark"] .cal-btn-single:hover { background: #f0c060; color: #1a2e4f; border-color: #f0c060; }
.cal-btn-single span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
.cal-btn-emoji { font-size: 22px; flex-shrink: 0; }
.wa-btn { width: 100%; background: #25D366; color: #fff; font-size: 15px; font-family: 'Inter', sans-serif; font-weight: 500; padding: 12px 20px; border-radius: 8px; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all .2s; text-decoration: none; }
.wa-btn:hover { background: #1da851; transform: translateY(-1px); }
.wa-icon { width: 22px; height: 22px; flex-shrink: 0; }
.merci-footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 0.5px solid var(--divider); }
.merci-footer-logo { height: 24px; opacity: .4; margin-bottom: .4rem; }
.merci-footer-legal { font-size: 11px; color: var(--text-muted); }
.step-label { font-size: 12px; font-weight: 500; color: var(--text-muted); letter-spacing: .05em; text-transform: uppercase; margin-bottom: .6rem; }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; font-weight: 500; margin-right: 6px; flex-shrink: 0; }
[data-theme="dark"] .step-number { color: #1a2e4f; }