/* Maquette DA v2b « Net » (#1449) : clair, aéré, une seule chose principale par écran. */
:root {
--bg: #f3f2ee;
--surface: #faf9f6;
--ink: #16140f;
--mute: #6a665e;
--soft: #8d887e;
--line: rgba(22, 20, 15, 0.1);
--line-strong: rgba(22, 20, 15, 0.2);
--signal: #e3a72f;
--signal-deep: #c88f1a;
--signal-soft: #f6e6bf;
--ok: #3f7a55;
--ok-soft: #e1ece3;
--r: 14px;
--ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
margin: 0;
background: var(--bg);
color: var(--ink);
font: 400 16px/1.55 Geist, Inter, system-ui, sans-serif;
-webkit-font-smoothing: antialiased;
font-variant-numeric: tabular-nums;
}
a { color: inherit; text-decoration: none; }
a:hover, button:hover { text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
svg.lucide { width: 18px; height: 18px; stroke-width: 1.8; flex: none; }

/* Bandeau maquette */
.proto {
display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
padding: 7px 16px; font-size: 13px; color: var(--mute);
border-bottom: 1px solid var(--line);
}
.proto a { color: var(--ink); font-weight: 500; transition: color 0.15s var(--ease); }
.proto a:hover { color: var(--signal-deep); }

/* Navigation */
.top {
position: sticky; top: 0; z-index: 20;
background: color-mix(in srgb, var(--bg) 92%, transparent);
backdrop-filter: saturate(1.2);
border-bottom: 1px solid var(--line);
}
.top-in {
max-width: 1240px; margin: 0 auto; padding: 0 32px;
display: flex; align-items: center; gap: 28px; height: 64px;
}
.logo { font-weight: 600; font-size: 19px; letter-spacing: -0.03em; display: flex; align-items: center; gap: 8px; }
.logo i { width: 10px; height: 10px; border-radius: 50%; background: var(--signal); display: inline-block; }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav a, .nav span {
white-space: nowrap; padding: 8px 12px; border-radius: 999px; font-size: 14.5px; color: var(--mute);
}
.nav a { cursor: pointer; transition: color 0.15s var(--ease), background 0.15s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }
.nav span { opacity: 0.55; cursor: default; }
.avatar {
width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg);
display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none;
}
.tabbar { display: none; }

