/* Panda Créa — Ultimate Planner 2026–2028 · Feuille de style
   Grille 4/8 px · tokens CSS · 6 thèmes · mobile d'abord (390) → tablette (768+) → ordinateur (1180+) */

/* ---------- Polices (SIL OFL 1.1, embarquées) ---------- */
@font-face { font-family: 'Cormorant Garamond'; src: url(../assets/fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url(../assets/fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2'), url(../assets/fonts/cormorant-garamond-latin-ext-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url(../assets/fonts/cormorant-garamond-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url(../assets/fonts/cormorant-garamond-latin-500-italic.woff2) format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url(../assets/fonts/cormorant-garamond-latin-600-italic.woff2) format('woff2'), url(../assets/fonts/cormorant-garamond-latin-ext-600-italic.woff2) format('woff2'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url(../assets/fonts/cormorant-garamond-latin-700-italic.woff2) format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(../assets/fonts/inter-latin-400-normal.woff2) format('woff2'), url(../assets/fonts/inter-latin-ext-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(../assets/fonts/inter-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(../assets/fonts/inter-latin-600-normal.woff2) format('woff2'), url(../assets/fonts/inter-latin-ext-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }

@font-face { font-family: 'Playfair Display'; src: url(../assets/fonts/playfair-display-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url(../assets/fonts/playfair-display-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url(../assets/fonts/playfair-display-latin-600-normal.woff2) format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url(../assets/fonts/playfair-display-latin-400-italic.woff2) format('woff2'); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(../assets/fonts/inter-latin-300-normal.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(../assets/fonts/inter-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(../assets/fonts/inter-latin-800-normal.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url(../assets/fonts/cormorant-garamond-latin-300-normal.woff2) format('woff2'); font-weight: 300; font-display: swap; }
/* ---------- Tokens communs ---------- */
:root {
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Arabic', 'Noto Sans Devanagari', sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px;
  --r-sm: 6px; --r: 8px; --r-lg: 10px; --r-xl: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --nav-h: 68px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Thèmes ---------- */
/* 1 · Prune & Rose crépuscule (référence) */
:root, [data-theme="prune"] {
  --bg1: #241B31; --bg2: #4A3049; --bg3: #7C4F68; --bg-img: url(../assets/fonds/prune_rose_mobile.webp); --bg-img-lg: url(../assets/fonds/prune_rose_ordinateur.webp);
  --on-bg: #FBEFF1; --on-bg-muted: #E2C9D3;
  --card1: #FCF5F2; --card2: #F3E2E1; --card-line: rgba(255,255,255,.7);
  --ink: #3A2433; --ink-muted: #7C6370; --line: #E6D2D4;
  --accent: #8E4C67; --accent-2: #C77A93; --on-accent: #fff; --soft: #F6DCE3;
  --t0: linear-gradient(160deg, rgba(185,122,146,.78), rgba(127,73,98,.78)); --t0-ink: #FFF5F7;
  --t1: linear-gradient(160deg, #FBF0EC, #EFD9D8); --t1-ink: #4A2B3B;
  --t2: linear-gradient(160deg, rgba(126,90,132,.78), rgba(84,58,98,.78)); --t2-ink: #F8EEF6;
  --nav-bg: rgba(46,30,48,.86); --nav-ink: #E9D3DC; --glass: rgba(255,255,255,.12); --glass-line: rgba(255,255,255,.2);
  --theme-color: #2A1F35; --shadow: 0 10px 30px rgba(30,12,30,.28), 0 2px 6px rgba(30,12,30,.12);
  --meter: linear-gradient(90deg, #A0577A, #D58AA2);
}
/* 2 · Milk & Oat ivoire */
[data-theme="ivoire"] {
  --bg1: #FBF7F4; --bg2: #F2EBE3; --bg3: #E5DED2; --bg-img: none; --bg-img-lg: none;
  --on-bg: #232323; --on-bg-muted: #685D54;
  --card1: #FFFFFF; --card2: #FBF7F4; --card-line: #EDE5DB;
  --ink: #232323; --ink-muted: #6E6259; --line: #E5DED2;
  --accent: #685D54; --accent-2: #A39382; --on-accent: #fff; --soft: #F1EAE2;
  --t0: linear-gradient(160deg, #A39382, #857566); --t0-ink: #FFFFFF;
  --t1: linear-gradient(160deg, #FFFFFF, #F4EEE7); --t1-ink: #3E3631;
  --t2: linear-gradient(160deg, #E5DED2, #D6CCBE); --t2-ink: #2F2924;
  --nav-bg: rgba(255,252,249,.92); --nav-ink: #685D54; --glass: rgba(104,93,84,.08); --glass-line: rgba(104,93,84,.16);
  --theme-color: #FBF7F4; --shadow: 0 8px 24px rgba(104,93,84,.14), 0 1px 3px rgba(104,93,84,.1);
  --meter: linear-gradient(90deg, #8B7B6B, #B9A893);
}
/* 3 · Midnight */
[data-theme="midnight"] {
  --bg1: #161D28; --bg2: #202937; --bg3: #423D42; --bg-img: url(../assets/fonds/midnight_mobile.webp); --bg-img-lg: url(../assets/fonds/midnight_ordinateur.webp);
  --on-bg: #F1E7E0; --on-bg-muted: #C7B8B0;
  --card1: #F7F1ED; --card2: #E6D7CD; --card-line: rgba(255,255,255,.6);
  --ink: #202937; --ink-muted: #5C5A62; --line: #D4C1B9;
  --accent: #423D42; --accent-2: #766664; --on-accent: #fff; --soft: #EADCD3;
  --t0: linear-gradient(160deg, rgba(118,102,100,.85), rgba(66,61,66,.85)); --t0-ink: #F5ECE6;
  --t1: linear-gradient(160deg, #F2E9E3, #E1D1C6); --t1-ink: #202937;
  --t2: linear-gradient(160deg, rgba(169,152,152,.55), rgba(90,84,92,.7)); --t2-ink: #F5ECE6;
  --nav-bg: rgba(22,29,40,.9); --nav-ink: #D4C1B9; --glass: rgba(255,255,255,.1); --glass-line: rgba(255,255,255,.18);
  --theme-color: #202937; --shadow: 0 10px 30px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.18);
  --meter: linear-gradient(90deg, #423D42, #8E7C79);
}
/* 4 · Holst bordeaux */
[data-theme="holst"] {
  --bg1: #3A0B17; --bg2: #4B0F1E; --bg3: #8E2B44; --bg-img: url(../assets/fonds/bordeaux_mobile.webp); --bg-img-lg: url(../assets/fonds/bordeaux_ordinateur.webp);
  --on-bg: #FFF1F4; --on-bg-muted: #F7D6DC;
  --card1: #FFF8F9; --card2: #F7D6DC; --card-line: rgba(255,255,255,.7);
  --ink: #4B0F1E; --ink-muted: #85485A; --line: #EDC2CB;
  --accent: #8E2B44; --accent-2: #CC5671; --on-accent: #fff; --soft: #FBE3E8;
  --t0: linear-gradient(160deg, rgba(204,86,113,.8), rgba(142,43,68,.85)); --t0-ink: #FFF1F4;
  --t1: linear-gradient(160deg, #FFF5F7, #F7D6DC); --t1-ink: #4B0F1E;
  --t2: linear-gradient(160deg, rgba(109,29,50,.85), rgba(75,15,30,.85)); --t2-ink: #FFE8ED;
  --nav-bg: rgba(58,11,23,.9); --nav-ink: #F7D6DC; --glass: rgba(255,255,255,.12); --glass-line: rgba(255,255,255,.2);
  --theme-color: #4B0F1E; --shadow: 0 10px 30px rgba(40,4,12,.35), 0 2px 6px rgba(40,4,12,.15);
  --meter: linear-gradient(90deg, #8E2B44, #E07A94);
}
/* 5 · Noir & Blanc */
[data-theme="nb"] {
  --bg1: #0E0E0E; --bg2: #161616; --bg3: #262626; --bg-img: none; --bg-img-lg: none;
  --on-bg: #FFFFFF; --on-bg-muted: #BDBDBD;
  --card1: #FFFFFF; --card2: #F4F4F4; --card-line: #FFFFFF;
  --ink: #111111; --ink-muted: #555555; --line: #DDDDDD;
  --accent: #111111; --accent-2: #3A3A3A; --on-accent: #fff; --soft: #EEEEEE;
  --t0: #2A2A2A; --t0-ink: #FFFFFF; --t1: #FFFFFF; --t1-ink: #111111; --t2: #1B1B1B; --t2-ink: #FFFFFF;
  --nav-bg: rgba(0,0,0,.92); --nav-ink: #D6D6D6; --glass: rgba(255,255,255,.1); --glass-line: rgba(255,255,255,.22);
  --theme-color: #0E0E0E; --shadow: 0 8px 24px rgba(0,0,0,.4);
  --meter: linear-gradient(90deg, #111, #555);
}
/* 6 · Lavande douce */
[data-theme="lavande"] {
  --bg1: #F3EFF9; --bg2: #E6DEF3; --bg3: #CFC3E6; --bg-img: none; --bg-img-lg: none;
  --on-bg: #2E2640; --on-bg-muted: #5E5275;
  --card1: #FFFFFF; --card2: #F7F3FC; --card-line: #ECE5F6;
  --ink: #2E2640; --ink-muted: #6A5F80; --line: #E3DAF0;
  --accent: #6F5B9A; --accent-2: #9C88C9; --on-accent: #fff; --soft: #EEE7F8;
  --t0: linear-gradient(160deg, #9C88C9, #7A66A8); --t0-ink: #FFFFFF;
  --t1: linear-gradient(160deg, #FFFFFF, #F1EBFA); --t1-ink: #2E2640;
  --t2: linear-gradient(160deg, #DCD2EE, #C9BCE4); --t2-ink: #2E2640;
  --nav-bg: rgba(255,255,255,.92); --nav-ink: #6F5B9A; --glass: rgba(111,91,154,.08); --glass-line: rgba(111,91,154,.16);
  --theme-color: #F3EFF9; --shadow: 0 8px 24px rgba(80,60,120,.14), 0 1px 3px rgba(80,60,120,.1);
  --meter: linear-gradient(90deg, #7A66A8, #B3A2DA);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; font-family: var(--sans); font-size: 15px; line-height: 1.45; color: var(--on-bg); background: var(--bg1); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
.bg { position: fixed; inset: 0; z-index: -1; background: var(--bg-img) center / cover no-repeat, linear-gradient(165deg, var(--bg1) 0%, var(--bg2) 55%, var(--bg3) 100%); }
@media (min-width: 768px) { .bg { background: var(--bg-img-lg) center / cover no-repeat, linear-gradient(165deg, var(--bg1) 0%, var(--bg2) 55%, var(--bg3) 100%); } }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 8px; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.ic.xs { width: .85em; height: .85em; display: inline-block; vertical-align: -1px; }
.sr-only, .chk input { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 300; background: var(--card1); color: var(--ink); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 8px; }
.muted { color: var(--ink-muted); }
.small { font-size: .85rem; }
.center { text-align: center; justify-content: center; }
.hint { font-size: .8rem; color: var(--ink-muted); margin-top: var(--s2); }
.warn { color: #C0392B; }
.serif { font-family: var(--serif); }
.pre { white-space: pre-wrap; }
.noscript { padding: 24px; }
h1[tabindex="-1"]:focus { outline: none; }
.form > .btn { grid-column: 1 / -1; justify-self: start; }
.loading { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 80px 0; color: var(--on-bg-muted); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--glass-line); border-top-color: var(--accent-2); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Coque ---------- */
.shell { min-height: 100vh; }
.sidebar, .rail, .top-actions .add-desktop { display: none; }
.top-brand span:last-child { white-space: nowrap; }
.dc-num, .ring b, .big-num, .kpi b, .brand-years, .cal-title, .stepper output, .pomo output, .wcol-head, .rail-y, .goal-cat b, .mini h3, .page-head h1, .card-head h2, .dc-my, .sheet-head h2, .member b { font-variant-numeric: lining-nums; }
.main-col { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: calc(var(--s2) + var(--safe-t)) var(--s4) var(--s2); background: linear-gradient(180deg, var(--bg1) 30%, transparent); }
.top-brand { display: flex; align-items: center; gap: var(--s2); font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--on-bg); min-height: 44px; }
.logo-wrap { display: inline-flex; width: 34px; }
.logo-wrap .panda { width: 100%; height: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.2)); }
.top-actions { display: flex; align-items: center; gap: var(--s2); }
.hide-mobile { display: none !important; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: inherit; transition: background .2s var(--ease), transform .15s; flex: none; }
.icon-btn:hover { background: var(--glass); }
.icon-btn:active { transform: scale(.94); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn.glass { background: var(--glass); border: 1px solid var(--glass-line); color: var(--on-bg); }
.icon-btn.sm { width: 36px; height: 36px; }
.icon-btn.sm::after { content: ''; position: absolute; inset: -4px; } /* cible tactile 44 px */
.icon-btn.xs { width: 30px; height: 30px; opacity: .55; }
.icon-btn.xs::after { content: ''; position: absolute; inset: -7px; }
.icon-btn .ic { width: 18px; height: 18px; }
.bell-dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: #E2546E; box-shadow: 0 0 0 2px var(--bg1); }
.view { padding: 0 var(--s4) calc(var(--nav-h) + 40px + var(--safe-b)); max-width: 1400px; margin: 0 auto; outline: none; }
.back { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; color: var(--on-bg-muted); font-size: .9rem; margin-bottom: var(--s1); }
.back .ic { width: 14px; height: 14px; }
[dir="rtl"] .back .ic, [dir="rtl"] [data-action="cal-step"] .ic, [dir="rtl"] .link-more .ic, [dir="rtl"] .pager .ic { transform: scaleX(-1); }

/* ---------- Navigation basse ---------- */
.bottom-nav { position: fixed; z-index: 50; left: var(--s3); right: var(--s3); bottom: calc(var(--s2) + var(--safe-b)); height: var(--nav-h); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 0 var(--s2); border-radius: var(--r-xl); background: var(--nav-bg); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); border: 1px solid var(--glass-line); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; margin: 0 2px; border-radius: var(--r); color: var(--nav-ink); font-size: .7rem; font-weight: 500; transition: background .2s, color .2s; }
.bottom-nav a .ic { width: 21px; height: 21px; }
.bottom-nav a.active { background: var(--t0); color: var(--t0-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.bottom-nav span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fab { justify-self: center; width: 60px; height: 60px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: radial-gradient(circle at 35% 30%, #fff, var(--card2)); border: 3px solid var(--nav-bg); box-shadow: 0 8px 22px rgba(0,0,0,.3), 0 0 0 6px rgba(255,255,255,.08); transition: transform .15s var(--ease); }
.fab .ic { width: 24px; height: 24px; }
.fab:active { transform: scale(.94); }

/* ---------- Titres de page ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin: var(--s2) 0 var(--s4); }
.page-head h1 { font-family: var(--serif); font-size: 2.1rem; line-height: 1.05; color: var(--on-bg); letter-spacing: .2px; }
.page-head .sub { color: var(--on-bg-muted); font-size: .88rem; margin-top: 4px; }
.page-head .sub .warn, .page-head .sub b.warn { color: #FFB4C0; }
[data-theme="ivoire"] .page-head .sub .warn, [data-theme="lavande"] .page-head .sub .warn { color: #B03A4E; }
.page-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.sg-title { font-family: var(--serif); font-size: 1.3rem; color: var(--on-bg); margin: var(--s5) 0 var(--s3); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4); border-radius: 10px; font-weight: 600; font-size: .9rem; background: var(--soft); color: var(--ink); border: 1px solid transparent; transition: transform .15s, filter .2s; white-space: nowrap; }
.btn .ic { width: 15px; height: 15px; }
.btn.sm { min-height: 40px; padding: 0 var(--s3); font-size: .85rem; border-radius: 12px; }
.btn.primary { background: linear-gradient(160deg, var(--accent-2), var(--accent)); color: var(--on-accent); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.btn.ghost { background: transparent; border-color: var(--line); }
.page-head .btn.ghost, .cal-bar .btn.ghost, .page-actions .btn:not(.primary) { color: var(--on-bg); border-color: var(--glass-line); background: var(--glass); }
.btn.danger { background: #B3364F; color: #fff; }
.btn.danger.ghost { background: transparent; color: #B3364F; border-color: rgba(179,54,79,.35); }
.btn:active { transform: scale(.97); }
.btn:hover { filter: brightness(1.05); }
.btn-row { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }
.link-more { display: grid; place-items: center; width: 36px; height: 36px; margin-inline-start: auto; color: var(--ink-muted); border-radius: 50%; }
.link-more:hover { background: var(--soft); }
.link-more .ic { width: 14px; height: 14px; }

/* ---------- Cartes ---------- */
.card { background: linear-gradient(165deg, var(--card1), var(--card2)); color: var(--ink); border-radius: var(--r-lg); padding: var(--s4); box-shadow: var(--shadow); border: 1px solid var(--card-line); position: relative; min-width: 0; }
.card + .card { margin-top: var(--s4); }
.card-head { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3); min-height: 36px; }
.card-head h2 { font-family: var(--serif); font-size: 1.32rem; line-height: 1.15; flex: 1; min-width: 0; color: var(--ink); }
.card-head h2 small { display: block; font-family: var(--sans); font-size: .75rem; color: var(--ink-muted); font-weight: 500; margin-top: 2px; }
.card-ic { color: var(--accent); display: grid; place-items: center; }
.card-ic .ic { width: 22px; height: 22px; }
.card-ic.big .ic { width: 30px; height: 30px; }
.pager { display: flex; gap: 2px; margin-inline-start: auto; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; background: var(--soft); color: var(--accent); font-size: .72rem; font-weight: 600; font-style: normal; white-space: nowrap; }
.tag.hi { background: #F8D7DE; color: #9B2C46; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s3); padding: var(--s6) var(--s4); color: var(--ink-muted); }
.view > .empty, .tlist > .empty, .space-group .empty { background: linear-gradient(165deg, var(--card1), var(--card2)); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.empty > .ic { width: 34px; height: 34px; color: var(--accent-2); opacity: .8; }
.empty p { max-width: 32ch; }
.grid-2 { display: grid; gap: var(--s4); }
.grid-2 > .card + .card { margin-top: 0; }
.grid-2 + .card, .kpis + .card, .card + .grid-2, .grid-2 + .grid-2 { margin-top: var(--s4); }
.stack { display: grid; gap: var(--s2); }

/* Stickers décoratifs facultatifs */
.c-prio::after { content: ''; position: absolute; inset-inline-end: -6px; bottom: -8px; width: 76px; height: 76px; background: url(../assets/fleurs/fleurs_01_01.svg) center / contain no-repeat; pointer-events: none; opacity: .9; }
.c-rem::after { content: ''; position: absolute; inset-inline-end: 10px; top: -14px; width: 44px; height: 44px; background: url(../assets/stickers/rond_coeur.webp) center / contain no-repeat; pointer-events: none; }
.no-stickers .c-prio::after, .no-stickers .c-rem::after, .no-decor .deco { display: none !important; }

/* ---------- Jauges / anneaux ---------- */
.meter { margin-bottom: var(--s3); }
.meter:last-child { margin-bottom: 0; }
.meter-top { display: flex; justify-content: space-between; gap: var(--s2); font-size: .86rem; margin-bottom: 5px; }
.meter-top b { font-weight: 600; font-variant-numeric: tabular-nums; }
.meter-track { height: 8px; border-radius: 99px; background: rgba(0,0,0,.07); overflow: hidden; }
.meter-track i { display: block; height: 100%; border-radius: 99px; background: var(--meter); transition: width .5s var(--ease); }
.ring { position: relative; flex: none; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-bg { stroke: rgba(0,0,0,.08); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); }
.ring b { position: relative; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--ink); }

/* ---------- Accueil ---------- */
.hero { position: relative; margin: 0 calc(-1 * var(--s4)); padding: var(--s2) var(--s4) var(--s4); min-height: 320px; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.hero-scene { position: absolute; inset: 0; z-index: -1; }
.hero-scene picture, .hero-scene img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, transparent 40%, color-mix(in srgb, var(--bg2) 85%, transparent) 92%); }
[data-theme="ivoire"] .hero-scene::after, [data-theme="lavande"] .hero-scene::after { background: linear-gradient(180deg, transparent 35%, color-mix(in srgb, var(--bg1) 92%, transparent) 95%); }
.desk { position: absolute; right: -6px; bottom: 26px; width: 58%; max-width: 300px; height: auto; }
.hero-branch { position: absolute; left: -26px; top: -22px; width: 150px; transform: scaleX(-1) rotate(8deg); z-index: 1; pointer-events: none; filter: drop-shadow(0 3px 6px rgba(0,0,0,.15)); }
.hero-branch-2 { display: none; }
.hero-text { text-align: center; color: #FFF6F4; text-shadow: 0 2px 12px rgba(40,15,35,.35); }
.brand-title { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 2.6rem; line-height: 1; letter-spacing: .3px; }
.brand-years { font-family: var(--serif); font-style: italic; font-size: 1.35rem; letter-spacing: 6px; margin-top: 4px; }
.brand-years::after { content: ''; display: block; width: 64px; height: 1px; margin: 8px auto 0; background: currentColor; opacity: .6; }
.hello { margin-top: 6px; font-size: .9rem; opacity: .9; }
.hero-row { margin-top: auto; display: flex; align-items: center; gap: var(--s3); padding-top: var(--s4); }
.date-card { position: relative; flex: none; width: 150px; padding: var(--s3) var(--s3) var(--s3); border-radius: var(--r-lg); text-align: center; color: var(--ink); background: linear-gradient(165deg, rgba(255,250,248,.96), rgba(244,226,226,.93)); box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.8); }
.dc-day { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.dc-num { display: block; font-family: var(--serif); font-weight: 700; font-size: 3.6rem; line-height: .95; color: #2C1424; }
.dc-my { display: block; font-family: var(--serif); font-size: 1rem; font-weight: 600; }
.dc-ic { position: absolute; top: 10px; inset-inline-end: 10px; width: 16px; height: 16px; color: var(--accent); opacity: .7; }
.quote { margin: 0; flex: 1; font-family: var(--serif); font-style: italic; font-size: 1.12rem; line-height: 1.3; color: #FFF5F2; text-shadow: 0 1px 8px rgba(40,15,35,.5); padding-inline-start: var(--s3); border-inline-start: 1px solid rgba(255,255,255,.45); }
[data-theme="ivoire"] .quote, [data-theme="lavande"] .quote { color: var(--on-bg); text-shadow: none; border-color: var(--line); }

.shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); margin: var(--s2) 0 var(--s4); }
.tile, .space-tile, .add-opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: var(--s2) 4px; border-radius: var(--r); text-align: center; font-size: .78rem; font-weight: 500; line-height: 1.15; border: 1px solid rgba(255,255,255,.22); box-shadow: 0 6px 16px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .15s var(--ease), filter .2s; }
.tile .ic, .space-tile .ic, .add-opt .ic { width: 24px; height: 24px; }
.tile span { max-width: 100%; overflow-wrap: anywhere; }
.tile:active, .space-tile:active, .add-opt:active { transform: scale(.96); }
.tile:hover, .space-tile:hover, .add-opt:hover { filter: brightness(1.06); }
.tile-0 { background: var(--t0); color: var(--t0-ink); }
.tile-1 { background: var(--t1); color: var(--t1-ink); }
.tile-2 { background: var(--t2); color: var(--t2-ink); }
.tile-extra { display: none; }

.dash { display: grid; gap: var(--s4); }
.dash > .card + .card { margin-top: 0; }
.onboard { margin-bottom: var(--s4); }
.checklist li { display: flex; align-items: center; gap: var(--s2); border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.chk { display: flex; align-items: center; gap: var(--s3); min-height: 44px; flex: 1; min-width: 0; cursor: pointer; }
.chk .box { width: 22px; height: 22px; flex: none; border-radius: 6px; border: 1.5px solid var(--ink-muted); display: grid; place-items: center; transition: background .15s, border-color .15s; background: rgba(255,255,255,.6); }
.round .chk .box, .chk .box.round { border-radius: 50%; }
.chk input:checked + .box { background: var(--accent); border-color: var(--accent); }
.chk input:checked + .box::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.chk input:focus-visible + .box { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.chk .txt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.chk input:checked ~ .txt { color: var(--ink-muted); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.chk .txt small { color: var(--ink-muted); }

.week-list li a { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: var(--s2); min-height: 40px; padding: 4px var(--s2); border-radius: 10px; border-bottom: 1px solid var(--line); }
.week-list li:last-child a { border-bottom: 0; }
.wk-row.today a { background: var(--soft); border-color: transparent; }
.wk-d { font-size: .85rem; color: var(--ink-muted); }
.wk-d b { color: var(--ink); font-weight: 600; }
.wk-e { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 8px; min-width: 0; }
.wk-e em { font-style: normal; color: var(--ink-muted); font-size: .78rem; flex: none; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); flex: none; }

.habits { display: flex; align-items: center; gap: var(--s4); }
.h-table { flex: 1; min-width: 0; }
.h-letters, .dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; justify-items: center; }
.h-letters { margin-inline-start: 92px; font-size: .7rem; color: var(--ink-muted); font-weight: 600; margin-bottom: 2px; }
.h-table li { display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 4px; min-height: 32px; }
.h-name { font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdot { position: relative; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ink-muted); opacity: .8; }
.hdot::after { content: ''; position: absolute; inset: -9px -5px; }
.hdot.on { background: var(--accent); border-color: var(--accent); opacity: 1; }
.hdot.now { box-shadow: 0 0 0 2px var(--soft), 0 0 0 3px var(--accent-2); }
.hdot:disabled { opacity: .3; cursor: default; }
.goal-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.goal-cat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: var(--s3) 4px; border-radius: var(--r); background: rgba(255,255,255,.65); border: 1px solid var(--line); text-align: center; min-height: 92px; justify-content: center; }
.goal-cat .ic { width: 24px; height: 24px; color: var(--accent); }
.goal-cat b { font-family: var(--serif); font-size: 1.05rem; }
.goal-cat small { font-size: .72rem; color: var(--ink-muted); }
.progress-month { display: flex; align-items: flex-end; gap: var(--s4); }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 10px; height: 96px; }
.bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); opacity: .9; }
.bars i:nth-child(odd) { opacity: .6; }

/* ---------- Segments, puces, barres de navigation datées ---------- */
.seg { display: flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-line); margin-bottom: var(--s3); }
.seg button { flex: 1; min-height: 40px; border-radius: 9px; font-weight: 600; font-size: .86rem; color: var(--on-bg-muted); }
.seg button.on { background: linear-gradient(165deg, var(--card1), var(--card2)); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s3); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 10px; font-size: .85rem; font-weight: 500; background: var(--glass); border: 1px solid var(--glass-line); color: var(--on-bg); }
.card .chip { background: var(--soft); border-color: var(--line); color: var(--ink); }
.chip.on { background: linear-gradient(165deg, var(--accent-2), var(--accent)); color: var(--on-accent); border-color: transparent; }
.chip small { opacity: .7; }
.chips.small .chip { min-height: 36px; font-size: .8rem; }
.pdot { width: 10px; height: 10px; border-radius: 50%; background: var(--pc, var(--accent-2)); flex: none; display: inline-block; }
.pdot.big { width: 14px; height: 14px; }
.cal-bar { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3); color: var(--on-bg); }
.cal-bar .icon-btn { background: var(--glass); border: 1px solid var(--glass-line); }
.cal-title { flex: 1; text-align: center; font-family: var(--serif); font-size: 1.35rem; line-height: 1.15; min-width: 0; }
.cal-bar.compact .cal-title { font-size: 1.2rem; }

/* ---------- Calendrier ---------- */
.month-grid { padding: var(--s3); }
.mhead, .mbody { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.mhead span { text-align: center; font-size: .72rem; font-weight: 600; color: var(--ink-muted); padding: 4px 0 6px; text-transform: capitalize; }
.mday { min-height: 48px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 6px; gap: 3px; font-variant-numeric: tabular-nums; font-weight: 500; transition: background .15s; }
.mday:hover { background: var(--soft); }
.mday.out { color: var(--ink-muted); opacity: .45; }
.mday.today span:first-child { background: var(--accent); color: var(--on-accent); border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; margin-top: -3px; }
.mday.sel { background: var(--soft); box-shadow: inset 0 0 0 2px var(--accent-2); }
.mday:disabled { opacity: .2; }
.marks { display: flex; gap: 2px; height: 6px; }
.mk { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); }
.mk.anniversaire { background: #E2A13B; } .mk.rdv { background: #5C8DB8; } .mk.famille { background: #6FA37A; } .mk.pro { background: var(--accent); } .mk.task { background: transparent; border: 1px solid var(--ink-muted); }
.day-panel { margin-top: var(--s4); }
.items li + li { border-top: 1px solid var(--line); }
.item { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 48px; text-align: start; padding: 4px 0; }
.item .time { flex: none; min-width: 52px; font-size: .8rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; display: flex; align-items: center; }
.item .time .ic { width: 16px; height: 16px; }
.it-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.it-t small { color: var(--ink-muted); }
.item.task .chk { flex: none; min-width: 52px; }
.item.task.done .it-t { text-decoration: line-through; color: var(--ink-muted); }
.linkish { text-align: start; min-height: 44px; }
.pad { padding: var(--s2) 0; }
.week-cols { display: grid; gap: var(--s3); }
.week-cols .card + .card { margin-top: 0; }
.wcol { padding: var(--s3); }
.wcol.today { box-shadow: var(--shadow), inset 0 0 0 2px var(--accent-2); }
.wcol-head { display: flex; align-items: baseline; justify-content: space-between; width: 100%; min-height: 36px; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.wcol-head b { font-size: 1.4rem; }
.year-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.year-grid .card + .card { margin-top: 0; }
.mini { padding: var(--s3); text-align: start; }
.mini h3 { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 6px; }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; font-size: .62rem; text-align: center; font-variant-numeric: tabular-nums; }
.mini-grid span { padding: 2px 0; border-radius: 4px; }
.mini-grid .today { background: var(--accent); color: var(--on-accent); }
.mini-grid .has:not(.today) { background: var(--soft); font-weight: 700; }

/* ---------- Tâches ---------- */
.tgroup { padding: var(--s3) var(--s4); }
.tlist .card + .card { margin-top: var(--s3); }
.tg-title { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 4px; display: flex; gap: 8px; align-items: baseline; }
.tg-title small { font-family: var(--sans); font-size: .75rem; color: var(--ink-muted); }
.tg-title.warn { color: #A8304A; }
.task-row { display: flex; align-items: center; gap: var(--s3); border-bottom: 1px solid var(--line); }
.task-row:last-child { border-bottom: 0; }
.task-row .chk { flex: none; }
.task-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: start; min-height: 52px; justify-content: center; padding: 6px 0; }
.tt { overflow-wrap: anywhere; }
.tmeta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; color: var(--ink-muted); }
.task-row.done .tt { text-decoration: line-through; color: var(--ink-muted); }
.task-row.p1 .chk .box { border-color: #B3364F; }

/* ---------- Espaces ---------- */
.space-group { margin-bottom: var(--s2); }
.space-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.space-tile { align-items: flex-start; text-align: start; padding: var(--s4); min-height: 104px; gap: 4px; font-size: .95rem; font-weight: 600; }
.space-tile .ic { width: 26px; height: 26px; margin-bottom: 4px; }
.space-tile small { font-size: .74rem; font-weight: 400; opacity: .8; }

/* ---------- Feuille modale ---------- */
.sheet { position: fixed; inset: 0; z-index: 200; display: none; }
.sheet.open { display: block; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(20,10,20,.5); animation: fade .2s; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; background: linear-gradient(170deg, var(--card1), var(--card2)); color: var(--ink); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: var(--s2) var(--s4) calc(var(--s6) + var(--safe-b)); box-shadow: 0 -10px 40px rgba(0,0,0,.3); animation: up .28s var(--ease); }
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto var(--s2); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s3); }
.sheet-head h2 { font-family: var(--serif); font-size: 1.5rem; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.add-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.add-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: var(--s4); }
.add-opt small { font-size: .7rem; opacity: .8; }
.mini-title { font-family: var(--serif); font-size: 1.1rem; margin: var(--s3) 0 var(--s1); }
.search-results li a { display: grid; grid-template-columns: 1fr auto; gap: 0 var(--s2); padding: var(--s2) 0; min-height: 48px; border-bottom: 1px solid var(--line); }
.search-results small { grid-column: 1 / -1; font-size: .7rem; color: var(--accent); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.search-results em { font-style: normal; color: var(--ink-muted); font-size: .8rem; }
.photo-full { width: 100%; border-radius: var(--r); margin-bottom: var(--s3); max-height: 60vh; object-fit: contain; background: #0002; }

/* ---------- Formulaires ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.half { grid-column: span 1; }
.field label { font-size: .8rem; font-weight: 600; color: var(--ink-muted); }
.field.row { flex-direction: row; align-items: center; flex-wrap: wrap; margin-top: var(--s3); }
.field.row label { flex: 1 1 100%; }
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]), select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.85); color: var(--ink); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 30%, transparent); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: #B3364F; }
input[type="color"] { width: 56px; height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 4px; background: #fff; }
.field-err { color: #B3364F; font-size: .78rem; min-height: 0; }
.field-err:empty { display: none; }
.form-actions { display: flex; justify-content: space-between; gap: var(--s2); margin-top: var(--s5); flex-wrap: wrap; }
.form-actions .btn { flex: 1 1 auto; }
.check-row { display: flex; align-items: center; gap: var(--s2); min-height: 44px; font-size: .9rem; color: var(--ink); font-weight: 500; }
.check-row input { width: 20px; height: 20px; accent-color: var(--accent); }
.inline-add { display: flex; gap: var(--s2); margin-top: var(--s2); align-items: center; }
.inline-add input { min-height: 40px !important; }
.inline-add.wide { margin: var(--s3) 0; }
.search-field { position: relative; margin: var(--s3) 0; }
.search-field .ic { position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; color: var(--ink-muted); }
.search-field input { padding-inline-start: 40px !important; }
.switch { display: flex; align-items: center; gap: var(--s3); min-height: 48px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 46px; height: 28px; border-radius: 99px; background: var(--line); position: relative; flex: none; transition: background .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid var(--accent-2); outline-offset: 2px; }

/* ---------- Paramètres ---------- */
.settings { display: grid; gap: var(--s4); }
.settings .card + .card { margin-top: 0; }
.theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.theme-opt { display: flex; align-items: center; gap: var(--s2); min-height: 52px; padding: var(--s2); border-radius: 10px; border: 1.5px solid var(--line); text-align: start; font-size: .82rem; font-weight: 500; background: rgba(255,255,255,.6); }
.theme-opt.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--soft); }
.th-prev { width: 34px; height: 34px; border-radius: 10px; flex: none; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); border: 1px solid rgba(0,0,0,.12); }

/* ---------- KPI, graphiques ---------- */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); margin-bottom: var(--s4); }
.kpis.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { background: linear-gradient(165deg, var(--card1), var(--card2)); color: var(--ink); border-radius: var(--r); padding: var(--s3); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; min-width: 0; border: 1px solid var(--card-line); }
.kpi .ic { width: 18px; height: 18px; color: var(--accent); margin-bottom: 2px; }
.kpi small { font-size: .72rem; color: var(--ink-muted); font-weight: 600; }
.kpi b { font-family: var(--serif); font-size: 1.3rem; line-height: 1.1; overflow-wrap: anywhere; }
.kpi.in .ic { color: #3E8A5B; } .kpi.out .ic { color: #B3364F; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: var(--s2); }
.chart .col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.col-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.col-bars i { flex: 1; max-width: 28px; min-height: 2px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
.col-bars i.b2 { background: linear-gradient(180deg, #E7A8B6, #C96A82); }
.chart .col span { font-size: .64rem; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.legend { display: flex; gap: var(--s3); align-items: center; font-size: .75rem; color: var(--ink-muted); margin-top: var(--s2); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg1 { background: var(--accent); } .lg2 { background: #C96A82; }
.big-num { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1.1; }
.big-num small { font-size: 1rem; color: var(--ink-muted); }

/* ---------- Listes ---------- */
.tx li + li { border-top: 1px solid var(--line); }
.tx button { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 56px; text-align: start; padding: 6px 0; }
.tx-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--accent); flex: none; }
.tx-ic .ic { width: 17px; height: 17px; }
.tx-ic.in { color: #3E8A5B; background: #E3F1E7; } .tx-ic.out { color: #B3364F; background: #F8E1E6; }
.tx-m { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tx-m b { font-weight: 600; overflow-wrap: anywhere; }
.tx-m small { font-size: .78rem; color: var(--ink-muted); }
.tx-a { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tx-a.in { color: #2F7A4C; } .tx-a.out { color: var(--ink); }
.res { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--soft); flex: none; }
.res.rV { background: #DDEFE3; color: #2F7A4C; } .res.rD { background: #F8E1E6; color: #A8304A; } .res.rN { background: #EFE8DC; color: #7A6A4F; }
.budgets li { margin-bottom: var(--s3); }
.budget.over .meter-track i { background: linear-gradient(90deg, #C0392B, #E5707F); }
.budget.over b { color: #A8304A; }
.contacts li { display: flex; align-items: center; gap: var(--s3); min-height: 60px; border-bottom: 1px solid var(--line); }
.contacts li:last-child { border-bottom: 0; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--pc, var(--t0)); color: #fff; font-weight: 600; font-size: .85rem; flex: none; }
.avatar.big { width: 56px; height: 56px; font-size: 1.3rem; font-family: var(--serif); }
.c-main { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: start; min-height: 52px; justify-content: center; }
.c-main small { color: var(--ink-muted); font-size: .78rem; }

/* ---------- Modules : composants spécifiques ---------- */
.proj { border-top: 4px solid var(--pc); }
.proj-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s3); }
.hgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: var(--s3); }
.hcell { min-height: 46px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0,0,0,.04); font-variant-numeric: tabular-nums; }
.hcell small { font-size: .62rem; color: var(--ink-muted); }
.hcell.on { background: var(--accent); color: var(--on-accent); }
.hcell.on small { color: inherit; opacity: .8; }
.hcell.now { box-shadow: inset 0 0 0 2px var(--accent-2); }
.tpl-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.tpl { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: var(--s2); border-radius: var(--r); background: var(--glass); border: 1px solid var(--glass-line); color: var(--on-bg); font-size: .7rem; text-align: center; line-height: 1.2; min-height: 96px; }
.tpl img { width: 48px; height: 48px; }
.notes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.notes-grid .card + .card { margin-top: 0; }
.note-card { text-align: start; display: flex; flex-direction: column; gap: 6px; min-height: 140px; padding: var(--s3); }
.note-card h3 { font-family: var(--serif); font-size: 1.12rem; line-height: 1.2; overflow-wrap: anywhere; }
.note-card p { font-size: .82rem; color: var(--ink-muted); white-space: pre-line; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; flex: 1; }
.note-card small { font-size: .7rem; color: var(--ink-muted); }
.chal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 4px; margin-top: var(--s3); }
.ccell { min-height: 38px; border-radius: 10px; background: rgba(0,0,0,.05); font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ccell.on { background: var(--accent); color: var(--on-accent); }
.ccell.now { box-shadow: inset 0 0 0 2px var(--accent-2); }
.ccell:disabled { opacity: .35; }
.pig-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; margin-top: var(--s3); }
.pcell { min-height: 40px; border-radius: 10px; font-size: .78rem; font-weight: 600; background: rgba(255,255,255,.75); border: 1px solid var(--line); font-variant-numeric: tabular-nums; transition: background .15s, transform .1s; }
.pcell.on { background: linear-gradient(160deg, var(--accent-2), var(--accent)); color: var(--on-accent); border-color: transparent; }
.pcell:active { transform: scale(.94); }
.moods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.mood { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: var(--s2) 2px; border-radius: 10px; border: 1.5px solid transparent; font-size: .7rem; text-align: center; line-height: 1.15; min-height: 84px; }
.mood img { width: 44px; height: 44px; transition: transform .2s; }
.mood.on { border-color: var(--accent); background: var(--soft); }
.mood.on img { transform: scale(1.08); }
.stepper { display: flex; align-items: center; justify-content: center; gap: var(--s4); margin-bottom: var(--s3); }
.stepper .icon-btn { background: var(--soft); }
.stepper output { font-family: var(--serif); font-size: 1.1rem; min-width: 80px; text-align: center; }
.stepper output b { font-size: 2.2rem; }
.stars { display: flex; gap: 4px; justify-content: center; margin-top: var(--s2); }
.star { width: 40px; height: 40px; display: grid; place-items: center; color: var(--line); }
.star .ic { width: 22px; height: 22px; }
.star.on { color: #E2A13B; }
.glasses { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s2); margin-bottom: var(--s2); }
.glass { min-height: 48px; border-radius: 12px; display: grid; place-items: center; color: var(--line); background: rgba(0,0,0,.03); }
.glass .ic { width: 22px; height: 22px; }
.glass.on { color: #4F8DC0; background: #E4F0F9; }
.week-moods { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.week-moods div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.week-moods img { width: 34px; height: 34px; }
.week-moods small, .week-moods em { font-size: .7rem; color: var(--ink-muted); font-style: normal; }
.nomood { width: 34px; height: 34px; display: grid; place-items: center; color: var(--line); font-size: 1.4rem; }
.pomo { text-align: center; }
.pomo output { display: block; font-family: var(--serif); font-size: 3.4rem; font-weight: 600; font-variant-numeric: tabular-nums; margin-bottom: var(--s2); }
.pomo select { width: auto; min-width: 140px; }
.members { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); margin-bottom: var(--s4); }
.members .card + .card { margin-top: 0; }
.member { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.member b { font-family: var(--serif); font-size: 1.2rem; }
.member small { color: var(--ink-muted); font-size: .78rem; }
.member em { font-style: normal; font-size: .75rem; color: var(--accent); }
.preg-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: var(--s3) 0; }
.preg-grid span { min-height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: .75rem; font-weight: 600; background: rgba(0,0,0,.05); color: var(--ink-muted); }
.preg-grid .past { background: var(--soft); color: var(--accent); }
.preg-grid .now { background: var(--accent); color: var(--on-accent); }
.moon-now { display: flex; align-items: center; gap: var(--s4); }
.moon-dark { fill: #3B3046; }
.moon-lit { fill: #FBEED7; }
.moon-svg { filter: drop-shadow(0 0 8px rgba(251,238,215,.25)); flex: none; }
.moon-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: var(--s3); }
.moon-month div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; border-radius: 10px; }
.moon-month div.today { background: var(--soft); }
.moon-month small { font-size: .66rem; color: var(--ink-muted); }
.album { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.photo { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--glass); box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-size: .78rem; color: #fff; text-align: start; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.photo.missing::before { content: 'Photo indisponible sur cet appareil'; position: absolute; inset: 0; display: grid; place-items: center; font-size: .75rem; color: var(--on-bg-muted); padding: 8px; text-align: center; }
.trip { display: flex; align-items: center; gap: var(--s3); }
.trip > div { flex: 1; min-width: 0; }
.trip h2 { font-family: var(--serif); font-size: 1.3rem; }
.lock-card { display: flex; flex-direction: column; align-items: center; gap: var(--s3); padding: var(--s8) var(--s4); text-align: center; }
.lock-ic { width: 40px; height: 40px; color: var(--accent); }
.lock-card .form { grid-template-columns: 1fr; max-width: 280px; width: 100%; }
.lock-card input { text-align: center; letter-spacing: 8px; font-size: 1.3rem !important; }

/* ---------- Toast ---------- */
.toast { position: fixed; z-index: 300; left: 50%; bottom: calc(var(--nav-h) + 28px + var(--safe-b)); transform: translate(-50%, 20px); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 10px; background: #2A1E2A; color: #fff; font-size: .9rem; box-shadow: 0 10px 30px rgba(0,0,0,.3); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #8E2238; }

/* ======================================================================
   TABLETTE ≥ 768 px
   ====================================================================== */
@media (min-width: 768px) {
  body { font-size: 15.5px; }
  .view { padding-left: var(--s6); padding-right: var(--s6); }
  .topbar { padding-left: var(--s6); padding-right: var(--s6); }
  .hide-mobile { display: inline-grid !important; }
  .bottom-nav { left: 50%; right: auto; width: min(560px, calc(100% - 48px)); transform: translateX(-50%); }
  .bottom-nav a { flex-direction: row; gap: 8px; font-size: .8rem; }
  .hero { margin: 0 calc(-1 * var(--s6)); padding: var(--s4) var(--s6) var(--s6); min-height: 380px; }
  .desk { width: 44%; max-width: 380px; right: var(--s4); bottom: 40px; }
  .hero-branch { width: 210px; }
  .brand-title { font-size: 3.4rem; }
  .date-card { width: 180px; }
  .dc-num { font-size: 4.4rem; }
  .quote { font-size: 1.35rem; max-width: 340px; flex: 0 1 auto; }
  .shortcuts { grid-template-columns: repeat(6, 1fr); gap: var(--s3); }
  .tile-extra { display: flex; }
  .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-goals { grid-column: 1 / -1; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 > .span-2 { grid-column: 1 / -1; }
  .space-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .settings { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .theme-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .year-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .week-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mday { min-height: 64px; }
  .month-grid { padding: var(--s4); }
  .notes-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tpl-row { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .pig-grid { grid-template-columns: repeat(16, minmax(0, 1fr)); }
  .moods { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .grid-2 .moods { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpis.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .album { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .members { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .add-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sheet-panel { left: 50%; right: auto; top: 50%; bottom: auto; width: min(560px, calc(100% - 48px)); max-height: 86vh; border-radius: var(--r-xl); transform: translate(-50%, -50%); padding: var(--s4) var(--s6) var(--s6); animation: pop .22s var(--ease); }
  .sheet-grip { display: none; }
  .toast { bottom: calc(var(--nav-h) + 36px); }
  @keyframes pop { from { opacity: 0; transform: translate(-50%, -46%); } }
}

/* ======================================================================
   ORDINATEUR ≥ 1180 px : menu latéral + rail années/mois, tableau de bord complet
   ====================================================================== */
@media (min-width: 1180px) {
  :root { --nav-h: 0px; }
  .shell { display: grid; grid-template-columns: 248px minmax(0, 1fr) 96px; align-items: start; }
  .bottom-nav { display: none; }
  .top-actions .add-desktop { display: inline-flex; }
  .sidebar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: var(--s5) var(--s3) var(--s4); background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.08)); border-inline-end: 1px solid var(--glass-line); overflow-y: auto; scrollbar-width: thin; }
  [data-theme="ivoire"] .sidebar, [data-theme="lavande"] .sidebar { background: rgba(255,255,255,.55); }
  .side-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding-bottom: var(--s4); color: var(--on-bg); }
  .side-brand .logo-wrap { width: 54px; margin-bottom: 4px; }
  .sb-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
  .sb-sub { font-size: .9rem; line-height: 1.35; color: var(--on-bg-muted); }
  .side-nav { display: flex; flex-direction: column; gap: 2px; }
  .side-link { display: flex; align-items: center; gap: var(--s3); min-height: 40px; padding: 0 var(--s3); border-radius: 12px; color: var(--on-bg); font-size: .92rem; transition: background .15s; }
  .side-link .ic { width: 18px; height: 18px; opacity: .85; }
  .side-link:hover { background: var(--glass); }
  .side-link.active { background: var(--t0); color: var(--t0-ink); box-shadow: 0 4px 12px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.25); }
  .side-themes { margin-top: auto; padding-top: var(--s4); border-top: 1px solid var(--glass-line); }
  .st-label { display: flex; align-items: center; gap: var(--s2); color: var(--on-bg); font-size: .92rem; margin: 0 0 var(--s3) var(--s2); }
  .swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 0 var(--s1); }
  .swatch { width: 100%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); border: 2px solid rgba(255,255,255,.55); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
  .swatch.on { outline: 2px solid var(--accent-2); outline-offset: 2px; }
  .rail { display: flex; flex-direction: column; align-items: center; position: sticky; top: 0; height: 100vh; padding: 76px var(--s2) var(--s4); gap: var(--s2); overflow-y: auto; scrollbar-width: none; }
  .rail hr { width: 40px; border: 0; border-top: 1px solid var(--glass-line); margin: var(--s2) 0; }
  .rail-years, .rail-months { display: flex; flex-direction: column; gap: 4px; align-items: center; width: 100%; }
  .rail-y { width: 76px; min-height: 40px; border-radius: 999px; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--on-bg); background: var(--glass); border: 1px solid var(--glass-line); }
  .rail-y.on { background: var(--t1); color: var(--t1-ink); }
  .rail-m { width: 64px; min-height: 32px; border-radius: 999px; font-size: .8rem; font-weight: 500; letter-spacing: .5px; color: var(--on-bg); }
  .rail-m:hover { background: var(--glass); }
  .rail-m.on { background: var(--t1); color: var(--t1-ink); font-weight: 700; }
  .topbar { padding: var(--s4) var(--s6) var(--s2); background: none; position: sticky; justify-content: flex-end; }
  .top-brand { display: none; }
  .top-actions { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 999px; padding: 4px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .top-actions .icon-btn.glass { background: transparent; border-color: transparent; }
  .top-actions .add-desktop { border-radius: 999px; }
  .view { padding: 0 var(--s6) var(--s8); }
  .toast { bottom: 32px; }

  /* Tableau de bord ordinateur, composition de la référence */
  .view[data-page="accueil"] { margin-top: -64px; }
  .home { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); grid-auto-flow: row dense; }
  .home .dash { display: contents; }
  .hero { grid-column: 1 / -1; margin: 0; padding: var(--s2) 0 0; min-height: 300px; overflow: visible; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: var(--s6); }
  .hero-scene { position: relative; inset: auto; grid-column: 2; grid-row: 1 / span 2; height: 300px; z-index: 0; border-radius: 240px 240px 0 0; overflow: visible; }
  .hero-scene picture { display: block; position: absolute; left: 6%; right: 18%; top: 0; bottom: 34px; border-radius: 240px 240px 0 0; overflow: hidden; box-shadow: 0 0 0 8px rgba(255,255,255,.08), 0 0 0 9px rgba(255,220,200,.25), var(--shadow); }
  .hero-scene::after { display: none; }
  .desk { right: 0; bottom: 0; width: 64%; max-width: 420px; }
  .hero-branch { left: auto; right: 42%; top: -6px; width: 230px; transform: rotate(-6deg); z-index: 2; }
  .hero-branch-2 { display: block; position: absolute; right: -4%; bottom: 40px; width: 120px; transform: scaleX(-1); z-index: 2; opacity: .85; pointer-events: none; }
  .hero-text { grid-column: 1; text-align: start; color: var(--on-bg); text-shadow: none; padding-top: 36px; }
  .brand-title { font-size: 4.1rem; }
  .brand-years { font-size: 1.7rem; letter-spacing: 8px; display: flex; align-items: center; gap: var(--s4); }
  .brand-years::after { width: 110px; margin: 0; display: inline-block; }
  .hero-row { grid-column: 1; padding-top: var(--s4); align-items: center; }
  .quote { color: var(--on-bg); text-shadow: none; border: 0; padding: 0; font-size: 1.45rem; text-align: center; }
  .shortcuts { grid-column: span 2; margin: 0; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 1fr; align-self: stretch; }
  .tile { min-height: 84px; font-size: .88rem; }
  .tile .ic { width: 28px; height: 28px; }
  .onboard { grid-column: 1 / -1; margin: 0; }
  .c-prio { grid-column: 3; }
  .c-goals { grid-column: auto; }
  .goal-cats .goal-cat { min-height: 84px; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .week-cols { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s2); }
  .wcol { padding: var(--s2); }
  .wcol .item { flex-direction: column; align-items: flex-start; gap: 2px; font-size: .85rem; }
  .year-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  [data-page="calendrier"] .month-grid + .day-panel { margin-top: 0; }
  [data-page="calendrier"] .view-split { display: grid; }
  .mday { min-height: 78px; }
  .space-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .settings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .notes-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1500px) { .shell { grid-template-columns: 264px minmax(0, 1fr) 104px; } .dash, .home { gap: var(--s5); } }

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Impression (export PDF via le navigateur) */
@media print {
  .bg, .sidebar, .rail, .bottom-nav, .topbar, .sheet, .toast, .hero-scene, .deco, .page-actions, .fab { display: none !important; }
  body { background: #fff; color: #000; }
  .view { padding: 0; }
  .card, .kpi { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .page-head h1, .hero-text, .quote { color: #000 !important; text-shadow: none !important; }
}

/* ======================================================================
   RAFFINEMENT TYPOGRAPHIQUE & MISE EN PAGE (v1.0)
   ====================================================================== */
:root { --hair: 1px solid color-mix(in srgb, var(--ink) 9%, transparent); --track: .14em; }
.card { padding: 18px; box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 12px 28px -14px rgba(20,8,20,.45), 0 2px 6px rgba(20,8,20,.08); }
.card-head h2 { font-size: 1.3rem; letter-spacing: .005em; }
.card-head { padding-bottom: 12px; margin-bottom: 4px; border-bottom: var(--hair); }
.card-head + .meter, .card-head + .checklist, .card-head + ul, .card-head + div, .card-head + p { margin-top: 10px; }
.eyebrow { display: block; font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--on-bg-muted); line-height: 1.2; }
.page-head h1 { font-size: 2.2rem; letter-spacing: -.005em; }
.page-head .sub { font-size: .72rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; margin-top: 6px; }
.page-head .sub .warn { text-transform: none; letter-spacing: 0; }
.page-actions .btn { min-height: 40px; }

/* Barre datée : surtitre + titre, flèches fines et symétriques */
.datebar { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: var(--s2); margin: 4px 0 var(--s4); color: var(--on-bg); }
.datebar-t { text-align: center; min-width: 0; }
.datebar-t h2 { font-family: var(--serif); font-weight: 600; font-size: 1.65rem; line-height: 1.1; margin-top: 3px; letter-spacing: .005em; font-variant-numeric: lining-nums; overflow-wrap: anywhere; }
.nav-arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--on-bg); border: 1px solid var(--glass-line); background: transparent; transition: background .2s, opacity .2s; }
.nav-arrow .ic { width: 14px; height: 14px; }
.nav-arrow:hover { background: var(--glass); }
.nav-arrow:disabled { opacity: .25; cursor: default; }
[dir="rtl"] .nav-arrow .ic { transform: scaleX(-1); }
.center-row { display: flex; justify-content: center; margin: -8px 0 var(--s4); }
.center-row .btn.ghost { color: var(--on-bg); border-color: var(--glass-line); }
.seg { margin-bottom: var(--s4); }

/* Vue semaine : agenda éditorial en une carte */
.week-agenda { padding: 4px 18px; }
.wa-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: var(--hair); align-items: start; }
.wa-row:last-child { border-bottom: 0; }
.wa-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; min-height: 56px; border-radius: 10px; color: var(--ink); }
.wa-date:hover { background: var(--soft); }
.wa-wd { font-size: .64rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--ink-muted); }
.wa-num { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; line-height: 1; font-variant-numeric: lining-nums; margin-top: 2px; }
.wa-row.today .wa-date { background: linear-gradient(165deg, var(--accent-2), var(--accent)); color: var(--on-accent); }
.wa-row.today .wa-wd { color: inherit; opacity: .85; }
.wa-row.off { opacity: .35; pointer-events: none; }
.wa-items { min-width: 0; display: flex; align-items: center; min-height: 56px; }
.wa-items .items { width: 100%; }
.wa-items .item { min-height: 40px; padding: 2px 0; }
.wa-free { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; color: var(--ink-muted); font-size: .85rem; font-style: italic; font-family: var(--serif); font-size: 1.02rem; }
.wa-free span { opacity: 0; transition: opacity .2s; color: var(--accent); }
.wa-free span .ic { width: 14px; height: 14px; }
.wa-free:hover span, .wa-free:focus-visible span { opacity: 1; }
@media (hover: none) { .wa-free span { opacity: .45; } }

/* Listes d'éléments */
.items li + li { border-top: var(--hair); }
.item .time { font-size: .74rem; letter-spacing: .02em; }

/* Formulaires — étiquettes en petites capitales, champs alignés, correctif iOS */
.form { column-gap: 12px; row-gap: 16px; }
.field { gap: 7px; }
.field label { font-size: .66rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--ink-muted); line-height: 1.2; }
.field label span { color: var(--accent-2); }
.field-hint { font-size: .74rem; color: var(--ink-muted); margin-top: -2px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]), select, textarea { border-radius: 10px; min-height: 48px; background: #fff; border-color: color-mix(in srgb, var(--ink) 14%, transparent); }
input[type="date"], input[type="time"], input[type="datetime-local"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; text-align: start; line-height: 1.2; }
input::-webkit-date-and-time-value { text-align: start; margin: 0; }
input[type="date"]::-webkit-calendar-picker-indicator, input[type="time"]::-webkit-calendar-picker-indicator { opacity: .5; }
select { -webkit-appearance: none; appearance: none; padding-inline-end: 40px !important; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%) !important; background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px !important; background-size: 5px 5px, 5px 5px !important; background-repeat: no-repeat !important; }
.form-actions { margin-top: 24px; padding-top: 16px; border-top: var(--hair); }
.form-actions .btn { min-height: 50px; flex: 1 1 0; }
.form-actions .btn.danger.ghost { flex: 0 0 auto; }

/* Feuille modale */
.sheet-panel { overflow-x: hidden; padding: 10px 20px calc(24px + var(--safe-b)); border-radius: var(--r-xl) var(--r-xl) 0 0; }
.sheet-head { padding-bottom: 14px; margin-bottom: 18px; border-bottom: var(--hair); }
.sheet-head h2 { font-size: 1.6rem; }
.sheet-head .icon-btn { width: 40px; height: 40px; background: var(--soft); }
.sheet-head .icon-btn .ic { width: 14px; height: 14px; }

/* Éléments moins arrondis, plus nets */
.bottom-nav { border-radius: 22px; }
.bottom-nav a { border-radius: 14px; }
.date-card { border-radius: var(--r-lg); }
.goal-cat, .kpi, .tpl, .theme-opt { border-radius: var(--r); }
.mday { border-radius: 8px; }
.hcell, .ccell, .pcell, .glass, .preg-grid span { border-radius: 8px; }
.photo { border-radius: var(--r); }

/* Calendrier mois : en-têtes de jours en petites capitales */
.mhead span { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.day-panel .card-head h2 { font-size: 1.25rem; }

@media (min-width: 768px) {
  .sheet-panel { border-radius: var(--r-xl); padding: 20px 28px 28px; }
  .datebar-t h2 { font-size: 1.9rem; }
  .week-agenda { padding: 4px 24px; }
}
@media (min-width: 1180px) {
  .week-agenda { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 0; overflow: hidden; }
  .wa-row { grid-template-columns: 1fr; padding: 14px 12px; border-bottom: 0; border-inline-end: var(--hair); min-height: 340px; align-content: start; gap: 10px; }
  .wa-row:last-child { border-inline-end: 0; }
  .wa-date { width: 100%; flex-direction: row; gap: 8px; justify-content: flex-start; padding: 0 8px; min-height: 44px; }
  .wa-items { align-items: flex-start; }
  .wa-items .item { flex-direction: column; align-items: flex-start; gap: 0; font-size: .85rem; }
  .wa-free { justify-content: center; flex-direction: column; gap: 4px; min-height: 120px; }
}
.item .time .dot { margin-inline-start: 7px; }
.wa-items .item .time, .wa-items .item.task .chk { min-width: 46px; }
@media (min-width: 1180px) {
  .wa-items .item.task { flex-direction: row; align-items: flex-start; gap: 8px; padding: 6px 0; }
  .wa-items .item.task .chk { min-width: 0; min-height: 0; }
  .wa-items .item.task .chk .box { width: 18px; height: 18px; border-radius: 5px; }
  .wa-items .item.task .linkish { min-height: 0; line-height: 1.3; }
  .wa-items .item.ev { padding: 6px 0; }
}

/* Contours sobres : arrondis réduits sur toutes les boîtes (v1.1) */
.card, .kpi, .date-card, .empty, .view > .empty, .tlist > .empty, .space-group .empty, .month-grid, .week-agenda, .mini, .note-card, .member, .trip { border-radius: var(--r-lg) !important; }
.tile, .space-tile, .add-opt, .goal-cat, .tpl, .theme-opt, .mood, .photo { border-radius: var(--r) !important; }
.btn, .btn.sm, .chip, .seg, .icon-btn.glass, .top-actions, .top-actions .add-desktop, .inline-add input { border-radius: var(--r) !important; }
.seg button, .seg button.on, .side-link, .wa-date, .bottom-nav a, .rail-y, .rail-m { border-radius: var(--r-sm) !important; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { border-radius: var(--r) !important; }
.bottom-nav { border-radius: var(--r-xl) !important; }
.sheet-panel { border-radius: var(--r-xl) var(--r-xl) 0 0 !important; }
@media (min-width: 768px) { .sheet-panel { border-radius: var(--r-xl) !important; } }
.mday, .hcell, .ccell, .pcell, .glass, .preg-grid span, .wk-row.today a, .week-list li a, .moon-month div, .tx-ic { border-radius: var(--r-sm) !important; }
.chk .box { border-radius: 4px; }
.tag { border-radius: 4px; }
.th-prev, .swatch { border-radius: var(--r-sm) !important; }
.sheet-head .icon-btn { border-radius: var(--r) !important; }

/* Paysage de l'accueil : couleurs propres à chaque thème */
:root, [data-theme="prune"] { --sc-sky1:#251A35; --sc-sky2:#8D526E; --sc-sky3:#F5A38D; --sc-sky4:#FFD2A1; --sc-sun:#FFE9B0; --sc-m1:#63445F; --sc-m2:#382E4B; --sc-w1:#B97A92; --sc-w2:#2A223D; --sc-glint:#F9B49B; --sc-line:#FFD7B5; }
[data-theme="ivoire"] { --sc-sky1:#8F7F71; --sc-sky2:#C9B8A8; --sc-sky3:#F1DCC8; --sc-sky4:#FBEEDF; --sc-sun:#FFF8EC; --sc-m1:#B3A291; --sc-m2:#8C7B6C; --sc-w1:#D8C8B8; --sc-w2:#A39382; --sc-glint:#FFF2E3; --sc-line:#FFF7EE; }
[data-theme="midnight"] { --sc-sky1:#0C111B; --sc-sky2:#24304A; --sc-sky3:#5D5970; --sc-sky4:#A08A88; --sc-sun:#F1E6D4; --sc-m1:#3A3F55; --sc-m2:#1C2331; --sc-w1:#4A4E66; --sc-w2:#10151F; --sc-glint:#D4C1B9; --sc-line:#E6D7CD; }
[data-theme="holst"] { --sc-sky1:#2A0610; --sc-sky2:#6D1D32; --sc-sky3:#CC5671; --sc-sky4:#F7B9A9; --sc-sun:#FFE3C4; --sc-m1:#5A1426; --sc-m2:#3A0B17; --sc-w1:#A8435C; --sc-w2:#2A0610; --sc-glint:#F7C4B5; --sc-line:#FFD9CC; }
[data-theme="nb"] { --sc-sky1:#050505; --sc-sky2:#262626; --sc-sky3:#6A6A6A; --sc-sky4:#CDCDCD; --sc-sun:#FFFFFF; --sc-m1:#3A3A3A; --sc-m2:#181818; --sc-w1:#777777; --sc-w2:#0E0E0E; --sc-glint:#EDEDED; --sc-line:#FFFFFF; }
[data-theme="lavande"] { --sc-sky1:#5B4A85; --sc-sky2:#9C88C9; --sc-sky3:#E3CBE8; --sc-sky4:#F7E9F3; --sc-sun:#FFF5EA; --sc-m1:#8E7BB8; --sc-m2:#6A5A92; --sc-w1:#C9B8E2; --sc-w2:#6A5A92; --sc-glint:#FFF0F6; --sc-line:#FFF7FC; }
.scene-frame { position: absolute; inset: 0; overflow: hidden; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.scene-mobile { display: block; }
.scene path, .scene rect, .scene circle, .scene stop { transition: fill .5s ease, stop-color .5s ease; }
[data-theme="nb"] .desk, [data-theme="nb"] .deco { filter: grayscale(1); }
[data-theme="midnight"] .desk { filter: saturate(.55) brightness(.9); }
[data-theme="ivoire"] .desk { filter: saturate(.6) sepia(.15); }
[data-theme="lavande"] .desk { filter: hue-rotate(-25deg) saturate(.8); }
[data-theme="ivoire"] .hero-text, [data-theme="lavande"] .hero-text { text-shadow: 0 2px 14px rgba(60,40,30,.35); }
@media (min-width: 768px) { .scene-mobile { display: none; } .scene-tablette { display: block; } }
@media (min-width: 1180px) {
  .scene-tablette { display: none; } .scene-ordinateur { display: block; }
  .scene-frame { left: 6%; right: 18%; bottom: 34px; border-radius: 240px 240px 0 0; box-shadow: 0 0 0 8px rgba(255,255,255,.08), 0 0 0 9px rgba(255,220,200,.25), var(--shadow); }
}

/* ======================================================================
   v1.3 — ACCUEIL FIDÈLE À LA MAQUETTE PREMIUM
   ====================================================================== */
:root, [data-theme="prune"] { --tg0: linear-gradient(160deg, #CB8CA4, #9A5576); --tg1: linear-gradient(160deg, #E4B2C2, #B97790); --tg2: linear-gradient(160deg, #9E7DAA, #6C4C7E); --tg3: linear-gradient(160deg, #E89DA3, #C26C80); --fab: radial-gradient(circle at 35% 28%, #FFF0F4 0%, #F2B3C5 45%, #D9809D 100%); --fab-ink: #6B2F4A; }
[data-theme="ivoire"] { --tg0: linear-gradient(160deg, #A99886, #82725F); --tg1: linear-gradient(160deg, #CDBFAE, #A99987); --tg2: linear-gradient(160deg, #8E7E70, #645850); --tg3: linear-gradient(160deg, #C6A891, #A3826B); --fab: radial-gradient(circle at 35% 28%, #FFFFFF, #E5DED2 55%, #A39382); --fab-ink: #4A4039; }
[data-theme="midnight"] { --tg0: linear-gradient(160deg, #7C6C6A, #4E4650); --tg1: linear-gradient(160deg, #AD9C9C, #7E6E70); --tg2: linear-gradient(160deg, #4D546E, #2C3246); --tg3: linear-gradient(160deg, #A0827E, #6E5654); --fab: radial-gradient(circle at 35% 28%, #FFFFFF, #E6D7CD 55%, #A99898); --fab-ink: #202937; }
[data-theme="holst"] { --tg0: linear-gradient(160deg, #D25E79, #8E2B44); --tg1: linear-gradient(160deg, #E8899F, #B23C59); --tg2: linear-gradient(160deg, #7A2238, #4B0F1E); --tg3: linear-gradient(160deg, #EC8C8F, #C0505F); --fab: radial-gradient(circle at 35% 28%, #FFF1F4, #F7B4C2 50%, #CC5671); --fab-ink: #4B0F1E; }
[data-theme="nb"] { --tg0: linear-gradient(160deg, #3C3C3C, #1C1C1C); --tg1: linear-gradient(160deg, #6E6E6E, #474747); --tg2: linear-gradient(160deg, #262626, #0C0C0C); --tg3: linear-gradient(160deg, #575757, #303030); --fab: radial-gradient(circle at 35% 28%, #FFFFFF, #DDDDDD 60%, #9A9A9A); --fab-ink: #111; }
[data-theme="lavande"] { --tg0: linear-gradient(160deg, #A08DCC, #7864A6); --tg1: linear-gradient(160deg, #C0AEE2, #9C88C9); --tg2: linear-gradient(160deg, #6F5B9A, #523F76); --tg3: linear-gradient(160deg, #C99DD3, #9E74AE); --fab: radial-gradient(circle at 35% 28%, #FFFFFF, #E2D7F4 50%, #9C88C9); --fab-ink: #3C2F5C; }

/* Icônes au trait */
.ic.line { stroke-width: 1.8; }

/* En-tête : menu · logo centré · groupe d'actions */
.topbar { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 8px; transition: background .25s, box-shadow .25s; }
.menu-btn { color: var(--on-bg); }
.top-brand { flex-direction: column; justify-content: center; gap: 0; min-height: 0; font-size: 1.05rem; line-height: 1.05; text-align: center; justify-self: center; }
.top-brand .logo-wrap { width: 30px; }
.top-actions { gap: 2px; padding: 3px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--on-bg); }
.top-actions .icon-btn { width: 40px; height: 40px; border-radius: 9px; color: var(--on-bg); }
.top-actions .icon-btn .ic { width: 19px; height: 19px; }
.avatar-btn { background: rgba(255,255,255,.14); }
.bell-dot { top: 8px; right: 9px; }
body[data-page="accueil"] .topbar { background: transparent; }
body.scrolled .topbar { background: color-mix(in srgb, var(--bg1) 82%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--glass-line); }

/* Héros mobile */
body[data-page="accueil"] .hero { margin-top: calc(-64px - var(--safe-t)); padding-top: calc(66px + var(--safe-t)); min-height: calc(452px + var(--safe-t)); }
.hero-scene::after { background: linear-gradient(180deg, rgba(20,8,24,.25) 0%, transparent 28%, transparent 62%, color-mix(in srgb, var(--bg2) 90%, transparent) 100%); }
.photo-branch { position: absolute; left: -14px; top: calc(52px + var(--safe-t)); width: 168px; height: auto; transform: none !important; filter: drop-shadow(0 4px 8px rgba(20,5,20,.25)); z-index: 2; pointer-events: none; }
.hero-text { position: relative; z-index: 3; padding-top: 6px; }
.brand-title { font-size: 2.6rem; }
.brand-years { font-size: 1.3rem; letter-spacing: 7px; }
.hero-props { position: absolute; right: 4px; bottom: 112px; width: 230px; height: 160px; z-index: 1; pointer-events: none; }
.prop { position: absolute; bottom: 0; height: auto; filter: drop-shadow(0 8px 10px rgba(20,5,20,.4)); }
.p-lampe { right: 0; width: 88px; bottom: 6px; }
.p-bougie { right: 20px; width: 40px; }
.p-vase { right: 62px; width: 64px; }
.p-livres { right: 116px; width: 98px; }
.table-shadow { position: absolute; left: 20px; right: -10px; bottom: -8px; height: 16px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(20,5,20,.5), transparent 70%); }
.hero-row { position: relative; z-index: 3; }
.date-card { width: 152px; background: linear-gradient(160deg, rgba(255,250,250,.94), rgba(246,224,230,.86)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.85); box-shadow: 0 14px 30px -12px rgba(30,8,28,.6), inset 0 1px 0 #fff; }
.dc-ic { position: absolute; top: -13px; inset-inline-end: -13px; width: 40px !important; height: 40px !important; padding: 10px; border-radius: 50%; background: linear-gradient(160deg, #fff, var(--soft)); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 6px 14px -4px rgba(30,8,28,.45); color: var(--accent); opacity: 1 !important; }
.quote { font-size: 1.12rem; line-height: 1.32; padding-inline-start: 14px; border-inline-start: 1.5px solid rgba(255,255,255,.55); }
.q-mark { font-family: var(--serif); font-style: normal; font-weight: 700; font-size: 2.1rem; line-height: 0; vertical-align: -.42em; margin-inline-end: 4px; }
.q-mark.end { margin-inline: 4px 0; }

/* Raccourcis : 5 + 6 tuiles brillantes */
.shortcuts { grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 7px; margin: 4px 0 14px; }
.shortcuts .tile { position: relative; overflow: hidden; grid-column: span 6; min-height: 74px; color: #fff; background: var(--tg, var(--tg0)); border: 1px solid rgba(255,255,255,.3); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -12px 18px rgba(60,15,40,.16), 0 10px 18px -10px rgba(30,8,28,.6); text-shadow: 0 1px 2px rgba(40,10,30,.35); font-size: .76rem; gap: 5px; -webkit-backdrop-filter: none; backdrop-filter: none; }
.shortcuts .tile::before { content: ''; position: absolute; inset: 0 0 48% 0; background: linear-gradient(rgba(255,255,255,.3), rgba(255,255,255,0)); pointer-events: none; }
.shortcuts .tile.r2 { grid-column: span 5; min-height: 68px; font-size: .7rem; }
.shortcuts .tile .ic { width: 26px; height: 26px; }
.shortcuts .tile.r2 .ic { width: 23px; height: 23px; }
.shortcuts .tile-0 { --tg: var(--tg0); } .shortcuts .tile-1 { --tg: var(--tg1); } .shortcuts .tile-2 { --tg: var(--tg2); } .shortcuts .tile-3 { --tg: var(--tg3); }
.shortcuts .tile-extra { display: flex; }

/* Tableau de bord mobile : paires de cartes comme la maquette */
.dash { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.c-prio, .c-goals, .c-rem, .dash .onboard { grid-column: 1 / -1; }
.home .card { padding: 14px 14px 16px; background: linear-gradient(165deg, color-mix(in srgb, var(--card1) 96%, transparent), color-mix(in srgb, var(--card2) 92%, transparent)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.home .card-head { border-bottom: 0; padding-bottom: 2px; margin-bottom: 6px; min-height: 30px; }
.home .card-head h2 { font-size: 1.22rem; font-weight: 700; }
.home .card-ic .ic { width: 22px; height: 22px; }
.c-prio .checklist { columns: 2; column-gap: 18px; padding-inline-end: 64px; }
.c-prio .checklist li { break-inside: avoid; }
.c-prio .chk { min-height: 38px; gap: 10px; font-size: .86rem; }
.c-prio .chk .box { width: 19px; height: 19px; }
.c-prio::after { background-image: url(../assets/photo/branche.webp) !important; width: 104px !important; height: 92px !important; right: -10px !important; bottom: -8px !important; transform: scaleX(-1) rotate(-8deg); opacity: 1 !important; }
.c-track .meter { margin-bottom: 9px; }
.c-track .meter-top { font-size: .74rem; margin-bottom: 4px; }
.c-track .meter-track { height: 6px; }
.meter.m1 i { background: linear-gradient(90deg, #B54F78, #DA7B9C); }
.meter.m2 i { background: linear-gradient(90deg, #7A5799, #A27EC0); }
.meter.m3 i { background: linear-gradient(90deg, #DE6A7E, #F29FA8); }
.meter.m4 i { background: linear-gradient(90deg, #4B3D78, #6F5DA2); }
.meter.m5 i { background: linear-gradient(90deg, #E0977A, #F3C1A4); }
.c-hab .habits { flex-direction: column; gap: 10px; align-items: stretch; }
.c-hab .ring { align-self: center; width: 86px !important; height: 86px !important; }
.c-hab .ring b { font-size: 1.3rem; }
.c-hab .h-letters { margin-inline-start: 62px; font-size: .58rem; }
.c-hab .h-table li { grid-template-columns: 58px 1fr; min-height: 24px; }
.c-hab .h-name { font-size: .7rem; }
.c-hab .dots { gap: 1px; }
.c-hab .hdot { width: 10px; height: 10px; border-width: 1.2px; }
.c-hab .h-table li:nth-child(n+5) { display: none; }
.c-week .week-list, .c-week .pager { display: none; }
.wk-compact { display: flex; align-items: center; gap: 8px; min-height: 48px; color: var(--ink); }
.wk-compact > span { display: flex; flex-direction: column; min-width: 0; }
.wk-compact b { font-size: .84rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-compact small { font-size: .7rem; color: var(--ink-muted); }
.wk-compact em { margin-inline-start: auto; font-style: normal; font-size: .66rem; color: var(--ink-muted); white-space: nowrap; }
.c-prog .ring { display: none; }
.c-prog .bars { height: 60px; gap: 6px; }
.c-prog .bars i { opacity: 1 !important; }
.c-prog .bars i:nth-child(1) { background: linear-gradient(180deg, #F0B6C4, #E59DB0); }
.c-prog .bars i:nth-child(2) { background: linear-gradient(180deg, #DE95AC, #C97D97); }
.c-prog .bars i:nth-child(3) { background: linear-gradient(180deg, #C27A95, #A9637F); }
.c-prog .bars i:nth-child(4) { background: linear-gradient(180deg, #9C6283, #7F4C6C); }
.c-prog .bars i:nth-child(5) { background: linear-gradient(180deg, #7E4C72, #5E3858); }
.pct-pill { position: absolute; top: 14px; inset-inline-end: 14px; padding: 3px 10px; border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgba(30,8,28,.12); font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: var(--ink); font-variant-numeric: lining-nums; }
.c-prog .card-head h2 { padding-inline-end: 58px; font-size: 1.05rem !important; }
.c-week .card-head h2 { font-size: 1.12rem !important; }
@media (max-width: 359px) { .dash { grid-template-columns: 1fr; } .c-prio .checklist { columns: 1; } }

/* Barre du bas */
.bottom-nav { background: linear-gradient(180deg, color-mix(in srgb, var(--nav-bg) 92%, #fff 3%), var(--nav-bg)); }
.bottom-nav a.active { background: var(--tg0); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 6px 14px -6px rgba(30,8,28,.6); }
.bottom-nav a .ic { width: 22px; height: 22px; }
.fab { background: var(--fab); color: var(--fab-ink); border: 3px solid rgba(255,255,255,.55); box-shadow: 0 10px 24px -6px rgba(180,70,110,.6), 0 0 0 5px rgba(255,255,255,.07); }
.fab .ic { width: 28px; height: 28px; stroke-width: 2; }

@media (min-width: 768px) {
  body[data-page="accueil"] .hero { margin-top: calc(-66px - var(--safe-t)); padding-top: calc(70px + var(--safe-t)); min-height: 470px; }
  .photo-branch { width: 230px; }
  .hero-props { width: 330px; height: 220px; right: 18px; bottom: 120px; }
  .p-lampe { width: 124px; } .p-bougie { width: 56px; right: 30px; } .p-vase { width: 90px; right: 90px; } .p-livres { width: 136px; right: 166px; }
  .shortcuts .tile { min-height: 84px; font-size: .84rem; }
  .shortcuts .tile.r2 { min-height: 80px; font-size: .8rem; }
  .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .c-hab .habits { flex-direction: row; align-items: center; }
  .c-hab .h-table li:nth-child(n+5) { display: grid; }
  .c-hab .h-table li { grid-template-columns: 84px 1fr; min-height: 30px; }
  .c-hab .h-letters { margin-inline-start: 88px; }
  .c-hab .hdot { width: 14px; height: 14px; }
  .c-hab .h-name { font-size: .8rem; }
  .c-week .week-list, .c-week .pager { display: flex; }
  .c-week .week-list { display: block; }
  .wk-compact { display: none; }
  .c-prio .checklist { padding-inline-end: 90px; }
}
@media (min-width: 1180px) {
  .topbar { display: flex; justify-content: flex-end; }
  .menu-btn { display: none; }
  .top-actions .avatar-btn { background: transparent; }
  body[data-page="accueil"] .hero { margin-top: 0; padding-top: 8px; min-height: 300px; }
  body[data-page="accueil"] .topbar { background: none; }
  .photo-branch { left: auto; right: 41%; top: -16px; width: 250px; }
  .hero-props { right: 0; bottom: 0; width: 66%; height: 78%; }
  .p-lampe { width: 150px; right: 2%; bottom: 8px; } .p-bougie { width: 62px; right: 24%; } .p-vase { width: 112px; right: 36%; } .p-livres { width: 150px; right: 54%; }
  .table-shadow { bottom: -4px; }
  .shortcuts { gap: 10px; }
  .shortcuts .tile, .shortcuts .tile.r2 { min-height: 0; }
  .c-prio, .c-goals, .c-rem, .dash .onboard { grid-column: auto; }
  .dash .onboard { grid-column: 1 / -1; }
  .c-prio { grid-column: 3; grid-row: 2; }
  .c-prio .checklist { columns: 1; padding-inline-end: 0; }
}
/* correctifs v1.3 */
.hero-scene img.prop { width: auto; height: auto; object-fit: contain; }
.hero-scene img.p-lampe { width: 88px; } .hero-scene img.p-bougie { width: 40px; } .hero-scene img.p-vase { width: 64px; } .hero-scene img.p-livres { width: 98px; }
.photo-branch { width: 128px; left: -26px; top: calc(54px + var(--safe-t)); }
.shortcuts .tile span { overflow-wrap: normal; word-break: keep-all; white-space: nowrap; letter-spacing: -.01em; }
.shortcuts .tile { font-size: .7rem; padding-inline: 2px; }
.shortcuts .tile.r2 { font-size: .64rem; }
.c-prio .checklist { padding-inline-end: 0; column-gap: 14px; }
.c-prio .chk { font-size: .8rem; min-height: 36px; gap: 8px; }
.c-prio .chk .txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-prio { padding-bottom: 26px !important; }
.c-prio::after { width: 70px !important; height: 62px !important; right: -6px !important; bottom: -10px !important; }
.c-track .card-head h2, .c-hab .card-head h2, .c-week .card-head h2, .c-prog .card-head h2 { font-size: 1.06rem !important; white-space: nowrap; }
.c-track .card-ic .ic, .c-hab .card-ic .ic, .c-week .card-ic .ic, .c-prog .card-ic .ic { width: 18px; height: 18px; }
.c-track .link-more, .c-hab .link-more { width: 26px; height: 26px; }
.c-week .card-head h2 small { white-space: nowrap; }
@media (min-width: 768px) {
  .hero-scene img.p-lampe { width: 124px; } .hero-scene img.p-bougie { width: 56px; } .hero-scene img.p-vase { width: 90px; } .hero-scene img.p-livres { width: 136px; }
  .photo-branch { width: 200px; }
  .shortcuts .tile { font-size: .82rem; } .shortcuts .tile.r2 { font-size: .78rem; }
  .c-prio .chk { font-size: .9rem; }
  .c-track .card-head h2, .c-hab .card-head h2, .c-week .card-head h2, .c-prog .card-head h2 { font-size: 1.25rem !important; }
}
@media (min-width: 1180px) {
  .hero-scene img.p-lampe { width: 150px; } .hero-scene img.p-bougie { width: 62px; } .hero-scene img.p-vase { width: 112px; } .hero-scene img.p-livres { width: 150px; }
  .photo-branch { width: 240px; left: auto; }
  .shortcuts .tile { font-size: .88rem; } .shortcuts .tile.r2 { font-size: .85rem; }
}
.scene-mobile { height: auto; bottom: auto; top: -96px; }
.pct-pill { position: static; flex: none; align-self: center; }
.c-prog .progress-month { align-items: flex-end; gap: 10px; }
.c-prog .card-head h2 { padding-inline-end: 0; white-space: normal !important; line-height: 1.1; }
.c-rem::after { inset-inline-end: 56px; top: -12px; }
@media (min-width: 768px) { .scene-mobile { top: 0; } }
/* Composition commune : soleil au-dessus des montagnes, lac à hauteur de la carte date */
.scene-mobile, .scene-tablette { display: none !important; }
.scene-ordinateur { display: block !important; }
@media (min-width: 1180px) {
  .photo-branch { width: 170px !important; right: 41% !important; top: 8px !important; }
  .quote { max-width: 300px; font-size: 1.35rem; }
}
@media (min-width: 1180px) { .photo-branch { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(0deg, transparent 0, #000 18%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(0deg, transparent 0, #000 18%); mask-composite: intersect; } }

/* ======================================================================
   v1.4 — RENDU DES COULEURS : DÉGRADÉ OU COULEUR UNIE
   ====================================================================== */
:root, [data-theme="prune"] { --tc0:#A8607F; --tc1:#C88AA0; --tc2:#7D5A8C; --tc3:#D07E8C; --flat-bg:#3A2740; }
[data-theme="ivoire"]   { --tc0:#8F7F6E; --tc1:#B5A592; --tc2:#73665A; --tc3:#B08F78; --flat-bg:#F4EEE7; }
[data-theme="midnight"] { --tc0:#5F5559; --tc1:#8E7E7F; --tc2:#383F55; --tc3:#81676A; --flat-bg:#202937; }
[data-theme="holst"]    { --tc0:#A8384F; --tc1:#C9566F; --tc2:#5E1729; --tc3:#D06470; --flat-bg:#4B0F1E; }
[data-theme="nb"]       { --tc0:#2A2A2A; --tc1:#555555; --tc2:#151515; --tc3:#404040; --flat-bg:#111111; }
[data-theme="lavande"]  { --tc0:#8873B6; --tc1:#A895D3; --tc2:#5F4C87; --tc3:#B086BF; --flat-bg:#ECE6F5; }

.fill-seg { margin-bottom: 14px; }
.fill-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.fs-prev { width: 18px; height: 18px; border-radius: 5px; flex: none; border: 1px solid rgba(0,0,0,.12); }
.fs-prev.grad { background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.fs-prev.flat { background: var(--accent); }
.card .fill-seg { background: var(--soft); border-color: var(--line); }
.card .fill-seg button { color: var(--ink-muted); }
.card .fill-seg button.on { background: #fff; color: var(--ink); }
.sidebar .fill-seg { margin: 12px 4px 0; }
.sidebar .fill-seg button { font-size: .72rem; min-height: 34px; gap: 6px; }
.sidebar .fs-prev { width: 12px; height: 12px; border-radius: 3px; }

/* Couleur unie : tous les dégradés deviennent des aplats */
.flat .bg { background: var(--flat-bg) !important; }
.flat .card, .flat .kpi, .flat .sheet-panel, .flat .home .card, .flat .seg button.on, .flat .empty { background: var(--card1) !important; }
.flat .date-card { background: var(--card1) !important; }
.flat .btn.primary, .flat .chip.on, .flat .pcell.on, .flat .wa-row.today .wa-date { background: var(--accent) !important; }
.flat .shortcuts .tile-0 { background: var(--tc0) !important; } .flat .shortcuts .tile-1 { background: var(--tc1) !important; }
.flat .shortcuts .tile-2 { background: var(--tc2) !important; } .flat .shortcuts .tile-3 { background: var(--tc3) !important; }
.flat .shortcuts .tile { box-shadow: 0 6px 14px -8px rgba(30,8,28,.5) !important; }
.flat .shortcuts .tile::before, .flat .tile::before { display: none; }
.flat .tile-0:not(.shortcuts .tile), .flat .space-tile.tile-0, .flat .add-opt.tile-0 { background: var(--tc0) !important; color: #fff !important; }
.flat .space-tile.tile-1, .flat .add-opt.tile-1 { background: var(--card1) !important; }
.flat .space-tile.tile-2, .flat .add-opt.tile-2 { background: var(--tc2) !important; color: #fff !important; }
.flat .bottom-nav { background: var(--nav-bg) !important; }
.flat .bottom-nav a.active, .flat .side-link.active { background: var(--tc0) !important; color: #fff !important; box-shadow: none !important; }
.flat .fab { background: var(--card1) !important; }
.flat .rail-y.on, .flat .rail-m.on { background: var(--card1) !important; }
.flat .meter-track i { background: var(--accent) !important; }
.flat .meter.m1 i { background: #C2608A !important; } .flat .meter.m2 i { background: #8E6AAE !important; } .flat .meter.m3 i { background: #E4818F !important; }
.flat .meter.m4 i { background: #5D4D8D !important; } .flat .meter.m5 i { background: #EAAA8E !important; }
.flat .bars i, .flat .col-bars i { background: var(--accent) !important; }
.flat .col-bars i.b2 { background: #C96A82 !important; }
.flat .c-prog .bars i:nth-child(1) { background: #EBA9BA !important; } .flat .c-prog .bars i:nth-child(2) { background: #D48AA2 !important; }
.flat .c-prog .bars i:nth-child(3) { background: #B66E8A !important; } .flat .c-prog .bars i:nth-child(4) { background: #8E5778 !important; } .flat .c-prog .bars i:nth-child(5) { background: #6E4265 !important; }
.flat .avatar { background-image: none; }
.flat .dc-ic { background: #fff !important; }
.flat .tx-ic, .flat .goal-cat { background-image: none; }

/* ======================================================================
   v1.5 — 9 THÈMES INSPIRÉS DES RÉFÉRENCES (couleurs + typographie)
   ====================================================================== */
[data-theme="fleur"] { --quote-ink: var(--ink); --bg1: #F4EBE4; --bg2: #EFE2D9; --bg3: #E6D3C5; --bg-img: none; --bg-img-lg: none; --on-bg: #2B2420; --on-bg-muted: #8A766A; --card1: #FBF8F5; --card2: #F4EAE2; --card-line: #EADDD3; --ink: #2B2420; --ink-muted: #8A7A6E; --line: #E3D6CB; --accent: #A8866F; --accent-2: #C9A58C; --on-accent: #fff; --soft: #EFE2D9; --t0: linear-gradient(160deg, #C9A58C, #AE8C74); --t0-ink: #FFFFFF; --t1: linear-gradient(160deg, #F7EFE9, #EDE0D6); --t1-ink: #2B2420; --t2: linear-gradient(160deg, #B5A091, #9C8676); --t2-ink: #FFFFFF; --nav-bg: rgba(250,246,242,.95); --nav-ink: #7A675B; --glass: color-mix(in srgb, var(--on-bg) 6%, transparent); --glass-line: color-mix(in srgb, var(--on-bg) 14%, transparent); --theme-color: #F4EBE4; --shadow: 0 10px 26px -14px rgba(20,16,12,.28), 0 1px 3px rgba(20,16,12,.08); --meter: linear-gradient(90deg, #A8866F, #C9A58C); --fab: radial-gradient(circle at 35% 28%, #FFFFFF, #EFE2D9 55%, #C9A58C); --fab-ink: #2B2420; --flat-bg: #EFE2D9; --hero-ink: #2B2420; --hero-ts: none; --deco-filter: sepia(.25) saturate(.75); --serif: 'Cormorant Garamond', Georgia, serif; --ttl-w: 500; --ttl-tt: none; --ttl-ls: .01em; --r-sm: 4px; --r: 6px; --r-lg: 8px; --r-xl: 12px; --gloss: 0.35; --tile-ts: none; --tg0: linear-gradient(160deg, #E6D0BF, #D6BBA6); --tc0: #D6BBA6; --ti0: #2B2420; --tg1: linear-gradient(160deg, #F7EFE9, #EDE0D6); --tc1: #EDE0D6; --ti1: #2B2420; --tg2: linear-gradient(160deg, #B5A091, #9C8676); --tc2: #9C8676; --ti2: #FFFFFF; --tg3: linear-gradient(160deg, #D9BFAD, #C6A893); --tc3: #C6A893; --ti3: #2B2420; --sc-sky1: #CDB4A3; --sc-sky2: #E3CDBE; --sc-sky3: #F1DCCB; --sc-sky4: #F8EDE4; --sc-sun: #FFF8F0; --sc-m1: #C9AE9C; --sc-m2: #A98E7D; --sc-w1: #E6D4C6; --sc-w2: #B9A091; --sc-glint: #FFF3EA; --sc-line: #FFF6EF; }
[data-theme="velvet"] { --quote-ink: var(--ink); --bg1: #FCF9F9; --bg2: #F7EEEF; --bg3: #EBDCDD; --bg-img: none; --bg-img-lg: none; --on-bg: #3B2430; --on-bg-muted: #8E6E77; --card1: #FFFFFF; --card2: #FBF5F6; --card-line: #F1E4E6; --ink: #3B2430; --ink-muted: #8E6E77; --line: #EEDFE1; --accent: #A8687A; --accent-2: #C08A97; --on-accent: #fff; --soft: #F6E9EC; --t0: linear-gradient(160deg, #A8687A, #8E5466); --t0-ink: #FFFFFF; --t1: linear-gradient(160deg, #F0DDE1, #E2C7CD); --t1-ink: #513039; --t2: linear-gradient(160deg, #6E3A50, #513039); --t2-ink: #FFFFFF; --nav-bg: rgba(255,255,255,.96); --nav-ink: #6E3A50; --glass: color-mix(in srgb, var(--on-bg) 6%, transparent); --glass-line: color-mix(in srgb, var(--on-bg) 14%, transparent); --theme-color: #FCF9F9; --shadow: 0 10px 26px -14px rgba(20,16,12,.28), 0 1px 3px rgba(20,16,12,.08); --meter: linear-gradient(90deg, #A8687A, #C08A97); --fab: radial-gradient(circle at 35% 28%, #FFFFFF, #F6E9EC 55%, #C08A97); --fab-ink: #513039; --flat-bg: #F7EEEF; --hero-ink: #FFFFFF; --hero-ts: 0 2px 14px rgba(81,48,57,.45); --deco-filter: saturate(1); --serif: 'Playfair Display', Georgia, serif; --ttl-w: 500; --ttl-tt: none; --ttl-ls: 0; --r-sm: 2px; --r: 4px; --r-lg: 6px; --r-xl: 10px; --gloss: 0.5; --tile-ts: none; --tg0: linear-gradient(160deg, #B57F8D, #9A6070); --tc0: #9A6070; --ti0: #FFFFFF; --tg1: linear-gradient(160deg, #F0DDE1, #E2C7CD); --tc1: #E2C7CD; --ti1: #513039; --tg2: linear-gradient(160deg, #6E3A50, #513039); --tc2: #513039; --ti2: #FFFFFF; --tg3: linear-gradient(160deg, #CC9EA8, #B08089); --tc3: #B08089; --ti3: #FFFFFF; --sc-sky1: #9A6C6D; --sc-sky2: #C79BA0; --sc-sky3: #EBCBC8; --sc-sky4: #F8EDEB; --sc-sun: #FFF6F2; --sc-m1: #B08D89; --sc-m2: #8C6467; --sc-w1: #E2CACA; --sc-w2: #9A6C6D; --sc-glint: #FFEFF0; --sc-line: #FFF6F6; }
[data-theme="agrume"] { --quote-ink: var(--ink); --bg1: #FAFAF9; --bg2: #F4F3F1; --bg3: #E9E7E3; --bg-img: none; --bg-img-lg: none; --on-bg: #232323; --on-bg-muted: #7A7672; --card1: #FFFFFF; --card2: #FCFBFA; --card-line: #EFEDEA; --ink: #232323; --ink-muted: #7A7672; --line: #ECEAE7; --accent: #F2742B; --accent-2: #FF9A57; --on-accent: #fff; --soft: #FFF0E6; --t0: linear-gradient(160deg, #FF9A57, #F2742B); --t0-ink: #FFFFFF; --t1: linear-gradient(160deg, #FFFFFF, #F4F2EF); --t1-ink: #232323; --t2: linear-gradient(160deg, #F8CBA8, #EFAE83); --t2-ink: #5A2E12; --nav-bg: rgba(255,255,255,.96); --nav-ink: #6E6A66; --glass: color-mix(in srgb, var(--on-bg) 6%, transparent); --glass-line: color-mix(in srgb, var(--on-bg) 14%, transparent); --theme-color: #FAFAF9; --shadow: 0 10px 26px -14px rgba(20,16,12,.28), 0 1px 3px rgba(20,16,12,.08); --meter: linear-gradient(90deg, #F2742B, #FF9A57); --fab: radial-gradient(circle at 35% 28%, #FFFFFF, #FFE3D0 55%, #FF9A57); --fab-ink: #7A2E00; --flat-bg: #F4F3F1; --hero-ink: #232323; --hero-ts: none; --deco-filter: sepia(.15) saturate(.9); --serif: 'Inter', Georgia, serif; --ttl-w: 600; --ttl-tt: none; --ttl-ls: -.015em; --r-sm: 2px; --r: 3px; --r-lg: 4px; --r-xl: 8px; --gloss: 0; --tile-ts: none; --tg0: linear-gradient(160deg, #FF9A57, #F2742B); --tc0: #F2742B; --ti0: #FFFFFF; --tg1: linear-gradient(160deg, #FFFFFF, #F4F2EF); --tc1: #F4F2EF; --ti1: #232323; --tg2: linear-gradient(160deg, #F8CBA8, #EFAE83); --tc2: #EFAE83; --ti2: #5A2E12; --tg3: linear-gradient(160deg, #ECEAE6, #DCD9D4); --tc3: #DCD9D4; --ti3: #232323; --sc-sky1: #E9DFD6; --sc-sky2: #F3D7C2; --sc-sky3: #FFC59C; --sc-sky4: #FFE9D8; --sc-sun: #FFF6EC; --sc-m1: #E8C2A6; --sc-m2: #D59C78; --sc-w1: #F6DCC9; --sc-w2: #E0A985; --sc-glint: #FFF0E3; --sc-line: #FFF7EF; }
[data-theme="verdant"] { --quote-ink: var(--ink); --bg1: #F9F7F2; --bg2: #F3EFE8; --bg3: #E6DFD3; --bg-img: none; --bg-img-lg: none; --on-bg: #2E2E2B; --on-bg-muted: #7D7668; --card1: #FFFEFB; --card2: #F7F3EC; --card-line: #E8E2D7; --ink: #2E2E2B; --ink-muted: #7D7668; --line: #E3DCD0; --accent: #5E6B58; --accent-2: #7E8B75; --on-accent: #fff; --soft: #E9ECE4; --t0: linear-gradient(160deg, #6D7A66, #55614F); --t0-ink: #FFFFFF; --t1: linear-gradient(160deg, #F3EEE6, #E5DED2); --t1-ink: #2E2E2B; --t2: linear-gradient(160deg, #D8CFC1, #C2B8AC); --t2-ink: #2E2E2B; --nav-bg: rgba(253,252,249,.96); --nav-ink: #5D5241; --glass: color-mix(in srgb, var(--on-bg) 6%, transparent); --glass-line: color-mix(in srgb, var(--on-bg) 14%, transparent); --theme-color: #F9F7F2; --shadow: 0 10px 26px -14px rgba(20,16,12,.28), 0 1px 3px rgba(20,16,12,.08); --meter: linear-gradient(90deg, #5E6B58, #7E8B75); --fab: radial-gradient(circle at 35% 28%, #FFFFFF, #E9ECE4 55%, #8A9681); --fab-ink: #2E3A2B; --flat-bg: #F3EFE8; --hero-ink: #2E2E2B; --hero-ts: none; --deco-filter: saturate(.55) sepia(.2); --serif: 'Playfair Display', Georgia, serif; --ttl-w: 400; --ttl-tt: none; --ttl-ls: 0; --r-sm: 4px; --r: 6px; --r-lg: 8px; --r-xl: 14px; --gloss: 0; --tile-ts: none; --tg0: linear-gradient(160deg, #6D7A66, #55614F); --tc0: #55614F; --ti0: #FFFFFF; --tg1: linear-gradient(160deg, #F3EEE6, #E5DED2); --tc1: #E5DED2; --ti1: #2E2E2B; --tg2: linear-gradient(160deg, #D8CFC1, #C2B8AC); --tc2: #C2B8AC; --ti2: #2E2E2B; --tg3: linear-gradient(160deg, #948A7A, #7A7060); --tc3: #7A7060; --ti3: #FFFFFF; --sc-sky1: #C2B8AC; --sc-sky2: #D8D1C7; --sc-sky3: #EDE3D2; --sc-sky4: #F8F4EC; --sc-sun: #FFFBF2; --sc-m1: #8A9681; --sc-m2: #5E6B58; --sc-w1: #D9DCCF; --sc-w2: #7D8775; --sc-glint: #FFF8EC; --sc-line: #FFFBF4; }
[data-theme="studio"] { --quote-ink: var(--ink); --bg1: #F8F8F8; --bg2: #F3F3F3; --bg3: #E9E9E9; --bg-img: none; --bg-img-lg: none; --on-bg: #111111; --on-bg-muted: #8A8A8A; --card1: #FFFFFF; --card2: #F8F8F8; --card-line: #EDEDED; --ink: #111111; --ink-muted: #8A8A8A; --line: #E8E8E8; --accent: #111111; --accent-2: #555555; --on-accent: #fff; --soft: #F0F0F0; --t0: linear-gradient(160deg, #2A2A2A, #111111); --t0-ink: #FFFFFF; --t1: linear-gradient(160deg, #EDEDED, #E1E1E1); --t1-ink: #111111; --t2: linear-gradient(160deg, #2A2A2A, #111111); --t2-ink: #FFFFFF; --nav-bg: rgba(255,255,255,.96); --nav-ink: #555555; --glass: color-mix(in srgb, var(--on-bg) 6%, transparent); --glass-line: color-mix(in srgb, var(--on-bg) 14%, transparent); --theme-color: #F8F8F8; --shadow: 0 10px 26px -14px rgba(20,16,12,.28), 0 1px 3px rgba(20,16,12,.08); --meter: linear-gradient(90deg, #111111, #555555); --fab: radial-gradient(circle at 35% 28%, #FFFFFF, #F3F3F3 55%, #D6D6D6); --fab-ink: #111111; --flat-bg: #F3F3F3; --hero-ink: #111111; --hero-ts: none; --deco-filter: grayscale(1) contrast(1.05); --serif: 'Inter', Georgia, serif; --ttl-w: 300; --ttl-tt: none; --ttl-ls: -.025em; --r-sm: 6px; --r: 10px; --r-lg: 12px; --r-xl: 18px; --gloss: 0.2; --tile-ts: none; --tg0: linear-gradient(160deg, #FFFFFF, #F1F1F1); --tc0: #F1F1F1; --ti0: #111111; --tg1: linear-gradient(160deg, #EDEDED, #E1E1E1); --tc1: #E1E1E1; --ti1: #111111; --tg2: linear-gradient(160deg, #2A2A2A, #111111); --tc2: #111111; --ti2: #FFFFFF; --tg3: linear-gradient(160deg, #DADADA, #CACACA); --tc3: #CACACA; --ti3: #111111; --sc-sky1: #CFCFCF; --sc-sky2: #E2E2E2; --sc-sky3: #F0F0F0; --sc-sky4: #FAFAFA; --sc-sun: #FFFFFF; --sc-m1: #BDBDBD; --sc-m2: #9A9A9A; --sc-w1: #E3E3E3; --sc-w2: #A8A8A8; --sc-glint: #FFFFFF; --sc-line: #FFFFFF; }
[data-theme="atelier"] { --quote-ink: var(--ink); --bg1: #F5F6F8; --bg2: #EAEBF0; --bg3: #D6DAE1; --bg-img: none; --bg-img-lg: none; --on-bg: #2B2F38; --on-bg-muted: #696E77; --card1: #FFFFFF; --card2: #F7F8FA; --card-line: #E7E9EE; --ink: #2B2F38; --ink-muted: #696E77; --line: #E3E5EA; --accent: #F07F5C; --accent-2: #F59C80; --on-accent: #fff; --soft: #FDECE6; --t0: linear-gradient(160deg, #F59C80, #EE7C58); --t0-ink: #FFFFFF; --t1: linear-gradient(160deg, #FFFFFF, #EEF0F3); --t1-ink: #2B2F38; --t2: linear-gradient(160deg, #F59C80, #EE7C58); --t2-ink: #FFFFFF; --nav-bg: rgba(56,60,71,.95); --nav-ink: #D6DAE1; --glass: color-mix(in srgb, var(--on-bg) 6%, transparent); --glass-line: color-mix(in srgb, var(--on-bg) 14%, transparent); --theme-color: #F5F6F8; --shadow: 0 10px 26px -14px rgba(20,16,12,.28), 0 1px 3px rgba(20,16,12,.08); --meter: linear-gradient(90deg, #F07F5C, #F59C80); --fab: radial-gradient(circle at 35% 28%, #FFFFFF, #FDE2D8 55%, #F59C80); --fab-ink: #7A2A12; --flat-bg: #EAEBF0; --hero-ink: #FFFFFF; --hero-ts: 0 2px 14px rgba(30,34,42,.45); --deco-filter: saturate(.6); --serif: 'Inter', Georgia, serif; --ttl-w: 600; --ttl-tt: none; --ttl-ls: -.01em; --r-sm: 4px; --r: 8px; --r-lg: 10px; --r-xl: 14px; --gloss: 0.25; --tile-ts: none; --tg0: linear-gradient(160deg, #454A55, #2E323B); --tc0: #2E323B; --ti0: #FFFFFF; --tg1: linear-gradient(160deg, #FFFFFF, #EEF0F3); --tc1: #EEF0F3; --ti1: #2B2F38; --tg2: linear-gradient(160deg, #F59C80, #EE7C58); --tc2: #EE7C58; --ti2: #FFFFFF; --tg3: linear-gradient(160deg, #C9CDD4, #AEB3BB); --tc3: #AEB3BB; --ti3: #2B2F38; --sc-sky1: #696E77; --sc-sky2: #9FA4AD; --sc-sky3: #F3B49E; --sc-sky4: #FCE3D8; --sc-sun: #FFF4EE; --sc-m1: #8C9099; --sc-m2: #4A4F59; --sc-w1: #C4C8CF; --sc-w2: #383C47; --sc-glint: #FFD9CB; --sc-line: #FFE9E1; }
[data-theme="nora"] { --quote-ink: var(--ink); --bg1: #F6F2EB; --bg2: #F2EAE0; --bg3: #DFD7CC; --bg-img: none; --bg-img-lg: none; --on-bg: #12100F; --on-bg-muted: #786654; --card1: #FBF8F3; --card2: #F3EEE5; --card-line: #E6DED2; --ink: #12100F; --ink-muted: #786654; --line: #E2D9CD; --accent: #12100F; --accent-2: #403123; --on-accent: #fff; --soft: #EDE5DA; --t0: linear-gradient(160deg, #786654, #5E4E3F); --t0-ink: #FFFFFF; --t1: linear-gradient(160deg, #F5F1EA, #EAE2D6); --t1-ink: #12100F; --t2: linear-gradient(160deg, #786654, #5E4E3F); --t2-ink: #FFFFFF; --nav-bg: rgba(18,16,15,.96); --nav-ink: #DFD7CC; --glass: color-mix(in srgb, var(--on-bg) 6%, transparent); --glass-line: color-mix(in srgb, var(--on-bg) 14%, transparent); --theme-color: #F6F2EB; --shadow: 0 10px 26px -14px rgba(20,16,12,.28), 0 1px 3px rgba(20,16,12,.08); --meter: linear-gradient(90deg, #12100F, #403123); --fab: radial-gradient(circle at 35% 28%, #F5F1EA, #E8DFD2 55%, #B6A999); --fab-ink: #12100F; --flat-bg: #F2EAE0; --hero-ink: #FFFFFF; --hero-ts: 0 2px 14px rgba(18,16,15,.4); --deco-filter: sepia(.35) saturate(.6); --serif: 'Playfair Display', Georgia, serif; --ttl-w: 500; --ttl-tt: uppercase; --ttl-ls: .02em; --r-sm: 0px; --r: 0px; --r-lg: 0px; --r-xl: 0px; --gloss: 0; --tile-ts: none; --card-ttl: .98rem; --tg0: linear-gradient(160deg, #1C1917, #12100F); --tc0: #12100F; --ti0: #F2EAE0; --tg1: linear-gradient(160deg, #F5F1EA, #EAE2D6); --tc1: #EAE2D6; --ti1: #12100F; --tg2: linear-gradient(160deg, #786654, #5E4E3F); --tc2: #5E4E3F; --ti2: #FFFFFF; --tg3: linear-gradient(160deg, #B6A999, #9E907F); --tc3: #9E907F; --ti3: #12100F; --sc-sky1: #786654; --sc-sky2: #B6A999; --sc-sky3: #E3C9A8; --sc-sky4: #F5EDE2; --sc-sun: #FFF6E8; --sc-m1: #9C8B78; --sc-m2: #5E4E3F; --sc-w1: #DFD7CC; --sc-w2: #6E5D4C; --sc-glint: #FFF1DE; --sc-line: #FFF7EB; }
[data-theme="vanta"] { --quote-ink: var(--ink); --bg1: #F1EEEA; --bg2: #EDEAE6; --bg3: #E4E1DD; --bg-img: none; --bg-img-lg: none; --on-bg: #111111; --on-bg-muted: #6E6B67; --card1: #F8F6F3; --card2: #F2EFEB; --card-line: #E2DED8; --ink: #111111; --ink-muted: #6E6B67; --line: #DCD8D2; --accent: #111111; --accent-2: #2C2B2A; --on-accent: #fff; --soft: #E7E3DD; --t0: linear-gradient(160deg, #F1EEEA, #E4E1DD); --t0-ink: #111111; --t1: linear-gradient(160deg, #F8F6F3, #F1EEEA); --t1-ink: #111111; --t2: linear-gradient(160deg, #2C2B2A, #2C2B2A); --t2-ink: #FFFFFF; --nav-bg: rgba(17,17,17,.97); --nav-ink: #C6C3BE; --glass: color-mix(in srgb, var(--on-bg) 6%, transparent); --glass-line: color-mix(in srgb, var(--on-bg) 14%, transparent); --theme-color: #F1EEEA; --shadow: 0 10px 26px -14px rgba(20,16,12,.28), 0 1px 3px rgba(20,16,12,.08); --meter: linear-gradient(90deg, #111111, #2C2B2A); --fab: radial-gradient(circle at 35% 28%, #FFFFFF, #EDEAE6 55%, #C6C3BE); --fab-ink: #111111; --flat-bg: #EDEAE6; --hero-ink: #FFFFFF; --hero-ts: 0 2px 16px rgba(0,0,0,.35); --deco-filter: grayscale(1); --serif: 'Inter', Georgia, serif; --ttl-w: 800; --ttl-tt: none; --ttl-ls: -.035em; --r-sm: 0px; --r: 0px; --r-lg: 0px; --r-xl: 0px; --gloss: 0; --tile-ts: none; --tg0: linear-gradient(160deg, #141414, #141414); --tc0: #141414; --ti0: #FFFFFF; --tg1: linear-gradient(160deg, #F8F6F3, #F1EEEA); --tc1: #F1EEEA; --ti1: #111111; --tg2: linear-gradient(160deg, #2C2B2A, #2C2B2A); --tc2: #2C2B2A; --ti2: #FFFFFF; --tg3: linear-gradient(160deg, #C6C3BE, #C6C3BE); --tc3: #C6C3BE; --ti3: #111111; --sc-sky1: #6E6B67; --sc-sky2: #A8A5A0; --sc-sky3: #DAD6D0; --sc-sky4: #F1EEEA; --sc-sun: #FFFFFF; --sc-m1: #8E8B86; --sc-m2: #3E3C3A; --sc-w1: #C6C3BE; --sc-w2: #2C2B2A; --sc-glint: #F7F5F2; --sc-line: #FFFFFF; }
[data-theme="nord"] { --quote-ink: var(--ink); --bg1: #F6F4EA; --bg2: #F3EFE3; --bg3: #E5E1D6; --bg-img: none; --bg-img-lg: none; --on-bg: #0D0D0C; --on-bg-muted: #8B8276; --card1: #FCFAF4; --card2: #F3EFE5; --card-line: #E5E0D3; --ink: #0D0D0C; --ink-muted: #8B8276; --line: #E1DCCF; --accent: #0D0D0C; --accent-2: #312B23; --on-accent: #fff; --soft: #ECE7DA; --t0: linear-gradient(160deg, #8B8276, #756D62); --t0-ink: #FFFFFF; --t1: linear-gradient(160deg, #E9E5DA, #E0DBCE); --t1-ink: #0D0D0C; --t2: linear-gradient(160deg, #8B8276, #756D62); --t2-ink: #FFFFFF; --nav-bg: rgba(13,13,12,.96); --nav-ink: #E5E1D6; --glass: color-mix(in srgb, var(--on-bg) 6%, transparent); --glass-line: color-mix(in srgb, var(--on-bg) 14%, transparent); --theme-color: #F6F4EA; --shadow: 0 10px 26px -14px rgba(20,16,12,.28), 0 1px 3px rgba(20,16,12,.08); --meter: linear-gradient(90deg, #0D0D0C, #312B23); --fab: radial-gradient(circle at 35% 28%, #FCFAF4, #E5E1D6 55%, #BBB4A9); --fab-ink: #0D0D0C; --flat-bg: #F3EFE3; --hero-ink: #FFFFFF; --hero-ts: 0 2px 14px rgba(13,13,12,.4); --deco-filter: sepia(.3) saturate(.5); --serif: 'Playfair Display', Georgia, serif; --ttl-w: 500; --ttl-tt: uppercase; --ttl-ls: .01em; --r-sm: 0px; --r: 2px; --r-lg: 2px; --r-xl: 4px; --gloss: 0; --tile-ts: none; --card-ttl: .98rem; --tg0: linear-gradient(160deg, #0D0D0C, #0D0D0C); --tc0: #0D0D0C; --ti0: #F3EFE3; --tg1: linear-gradient(160deg, #E9E5DA, #E0DBCE); --tc1: #E0DBCE; --ti1: #0D0D0C; --tg2: linear-gradient(160deg, #8B8276, #756D62); --tc2: #756D62; --ti2: #FFFFFF; --tg3: linear-gradient(160deg, #BBB4A9, #A9A296); --tc3: #A9A296; --ti3: #0D0D0C; --sc-sky1: #8B8276; --sc-sky2: #BBB4A9; --sc-sky3: #E3D6BE; --sc-sky4: #F6F4E8; --sc-sun: #FFFBF0; --sc-m1: #A59D90; --sc-m2: #5A5248; --sc-w1: #E5E1D6; --sc-w2: #6E665B; --sc-glint: #FFF8EA; --sc-line: #FFFDF5; }

/* Variables typographiques et rendu commun */
.shortcuts .tile-0 { --ti: var(--ti0, #fff); } .shortcuts .tile-1 { --ti: var(--ti1, #fff); } .shortcuts .tile-2 { --ti: var(--ti2, #fff); } .shortcuts .tile-3 { --ti: var(--ti3, #fff); }
.shortcuts .tile { color: var(--ti, #fff); text-shadow: var(--tile-ts, 0 1px 2px rgba(40,10,30,.35)); }
.shortcuts .tile::before { opacity: var(--gloss, 1); }
.page-head h1, .card-head h2, .datebar-t h2, .sheet-head h2, .sg-title, .wcol-head, .mini h3, .tg-title, .note-card h3, .trip h2, .member b, .goal-cat b { font-weight: var(--ttl-w, 600); text-transform: var(--ttl-tt, none); letter-spacing: var(--ttl-ls, normal); }
.home .card-head h2 { font-weight: var(--ttl-w, 700); }
.card-head h2, .home .card-head h2 { font-size: var(--card-ttl, 1.22rem); }
.brand-title, .brand-years, .quote, .dc-day, .dc-my { font-family: var(--serif); }
.brand-title { font-weight: var(--ttl-w, 600); letter-spacing: var(--ttl-ls, .3px); }
.hero-text { color: var(--hero-ink, #FFF6F4); text-shadow: var(--hero-ts, 0 2px 12px rgba(40,15,35,.35)); }
.quote { color: var(--hero-ink, #FFF5F2) !important; text-shadow: var(--hero-ts, 0 1px 8px rgba(40,15,35,.5)) !important; border-color: color-mix(in srgb, var(--hero-ink, #fff) 45%, transparent) !important; }
body[data-page="accueil"]:not(.scrolled) .topbar { color: var(--hero-ink, var(--on-bg)); }
body[data-page="accueil"]:not(.scrolled) .topbar .top-brand, body[data-page="accueil"]:not(.scrolled) .topbar .menu-btn, body[data-page="accueil"]:not(.scrolled) .top-actions, body[data-page="accueil"]:not(.scrolled) .top-actions .icon-btn { color: var(--hero-ink, var(--on-bg)); }
.hero-props, .c-prio::after { filter: var(--deco-filter, saturate(1)); }
.photo-branch { filter: var(--deco-filter, saturate(1)) drop-shadow(0 4px 8px rgba(20,5,20,.22)); }
@media (min-width: 1180px) { .hero-text { color: var(--on-bg); text-shadow: none; } .quote { color: var(--on-bg) !important; text-shadow: none !important; } body[data-page="accueil"]:not(.scrolled) .topbar, body[data-page="accueil"]:not(.scrolled) .top-actions, body[data-page="accueil"]:not(.scrolled) .top-actions .icon-btn { color: var(--on-bg); } }
/* Thèmes clairs : barre latérale claire, onglets lisibles */
[data-theme="fleur"] .sidebar, [data-theme="velvet"] .sidebar, [data-theme="agrume"] .sidebar, [data-theme="verdant"] .sidebar, [data-theme="studio"] .sidebar, [data-theme="atelier"] .sidebar, [data-theme="nora"] .sidebar, [data-theme="vanta"] .sidebar, [data-theme="nord"] .sidebar { background: color-mix(in srgb, var(--card1) 70%, transparent); }
[data-theme="nora"] .sidebar, [data-theme="vanta"] .sidebar, [data-theme="nord"] .sidebar { background: var(--nav-bg); --on-bg: var(--nav-ink); --on-bg-muted: color-mix(in srgb, var(--nav-ink) 70%, transparent); --glass: rgba(255,255,255,.08); --glass-line: rgba(255,255,255,.16); }
[data-theme="nora"] .side-link.active, [data-theme="vanta"] .side-link.active, [data-theme="nord"] .side-link.active { background: var(--card1) !important; color: var(--ink) !important; }
[data-theme="vanta"] .bottom-nav a.active, [data-theme="nora"] .bottom-nav a.active, [data-theme="nord"] .bottom-nav a.active { background: var(--card1) !important; color: var(--ink) !important; }
[data-theme="vanta"] .eyebrow, [data-theme="vanta"] .page-head .sub, [data-theme="vanta"] .field label { letter-spacing: .24em; }
[data-theme="nora"] .page-head h1, [data-theme="nord"] .page-head h1 { font-size: 2rem; }
[data-theme="vanta"] .page-head h1 { font-size: 2.3rem; line-height: .98; }
[data-theme="studio"] .page-head h1 { font-size: 2.4rem; }
[data-theme="studio"] .btn, [data-theme="studio"] .chip { border-radius: 999px !important; }
[data-theme="nora"] .btn, [data-theme="vanta"] .btn, [data-theme="nord"] .btn { text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; }
[data-theme="nora"] .dc-num, [data-theme="nord"] .dc-num { font-family: 'Playfair Display', serif; }
[data-theme="vanta"] .dc-num, [data-theme="vanta"] .brand-title, [data-theme="studio"] .dc-num { font-family: 'Inter', sans-serif; font-style: normal; letter-spacing: -.04em; }
[data-theme="vanta"] .brand-title { font-weight: 800; text-transform: uppercase; font-size: 2.4rem; }
[data-theme="studio"] .brand-title { font-style: normal; font-weight: 300; }
[data-theme="agrume"] .brand-title, [data-theme="atelier"] .brand-title { font-style: normal; font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: -.03em; }
[data-theme="nora"] .brand-title, [data-theme="nord"] .brand-title { font-style: normal; text-transform: uppercase; letter-spacing: .02em; font-size: 2.2rem; }
[data-theme="fleur"] .brand-title { font-style: normal; font-weight: 400; }
[data-theme="velvet"] .brand-title { font-style: normal; }
[data-theme="nora"] .card, [data-theme="vanta"] .card, [data-theme="nord"] .card { box-shadow: none; }
[data-theme="nora"] .shortcuts .tile, [data-theme="vanta"] .shortcuts .tile, [data-theme="nord"] .shortcuts .tile, [data-theme="agrume"] .shortcuts .tile, [data-theme="verdant"] .shortcuts .tile { box-shadow: 0 1px 0 rgba(0,0,0,.04) !important; }

.theme-grp { font-family: var(--sans); font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); margin: 14px 0 8px; }
.theme-opt span:last-child { line-height: 1.25; }
@media (min-width: 1180px) { .swatches { grid-template-columns: repeat(5, 1fr); } }

/* correctifs v1.5 */
.quote { color: var(--quote-ink, var(--hero-ink, #FFF5F2)) !important; border-color: color-mix(in srgb, var(--quote-ink, #fff) 40%, transparent) !important; }
[data-theme="fleur"] .quote, [data-theme="velvet"] .quote, [data-theme="agrume"] .quote, [data-theme="verdant"] .quote, [data-theme="studio"] .quote, [data-theme="atelier"] .quote, [data-theme="nora"] .quote, [data-theme="vanta"] .quote, [data-theme="nord"] .quote { text-shadow: none !important; }
.q-mark { font-family: 'Playfair Display', Georgia, serif !important; font-weight: 600; font-style: normal; }
[data-theme="agrume"] .brand-years, [data-theme="studio"] .brand-years, [data-theme="atelier"] .brand-years, [data-theme="vanta"] .brand-years { font-family: 'Inter', sans-serif; font-style: normal; font-weight: 300; letter-spacing: .35em; font-size: 1.05rem; }
[data-theme="agrume"] .quote, [data-theme="studio"] .quote, [data-theme="atelier"] .quote, [data-theme="vanta"] .quote { font-family: 'Inter', sans-serif; font-style: normal; font-size: .98rem; font-weight: 400; }
[data-theme="vanta"] .brand-title { font-size: 1.95rem; white-space: nowrap; }
.bottom-nav a.active { background: var(--t0) !important; color: var(--t0-ink) !important; }
.flat .bottom-nav a.active { background: var(--accent) !important; color: var(--on-accent) !important; }
[data-theme="vanta"] .bottom-nav a.active, [data-theme="nora"] .bottom-nav a.active, [data-theme="nord"] .bottom-nav a.active { background: var(--card1) !important; color: var(--ink) !important; }
:root, [data-theme="prune"] { --t0-active: var(--tg0); }
[data-theme="prune"] .bottom-nav a.active, html:not([data-theme]) .bottom-nav a.active { background: var(--tg0) !important; color: #fff !important; }
.date-card { background: linear-gradient(160deg, color-mix(in srgb, var(--card1) 96%, transparent), color-mix(in srgb, var(--card2) 90%, transparent)) !important; }
.dc-num, .dc-day, .dc-my { color: var(--ink); }
.flat .date-card { background: var(--card1) !important; }

/* v1.6 — Accueil sans logo, profil (prénom + photo), décor allégé */
body[data-page="accueil"] .top-brand { visibility: hidden; }
.u-photo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.u-initial { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--t0); color: var(--t0-ink); font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.avatar-btn { padding: 4px; overflow: hidden; }
.avatar-btn .u-photo, .avatar-btn .u-initial { width: 32px; height: 32px; }
.hello-chip { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 4px 14px 4px 4px; min-height: 44px; border-radius: 999px; background: color-mix(in srgb, var(--card1) 22%, transparent); border: 1px solid color-mix(in srgb, var(--hero-ink, #fff) 30%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--hero-ink, #FFF6F4); font-family: var(--sans); font-size: .9rem; text-shadow: none; }
.hello-chip b { font-weight: 600; }
.hc-photo { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); box-shadow: 0 4px 10px -2px rgba(0,0,0,.3); }
.hello-chip.hc-empty { padding: 0 14px; font-size: .8rem; opacity: .9; }
.hello-chip.hc-empty .ic { width: 16px; height: 16px; }
.hero-props { width: 140px; right: 10px; }
.hero-scene img.p-vase { width: 70px; right: 52px; }
.hero-scene img.p-bougie { width: 44px; right: 8px; }
.table-shadow { left: 30px; right: 0; }
.profile-edit { display: flex; align-items: center; gap: 16px; margin: 6px 0 14px; }
.pe-photo { width: 96px; height: 96px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--accent); border: 3px solid #fff; box-shadow: var(--shadow); }
.pe-photo .ic { width: 38px; height: 38px; }
.pe-photo .u-initial { font-size: 2.4rem; }
.pe-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pe-actions .hint { flex-basis: 100%; margin: 0; }
.side-brand.has-user .logo-wrap, .side-brand.has-user .sb-name { display: none; }
.sb-user { display: contents; }
.sb-photo { width: 64px; height: 64px; border-radius: 50%; border: 3px solid rgba(255,255,255,.75); box-shadow: 0 6px 16px -4px rgba(0,0,0,.35); margin-bottom: 6px; }
.sb-uname { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.1; }
@media (min-width: 768px) {
  .hero-props { width: 200px; right: 24px; }
  .hero-scene img.p-vase { width: 100px; right: 72px; } .hero-scene img.p-bougie { width: 62px; right: 12px; }
}
@media (min-width: 1180px) {
  .hero-props { width: 46%; height: 70%; right: 6%; }
  .hero-scene img.p-vase { width: 120px; right: 38%; } .hero-scene img.p-bougie { width: 72px; right: 20%; }
  .hello-chip { color: var(--on-bg); border-color: var(--glass-line); background: var(--glass); }
}
/* v1.7 — sans fleurs */
.c-prio::after { display: none !important; }
.photo-branch { display: none !important; }
.hero-scene img.p-vase { width: 54px; right: 60px; }
@media (min-width: 768px) { .hero-scene img.p-vase { width: 78px; right: 82px; } }
@media (min-width: 1180px) { .hero-scene img.p-vase { width: 92px; right: 40%; } }

/* v1.8 — Modèles de notes : icônes dessinées sur mesure, textes blancs lisibles */
.tpl-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tpl { flex-direction: row; align-items: center; justify-content: flex-start; text-align: start; gap: 12px; min-height: 72px; padding: 12px; color: var(--on-bg); background: color-mix(in srgb, var(--on-bg) 7%, transparent); border: 1px solid color-mix(in srgb, var(--on-bg) 16%, transparent); transition: background .2s, transform .15s, border-color .2s; }
.tpl:hover { background: color-mix(in srgb, var(--on-bg) 12%, transparent); border-color: color-mix(in srgb, var(--accent-2) 60%, transparent); }
.tpl:active { transform: scale(.97); }
.tpl-ic { flex: none; width: 46px; height: 46px; border-radius: var(--r); display: grid; place-items: center; background: color-mix(in srgb, var(--accent-2) 22%, transparent); border: 1px solid color-mix(in srgb, var(--accent-2) 35%, transparent); color: var(--on-bg); }
.tpl-svg { width: 32px; height: 32px; }
.tpl-svg .ac { stroke: var(--accent-2); }
.tpl-svg .ac.fill { fill: color-mix(in srgb, var(--accent-2) 45%, transparent); }
.tpl-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tpl-txt b { font-size: .88rem; font-weight: 600; line-height: 1.2; color: var(--on-bg); }
.tpl-txt small { font-size: .7rem; line-height: 1.25; color: var(--on-bg-muted); }
.note-card .nc-ic { width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--soft); color: var(--ink); margin-bottom: 2px; }
.note-card .nc-ic .tpl-svg { width: 24px; height: 24px; }
@media (min-width: 768px) { .tpl-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tpl { min-height: 70px; }
.tpl-ic { width: 48px; height: 48px; }
.tpl-svg { width: 34px; height: 34px; }
.tpl-txt b, .tpl-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-txt b { font-size: .92rem; }
.tpl { padding: 10px; gap: 10px; }
.tpl-ic { width: 44px; height: 44px; }
.tpl-svg { width: 31px; height: 31px; }
.tpl-txt small { white-space: normal; overflow: visible; }

/* v1.9 — sans logo, fond d'accueil personnalisable */
.top-brand { visibility: hidden; }
.side-brand .sb-sub { font-family: var(--serif); font-size: 1.35rem; font-weight: var(--ttl-w, 600); line-height: 1.15; color: var(--on-bg); }
.side-brand.has-user .sb-sub { font-family: var(--sans); font-size: .85rem; font-weight: 400; color: var(--on-bg-muted); }
.seg .seg-btn { flex: 1; display: grid; place-items: center; min-height: 40px; border-radius: 9px; font-weight: 600; font-size: .86rem; color: var(--on-bg-muted); cursor: pointer; }
.card .seg .seg-btn { color: var(--ink-muted); }
.seg .seg-btn.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scene.has-photo::after { background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.12) 30%, rgba(0,0,0,.08) 55%, color-mix(in srgb, var(--bg2) 92%, transparent) 100%) !important; display: block !important; }
.hero-scene.has-photo ~ .hero-text, .hero-scene.has-photo ~ .hero-row .quote { color: #fff !important; text-shadow: 0 2px 14px rgba(0,0,0,.45) !important; }
.hero-edit { position: absolute; z-index: 4; right: 14px; bottom: 14px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.45); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; box-shadow: 0 4px 12px -4px rgba(0,0,0,.4); }
.hero-edit .ic { width: 18px; height: 18px; }
.hero-edit:focus-within { outline: 3px solid var(--accent-2); outline-offset: 2px; }
@media (min-width: 1180px) {
  .hero-edit { right: 8%; bottom: 46px; }
  .hero-scene.has-photo .scene-frame { bottom: 0; }
  .hero-scene.has-photo::after { display: none !important; }
  .hero-scene.has-photo ~ .hero-text, .hero-scene.has-photo ~ .hero-row .quote { color: var(--on-bg) !important; text-shadow: none !important; }
}
.hero-edit { bottom: 150px; }
@media (min-width: 768px) { .hero-edit { bottom: 160px; right: 24px; } }
@media (min-width: 1180px) { .hero-edit { right: 8%; bottom: 46px; } }

/* ======================================================================
   v2.0 — 10 THÈMES « PALETTES »
   ====================================================================== */
[data-theme="nuit"] { --quote-ink: #FFFFFF; --bg1: #0B1B32; --bg2: #14284A; --bg3: #26415E; --bg-img: none; --bg-img-lg: none; --on-bg: #F4E6EE; --on-bg-muted: #B9C6DA; --card1: #FBF4F8; --card2: #EEDDE6; --card-line: rgba(255,255,255,.7); --ink: #0D1E4C; --ink-muted: #5E6B86; --line: #E3D2DC; --accent: #C48CB3; --accent-2: #83A6CE; --on-accent: #fff; --soft: #F3E4EC; --t0: linear-gradient(160deg, #C48CB3, #A8719A); --t0-ink: #FFFFFF; --t1: linear-gradient(160deg, #F1DDE7, #E5C9D7); --t1-ink: #0D1E4C; --t2: linear-gradient(160deg, #2E4C6E, #1A3050); --t2-ink: #FFFFFF; --nav-bg: rgba(11,27,50,.94); --nav-ink: #E5C9D7; --glass: rgba(255,255,255,.1); --glass-line: rgba(255,255,255,.2); --theme-color: #0B1B32; --shadow: 0 12px 30px -12px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.18); --meter: linear-gradient(90deg, #C48CB3, #83A6CE); --fab: radial-gradient(circle at 35% 28%, #FFF6FA, #E5C9D7 55%, #C48CB3); --fab-ink: #0D1E4C; --flat-bg: #14284A; --hero-ink: #FFFFFF; --hero-ts: 0 2px 14px rgba(0,0,0,.35); --deco-filter: hue-rotate(-12deg) saturate(.85); --serif: 'Cormorant Garamond', Georgia, serif; --ttl-w: 600; --ttl-tt: none; --ttl-ls: .01em; --r-sm: 4px; --r: 8px; --r-lg: 10px; --r-xl: 14px; --gloss: 0.4; --tile-ts: 0 1px 2px rgba(0,0,0,.2); --tg0: linear-gradient(160deg, #CF9BC0, #B37AA2); --tc0: #B37AA2; --ti0: #FFFFFF; --tg1: linear-gradient(160deg, #F1DDE7, #E5C9D7); --tc1: #E5C9D7; --ti1: #0D1E4C; --tg2: linear-gradient(160deg, #2E4C6E, #1A3050); --tc2: #1A3050; --ti2: #FFFFFF; --tg3: linear-gradient(160deg, #93B4D8, #7397C2); --tc3: #7397C2; --ti3: #FFFFFF; --sc-sky1: #0B1B32; --sc-sky2: #26415E; --sc-sky3: #C48CB3; --sc-sky4: #E5C9D7; --sc-sun: #FFF0F6; --sc-m1: #26415E; --sc-m2: #0D1E4C; --sc-w1: #83A6CE; --sc-w2: #0B1B32; --sc-glint: #E5C9D7; --sc-line: #F4E6EE; }
[data-theme="macaron"] { --quote-ink: #5A2338; --bg1: #FEF6F8; --bg2: #FADDE6; --bg3: #F3C8D4; --bg-img: none; --bg-img-lg: none; --on-bg: #5A2338; --on-bg-muted: #9A5B72; --card1: #FFFFFF; --card2: #FDF1F5; --card-line: #F5D9E2; --ink: #5A2338; --ink-muted: #9A5B72; --line: #F5D9E2; --accent: #B65A7A; --accent-2: #E0869D; --on-accent: #fff; --soft: #FBE6EC; --t0: linear-gradient(160deg, #C66A8A, #B65A7A); --t0-ink: #FFFFFF; --t1: linear-gradient(160deg, #FCE6ED, #FADDE6); --t1-ink: #6A2840; --t2: linear-gradient(160deg, #E895AA, #E0869D); --t2-ink: #FFFFFF; --nav-bg: rgba(255,250,251,.96); --nav-ink: #9A5B72; --glass: color-mix(in srgb, var(--on-bg) 6%, transparent); --glass-line: color-mix(in srgb, var(--on-bg) 14%, transparent); --theme-color: #FEF6F8; --shadow: 0 10px 26px -14px rgba(40,20,30,.28), 0 1px 3px rgba(40,20,30,.08); --meter: linear-gradient(90deg, #B65A7A, #E0869D); --fab: radial-gradient(circle at 35% 28%, #FFFFFF, #FADDE6 55%, #E0869D); --fab-ink: #5A2338; --flat-bg: #FADDE6; --hero-ink: #FFFFFF; --hero-ts: 0 2px 14px rgba(0,0,0,.35); --deco-filter: saturate(1); --serif: 'Cormorant Garamond', Georgia, serif; --ttl-w: 500; --ttl-tt: none; --ttl-ls: .01em; --r-sm: 2px; --r: 4px; --r-lg: 6px; --r-xl: 10px; --gloss: 0.4; --tile-ts: none; --tg0: linear-gradient(160deg, #C66A8A, #B65A7A); --tc0: #B65A7A; --ti0: #FFFFFF; --tg1: linear-gradient(160deg, #FCE6ED, #FADDE6); --tc1: #FADDE6; --ti1: #6A2840; --tg2: linear-gradient(160deg, #E895AA, #E0869D); --tc2: #E0869D; --ti2: #FFFFFF; --tg3: linear-gradient(160deg, #F5B4C6, #DCA6B2); --tc3: #DCA6B2; --ti3: #5A2338; --sc-sky1: #B65A7A; --sc-sky2: #E0869D; --sc-sky3: #F5B4C6; --sc-sky4: #FADDE6; --sc-sun: #FFF5F8; --sc-m1: #DCA6B2; --sc-m2: #B65A7A; --sc-w1: #F5C9D5; --sc-w2: #C77890; --sc-glint: #FFF0F4; --sc-line: #FFF7FA; }
[data-theme="eucalyptus"] { --quote-ink: #2E3B2B; --bg1: #F7F3EC; --bg2: #EEF1E6; --bg3: #D6E4D0; --bg-img: none; --bg-img-lg: none; --on-bg: #2E3B2B; --on-bg-muted: #6E7D69; --card1: #FFFDF9; --card2: #F6F2EA; --card-line: #E3E6DA; --ink: #2E3B2B; --ink-muted: #6E7D69; --line: #E3E6DA; --accent: #6E8F67; --accent-2: #A7C4A0; --on-accent: #fff; --soft: #E9F0E5; --t0: linear-gradient(160deg, #7C9C75, #6E8F67); --t0-ink: #FFFFFF; --t1: linear-gradient(160deg, #FBF8F2, #F4EFE6); --t1-ink: #2E3B2B; --t2: linear-gradient(160deg, #7C9C75, #6E8F67); --t2-ink: #FFFFFF; --nav-bg: rgba(252,250,245,.96); --nav-ink: #5E7158; --glass: color-mix(in srgb, var(--on-bg) 6%, transparent); --glass-line: color-mix(in srgb, var(--on-bg) 14%, transparent); --theme-color: #F7F3EC; --shadow: 0 10px 26px -14px rgba(40,20,30,.28), 0 1px 3px rgba(40,20,30,.08); --meter: linear-gradient(90deg, #6E8F67, #A7C4A0); --fab: radial-gradient(circle at 35% 28%, #FFFFFF, #E9F0E5 55%, #A7C4A0); --fab-ink: #1F2B1D; --flat-bg: #EEF1E6; --hero-ink: #2E3B2B; --hero-ts: none; --deco-filter: saturate(.6) sepia(.15); --serif: 'Inter', Georgia, serif; --ttl-w: 300; --ttl-tt: none; --ttl-ls: -.01em; --r-sm: 6px; --r: 10px; --r-lg: 12px; --r-xl: 16px; --gloss: 0.2; --tile-ts: none; --tg0: linear-gradient(160deg, #B3CEAC, #A7C4A0); --tc0: #A7C4A0; --ti0: #1F2B1D; --tg1: linear-gradient(160deg, #FBF8F2, #F4EFE6); --tc1: #F4EFE6; --ti1: #2E3B2B; --tg2: linear-gradient(160deg, #7C9C75, #6E8F67); --tc2: #6E8F67; --ti2: #FFFFFF; --tg3: linear-gradient(160deg, #DCE8D7, #CBDDC5); --tc3: #CBDDC5; --ti3: #2E3B2B; --sc-sky1: #A7C4A0; --sc-sky2: #C6D9C0; --sc-sky3: #E6EEDD; --sc-sky4: #F4EFE6; --sc-sun: #FFFDF6; --sc-m1: #8DAF86; --sc-m2: #6E8F67; --sc-w1: #DCE8D7; --sc-w2: #8DAF86; --sc-glint: #FFFBF2; --sc-line: #FFFFFF; }
[data-theme="blush"] { --quote-ink: #4F1B23; --bg1: #F3E2E4; --bg2: #E8C4C8; --bg3: #DD8D94; --bg-img: none; --bg-img-lg: none; --on-bg: #4F1B23; --on-bg-muted: #8E4B55; --card1: #FFF9F9; --card2: #F8E8EA; --card-line: #F0D6D9; --ink: #4F1B23; --ink-muted: #8E4B55; --line: #F0D6D9; --accent: #DD7A83; --accent-2: #E3A3AA; --on-accent: #fff; --soft: #F9E3E5; --t0: linear-gradient(160deg, #E69CA3, #DD7A83); --t0-ink: #FFFFFF; --t1: linear-gradient(160deg, #F6E6E8, #E3BFC3); --t1-ink: #4F1B23; --t2: linear-gradient(160deg, #C9606B, #B04E59); --t2-ink: #FFFFFF; --nav-bg: rgba(255,248,248,.95); --nav-ink: #A2505B; --glass: color-mix(in srgb, var(--on-bg) 6%, transparent); --glass-line: color-mix(in srgb, var(--on-bg) 14%, transparent); --theme-color: #F3E2E4; --shadow: 0 10px 26px -14px rgba(40,20,30,.28), 0 1px 3px rgba(40,20,30,.08); --meter: linear-gradient(90deg, #DD7A83, #E3A3AA); --fab: radial-gradient(circle at 35% 28%, #FFFFFF, #F6E0E2 55%, #DD7A83); --fab-ink: #4F1B23; --flat-bg: #E8C4C8; --hero-ink: #FFFFFF; --hero-ts: 0 2px 14px rgba(0,0,0,.35); --deco-filter: saturate(1.05); --serif: 'Inter', Georgia, serif; --ttl-w: 500; --ttl-tt: none; --ttl-ls: -.015em; --r-sm: 8px; --r: 12px; --r-lg: 14px; --r-xl: 18px; --gloss: 0.45; --tile-ts: none; --tg0: linear-gradient(160deg, #E69CA3, #DD7A83); --tc0: #DD7A83; --ti0: #FFFFFF; --tg1: linear-gradient(160deg, #F6E6E8, #E3BFC3); --tc1: #E3BFC3; --ti1: #4F1B23; --tg2: linear-gradient(160deg, #C9606B, #B04E59); --tc2: #B04E59; --ti2: #FFFFFF; --tg3: linear-gradient(160deg, #ECCFD2, #E3BFC3); --tc3: #E3BFC3; --ti3: #4F1B23; --sc-sky1: #DD7A83; --sc-sky2: #E3A3AA; --sc-sky3: #EBC7CB; --sc-sky4: #F7E6E8; --sc-sun: #FFF8F8; --sc-m1: #D98C93; --sc-m2: #B5606A; --sc-w1: #EBC7CB; --sc-w2: #C9707A; --sc-glint: #FFF0F1; --sc-line: #FFF8F8; }
[data-theme="aurore"] { --quote-ink: #FFFFFF; --bg1: #5E5D9C; --bg2: #8A7AA4; --bg3: #CF9892; --bg-img: none; --bg-img-lg: none; --on-bg: #FFFFFF; --on-bg-muted: #EADDE6; --card1: #FFF9F7; --card2: #F4E8EA; --card-line: rgba(255,255,255,.7); --ink: #3A3866; --ink-muted: #6E6A92; --line: #EBDDE2; --accent: #6968A6; --accent-2: #CF9892; --on-accent: #fff; --soft: #F3E8EC; --t0: linear-gradient(160deg, #D9A39D, #C48983); --t0-ink: #FFFFFF; --t1: linear-gradient(160deg, #F7EDEE, #EADADF); --t1-ink: #3A3866; --t2: linear-gradient(160deg, #7574B2, #5E5D9C); --t2-ink: #FFFFFF; --nav-bg: rgba(78,77,138,.94); --nav-ink: #F1E2E6; --glass: rgba(255,255,255,.1); --glass-line: rgba(255,255,255,.2); --theme-color: #5E5D9C; --shadow: 0 12px 30px -12px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.18); --meter: linear-gradient(90deg, #6968A6, #CF9892); --fab: radial-gradient(circle at 35% 28%, #FFF8F4, #F3D7D0 55%, #CF9892); --fab-ink: #3A3866; --flat-bg: #8A7AA4; --hero-ink: #FFFFFF; --hero-ts: 0 2px 14px rgba(0,0,0,.35); --deco-filter: saturate(.9); --serif: 'Playfair Display', Georgia, serif; --ttl-w: 500; --ttl-tt: none; --ttl-ls: 0; --r-sm: 8px; --r: 12px; --r-lg: 14px; --r-xl: 18px; --gloss: 0.4; --tile-ts: 0 1px 2px rgba(0,0,0,.2); --tg0: linear-gradient(160deg, #D9A39D, #C48983); --tc0: #C48983; --ti0: #FFFFFF; --tg1: linear-gradient(160deg, #F7EDEE, #EADADF); --tc1: #EADADF; --ti1: #3A3866; --tg2: linear-gradient(160deg, #7574B2, #5E5D9C); --tc2: #5E5D9C; --ti2: #FFFFFF; --tg3: linear-gradient(160deg, #B497AF, #977A93); --tc3: #977A93; --ti3: #FFFFFF; --sc-sky1: #6968A6; --sc-sky2: #9A7FA0; --sc-sky3: #CF9892; --sc-sky4: #F1D2C8; --sc-sun: #FFF1E8; --sc-m1: #8C78A0; --sc-m2: #55548F; --sc-w1: #CF9892; --sc-w2: #6968A6; --sc-glint: #FBE0D8; --sc-line: #FFEDE6; }
[data-theme="lavgris"] { --quote-ink: #FFFFFF; --bg1: #4E454F; --bg2: #5C525D; --bg3: #8A8090; --bg-img: none; --bg-img-lg: none; --on-bg: #F6F2F7; --on-bg-muted: #D3CAD6; --card1: #FAF8FB; --card2: #ECE7EE; --card-line: rgba(255,255,255,.7); --ink: #3F3741; --ink-muted: #7A6F7D; --line: #E1DAE4; --accent: #5C525D; --accent-2: #8A7F8E; --on-accent: #fff; --soft: #EEE9F0; --t0: linear-gradient(160deg, #BAB0BF, #A69CAB); --t0-ink: #2F2830; --t1: linear-gradient(160deg, #F3EFF4, #E3DDE6); --t1-ink: #3F3741; --t2: linear-gradient(160deg, #6A606B, #5C525D); --t2-ink: #FFFFFF; --nav-bg: rgba(62,55,64,.95); --nav-ink: #DCD3DF; --glass: rgba(255,255,255,.1); --glass-line: rgba(255,255,255,.2); --theme-color: #4E454F; --shadow: 0 12px 30px -12px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.18); --meter: linear-gradient(90deg, #5C525D, #8A7F8E); --fab: radial-gradient(circle at 35% 28%, #FFFFFF, #E3DDE6 55%, #BAB0BF); --fab-ink: #3F3741; --flat-bg: #5C525D; --hero-ink: #FFFFFF; --hero-ts: 0 2px 14px rgba(0,0,0,.35); --deco-filter: saturate(.45); --serif: 'Playfair Display', Georgia, serif; --ttl-w: 500; --ttl-tt: none; --ttl-ls: .01em; --r-sm: 4px; --r: 8px; --r-lg: 10px; --r-xl: 14px; --gloss: 0.3; --tile-ts: 0 1px 2px rgba(0,0,0,.2); --tg0: linear-gradient(160deg, #C4BBC9, #BAB0BF); --tc0: #BAB0BF; --ti0: #2F2830; --tg1: linear-gradient(160deg, #F3EFF4, #E3DDE6); --tc1: #E3DDE6; --ti1: #3F3741; --tg2: linear-gradient(160deg, #6A606B, #5C525D); --tc2: #5C525D; --ti2: #FFFFFF; --tg3: linear-gradient(160deg, #978C9B, #80758A); --tc3: #80758A; --ti3: #FFFFFF; --sc-sky1: #5C525D; --sc-sky2: #8A8090; --sc-sky3: #BAB0BF; --sc-sky4: #E3DDE6; --sc-sun: #FBF8FC; --sc-m1: #7A707E; --sc-m2: #4A414B; --sc-w1: #BAB0BF; --sc-w2: #5C525D; --sc-glint: #F0EBF2; --sc-line: #FFFFFF; }
[data-theme="emeraude"] { --quote-ink: #F3EBD6; --bg1: #02110C; --bg2: #0A2A1D; --bg3: #1A422F; --bg-img: none; --bg-img-lg: none; --on-bg: #F3EBD6; --on-bg-muted: #B8C2AD; --card1: #FBF7EC; --card2: #F3EBD6; --card-line: rgba(255,255,255,.7); --ink: #02110C; --ink-muted: #4E6355; --line: #E4DBC2; --accent: #1A422F; --accent-2: #2F6A4C; --on-accent: #fff; --soft: #ECE4CC; --t0: linear-gradient(160deg, #F3EBD6, #E4DABF); --t0-ink: #02110C; --t1: linear-gradient(160deg, #F8F2E2, #F3EBD6); --t1-ink: #02110C; --t2: linear-gradient(160deg, #0A2A1D, #02110C); --t2-ink: #F3EBD6; --nav-bg: rgba(2,17,12,.96); --nav-ink: #E6DDC4; --glass: rgba(255,255,255,.1); --glass-line: rgba(255,255,255,.2); --theme-color: #02110C; --shadow: 0 12px 30px -12px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.18); --meter: linear-gradient(90deg, #1A422F, #2F6A4C); --fab: radial-gradient(circle at 35% 28%, #FFFBF0, #F3EBD6 55%, #CDBE94); --fab-ink: #02110C; --flat-bg: #0A2A1D; --hero-ink: #F3EBD6; --hero-ts: 0 2px 14px rgba(0,0,0,.35); --deco-filter: sepia(.35) saturate(.6); --serif: 'Playfair Display', Georgia, serif; --ttl-w: 500; --ttl-tt: none; --ttl-ls: .01em; --r-sm: 6px; --r: 10px; --r-lg: 12px; --r-xl: 16px; --gloss: 0.25; --tile-ts: 0 1px 2px rgba(0,0,0,.2); --tg0: linear-gradient(160deg, #24563E, #1A422F); --tc0: #1A422F; --ti0: #F3EBD6; --tg1: linear-gradient(160deg, #F8F2E2, #F3EBD6); --tc1: #F3EBD6; --ti1: #02110C; --tg2: linear-gradient(160deg, #0A2A1D, #02110C); --tc2: #02110C; --ti2: #F3EBD6; --tg3: linear-gradient(160deg, #CDBE94, #B8A878); --tc3: #B8A878; --ti3: #02110C; --sc-sky1: #02110C; --sc-sky2: #1A422F; --sc-sky3: #6B8A62; --sc-sky4: #F3EBD6; --sc-sun: #FFF7E2; --sc-m1: #1A422F; --sc-m2: #0A2A1D; --sc-w1: #3E6A52; --sc-w2: #02110C; --sc-glint: #E9DDB8; --sc-line: #F3EBD6; }
[data-theme="rosenoir"] { --quote-ink: #F2D7DF; --bg1: #0F0D10; --bg2: #1D181C; --bg3: #3A2330; --bg-img: none; --bg-img-lg: none; --on-bg: #F2D7DF; --on-bg-muted: #C9A9B4; --card1: #FCF3F6; --card2: #F2D7DF; --card-line: rgba(255,255,255,.7); --ink: #2B2428; --ink-muted: #7A5A66; --line: #EACBD5; --accent: #B06A7F; --accent-2: #C98597; --on-accent: #fff; --soft: #F6E2E8; --t0: linear-gradient(160deg, #BE7A8E, #B06A7F); --t0-ink: #FFFFFF; --t1: linear-gradient(160deg, #F7E3E9, #F2D7DF); --t1-ink: #2B2428; --t2: linear-gradient(160deg, #6A3A4B, #5A2F3F); --t2-ink: #FFFFFF; --nav-bg: rgba(15,13,16,.96); --nav-ink: #F2D7DF; --glass: rgba(255,255,255,.1); --glass-line: rgba(255,255,255,.2); --theme-color: #0F0D10; --shadow: 0 12px 30px -12px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.18); --meter: linear-gradient(90deg, #B06A7F, #C98597); --fab: radial-gradient(circle at 35% 28%, #FFF6F8, #F2D7DF 55%, #B06A7F); --fab-ink: #2B2428; --flat-bg: #1D181C; --hero-ink: #F2D7DF; --hero-ts: 0 2px 14px rgba(0,0,0,.35); --deco-filter: saturate(1); --serif: 'Cormorant Garamond', Georgia, serif; --ttl-w: 600; --ttl-tt: none; --ttl-ls: .01em; --r-sm: 4px; --r: 8px; --r-lg: 10px; --r-xl: 14px; --gloss: 0.4; --tile-ts: 0 1px 2px rgba(0,0,0,.2); --tg0: linear-gradient(160deg, #BE7A8E, #B06A7F); --tc0: #B06A7F; --ti0: #FFFFFF; --tg1: linear-gradient(160deg, #F7E3E9, #F2D7DF); --tc1: #F2D7DF; --ti1: #2B2428; --tg2: linear-gradient(160deg, #6A3A4B, #5A2F3F); --tc2: #5A2F3F; --ti2: #FFFFFF; --tg3: linear-gradient(160deg, #2B2428, #1A1619); --tc3: #1A1619; --ti3: #F2D7DF; --sc-sky1: #0F0D10; --sc-sky2: #5A2F3F; --sc-sky3: #B06A7F; --sc-sky4: #F2D7DF; --sc-sun: #FFF0F4; --sc-m1: #2B2428; --sc-m2: #0F0D10; --sc-w1: #5A2F3F; --sc-w2: #0F0D10; --sc-glint: #F2D7DF; --sc-line: #F7E4EA; }
[data-theme="balance"] { --quote-ink: #4A2E2D; --bg1: #F8F0F0; --bg2: #EEF5F5; --bg3: #DDEBEB; --bg-img: none; --bg-img-lg: none; --on-bg: #4A2E2D; --on-bg-muted: #8A6664; --card1: #FFFFFF; --card2: #FBF4F4; --card-line: #EEDFDF; --ink: #4A2E2D; --ink-muted: #8A6664; --line: #EEDFDF; --accent: #A26B69; --accent-2: #E0A6A6; --on-accent: #fff; --soft: #F4E1E1; --t0: linear-gradient(160deg, #AD7775, #A26B69); --t0-ink: #FFFFFF; --t1: linear-gradient(160deg, #F8EBEB, #F4E1E1); --t1-ink: #4A2E2D; --t2: linear-gradient(160deg, #E4B0B0, #E0A6A6); --t2-ink: #4A2E2D; --nav-bg: rgba(255,255,255,.96); --nav-ink: #8A6664; --glass: color-mix(in srgb, var(--on-bg) 6%, transparent); --glass-line: color-mix(in srgb, var(--on-bg) 14%, transparent); --theme-color: #F8F0F0; --shadow: 0 10px 26px -14px rgba(40,20,30,.28), 0 1px 3px rgba(40,20,30,.08); --meter: linear-gradient(90deg, #A26B69, #E0A6A6); --fab: radial-gradient(circle at 35% 28%, #FFFFFF, #DDEBEB 55%, #A3D8D8); --fab-ink: #1F4A4A; --flat-bg: #EEF5F5; --hero-ink: #4A2E2D; --hero-ts: none; --deco-filter: saturate(.9); --serif: 'Inter', Georgia, serif; --ttl-w: 700; --ttl-tt: uppercase; --ttl-ls: .04em; --r-sm: 0px; --r: 2px; --r-lg: 2px; --r-xl: 4px; --gloss: 0; --tile-ts: none; --card-ttl: .95rem; --tg0: linear-gradient(160deg, #AEDDDD, #A3D8D8); --tc0: #A3D8D8; --ti0: #1F4A4A; --tg1: linear-gradient(160deg, #F8EBEB, #F4E1E1); --tc1: #F4E1E1; --ti1: #4A2E2D; --tg2: linear-gradient(160deg, #E4B0B0, #E0A6A6); --tc2: #E0A6A6; --ti2: #4A2E2D; --tg3: linear-gradient(160deg, #AD7775, #A26B69); --tc3: #A26B69; --ti3: #FFFFFF; --sc-sky1: #86C6C6; --sc-sky2: #A3D8D8; --sc-sky3: #F4E1E1; --sc-sky4: #FDF5F5; --sc-sun: #FFFFFF; --sc-m1: #E0A6A6; --sc-m2: #A26B69; --sc-w1: #DDEBEB; --sc-w2: #86C6C6; --sc-glint: #FFF5F5; --sc-line: #FFFFFF; }
[data-theme="sunset"] { --quote-ink: #F7E3DA; --bg1: #13141C; --bg2: #1F2236; --bg3: #3A2E3E; --bg-img: none; --bg-img-lg: none; --on-bg: #F7E3DA; --on-bg-muted: #C9AFA8; --card1: #FFF7F3; --card2: #F6E3DA; --card-line: rgba(255,255,255,.7); --ink: #1F2236; --ink-muted: #6E6475; --line: #EED8CF; --accent: #D9858F; --accent-2: #F2C0AB; --on-accent: #fff; --soft: #F9E6DE; --t0: linear-gradient(160deg, #E2939C, #D9858F); --t0-ink: #FFFFFF; --t1: linear-gradient(160deg, #F6CCB9, #F2C0AB); --t1-ink: #1F2236; --t2: linear-gradient(160deg, #A67777, #9A6B6B); --t2-ink: #FFFFFF; --nav-bg: rgba(19,20,28,.96); --nav-ink: #F2C0AB; --glass: rgba(255,255,255,.1); --glass-line: rgba(255,255,255,.2); --theme-color: #13141C; --shadow: 0 12px 30px -12px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.18); --meter: linear-gradient(90deg, #D9858F, #F2C0AB); --fab: radial-gradient(circle at 35% 28%, #FFF6F0, #F2C0AB 55%, #D9858F); --fab-ink: #1F2236; --flat-bg: #1F2236; --hero-ink: #FFFFFF; --hero-ts: 0 2px 14px rgba(0,0,0,.35); --deco-filter: saturate(1); --serif: 'Playfair Display', Georgia, serif; --ttl-w: 500; --ttl-tt: none; --ttl-ls: 0; --r-sm: 4px; --r: 8px; --r-lg: 10px; --r-xl: 14px; --gloss: 0.4; --tile-ts: 0 1px 2px rgba(0,0,0,.2); --tg0: linear-gradient(160deg, #E2939C, #D9858F); --tc0: #D9858F; --ti0: #FFFFFF; --tg1: linear-gradient(160deg, #F6CCB9, #F2C0AB); --tc1: #F2C0AB; --ti1: #1F2236; --tg2: linear-gradient(160deg, #A67777, #9A6B6B); --tc2: #9A6B6B; --ti2: #FFFFFF; --tg3: linear-gradient(160deg, #2A2E46, #1F2236); --tc3: #1F2236; --ti3: #F2C0AB; --sc-sky1: #13141C; --sc-sky2: #1F2236; --sc-sky3: #D9858F; --sc-sky4: #F2C0AB; --sc-sun: #FFF0E6; --sc-m1: #9A6B6B; --sc-m2: #1F2236; --sc-w1: #D9858F; --sc-w2: #13141C; --sc-glint: #F2C0AB; --sc-line: #FFE3D6; }
[data-theme="macaron"] .sidebar, [data-theme="eucalyptus"] .sidebar, [data-theme="blush"] .sidebar, [data-theme="balance"] .sidebar { background: color-mix(in srgb, var(--card1) 70%, transparent); }
[data-theme="macaron"] .quote, [data-theme="eucalyptus"] .quote, [data-theme="blush"] .quote, [data-theme="balance"] .quote { text-shadow: none !important; }
[data-theme="aurore"] .bg, [data-theme="blush"] .bg { background: linear-gradient(135deg, var(--bg1) 0%, var(--bg2) 50%, var(--bg3) 100%) !important; }
[data-theme="eucalyptus"] .brand-title, [data-theme="blush"] .brand-title, [data-theme="balance"] .brand-title { font-family: "Inter", sans-serif; font-style: normal; letter-spacing: -.03em; }
[data-theme="eucalyptus"] .brand-title { font-weight: 300; } [data-theme="blush"] .brand-title { font-weight: 600; } [data-theme="balance"] .brand-title { font-weight: 700; text-transform: uppercase; font-size: 2.1rem; letter-spacing: .02em; }
[data-theme="eucalyptus"] .brand-years, [data-theme="blush"] .brand-years, [data-theme="balance"] .brand-years { font-family: "Inter", sans-serif; font-style: normal; font-weight: 300; letter-spacing: .35em; font-size: 1.05rem; }
[data-theme="eucalyptus"] .quote, [data-theme="blush"] .quote, [data-theme="balance"] .quote { font-family: "Inter", sans-serif; font-style: normal; font-size: .98rem; }
[data-theme="aurore"] .brand-title, [data-theme="lavgris"] .brand-title, [data-theme="emeraude"] .brand-title, [data-theme="sunset"] .brand-title { font-style: normal; }
[data-theme="emeraude"] .side-link.active, [data-theme="emeraude"] .bottom-nav a.active { background: var(--card2) !important; color: var(--ink) !important; }
.hero-edit { bottom: 200px; }
.hero-scene.has-photo ~ .hero-edit, .hero-edit:has(+ .hero-text) { }
@media (min-width: 768px) { .hero-edit { bottom: 250px; } }
@media (min-width: 1180px) { .hero-edit { right: 8%; bottom: 46px; } }

/* v2.1 — espacement régulier entre tous les blocs d'une page */
.view > :is(.card, .empty, .grid-2, .members, .notes-grid, .album, .tlist, section, .week-agenda, .month-grid, .year-grid, .space-group) + :is(.card, .empty, .grid-2, .members, .notes-grid, .album, section, .week-agenda, .day-panel) { margin-top: 16px; }
.view > .empty { margin-bottom: 0; }
.members + .card { margin-top: 16px; }
.view > :is(.grid-2, .card, .kpis) + .datebar { margin-top: 24px; }

/* ======================================================================
   v2.2 — CALENDRIER MOIS : NOUVEAU DESIGN
   ====================================================================== */
.month-grid { padding: 14px 10px 12px; }
.mhead { padding: 0 2px 8px; border-bottom: var(--hair); margin-bottom: 6px; }
.mhead span { font-size: .6rem; letter-spacing: .14em; color: var(--ink-muted); padding: 2px 0; }
.mhead span:nth-child(n+6) { color: var(--accent-2); }
.mbody { gap: 2px 0; }
.mday { position: relative; min-height: 50px; padding: 5px 0 4px; border-radius: 0; gap: 4px; background: none !important; box-shadow: none !important; justify-content: flex-start; transition: none; }
.mday.we:not(.out) { background: color-mix(in srgb, var(--soft) 55%, transparent) !important; }
.mday.we:nth-child(7n+6) { border-radius: 10px 0 0 10px; } .mday.we:nth-child(7n) { border-radius: 0 10px 10px 0; }
.mday .dn { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto; border-radius: 50%; font-size: .95rem; font-weight: 500; font-variant-numeric: tabular-nums lining-nums; color: var(--ink); transition: background .15s, color .15s, box-shadow .15s; }
.mday.out .dn { color: var(--ink-muted); font-weight: 400; }
.mday.out { opacity: .4; }
.mday.has .dn { font-weight: 700; }
.mday.today span:first-child { width: 32px; height: 32px; margin-top: 0; }
.mday.today .dn { background: linear-gradient(160deg, var(--accent-2), var(--accent)); color: var(--on-accent); box-shadow: 0 6px 14px -6px var(--accent); }
.mday.sel:not(.today) .dn { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); background: #fff; }
.mday.sel.today .dn { box-shadow: 0 0 0 3px var(--card1), 0 0 0 4.5px var(--accent-2), 0 6px 14px -6px var(--accent); }
@media (hover: hover) { .mday:not(.sel):not(.today):hover .dn { background: var(--soft); } }
.marks { height: 5px; gap: 3px; justify-content: center; }
.mk { width: 5px; height: 5px; }
.mfoot { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; padding: 12px 4px 2px; margin-top: 6px; border-top: var(--hair); font-size: .72rem; color: var(--ink-muted); }
.mfoot span { display: inline-flex; align-items: center; gap: 6px; }
.lg-today i { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(160deg, var(--accent-2), var(--accent)); }
/* Panneau du jour */
.day-panel { margin-top: 16px; padding: 16px; }
.dp-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: var(--hair); }
.dp-badge { flex: none; width: 56px; height: 60px; border-radius: var(--r); display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--soft); color: var(--ink); }
.dp-badge small { font-size: .6rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.dp-badge b { font-family: var(--serif); font-size: 1.7rem; line-height: 1; font-weight: 600; font-variant-numeric: lining-nums; }
.dp-badge.today { background: linear-gradient(160deg, var(--accent-2), var(--accent)); color: var(--on-accent); }
.dp-badge.today small { color: inherit; opacity: .85; }
.dp-t { flex: 1; min-width: 0; }
.dp-t .eyebrow { color: var(--ink-muted); }
.dp-t h2 { font-family: var(--serif); font-size: 1.22rem; line-height: 1.15; margin-top: 3px; font-weight: var(--ttl-w, 600); }
.primary-ic { background: linear-gradient(160deg, var(--accent-2), var(--accent)) !important; color: var(--on-accent) !important; }
.dp-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 22px 8px 6px; color: var(--ink-muted); }
.dp-empty span { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink); }
.dp-empty small { font-size: .74rem; }
.day-panel .items { margin-top: 6px; }
@media (min-width: 768px) { .mday { min-height: 66px; } .mday .dn { width: 36px; height: 36px; } .month-grid { padding: 18px 16px 14px; } }
@media (min-width: 1180px) {
  [data-page="calendrier"] .month-grid { display: block; }
  .mday { min-height: 84px; }
}
.mday.we:not(.out) { background: none !important; }
.mday.we .dn { color: color-mix(in srgb, var(--accent) 75%, var(--ink)); }
.mday.out .marks { visibility: hidden; }
.dp-n { display: block; font-size: .72rem; color: var(--ink-muted); margin-top: 2px; }
.day-panel .item.task .chk, .day-panel .item .time { min-width: 44px; }
.day-panel .item { gap: 12px; }

/* ======================================================================
   v2.3 — ICÔNES EN BADGE (même style que les modèles de notes)
   carré teinté + trait fin + détail coloré à l'accent du thème
   ====================================================================== */
.ic.duo > :last-child:not(:first-child) { stroke: var(--ic-ac, currentColor); }
.ibadge, .card-ic .ic, .space-tile > .ic, .add-opt > .ic, .kpi > .ic, .goal-cat > .ic, .empty > .ic, .tx-ic, .shortcuts .tile > .ic, .dp-badge + * .nothing {
  box-sizing: border-box; flex: none; border-radius: var(--r);
}
/* Badges sur cartes claires */
.card-ic .ic, .kpi > .ic, .goal-cat > .ic, .empty > .ic, .tx-ic {
  --ic-ac: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-2) 30%, transparent);
  color: var(--ink);
}
.card-ic .ic { width: 36px !important; height: 36px !important; padding: 8px; stroke-width: 1.7; }
.home .card-ic .ic { width: 32px !important; height: 32px !important; padding: 7px; }
.c-track .card-ic .ic, .c-hab .card-ic .ic, .c-week .card-ic .ic, .c-prog .card-ic .ic { width: 28px !important; height: 28px !important; padding: 6px; }
.kpi > .ic { width: 34px; height: 34px; padding: 7px; margin-bottom: 6px; }
.kpi.in > .ic { --ic-ac: #3E8A5B; } .kpi.out > .ic { --ic-ac: #B3364F; }
.goal-cat > .ic { width: 42px; height: 42px; padding: 9px; margin-bottom: 2px; }
.empty > .ic { width: 56px; height: 56px; padding: 13px; opacity: 1; color: var(--ink); }
.tx-ic { border-radius: var(--r) !important; }
.tx-ic.in { --ic-ac: #3E8A5B; } .tx-ic.out { --ic-ac: #B3364F; }
.tx-ic .ic { color: var(--ink); }
/* Badges sur fonds colorés (raccourcis, espaces, ajout) */
.space-tile > .ic, .add-opt > .ic, .shortcuts .tile > .ic {
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); color: currentColor; --ic-ac: currentColor;
}
.space-tile.tile-1 > .ic, .add-opt.tile-1 > .ic, .shortcuts .tile-1 > .ic { background: color-mix(in srgb, var(--accent-2) 16%, transparent); border-color: color-mix(in srgb, var(--accent-2) 32%, transparent); --ic-ac: var(--accent-2); }
.space-tile > .ic { width: 44px !important; height: 44px !important; padding: 10px; margin-bottom: 8px; }
.add-opt > .ic { width: 42px !important; height: 42px !important; padding: 9px; }
.shortcuts .tile > .ic { width: 38px !important; height: 38px !important; padding: 8px; }
.shortcuts .tile.r2 > .ic { width: 34px !important; height: 34px !important; padding: 7px; }
.shortcuts .tile { gap: 6px; }
/* Thèmes sombres : cartes claires gardent un trait foncé ; fonds sombres gardent un trait clair */
.view > .page-head .btn .ic, .side-link .ic, .bottom-nav .ic, .top-actions .ic { --ic-ac: currentColor; }
@media (min-width: 768px) { .shortcuts .tile > .ic { width: 42px !important; height: 42px !important; padding: 9px; } .shortcuts .tile.r2 > .ic { width: 40px !important; height: 40px !important; } }
@media (min-width: 1180px) { .side-link .ic { --ic-ac: var(--accent-2); } .side-link.active .ic { --ic-ac: currentColor; } }

/* v2.4 — traits fins constants + détails blancs sur les tuiles */
.ic.line > * { vector-effect: non-scaling-stroke; }
.ic.line { stroke-width: 1.6px; }
.empty > .ic.line, .space-tile > .ic.line, .goal-cat > .ic.line { stroke-width: 1.5px; }
.shortcuts .tile > .ic, .space-tile > .ic, .add-opt > .ic,
.shortcuts .tile-1 > .ic, .space-tile.tile-1 > .ic, .add-opt.tile-1 > .ic { --ic-ac: currentColor; }
.shortcuts .tile-1 > .ic, .space-tile.tile-1 > .ic, .add-opt.tile-1 > .ic { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); }
/* v2.5 — illustration florale par défaut */
.hero-scene.art .hero-photo { object-position: 50% 28%; }
.hero-scene.art::after { background: linear-gradient(180deg, rgba(40,15,30,.45) 0%, rgba(40,15,30,.18) 30%, rgba(40,15,30,.05) 55%, color-mix(in srgb, var(--bg2) 92%, transparent) 100%) !important; }
@media (min-width: 1180px) { .hero-scene.art .hero-photo { object-position: 50% 32%; } }
/* v2.6 — traits encore plus fins, partout */
.ic.line, .ic.line > * { stroke-width: 1.2px !important; }
.bottom-nav .ic.line, .bottom-nav .ic.line > *, .top-actions .ic.line, .top-actions .ic.line > * { stroke-width: 1.35px !important; }
.btn .ic.line, .btn .ic.line > *, .icon-btn.sm .ic.line, .icon-btn.sm .ic.line > * { stroke-width: 1.5px !important; }
.tpl-svg, .tpl-svg * { stroke-width: 1.3px; vector-effect: non-scaling-stroke; }

/* ======================================================================
   v3.0 — ASSISTANT PERSONNEL
   ====================================================================== */
.c-assist { grid-column: 1 / -1; }
.c-assist .card-head h2 small { font-family: var(--sans); }
.capture { position: relative; display: flex; align-items: center; margin: 10px 0 4px; }
.capture input { padding-inline-end: 54px !important; min-height: 52px !important; border-radius: var(--r) !important; background: #fff !important; font-size: 15px !important; box-shadow: inset 0 1px 2px rgba(0,0,0,.04); }
.capture input::placeholder { color: var(--ink-muted); opacity: .75; font-size: 13.5px; }
.cap-btn { position: absolute; inset-inline-end: 6px; width: 40px; height: 40px; border-radius: calc(var(--r) - 2px); display: grid; place-items: center; background: linear-gradient(160deg, var(--accent-2), var(--accent)); color: var(--on-accent); }
.cap-btn .ic { width: 18px; height: 18px; }
.cap-preview { display: flex; align-items: center; gap: 8px; min-height: 0; max-height: 0; overflow: hidden; font-size: .78rem; color: var(--accent); font-weight: 600; transition: max-height .2s, margin .2s; }
.cap-preview.on { max-height: 40px; margin: 4px 2px 6px; }
.cap-preview .ic { width: 15px; height: 15px; }
.brief { margin-top: 8px; }
.brief li + li { border-top: var(--hair); }
.brief a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; color: var(--ink); }
.br-ic .ic { width: 34px !important; height: 34px !important; padding: 7px; border-radius: var(--r); background: color-mix(in srgb, var(--accent-2) 16%, transparent); border: 1px solid color-mix(in srgb, var(--accent-2) 30%, transparent); --ic-ac: var(--accent-2); color: var(--ink); }
.brief li.warn .br-ic .ic { background: #F8E1E6; border-color: #F0C3CD; --ic-ac: #B3364F; }
.brief li.soft .br-t { color: var(--ink-muted); }
.br-t { flex: 1; min-width: 0; font-size: .9rem; line-height: 1.35; }
.br-t b { font-weight: 600; } .br-t em { font-style: normal; color: #B3364F; font-weight: 600; } .br-t small { color: var(--ink-muted); }
.br-go { width: 12px !important; height: 12px !important; color: var(--ink-muted); flex: none; }
.brief-empty { padding: 18px 4px 6px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink-muted); }
/* Choix des espaces */
.presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.preset { display: flex; flex-direction: column; gap: 2px; text-align: start; padding: 12px; border-radius: var(--r); background: var(--soft); border: 1px solid var(--line); color: var(--ink); min-height: 64px; }
.preset b { font-size: .92rem; } .preset small { font-size: .72rem; color: var(--ink-muted); }
.preset:active { transform: scale(.97); }
.mod-group { padding-top: 12px; }
.mg-title { font-family: var(--sans); font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 4px; }
.mod-list li + li { border-top: var(--hair); }
.mod-row { display: flex; align-items: center; gap: 12px; min-height: 60px; cursor: pointer; }
.mr-ic .ic { width: 38px !important; height: 38px !important; padding: 8px; border-radius: var(--r); background: color-mix(in srgb, var(--accent-2) 16%, transparent); border: 1px solid color-mix(in srgb, var(--accent-2) 30%, transparent); --ic-ac: var(--accent-2); color: var(--ink); }
.mr-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mr-t b { font-weight: 600; font-size: .92rem; } .mr-t small { font-size: .74rem; color: var(--ink-muted); }
.mod-row .switch { min-height: 0; }
/* Repas & courses */
.shop-cat h3 { font-family: var(--sans); font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 14px 0 2px; }
.meals li { display: grid; grid-template-columns: 46px 1fr; gap: 10px; align-items: center; padding: 8px 0; border-bottom: var(--hair); }
.meals li:last-child { border-bottom: 0; }
.ml-d { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 50px; border-radius: var(--r); background: var(--soft); }
.ml-d small { font-size: .58rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.ml-d b { font-family: var(--serif); font-size: 1.25rem; line-height: 1; font-variant-numeric: lining-nums; }
.meals li.today .ml-d { background: linear-gradient(160deg, var(--accent-2), var(--accent)); color: var(--on-accent); }
.meals li.today .ml-d small { color: inherit; opacity: .85; }
.ml-in { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ml-in input { min-height: 40px !important; padding: 8px 10px !important; font-size: 14px !important; }
/* Factures */
.bill-row { display: flex; align-items: center; gap: 10px; min-height: 60px; }
.bill-row .tx-m { flex: 1; min-width: 0; text-align: start; }
.bill-row .btn { flex: none; }
@media (min-width: 768px) { .presets { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .c-assist { grid-column: 1 / span 2; } }
.bill-row { min-width: 0; }
.bill-row .tx-m b, .bill-row .tx-m small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
@media (max-width: 479px) { .bill-row .btn span { display: none; } .bill-row .btn { width: 40px; padding: 0; } }
.bill-row .tx-m { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }

/* ======================================================================
   v3.1 — ASSISTANT PROACTIF + MÉMOIRE
   ====================================================================== */
.c-assist .card-head { flex-wrap: wrap; }
.as-plan { margin-inline-start: auto; }
@media (max-width: 479px) { .as-plan { width: 100%; order: 3; margin-top: 8px; } }
.brief li { padding: 4px 0 8px; }
.br-row { display: flex; align-items: center; gap: 4px; }
.br-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 48px; color: var(--ink); }
.br-x { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-muted); opacity: .55; position: relative; }
.br-x::after { content: ''; position: absolute; inset: -6px; }
.br-x .ic { width: 13px; height: 13px; }
.br-x:hover { opacity: 1; background: var(--soft); }
.br-acts { display: flex; flex-wrap: wrap; gap: 6px; padding-inline-start: 46px; }
.br-btn { min-height: 34px; padding: 0 12px; border-radius: var(--r); font-size: .78rem; font-weight: 600; background: linear-gradient(160deg, var(--accent-2), var(--accent)); color: var(--on-accent); }
.br-btn + .br-btn { background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.br-chip { min-height: 34px; padding: 0 12px; border-radius: 999px; font-size: .78rem; font-weight: 500; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.br-btn:active, .br-chip:active { transform: scale(.96); }
.as-mem { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding-top: 12px; border-top: var(--hair); font-size: .8rem; font-weight: 600; color: var(--accent); }
.as-mem .ic { width: 16px; height: 16px; } .as-mem .ic:last-child { margin-inline-start: auto; width: 12px; height: 12px; }
/* Planning */
.timeline { position: relative; margin: 4px 0 8px; }
.timeline::before { content: ''; position: absolute; left: 62px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 48px 28px 1fr; align-items: center; min-height: 56px; }
.tl-h { font-size: .78rem; font-weight: 600; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.tl-dot { width: 11px; height: 11px; border-radius: 50%; justify-self: center; position: relative; z-index: 1; background: var(--card1); border: 2px solid var(--accent-2); }
.tl-task .tl-dot { background: var(--accent); border-color: var(--accent); }
.tl-pause .tl-dot { border-color: var(--line); }
.tl-c { display: flex; flex-direction: column; padding: 8px 12px; border-radius: var(--r); background: var(--soft); }
.tl-task .tl-c { background: color-mix(in srgb, var(--accent-2) 18%, #fff); }
.tl-pause .tl-c { background: transparent; color: var(--ink-muted); }
.tl-c b { font-weight: 600; font-size: .9rem; } .tl-c small { font-size: .72rem; color: var(--ink-muted); }
.tk-time { font-weight: 700; color: var(--accent); margin-inline-end: 4px; font-variant-numeric: tabular-nums; }
/* Page mémoire */
.mem-list li + li { border-top: var(--hair); }
.mem-row { display: flex; align-items: center; gap: 12px; min-height: 58px; }
.mem-row .mr-t small em { font-style: normal; color: var(--accent); font-weight: 600; }
.pref-btns { display: flex; align-items: center; gap: 4px; }
.pref-v { min-width: 26px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; font-size: .85rem; }

/* ======================================================================
   v3.2 — MATCH (calendrier sportif)
   ====================================================================== */
.mt-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--s4)) 14px; padding: 2px var(--s4); }
.mt-nav::-webkit-scrollbar { display: none; }
.mt-nav button { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--glass-line); color: var(--on-bg); font-size: .82rem; font-weight: 600; }
.mt-nav button .ic { width: 16px; height: 16px; }
.mt-nav button.on { background: var(--card1); color: var(--ink); border-color: transparent; }
.mt-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 12px; }
.mt-strip button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; border-radius: var(--r); color: var(--on-bg); background: var(--glass); border: 1px solid transparent; }
.mt-strip small { font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.mt-strip b { font-family: var(--serif); font-size: 1.2rem; line-height: 1; font-variant-numeric: lining-nums; }
.mt-strip i { width: 5px; height: 5px; border-radius: 50%; }
.mt-strip i.y { background: var(--accent-2); }
.mt-strip button.on { background: var(--card1); color: var(--ink); }
.mt-strip button.today:not(.on) { border-color: var(--glass-line); }
.mt-filt { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.mt-filt .chip { flex: none; }
.mt-big { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px; border-radius: var(--r-lg); background: linear-gradient(160deg, var(--accent-2), var(--accent)); color: var(--on-accent); }
.mt-big .ic { width: 22px; height: 22px; } .mt-big span { display: flex; flex-direction: column; } .mt-big small { opacity: .85; font-size: .75rem; }
.mt-group { padding: 12px 14px; }
.mt-gh { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: var(--hair); }
.mt-gh b { font-weight: 600; font-size: .92rem; flex: 1; min-width: 0; }
.mt-gh small { font-size: .7rem; color: var(--ink-muted); display: inline-flex; align-items: center; gap: 4px; }
.mt-gi { width: 30px; height: 30px; flex: none; border-radius: var(--r-sm); display: grid; place-items: center; background: color-mix(in srgb, var(--sc, var(--accent)) 16%, transparent); color: var(--sc, var(--accent)); }
.mt-gi .ic { width: 17px !important; height: 17px !important; }
.mt-list li + li { border-top: var(--hair); }
.mt-row { display: grid; grid-template-columns: 62px 1fr 36px; align-items: center; gap: 8px; padding: 10px 0; }
.mt-row.perso, .mt-row:not(:has(.mt-star)) { grid-template-columns: 62px 1fr; }
.mt-row.live { background: linear-gradient(90deg, color-mix(in srgb, #E2546E 8%, transparent), transparent); }
.mt-row.fav .mt-team span { font-weight: 600; }
.mt-t { font-size: .78rem; font-variant-numeric: tabular-nums; }
.mt-time { font-weight: 600; color: var(--ink); }
.mt-live { color: #D23A55; font-weight: 700; font-size: .72rem; }
.mt-end { color: var(--ink-muted); font-size: .72rem; }
.mt-teams { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mt-team { display: flex; align-items: center; gap: 8px; font-size: .88rem; min-width: 0; }
.mt-team > span:not(.mt-badge) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-team b { font-variant-numeric: tabular-nums; min-width: 18px; text-align: end; }
.mt-team.w b, .mt-team.w span { font-weight: 700; }
.mt-badge { width: 22px; height: 22px; flex: none; border-radius: 6px; display: grid; place-items: center; font-size: .5rem; font-weight: 800; letter-spacing: -.02em; color: #fff; background: var(--tc); }
.mt-ev { font-weight: 600; font-size: .9rem; }
.mt-row.big .mt-ev { color: var(--accent); }
.mt-note { font-size: .7rem; color: var(--ink-muted); }
.mt-star { width: 36px; height: 36px; display: grid; place-items: center; color: var(--line); border-radius: 50%; }
.mt-star .ic { width: 18px; height: 18px; } .mt-star.on { color: #E2A13B; }
.mt-load { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 14px; color: var(--on-bg-muted); font-size: .85rem; }
.mt-off { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.mt-off > .ic { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.mt-off code { font-size: .75rem; }
.mt-wd { padding: 10px 14px; }
.mt-wd.today { box-shadow: var(--shadow), inset 0 0 0 2px var(--accent-2); }
.mt-wdh { display: flex; justify-content: space-between; align-items: baseline; width: 100%; min-height: 36px; }
.mt-wdh b { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; } .mt-wdh small { font-size: .72rem; color: var(--ink-muted); }
.mt-more { width: 100%; min-height: 40px; font-size: .8rem; font-weight: 600; color: var(--accent); }
.mt-table { padding: 10px 12px; }
.mt-tr { display: grid; grid-template-columns: 26px 1fr 28px 36px 34px; align-items: center; gap: 6px; min-height: 40px; font-size: .82rem; font-variant-numeric: tabular-nums; border-bottom: var(--hair); position: relative; }
.mt-tr.sc { grid-template-columns: 26px 1fr 40px; }
.mt-tr.sc:has(span:nth-child(4)) { grid-template-columns: 26px 1fr 40px 40px; }
.mt-tr:last-child { border-bottom: 0; }
.mt-th { font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); min-height: 30px; }
.mt-tr > span:nth-child(n+3), .mt-tr > b { text-align: center; }
.mt-tr[style] .mt-rk { box-shadow: inset 3px 0 0 var(--zc); }
.mt-rk { font-weight: 600; color: var(--ink-muted); padding-inline-start: 6px; }
.mt-tn { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mt-tn small { display: block; font-size: .68rem; color: var(--ink-muted); }
.mt-tr.sc .mt-tn { flex-direction: column; align-items: flex-start; gap: 0; }
.mt-tr.fav { background: color-mix(in srgb, #E2A13B 12%, transparent); }
.mt-evl li + li { border-top: var(--hair); }
.mt-evc { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px 0; text-align: start; }
.mt-evt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mt-evt b { font-weight: 600; font-size: .92rem; } .mt-evt small { font-size: .72rem; color: var(--ink-muted); }
.mt-tv { color: var(--accent) !important; }
.mt-j { font-weight: 700; font-size: .85rem; color: var(--accent); white-space: nowrap; }
.mt-j em { font-style: normal; color: #D23A55; }
.mt-evl.past { opacity: .6; }
.mt-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mt-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border-radius: var(--r); border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-align: start; }
.mt-tile b { font-size: .9rem; } .mt-tile small { font-size: .72rem; color: var(--ink-muted); }
.mt-tile.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--soft); }
.mt-tile.on small { color: var(--accent); font-weight: 600; }
@media (min-width: 768px) { .mt-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mt-nav { margin-inline: 0; padding-inline: 0; } }

/* ===== v3.3 — Cercle (partage entre proches) ===== */
.ce-av { --mc: #C77A93; flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--mc); color: #fff; font-weight: 600; font-size: .85rem; letter-spacing: .02em; border: 2px solid var(--card1, #fff); }
.ce-av.lg { width: 46px; height: 46px; font-size: 1.05rem; }
.ce-av.sm { width: 28px; height: 28px; font-size: .74rem; }
.ce-av.xs { width: 22px; height: 22px; font-size: .62rem; border-width: 1.5px; }
.ce-av.more { background: var(--soft); color: var(--ink); }
.ce-stack { display: inline-flex; align-items: center; padding: 0; background: none; border: 0; }
.ce-stack .ce-av + .ce-av { margin-left: -9px; }
.ce-head .page-actions { display: flex; align-items: center; gap: 10px; }
.ce-status { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 0 12px; border-radius: var(--r); font-size: .82rem; line-height: 1.35; background: var(--glass); border: 1px solid var(--glass-line); color: var(--on-bg); }
.ce-status .ic { width: 18px; height: 18px; flex: none; }
.ce-status span { flex: 1; min-width: 0; }
.ce-status.off { border-color: rgba(200, 55, 59, .35); }
.ce-hero { text-align: center; }
.ce-hero-av { display: flex; justify-content: center; margin: 4px 0 10px; }
.ce-hero-av .ce-av + .ce-av { margin-left: -12px; }
.ce-hero h2 { font-family: var(--ttl-font, inherit); font-size: 1.25rem; margin: 0 0 12px; }
.ce-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.ce-feats li { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.ce-feats .ic { width: 18px; height: 18px; color: var(--accent); flex: none; }
.ce-code-in { text-transform: uppercase; letter-spacing: .25em; font-weight: 600; text-align: center; }
.form .btn.block, .btn.block { width: 100%; justify-content: center; margin-top: 12px; }
.ce-kpis .kpi { text-align: left; font: inherit; cursor: pointer; }
.ce-kpi-t { font-size: .92rem !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ce-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ce-list > li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.ce-list > li:last-child { border-bottom: 0; }
.ce-row { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0; background: none; border: 0; text-align: left; color: inherit; font: inherit; }
.ce-row[disabled] { opacity: 1; cursor: default; }
.ce-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ce-m b { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ce-m small { color: var(--ink-muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ce-date { flex: none; width: 44px; height: 46px; border-radius: var(--r-sm, 8px); background: var(--soft); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ce-date small { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 600; }
.ce-date b { font-family: var(--ttl-font, inherit); font-size: 1.2rem; margin-top: 2px; }
.ce-out { flex-direction: column; align-items: stretch !important; gap: 8px !important; }
.ce-rsvp { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ce-rsvp .chips { margin: 0; gap: 6px; }
.ce-rsvp .chip { min-height: 32px; padding: 0 11px; font-size: .78rem; }
.ce-yes { display: inline-flex; align-items: center; }
.ce-yes .ce-av + .ce-av { margin-left: -6px; }
.ce-yes small { margin-left: 6px; font-size: .76rem; color: var(--ink-muted); }
.ce-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ce-feed li { display: flex; align-items: center; gap: 10px; font-size: .86rem; line-height: 1.35; }
.ce-tr .btn { flex: none; }
.ce-ok { display: flex; align-items: center; gap: 8px; margin: 4px 0; color: var(--ink-muted); font-size: .88rem; }
.ce-ok .ic { color: var(--accent); width: 18px; height: 18px; }
.ce-wi { flex: none; width: 36px; height: 36px; border-radius: var(--r-sm, 8px); background: var(--soft); display: grid; place-items: center; color: var(--accent); }
.ce-wi .ic { width: 18px; height: 18px; }
.ce-wish.res .ce-m b { text-decoration: line-through; text-decoration-color: var(--accent); }
.ce-tag { flex: none; font-size: .72rem; padding: 4px 9px; border-radius: 999px; background: var(--soft); color: var(--ink-muted); }
.ce-wcard .card-head { gap: 10px; }
.ce-mem .ic { width: 18px; height: 18px; color: #B08D2E; flex: none; }
.ce-code { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px; margin: 10px 0 12px; border-radius: var(--r); background: var(--soft); border: 1px dashed var(--line); }
.ce-code small { font-size: .72rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .08em; }
.ce-code b { font-family: var(--ttl-font, inherit); font-size: 1.7rem; letter-spacing: .28em; padding-left: .28em; }
.ce-share { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ce-share .btn { flex: 1 1 calc(50% - 4px); justify-content: center; }
.ce-phone { margin: 12px 0 4px; }
.ce-phone label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 6px; }
.ce-phone .inline-add input { flex: 1; min-width: 0; }
.ce-pick { border: 0; padding: 0; margin: 12px 0 0; min-width: 0; }
.ce-pick legend { font-size: .8rem; font-weight: 600; margin-bottom: 8px; padding: 0; }
.ce-pick legend small { font-weight: 400; color: var(--ink-muted); }
.ce-pick .chips { margin: 0; gap: 6px; }
.chip-r { position: relative; }
.chip-r input { position: absolute; opacity: 0; pointer-events: none; }
.chip-r span { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 6px; border-radius: 10px; background: var(--soft); border: 1.5px solid var(--line); font-size: .84rem; color: var(--ink); cursor: pointer; }
.chip-r input:checked + span { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 2px var(--soft); font-weight: 600; }
.chip-r input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ce-err { color: #C8373B; min-height: 1em; margin: 8px 0 0; }
.checklist li .ce-av.xs { margin-left: auto; }
.item.ev.cercle .time { color: var(--accent); }
.item.ev.cercle .it-t::after { content: ' · Cercle'; font-size: .72rem; color: var(--ink-muted); }
@media (min-width: 768px) { .ce-share .btn { flex: 0 0 auto; } }
.form.ce-form { grid-template-columns: 1fr; row-gap: 6px; }
.form.ce-form > label, .row2 label { font-size: .8rem; font-weight: 600; margin-top: 6px; display: block; margin-bottom: 4px; }
.form.ce-form .form-actions { margin-top: 12px; }
/* Cercle — messages éphémères */
.ce-seg { margin: 0 0 12px; }
.ce-msgs { list-style: none; margin: 0 -4px; padding: 4px; display: flex; flex-direction: column; gap: 4px; max-height: min(58vh, 560px); overflow-y: auto; overscroll-behavior: contain; }
.ce-day { align-self: center; margin: 8px 0 4px; }
.ce-day span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); background: var(--soft); padding: 3px 10px; border-radius: 999px; }
.ce-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; }
.ce-msg.mine { flex-direction: row-reverse; }
.ce-msg:not(.cont) { margin-top: 6px; }
.ce-av-sp { width: 28px; flex: none; }
.ce-bub { min-width: 0; max-width: 78%; padding: 8px 12px 6px; border-radius: 14px 14px 14px 4px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.ce-msg.cont .ce-bub { border-radius: 4px 14px 14px 4px; }
.ce-msg.mine .ce-bub { background: linear-gradient(165deg, var(--accent-2), var(--accent)); color: var(--on-accent); border-color: transparent; border-radius: 14px 14px 4px 14px; }
.ce-msg.mine.cont .ce-bub { border-radius: 14px 4px 4px 14px; }
.ce-msg.kept .ce-bub { box-shadow: 0 0 0 2px var(--soft), 0 1px 2px rgba(0,0,0,.06); }
.ce-who { display: block; font-size: .74rem; margin-bottom: 2px; }
.ce-bub p { margin: 0; font-size: .9rem; line-height: 1.4; overflow-wrap: anywhere; }
.ce-meta { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: .66rem; opacity: .7; }
.ce-meta .ic { width: 11px; height: 11px; }
.ce-macts { display: flex; flex-direction: column; gap: 2px; opacity: .55; }
.ce-msg:hover .ce-macts, .ce-macts:focus-within { opacity: 1; }
.ce-macts .icon-btn[aria-pressed="true"] { color: var(--accent); opacity: 1; }
.ce-send { display: flex; align-items: flex-end; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.ce-send textarea { flex: 1; min-height: 46px !important; max-height: 140px; resize: none; line-height: 1.4; }
.ce-send .btn { flex: none; width: 46px; height: 46px; padding: 0; justify-content: center; }
.ce-chat .hint { display: flex; gap: 6px; align-items: flex-start; }
.ce-chat .hint .ic { width: 14px; height: 14px; flex: none; margin-top: 2px; }
/* Cercle — voyages */
.ce-trip { width: 100%; display: flex; align-items: center; gap: 12px; padding: 4px 0; background: none; border: 0; text-align: left; color: inherit; font: inherit; }
.ce-trip .ce-yes { margin-top: 4px; }
.ce-trip-ic { flex: none; width: 44px; height: 44px; border-radius: var(--r-sm, 8px); background: linear-gradient(165deg, var(--accent-2), var(--accent)); color: var(--on-accent); display: grid; place-items: center; }
.ce-trip-ic .ic { width: 20px; height: 20px; }
.ce-trip-ic.lg { width: 52px; height: 52px; }
.ce-count { flex: none; display: flex; flex-direction: column; align-items: center; line-height: 1; padding: 6px 10px; border-radius: var(--r-sm, 8px); background: var(--soft); }
.ce-count b { font-family: var(--ttl-font, inherit); font-size: 1.3rem; }
.ce-count small { font-size: .62rem; color: var(--ink-muted); margin-top: 2px; }
.ce-count.big b { font-size: 1.8rem; }
.ce-th-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ce-th-top h2 { margin: 0; font-family: var(--ttl-font, inherit); font-size: 1.35rem; line-height: 1.15; }
.ce-th-top .ce-m small { white-space: normal; }
.ce-th-acts { display: flex; justify-content: flex-end; margin-top: 8px; }
.ce-trip-hero .ce-rsvp { padding-top: 10px; border-top: 1px solid var(--line); }
.ce-assign { flex: none; padding: 0; background: none; border: 0; margin-left: auto; }
.ce-budget { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.ce-budget > div { padding: 10px 12px; border-radius: var(--r-sm, 8px); background: var(--soft); display: flex; flex-direction: column; }
.ce-budget small { font-size: .72rem; color: var(--ink-muted); }
.ce-budget b { font-family: var(--ttl-font, inherit); font-size: 1.3rem; }
button.back { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.chip-r { background: none; border: 0; padding: 0; font: inherit; }
.ce-warn { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-sm, 8px); background: rgba(217, 119, 43, .1); }
.ce-warn .ic { width: 16px; height: 16px; flex: none; color: #D9772B; margin-top: 2px; }
/* Cercle — sondages, maison, album, rapide */
.ce-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.ce-qbtn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--glass-line); color: var(--on-bg); font: inherit; font-size: .74rem; font-weight: 600; }
.ce-qbtn .ic { width: 20px; height: 20px; }
.ce-poll-li { list-style: none; margin: 8px 0; }
.ce-polls { list-style: none; margin: 0; padding: 0; }
.ce-poll { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 12px; }
.ce-poll header { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.ce-poll header span { display: flex; flex-direction: column; min-width: 0; }
.ce-poll header b { font-size: .95rem; line-height: 1.3; }
.ce-poll header small { font-size: .72rem; color: var(--ink-muted); }
.ce-poll ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ce-opt { position: relative; overflow: hidden; width: 100%; min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: var(--r-sm, 8px); border: 1.5px solid var(--line); background: var(--soft); color: var(--ink); font: inherit; font-size: .88rem; text-align: left; }
.ce-opt .ce-bar { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--accent) 22%, transparent); transition: width .35s ease; }
.ce-opt > span:not(.ce-bar) { position: relative; }
.ce-opt .ce-ot { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-weight: 500; }
.ce-opt .ce-ot .ic { width: 15px; height: 15px; color: var(--accent); }
.ce-opt .ce-ov { display: inline-flex; align-items: center; }
.ce-opt .ce-ov .ce-av + .ce-av { margin-left: -6px; }
.ce-opt .ce-ov small { margin-left: 6px; font-size: .74rem; font-weight: 600; color: var(--ink-muted); min-width: 34px; text-align: right; }
.ce-opt.on { border-color: var(--accent); }
.ce-opt.win { border-color: var(--accent); font-weight: 700; }
.ce-opt[disabled] { cursor: default; opacity: 1; }
.ce-poll footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: .75rem; color: var(--ink-muted); }
.ce-poll.closed { opacity: .92; }
.ce-pollbtn { flex: none; width: 46px; height: 46px; }
.ce-ping { list-style: none; align-self: center; display: flex; align-items: center; gap: 10px; margin: 8px 0; padding: 8px 14px 8px 8px; border-radius: 999px; background: color-mix(in srgb, #3E8E5E 12%, #fff); border: 1px solid color-mix(in srgb, #3E8E5E 30%, transparent); font-size: .84rem; }
.ce-ping span { display: flex; flex-direction: column; }
.ce-ping small { font-size: .68rem; color: var(--ink-muted); }
.ce-ping > .ic { width: 18px; height: 18px; color: #3E8E5E; }
.ce-chore.done .ce-m b { color: var(--ink-muted); }
.ce-chore .btn { flex: none; }
.ce-tag.ok { display: inline-flex; align-items: center; gap: 4px; background: color-mix(in srgb, #3E8E5E 14%, #fff); color: #2F6E48; }
.ce-tag.ok .ic { width: 13px; height: 13px; }
.ce-myturn { border: 1.5px solid var(--accent); }
.ce-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ce-board li { display: flex; align-items: center; gap: 10px; }
.ce-board b { flex: 1; font-size: .9rem; }
.ce-rank { width: 22px; text-align: center; font-family: var(--ttl-font, inherit); font-weight: 700; color: var(--accent); }
.ce-pts { font-size: .78rem; color: var(--ink-muted); }
.ce-album { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; border-radius: var(--r-sm, 8px); overflow: hidden; }
.ce-ph { position: relative; aspect-ratio: 1; padding: 0; border: 0; background: var(--soft); overflow: hidden; }
.ce-ph img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .3s; }
.ce-ph.ok img { opacity: 1; }
.ce-ph .ce-av { position: absolute; right: 4px; bottom: 4px; }
.ce-view img { width: 100%; max-height: 62vh; object-fit: contain; border-radius: var(--r-sm, 8px); background: var(--soft); }
.ce-cart { flex: none; align-self: center; color: var(--accent); }
.meals li { position: relative; }
@media (min-width: 768px) { .ce-album { grid-template-columns: repeat(5, minmax(0, 1fr)); } .ce-quick { max-width: 560px; } }
.bk-st { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm, 8px); background: color-mix(in srgb, #3E8E5E 10%, #fff); margin: 0 0 10px; }
.bk-st.err { background: rgba(217, 119, 43, .1); }
.bk-st > .ic { width: 20px; height: 20px; flex: none; color: #3E8E5E; }
.bk-st.err > .ic { color: #D9772B; }
.bk-st span { display: flex; flex-direction: column; }
.bk-st small { font-size: .76rem; color: var(--ink-muted); }
.bk-restore { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.bk-code { font-size: 1.25rem !important; letter-spacing: .12em !important; padding-left: 0 !important; white-space: nowrap; }
.ce-chore .ce-m small { white-space: normal; }
@media (max-width: 479px) { .ce-chore > .ce-av { display: none; } .ce-chore .btn span { display: none; } .ce-chore .btn { padding: 0 10px; } }
/* Cercle — entraide */
.ce-help-intro { display: flex; gap: 14px; align-items: flex-start; }
.ce-hi-ic { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(165deg, var(--accent-2), var(--accent)); color: var(--on-accent); }
.ce-hi-ic .ic { width: 22px; height: 22px; }
.ce-help-intro h2 { margin: 2px 0 6px; font-family: var(--ttl-font, inherit); font-size: 1.3rem; }
.ce-help-intro p { margin: 0 0 12px; font-size: .88rem; line-height: 1.45; color: var(--ink-muted); }
.ce-helps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ce-help { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 12px; }
.ce-help.solved { opacity: .75; }
.ce-hh { display: flex; align-items: center; gap: 10px; }
.ce-hcat { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--soft); color: var(--accent); }
.ce-hcat .ic { width: 13px; height: 13px; }
.ce-av.anon { background: linear-gradient(165deg, #8C7682, #5E4A57); }
.ce-ht { margin: 10px 0 8px; font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; }
.ce-hv { display: flex; align-items: center; margin: 0 0 8px; }
.ce-hv .ce-av + .ce-av { margin-left: -6px; }
.ce-hv small { margin-left: 8px; font-size: .76rem; color: var(--ink-muted); }
.ce-hr { list-style: none; margin: 0 0 10px; padding: 10px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.ce-hr li { display: flex; gap: 8px; align-items: flex-start; }
.ce-hr li > div { flex: 1; min-width: 0; background: var(--soft); border-radius: 4px 12px 12px 12px; padding: 8px 10px; font-size: .86rem; }
.ce-hr li > div small { color: var(--ink-muted); font-size: .7rem; }
.ce-hr li p { margin: 3px 0 0; line-height: 1.4; overflow-wrap: anywhere; }
.ce-hact { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ce-hact .icon-btn { margin-left: auto; }
.ce-hact .btn.on { border-color: var(--accent); color: var(--accent); }
.ce-res { list-style: none; margin: 8px 0 10px; padding: 0; display: grid; gap: 6px; }
.ce-res a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm, 8px); background: var(--soft); color: var(--ink); text-decoration: none; }
.ce-res a > b { flex: none; min-width: 64px; font-family: var(--ttl-font, inherit); font-size: 1.15rem; color: var(--accent); }
.ce-res a span { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .86rem; font-weight: 500; }
.ce-res a small { font-size: .72rem; color: var(--ink-muted); font-weight: 400; }
.ce-res a .ic { width: 16px; height: 16px; color: var(--accent); flex: none; }
.ce-quote { margin: 0 0 8px; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--soft); border-radius: 0 8px 8px 0; font-size: .84rem; color: var(--ink-muted); }
.ce-pick .chip-r .ic { width: 14px; height: 14px; margin-left: 4px; }
.ce-res a > b { min-width: 0; width: 104px; font-size: 1.02rem; white-space: nowrap; }
/* Coach & sport ensemble */
.cp-player { background: linear-gradient(170deg, var(--card1), var(--card2)); border: 1px solid var(--card-line); border-radius: var(--r-lg, 16px); box-shadow: var(--shadow); padding: 18px 16px 16px; color: var(--ink); text-align: center; margin-bottom: 14px; }
.cp-player.live { border: 1.5px solid var(--accent); }
.cp-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cp-phase { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.cp-count { font-size: .8rem; font-weight: 600; color: var(--ink-muted); }
.cp-ring { position: relative; width: min(64vw, 240px); aspect-ratio: 1; margin: 6px auto 10px; }
.cp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cp-ring circle { fill: none; stroke-width: 10; }
.cp-ring .bg { stroke: var(--soft); }
.cp-ring .fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .2s linear; }
.cp-ring.rest .fg { stroke: #4F8DC0; }
.cp-ring.paused .fg { stroke: var(--ink-muted); }
.cp-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cp-mid b { font-family: var(--ttl-font, inherit); font-size: clamp(2.8rem, 15vw, 4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.cp-mid small { font-size: .78rem; color: var(--ink-muted); margin-top: 2px; }
.cp-sub { font-size: .9rem; font-weight: 600; color: var(--accent); margin-top: 6px; font-variant-numeric: tabular-nums; }
.cp-name { font-family: var(--ttl-font, inherit); font-size: 1.5rem; margin: 2px 0 8px; line-height: 1.2; }
.cp-cues { list-style: none; margin: 0 auto 10px; padding: 0; max-width: 420px; display: grid; gap: 4px; font-size: .88rem; color: var(--ink-muted); }
.cp-cues li::before { content: '•'; color: var(--accent); margin-right: 6px; }
.cp-var { display: flex; justify-content: center; gap: 6px; }
.cp-var .chip { min-height: 32px; font-size: .78rem; }
.cp-vtxt { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; padding: 6px 10px; border-radius: 8px; background: var(--soft); font-size: .84rem; }
.cp-vtxt .ic { width: 14px; height: 14px; color: var(--accent); }
.cp-next, .cp-after { font-size: .86rem; color: var(--ink-muted); margin: 6px 0 0; }
.cp-people { display: flex; justify-content: center; margin-top: 10px; }
.cp-ctrl { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.cp-pre { padding: 24px 0 10px; }
.cp-pre small { font-size: .8rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .08em; }
.cp-pre b { display: block; font-family: var(--ttl-font, inherit); font-size: 4rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cp-end { padding: 18px 0 4px; }
.cp-end > .ic { width: 44px; height: 44px; color: #B08D2E; }
.cp-end h2 { font-family: var(--ttl-font, inherit); font-size: 1.7rem; margin: 6px 0 4px; }
.cp-hero h2 { font-family: var(--ttl-font, inherit); font-size: 1.35rem; margin: 0 0 6px; }
.cp-hero p { font-size: .9rem; color: var(--ink-muted); margin: 0 0 12px; line-height: 1.45; }
.cp-entry { display: flex; align-items: center; gap: 12px; }
.cp-entry > div { flex: 1; display: flex; flex-direction: column; }
.cp-entry small { font-size: .78rem; color: var(--ink-muted); }
.cp-e-ic { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(165deg, var(--accent-2), var(--accent)); color: var(--on-accent); }
.cp-e-ic .ic { width: 20px; height: 20px; }
.cp-prev-h { display: flex; flex-direction: column; margin-bottom: 10px; }
.cp-prev-h b { font-family: var(--ttl-font, inherit); font-size: 1.3rem; }
.cp-prev-h small { font-size: .78rem; color: var(--ink-muted); }
.cp-prev ol { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }
.cp-prev li { display: flex; align-items: center; gap: 10px; }
.form-actions.wrap { flex-wrap: wrap; }
.cp-form .chip-r .ic { width: 14px; height: 14px; margin-left: 4px; }
.ce-live { border: 1.5px solid #C8373B; }
.ce-live-h { display: flex; align-items: center; gap: 8px; font-size: .74rem; letter-spacing: .08em; color: #C8373B; }
.ce-live-h small { letter-spacing: 0; color: var(--ink-muted); font-size: .78rem; }
.ce-live h2 { font-family: var(--ttl-font, inherit); font-size: 1.35rem; margin: 6px 0 2px; }
.ce-dot { width: 9px; height: 9px; border-radius: 50%; background: #C8373B; box-shadow: 0 0 0 0 rgba(200, 55, 59, .6); animation: ce-pulse 1.6s infinite; flex: none; }
@keyframes ce-pulse { 70% { box-shadow: 0 0 0 9px rgba(200, 55, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 55, 59, 0); } }
.ce-livebar { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px; border-radius: var(--r); border: 1.5px solid #C8373B; background: #fff; color: var(--ink); text-align: left; font: inherit; }
.ce-livebar span:not(.ce-dot) { flex: 1; display: flex; flex-direction: column; }
.ce-livebar small { font-size: .76rem; color: var(--ink-muted); }
.ce-livebar .ic { width: 16px; height: 16px; color: #C8373B; }
.ce-sport-hero h2 { font-family: var(--ttl-font, inherit); font-size: 1.3rem; margin: 0 0 6px; }
.ce-sport-hero p { font-size: .88rem; color: var(--ink-muted); margin: 0 0 12px; line-height: 1.45; }
.ce-goalbar { height: 12px; border-radius: 999px; background: var(--soft); overflow: hidden; margin: 2px 0 8px; }
.ce-goalbar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
@media (prefers-reduced-motion: reduce) { .ce-dot { animation: none; } .cp-ring .fg { transition: none; } }
.form.ce-form > label.switch { display: flex; font-size: .88rem; font-weight: 500; margin: 8px 0 0; position: relative; }
.cp-var .chip { background: var(--soft); border-color: var(--line); color: var(--ink); }
.cp-var .chip.on { background: linear-gradient(165deg, var(--accent-2), var(--accent)); color: var(--on-accent); border-color: transparent; }
.cp-player .btn:not(.primary) { background: var(--soft); color: var(--ink); border-color: var(--line); }
.cp-player .btn.danger { color: #C8373B; background: transparent; }
/* Études — emploi du temps */
.edt-tabs { margin: 0 0 14px; }
.edt-tabs button { flex: 1; }
.edt-now-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin: 0 0 12px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--glass-line); color: var(--on-bg); font-size: .86rem; }
.edt-now-bar .ic { width: 16px; height: 16px; flex: none; }
.edt-card .card-head { flex-wrap: wrap; }
.edt-seg { margin-left: auto; }
.edt-seg button { min-height: 34px; padding: 0 12px; font-size: .8rem; }
.edt-acts { margin-top: 12px; }
.edt-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.edt-days button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-radius: var(--r-sm, 8px); border: 1.5px solid var(--line); background: var(--soft); color: var(--ink); font: inherit; font-size: .82rem; font-weight: 600; }
.edt-days button i { font-style: normal; font-size: .66rem; font-weight: 500; color: var(--ink-muted); }
.edt-days button.today { border-color: var(--accent); }
.edt-days button.on { background: linear-gradient(165deg, var(--accent-2), var(--accent)); color: var(--on-accent); border-color: transparent; }
.edt-days button.on i { color: var(--on-accent); opacity: .85; }
.edt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.edt-list > li { display: flex; gap: 10px; align-items: stretch; }
.edt-list > li.live .edt-b { box-shadow: 0 0 0 3px color-mix(in srgb, var(--bc) 35%, transparent); }
.edt-t { flex: none; width: 46px; display: flex; flex-direction: column; justify-content: space-between; padding: 4px 0; font-variant-numeric: tabular-nums; }
.edt-t b { font-size: .86rem; } .edt-t small { font-size: .72rem; color: var(--ink-muted); }
.edt-gap { list-style: none; text-align: center; font-size: .72rem; color: var(--ink-muted); padding: 2px 0; }
.edt-b { --bc: #9A8F96; --bt: #fff; position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 10px 12px; border-radius: var(--r-sm, 8px); border: 0; background: var(--bc); color: var(--bt); text-align: left; font: inherit; overflow: hidden; }
.edt-b b { font-size: .92rem; font-weight: 700; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edt-b small { font-size: .74rem; opacity: .9; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edt-ab { position: absolute; top: 6px; right: 8px; font-style: normal; font-size: .64rem; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: rgba(255,255,255,.3); }
.edt-b.c { width: 100%; height: 100%; padding: 4px 5px; gap: 0; }
.edt-b.c b { font-size: .7rem; } .edt-b.c small { font-size: .6rem; }
.edt-grid { display: grid; grid-template-columns: 30px repeat(var(--n), minmax(0, 1fr)); gap: 3px; margin: 0 -4px; }
.edt-hcol { display: flex; flex-direction: column; }
.edt-hcol span:first-child { height: 26px; }
.edt-hcol span:not(:first-child) { height: var(--h); font-size: .62rem; color: var(--ink-muted); transform: translateY(-6px); }
.edt-col { min-width: 0; }
.edt-dh { display: block; height: 26px; text-align: center; font-size: .74rem; font-weight: 700; color: var(--ink-muted); line-height: 26px; }
.edt-col.today .edt-dh { color: var(--accent); }
.edt-cells { position: relative; border-radius: 6px; background: var(--soft); overflow: hidden; }
.edt-col.today .edt-cells { background: color-mix(in srgb, var(--accent) 9%, var(--soft)); }
.edt-cell { display: block; width: 100%; height: var(--h); border: 0; border-top: 1px solid var(--line); background: transparent; padding: 0; }
.edt-cell:first-child { border-top: 0; }
.edt-cell:hover { background: rgba(255,255,255,.6); }
.edt-pos { position: absolute; left: 2px; right: 2px; display: flex; }
.edt-now { position: absolute; left: 0; right: 0; height: 2px; background: #C8373B; pointer-events: none; }
.edt-now::before { content: ''; position: absolute; left: -3px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #C8373B; }
.edt-subs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.edt-sub { display: flex; flex-direction: column; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-sm, 8px); border: 0; background: var(--bc); color: var(--bt); font: inherit; text-align: left; }
.edt-sub b { font-size: .9rem; } .edt-sub small { font-size: .72rem; opacity: .9; }
.edt-sw { display: flex; flex-wrap: wrap; gap: 10px; }
.edt-sw label { position: relative; }
.edt-sw input[type=radio] { position: absolute; opacity: 0; }
.edt-sw span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.edt-sw input:checked + span { box-shadow: 0 0 0 3px var(--ink); }
.edt-sw input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.edt-sw-custom input { position: absolute; inset: 0; opacity: 0; width: 36px; height: 36px; cursor: pointer; }
.edt-sw-custom span { background: conic-gradient(#E05A6D, #E8B83A, #7DBE5A, #3EA6C8, #7E6BB0, #E05A6D); color: #fff; }
.edt-sw-custom span .ic { width: 14px; height: 14px; }
.edt-prev { margin-top: 12px; display: flex; }
.edt-prev .edt-b { max-width: 260px; }
.edt-chip .pdot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-left: 4px; }
.row2 select { width: 100%; }
@media (min-width: 768px) { .edt-subs { grid-template-columns: repeat(4, minmax(0, 1fr)); } .edt-b.c b { font-size: .8rem; } .edt-b.c small { font-size: .68rem; } .edt-grid { grid-template-columns: 44px repeat(var(--n), minmax(0, 1fr)); } }
.card .edt-seg button:not(.on) { color: var(--ink-muted); }
.card .edt-seg button.on { color: var(--ink); }
/* Emoji des espaces */
.ic.emo { display: inline-grid; place-items: center; width: auto !important; height: auto !important; font-size: 1.3rem; line-height: 1; font-style: normal; stroke: none; }
.side-link .ic.emo { font-size: 1.05rem; width: 22px !important; }
.tile .ic.emo, .space-tile .ic.emo { font-size: 1.55rem; }
.mr-ic .ic.emo { font-size: 1.25rem; }
.emo-prev { margin-right: 6px; letter-spacing: 1px; }
.emo-quick { margin: 10px 0 4px; flex-wrap: wrap; }
.emo-list { list-style: none; margin: 0 0 8px; padding: 0; }
.emo-list li { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.emo-list li:last-child { border-bottom: 0; }
.emo-pick { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px dashed var(--line); background: var(--soft); font-size: 1.35rem; line-height: 1; }
.emo-l { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.emo-l b { font-size: .92rem; } .emo-l small { font-size: .74rem; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emo-list .switch { min-height: 0; flex: none; }
.emo-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.emo-cell { aspect-ratio: 1; border-radius: 10px; border: 1.5px solid transparent; background: var(--soft); font-size: 1.35rem; line-height: 1; padding: 0; }
.emo-cell.on { border-color: var(--accent); background: #fff; }
.emo-own { margin-bottom: 8px; }
/* Écriture à la main */
.ink-new { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 0 0 16px; border-radius: var(--r); border: 0; background: linear-gradient(170deg, var(--card1), var(--card2)); box-shadow: var(--shadow); color: var(--ink); text-align: left; font: inherit; position: relative; overflow: hidden; }
.ink-new > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.ink-new b { font-size: 1rem; } .ink-new small { font-size: .78rem; color: var(--ink-muted); }
.ink-new-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(165deg, var(--accent-2), var(--accent)); color: var(--on-accent); }
.ink-new-ic .ic { width: 20px; height: 20px; }
.ink-new-rb { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, #E53935, #FB8C00, #FDD835, #43A047, #1E88E5, #3949AB, #8E24AA); }
.ink-card { padding-top: 10px; }
.ink-thumb { display: block; width: 100%; aspect-ratio: 1000 / 600; object-fit: cover; object-position: top; border-radius: 8px; background: #fff; border: 1px solid var(--line); margin-bottom: 8px; opacity: 0; transition: opacity .2s; }
.ink-thumb.ok { opacity: 1; }
.ink-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ink-head .back { margin: 0; }
.ink-title { flex: 1 1 160px; min-width: 0; background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--glass-line) !important; border-radius: 0 !important; color: var(--on-bg) !important; font-family: var(--ttl-font, inherit); font-size: 1.35rem !important; min-height: 40px !important; padding: 4px 2px !important; }
.ink-acts { display: flex; align-items: center; gap: 6px; }
.ink-acts select { width: auto; min-height: 38px; padding: 4px 8px; font-size: .85rem; }
.ink-bar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 62px); z-index: 5; background: linear-gradient(170deg, var(--card1), var(--card2)); border: 1px solid var(--card-line); border-radius: var(--r); box-shadow: var(--shadow); padding: 8px; margin-bottom: 10px; color: var(--ink); }
.ink-tools { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ink-tools::-webkit-scrollbar { display: none; }
.ink-t { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 54px; padding: 6px 4px; border-radius: 10px; border: 1.5px solid transparent; background: transparent; color: var(--ink); font: inherit; font-size: .66rem; font-weight: 600; }
.ink-t .ic { width: 20px; height: 20px; }
.ink-t.on { background: var(--soft); border-color: var(--accent); }
.ink-rb { display: block; width: 22px; height: 20px; border-radius: 6px; }
.ink-mt { display: flex; gap: 2px; height: 20px; align-items: stretch; }
.ink-mt b { width: 3px; border-radius: 2px; }
.ink-sep { width: 1px; align-self: stretch; background: var(--line); margin: 0 4px; flex: none; }
.ink-tools .icon-btn[disabled] { opacity: .35; }
.ink-cols { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 2px 2px; }
.ink-c { --c: #000; position: relative; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1px var(--line); padding: 0; }
.ink-c.on { box-shadow: 0 0 0 2.5px var(--ink); }
.ink-own { background: conic-gradient(#E53935, #FDD835, #43A047, #1E88E5, #8E24AA, #E53935); overflow: hidden; }
.ink-own input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.ink-pals { display: flex; gap: 6px; overflow-x: auto; padding: 8px 2px 2px; scrollbar-width: none; }
.ink-pal { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px; border-radius: 10px; border: 1.5px solid transparent; background: transparent; font: inherit; font-size: .64rem; color: var(--ink); }
.ink-pal i { display: block; width: 56px; height: 16px; border-radius: 8px; }
.ink-pal i.perso { box-shadow: inset 0 0 0 1px var(--line); }
.ink-pal.on { border-color: var(--accent); background: var(--soft); }
.ink-size { display: flex; align-items: center; gap: 6px; padding: 8px 2px 0; font-size: .74rem; color: var(--ink-muted); }
.ink-size span { margin-right: 4px; }
.ink-w { width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid transparent; background: transparent; display: grid; place-items: center; padding: 0; }
.ink-w i { display: block; border-radius: 50%; }
.ink-w.on { border-color: var(--accent); background: var(--soft); }
.ink-hint { margin: 8px 2px 0; font-size: .76rem; color: var(--ink-muted); }
.ink-wrap { position: relative; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); background: #fff; margin-bottom: 12px; }
.ink-wrap canvas { display: block; width: 100%; }
#ink-cv { position: absolute; inset: 0; touch-action: none; cursor: crosshair; }
.ink-wrap.hand #ink-cv { touch-action: pan-y; cursor: grab; }
@media (min-width: 900px) { .ink-wrap { max-width: 860px; margin-left: auto; margin-right: auto; } .ink-bar { max-width: 860px; margin-left: auto; margin-right: auto; } }
/* Paramètres — nouvelle présentation */
.set-profile { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 14px; border-radius: var(--r-lg, 16px); background: linear-gradient(170deg, var(--card1), var(--card2)); border: 1px solid var(--card-line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.set-profile .avatar, .set-profile img, .set-profile > span:first-child { flex: none; }
.sp-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sp-t b { font-family: var(--ttl-font, inherit); font-size: 1.35rem; line-height: 1.15; }
.sp-t small { font-size: .8rem; color: var(--ink-muted); }
.set-profile > .ic:last-child, .set-row > .ic:last-child { width: 16px; height: 16px; color: var(--ink-muted); flex: none; }
.set-quick { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 0 4px; }
.sq-th { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); padding: 0; box-shadow: 0 2px 6px rgba(0,0,0,.18); flex: none; }
.sq-th.on { box-shadow: 0 0 0 3px var(--on-bg); }
.sq-more { margin-left: auto; font-size: .8rem; font-weight: 600; color: var(--on-bg); text-decoration: none; white-space: nowrap; }
.set-group { margin-bottom: 16px; }
.set-group .sg-title { margin: 0 4px 8px; }
.set-list { border-radius: var(--r-lg, 16px); overflow: hidden; background: linear-gradient(170deg, var(--card1), var(--card2)); border: 1px solid var(--card-line); box-shadow: var(--shadow); }
.set-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; min-height: 64px; color: var(--ink); text-decoration: none; }
.set-row + .set-row { border-top: 1px solid var(--line); }
.set-row:active { background: var(--soft); }
.set-ic { --sc: #B5677F; flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--sc); color: #fff; box-shadow: 0 3px 8px color-mix(in srgb, var(--sc) 35%, transparent); }
.set-ic .ic { width: 20px; height: 20px; color: #fff; --ic-ac: #fff; }
.sr-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sr-t b { font-size: .97rem; font-weight: 600; }
.sr-t small { font-size: .78rem; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.settings.sub { grid-template-columns: 1fr !important; max-width: 760px; }
/* Mes espaces en tuiles */
.sp-head .fill-seg { margin-bottom: 10px; }
.sp-count { margin: 0 0 8px; font-size: .86rem; color: var(--ink-muted); }
.sp-count b { color: var(--ink); font-size: 1.05rem; }
.sp-acts { flex-wrap: wrap; gap: 6px; }
.sp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
.sp-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px 10px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--soft); color: var(--ink-muted); font: inherit; text-align: center; transition: transform .12s, background .15s; }
.sp-tile:active { transform: scale(.96); }
.sp-tile b { font-size: .78rem; font-weight: 600; line-height: 1.15; color: inherit; }
.sp-tile small { font-size: .66rem; }
.sp-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.6); filter: grayscale(1); opacity: .55; }
.sp-ic .ic { width: 22px; height: 22px; }
.sp-ic .ic.emo { font-size: 1.6rem; }
.sp-tile.on { background: #fff; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--ink); }
.sp-tile.on .sp-ic { filter: none; opacity: 1; background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); }
.sp-tile.on small { color: var(--accent); font-weight: 600; }
.sp-check { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .7rem; font-weight: 700; background: transparent; color: #fff; }
.sp-tile.on .sp-check { background: var(--accent); }
.sp-tile.edit { border-style: dashed; color: var(--ink); }
.sp-tile.edit .sp-ic { filter: none; opacity: 1; }
.sp-tile.edit .sp-check { background: var(--ink); }
@media (min-width: 600px) { .sp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sp-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 900px) { .set-profile, .set-quick, .set-group { max-width: 760px; } }
.set-profile .u-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.set-profile > .ic:first-child, .set-profile > .u-initial { flex: none; width: 64px; height: 64px; padding: 18px; border-radius: 50%; background: linear-gradient(165deg, var(--accent-2), var(--accent)); color: var(--on-accent); box-sizing: border-box; }
.set-profile > .u-initial { display: grid; place-items: center; padding: 0; font-family: var(--ttl-font, inherit); font-size: 1.8rem; }
/* Activation */
body.lic-checking #view { visibility: hidden; }
body.lic-checking::after { content: ''; position: fixed; left: 50%; top: 45%; width: 34px; height: 34px; margin: -17px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; animation: lic-spin .8s linear infinite; }
@keyframes lic-spin { to { transform: rotate(360deg); } }
body.lic-locked .topbar, body.lic-locked .bottom-nav, body.lic-locked .sidebar, body.lic-locked #rail, body.lic-locked .rail { display: none !important; }
body.lic-locked main, body.lic-locked .main { margin: 0 !important; padding: 0 !important; }
.lic { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.lic-card { width: 100%; max-width: 420px; background: linear-gradient(170deg, var(--card1), var(--card2)); border: 1px solid var(--card-line); border-radius: 22px; box-shadow: var(--shadow); padding: 26px 22px 20px; color: var(--ink); }
.lic-brand { text-align: center; margin-bottom: 18px; }
.lic-logo { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: linear-gradient(165deg, var(--accent-2), var(--accent)); color: var(--on-accent); margin-bottom: 10px; }
.lic-logo .ic { width: 28px; height: 28px; }
.lic-brand h1 { font-family: var(--ttl-font, inherit); font-size: 2rem; margin: 0; line-height: 1.1; }
.lic-brand p { margin: 2px 0 0; letter-spacing: .3em; font-size: .8rem; color: var(--ink-muted); }
.lic-tabs { margin-bottom: 14px; } .lic-tabs button { flex: 1; }
.card .lic-tabs button:not(.on), .lic-card .lic-tabs button:not(.on) { color: var(--ink-muted); }
.lic-code { font-size: 1.05rem !important; letter-spacing: .12em !important; }
.lic-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: .84rem; margin: 0 0 12px; }
.lic-note .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent); }
.lic-help { text-align: center; font-size: .76rem; color: var(--ink-muted); margin: 14px 0 0; }
body.lic-locked .shell { display: block !important; }
body.lic-locked .view { max-width: none !important; padding: 0 !important; margin: 0 !important; }
.lic-brand h1 { font-family: 'Cormorant Garamond', var(--ttl-font, serif); font-weight: 600; font-size: 2.3rem; }
/* Cercle — Aperçu simplifié */
.ch-hero { margin: 0 0 16px; color: var(--on-bg); }
.ch-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ch-top small { font-size: .8rem; opacity: .8; }
.ch-top h1 { margin: 2px 0 0; font-family: var(--ttl-font, inherit); font-size: 2.1rem; line-height: 1.05; }
.ch-stack { display: inline-flex; padding: 0; background: none; border: 0; flex: none; }
.ch-stack .ce-av + .ce-av { margin-left: -8px; }
.ch-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ch-q { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; background: none; border: 0; color: var(--on-bg); font: inherit; font-size: .74rem; font-weight: 600; }
.ch-q > span { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ch-q .ic { width: 22px; height: 22px; }
.ch-q:active > span { transform: scale(.94); }
.ch-push { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 14px; border-radius: 16px; border: 0; background: linear-gradient(170deg, var(--card1), var(--card2)); box-shadow: var(--shadow); color: var(--ink); text-align: left; font: inherit; }
.ch-push > .ic { width: 20px; height: 20px; color: var(--accent); flex: none; }
.ch-push span { flex: 1; display: flex; flex-direction: column; } .ch-push small { font-size: .74rem; color: var(--ink-muted); }
.ch-push i { flex: none; font-style: normal; padding: 6px; color: var(--ink-muted); } .ch-push i .ic { width: 14px; height: 14px; }
.ch-sec { margin: 0 0 18px; }
.ch-sec > h2 { display: flex; align-items: center; gap: 8px; margin: 0 4px 10px; font-family: var(--ttl-font, inherit); font-size: 1.3rem; color: var(--on-bg); }
.ch-sec > h2 i { font-style: normal; font-family: inherit; font-size: .72rem; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.ch-list, .ch-week { list-style: none; margin: 0; padding: 0; border-radius: 18px; overflow: hidden; background: linear-gradient(170deg, var(--card1), var(--card2)); border: 1px solid var(--card-line); box-shadow: var(--shadow); color: var(--ink); }
.ch-list li, .ch-week li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 62px; }
.ch-list li + li, .ch-week li + li { border-top: 1px solid var(--line); }
.ch-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ch-t b { font-size: .92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-t small { font-size: .76rem; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-list .btn { flex: none; }
.hy-2 { display: flex; gap: 6px; flex: none; }
.ch-calm { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(170deg, var(--card1), var(--card2)); border: 1px solid var(--card-line); box-shadow: var(--shadow); color: var(--ink); }
.ch-calm > span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, #3E8E5E 15%, #fff); color: #3E8E5E; flex: none; }
.ch-calm .ic { width: 20px; height: 20px; }
.ch-calm p { margin: 0; display: flex; flex-direction: column; } .ch-calm small { font-size: .78rem; color: var(--ink-muted); }
.ch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ch-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 12px 11px; min-height: 104px; border-radius: 18px; border: 1px solid var(--card-line); background: linear-gradient(170deg, var(--card1), var(--card2)); box-shadow: var(--shadow); color: var(--ink); text-align: left; font: inherit; transition: transform .12s; }
.ch-tile:active { transform: scale(.96); }
.ch-tile .set-ic { width: 34px; height: 34px; border-radius: 11px; margin-bottom: 8px; }
.ch-tile .set-ic .ic { width: 18px; height: 18px; }
.ch-tile b { font-size: .86rem; font-weight: 600; }
.ch-tile small { font-size: .7rem; color: var(--ink-muted); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-tile.hot::after { content: ''; position: absolute; top: 12px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: #E05A6D; box-shadow: 0 0 0 3px var(--card1); }
.ch-tile.hot small { color: var(--accent); font-weight: 600; }
.ch-d { flex: none; width: 42px; text-align: center; display: flex; flex-direction: column; line-height: 1.05; }
.ch-d small { font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 700; }
.ch-d b { font-family: var(--ttl-font, inherit); font-size: 1.35rem; }
.ch-empty { margin: 0; padding: 14px 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); color: var(--on-bg); font-size: .86rem; }
.ch-empty .linkish { color: inherit; text-decoration: underline; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; }
@media (min-width: 768px) { .ch-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ch-hero, .ch-sec { max-width: 860px; } }
@media (min-width: 1200px) { .ch-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
