/*
VOICE   chaleureuse et sobre : une communauté qui fait grandir des projets de Torah.
IDEA    un jardin : chaque projet est une jeune pousse, présentée sur son sachet de graines.
PICTURE le carré de jardin du haut de page, où chaque plante grandit avec ses soutiens.
COLOUR  vert feuillage, jaune soleil, rouge grenade ; TYPE Fredoka, Assistant, Frank Ruhl Libre.
LAYOUT  bandeaux pleine largeur, contenu à 1200 px, colonne de soutien à droite sur ordinateur.
*/
@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Assistant"; src: url("/fonts/assistant.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Frank Ruhl Libre"; src: url("/fonts/frank-ruhl-libre.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: light-dark(#ffffff, #0b1913);
  --ink: light-dark(#14291f, #e5efe8);
  --muted: light-dark(#4b6155, #a8bdb0);
  --line: light-dark(#d9e6dd, #24392e);
  --paper: light-dark(#ffffff, #11231a);
  --soft: light-dark(#f1f7ee, #0f2118);
  --leaf: light-dark(#1e6b43, #63c286);
  --leaf-ink: light-dark(#ffffff, #07140d);
  --hero: light-dark(#14502f, #08241a);
  --hero-2: light-dark(#0f4126, #061b13);
  --pom: light-dark(#cf1f3c, #ff5d72);
  --pom-ink: light-dark(#ffffff, #1a0408);
  --sun: #f6c445;
  --sun-ink: #2a1f00;
  --soil: light-dark(#5b3b22, #2f2014);
  --soil-2: light-dark(#4a2f1a, #241810);
  --focus: light-dark(#1e6b43, #8fe0aa);
  --shadow: 0 1px 0 light-dark(rgba(20, 41, 31, 0.05), rgba(0, 0, 0, 0.3)), 0 18px 40px -24px light-dark(rgba(20, 41, 31, 0.45), rgba(0, 0, 0, 0.8));
  --display: "Fredoka", "Assistant", system-ui, sans-serif;
  --text: "Assistant", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hebrew: "Frank Ruhl Libre", "David", "Times New Roman", serif;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 450 17px/1.6 var(--text); overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: var(--leaf); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.he { font-family: var(--hebrew); direction: rtl; unicode-bidi: isolate; }
.wrap { width: min(1200px, 100% - 2 * max(5vw, 16px)); margin-inline: auto; }
.band { padding-block: clamp(40px, 6vw, 88px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
h1 { font-size: clamp(36px, 5vw, 52px); }
h2 { font-size: clamp(28px, 3.4vw, 34px); }
h3 { font-size: 22px; }
h4 { font-size: 19px; }
p { margin: 0; }
.small { font-size: 14.5px; color: var(--muted); }
.lede { font-size: 19px; color: var(--muted); max-width: 60ch; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font: 600 17px/1 var(--display); text-decoration: none; cursor: pointer; background: var(--leaf); color: var(--leaf-ink); white-space: nowrap; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; filter: none; transform: none; }
.btn-pom { background: var(--pom); color: var(--pom-ink); }
.btn-sun { background: var(--sun); color: var(--sun-ink); }
.btn-ghost { background: transparent; color: var(--leaf); border-color: currentColor; }
.btn-quiet { background: var(--soft); color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 15.5px; }
.btn-block { width: 100%; }
.linkish { background: none; border: 0; padding: 0; color: var(--leaf); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in oklab, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-inline-end: auto; }
.brand svg { width: 34px; height: 34px; }
.brand b { font: 600 23px/1 var(--display); }
.brand .he { font-size: 17px; color: var(--muted); padding-top: 3px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--leaf); }
.demo-note { background: var(--sun); color: var(--sun-ink); font-size: 14.5px; text-align: center; padding: 8px 16px; }

/* ---------- Héros : le jardin ---------- */
.hero { position: relative; background: var(--hero); color: #fff; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; width: 150px; height: 150px; right: max(4vw, 24px); top: 34px; border-radius: 50%;
  background: light-dark(var(--sun), #e8eed9); box-shadow: 0 0 0 26px light-dark(rgba(246, 196, 69, 0.16), rgba(232, 238, 217, 0.07)), 0 0 0 58px light-dark(rgba(246, 196, 69, 0.07), rgba(232, 238, 217, 0.03)); }
.hero-text { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.8fr); gap: 32px 56px; align-items: end; padding-top: clamp(36px, 6vw, 72px); }
.hero h1 { color: #fff; max-width: 21ch; }
.hero .lede { color: rgba(255, 255, 255, 0.86); margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; margin-top: 28px; }
.hero-actions .linkish { color: #fff; font-weight: 600; }
.verse { border-inline-start: 3px solid var(--sun); padding: 4px 0 4px 20px; }
.verse .he { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.35; color: var(--sun); }
.verse p:not(.he) { color: rgba(255, 255, 255, 0.86); margin-top: 6px; }
.verse .small { color: rgba(255, 255, 255, 0.66); }

.garden { margin-top: clamp(28px, 4vw, 48px); }
.beds { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 8px; align-items: end; }
.bed { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #fff; }
.bed svg { width: min(100%, 150px); height: auto; overflow: visible; }
.soil { position: relative; background: linear-gradient(var(--soil), var(--soil-2)); border-radius: 18px 18px 0 0; margin-top: -10px; padding: 14px 0 18px; }
.soil::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0.35;
  background-image: radial-gradient(circle at 20% 40%, #7a5536 0 2px, transparent 3px), radial-gradient(circle at 70% 70%, #2d1c0f 0 1.5px, transparent 2.5px);
  background-size: 46px 30px, 34px 26px; }
.labels { position: relative; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 8px; text-align: center; }
.labels a { color: #fff; text-decoration: none; padding: 4px 6px; border-radius: 10px; }
.labels a:hover { background: rgba(255, 255, 255, 0.08); }
.labels b { display: block; font: 600 17px/1.2 var(--display); }
.labels span { display: block; color: var(--sun); font-weight: 700; font-size: 15px; }
.labels .soon { color: rgba(255, 255, 255, 0.7); font-weight: 600; }
.harvest { background: var(--soil-2); color: rgba(255, 255, 255, 0.86); text-align: center; padding: 0 16px 22px; font-size: 16px; }
.harvest b { color: #fff; }

.grow { transform-box: fill-box; transform-origin: 50% 100%; animation: grow 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms) both; }
@keyframes grow { from { transform: scale(0.55, 0.04); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
.bloom { transform-box: fill-box; transform-origin: 50% 50%; animation: bloom 0.9s cubic-bezier(0.2, 1.4, 0.4, 1) 0.15s both; }
@keyframes bloom { from { transform: scale(0.1) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .grow, .bloom { animation: none; } }

/* Couleurs des plantes et des motifs */
.st-stem { stroke: #6cbf5a; }
.st-shadow { fill: rgba(0, 0, 0, 0.28); }
.st-rib { stroke: rgba(255, 255, 255, 0.45); }
.m-deep { fill: var(--deep-c); }
.m-deep-s { stroke: var(--deep-c); }
.m-pom { fill: var(--pom); }
.m-sun { fill: var(--sun); }
.m-paper { fill: light-dark(#ffffff, #1b3127); }
.m-line { fill: color-mix(in oklab, var(--deep-c) 55%, transparent); }
.m-faint { fill: color-mix(in oklab, var(--deep-c) 22%, transparent); }
.m-white { fill: #fff; }
.m-text { fill: #fff; font-family: var(--hebrew); font-weight: 700; }
.m-text-deep { fill: var(--deep-c); font-family: var(--hebrew); font-weight: 700; }

/* ---------- Sachets de graines (cartes projet) ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 36px; }
.section-head p { max-width: 58ch; color: var(--muted); }
.packets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 262px), 1fr)); gap: 40px 24px; }
.packet { --deep-c: light-dark(var(--deep), color-mix(in oklab, var(--deep) 45%, #fff)); position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px 4px 12px 12px; box-shadow: var(--shadow); }
.packet-art { position: relative; display: block; height: 186px; margin: -9px -1px 0; padding-top: 9px;
  background: light-dark(var(--tint), color-mix(in oklab, var(--tint) 12%, #0f2018));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='9'%3E%3Cpath d='M0 9 9 0l9 9z'/%3E%3C/svg%3E") 0 0 / 18px 9px repeat-x, linear-gradient(#000 0 0) 0 9px / 100% calc(100% - 9px) no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='9'%3E%3Cpath d='M0 9 9 0l9 9z'/%3E%3C/svg%3E") 0 0 / 18px 9px repeat-x, linear-gradient(#000 0 0) 0 9px / 100% calc(100% - 9px) no-repeat; }
.packet-art svg { width: 100%; height: 100%; }
.chip { display: inline-block; font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--paper); color: var(--deep-c, var(--leaf)); }
.packet-art .chip { position: absolute; left: 14px; top: 20px; }
.packet-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.packet-body h3 a { color: inherit; text-decoration: none; }
.packet-body h3 a:hover { text-decoration: underline; }
.packet-body .he { font-size: 19px; color: var(--muted); margin-top: -6px; text-align: left; }
.packet-body .tag { color: var(--muted); }
.by { font-size: 14.5px; color: var(--muted); }
.packet .foot { margin-top: auto; display: grid; gap: 14px; padding-top: 6px; }
.meter { height: 10px; border-radius: 999px; background: color-mix(in oklab, var(--line) 80%, transparent); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: var(--leaf); }
.meter.full i { background: var(--pom); }
.facts { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; }
.facts b { font: 600 22px/1.1 var(--display); }
.facts .small { white-space: nowrap; }
.soon-row { display: grid; gap: 14px; margin-top: 44px; }
.soon-card { --deep-c: light-dark(var(--deep), color-mix(in oklab, var(--deep) 45%, #fff)); display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; max-width: 620px;
  padding: 10px; border: 1.5px dashed var(--line); border-radius: 16px; }
.soon-card b { font: 600 19px/1.2 var(--display); }
.soon-card .he { font-size: 17px; color: var(--muted); }
.soon-art { height: 72px; border-radius: 10px; background: light-dark(var(--tint), color-mix(in oklab, var(--tint) 12%, #0f2018)); }
.soon-art svg { width: 100%; height: 100%; }

/* ---------- Comment ça marche ---------- */
.how { background: var(--soft); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(s); font: 600 52px/1 var(--display); color: var(--leaf); }
.steps p { color: var(--muted); }
.owners { background: var(--sun); color: var(--sun-ink); }
.owners .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 24px 48px; align-items: center; }
.owners p { max-width: 62ch; margin-top: 12px; }
.owners .btn { background: #14291f; color: #fff; }
.faq { max-width: 800px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 600 19px/1.35 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 26px; color: var(--leaf); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 66ch; }

/* ---------- Pied de page ---------- */
.foot-site { background: var(--hero-2); color: rgba(255, 255, 255, 0.82); padding-block: 44px; font-size: 15.5px; }
.foot-site .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.foot-site a { color: #fff; }
.foot-site .brand { color: #fff; }
.foot-site .brand .he { color: rgba(255, 255, 255, 0.7); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }

/* ---------- Page projet ---------- */
.p-band { --deep-c: light-dark(var(--deep), color-mix(in oklab, var(--deep) 45%, #fff)); position: relative; overflow: hidden; background: light-dark(var(--tint), color-mix(in oklab, var(--tint) 12%, #0f2018)); }
.p-band .wrap { position: relative; min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; padding-block: 18px 0; }
.p-band .watermark { position: absolute; inset-inline-end: -10px; bottom: -40px; font-size: clamp(110px, 16vw, 210px); line-height: 1; color: var(--deep-c); opacity: 0.11; pointer-events: none; white-space: nowrap; }
.p-band .art { width: min(560px, 100%); height: 230px; margin-inline: auto; }
.p-band .art svg { width: 100%; height: 100%; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--deep-c); text-decoration: none; min-height: 44px; }
.back:hover { text-decoration: underline; }
.p-grid { --deep-c: light-dark(var(--deep), color-mix(in oklab, var(--deep) 45%, #fff)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  grid-template-areas: "title aside" "story aside"; gap: 0 48px; align-items: start; padding-block: 36px 72px; }
.p-title { grid-area: title; display: grid; gap: 10px; }
.p-title .chip { justify-self: start; background: light-dark(var(--tint), color-mix(in oklab, var(--tint) 16%, #0f2018)); }
.p-title .he { font-size: 26px; color: var(--muted); text-align: left; }
.p-title .lede { color: var(--ink); }
.story { grid-area: story; display: grid; gap: 30px; margin-top: 40px; }
.story section { display: grid; gap: 12px; }
.story p { max-width: 68ch; }
.budget { display: grid; gap: 12px; }
.budget-row { display: grid; gap: 6px; }
.budget-row div { display: flex; justify-content: space-between; gap: 12px; }
.budget-row b { font-family: var(--display); font-weight: 600; }
.budget .meter i { background: var(--deep-c); }
.wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); gap: 10px; }
.story section > .btn { margin-top: 4px; }
.wall li { background: var(--soft); border-radius: 12px; padding: 12px 14px; }
.wall b { display: block; font-family: var(--display); font-weight: 600; }
.wall span { display: block; font-size: 14.5px; color: var(--muted); }
.wall em { display: block; font-style: normal; font-size: 14.5px; margin-top: 2px; }
.empty { color: var(--muted); background: var(--soft); border-radius: 12px; padding: 16px; }
.share { display: flex; flex-wrap: wrap; gap: 12px; }

.support { grid-area: aside; align-self: start; position: sticky; top: 88px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 22px; display: grid; gap: 16px; }
.raised { display: grid; grid-template-columns: minmax(0, 1fr) 86px; gap: 12px; align-items: end; }
.raised b { display: block; font: 600 40px/1 var(--display); margin-bottom: 6px; }
.raised .small b { display: inline; font: inherit; color: var(--ink); }
.raised svg { width: 86px; height: auto; }
.tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tier { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 4px 14px; width: 100%; text-align: left; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; }
.tier:hover:not([disabled]) { border-color: var(--deep-c); }
.tier .amt { grid-row: span 3; font: 600 23px/1.1 var(--display); color: var(--deep-c); white-space: nowrap; }
.tier .t { font: 600 17.5px/1.3 var(--display); }
.tier .d { font-size: 15.5px; color: var(--muted); line-height: 1.45; }
.tier .left { font-size: 14.5px; font-weight: 700; color: var(--pom); }
.tier[disabled] { cursor: not-allowed; opacity: 0.55; }
.custom { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--soft); }
.custom-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.closed { background: var(--soft); border-radius: 14px; padding: 14px; color: var(--muted); }
.safe { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.safe svg { flex: none; width: 18px; height: 18px; margin-top: 3px; }

/* ---------- Formulaires ---------- */
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 700; }
.field .hint { font-size: 14.5px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="url"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font-size: 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in oklab, var(--focus) 28%, transparent); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--leaf); flex: none; }
.money { position: relative; }
.money input { padding-right: 34px; }
.money::after { content: "€"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.err { color: var(--pom); font-weight: 700; }
.form { display: grid; gap: 18px; }
.form-page { max-width: 760px; }
.form-page fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
.form-page legend { font: 600 22px/1.2 var(--display); padding: 0; margin-bottom: 4px; }
.form-page .sep { border: 0; border-top: 1px solid var(--line); margin: 14px 0; width: 100%; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tier-edit { display: grid; grid-template-columns: 120px minmax(0, 1fr) 110px 44px; gap: 10px; align-items: end; padding: 14px; border-radius: 14px; background: var(--soft); }
.tier-edit .wide { grid-column: 1 / -1; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; font-size: 20px; line-height: 1; }
.radio-cards { display: grid; gap: 10px; }
.radio-cards label { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; }
.radio-cards label:has(input:checked) { border-color: var(--leaf); background: var(--soft); }
.radio-cards input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--leaf); flex: none; }
.info { display: grid; gap: 10px; background: var(--soft); border-radius: 16px; padding: 18px 20px; }
.info ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.copy-row input { font-size: 15px; }

/* ---------- Boîte de dialogue du soutien ---------- */
dialog { border: 0; padding: 0; width: min(580px, 100vw - 24px); max-height: min(92vh, 980px); border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5); }
dialog::backdrop { background: rgba(8, 30, 20, 0.55); backdrop-filter: blur(3px); }
.dlg-head { position: sticky; top: 0; z-index: 2; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 16px 14px 22px; background: var(--paper); border-bottom: 1px solid var(--line); }
.dlg-head p { font-size: 14.5px; color: var(--muted); }
.dlg-head h2 { font-size: 22px; }
.dlg-body { padding: 20px 22px 24px; display: grid; gap: 18px; }
.close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--soft); cursor: pointer; font-size: 24px; line-height: 1; flex: none; }
.summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--soft); }
.summary b { font: 600 24px/1 var(--display); white-space: nowrap; }
#pay-mount { min-height: 420px; }
#donate { --deep-c: light-dark(var(--deep, #1e6b43), color-mix(in oklab, var(--deep, #1e6b43) 45%, #fff)); }
.demo-card { display: grid; gap: 12px; padding: 18px; border-radius: 16px; border: 1.5px dashed var(--line); }
.demo-card .two input { letter-spacing: 0.04em; }
.thanks { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 8px 0; }
.thanks svg { width: 150px; height: 150px; }
.thanks h3 { font-size: 30px; }
.thanks p { max-width: 44ch; color: var(--muted); }
.thanks .share { justify-content: center; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--leaf); animation: spin 0.8s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; background: #14291f; color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }

/* ---------- Administration ---------- */
.admin { display: grid; gap: 40px; padding-block: 40px 80px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 16px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.status-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.status-list li { display: flex; gap: 10px; align-items: baseline; }
.ok { color: var(--leaf); font-weight: 800; }
.ko { color: var(--pom); font-weight: 800; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; color: var(--muted); font-size: 14.5px; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sub-card { border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; gap: 10px; }
.sub-card dl { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 15.5px; }
.sub-card dt { color: var(--muted); }
.sub-card dd { margin: 0; white-space: pre-line; }
.badge { display: inline-block; font-size: 13.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.badge.green { background: color-mix(in oklab, var(--leaf) 16%, transparent); color: var(--leaf); }
.badge.red { background: color-mix(in oklab, var(--pom) 14%, transparent); color: var(--pom); }
dialog.wide { width: min(940px, 100vw - 24px); }
.editor fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.editor legend { font: 600 22px/1.2 var(--display); padding: 0; margin-bottom: 4px; }
.editor .sep { border: 0; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }
.reps { display: grid; gap: 12px; }
.reps:empty { display: none; }
.rep { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 10px 12px; align-items: end; padding: 14px; border-radius: 14px; background: var(--soft); }
.rep .wide { grid-column: 1 / -1; }
.rep-line { grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr) 44px; }
.rep-tier { grid-template-columns: 120px minmax(0, 1fr) 110px 44px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.money.pct::after { content: "%"; }
input[type="color"] { width: 100%; min-height: 48px; padding: 4px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; }
.json { font: 14px/1.5 ui-monospace, "SFMono-Regular", Menlo, monospace; min-height: 420px; white-space: pre; }
.notfound { text-align: center; display: grid; gap: 18px; justify-items: center; padding-block: 90px; }

/* ---------- Petits écrans ---------- */
@media (max-width: 980px) {
  .hero::before { width: 104px; height: 104px; right: -26px; top: -26px; box-shadow: 0 0 0 18px light-dark(rgba(246, 196, 69, 0.16), rgba(232, 238, 217, 0.07)); }
  .hero h1 { max-width: 16ch; }
  .p-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "aside" "story"; row-gap: 28px; }
  .story { margin-top: 12px; }
  .support { position: static; }
  .hero-text { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .owners .wrap { grid-template-columns: minmax(0, 1fr); }
  .two { grid-template-columns: minmax(0, 1fr); }
  .tier-edit { grid-template-columns: 110px minmax(0, 1fr); }
  .rep-tier { grid-template-columns: 100px minmax(0, 1fr) 44px; }
  .rep-tier > .field:nth-of-type(3) { grid-column: 1 / 3; grid-row: 2; }
  .rep-line { grid-template-columns: minmax(0, 1fr) 44px; }
  .rep-line > .field:nth-of-type(2) { grid-column: 1; }
  .tier-edit .lim { grid-column: 1; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .brand .he { display: none; }
  .top .btn { padding: 0 14px; font-size: 15px; }
  .labels b { font-size: 14px; }
  .labels span { font-size: 13.5px; }
  .beds, .labels { gap: 2px; }
  .p-band .art { height: 180px; }
  .raised b { font-size: 34px; }
  .tier { grid-template-columns: 70px minmax(0, 1fr); padding: 12px; }
  .tier .amt { font-size: 20px; }
  dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .dlg-body { padding: 18px 16px 28px; }
  table { font-size: 13.5px; }
  .stack thead { display: none; }
  .stack tr { display: grid; padding-block: 10px; border-bottom: 1px solid var(--line); }
  .stack td { display: flow-root; border: 0; padding: 3px 0; padding-inline-start: 8em; text-align: start; }
  .stack td::before { content: attr(data-l); float: inline-start; width: 7.5em; margin-inline-start: -8em; color: var(--muted); white-space: normal; }
  .stack td:empty { display: none; }
  .sub-card dl { grid-template-columns: minmax(0, 1fr); }
  .sub-card dt { margin-top: 6px; }
}
