/* Soirée Solidaire 2026 */

:root {
  --primary: #1f4e79;
  --primary-hover: #163a5b;
  --bg: #faf7f2;
  --surface: #fff;
  --text: #1d2733;
  --text-2: #3b4550;
  --muted: #5f6873;
  --border: #e6e0d6;
  --field-border: #cfc8bc;
  --bar-bg: #e7eef6;
  --prefilled: #f4f7fa;
  --placeholder: #7a7264;
  --navy: #172238;
  --gold: #b08a4a;
  --accent: #c66e52;
  --sans: Arial, Helvetica, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Literata', Georgia, serif; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
input, textarea, select, button { font-family: inherit; }
input:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
h1, h2, p { margin: 0; }
.nowrap { white-space: nowrap; }
.sans { font-family: var(--sans); }
.serif { font-family: var(--serif); }
.filet { width: 72px; height: 2px; background: var(--gold); margin: 0 0 16px; }
.todo-inline { font-family: ui-monospace, monospace; font-size: 13px; color: var(--placeholder); }
.titre-serif { font-family: var(--serif); font-size: clamp(42px, 5.5vw, 62px); font-weight: 400; line-height: .98; letter-spacing: -.03em; color: var(--navy); margin-bottom: 10px; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.container { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Header / footer ---------- */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.site-header-inner { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { text-decoration: none; color: var(--text); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.logo span { color: var(--primary); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--text); }
.nav a.btn { color: #fff; }

.site-footer { border-top: 1px solid var(--border); margin-top: auto; }
.site-footer-inner { max-width: 1120px; margin: 0 auto; padding: 28px 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.site-footer a { color: var(--muted); }

/* ---------- Boutons ---------- */
.btn { display: inline-block; text-decoration: none; background: var(--primary); color: #fff; border: 0; border-radius: 999px; font-weight: 600; font-size: 16px; letter-spacing: .04em; padding: 15px 28px; cursor: pointer; }
.btn:hover { background: var(--primary-hover); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 15px; letter-spacing: 0; }
.btn-lg { padding: 16px 28px; }
.btn-block { display: block; text-align: center; font-weight: 700; font-size: 15px; line-height: 1.3; letter-spacing: 0; padding: 13px 18px; }
.btn-outline { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: #eef4fa; color: var(--primary); }

/* ---------- Textes communs ---------- */
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); font-weight: 600; margin-bottom: 10px; }
.theme { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); font-weight: 600; }
.page-title { font-size: clamp(30px, 4vw, 42px); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; margin-bottom: 10px; }
.lead { font-size: 17px; color: var(--text-2); line-height: 1.6; margin-bottom: 36px; }
.lead.muted { color: var(--muted); }

/* ---------- Accueil ---------- */
.hero { max-width: 1120px; margin: 0 auto; padding: 28px 24px 36px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 54px; align-items: center; }
.hero .surtitre { margin: 0 0 14px; font-family: var(--sans); font-size: 19px; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.hero h1 { margin: 0 0 18px; font-family: var(--serif); font-size: clamp(48px, 6.2vw, 76px); line-height: .98; font-weight: 400; letter-spacing: -.03em; color: var(--navy); text-wrap: balance; }
.hero h1 .accent { color: var(--accent); }
.hero .accroche { margin: 0 0 20px; max-width: 700px; font-family: var(--serif); font-size: 24px; line-height: 1.42; font-style: italic; color: #b07e45; text-wrap: pretty; }
.hero .texte { margin: 0 0 10px; max-width: 720px; font-family: var(--sans); font-size: 17px; line-height: 1.72; color: var(--text-2); text-wrap: pretty; }
.hero .tiret { padding-left: 18px; text-indent: -18px; }
.lien-accent { color: var(--accent); font-weight: 700; }
.hero-photo { aspect-ratio: 4/3; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 18px 44px rgba(23, 34, 56, .16); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.organise-par { margin: 14px 0 10px; text-align: center; font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #6a6f78; font-weight: 700; }
.logos { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 2px 8px 0; }
.logos a { display: flex; align-items: center; justify-content: center; width: 30%; min-width: 90px; height: 74px; background: #fff; border-radius: 12px; padding: 8px 12px; text-decoration: none; }
.logos img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.logo-missing { font-family: var(--sans); font-size: 11px; line-height: 1.3; color: var(--placeholder); text-align: center; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; gap: 32px; } }

.assos-section { max-width: 1120px; margin: 0 auto; padding: 4px 24px 52px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.section-head h2 { font-size: 30px; font-weight: 500; letter-spacing: -.01em; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.card:hover { border-color: var(--primary); color: var(--text); }
.card-img { aspect-ratio: 3/2; width: 100%; object-fit: cover; display: block; background: #f3efe8; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body strong { font-size: 20px; font-weight: 600; line-height: 1.2; }
.card-body .short { font-size: 15px; line-height: 1.5; color: var(--muted); flex: 1; }
.card-body .cta { font-size: 14px; color: var(--primary); font-weight: 600; }

/* Emplacements d'image pas encore fournis */
.placeholder { background: repeating-linear-gradient(135deg, #e6e0d6 0 12px, #efeae2 12px 24px); display: flex; align-items: center; justify-content: center; color: var(--placeholder); font-family: ui-monospace, monospace; font-size: 12px; text-align: center; padding: 12px; }
.todo { border: 1px dashed var(--field-border); border-radius: 10px; padding: 22px 20px; color: var(--placeholder); font-family: ui-monospace, monospace; font-size: 13px; line-height: 1.6; }

/* ---------- Formulaires ---------- */
.narrow { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }
.form-card { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.form-card label.field { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.form-card label.field .hint { font-weight: 400; color: var(--muted); }
.input { width: 100%; padding: 12px 14px; border: 1px solid var(--field-border); border-radius: 8px; font-size: 16px; background: #fff; color: var(--text); font-weight: 400; }
.input.prefilled { background: var(--prefilled); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.sources { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.sources legend { font-size: 15px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.sources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); margin: 0; }
.form-card .btn { justify-self: start; }
.errors { background: #fbeaea; border: 1px solid #e3b4b4; color: #8a2424; border-radius: 8px; padding: 12px 14px; font-size: 15px; }
.errors p + p { margin-top: 4px; }
.source-autre { margin-top: 4px; }
.via { display: flex; align-items: center; gap: 14px; margin: -14px 0 22px; font-size: 16px; color: var(--text-2); }
.via-logo { display: flex; align-items: center; justify-content: center; width: 84px; height: 56px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 6px; flex: 0 0 auto; }
.via-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.form-card label.field.source-autre[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Confirmations ---------- */
.merci { max-width: 640px; margin: 0 auto; padding: 96px 24px 120px; text-align: center; }
.merci h1 { margin-bottom: 24px; font-size: clamp(44px, 7vw, 72px); font-weight: 500; letter-spacing: -.02em; color: var(--primary); }
.merci p { font-size: 20px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.merci .signature { margin: 6px 0 40px; font-size: 18px; font-style: italic; color: var(--muted); }
.merci > a { font-size: 15px; }

/* ---------- Annuaire ---------- */
.annuaire { max-width: 1120px; margin: 0 auto; padding: 40px 24px 72px; }
.annuaire-list { display: grid; gap: 16px; }
.annuaire-item { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px 28px; }
.annuaire-item .name { display: grid; gap: 10px; }
.annuaire-item .name a { font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1.12; text-decoration: none; color: var(--navy); letter-spacing: -.02em; }
.annuaire-item .name a:hover { color: var(--accent); }
.annuaire-item .name p { font-family: var(--sans); font-size: 16px; line-height: 1.65; color: var(--text-2); }
.annuaire-item .contacts { gap: 9px; align-content: start; font-family: var(--sans); line-height: 1.5; }
.annuaire-item .contacts .site { font-weight: 600; }
.annuaire-btns { display: grid; gap: 10px; margin-top: 6px; }
.contacts { display: grid; gap: 6px; font-size: 15px; }
.contacts .site { font-size: 14px; }
.contacts .todo { padding: 8px 10px; border-radius: 8px; font-size: 12px; }

/* ---------- Page association ---------- */
.asso { max-width: 1120px; margin: 0 auto; padding: 32px 24px 80px; }
.asso h1 { margin-bottom: 8px; font-size: clamp(32px, 4.5vw, 50px); font-weight: 500; line-height: 1.05; letter-spacing: -.02em; }
.asso .accroche { margin-bottom: 20px; font-size: 18px; line-height: 1.45; font-style: italic; color: var(--text-2); }
/* Titres des pages de promesse : assez petits pour tenir sur une ligne */
.asso h1.titre-promesse { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -.015em; margin-bottom: 8px; }
.asso-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 36px; align-items: start; }
.asso-col { display: grid; gap: 24px; align-content: start; }
.asso-visual { position: relative; aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; background: #f3efe8; }
.asso-photo { width: 100%; height: 100%; object-fit: cover; display: block; font-size: 13px; padding: 20px; }
img.asso-photo { padding: 0; }
.asso-photo.placeholder { display: flex; }
.asso-logo { position: absolute; left: 18px; bottom: 18px; width: 120px; height: 92px; border-radius: 12px; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; padding: 8px; }
.asso-logo.right { left: auto; right: 18px; }
.asso-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

.panel { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.panel-projet { background: linear-gradient(135deg, #eef4fa 0%, #fff 62%); border-color: #d8e3ee; }
.panel summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 22px; font-size: 21px; font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; }
.panel summary::-webkit-details-marker { display: none; }
.panel .num { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-right: 10px; }
.panel .num.accent { color: var(--accent); }
.panel .chevron { font-family: var(--sans); font-size: 22px; color: var(--primary); transition: transform .2s; }
.panel[open] .chevron { transform: rotate(180deg); }
.panel-body { padding: 0 24px 24px; }
.panel-body p { margin: 10px 0 0; font-size: 16px; line-height: 1.65; color: var(--text-2); text-wrap: pretty; }
.panel-body p:first-child { margin-top: 7px; }
.panel-body .todo { margin-top: 4px; }
.panel-body .todo.tall { min-height: 180px; padding: 28px 20px; }
.stats { margin: 20px 0 0; padding: 16px 0 0 20px; border-top: 1px solid #ece7de; display: grid; gap: 10px; color: var(--text-2); font-size: 15px; line-height: 1.45; }
.stats strong { color: var(--primary); font-weight: 700; }
.panel-body .report { margin-top: 14px; font-size: 15px; }
.panel-body .report a { font-weight: 600; }
.funding { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 10px; color: var(--text-2); font-size: 16px; line-height: 1.55; }
.contacts-card { padding: 24px 26px; }
.contacts-card h2 { margin-bottom: 12px; font-size: 24px; font-weight: 600; }
.contacts-card .contacts { font-size: 16px; }

.progress-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.progress-top .raised { font-size: 32px; font-weight: 600; color: var(--primary); line-height: 1; }
.progress-top .target, .progress-count { font-size: 14px; color: var(--muted); }
.progress { height: 8px; background: var(--bar-bg); border-radius: 999px; margin: 12px 0 8px; overflow: hidden; }
.progress div { height: 100%; background: var(--primary); border-radius: 999px; }
.amount-label { font-size: 15px; font-weight: 600; }
.chips { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.chip { padding: 13px 8px; border-radius: 8px; border: 1px solid var(--field-border); background: #fff; color: var(--text); font-size: 16px; font-weight: 600; cursor: pointer; }
.chip.on { border-color: var(--primary); background: var(--primary); color: #fff; }
.euro { position: relative; }
.euro .input { padding-right: 40px; }
.euro span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.form-card .btn.full { justify-self: stretch; }
.repartition { display: grid; gap: 12px; margin-top: 4px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 15px; border: 1px solid var(--field-border); border-radius: 10px; background: #fff; cursor: pointer; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.choice input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--primary); flex: 0 0 auto; }

.simulateur { background: var(--prefilled); border: 1px solid #dfe5eb; border-radius: 12px; overflow: hidden; font-family: var(--sans); }
.simulateur[hidden] { display: none; }
.simulateur-tabs { display: flex; border-bottom: 1px solid #dfe5eb; }
.simulateur-tabs button { flex: 1; padding: 12px 14px; border: 0; border-bottom: 3px solid transparent; background: #fff; color: var(--muted); font-size: 15px; font-weight: 700; cursor: pointer; font-family: var(--sans); }
.simulateur-tabs button.on { border-bottom-color: var(--accent); background: #fff7f3; color: var(--primary); }
.simulateur-body { padding: 18px; display: grid; gap: 9px; }
.simulateur-kicker { font-size: 12px; letter-spacing: .10em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.simulateur-result { font-size: 17px; line-height: 1.5; color: var(--text-2); }
.simulateur-result .net { color: var(--primary); }
.simulateur-note { font-size: 14px; line-height: 1.5; color: var(--muted); }
.simulateur-small { font-size: 13px; line-height: 1.5; color: var(--placeholder); }

/* Étape 2 et don réparti */
.eyebrow.sans { font-family: var(--sans); }
.suite-intro { max-width: 900px; margin: 0 0 30px; color: var(--text-2); }
.suite-intro p { margin: 0 0 10px; font-size: 19px; line-height: 1.6; }
.bold-labels label.field, .bold-labels .sources legend { font-weight: 700; }
.logos-box { height: 200px; border-radius: 16px; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; gap: 18px; padding: 30px; }
.logos-box > div { flex: 1; display: flex; align-items: center; justify-content: center; min-width: 0; }
.logos-box img { max-width: 100%; max-height: 105px; object-fit: contain; display: block; }
.texte-card { padding: 24px 26px; }
.texte-card h2 { margin-bottom: 16px; font-size: 24px; font-weight: 600; }
.texte-card p { margin: 0 0 14px; font-size: 16px; line-height: 1.65; color: var(--text-2); }

.merci-don { max-width: 720px; margin: 0 auto; text-align: center; padding: 40px 0 24px; }
.merci-don h1 { margin-bottom: 20px; font-size: clamp(48px, 8vw, 84px); color: var(--primary); }
.merci-don p { margin-bottom: 12px; font-size: 20px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.merci-don p.small { margin-bottom: 32px; font-size: 18px; }

/* ---------- Écran collecte ---------- */
.collecte { min-height: 100vh; background: var(--primary); color: #fff; padding: 48px 40px 40px; display: flex; flex-direction: column; }
.collecte-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.collecte .kicker { margin-bottom: 8px; font-size: clamp(14px, 1.2vw, 18px); letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.collecte .total-label { font-size: clamp(16px, 1.6vw, 24px); opacity: .7; }
.collecte .total { font-size: clamp(64px, 9vw, 140px); font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.live { display: flex; align-items: center; gap: 10px; font-size: 14px; opacity: .75; }
.live i { width: 10px; height: 10px; border-radius: 50%; background: #9fd2a8; animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.bars { flex: 1; display: grid; grid-template-columns: repeat(var(--nb-assos, 3), minmax(0, 1fr)); gap: clamp(12px, 3vw, 40px); align-items: end; margin-top: 40px; min-height: 360px; }
.bar { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; text-align: center; gap: 12px; }
.bar .amount { font-size: clamp(24px, 3vw, 44px); font-weight: 600; line-height: 1; }
.bar .fill { min-height: 8px; background: rgba(255, 255, 255, .92); border-radius: 10px 10px 0 0; transition: height .8s; }
.bar .legend { border-top: 1px solid rgba(255, 255, 255, .3); padding-top: 12px; }
.bar .legend strong { display: block; font-size: clamp(14px, 1.5vw, 22px); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.bar .legend span { font-size: clamp(12px, 1.1vw, 16px); opacity: .7; }
.collecte-links { display: flex; justify-content: flex-end; gap: 18px; margin-top: 24px; font-size: 12px; }
.collecte-links a { color: #fff; opacity: .4; text-decoration: none; }

/* ---------- Admin ---------- */
.admin { max-width: 1400px; margin: 0 auto; padding: 40px 24px 80px; }
.admin h2 { margin: 40px 0 14px; font-size: 24px; font-weight: 600; }
.admin-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-light { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-light:hover { background: var(--bar-bg); color: var(--primary); }
.btn-danger { background: #a33; }
.btn-danger:hover { background: #822; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--bg); font-weight: 600; white-space: nowrap; }
td.num { text-align: right; white-space: nowrap; }
.link-btn { background: none; border: 0; color: #a33; cursor: pointer; font-size: 13px; padding: 0; text-decoration: underline; }
.notice { background: #eaf4ec; border: 1px solid #b7d9bf; border-radius: 8px; padding: 12px 14px; margin-top: 16px; }