/* Page */
main { max-width: 1240px; margin: 0 auto; padding: 64px 32px 120px; }
.hello { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 12px; max-width: 20ch; }
.hello em { font-style: normal; color: var(--mute); }
.sub { color: var(--mute); font-size: 18px; margin: 0 0 48px; max-width: 56ch; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.head .hello { margin: 0; }
.head .sub { margin: 10px 0 0; }

/* Boutons */
.btn {
display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px;
border-radius: 999px; font-weight: 500; font-size: 15px; white-space: nowrap;
transition: background 0.15s var(--ease), color 0.15s var(--ease), transform 0.12s var(--ease), box-shadow 0.15s var(--ease);
}
.btn:active { transform: scale(0.985); }
.btn-main { background: var(--signal); color: var(--ink); }
.btn-main:hover { background: var(--signal-deep); }
.btn-line { box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-ghost { color: var(--mute); padding: 0 12px; }
.btn-ghost:hover { color: var(--ink); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }

/* Aujourd'hui */
.today { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.task {
background: var(--surface); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line);
padding: 28px 28px 28px 24px; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px;
transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.2s var(--ease);
}
.task:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.task.first { padding: 36px 36px 36px 30px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.task.done { opacity: 0.5; }
.task.done h2 { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.task.leaving { opacity: 0; transform: translateY(-8px) scale(0.985); }
.check {
width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong);
display: grid; place-items: center; margin-top: 4px; color: transparent;
transition: background 0.15s var(--ease), color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.check:hover { box-shadow: inset 0 0 0 1.5px var(--ok); color: var(--ok); }
.task.done .check { background: var(--ok); color: var(--surface); box-shadow: none; }
.check svg.lucide { width: 16px; height: 16px; stroke-width: 2.4; }
.task h2 { margin: 0; font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; }
.task.first h2 { font-size: 28px; }
.task .when { color: var(--soft); font-size: 14px; margin-top: 4px; }
.quote { margin: 18px 0 0; font-size: 19px; line-height: 1.45; max-width: 46ch; }
.quote::before { content: "«\00a0"; color: var(--soft); }
.quote::after { content: "\00a0»"; color: var(--soft); }
.task p.say { margin: 8px 0 0; color: var(--mute); max-width: 52ch; }
.task .row { display: flex; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hint { color: var(--mute); font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.hint .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.draft { margin-top: 18px; }
.draft textarea {
width: 100%; min-height: 120px; resize: vertical; padding: 16px 18px; border-radius: 12px;
background: var(--bg); border: 1px solid var(--line); line-height: 1.55;
transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.draft textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--signal-soft); }
.empty {
background: var(--surface); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line);
padding: 64px 36px; text-align: center;
}
.empty .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 20px; }
.empty .tick svg.lucide { width: 26px; height: 26px; }
.empty h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -0.025em; }
.empty p { margin: 0 auto 24px; color: var(--mute); max-width: 40ch; }

.side { display: flex; flex-direction: column; gap: 40px; padding-top: 6px; }
.side h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.side p { margin: 0 0 16px; color: var(--mute); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.pulse.off { background: var(--soft); box-shadow: 0 0 0 4px var(--line); }
.big { font-size: 64px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; margin: 4px 0 10px; }
.side .up { color: var(--ok); font-weight: 500; }
.side hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Campagnes */
.advice {
display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
background: var(--signal-soft); border-radius: var(--r); padding: 28px 32px; margin-bottom: 48px;
}
.advice h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -0.02em; font-weight: 600; }
.advice p { margin: 0; color: #5b4a22; }
.advice .btn-main { background: var(--ink); color: var(--surface); }
.advice .btn-main:hover { background: #33302a; }
.tools { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; color: var(--mute);
box-shadow: inset 0 0 0 1px var(--line); transition: color 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.pill:hover { color: var(--ink); }
.pill.on { background: var(--ink); color: var(--surface); box-shadow: none; }
.pill small { font-size: 13px; opacity: 0.6; margin-left: 4px; }
.search { position: relative; }
.search svg.lucide { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--soft); width: 16px; height: 16px; }
.search input {
height: 40px; width: 260px; padding: 0 16px 0 40px; border-radius: 999px; border: 1px solid var(--line);
background: var(--surface); transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--signal-soft); }
.list { border-top: 1px solid var(--line); }
.camp {
display: grid; grid-template-columns: minmax(0, 1fr) 180px 150px; gap: 24px; align-items: center;
padding: 24px 12px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 0;
transition: background 0.15s var(--ease);
}
.camp:hover { background: var(--surface); }
.camp h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.camp .src { color: var(--mute); font-size: 14.5px; margin-top: 2px; }
.camp .res { font-size: 16px; }
.camp .res b { font-weight: 600; }
.camp .res.quiet { color: var(--soft); }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mute); justify-self: end; }
.toggle .sw {
width: 40px; height: 24px; border-radius: 999px; background: var(--line-strong); position: relative; flex: none;
transition: background 0.2s var(--ease);
}
.toggle .sw::after {
content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface);
transition: transform 0.2s var(--ease);
}
.toggle.on .sw { background: var(--ok); }
.toggle.on .sw::after { transform: translateX(16px); }
.toggle.on { color: var(--ink); }
.toggle:hover .sw { box-shadow: 0 0 0 3px var(--line); }
.tag-draft { justify-self: end; font-size: 14px; color: var(--mute); }
.none { padding: 56px 12px; color: var(--mute); text-align: center; }

