/* ============================================================
   Thème « Heaven » — inspiré du linktree de Lashaya (lashaya.me)
   Crème chaud, prune et mauve, pêche ; nom en capitales fines espacées,
   petites étoiles ✦, boutons crème en pilule. Actif quand <body class="theme-heaven">.
   ============================================================ */
body.theme-heaven {
  --bg: #f3ece3; --panel: #fbf7f1; --panel2: #f2e8dc; --line: #e6d8c7;
  --text: #3b2735; --muted: #8f7886; --accent: #9a6688; --accent2: #b9849f;
  --gold-ink: #3b2735; --ok: #6f9e7c; --warn: #c08a4a; --bad: #c0635a;
  background: var(--bg); color-scheme: light;
}
body.theme-heaven .lux {
  --serif: "Cormorant Garamond", "Didot", Georgia, serif;
  --sans: "Nunito", ui-rounded, -apple-system, BlinkMacSystemFont, sans-serif;
  /* boutons crème façon linktree */
  --gold-grad: linear-gradient(100deg, #fffaf3 0%, #f6e9d8 55%, #ecd8c0 100%);
  /* dégradé prune pour les chiffres et le prénom */
  --ink-grad: linear-gradient(110deg, #5c3553 0%, #a2708f 45%, #6b3f60 100%);
  --dream: linear-gradient(165deg, #3f2540 0%, #6d4563 38%, #a77a8d 70%, #d9b59c 100%);
  --card: linear-gradient(180deg, #fffbf6 0%, #f7efe5 100%);
  --hair: rgba(154, 102, 136, .2);
  color: var(--text);
}
body.theme-heaven .lux, body.theme-heaven .lux body { background: var(--bg); }

/* ---------- En-tête rêveur : dégradé prune → pêche + étoiles ---------- */
body.theme-heaven .lux .m-head { background: var(--dream); border-bottom: 0; color: #fbf3ea; overflow: hidden;
  padding-bottom: 22px; box-shadow: 0 10px 30px rgba(63, 37, 64, .25); }
body.theme-heaven .lux .m-head::before, body.theme-heaven .lux .m-head::after {
  content: "✦"; position: absolute; color: #fff4e6; pointer-events: none; animation: twinkle 3.2s ease-in-out infinite; }
body.theme-heaven .lux .m-head::before { top: calc(env(safe-area-inset-top, 0px) + 12px); left: 46%; font-size: 13px; }
body.theme-heaven .lux .m-head::after { content: "+"; bottom: 12px; left: 22%; font-size: 14px; animation-delay: 1.4s; }
body.theme-heaven .lux .m-date { color: rgba(251, 243, 234, .85); text-transform: lowercase; letter-spacing: .32em; font-weight: 600; font-size: 11px; }
body.theme-heaven .lux #hello { font-family: var(--serif); font-weight: 500; font-size: 17px; color: #fbf3ea; margin-top: 8px; line-height: 1.15; }
body.theme-heaven .lux #hello .hi { font-style: italic; font-size: 19px; opacity: .92; }
body.theme-heaven .lux #hello .comma { display: none; }
body.theme-heaven .lux #hello em { display: block; font-style: normal; font-weight: 500; font-size: 38px; letter-spacing: .2em; text-transform: uppercase;
  background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #fff8ef; animation: none;
  text-shadow: 0 2px 18px rgba(63, 37, 64, .45); margin-top: 2px; }
body.theme-heaven .lux .m-logout { background: rgba(255, 248, 239, .16); border: 1px solid rgba(255, 248, 239, .45); color: #fff8ef; backdrop-filter: blur(8px); }

/* ---------- Chiffre du jour ---------- */
body.theme-heaven .lux .hero::before { background: radial-gradient(circle, rgba(185, 132, 159, .22), transparent 65%); }
body.theme-heaven .lux .hero-n { font-family: var(--serif); font-weight: 500; background: var(--ink-grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; }
body.theme-heaven .lux .hero-t { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 24px; color: var(--text); }
body.theme-heaven .lux .hero p { color: var(--muted); }

/* ---------- Titres de section : « ✦ ma to-do » ---------- */
body.theme-heaven .lux .sec { color: var(--accent); letter-spacing: .3em; text-transform: lowercase; font-weight: 700; }
body.theme-heaven .lux .sec::before { content: "✦"; letter-spacing: 0; font-size: 12px; }
body.theme-heaven .lux .sec::after { background: linear-gradient(90deg, rgba(154, 102, 136, .3), transparent); }
body.theme-heaven .lux .sec .count { color: var(--accent); }

/* ---------- Cartes ---------- */
body.theme-heaven .lux .card { background: var(--card); border: 1px solid var(--hair); border-radius: 26px; box-shadow: 0 8px 26px rgba(91, 58, 85, .08); }
body.theme-heaven .lux .cat .cat-ic { background: #f4e6ea; border-color: rgba(154, 102, 136, .18); }
body.theme-heaven .lux .cat .cat-name b, body.theme-heaven .lux .guide summary b { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--text); }
body.theme-heaven .lux .cat .cat-count { background: var(--ink-grad); color: #fff8ef; }
body.theme-heaven .lux .cat .cat-count.ok { background: rgba(111, 158, 124, .14); color: var(--ok); border-color: rgba(111, 158, 124, .35); }
body.theme-heaven .lux .cat .chev, body.theme-heaven .lux .guide .chev { color: var(--accent); }
body.theme-heaven .lux .guide-body { color: #4d3746; border-top-color: var(--hair); }
body.theme-heaven .lux .guide-body a { color: var(--accent); }

/* ---------- Tâches ---------- */
body.theme-heaven .lux .todo-item { background: #fffaf4; border-color: rgba(154, 102, 136, .16); border-radius: 999px; color: var(--text); }
body.theme-heaven .lux .todo-item:hover { border-color: rgba(154, 102, 136, .4); }
body.theme-heaven .lux .todo-item .box { border-color: var(--accent2); }
body.theme-heaven .lux .todo-item.leaving .box, body.theme-heaven .lux .todo-item.done .box { background: var(--ink-grad); color: #fff8ef; }
body.theme-heaven .lux .todo-item.leaving .box::after { border-color: var(--accent2); }

/* ---------- Comptes / compteurs ---------- */
body.theme-heaven .lux .acc-count { font-family: var(--serif); font-weight: 600; color: var(--text); }
body.theme-heaven .lux .acc-ok { border-color: rgba(154, 102, 136, .45); }
body.theme-heaven .lux .acc-ok .acc-count { background: var(--ink-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.theme-heaven .lux .bar { background: #eadfd3; }
body.theme-heaven .lux .bar > i, body.theme-heaven .lux .bar.done > i { background: var(--ink-grad); background-size: 200% auto; }

/* ---------- Boutons : pilules crème, texte prune ---------- */
body.theme-heaven .lux .btn { border-radius: 999px; }
body.theme-heaven .lux .btn.primary { background: var(--gold-grad); color: var(--text); font-weight: 800;
  box-shadow: 0 8px 22px rgba(91, 58, 85, .14), inset 0 1px 0 #fff; border: 1px solid rgba(154, 102, 136, .14); }
body.theme-heaven .lux .btn.primary::after { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .9), transparent); }
body.theme-heaven .lux .btn:not(.primary):not(.undo) { background: #f6ede2; border-color: rgba(154, 102, 136, .18); color: var(--text); }
body.theme-heaven .lux .btn.undo { border-color: rgba(154, 102, 136, .25); color: var(--muted); }
body.theme-heaven .lux .cta { border-color: rgba(154, 102, 136, .3); color: var(--text); }
body.theme-heaven .lux .cta .cta-ic { background: var(--ink-grad); color: #fff8ef; }
@keyframes breatheHeaven { 50% { box-shadow: 0 10px 30px rgba(154, 102, 136, .3), inset 0 1px 0 #fff; } }
body.theme-heaven .lux .acc:not(.acc-ok) .btn.primary { animation-name: breatheHeaven; }

/* ---------- Pastilles ---------- */
body.theme-heaven .lux .pill { background: #f4ebe1; border-color: rgba(154, 102, 136, .18); color: var(--text); }
body.theme-heaven .lux .pill.late, body.theme-heaven .lux .pill.redo { background: rgba(192, 99, 90, .1); color: #a64f47; border-color: rgba(192, 99, 90, .3); }
body.theme-heaven .lux .pill.submitted { background: rgba(154, 102, 136, .12); color: var(--accent); }
body.theme-heaven .lux .fix { background: rgba(192, 99, 90, .08); border-color: rgba(192, 99, 90, .25); color: #9a4840; }

/* ---------- Idées ---------- */
body.theme-heaven .lux .seg-m { background: #efe4d7; border-color: rgba(154, 102, 136, .15); border-radius: 999px; }
body.theme-heaven .lux .seg-m button { border-radius: 999px; color: var(--muted); }
body.theme-heaven .lux .seg-m button.on { background: #fffaf4; color: var(--text); box-shadow: 0 4px 12px rgba(91, 58, 85, .12); }
body.theme-heaven .lux .slide-card { background: var(--card); }
body.theme-heaven .lux .slide-info b { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--text); }
body.theme-heaven .lux .note { color: var(--accent); }
body.theme-heaven .lux .linkcard { background: var(--dream); color: #fff8ef; font-family: var(--serif); font-style: italic; }
body.theme-heaven .lux .linkcard::before { border-color: rgba(255, 248, 239, .7); }
body.theme-heaven .lux .round.like { background: var(--ink-grad); color: #fff8ef; box-shadow: 0 10px 26px rgba(91, 58, 85, .3); }
body.theme-heaven .lux .round.nope { border-color: rgba(192, 99, 90, .55); }
body.theme-heaven .lux .stamp { background: rgba(255, 250, 244, .85); font-family: var(--serif); font-style: italic; }
body.theme-heaven .lux .stamp.like { color: var(--accent); }

/* ---------- Barre d'onglets : verre crème ---------- */
body.theme-heaven .lux .m-nav { background: rgba(251, 247, 241, .88); border-top: 1px solid rgba(154, 102, 136, .15); }
body.theme-heaven .lux .m-nav button { color: #a4919c; }
body.theme-heaven .lux .m-nav button.on { color: var(--accent); }
body.theme-heaven .lux .m-nav button.on::before { background: var(--ink-grad); }
body.theme-heaven .lux .m-nav .badge { background: var(--ink-grad); color: #fff8ef; }

/* ---------- Fenêtres, langue, messages ---------- */
body.theme-heaven .lux dialog, body.theme-heaven dialog.lang-dlg { background: #fbf7f1; color: var(--text); border-color: rgba(154, 102, 136, .2); }
body.theme-heaven .lux dialog h2, body.theme-heaven dialog.lang-dlg h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; }
body.theme-heaven dialog .row:last-child { background: #fbf7f1; }
body.theme-heaven .lang-list button { background: #fffaf4; color: var(--text); border-color: rgba(154, 102, 136, .18); }
body.theme-heaven .lang-list button.on { border-color: var(--accent); }
body.theme-heaven .lang-list .tick { color: var(--accent); }
body.theme-heaven input, body.theme-heaven textarea { background: #fffaf4; border-color: rgba(154, 102, 136, .22); color: var(--text); }
body.theme-heaven .toast { background: #3b2735; color: #fbf3ea; }
body.theme-heaven .burst i { background: linear-gradient(135deg, #fff4e6, #b9849f); }

/* ---------- Écran de connexion (si une modèle heaven s'est déjà connectée sur ce téléphone) ---------- */
body.theme-heaven .auth { background: var(--dream); color: #fff8ef; }
body.theme-heaven .auth-title { font-family: var(--serif); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: 36px; color: #fff8ef; }
body.theme-heaven .auth-title em { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #fff8ef; font-weight: 500; animation: none; }
body.theme-heaven .auth-sub, body.theme-heaven .auth-foot, body.theme-heaven .auth-form label { color: rgba(255, 248, 239, .82); }
body.theme-heaven .auth-form input { background: rgba(255, 250, 244, .94); color: #3b2735; border-color: transparent; border-radius: 999px; }
body.theme-heaven .pw-toggle { color: #9a6688; }
body.theme-heaven .auth .btn.primary { background: var(--gold-grad, #f6e9d8); background: linear-gradient(100deg, #fffaf3, #ecd8c0); color: #3b2735; border-radius: 999px; }
body.theme-heaven .auth-err { color: #ffd9d4; }
body.theme-heaven .auth-lang { background: rgba(255, 248, 239, .16); border-color: rgba(255, 248, 239, .45); color: #fff8ef; }
body.theme-heaven .install { background: rgba(255, 250, 244, .14); border-color: rgba(255, 248, 239, .35); color: #fff8ef; }
body.theme-heaven .install b:first-child { color: #fff8ef; }
body.theme-heaven .install ol { color: #fff8ef; }

@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { body.theme-heaven .lux .m-head::before, body.theme-heaven .lux .m-head::after { animation: none; } }

/* Corrections : encadré d'installation lisible sur le fond rêveur, en-tête qui défile avec la page */
body.theme-heaven .lux .install.card { background: rgba(255, 250, 244, .14); border-color: rgba(255, 248, 239, .38); box-shadow: none; color: #fff8ef; }
body.theme-heaven .lux .install.card b, body.theme-heaven .lux .install.card li { color: #fff8ef; }
body.theme-heaven .lux .m-head { position: relative; }

/* Fond crème sur toute la fenêtre, même quand la page est courte (sinon le fond noir apparaît en bas) */
html.theme-heaven, html:has(body.theme-heaven) { background: #f3ece3; }
body.theme-heaven { min-height: 100vh; min-height: 100dvh; }
body.theme-heaven .lux.m-view, body.theme-heaven #modelView { min-height: 100vh; min-height: 100dvh; }

/* Planning du jour */
body.theme-heaven .lux .plan-head b { font-family: var(--serif); font-weight: 600; font-size: 24px; font-style: italic; }
body.theme-heaven .lux .plan-item { background: #fffaf4; border-color: rgba(154, 102, 136, .2); color: var(--text); }
body.theme-heaven .lux .plan-item .box { border-color: var(--accent2); }
body.theme-heaven .lux .plan-item.done { background: #f4e6ea; }
body.theme-heaven .lux .plan-item.done .box { background: var(--ink-grad); color: #fff8ef; }

body.theme-heaven .lux .notif { border-color: rgba(154, 102, 136, .35); }
body.theme-heaven .lux .notif b { font-family: var(--serif); font-weight: 600; font-size: 21px; }
