:root {
  --blue: #2E48D4;
  --blue-dark: #1F33A3;
  --blue-soft: #E9EDFF;
  --sun: #FFC53D;
  --ink: #141833;
  --muted: #5E647A;
  --bg: #F4F5FA;
  --card: #FFFFFF;
  --border: #E3E6F0;
  --red: #C8323C;
  --red-soft: #FDECEE;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
a { color: var(--blue); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 2px; border-radius: 6px; }
.hero :focus-visible { outline-color: var(--sun); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: #fff; color: var(--blue-dark); font-weight: 800; padding: 12px 18px; border-radius: 12px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 620px; margin: 0 auto; padding: 0 16px; }

/* ---- En-tête ---- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(800px 400px at 85% -10%, #4660F0 0%, var(--blue) 45%, var(--blue-dark) 100%); border-radius: 0 0 36px 36px; padding: 18px 0 88px; }
.hero.small { padding-bottom: 72px; }
.hero::before { content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: var(--sun); top: -120px; right: -90px; }
.hero .wrap { position: relative; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 800; font-size: 16px; opacity: .92; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.hero h1 { font-size: clamp(28px, 6vw, 40px); font-weight: 800; }
.hero > .wrap > h1 { margin-top: 28px; }
.org { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.avatar { flex: none; width: 60px; height: 60px; border-radius: 18px; background: #fff; color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 26px; }
.place { margin: 4px 0 0; opacity: .85; font-weight: 600; }
.object { margin: 18px 0 0; font-size: 17px; opacity: .92; max-width: 540px; }

/* ---- Carte et formulaire ---- */
main { margin-top: -56px; position: relative; padding-bottom: 32px; }
.card { background: var(--card); border-radius: 24px; padding: 24px 20px; box-shadow: 0 16px 40px rgba(27, 37, 89, .1); display: grid; gap: 22px; }
.card.center { text-align: center; justify-items: center; gap: 12px; }
.card.center h2 { font-size: 26px; }
.card.center p { margin: 0; color: var(--muted); font-size: 17px; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
legend { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 10px; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--border); border-radius: 16px; padding: 14px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.choice input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.choice span { display: grid; gap: 4px; min-width: 0; }
.choice small { color: var(--muted); font-size: 13.5px; }
.progress { display: block; height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; margin-top: 4px; }
.progress i { display: block; height: 100%; background: var(--sun); border-radius: 999px; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.amount { position: relative; }
.amount input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.amount span { display: grid; place-items: center; height: 58px; border: 1.5px solid var(--border); border-radius: 14px; font-weight: 800; font-size: 18px; background: #fff; }
.amount input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.amount input:focus-visible + span { outline: 3px solid var(--blue-dark); outline-offset: 2px; }
.other, .field { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
input[type="text"], input:not([type]), input[type="search"] { font: inherit; font-size: 16px; color: var(--ink); border: 1.5px solid var(--border); border-radius: 14px; padding: 12px 14px; min-height: 50px; width: 100%; background: #fff; }
input:not([type]):focus, input[type="search"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.btn { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 24px; border: 0; border-radius: 16px; background: var(--blue); color: #fff; font: inherit; font-weight: 800; font-size: 17px; text-decoration: none; cursor: pointer; width: 100%; }
.btn:hover { background: var(--blue-dark); }
.btn:disabled { opacity: .7; cursor: default; }
.card.center .btn { margin-top: 10px; }
.secure { margin: -8px 0 0; display: flex; gap: 6px; align-items: center; justify-content: center; text-align: center; font-size: 13px; color: var(--muted); }
.error { margin: 0; background: var(--red-soft); color: var(--red); border-radius: 12px; padding: 12px 14px; font-weight: 600; }

/* ---- Annuaire ---- */
.search { margin-bottom: 14px; background: var(--card); padding: 16px; border-radius: 18px; box-shadow: 0 10px 30px rgba(27, 37, 89, .08); }
.orgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.org-card { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1.5px solid var(--border); border-radius: 18px; padding: 16px; text-decoration: none; color: var(--ink); box-shadow: 0 6px 20px rgba(27, 37, 89, .06); }
.org-card:hover { border-color: var(--blue); }
.org-card .avatar { width: 48px; height: 48px; border-radius: 14px; background: var(--blue-soft); font-size: 20px; }
.org-card span { display: grid; gap: 2px; min-width: 0; }
.org-card small { color: var(--muted); font-size: 13.5px; }
.org-card .obj { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 8px 16px 32px; }
.foot a { color: var(--muted); }
@media (max-width: 420px) {
  .amounts { grid-template-columns: repeat(2, 1fr); }
}
