/* ==========================================================================
   Barnabé — style
   Ambiance : lumière de l'aube, parchemin chaud, nuit profonde.
   ========================================================================== */

:root {
  --bg: #F6F1E8;
  --bg-glow: #FCE8C8;
  --surface: #FFFCF7;
  --surface-2: #F1E9DC;
  --ink: #1F222B;
  --ink-2: #585B66;
  --ink-3: #8A8B93;
  --line: #E6DCCB;
  --gold: #B67A27;
  --gold-ink: #8C5A14;
  --gold-soft: #F6E4C3;
  --night: #1E2747;
  --btn-bg: #1E2747;
  --btn-ink: #FFFFFF;
  --leaf-1: #5E8F47;
  --leaf-2: #7AAA5A;
  --leaf-3: #477537;
  --bark: #6E4C33;
  --root: #A58566;
  --soil: #D9C7A8;
  --water: #9CC4DB;
  --sun-a: #FBE3B7;
  --sun-b: rgba(251, 227, 183, 0);
  --danger: #B0463A;
  --shadow: 0 1px 2px rgba(60, 40, 10, .05), 0 10px 30px -14px rgba(60, 40, 10, .22);
  --radius: 22px;
  --radius-sm: 14px;
  --font-ui: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-read: 'Literata', Georgia, 'Times New Roman', serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11141B;
    --bg-glow: #2A2215;
    --surface: #1A1E28;
    --surface-2: #232836;
    --ink: #EFEAE1;
    --ink-2: #B0B2BA;
    --ink-3: #80838D;
    --line: #2D3343;
    --gold: #E3AF5E;
    --gold-ink: #F0C67E;
    --gold-soft: #362D1D;
    --btn-bg: #E3AF5E;
    --btn-ink: #1B1407;
    --leaf-1: #6FA553;
    --leaf-2: #8DC06E;
    --leaf-3: #558B41;
    --bark: #A47E5D;
    --root: #7A6249;
    --soil: #3C342A;
    --water: #3B6A87;
    --sun-a: #3A3020;
    --sun-b: rgba(58, 48, 32, 0);
    --danger: #E07A6C;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11141B;
  --bg-glow: #2A2215;
  --surface: #1A1E28;
  --surface-2: #232836;
  --ink: #EFEAE1;
  --ink-2: #B0B2BA;
  --ink-3: #80838D;
  --line: #2D3343;
  --gold: #E3AF5E;
  --gold-ink: #F0C67E;
  --gold-soft: #362D1D;
  --btn-bg: #E3AF5E;
  --btn-ink: #1B1407;
  --leaf-1: #6FA553;
  --leaf-2: #8DC06E;
  --leaf-3: #558B41;
  --bark: #A47E5D;
  --root: #7A6249;
  --soil: #3C342A;
  --water: #3B6A87;
  --sun-a: #3A3020;
  --sun-b: rgba(58, 48, 32, 0);
  --danger: #E07A6C;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -14px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: radial-gradient(900px 420px at 50% -160px, var(--bg-glow), transparent 70%) no-repeat, var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
p { margin: 0 0 .75em; }
h1, h2, h3 { margin: 0; font-weight: 600; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Structure ---------- */
.app { max-width: 680px; margin: 0 auto; padding: 0 16px calc(110px + env(safe-area-inset-bottom)); }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 0 10px;
  margin: 0 -16px; padding-left: 16px; padding-right: 16px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.brand-mark .mark { width: 32px; height: 32px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-weight: 700; color: var(--gold-ink);
}
.view { outline: none; display: flex; flex-direction: column; gap: 18px; padding-top: 6px; animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tabbar {
  position: fixed; z-index: 30;
  left: 50%; transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom));
  width: min(100% - 24px, 540px);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: 26px;
  box-shadow: 0 14px 40px -12px rgba(20, 20, 40, .35);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 2px 6px; border-radius: 20px;
  font-size: 11.5px; font-weight: 500; text-decoration: none; color: var(--ink-3);
  transition: color .2s, background .2s;
}
.tabbar a .ic { width: 22px; height: 22px; }
.tabbar a.active { color: var(--gold-ink); background: var(--gold-soft); }
.is-welcome .topbar, .is-welcome .tabbar { display: none; }
.is-welcome .app { padding: 0; max-width: none; }
.avatar.active { background: var(--gold-soft); border-color: transparent; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.tree-link {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 11px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  text-decoration: none; font-size: 14px; font-weight: 600; color: var(--leaf-3);
}
.tree-link .ic { width: 20px; height: 20px; }
.tree-link.active { background: var(--gold-soft); color: var(--gold-ink); border-color: transparent; }
[hidden] { display: none !important; }

/* ---------- La Bible ---------- */
.search {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px;
  border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--ink-3);
}
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.quick-ref:empty { display: none; }
.resume { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.resume > .ic { margin-left: auto; color: var(--ink-3); }
.resume-ic { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); }
.resume-ic .ic { width: 24px; height: 24px; }
.resume-txt { display: flex; flex-direction: column; }
.resume-txt strong { font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.starts .chip { text-decoration: none; }
.starts .chip strong { color: var(--ink); }
.bible-progress .row-between { flex-wrap: wrap; margin-bottom: 10px; }
.bible-part { display: flex; flex-direction: column; gap: 16px; }
.bible-part .section-title { margin-bottom: 0; }
.group-title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.group-title::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--g); }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 8px; }
.book-tile {
  display: flex; flex-direction: column; gap: 2px; padding: 11px 13px; min-height: 62px; justify-content: center;
  border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line);
  box-shadow: inset 3px 0 0 var(--g); text-decoration: none; color: var(--ink);
  transition: transform .15s, border-color .15s;
}
.book-tile:hover { transform: translateY(-2px); border-color: var(--g); }
.book-tile strong { font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.book-tile .bar { margin-top: 6px; height: 4px; }
.offline-head { display: flex; align-items: flex-start; gap: 14px; }
.offline-head .card-title { margin-bottom: 4px; }
.offline-head p { margin: 0; }
.offline-card .btn { margin-top: 14px; }
.offline-card .bar { margin-top: 14px; }
.offline-card > p { margin: 10px 0 0; }
.offline-card.is-done .resume-ic { background: color-mix(in srgb, var(--leaf-1) 18%, transparent); color: var(--leaf-3); }
.link.quiet { margin-top: 10px; color: var(--ink-3); font-weight: 500; font-size: 13.5px; }
.book-hero .eyebrow { color: var(--ink-2); }
.book-hero .eyebrow::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--g); }