/* Panneau et modale */
.veil {
position: fixed; inset: 0; background: rgba(22, 20, 15, 0.28); z-index: 40; opacity: 0;
transition: opacity 0.2s var(--ease);
}
.veil.in { opacity: 1; }
.panel {
position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); background: var(--surface); z-index: 41;
padding: 32px 36px 40px; overflow-y: auto; transform: translateX(24px); opacity: 0;
transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
border-left: 1px solid var(--line);
}
.panel.in { transform: none; opacity: 1; }
.modal {
position: fixed; left: 50%; top: 50%; z-index: 41; width: min(620px, calc(100vw - 32px)); max-height: calc(100dvh - 48px);
overflow-y: auto; background: var(--surface); border-radius: 18px; padding: 36px;
transform: translate(-50%, -48%) scale(0.97); opacity: 0;
transition: transform 0.22s var(--ease), opacity 0.2s var(--ease);
}
.modal.in { transform: translate(-50%, -50%); opacity: 1; }
.close { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--mute); transition: color 0.15s var(--ease), background 0.15s var(--ease); }
.close:hover { color: var(--ink); background: var(--bg); }
.panel h2, .modal h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -0.03em; font-weight: 600; padding-right: 40px; line-height: 1.15; }
.panel .lead, .modal .lead { color: var(--mute); margin: 0 0 28px; }
.story { font-size: 19px; line-height: 1.5; margin: 0 0 32px; }
.story b { font-weight: 600; }
.panel h4, .modal h4 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.steps { list-style: none; margin: 0 0 32px; padding: 0; }
.steps li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.steps li span { color: var(--soft); width: 18px; flex: none; }
.compare { display: grid; gap: 12px; margin-bottom: 28px; }
.msg { border-radius: 12px; padding: 18px 20px; background: var(--bg); line-height: 1.55; }
.msg small { display: block; color: var(--mute); font-size: 13.5px; margin-bottom: 6px; }
.msg.new { background: var(--ok-soft); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.choice {
text-align: left; padding: 20px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line);
transition: box-shadow 0.15s var(--ease), background 0.15s var(--ease), transform 0.15s var(--ease);
}
.choice:hover { box-shadow: inset 0 0 0 1px var(--ink); transform: translateY(-2px); }
.choice.on { box-shadow: inset 0 0 0 2px var(--ink); background: var(--bg); }
.choice svg.lucide { margin-bottom: 14px; color: var(--mute); width: 22px; height: 22px; }
.choice b { display: block; font-weight: 600; margin-bottom: 2px; }
.choice span { color: var(--mute); font-size: 14.5px; }
.actions { display: flex; justify-content: flex-end; gap: 8px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 500; margin-bottom: 8px; font-size: 15px; }
.field textarea {
width: 100%; min-height: 150px; resize: vertical; padding: 16px; border-radius: 12px; border: 1px solid var(--line);
background: var(--bg); line-height: 1.55; transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--signal-soft); }
.days { display: flex; gap: 6px; flex-wrap: wrap; }

/* Posts */
.subtabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.subtabs a, .subtabs span { padding: 12px 0; font-size: 15px; color: var(--mute); margin-bottom: -1px; }
.subtabs a.on { color: var(--ink); font-weight: 500; box-shadow: inset 0 -2px 0 var(--ink); }
.subtabs span { opacity: 0.55; }
.next {
display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end;
margin-bottom: 40px;
}
.next .when { color: var(--mute); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.next blockquote { margin: 0; font-size: 26px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; max-width: 34ch; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.seg button { height: 34px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; color: var(--mute); transition: color 0.15s var(--ease), background 0.15s var(--ease); }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--ink); color: var(--surface); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.day {
min-height: 300px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
padding: 16px 14px; display: flex; flex-direction: column; gap: 10px;
}
.day.today { box-shadow: inset 0 0 0 1.5px var(--ink); }
.day .d { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--mute); }
.day .d b { font-size: 22px; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; }
.day .d em { font-style: normal; font-size: 12.5px; color: var(--ink); background: var(--signal-soft); padding: 2px 8px; border-radius: 999px; }
.chip {
text-align: left; border-radius: 10px; padding: 12px; font-size: 14px; line-height: 1.4; background: var(--bg);
transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}
.chip:hover { transform: translateY(-1px); background: var(--signal-soft); }
.chip small { display: block; color: var(--mute); font-size: 12.5px; margin-bottom: 4px; }
.chip.planned { background: var(--signal-soft); }
.chip.planned:hover { background: #f0d89c; }
.addday { margin-top: auto; color: var(--soft); font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 2px; transition: color 0.15s var(--ease); }
.addday:hover { color: var(--ink); }
.addday svg.lucide { width: 15px; height: 15px; }
.posts { border-top: 1px solid var(--line); }
.post {
display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 24px; align-items: baseline;
padding: 24px 12px; border-bottom: 1px solid var(--line); transition: background 0.15s var(--ease);
}
.post:hover { background: var(--surface); }
.post .dt { color: var(--mute); font-size: 14.5px; }
.post p { margin: 0; font-size: 17px; line-height: 1.45; }
.post .seen { color: var(--mute); font-size: 14.5px; white-space: nowrap; }
.post .seen b { color: var(--ink); font-weight: 600; }
.lt { margin-top: 32px; }

/* Animations d'entrée */
.in-up { animation: inUp 0.25s var(--ease); }
@keyframes inUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.toast {
position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 12px); opacity: 0; z-index: 60;
background: var(--ink); color: var(--surface); padding: 12px 20px; border-radius: 999px; font-size: 15px;
transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); pointer-events: none;
}
.toast.in { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 1100px) {
  .today { grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; }
  .nav span { display: none; }
  .week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .day { min-height: 200px; }
}
@media (max-width: 760px) {
  .proto { font-size: 12px; gap: 10px; }
  .top-in { padding: 0 20px; height: 56px; }
  .nav { display: none; }
  .top-in .avatar { margin-left: auto; }
  main { padding: 36px 20px 120px; }
  .hello { font-size: 34px; }
  .sub { font-size: 16px; margin-bottom: 32px; }
  .today { grid-template-columns: 1fr; gap: 48px; }
  .task, .task.first { padding: 22px 20px 22px 16px; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
  .task.first h2 { font-size: 23px; }
  .task h2 { font-size: 19px; }
  .quote { font-size: 17px; }
  .big { font-size: 52px; }
  .advice { grid-template-columns: 1fr; padding: 24px; }
  .search input { width: 100%; }
  .search { flex: 1 1 100%; }
  .camp { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 20px 4px; }
  .camp .res { grid-column: 1; grid-row: 2; font-size: 15px; }
  .camp .toggle, .camp .tag-draft { grid-column: 2; grid-row: 1 / span 2; }
  .toggle .lbl { display: none; }
  .next { grid-template-columns: 1fr; gap: 20px; }
  .next blockquote { font-size: 21px; }
  .week { grid-template-columns: 1fr; }
  .day { min-height: 0; }
  .post { grid-template-columns: 1fr; gap: 6px; padding: 20px 4px; }
  .choices { grid-template-columns: 1fr; gap: 8px; }
  .choice { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 14px; padding: 16px; }
  .choice svg.lucide { margin: 2px 0 0; grid-row: span 2; }
  .modal { padding: 28px 22px; }
  .panel { padding: 28px 22px 40px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--surface); border-top: 1px solid var(--line); padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }
  .tabbar a, .tabbar span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--mute); padding: 6px 0; }
  .tabbar a { transition: color 0.15s var(--ease); }
  .tabbar a:hover, .tabbar a.on { color: var(--ink); }
  .tabbar a.on svg.lucide { color: var(--signal-deep); }
  .tabbar svg.lucide { width: 22px; height: 22px; }
  .toast { bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .task.leaving, .chip:hover, .choice:hover { transform: none; }
}