/* ---------- Typographie ---------- */
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.display { font-family: var(--font-display); font-size: clamp(30px, 7vw, 42px); line-height: 1.08; letter-spacing: -.02em; }
.display-sm { font-family: var(--font-display); font-size: 28px; line-height: 1.15; letter-spacing: -.01em; margin-bottom: 8px; }
.lead { font-size: 17px; color: var(--ink-2); margin: 0; }
.muted { color: var(--ink-2); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.gold { color: var(--gold-ink); }
.section-title { font-family: var(--font-display); font-size: 22px; margin: 6px 0 10px; }
.card-title { font-family: var(--font-display); font-size: 20px; line-height: 1.25; margin-bottom: 6px; }
.hero { padding: 8px 2px 0; }
.hero .lead { margin-top: 10px; }
.hero.center { text-align: center; }
.hero.center .eyebrow { justify-content: center; }

/* ---------- Composants ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-between.wrap { flex-wrap: wrap; margin-top: 6px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-soft { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.btn-gold { background: var(--gold-soft); color: var(--gold-ink); border-color: color-mix(in srgb, var(--gold) 35%, transparent); }
.btn-light { background: #FFF8EC; color: #1E2747; }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-big { min-height: 56px; font-size: 16.5px; }
.btn.is-done { background: var(--leaf-1); color: #fff; }
.btn .ic { width: 18px; height: 18px; }
.card .btn { margin-top: 10px; }
.card .row .btn, .card .row-between .btn { margin-top: 0; }

.link { background: none; border: 0; padding: 4px 0; color: var(--gold-ink); font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link .ic { width: 16px; height: 16px; }
.link.danger { color: var(--danger); margin-top: 14px; }
.link.light { color: rgba(255, 248, 236, .8); margin-top: 18px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); text-decoration: none; align-self: flex-start; padding: 4px 0; }
.back .ic { width: 18px; height: 18px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: inline-grid; place-items: center; cursor: pointer; color: var(--ink-2); flex: none; font-weight: 700; font-size: 14px; }
.icon-btn .ic { width: 17px; height: 17px; }
.icon-btn.light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); color: #fff; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; background: color-mix(in srgb, var(--leaf-1) 16%, transparent); color: var(--leaf-3); font-size: 13px; font-weight: 700; white-space: nowrap; }
:root[data-theme="dark"] .badge { color: var(--leaf-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge { color: var(--leaf-2); } }
.badge .ic { width: 15px; height: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 500; cursor: pointer; color: var(--ink-2); }
.chip.on { background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; }

.bar { display: block; height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 8px 0; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), color-mix(in srgb, var(--gold) 60%, #F7D58E)); transition: width .6s ease; }
.bar.big { height: 10px; }

.verse { margin: 0; padding: 14px 18px; border-left: 3px solid var(--gold); background: color-mix(in srgb, var(--gold-soft) 55%, transparent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.verse p { font-family: var(--font-read); font-size: 17px; line-height: 1.6; margin: 0 0 6px; }
.verse cite { font-style: normal; font-size: 13.5px; font-weight: 700; color: var(--gold-ink); }
.verse.small p { font-size: 15px; }
.verse.center { text-align: center; border-left: 0; border-radius: var(--radius-sm); background: transparent; padding: 4px 8px; }
.verse.center p { font-size: 18px; font-style: italic; }
.verse.light { background: rgba(255, 248, 236, .1); border-left-color: #E7B266; text-align: left; margin: 18px 0; }
.verse.light p { color: #FFF8EC; font-size: 16px; }
.verse.light cite { color: #F2CC8A; }

.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.field-title { font-weight: 700; font-size: 14.5px; }
textarea, input[type="text"], input:not([type]), select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg); line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 90px; }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
::placeholder { color: var(--ink-3); }

.empty { text-align: center; padding: 28px 16px; border: 1.5px dashed var(--line); border-radius: var(--radius); }
.empty p { margin: 0 0 4px; }
.care { font-size: 14px; padding: 10px 12px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.care a, .care-card a { color: var(--danger); }

/* ---------- Accueil (première visite) ---------- */
.welcome {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(40px + env(safe-area-inset-top)) 22px calc(40px + env(safe-area-inset-bottom));
  background:
    radial-gradient(700px 380px at 50% 105%, rgba(231, 178, 102, .55), transparent 70%),
    radial-gradient(500px 300px at 85% 0%, rgba(120, 110, 200, .25), transparent 70%),
    linear-gradient(180deg, #121833 0%, #1E2747 55%, #3A3456 100%);
  color: #FFF8EC;
  position: relative; overflow: hidden;
}
.welcome::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(1.2px 1.2px at 20% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 70% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 42% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 88% 34%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 10% 44%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 60% 8%, #fff 50%, transparent 51%);
}
.welcome-inner { width: 100%; max-width: 440px; text-align: center; position: relative; animation: fade .5s ease both; }
.welcome-mark .mark { width: 84px; height: 84px; margin: 0 auto 18px; filter: drop-shadow(0 14px 30px rgba(231, 178, 102, .35)); }
.welcome-title { font-family: var(--font-display); font-size: 48px; letter-spacing: -.02em; line-height: 1.05; }
.welcome-title.sm { font-size: 32px; margin-bottom: 18px; }
.welcome-sub { font-family: var(--font-read); font-style: italic; color: #F2CC8A; margin: 8px 0 22px; }
.welcome-lead { font-size: 17.5px; color: rgba(255, 248, 236, .86); }
.welcome-lead em { font-style: normal; color: #F2CC8A; }
.welcome-kicker { color: #F2CC8A; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12.5px; }
.welcome-pillars { list-style: none; padding: 0; margin: 24px 0 30px; display: flex; justify-content: center; gap: 22px; color: rgba(255, 248, 236, .85); font-weight: 500; }
.welcome-pillars li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; }
.welcome-pillars .ic { width: 26px; height: 26px; color: #F2CC8A; }
.welcome-form { display: flex; flex-direction: column; gap: 12px; }
.welcome-form input { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #FFF8EC; font-size: 18px; text-align: center; padding: 16px; }
.welcome-form input::placeholder { color: rgba(255, 248, 236, .5); }
.welcome-note { font-size: 13.5px; color: rgba(255, 248, 236, .6); margin-top: 16px; }
.intentions { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.intention { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .07); color: #FFF8EC; cursor: pointer; transition: background .2s, border-color .2s; }
.intention:hover, .intention:focus-visible { background: rgba(255, 255, 255, .14); border-color: #E7B266; }
.intention strong { font-size: 16.5px; }
.intention span { font-size: 14px; color: rgba(255, 248, 236, .7); }
.welcome-tree { width: 220px; margin: 0 auto 6px; }
.welcome .tree-svg { --soil: #4B3E2F; --water: #3E6886; --sun-a: rgba(231, 178, 102, .45); --sun-b: rgba(231, 178, 102, 0); --root: #8A6C4E; --bark: #B08865; }
.steps { position: absolute; top: calc(22px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.steps li { width: 22px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .2); }
.steps li.on { background: #E7B266; }

/* ---------- Aujourd'hui ---------- */
.companion { display: flex; gap: 12px; align-items: flex-start; }
.companion-avatar .mark { width: 44px; height: 44px; flex: none; box-shadow: 0 8px 20px -8px rgba(30, 39, 71, .5); border-radius: 14px; }
.companion-bubble {
  flex: 1; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  border-radius: 6px var(--radius) var(--radius) var(--radius); padding: 14px 16px;
}
.companion-bubble p { margin: 0 0 6px; }
.companion-name { font-weight: 700; font-size: 13px; color: var(--gold-ink); letter-spacing: .02em; }
.companion-bubble .btn { margin-top: 6px; }

.mood-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.mood { min-width: 0; overflow-wrap: anywhere; }
.mood {
  display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-weight: 500; font-size: 14.5px; text-align: left;
  transition: border-color .2s, background .2s, transform .12s;
}
.mood:hover { border-color: var(--mood); background: color-mix(in srgb, var(--mood) 12%, var(--bg)); }
.mood:active { transform: scale(.97); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mood, var(--gold)); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--mood, var(--gold)) 22%, transparent); }
@media (max-width: 520px) { .mood-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mood-answer { border-top: 4px solid var(--mood); }
.mood-answer .verse { margin: 8px 0 12px; border-left-color: var(--mood); background: color-mix(in srgb, var(--mood) 10%, transparent); }
.mood-answer .verse cite { color: var(--ink-2); }

.reading-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 0; text-decoration: none;
  border-top: 1px solid var(--line);
}
.card > .reading-row:first-child, .row-between + .reading-row { border-top: 0; }
.reading-row > .ic { color: var(--ink-3); }
.reading-thumb {
  width: 52px; height: 52px; border-radius: 16px; flex: none; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--c1), var(--c2)); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
}
.reading-thumb .ic { width: 24px; height: 24px; stroke-width: 2.4; }
.reading-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.reading-info strong { font-size: 16px; }
.reading-info .bar { margin: 6px 0 0; height: 5px; }

.week-dots { list-style: none; padding: 0; margin: 10px 0 8px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.week-dots .wd { display: block; font-size: 12px; font-weight: 700; color: var(--ink-3); margin-bottom: 6px; }
.week-dots .dw { width: 34px; height: 34px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1.5px solid transparent; }
.week-dots .on .dw { background: var(--gold); color: #fff; }
.week-dots .today .dw { border-color: var(--gold); }
.week-dots .today .wd { color: var(--gold-ink); }
.week-dots .dw .ic { width: 16px; height: 16px; stroke-width: 2.6; }

.tree-mini { display: flex; gap: 12px; align-items: center; text-decoration: none; padding: 14px; }
.tree-mini .tree-svg { width: 112px; height: 112px; flex: none; border-radius: 16px; }
.tree-mini-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tree-mini-info strong { font-family: var(--font-display); font-size: 19px; }
.tree-mini-info .bar { margin: 6px 0 4px; }

.challenge { background: linear-gradient(160deg, color-mix(in srgb, var(--gold-soft) 85%, var(--surface)), var(--surface)); }
.challenge-text { font-family: var(--font-display); font-size: 18px; line-height: 1.35; }
.challenge.big .challenge-text { font-size: 21px; }

.person-row { display: flex; align-items: center; gap: 12px; }
.person-row > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.initial { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; color: var(--gold-ink); background: var(--gold-soft); font-family: var(--font-display); font-size: 18px; }

/* ---------- Plans ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 520px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-card {
  display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.plan-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(60, 40, 10, .4); }
.plan-card.wide { margin-top: 12px; box-shadow: none; }
.plan-cover {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  min-height: 142px; padding: 16px; color: #fff; overflow: hidden;
  background: linear-gradient(150deg, var(--c1), var(--c2));
}
.cover-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-art circle { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 1.2; }
.cover-art circle.solid { fill: rgba(255, 255, 255, .28); stroke: none; }
.plan-tag { position: relative; align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(0, 0, 0, .18); backdrop-filter: blur(6px); }
.plan-title { position: relative; font-family: var(--font-display); font-size: 23px; line-height: 1.12; font-weight: 600; text-shadow: 0 1px 12px rgba(0, 0, 0, .18); }
.plan-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }

.plan-hero {
  position: relative; overflow: hidden; border-radius: 26px; padding: 26px 22px; min-height: 210px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; color: #fff;
  background: linear-gradient(150deg, var(--c1), var(--c2)); box-shadow: var(--shadow);
}
.plan-hero .display, .plan-hero p, .plan-hero .plan-tag { position: relative; }
.plan-hero p { margin: 0; font-size: 16px; opacity: .92; }
.plan-hero .display { text-shadow: 0 2px 16px rgba(0, 0, 0, .2); }

.rhythm-value { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 12px 0 4px; }
.rhythm-value output { font-family: var(--font-display); font-size: 56px; font-weight: 600; line-height: 1; color: var(--gold-ink); }
.rhythm-value span { font-size: 18px; color: var(--ink-2); }
input[type="range"] { width: 100%; margin: 10px 0 16px; accent-color: var(--gold); height: 28px; }
.facts { list-style: none; padding: 0; margin: 16px 0 6px; display: flex; flex-direction: column; gap: 10px; }
.facts li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.facts .ic { color: var(--gold); }

.day-grid { list-style: none; padding: 0; margin: 18px 0 4px; display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 8px; }
.day { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; background: var(--surface-2); text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink-2); border: 1.5px solid transparent; }
.day.rest { background: transparent; border: 1.5px dashed var(--line); }
.day.done { background: var(--gold); color: #fff; }
.day.next { border-color: var(--gold); color: var(--gold-ink); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 35%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }
.contents summary { cursor: pointer; font-weight: 700; }
.contents p { margin: 12px 0 0; color: var(--ink-2); font-size: 14.5px; }
.done-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.done-list li { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.done-list li > .ic { color: var(--leaf-1); }
.done-list li > span { display: flex; flex-direction: column; }

/* ---------- Lecture ---------- */
.reading-hero .display { font-size: clamp(28px, 6.5vw, 38px); }
.reading-hero .bar { margin-top: 14px; }
.reader-tools { display: flex; align-items: center; justify-content: space-between; margin-bottom: -6px; }
.reader-size { display: flex; gap: 8px; }
.scripture {
  --read-scale: 1;
  font-family: var(--font-read); font-size: calc(18px * var(--read-scale)); line-height: 1.8;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow);
}
.chapter + .chapter { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.chapter h2 { font-family: var(--font-display); font-size: 1.3em; margin-bottom: 12px; color: var(--gold-ink); }
.verse-line { margin: 0 0 .35em; padding: 2px 6px; margin-left: -6px; margin-right: -6px; border-radius: 8px; cursor: pointer; transition: background .15s; }
.verse-line:hover { background: color-mix(in srgb, var(--gold-soft) 50%, transparent); }
.verse-line.sel { background: var(--gold-soft); box-shadow: inset 3px 0 0 var(--gold); }
.verse-line sup { font-family: var(--font-ui); font-size: .62em; font-weight: 700; color: var(--gold); margin-right: 5px; vertical-align: .5em; line-height: 0; }
.poetry .verse-line { padding-left: 1.4em; text-indent: -1.1em; }
.source { margin: 18px 0 0; font-family: var(--font-ui); text-align: center; }
.skeleton span { display: block; height: 14px; margin: 12px 0; border-radius: 8px; background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton span:nth-child(2) { width: 92%; } .skeleton span:nth-child(3) { width: 96%; } .skeleton span:nth-child(4) { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.offline { font-family: var(--font-ui); font-size: 15.5px; }
.offline a { color: var(--gold-ink); }

.verse-bar {
  position: fixed; z-index: 35; left: 50%; transform: translateX(-50%);
  bottom: calc(96px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px;
  background: var(--night); color: #FFF8EC; border-radius: 999px; box-shadow: 0 14px 40px -10px rgba(0, 0, 0, .45);
  font-size: 14.5px; font-weight: 600; white-space: nowrap; animation: fade .2s ease both;
}
.verse-bar[hidden] { display: none; }
.verse-bar .btn { margin: 0; }

.meditate textarea { margin-top: 8px; }
.meditation-day p { font-family: var(--font-read); font-size: 17px; }
.past-notes { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; }
.past-notes li { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.past-notes p { margin: 2px 0 0; font-size: 15px; }
.share-hint { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); background: color-mix(in srgb, #D6504A 9%, transparent); font-size: 14.5px; }
.share-hint .ic { color: #D6504A; margin-top: 2px; }
.day-nav { display: flex; justify-content: space-between; }

/* ---------- Arbre ---------- */
.tree-svg .sun-a { stop-color: var(--sun-a); }
.tree-svg .sun-b { stop-color: var(--sun-b); }
.tree-svg .water { fill: var(--water); opacity: .75; }
.tree-svg .ripple { fill: none; stroke: #fff; stroke-opacity: .45; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 10 14; animation: ripple 6s linear infinite; }
@keyframes ripple { to { stroke-dashoffset: -96; } }
.tree-svg .soil { fill: var(--soil); }
.tree-svg .roots path { fill: none; stroke: var(--root); stroke-width: 1.6; stroke-linecap: round; opacity: .8; }
.tree-svg .branches path { fill: none; stroke: var(--bark); stroke-linecap: round; }
.tree-svg .lf1 { fill: var(--leaf-1); }
.tree-svg .lf2 { fill: var(--leaf-2); }
.tree-svg .lf3 { fill: var(--leaf-3); }
.tree-svg .crown circle { opacity: .92; }
.tree-svg .crown { transform-origin: 160px 262px; animation: sway 7s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-.8deg); } 50% { transform: rotate(.8deg); } }
.tree-svg .seed ellipse { fill: var(--bark); }
.tree-svg .seed-line { fill: none; stroke: var(--leaf-2); stroke-width: 2; stroke-linecap: round; }
.tree-svg .stem { fill: none; stroke: var(--leaf-3); stroke-width: 3; stroke-linecap: round; }
.tree-svg .grass path { fill: none; stroke: var(--leaf-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.tree-svg .fruit circle:first-of-type { stroke: rgba(0, 0, 0, .15); stroke-width: .8; }
.tree-svg.grow-in { animation: growIn .9s cubic-bezier(.2, .8, .2, 1.1) both; transform-origin: 50% 85%; }
@keyframes growIn { from { transform: scale(.82); opacity: 0; } to { transform: none; opacity: 1; } }
.tree-stage { max-width: 380px; width: 100%; margin: -6px auto -4px; }
.tree-stage .tree-svg { width: 100%; height: auto; }
.stage-progress { max-width: 320px; margin: 0 auto; width: 100%; text-align: center; }
.legend { list-style: none; padding: 0; margin: 10px 0 12px; display: flex; flex-direction: column; gap: 12px; }
.legend li { display: flex; align-items: flex-start; gap: 12px; }
.lg { width: 26px; height: 26px; border-radius: 50%; flex: none; }
.lg-roots { background: var(--root); }
.lg-leaves { background: var(--leaf-1); }
.lg-fruit { background: radial-gradient(circle at 35% 35%, #F7A38E, #D6504A); }
.fruit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
@media (max-width: 480px) { .fruit-grid { grid-template-columns: repeat(2, 1fr); } }
.fruit-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 18px; border: 1.5px dashed var(--line); color: var(--ink-3); }
.fruit-card .fruit-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); margin-bottom: 4px; }
.fruit-card strong { color: var(--ink-2); }
.fruit-card.on { border: 1.5px solid color-mix(in srgb, var(--fruit) 45%, transparent); background: color-mix(in srgb, var(--fruit) 9%, var(--surface)); color: var(--ink-2); }
.fruit-card.on strong { color: var(--ink); }
.fruit-card.on .fruit-dot { background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--fruit) 50%, #fff), var(--fruit)); box-shadow: 0 4px 12px -4px var(--fruit); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 480px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 16px 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-display); font-size: 30px; line-height: 1.1; color: var(--gold-ink); }
.stat span { font-size: 13px; color: var(--ink-2); }

/* ---------- Prière ---------- */
.prayer-form { display: flex; flex-direction: column; gap: 12px; }
.prayer-form .btn { margin: 0; align-self: flex-start; }
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); align-self: flex-start; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.segmented input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.segmented input:focus-visible + span { outline: 3px solid var(--gold); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); }
.tab { background: none; border: 0; padding: 10px 6px; margin-right: 12px; font-weight: 700; color: var(--ink-3); cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; }
.tab.on { color: var(--ink); border-bottom-color: var(--gold); }
.count { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.prayer-list, .wall { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.prayer { padding: 16px 18px; }
.prayer-text { font-family: var(--font-read); font-size: 17px; white-space: pre-wrap; margin-bottom: 6px; }
.prayer-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.prayer-actions .btn { margin: 0; }
.prayer-actions .icon-btn { margin-left: auto; }
.answer-form { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.wall { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 520px) { .wall { grid-template-columns: 1fr; } }
.wall-card { padding: 18px; border-radius: var(--radius); background: linear-gradient(170deg, var(--gold-soft), var(--surface) 70%); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); box-shadow: var(--shadow); }
.wall-card.merci { background: linear-gradient(170deg, color-mix(in srgb, var(--leaf-2) 18%, var(--surface)), var(--surface) 70%); border-color: color-mix(in srgb, var(--leaf-1) 30%, transparent); }
.wall-kind { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 8px; }
.wall-card.merci .wall-kind { color: var(--leaf-3); }
.wall-text { font-family: var(--font-read); font-size: 16.5px; white-space: pre-wrap; }
.wall-note { font-style: italic; color: var(--ink-2); }

/* ---------- Témoigner ---------- */
.five { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; }
.five li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.five li:first-child { border-top: 0; }
.five-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.five .btn { margin: 0; }
.inline-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 10px; }
.inline-form .btn { margin: 0; min-height: 46px; }
@media (max-width: 520px) { .inline-form { grid-template-columns: 1fr; } }
.card-link { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.card-link > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.card-link > .ic { color: var(--ink-3); }
.card-link-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(150deg, #F2C27A, #C8643F); color: #fff; flex: none; }
.card-link-icon .ic { width: 24px; height: 24px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { padding: 0; }
.faq-item summary { cursor: pointer; padding: 16px 44px 16px 18px; font-weight: 700; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--gold); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item > p, .faq-item > a { margin-left: 18px; margin-right: 18px; }
.faq-item > a { margin-bottom: 16px; }
.tip { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 14.5px; }
.tip strong { color: var(--gold-ink); margin-right: 4px; }
.teaser { position: relative; background: linear-gradient(150deg, #1E2747, #3A3456); color: #FFF8EC; border: 0; }
.teaser p { color: rgba(255, 248, 236, .82); margin: 0; }
.soon { position: absolute; top: 16px; right: 16px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: #E7B266; color: #1E2747; }

/* ---------- Carte à partager ---------- */
.card-maker { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .card-maker { grid-template-columns: 260px 1fr; align-items: start; } .card-preview { position: sticky; top: 76px; } }
.card-preview canvas { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .45); }
@media (max-width: 639px) { .card-preview { max-width: 300px; margin: 0 auto; width: 100%; } }
.form-card .row .btn { flex: 1; }

/* ---------- Fenêtre ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; padding: 16px; background: rgba(12, 14, 26, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s ease; }
.overlay[hidden] { display: none; }
.overlay.open { opacity: 1; }
@media (min-width: 640px) { .overlay { align-items: center; } }
.sheet { width: 100%; max-width: 440px; max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface); border-radius: 28px; padding: 24px 22px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); transform: translateY(24px); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.overlay.open .sheet { transform: none; }
.celebrate { text-align: center; }
.celebrate .eyebrow { justify-content: center; }
.celebrate-tree { width: 200px; margin: -8px auto 6px; }
.celebrate .verse { text-align: left; margin: 12px 0; }
.stage-up { padding: 8px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); display: inline-block; }
.new-fruits { margin: 10px 0; }
.fruit-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: color-mix(in srgb, var(--fruit) 14%, var(--surface)); font-weight: 700; margin: 0 4px 6px; }
.fruit-pill .fruit-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--fruit); }
.actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.actions .btn { flex: 1; min-width: 140px; }
.practice-text { max-height: 46vh; overflow: auto; margin: 12px 0; padding: 4px; }
.practice-text h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-ink); margin: 14px 0 4px; }
.practice-text p { font-family: var(--font-read); font-size: 19px; line-height: 1.7; }
.timer { font-family: var(--font-display); font-size: 54px; text-align: center; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.timer.over { color: var(--danger); }

.toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: min(92vw, 440px); padding: 12px 18px; border-radius: 16px;
  background: var(--night); color: #FFF8EC; font-weight: 600; font-size: 14.5px; text-align: center;
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, .45); transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.credits { margin: 6px 0 0; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ======================================================================
   LE SEMEUR
   ====================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.notice { margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--water) 22%, var(--surface)); color: var(--ink-2); font-size: 14px; }
.notice a { color: var(--gold-ink); font-weight: 600; }
body.is-visitor .tabbar, body.is-visitor .top-actions { display: none; }
body.is-visitor .app { padding-bottom: 40px; }

/* Le champ (dessin) */
.field-svg { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
.field-svg .sun-a { stop-color: var(--sun-a); }
.field-svg .sun-b { stop-color: var(--sun-b); }
.fd-hill { fill: color-mix(in srgb, var(--leaf-2) 30%, var(--soil)); }
.fd-soil { fill: var(--soil); }
.fd-furrow { fill: color-mix(in srgb, var(--soil) 70%, var(--bark)); opacity: .55; }
.fd-mound { fill: var(--root); }
.fd-seed { fill: var(--bark); }
.fd-wet { fill: color-mix(in srgb, var(--water) 45%, var(--soil)); opacity: .8; }
.fd-stem { fill: none; stroke: var(--leaf-3); stroke-width: 1.6; stroke-linecap: round; }
.fd-leaf { fill: var(--leaf-1); }
.fd-leaf.b { fill: var(--leaf-2); }
.fd-grain { fill: #E2B24C; }
.fd-drop { fill: var(--water); }
.fd-plant { cursor: pointer; outline: none; }
.fd-plant:hover .fd-leaf, .fd-plant:focus-visible .fd-leaf { fill: var(--leaf-3); }
.fd-plant:focus-visible .fd-mound { fill: var(--gold); }
.plant-ic { width: 30px; height: 38px; flex: none; }
.plant-ic .fd-wet { opacity: .9; }
.field-card { display: flex; flex-direction: column; gap: 12px; }
.field-card .btn { margin-top: 0; }
.field-empty { margin: 0; text-align: center; color: var(--ink-2); font-family: var(--font-display); font-size: 18px; }
.field-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 12px; }
.field-legend li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.field-legend .plant-ic { width: 22px; height: 28px; }
.field-legend strong { color: var(--ink); }

/* Liste des graines */
.seed-list { padding: 6px 10px; }
.seed-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 6px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.seed-row:first-child { border-top: 0; }
.seed-row > .ic { margin-left: auto; color: var(--ink-3); }
.seed-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.how-it-works summary { cursor: pointer; font-family: var(--font-display); font-size: 19px; }
.how-steps { margin: 12px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }
.how-steps strong { color: var(--ink); }

/* Semer */
.seed-chips .chip { font-size: 13.5px; padding: 7px 12px; }
.pray-step.done { border-color: color-mix(in srgb, var(--leaf-1) 45%, var(--line)); }
.card-title .small { font-family: var(--font-ui); font-weight: 500; }

/* Fiche d'une graine */
.seed-sheet { display: flex; flex-direction: column; gap: 14px; }
.seed-sheet .row-between .eyebrow { margin: 0; }
.seed-sheet .fruit-pill { align-self: flex-start; margin: 0; }
.seed-sheet > p { margin: 0; }
.seed-msg { font-family: var(--font-read); font-style: italic; color: var(--ink-2); }
.seed-msg span { display: block; font-style: normal; font-family: var(--font-ui); font-size: 13.5px; margin-top: 2px; }
.seed-give { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.seed-give p { margin: 0 0 4px; }
.seed-qr { width: 128px; flex: none; padding: 6px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.qr { display: block; width: 100%; height: auto; }
.seed-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seed-actions .btn { margin: 0; min-width: 0; padding-left: 10px; padding-right: 10px; }
.seed-water { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.seed-water p { margin: 0; }
.seed-water .btn { margin: 0; flex: none; }
.seed-news { padding-top: 12px; border-top: 1px solid var(--line); }
.seed-news > p { margin: 0 0 8px; }
.state-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.state-step { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 12px; font-weight: 600; color: var(--ink-3); cursor: pointer; }
.state-step .plant-ic { width: 26px; height: 32px; }
.state-step.past { color: var(--ink-2); }
.state-step.on { border-color: var(--leaf-1); background: color-mix(in srgb, var(--leaf-1) 14%, var(--surface)); color: var(--ink); }
.seed-sheet .link.quiet { align-self: center; }

/* Page reçue par la personne */
.gift { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 20px 22px; margin-top: 4px; border-radius: var(--radius); text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--gold-soft) 90%, transparent), transparent 70%), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.gift .eyebrow { justify-content: center; margin: 0; }
.gift .display { font-size: clamp(28px, 7.5vw, 40px); }
.gift .lead { margin: 0; }
.gift-sprout .plant-ic { width: 46px; height: 58px; margin: 0 auto -6px; display: block; }
.gift-verse { text-align: left; margin: 6px 0 0; }
.gift-verse p { font-size: 19px; }
.gift-msg { margin: 4px 0 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); text-align: left; }
.gift-msg blockquote { margin: 0; font-family: var(--font-read); font-size: 16.5px; font-style: italic; line-height: 1.55; white-space: pre-line; }
.gift-msg figcaption { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.gift-next .link { margin-top: 12px; }
#gift-chapter:not(:empty) { margin-top: 14px; }
.verse-line.highlight { background: var(--gold-soft); border-radius: 8px; }

/* Carte d'accès depuis « Témoigner » */
.semeur-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); padding-top: 12px; }
.semeur-art .field-svg { height: 140px; }
.semeur-txt .eyebrow .ic { width: 16px; height: 16px; }
.semeur-txt p, .semeur-txt h2 { margin-bottom: 4px; }

/* ---------- Impression : 4 cartes A6 sur une page A4 ---------- */
#print-sheet { display: none; }
@media print {
  @page { size: A4 portrait; margin: 8mm; }
  body.printing > *:not(#print-sheet) { display: none !important; }
  body.printing { background: #fff !important; }
  body.printing #print-sheet { display: grid !important; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; width: 194mm; height: 280mm; }
  .pcard { display: flex; flex-direction: column; justify-content: space-between; padding: 9mm 8mm 7mm; border: 0.3mm dashed #b9b2a6; color: #1E2230; font-family: 'Literata', Georgia, serif; break-inside: avoid; }
  .pcard-top { display: flex; align-items: center; gap: 1.5mm; margin: 0; font-family: 'DM Sans', Arial, sans-serif; font-size: 8pt; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8C5A14; }
  .pcard-top .plant-ic { width: 5mm; height: 6.5mm; }
  .pcard-top .fd-leaf { fill: #5E8F47; } .pcard-top .fd-leaf.b { fill: #7AAA5A; } .pcard-top .fd-stem { stroke: #477537; } .pcard-top .fd-mound { fill: #A58566; }
  .pcard-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 4mm 0; }
  .pcard-verse { margin: 0; font-size: 15pt; line-height: 1.45; }
  .pcard-verse.sm { font-size: 12.5pt; }
  .pcard-verse.xs { font-size: 10.5pt; }
  .pcard-ref { margin: 3mm 0 0; font-family: 'DM Sans', Arial, sans-serif; font-weight: 700; font-size: 10pt; color: #8C5A14; }
  .pcard-msg { margin: 4mm 0 0; font-style: italic; font-size: 10.5pt; color: #3A3D47; }
  .pcard-msg span { font-style: normal; font-family: 'DM Sans', Arial, sans-serif; font-size: 9pt; }
  .pcard-foot { display: flex; align-items: center; gap: 4mm; padding-top: 4mm; border-top: 0.2mm solid #E6DCCB; font-family: 'DM Sans', Arial, sans-serif; font-size: 9pt; color: #3A3D47; }
  .pcard-foot p { margin: 0; }
  .pcard-foot strong { display: block; font-size: 10.5pt; color: #1E2230; }
  .pcard-qr { width: 27mm; height: 27mm; flex: none; }
}

/* ---------- Installer l'application ---------- */
.install-card .resume-ic { background: none; }
.install-card .resume-ic img { width: 46px; height: 46px; border-radius: 12px; display: block; }
.install-steps { margin: 14px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }
.install-steps strong { color: var(--ink); }
.install-steps .ic { width: 17px; height: 17px; vertical-align: -3px; color: var(--gold-ink); }
.install-card .link.quiet { display: block; margin: 10px auto 0; }

/* ---------- Mot publié par le site ---------- */
.site-message { border-top: 4px solid var(--gold); }
.site-message .eyebrow .ic { width: 16px; height: 16px; }
.site-message-text { font-family: var(--font-read); font-size: 17.5px; line-height: 1.6; margin: 4px 0 12px; }
.site-message .verse { margin-bottom: 12px; }
.site-message .row-between .btn { margin: 0; }

/* ---------- Sauvegarde ---------- */
.backup-title { display: flex; align-items: center; gap: 8px; margin: 18px 0 4px; font-size: 16px; font-weight: 700; }
.backup-title .ic { width: 20px; height: 20px; color: var(--gold-ink); }
.backup-card p { margin: 6px 0; }
.backup-last { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.backup-last.is-old { color: var(--gold-ink); }
.backup-card .row { margin: 12px 0 4px; }
.backup-hint { margin-top: 8px; }
.backup-sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0 14px; }
.backup-nudge { border-top: 4px solid var(--gold); }
.backup-nudge .resume-ic .ic { width: 24px; height: 24px; }
.backup-nudge-actions { margin-top: 14px; }
.backup-nudge-actions .link.quiet { margin-top: 0; }
.backup-sum { margin: 6px 0 14px; padding-left: 20px; }
.backup-sum li { margin: 4px 0; }
.backup-sheet .care { margin: 0; }

/* ---------- Écran d'installation (#/installer) ---------- */
.install-page { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; max-width: 460px; margin: 8px auto 0; padding-bottom: 90px; }
.install-page .display-sm { margin: 4px 0 0; }
.install-page .lead { font-size: 16.5px; }
.install-page .btn-block { width: 100%; }
.inst-icon { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 14px 30px -14px rgba(20, 24, 40, .55); }
.install-page.is-done .inst-icon { outline: 3px solid color-mix(in srgb, var(--leaf-1) 70%, transparent); outline-offset: 4px; }
.btn-big { min-height: 58px; font-size: 17px; }
.inst-steps { list-style: none; margin: 4px 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.inst-steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); line-height: 1.45; }
.inst-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); font-weight: 700; font-size: 14px; }
.inst-key { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--gold-soft); color: var(--gold-ink); vertical-align: middle; margin: 0 2px; }
.inst-key .ic { width: 17px; height: 17px; }
.inst-qr { width: 220px; max-width: 70vw; padding: 10px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); }
.inst-qr .qr { display: block; width: 100%; height: auto; }
.inst-wait { display: flex; align-items: center; gap: 10px; margin: 2px 0; font-weight: 600; color: var(--ink-2); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--gold); animation: spin .9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
/* La flèche qui montre où toucher dans Safari */
.inst-pointer { position: fixed; z-index: 40; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #1E2747; box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .5); pointer-events: none; }
.inst-pointer .ic { width: 28px; height: 28px; }
.inst-pointer.is-bottom { left: calc(50% - 27px); bottom: calc(14px + env(safe-area-inset-bottom)); animation: bob-down 1.3s ease-in-out infinite; }
.inst-pointer.is-bottom .ic { transform: rotate(90deg); }
.inst-pointer.is-bottom-right { right: 18px; bottom: calc(14px + env(safe-area-inset-bottom)); animation: bob-down 1.3s ease-in-out infinite; }
.inst-pointer.is-bottom-right .ic { transform: rotate(60deg); }
.inst-pointer.is-top { right: 18px; top: calc(70px + env(safe-area-inset-top)); animation: bob-up 1.3s ease-in-out infinite; }
.inst-pointer.is-top .ic { transform: rotate(-60deg); }
@keyframes bob-down { 50% { transform: translateY(8px); } }
@keyframes bob-up { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .inst-pointer, .spinner { animation: none; } }

/* ---------- Rappel de lecture ---------- */
.reminder-card .card-title { display: flex; align-items: center; gap: 8px; }
.reminder-card .card-title > .ic { width: 20px; height: 20px; color: var(--gold-ink); }
.reminder-card .resume-ic .ic { width: 24px; height: 24px; }
.reminder-card p { margin: 6px 0; }
.reminder-hours { margin: 12px 0; }
.reminder-card .row { margin-top: 4px; }
.reminder-card .row .link.quiet { margin-top: 0; }
.reminder-card > .link.quiet { display: block; margin: 4px 0 6px; }
.reminder-card > .btn { margin: 2px 0 6px; }
