/* Mes soins véto — styles
   Doux, aéré, arrondis complets, aucune dépendance, aucun dégradé. */

:root {
  --bg: #f5f1ea;
  --card: #ffffff;
  --ink: #1f2a2c;
  --ink-2: #47524f;
  --muted: #6c7572;
  --line: #e7e1d7;
  --line-2: #efeae2;

  --green: #3d7a5e;
  --green-l: #e7f1eb;
  --blue: #3a7697;
  --blue-l: #e6f0f6;
  --amber: #a8742a;
  --amber-l: #f7eedf;
  --plum: #80527a;
  --plum-l: #f3e9f1;
  --rose: #b0564e;
  --rose-l: #f8e9e6;
  --slate: #5c6668;
  --slate-l: #eef0ef;

  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 14px;
  --shadow: 0 1px 2px rgba(31, 42, 44, .04), 0 8px 24px -12px rgba(31, 42, 44, .16);
  --shadow-up: 0 -1px 0 rgba(31, 42, 44, .04), 0 10px 34px -8px rgba(31, 42, 44, .22);

  --font: "Outfit", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --col: 480px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

/* ---------- Colonne de l'app (même visuel Mac et mobile) ---------- */
.app {
  max-width: var(--col);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  padding-bottom: calc(108px + var(--safe-b));
}
@media (min-width: 560px) {
  body { background: #ebe5db; }
  .app { background: var(--bg); box-shadow: 0 0 0 1px rgba(31,42,44,.05), 0 30px 80px -40px rgba(31,42,44,.35); }
}

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  height: 58px; padding: 0 14px;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(245, 241, 234, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.topbar-title { flex: 1; text-align: center; font-weight: 600; font-size: 17px; letter-spacing: .01em; opacity: 0; transition: opacity .25s; }
.topbar.scrolled .topbar-title, .topbar.always .topbar-title { opacity: 1; }
.topbar-spacer, .icon-btn { width: 40px; height: 40px; }
.icon-btn {
  display: grid; place-items: center; border: 0; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow);
}
.icon-btn:active { transform: scale(.94); }

/* ---------- Vue ---------- */
.view { padding: 4px 20px 24px; outline: none; }
.view > * { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.h1 { font-size: 32px; line-height: 1.12; font-weight: 600; letter-spacing: -.02em; margin: 6px 0 4px; }
.h2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.lead { color: var(--muted); margin: 0 0 22px; font-size: 16px; }
.label {
  font-size: 14px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin: 30px 2px 12px; display: flex; align-items: center; gap: 8px;
}
.label .count { font-weight: 500; letter-spacing: 0; text-transform: none; }

/* ---------- Pastilles (fond blanc + fin contour coloré) ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 10px; border-radius: 999px;
  background: #fff; border: 1px solid currentColor;
  font-size: 14px; font-weight: 500; line-height: 18px; white-space: nowrap;
}
.pill > span { color: var(--ink-2); }
.t-facture { color: var(--blue); }
.t-rapport { color: var(--green); }
.t-devis { color: var(--amber); }
.t-ordonnance { color: var(--plum); }
.t-traitement { color: var(--rose); }
.t-protocole { color: var(--rose); }
.t-note { color: var(--slate); }
.t-lien { color: var(--slate); }

/* ---------- Accueil ---------- */
.hello-date { font-size: 14px; color: var(--muted); text-transform: capitalize; margin-top: 8px; }

.menu { display: grid; gap: 12px; margin-top: 4px; }
.tile {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 16px 16px 16px; border-radius: var(--r-xl);
  background: var(--card); box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.tile:active { transform: scale(.985); }
.tile-ico { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; }
.tile-ico svg { width: 26px; height: 26px; }
.tile-txt { flex: 1; min-width: 0; }
.tile-title { font-size: 18px; font-weight: 600; }
.tile-sub { font-size: 15px; color: var(--muted); }
.chev { color: #a59e92; }
.ico-green { background: var(--green-l); color: var(--green); }
.ico-blue { background: var(--blue-l); color: var(--blue); }
.ico-ink { background: #efeae2; color: var(--ink); }

.peek {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: var(--r-lg);
  background: transparent; border: 1px solid var(--line);
}
.peek + .peek { margin-top: 8px; }
.peek-main { flex: 1; min-width: 0; }
.peek-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peek-sub { font-size: 14px; color: var(--muted); }

/* ---------- Avatars ---------- */
.av {
  width: 52px; height: 52px; border-radius: 999px; flex: none;
  display: grid; place-items: center; font-weight: 600; font-size: 20px;
  border: 2px solid #fff; box-shadow: 0 2px 8px -3px rgba(31,42,44,.25);
}
.av.sm { width: 28px; height: 28px; font-size: 13px; letter-spacing: -.02em; border-width: 1.5px; box-shadow: none; }
.av.xl { width: 92px; height: 92px; font-size: 36px; border-width: 3px; }
.av-stack { display: flex; }
.av-stack .av + .av { margin-left: -4px; }

/* ---------- Animaux ---------- */
.animal-card {
  display: block; padding: 18px; border-radius: var(--r-xl);
  background: var(--card); box-shadow: var(--shadow); margin-bottom: 14px;
  transition: transform .15s ease;
}
.animal-card:active { transform: scale(.985); }
.animal-top { display: flex; align-items: center; gap: 14px; }
.animal-name { font-size: 20px; font-weight: 600; line-height: 1.2; }
.animal-meta { font-size: 15px; color: var(--muted); }
.animal-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2);
  font-size: 15px; color: var(--ink-2);
}
.animal-last { min-width: 0; line-height: 1.35; }
.animal-last b { font-weight: 500; }
.badges { display: flex; gap: 6px; flex: none; }

/* ---------- Fiche animal + fil ---------- */
.hero { text-align: center; padding: 6px 0 4px; }
.hero .av { margin: 0 auto 12px; }
.hero .h1 { margin: 0; }
.hero-meta { color: var(--muted); font-size: 16px; }
.hero-stats { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  border: 1px solid #d9d1c4; background: #fff; border-radius: 999px;
  padding: 7px 14px; font-size: 15px; font-weight: 500; white-space: nowrap; color: var(--ink-2);
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.thread { position: relative; margin-top: 8px; }
.day { font-size: 14px; font-weight: 600; color: var(--muted); margin: 18px 0 8px 30px; }
.line {
  position: relative; display: block; width: 100%; text-align: left;
  margin: 0 0 10px; padding: 14px 16px 14px 16px; margin-left: 30px; width: calc(100% - 30px);
  border: 0; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.line:active { transform: scale(.985); }
.thread::before { content: ""; position: absolute; left: 9px; top: 20px; bottom: 16px; width: 2px; background: var(--line); border-radius: 2px; }
.line::before {
  content: ""; position: absolute; left: -27px; top: 19px;
  width: 12px; height: 12px; border-radius: 99px; background: #fff; border: 2.5px solid currentColor;
}
.line-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.line-title { font-weight: 600; font-size: 17px; color: var(--ink); margin-top: 8px; line-height: 1.3; }
.line-src { font-size: 14.5px; color: var(--muted); margin-top: 2px; }
.line-amt { font-weight: 600; color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }
.line-shared { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin-top: 8px; }
.line-shared svg { width: 15px; height: 15px; }

.empty {
  text-align: center; color: var(--muted); padding: 34px 20px; border: 1.5px dashed var(--line);
  border-radius: var(--r-xl); font-size: 16px;
}
.empty b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }

/* ---------- Agenda ---------- */
.task {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow);
  margin-bottom: 10px;
}
.check {
  width: 26px; height: 26px; border-radius: 999px; border: 2px solid #b9b1a4; background: #fff;
  display: grid; place-items: center; flex: none; margin-top: 1px; padding: 0;
  transition: background .2s, border-color .2s;
}
.check svg { width: 15px; height: 15px; stroke-width: 2.6; opacity: 0; color: #fff; }
.task.done .check { background: var(--green); border-color: var(--green); }
.task.done .check svg { opacity: 1; }
.task.done .task-title { text-decoration: line-through; color: var(--muted); }
.task-main { flex: 1; min-width: 0; }
.task-title { font-weight: 600; line-height: 1.3; }
.task-detail { font-size: 15px; color: var(--ink-2); margin-top: 2px; }
.task-src { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.task-link { font-size: 14px; color: var(--muted); border: 0; background: none; padding: 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #cfc8bc; }
.kind-dot { width: 8px; height: 8px; border-radius: 9px; display: inline-block; }

.done-toggle { width: 100%; border: 0; background: none; color: var(--muted); font-size: 15px; padding: 10px; }

/* ---------- Ressources ---------- */
.search {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 999px; padding: 0 16px; height: 46px;
  box-shadow: var(--shadow); margin-bottom: 14px;
}
.search svg { color: var(--muted); width: 19px; height: 19px; }
.search input { flex: 1; border: 0; outline: none; background: none; font-size: 17px; }

.doc {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 12px 14px; border: 0; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow);
  margin-bottom: 10px;
}
.doc-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: #fff; border: 1px solid currentColor; }
.doc-ico svg { width: 22px; height: 22px; }
.doc-main { flex: 1; min-width: 0; color: var(--ink); }
.doc-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-sub { font-size: 14px; color: var(--muted); }

/* ---------- Feuille (bottom sheet) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(31, 42, 44, .32); z-index: 40; animation: fadein .25s ease both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  position: fixed; left: 50%; bottom: 0; z-index: 50;
  width: 100%; max-width: var(--col); transform: translateX(-50%);
  max-height: 90vh; max-height: 90dvh; overflow: auto; overscroll-behavior: contain;
  background: var(--bg); border-radius: 28px 28px 0 0; box-shadow: var(--shadow-up);
  padding: 8px 20px calc(26px + var(--safe-b));
  animation: up .32s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes up { from { transform: translate(-50%, 40px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.sheet-grip { width: 40px; height: 5px; border-radius: 9px; background: #d6cfc3; margin: 4px auto 14px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet-title { font-size: 24px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; margin: 12px 0 2px; }
.sheet-sub { color: var(--ink-2); font-size: 15.5px; }
.close-btn { width: 36px; height: 36px; border-radius: 99px; border: 0; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }
.close-btn svg { width: 18px; height: 18px; }

.block { background: var(--card); border-radius: var(--r-lg); padding: 16px; margin-top: 14px; box-shadow: var(--shadow); }
.block-label { font-size: 14px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.dots { margin: 0; padding: 0; list-style: none; }
.dots li { position: relative; padding-left: 18px; margin: 0 0 11px; font-size: 16px; line-height: 1.45; }
.dots li:last-child { margin-bottom: 0; }
.dots li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 9px; background: var(--green); }
.advice { font-size: 16.5px; line-height: 1.5; }
.sheet-lead { margin: 12px 0 0; font-size: 17px; font-weight: 600; line-height: 1.35; }
.block-key { border-left: 3px solid var(--green); }
.day { padding-left: 2px; }

.rows { margin: 0; }
.row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 15.5px; }
.row:last-child { border-bottom: 0; }
.row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.row.total { font-weight: 600; font-size: 16.5px; }
.row.muted { color: var(--muted); }
.row.strong span:last-child { color: var(--blue); font-weight: 600; }

.share { display: flex; gap: 10px; align-items: center; }
.share + .share { margin-top: 10px; }
.share-name { flex: 1; font-weight: 500; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 50px; border-radius: 999px; border: 0;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 16.5px; margin-top: 18px;
}
.btn svg { width: 19px; height: 19px; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn:active { transform: scale(.985); }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

/* ---------- Bouton + : choix ---------- */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 14px; border: 0; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); text-align: left;
}
.choice .doc-ico { width: 40px; height: 40px; border-radius: 12px; }
.choice b { font-weight: 600; font-size: 16px; color: var(--ink); }
.choice small { display: block; color: var(--muted); font-size: 14px; line-height: 1.3; }
.choice.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; }

/* ---------- Formulaire ---------- */
.field { margin-top: 16px; }
.field > label, .field > .flabel { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 0 0 8px 4px; }
.input {
  width: 100%; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: #fff;
  padding: 0 14px; font-size: 17px; outline: none;
}
textarea.input { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.input:focus { border-color: #b9b0a2; box-shadow: 0 0 0 4px rgba(61, 122, 94, .1); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick .chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.drop {
  display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px;
  border: 1.5px dashed #cfc8bc; background: #fff; color: var(--ink-2); font-size: 16px;
}
.drop input { display: none; }
.drop .doc-ico { color: var(--slate); }
.note {
  margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #efeae2; color: var(--ink-2);
  font-size: 14.5px; line-height: 1.45;
}
.amounts { display: grid; gap: 8px; }
.amount { display: flex; align-items: center; gap: 10px; }
.amount .input { height: 42px; flex: 1; }
.amount span { flex: 1; font-weight: 500; }

/* ---------- Barre de menu du bas ---------- */
.tabbar {
  position: fixed; z-index: 30; left: 50%; transform: translateX(-50%);
  bottom: calc(14px + var(--safe-b));
  width: calc(100% - 40px); max-width: calc(var(--col) - 40px);
  display: grid; grid-template-columns: 1fr 1fr 72px 1fr 1fr; align-items: center;
  height: 70px; padding: 0 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px rgba(31,42,44,.05), 0 14px 36px -12px rgba(31,42,44,.32);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 13px; font-weight: 500; color: #858b88; transition: color .2s;
}
.tab svg { width: 23px; height: 23px; }
.tab.active { color: var(--ink); }
.tab.active svg { stroke-width: 2; }
.tab-plus {
  justify-self: center; margin: 0 4px; width: 56px; height: 56px; border-radius: 999px; border: 0;
  background: var(--green); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 18px -6px rgba(61, 122, 94, .7);
  transition: transform .18s ease;
}
.tab-plus svg { width: 26px; height: 26px; stroke-width: 2.2; }
.tab-plus:active { transform: scale(.93); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(100px + var(--safe-b)); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 500;
  transition: opacity .25s, transform .25s; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

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

/* =================== v2 =================== */
.t-rapport { color: var(--green); }
.d-veto { color: var(--green); }
.d-osteo { color: var(--blue); }
.d-phyto { color: #6f7f2e; }
.d-posture { color: var(--plum); }
.d-autre { color: var(--slate); }
.d-obs { color: var(--amber); }
.pill svg { width: 13px; height: 13px; stroke-width: 2; margin-left: -2px; }
.line-title, .line-src, .doc-title, .doc-sub { display: block; }
.sheet-pills { display: flex; gap: 6px; flex-wrap: wrap; }
small { font-size: .85em; color: var(--muted); font-weight: 400; }
.num { font-variant-numeric: tabular-nums; }

/* Accueil */
.home-head { position: relative; text-align: center; padding: 6px 0 2px; }
.home-logo {
  display: block; width: 132px; height: 132px; margin: -6px auto -8px;
  object-fit: contain;
}
.home-head .h1 { margin-top: 2px; }
.home-head .hello-date { margin-top: 0; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.gallery.one { grid-template-columns: minmax(0, 260px); justify-content: center; }
.pet { display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform .2s ease; }
.pet:active { transform: scale(.98); }
.pet-name { font-size: 19px; font-weight: 600; margin-top: 10px; line-height: 1.2; }
.pet-meta { font-size: 14.5px; color: var(--muted); }

/* Portraits (dessin / photo) */
.portrait {
  position: relative; display: block; overflow: hidden; flex: none;
  box-shadow: 0 1px 2px rgba(31,42,44,.05), 0 14px 30px -18px rgba(31,42,44,.45);
}
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.portrait-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--c); }
.portrait-ph svg { width: 38%; height: 38%; stroke-width: 1.2; opacity: .55; }
.portrait.tall { width: 100%; aspect-ratio: 9 / 10; border-radius: 120px 120px 26px 26px; border: 4px solid #fff; }
.portrait.wide { width: 100%; aspect-ratio: 16 / 9; border-radius: 0; box-shadow: none; }
.portrait.round { width: 118px; height: 118px; border-radius: 999px; margin: 0 auto 12px; border: 4px solid #fff; }

/* Notifications façon natel */
.notifs { display: grid; gap: 8px; }
.notif {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: 22px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 0 0 1px rgba(31,42,44,.04), 0 8px 22px -14px rgba(31,42,44,.35);
  transition: transform .15s ease;
}
.notif:active { transform: scale(.985); }
.notif-app { width: 38px; height: 38px; border-radius: 10px; overflow: hidden; flex: none; background: var(--bg); box-shadow: 0 0 0 1px rgba(31,42,44,.06); }
.notif-app img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); mix-blend-mode: multiply; }
.notif-main { flex: 1; min-width: 0; }
.notif-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--muted); }
.notif-top b { font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.notif-title { display: block; font-weight: 600; font-size: 16px; line-height: 1.3; margin-top: 1px; }
.notif-text { display: block; font-size: 15px; color: var(--ink-2); line-height: 1.35; }

/* Cartes Animaux : grand espace photo */
.animal-card { padding: 0; overflow: hidden; }
.animal-body { display: flex; align-items: center; gap: 12px; padding: 14px 18px 4px; }
.animal-card .animal-foot { justify-content: flex-start; gap: 6px; border-top: 0; margin-top: 0; padding: 8px 18px 16px; }

/* Fil : petits documents rattachés */
.line-docs { display: flex; gap: 4px; }
.mini { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; border: 1px solid currentColor; background: #fff; }
.mini svg { width: 15px; height: 15px; }

/* Agenda : animal bien visible */
.task-animals { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.atag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px 2px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c);
  font-size: 14px; font-weight: 600; line-height: 20px;
}
.atag i { width: 8px; height: 8px; border-radius: 9px; background: var(--c); }
.when { display: inline-flex; align-items: center; gap: 5px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.when svg { width: 15px; height: 15px; }
.task-src { margin-top: 8px; }

/* Feuilles */
.docrow {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 10px 0; border: 0; background: none; border-bottom: 1px solid var(--line-2);
}
.docrow:last-child { border-bottom: 0; padding-bottom: 2px; }
.docrow:first-of-type { padding-top: 2px; }
.docrow .doc-ico { width: 40px; height: 40px; border-radius: 12px; }
.docrow-amt { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.linkish { width: 100%; border: 0; background: none; padding: 4px 0; text-align: left; }
.dots li.done { color: var(--muted); text-decoration: line-through; }
.btn.danger { color: var(--rose); }
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field.two label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 0 0 8px 4px; }
.drop.filled { border-style: solid; border-color: var(--green); color: var(--ink); }
select.input { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c7572' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.portrait.wide img { object-position: center 30%; }
/* Dessins aquarelle : image entière dans l'arche, le papier se fond dans le fond crème */

.portrait.tall.has-img img { object-fit: contain; object-position: center bottom; }
/* Bug CB2 : image dans les pastilles rondes = toujours réduite à la pastille */
.av { overflow: hidden; }
.av img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

/* =================== v3 =================== */
.t-fiche { color: var(--slate); }
.t-recette { color: #6f7f2e; }
.t-analyse { color: var(--amber); }
.t-historique { color: var(--slate); }
.d-nutrition { color: #6f7f2e; }
.icon-btn[hidden] { display: none !important; }
.topbar #gearBtn { margin-left: auto; }

/* Accueil : 3 animaux */
.gallery.three { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery.three .pet-name { font-size: 17px; }
.gallery.three .pet-meta, .gallery.three .pet-bday { font-size: 14px; }
.pet-bday { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); margin-top: 1px; }
.pet-bday svg { width: 14px; height: 14px; }

/* Notifications : icône de type, logo collé au nom, toujours 2 lignes */
.notif { align-items: center; min-height: 76px; }
.notif-ico {
  width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(31,42,44,.06);
}
.notif-ico svg { width: 22px; height: 22px; }
.notif-top { align-items: center; }
.notif-app { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; width: auto; height: auto; border-radius: 0; overflow: visible; background: none; box-shadow: none; }
.notif-app img { width: 16px; height: 16px; object-fit: contain; transform: none; mix-blend-mode: normal; }
.notif-title, .notif-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Carnets */
.facts { display: grid; gap: 8px; padding: 6px 18px 4px; }
.fact { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.fact svg { width: 18px; height: 18px; color: var(--muted); margin-top: 1px; }
.fact b { font-weight: 600; display: block; line-height: 1.3; }
.fact small { display: block; line-height: 1.3; }
.btn-pill { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px 8px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; }
.btn-pill svg { width: 16px; height: 16px; }
.sec .block-label { display: flex; align-items: center; gap: 7px; }
.sec .block-label svg { width: 16px; height: 16px; }
.sec-title { font-weight: 600; font-size: 17px; line-height: 1.3; }
.sec-sub { font-size: 14.5px; color: var(--muted); margin: 2px 0 10px; }
.sec-note { font-size: 15px; color: var(--ink-2); margin: 10px 0 0; line-height: 1.45; }
.muted-l { color: var(--muted); }
.weight b { font-size: 28px; font-weight: 600; letter-spacing: -.02em; display: block; line-height: 1.1; }
.weight span { font-size: 14.5px; color: var(--muted); }
.spark { width: 100%; height: 64px; margin-top: 10px; display: block; }
.spark-legend { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.treat + .treat { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.treat .docrow, .sec > .docrow { margin-top: 8px; }
.watch { display: grid; gap: 1px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.watch:first-of-type { padding-top: 0; }
.watch:last-child { border-bottom: 0; padding-bottom: 0; }
.watch b { font-weight: 600; font-size: 16px; }
.watch span { font-size: 15px; color: var(--ink-2); line-height: 1.4; }
.allergy { display: flex; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--rose-l); color: var(--rose); font-size: 15px; }
.allergy svg { width: 18px; height: 18px; flex: none; }
.allergy b { display: block; font-weight: 600; }
.allergy span { color: var(--ink-2); }
.labs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lab { position: relative; padding: 10px 12px; border-radius: 14px; background: var(--bg); }
.lab span { display: block; font-size: 14px; color: var(--muted); }
.lab b { display: block; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lab small { font-size: 13px; }
.lab.hi { background: var(--amber-l); }
.lab i { position: absolute; top: 9px; right: 10px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--amber); text-transform: uppercase; letter-spacing: .05em; }
.pro { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.pro:first-of-type { padding-top: 0; }
.pro:last-child { border-bottom: 0; padding-bottom: 0; }
.pro .pill { flex: none; }
.pro-main { flex: 1; min-width: 0; }
.pro-main b { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.pro-main small { display: block; }
.pro-tel { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: var(--green-l); color: var(--green); flex: none; }
.pro-tel svg { width: 17px; height: 17px; }

.toc { margin-top: 14px; }

/* =================== v3.1 (21:30) =================== */
/* Barre du haut : titre toujours centré, accès compte discret en haut à droite partout */
.topbar { position: sticky; }
.topbar-title { position: absolute; left: 64px; right: 64px; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-btn { position: relative; width: 36px; height: 36px; background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; box-shadow: 0 6px 16px -8px rgba(31,42,44,.5); }
.acct-btn .acct-gear { position: absolute; right: -4px; bottom: -4px; width: 17px; height: 17px; padding: 2px; border-radius: 999px; background: #fff; color: var(--ink); stroke-width: 2.2; box-shadow: 0 1px 3px rgba(31,42,44,.25); }
.acct-head { display: flex; align-items: center; gap: 16px; margin: 8px 0 8px; }
.acct-av { width: 64px; height: 64px; border-radius: 999px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 26px; font-weight: 600; flex: none; }
.acct-head .h1 { margin: 0; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 10px; }
.steps li { counter-increment: st; display: flex; gap: 12px; align-items: center; font-size: 16px; }
.steps li::before { content: counter(st); width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; background: var(--blue-l); color: var(--blue); font-weight: 600; font-size: 14px; flex: none; }

/* Accueil : toujours 2 animaux par ligne (le 3e centré), même taille de cadre */
.gallery, .gallery.three { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 14px; }
.gallery > .pet { width: calc(50% - 7px); min-width: 0; }
.gallery.one > .pet { width: min(100%, 260px); }
.gallery .pet-name { font-size: 19px; }
.gallery .pet-meta { font-size: 14.5px; }
.gallery .pet-bday { font-size: 14px; }
.pet-meta, .pet-bday { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Carnet de santé : fond aquarelle (CB1) + cartes blanches ---------- */
.carnet { position: relative; margin: -4px -20px 0; padding: 0 20px 8px; isolation: isolate; }
.c-deco { position: absolute; inset: 0 0 auto 0; height: 560px; overflow: hidden; z-index: -1; pointer-events: none; }
.c-wash { position: absolute; border-radius: 50%; filter: blur(28px); }
.c-wash.w1 { width: 300px; height: 260px; right: -70px; top: 10px; background: var(--c); opacity: .16; }
.c-wash.w2 { width: 220px; height: 180px; right: 120px; top: 190px; background: var(--c); opacity: .09; border-radius: 60% 40% 55% 45%; }
.c-wash.w3 { width: 180px; height: 150px; left: -60px; top: -40px; background: #c9b79a; opacity: .18; }
.c-dots { position: absolute; right: 0; top: 0; width: 100%; height: 360px; }
.c-deco::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; background: linear-gradient(to bottom, rgba(245,241,234,0), var(--bg)); }

.c-hero { position: relative; min-height: 290px; display: flex; align-items: flex-end; padding: 0 0 22px; }
.c-art { position: absolute; right: -20px; top: -6px; width: 68%; height: 300px; animation: artIn .9s cubic-bezier(.2,.7,.2,1) both; }
.c-art img { width: 100%; height: 100%; object-fit: contain; object-position: right bottom; transform: translateX(14%); }
.c-art.empty { display: grid; place-items: center; color: var(--c); }
.c-art.empty svg { width: 58%; height: 58%; stroke-width: .7; opacity: .22; transform: rotate(-12deg) translateX(10%); }
@keyframes artIn { from { opacity: 0; transform: translateX(24px) scale(.98); } to { opacity: 1; transform: none; } }
.c-hero-txt { position: relative; max-width: 54%; animation: fade .6s .1s ease both; }
.c-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c); margin-bottom: 6px; }
.c-name { font-size: 44px; line-height: 1; font-weight: 600; letter-spacing: -.03em; margin: 0 0 10px; }
.c-meta { font-size: 15.5px; color: var(--ink-2); line-height: 1.35; }
.c-bday { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 14.5px; font-weight: 500; box-shadow: 0 4px 14px -8px rgba(31,42,44,.3); }
.c-bday svg { width: 15px; height: 15px; color: var(--c); }

.c-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.c-stat { background: #fff; border-radius: 20px; padding: 14px 12px 13px; box-shadow: var(--shadow); text-align: center; min-width: 0; }
.c-stat small { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.c-stat b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; }
.c-stat span { display: block; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.c-cta { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 15px 18px; border-radius: 20px; background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; box-shadow: 0 12px 26px -16px rgba(31,42,44,.7); transition: transform .2s; }
.c-cta span { display: inline-flex; align-items: center; gap: 10px; }
.c-cta svg { width: 19px; height: 19px; }
.c-cta:active { transform: scale(.985); }

.c-toc { position: sticky; top: calc(58px + env(safe-area-inset-top, 0px)); z-index: 5; margin-top: 18px; padding-top: 8px; padding-bottom: 10px; background: linear-gradient(to bottom, var(--bg) 70%, rgba(245,241,234,0)); }
.c-toc .chip { background: #fff; }

.c-sec { background: #fff; border-radius: 26px; padding: 22px 20px 22px; margin-top: 16px; box-shadow: 0 1px 2px rgba(31,42,44,.04), 0 14px 34px -20px rgba(31,42,44,.22); scroll-margin-top: 120px; }
.c-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.c-ico { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: var(--c-l); color: var(--c); flex: none; }
.c-ico svg { width: 20px; height: 20px; }
.c-head h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.c-title { font-size: 16.5px; font-weight: 600; line-height: 1.3; }
.c-sub { font-size: 14.5px; color: var(--muted); margin: 3px 0 0; line-height: 1.4; }
.c-note { font-size: 15px; color: var(--ink-2); line-height: 1.5; margin: 14px 0 0; padding: 12px 14px; background: var(--bg); border-radius: 14px; }

.c-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.c-tile { background: var(--bg); border-radius: 16px; padding: 11px 13px 12px; min-width: 0; }
.c-tile.wide { grid-column: 1 / -1; }
.c-tile small { display: block; font-size: 14px; color: var(--muted); margin-bottom: 2px; }
.c-tile b { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }

.c-weight { display: flex; align-items: baseline; gap: 12px; }
.c-weight b { font-size: 38px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.c-weight b span { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.c-weight em { font-style: normal; font-size: 14px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--slate-l); color: var(--slate); }
.c-weight em.up { background: var(--amber-l); color: var(--amber); }
.c-weight em.down { background: var(--blue-l); color: var(--blue); }
.c-sec .spark { height: 72px; margin-top: 16px; }
.c-sec .spark-legend { margin-top: 4px; }

.c-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.c-list li { display: grid; gap: 1px; padding: 10px 0 10px 18px; position: relative; border-top: 1px solid var(--line-2); font-size: 15.5px; line-height: 1.4; }
.c-list li:first-child { border-top: 0; padding-top: 2px; }
.c-list li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 7px; height: 7px; border-radius: 999px; background: var(--c); opacity: .55; }
.c-list li:first-child::before { top: 9px; }
.c-list li span { color: var(--ink-2); }
.c-list li b { font-weight: 600; color: var(--ink); }
.c-doc { margin-top: 14px; padding: 4px 14px; border-radius: 16px; background: var(--bg); }
.c-doc .docrow { border-bottom: 0; }
.c-treat + .c-treat { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--line); }

.c-watch { display: grid; gap: 8px; }
.c-watch-i { display: grid; gap: 2px; padding: 12px 14px 12px 16px; border-radius: 16px; background: var(--amber-l); position: relative; overflow: hidden; }
.c-watch-i::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--amber); opacity: .7; }
.c-watch-i b { font-weight: 600; font-size: 16px; }
.c-watch-i span { font-size: 15px; color: var(--ink-2); line-height: 1.45; }

.c-flag { display: inline-block; margin: 10px 0 2px; font-size: 14px; font-weight: 600; color: var(--amber); background: var(--amber-l); padding: 3px 10px; border-radius: 999px; }
.c-sec .labs { margin-top: 12px; gap: 8px; }
.c-sec .lab { padding: 11px 12px 12px; border-radius: 16px; min-width: 0; }
.c-sec .lab b { font-size: 17px; margin-top: 2px; }
.c-sec .lab span { padding-right: 34px; }

.c-vacc { display: grid; gap: 8px; }
.c-vacc-i { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 16px; background: var(--bg); }
.c-vacc-i b { display: block; font-weight: 600; font-size: 15.5px; }
.c-vacc-i small { display: block; font-size: 14px; color: var(--muted); }
.c-vacc-i em { font-style: normal; font-size: 14.5px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-2); }

.c-pro { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--bg); }
.c-pro + .c-pro { margin-top: 8px; }
.c-pro .pill { flex: none; background: #fff; }
.c-pro .pro-tel { background: #fff; box-shadow: var(--shadow); }

.c-pending { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: 20px; border: 1.5px dashed var(--line); color: var(--muted); font-size: 15px; background: rgba(255,255,255,.5); }
.c-pending svg { width: 19px; height: 19px; flex: none; margin-top: 1px; }

/* Apparition douce */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.view > .carnet { animation: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .c-art, .c-hero-txt { animation: none; } }
/* hero : le dessin sort du bord droit (CB1) sans créer de défilement horizontal */
.c-hero { margin: 0 -20px; padding: 0 20px 22px; overflow: hidden; }
.c-art { right: 0; top: 0; }
.acct-btn { background: var(--card); color: var(--ink); font-size: 16px; box-shadow: var(--shadow); }
.acct-btn .acct-gear { display: none; }
.c-toc .chip:last-child { margin-right: 20px; }
.c-toc { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
.c-stat span { font-size: 14px; }
.c-weight { align-items: center; }
.c-sec .spark-legend { margin-top: 8px; }
.c-list li b { font-weight: 500; }
.c-list li > span:first-child { font-size: 14.5px; color: var(--muted); }
.c-list li.plain { padding-left: 0; }
.c-list li.plain::before { display: none; }
.c-list li.plain > span:first-child { font-size: 14.5px; color: var(--ink-2); font-style: italic; }
.c-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.c-chips em { font-style: normal; font-size: 14.5px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--c-l); color: var(--ink); line-height: 1.3; }
.c-doc { margin-top: 18px; }
/* Cadrages : les notifications et pastilles ne sortent plus du format */
.notifs { grid-template-columns: minmax(0, 1fr); }
.notif { min-width: 0; }
.notif-top > span:last-child { flex: none; }
.animal-foot { flex-wrap: wrap; justify-content: flex-start; }
.animal-foot .pill { max-width: 100%; white-space: normal; line-height: 1.35; padding-top: 4px; padding-bottom: 4px; }
.c-treat + .c-treat { border-top-style: solid; border-top-color: var(--line-2); }
.c-list li { padding-left: 20px; }
.c-chips em { color: var(--ink); }

/* =================== v4 (22:08) =================== */
/* Urgence : 3 niveaux seulement */
:root { --hot: #c2564b; --hot-l: #fbe9e6; --warm: #b07a22; --warm-l: #f8eedc; --calm: #6c7572; --calm-l: #efede8; }
.u-hot { --u: var(--hot); --u-l: var(--hot-l); }
.u-warm { --u: var(--warm); --u-l: var(--warm-l); }
.u-calm, .u-done { --u: var(--calm); --u-l: var(--calm-l); }

/* Accueil : 3 animaux sur une ligne (première proposition) */
.gallery.three { gap: 10px; flex-wrap: nowrap; }
.gallery.three > .pet { width: calc((100% - 20px) / 3); }
.gallery.three .pet-name { font-size: 17px; }
.gallery.three .pet-meta, .gallery.three .pet-bday { font-size: 14px; }

/* Notifications : délai en pastille colorée */
.notif-when { flex: none; font-weight: 600; font-size: 13px; padding: 2px 8px; border-radius: 999px; background: var(--u-l); color: var(--u); }
.notif.u-hot .notif-ico { background: var(--hot-l); color: var(--hot); box-shadow: none; }

/* Filtres sur plusieurs lignes : tout est visible */
.filters.wrap, .c-toc { flex-wrap: wrap; overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
.c-toc { position: static; -webkit-mask-image: none; mask-image: none; background: none; padding: 0; margin-top: 16px; gap: 6px; }
.c-toc .chip:last-child { margin-right: 0; }

/* Agenda */
.ag-next { margin: 18px 0 6px; padding: 14px; border-radius: 26px; background: linear-gradient(135deg, #fff 0%, #fbf3ec 100%); box-shadow: 0 1px 2px rgba(31,42,44,.04), 0 16px 36px -22px rgba(31,42,44,.35); }
.ag-next-label { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--hot); margin: 2px 4px 10px; }
.ag-next-label svg { width: 16px; height: 16px; }
.ag-next .ev { box-shadow: none; background: var(--bg); }
.ag-secs { display: grid; gap: 12px; margin-top: 18px; }
.ag-sec { background: #fff; border-radius: 24px; box-shadow: 0 1px 2px rgba(31,42,44,.04), 0 12px 30px -20px rgba(31,42,44,.25); overflow: hidden; }
.ag-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 16px; border: 0; background: none; text-align: left; }
.ag-head:active { background: var(--bg); }
.ag-ico { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; flex: none; color: var(--k); background: color-mix(in srgb, var(--k) 13%, #fff); }
.ag-ico svg { width: 23px; height: 23px; }
.ag-h { flex: 1; min-width: 0; }
.ag-h b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.ag-h small { display: block; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.ag-count { min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px; display: grid; place-items: center; font-weight: 600; font-size: 15px; background: var(--u-l); color: var(--u); flex: none; }
.ag-chev { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: var(--bg); color: var(--ink-2); flex: none; transition: transform .3s ease; }
.ag-chev svg { width: 16px; height: 16px; transform: rotate(90deg); }
.ag-sec.open .ag-chev { transform: rotate(180deg); }
.ag-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2,.7,.2,1); }
.ag-sec.open .ag-body { grid-template-rows: 1fr; }
.ag-inner { min-height: 0; overflow: hidden; display: grid; gap: 8px; padding: 0 12px; }
.ag-sec.open .ag-inner { padding: 0 12px 12px; }

/* Carte d'évènement */
.ev { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 12px; border: 0; border-radius: 18px; background: var(--bg); text-align: left; transition: transform .15s ease, background .2s; }
.ev:active { transform: scale(.985); background: #efe9df; }
.dtile { width: 48px; height: 52px; border-radius: 14px; flex: none; display: grid; place-content: center; text-align: center; background: #fff; box-shadow: inset 0 0 0 1.5px var(--u-l), 0 2px 6px -4px rgba(31,42,44,.3); border-top: 4px solid var(--u); }
.dtile b { font-size: 20px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.dtile small { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); line-height: 1.3; }
.dtile.nodate { color: var(--u); }
.dtile.nodate svg { width: 22px; height: 22px; }
.ev-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ev-title { font-weight: 600; font-size: 16px; line-height: 1.3; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ev-time { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.ev-note { display: flex; gap: 6px; font-size: 14px; color: var(--ink-2); font-style: italic; line-height: 1.35; }
.ev-note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--muted); }
.ev-note span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; max-width: 104px; }
.ev-delay { font-size: 14px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--u-l); color: var(--u); text-align: center; line-height: 1.25; }
.ev-chev { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: #fff; color: var(--ink-2); box-shadow: 0 1px 3px rgba(31,42,44,.12); flex: none; }
.ev-chev svg { width: 15px; height: 15px; }
.ev.done .ev-title { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(108,117,114,.5); }
.ev-list { display: grid; gap: 8px; }

/* Feuille d'un évènement */
.ev-top { display: flex; gap: 14px; align-items: center; margin-top: 14px; }
.ev-top .sheet-title { margin: 0; font-size: 21px; }
.ev-detail { margin: 12px 0 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.ev-delay-pill { background: var(--u-l) !important; color: var(--u) !important; border-color: transparent !important; }
.ev-delay-pill span { color: var(--u) !important; font-weight: 600; }
.ev-actions { margin-top: 16px; display: grid; gap: 0; }
.ev-actions > .btn { width: 100%; }
.btn.armed { background: var(--green); animation: pulse 1s ease infinite alternate; }
@keyframes pulse { to { box-shadow: 0 0 0 6px rgba(61,122,94,.18); } }
.ev-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.ev-row label { font-weight: 500; }
.ev-row .input { flex: 1; min-width: 0; }
.pick-row { display: flex; gap: 6px; flex-wrap: wrap; }
.ev-post .btn { margin-top: 10px; width: 100%; }
.ev-switch { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 16px; cursor: pointer; }
.ev-switch input { position: absolute; opacity: 0; pointer-events: none; }
.ev-switch span { width: 44px; height: 26px; border-radius: 999px; background: #d9d3c8; position: relative; transition: background .2s; flex: none; }
.ev-switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.ev-switch input:checked + span { background: var(--green); }
.ev-switch input:checked + span::after { transform: translateX(18px); }
.ev-notes { display: grid; gap: 8px; margin-bottom: 10px; }
.ev-n { padding: 10px 12px; border-radius: 14px; background: var(--bg); font-size: 15.5px; line-height: 1.45; }
.ev-n small { display: block; font-size: 14px; margin-bottom: 2px; }
.ev-from { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 14px; background: var(--bg); text-align: left; margin-bottom: 6px; }
.ev-from > span:nth-child(2) { flex: 1; min-width: 0; }
.ev-from b { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.ev-from small { display: block; }
.ev-from > svg { width: 16px; height: 16px; color: var(--muted); }
.ev-hist { margin-top: 14px; padding: 0 4px; display: grid; gap: 3px; font-size: 14px; color: var(--muted); }
.block-label svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; }
.block .block-label { display: flex; align-items: center; }

/* Toast avec « Annuler » */
.toast.with-undo { pointer-events: auto; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px; white-space: normal; width: max-content; max-width: calc(100% - 32px); }
.toast.with-undo button { border: 0; background: #fff; color: var(--ink); font-weight: 600; padding: 7px 14px; border-radius: 999px; flex: none; }

/* Animaux : deux choix clairs */
.animal-hit { display: block; color: inherit; }
.animal-hit .animal-body { display: flex; }
.animal-foot:empty { display: none; }
.animal-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px 14px; }
.aa { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 10px; border-radius: 16px; background: var(--bg); font-weight: 600; font-size: 15.5px; color: var(--ink); transition: transform .15s; }
.aa svg { width: 18px; height: 18px; }
.aa-main { background: var(--ink); color: #fff; }
.aa:active { transform: scale(.97); }

/* Fil de suivi : grand dessin, le fil glisse par-dessus */
.view > .fil { animation: none; }
.fil { position: relative; margin: -4px -20px 0; }
.f-stage { position: sticky; top: calc(58px + env(safe-area-inset-top, 0px)); height: min(46vh, 380px); overflow: hidden; z-index: 0; }
.f-stage .c-deco { height: 100%; }
.f-art { position: absolute; inset: 0 0 30px; display: grid; place-items: center; animation: artIn .9s cubic-bezier(.2,.7,.2,1) both; }
.f-art img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.f-art.empty { color: var(--c); }
.f-art.empty svg { width: 46%; height: 46%; stroke-width: .7; opacity: .22; transform: rotate(-12deg); }
.f-sheet { position: relative; z-index: 1; margin-top: -48px; background: var(--bg); border-radius: 32px 32px 0 0; padding: 22px 20px 8px; box-shadow: 0 -18px 40px -26px rgba(31,42,44,.35); min-height: 60vh; }
.f-sheet::before { content: ""; position: absolute; top: 9px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 9px; background: #d9d1c4; }
.f-head .c-name { font-size: 38px; margin-bottom: 6px; }
.f-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.f-act { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); font-weight: 600; font-size: 15.5px; }
.f-act svg { width: 18px; height: 18px; color: var(--c); }
.f-filters { margin-top: 18px; }
.f-thread { margin-top: 8px; display: grid; gap: 10px; }
.f-month { font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 16px 4px 0; }
.f-line { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 14px; border: 0; border-radius: 22px; background: #fff; text-align: left; box-shadow: 0 1px 2px rgba(31,42,44,.04), 0 10px 26px -20px rgba(31,42,44,.3); }
.f-line.rv.in:active { transform: scale(.985); }
.f-date { width: 44px; flex: none; text-align: center; display: grid; padding: 6px 0; border-radius: 14px; background: var(--c-l); }
.f-date b { font-size: 19px; font-weight: 600; line-height: 1.05; color: var(--ink); }
.f-date small { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.f-body { flex: 1; min-width: 0; display: grid; gap: 5px; }
.f-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.f-title { font-weight: 600; font-size: 16px; line-height: 1.35; }
.f-src { font-size: 14px; color: var(--muted); line-height: 1.35; }

/* Feuilles du bas : on voit clairement où elles finissent */
.scrim { background: rgba(31, 42, 44, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet { padding-bottom: calc(18px + var(--safe-b)); transition: transform .25s ease; }
.sheet-grip { width: 48px; height: 6px; background: #c9c0b2; margin: 2px auto 12px; }
.sheet-end { display: flex; align-items: center; gap: 12px; margin: 22px 0 4px; color: var(--muted); font-size: 14px; }
.sheet-end::before, .sheet-end::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sheet-more { position: sticky; bottom: -18px; display: block; margin: 0 -20px -18px; height: 46px; background: linear-gradient(to bottom, rgba(245,241,234,0), var(--bg) 70%); pointer-events: none; text-align: center; }
.sheet-close-btm { width: 100%; margin-top: 22px; }
.sheet-more-ind { position: fixed; left: 50%; bottom: calc(14px + var(--safe-b)); transform: translateX(-50%); z-index: 55; pointer-events: none; }
.sheet-more-ind span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 8px 20px -8px rgba(0,0,0,.45); animation: bob 1.4s ease-in-out infinite alternate; }
.sheet-more-ind svg { width: 14px; height: 14px; transform: rotate(90deg); }
@keyframes bob { to { transform: translateY(3px); } }
.ag-count { background: color-mix(in srgb, var(--k) 13%, #fff); color: var(--k); }
.ag-label { font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 26px 4px -6px; }
.sheet-more-ind { bottom: 0; width: 100%; max-width: var(--col); padding: 34px 0 calc(12px + var(--safe-b)); text-align: center; background: linear-gradient(to bottom, rgba(245,241,234,0), rgba(245,241,234,.94) 55%); }

/* =================== v5 (22:53) =================== */
/* Tous les filtres : sur plusieurs lignes, tous visibles */
.filters { flex-wrap: wrap; overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }

/* Bouton Fermer des feuilles : distinct des cartes d'infos */
.sheet-close-btm { background: transparent !important; box-shadow: none !important; border: 1.5px solid #cfc5b5 !important; color: var(--ink-2) !important; height: 46px; font-weight: 500; }
.sheet-close-btm svg { width: 16px; height: 16px; }

/* Fil de suivi façon CB1 : l'animal en grand sur toute la hauteur, coupé au bord ; les cartes passent devant */
.fil { margin: -4px -20px 0; }
.f-stage { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--col); height: 100vh; height: 100dvh; z-index: 0; overflow: hidden; pointer-events: none; }
.f-stage .c-deco { position: absolute; inset: 0; height: 100%; }
.f-stage .c-dots { height: 100%; }
.f-art { position: absolute; top: 64px; bottom: 96px; right: 0; left: auto; width: 92%; inset: 64px 0 96px auto; display: block; animation: artIn 1s cubic-bezier(.2,.7,.2,1) both; }
.f-art img { width: 100%; height: 100%; object-fit: contain; object-position: right center; transform: translateX(30%); }
.f-art.empty { display: grid; place-items: center; }
.f-art.empty svg { width: 70%; height: 70%; transform: translateX(28%) rotate(-12deg); }
.f-sheet { position: relative; z-index: 1; margin-top: 0; background: none; border-radius: 0; box-shadow: none; padding: 26px 20px 8px; min-height: 0; }
.f-sheet::before { display: none; }
.f-head { max-width: 62%; }
.f-head .c-name { font-size: 44px; }
.f-head .c-meta { text-shadow: 0 0 12px var(--bg), 0 0 4px var(--bg); }
.f-actions { margin-top: 22px; }
.f-month { display: inline-block; justify-self: start; padding: 4px 11px; border-radius: 999px; background: rgba(245,241,234,.9); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); margin: 14px 0 0; }
.f-filters .chip { box-shadow: 0 2px 8px -4px rgba(31,42,44,.25); }
.f-journal { width: 100%; display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 13px 16px; border: 1.5px dashed #cfc5b5; border-radius: 18px; background: rgba(255,255,255,.75); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: var(--muted); font-size: 15.5px; text-align: left; }
.f-journal svg { width: 18px; height: 18px; color: var(--c); }
.to-int { font-style: normal; font-size: 13px; font-weight: 600; color: var(--plum); background: var(--plum-l); padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.d-info { color: var(--plum); }
.quick-obs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }

/* Accueil */
.home { position: relative; margin: -4px -20px 0; padding: 0 20px; isolation: isolate; }
.h-deco { position: absolute; inset: 0 0 auto 0; height: 420px; overflow: hidden; z-index: -1; pointer-events: none; }
.h-deco .c-wash.w1 { right: -90px; top: -40px; opacity: .12; }
.h-deco .c-wash.w2 { left: -80px; right: auto; top: 160px; opacity: .08; }
.home-head { padding: 10px 0 4px; }
.home-logo { width: 112px; height: 112px; margin: -4px auto -6px; animation: fade .7s ease both; }
.home-hello { font-size: 38px; letter-spacing: -.03em; margin: 2px 0 0; }
.home-mood { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 10px 8px 14px; border-radius: 999px; background: rgba(255,255,255,.85); box-shadow: 0 6px 18px -12px rgba(31,42,44,.45); font-size: 15px; font-weight: 500; }
.home-mood i { width: 9px; height: 9px; border-radius: 999px; background: var(--u); box-shadow: 0 0 0 4px var(--u-l); }
.home-mood svg { width: 15px; height: 15px; color: var(--muted); }
.gallery { margin-top: 26px; }
.gallery .pet { animation: petIn .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
@keyframes petIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.home-note { width: 100%; display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 14px 16px; border: 1.5px dashed #cfc5b5; border-radius: 20px; background: rgba(255,255,255,.6); color: var(--muted); font-size: 15.5px; text-align: left; }
.home-note svg { width: 18px; height: 18px; color: var(--green); }
.home-sec { margin-top: 8px; }
.home-more { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; padding: 12px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); font-weight: 600; font-size: 15.5px; }
.home-more svg { width: 16px; height: 16px; }
.view > .home { animation: none; }

/* =================== v6 (23:13) =================== */
/* Accueil : décor épuré (plus de taches), lumière douce + cadres élégants */
.home { padding-top: 6px; }
.home::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -60px; width: 520px; height: 420px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,255,255,0)); pointer-events: none; }
.home-head { padding: 12px 0 0; }
.home-logo { width: 96px; height: 96px; margin: 0 auto -2px; }
.hello-date { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.home-hello { font-size: 40px; font-weight: 600; letter-spacing: -.035em; margin-top: 4px; }
.home-hello::after { content: ""; display: block; width: 36px; height: 2px; border-radius: 2px; margin: 16px auto 0; background: linear-gradient(90deg, var(--green), var(--blue)); opacity: .55; }
.gallery { margin-top: 30px; }
.gallery.three { gap: 14px; }
.gallery.three > .pet { width: calc((100% - 28px) / 3); }
.pet .portrait.tall {
  border: 0; aspect-ratio: 3 / 4; border-radius: 999px 999px 22px 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, #fff) 0%, #fff 100%) !important;
  box-shadow: 0 1px 2px rgba(31,42,44,.05), 0 18px 34px -22px rgba(31,42,44,.5);
  outline: 1px solid color-mix(in srgb, var(--c) 38%, transparent); outline-offset: 5px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.pet:active .portrait.tall { transform: translateY(-2px) scale(.985); }
.pet .portrait.tall.has-img img { object-fit: cover; object-position: center 35%; }
.pet .portrait-ph svg { width: 34%; height: 34%; stroke-width: 1; opacity: .5; }
.pet-name { margin-top: 14px; font-size: 17px; letter-spacing: -.01em; }
.gallery.three .pet-name { font-size: 16.5px; }
.pet-meta, .gallery.three .pet-meta { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-top: 2px; }
.pet-bday, .gallery.three .pet-bday { font-size: 14px; margin-top: 3px; }
.home-sec { margin-top: 18px; }

/* Fil : chien géant, coupé en son milieu par le bord droit */
.f-art { inset: 84px auto 104px 100%; width: 0; overflow: visible; display: block; }
.f-art img { position: absolute; top: 0; left: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%); object-fit: contain; }
.f-art.empty svg { position: absolute; top: 50%; left: 0; width: 520px; height: 520px; transform: translate(-50%, -50%) rotate(-12deg); }
.f-head { max-width: 58%; }

/* Agenda par moment */
.per { margin-top: 26px; }
.per-h { display: flex; align-items: center; gap: 10px; margin: 0 4px 10px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.per-n { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; font-size: 14px; font-weight: 600; background: #fff; color: var(--ink-2); box-shadow: var(--shadow); }
.per-late .per-h, .per-asap .per-h { color: var(--hot); }
.per-late .per-n, .per-asap .per-n { background: var(--hot-l); color: var(--hot); box-shadow: none; }
.per-week .per-h { color: var(--ink); }
.per-nodate .per-h, .per-wait .per-h { color: var(--ink-2); }
.per .ev { background: #fff; box-shadow: 0 1px 2px rgba(31,42,44,.04), 0 10px 24px -20px rgba(31,42,44,.35); }
.per .ev .ev-chev { background: var(--bg); box-shadow: none; }
.ev-kind { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; color: var(--k); }
.ev-kind svg { width: 13px; height: 13px; stroke-width: 2; }
.ag-secs, .ag-label, .ag-next { display: none; }
.per + .ag-sec, .ev-list + .ag-sec { margin-top: 26px; }
section.ag-sec { margin-top: 30px; }
.f-art img { transform: translateX(var(--fx, -50%)); }

/* =================== v7 (23:36) =================== */
.home-logo { width: 136px; height: 136px; margin: -6px auto -8px; }

/* Suivi : image en bandeau comme l'ancienne page Animaux, la feuille glisse par-dessus */
.f-stage { position: sticky; top: calc(58px + env(safe-area-inset-top, 0px)); left: auto; transform: none; width: auto; max-width: none; height: auto; aspect-ratio: 16 / 10; background: var(--c-l); overflow: hidden; z-index: 0; pointer-events: none; }
.f-stage .c-deco { display: none; }
.f-art, .f-art.empty { position: absolute; inset: 0; width: auto; overflow: hidden; display: block; animation: fade .6s ease both; }
.f-art img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; transform: none; object-fit: cover; object-position: center 30%; }
.f-art.empty svg { position: absolute; top: 50%; left: 50%; width: 30%; height: auto; transform: translate(-50%, -50%); opacity: .35; color: var(--c); }
.f-sheet { position: relative; z-index: 1; margin-top: -30px; background: var(--bg); border-radius: 30px 30px 0 0; padding: 24px 20px 8px; box-shadow: 0 -16px 36px -26px rgba(31,42,44,.35); min-height: 60vh; }
.f-sheet::before { display: block; content: ""; position: absolute; top: 9px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 9px; background: #d9d1c4; }
.f-head { max-width: none; }
.f-head .c-name { font-size: 38px; }
.f-head .c-meta { text-shadow: none; }

/* Agenda : la date fait partie de la carte (bord gauche), colorée selon l'urgence */
.per .ev, .ag-sec .ev { padding: 0 10px 0 0; gap: 14px; overflow: hidden; align-items: stretch; min-height: 72px; }
.ev .dtile { align-self: stretch; width: 62px; height: auto; border-radius: 0; box-shadow: none; border: 0; background: var(--u-l, #eef1f0); color: var(--u, var(--ink)); }
.ev .dtile b { font-size: 24px; color: var(--u, var(--ink)); }
.ev .dtile small { color: var(--u, var(--muted)); opacity: .85; }
.ev .ev-main { padding: 12px 0; align-self: center; }
.ev .ev-chev { align-self: center; }
.ev-meta .av-stack { margin-left: auto; }
.ev-meta .av.sm { width: 24px; height: 24px; }
.ev-meta .av-stack .av + .av { margin-left: -6px; }

/* Notifications de l'accueil : logo à gauche, date colorée discrète, bulles portrait */
.notif.n2 { gap: 12px; align-items: center; }
.notif-logo { width: 44px; height: 44px; flex: none; object-fit: contain; }
.notif.n2 .notif-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 20px; }
.notif-date { font-size: 14px; font-weight: 600; color: var(--u, var(--green)); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif.u-calm .notif-date { color: var(--green); }
.notif-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.notif-row .notif-title { flex: 1; min-width: 0; }
.notif-row .av.sm { width: 24px; height: 24px; }
.notif-row .av-stack .av + .av { margin-left: -6px; }
.ev > .av-stack { align-self: center; flex: none; }
.ev > .av-stack .av.sm { width: 28px; height: 28px; }
.ev > .av-stack .av + .av { margin-left: -8px; }
.ev .ev-chev { margin-left: -4px; }
.ev.u-calm .dtile { background: color-mix(in srgb, var(--green) 11%, #fff); }
.ev.u-calm .dtile b, .ev.u-calm .dtile small { color: var(--green); }
.notif.u-calm .notif-when { background: color-mix(in srgb, var(--green) 11%, #fff); color: var(--green); }

/* =================== v8 (23:54) =================== */
/* Menu : Compte dans la barre → plus de bouton rond en haut */
.acct-btn { display: none !important; }
.tabbar .tab span { font-size: 13px; }

/* Accueil : les animaux sans cadre, en composition */
.gallery { display: none; }
.stage { position: relative; height: 340px; margin: 14px -20px 0; overflow: hidden; }
.hp { position: absolute; display: block; color: inherit; -webkit-tap-highlight-color: transparent; animation: hpIn .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * .12s + .1s); }
@keyframes hpIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hp:active .hp-art { transform: scale(.98); }
.hp-art { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: block; transition: transform .3s; }
.hp-art img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; display: block; filter: drop-shadow(0 14px 18px rgba(31,42,44,.08)); }
.hp-art.empty { display: grid; place-items: end center; }
.hp-art.empty svg { width: 46%; height: auto; max-height: 70%; color: var(--c); opacity: .22; stroke-width: 1; margin-bottom: 6%; }
.hp-info { position: absolute; bottom: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.hp-info b { font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: var(--c); display: inline-flex; align-items: center; gap: 8px; }
.hp-info b::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--c); opacity: .6; }
.hp-info small { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.hp-info small svg { width: 12px; height: 12px; color: var(--c); }
.hp-info small + small { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 14px; }
/* 1 animal */
.stage.n1 .hp { inset: 0; }
.stage.n1 .hp-art { left: 6%; right: 6%; bottom: 0; }
.stage.n1 .hp-info { right: 24px; bottom: 6px; align-items: flex-end; text-align: right; }
.stage.n1 .hp-info b { flex-direction: row-reverse; }
/* 2 animaux */
.stage.n2 .hp { top: 0; bottom: 0; width: 64%; }
.stage.n2 .p0 { left: -4%; z-index: 2; }
.stage.n2 .p1 { right: -4%; top: 30px; z-index: 1; }
.stage.n2 .hp-art { bottom: 58px; }
.stage.n2 .p0 .hp-info { left: 30px; }
.stage.n2 .p1 .hp-info { right: 30px; align-items: flex-end; text-align: right; }
.stage.n2 .p1 .hp-info b { flex-direction: row-reverse; }
/* 3 animaux (ou plus) : le 1er au centre, devant ; les autres de chaque côté, en retrait */
.stage.n3 .hp, .stage.n4 .hp { top: 0; bottom: 0; }
.stage.n3 .p0 { left: 16%; width: 68%; z-index: 3; }
.stage.n3 .p0 .hp-art { bottom: 62px; }
.stage.n3 .p0 .hp-info { left: 0; right: 0; align-items: center; text-align: center; }
.stage.n3 .p0 .hp-info b::before { display: none; }
.stage.n3 .p1, .stage.n3 .p2 { width: 54%; z-index: 1; }
.stage.n3 .p1 { left: -12%; }
.stage.n3 .p2 { right: -12%; }
.stage.n3 .p1 .hp-art, .stage.n3 .p2 .hp-art { top: 10px; bottom: 96px; }
.stage.n3 .p1 .hp-info { left: calc(22% + 18px); bottom: 2px; }
.stage.n3 .p2 .hp-info { right: calc(22% + 18px); bottom: 2px; align-items: flex-end; text-align: right; }
.stage.n3 .p2 .hp-info b { flex-direction: row-reverse; }
.stage.n3 .p1 .hp-info b, .stage.n3 .p2 .hp-info b { font-size: 17px; }
.stage.n3 .p1 .hp-info small + small, .stage.n3 .p2 .hp-info small + small { display: none; }
.stage.n3 .p0 .hp-info small + small { display: none; }
.stage.n4 .hp { width: 50%; }
.stage.n4 .p0 { left: 0; } .stage.n4 .p1 { right: 0; } .stage.n4 .p2, .stage.n4 .p3 { display: none; }
/* « À venir » centré, en couleur, deux lignes de chaque côté */
.home-sec { margin-top: 26px; }
.av-title { display: flex; align-items: center; gap: 14px; margin: 0 4px 14px; color: var(--green); }
.av-title span { font-size: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.av-title i { flex: 1; height: 5px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; opacity: .45; }

/* Carnet : « En bref » en tête */
.c-bref { margin: 14px 0 0; background: #fff; border-radius: 22px; padding: 14px 0 12px; box-shadow: 0 1px 2px rgba(31,42,44,.04), 0 12px 28px -22px rgba(31,42,44,.4); position: relative; z-index: 1; }
.c-bref-h { padding: 0 18px 6px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.c-bref .facts { padding: 4px 18px 2px; gap: 10px; }
.c-bref .fact svg { color: var(--c); }
.c-bref .fact small { color: var(--muted); font-size: 14px; }

/* Notes : supprimer */
.ev-n { position: relative; padding-right: 38px; }
.ev-n-del { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 10px; background: none; color: var(--muted); display: grid; place-items: center; }
.ev-n-del svg { width: 16px; height: 16px; }
.ev-n-del:active { background: var(--hot-l); color: var(--hot); }

/* Agenda : couleur = type (bande + léger voile) ; urgence = pastille de délai seulement */
.ev .dtile, .ev.u-calm .dtile { background: color-mix(in srgb, var(--k) 13%, #fff); color: var(--k); }
.ev .dtile b, .ev .dtile small, .ev.u-calm .dtile b, .ev.u-calm .dtile small { color: var(--k); }
.per .ev { background: linear-gradient(90deg, color-mix(in srgb, var(--k) 4%, #fff), #fff 60%); }
.ev-kind { color: var(--k); }
.ev.done .dtile { background: #f1efea; color: var(--muted); }

/* Ressources : même « bout de carte » daté, couleur du type */
.rdoc { display: flex; align-items: stretch; gap: 14px; padding: 0 10px 0 0; overflow: hidden; min-height: 74px; background: #fff; border: 0; border-radius: 18px; box-shadow: 0 1px 2px rgba(31,42,44,.04), 0 10px 24px -20px rgba(31,42,44,.35); text-align: left; width: 100%; }
.rdoc + .rdoc { margin-top: 10px; }
.rtile { width: 62px; flex: none; display: grid; place-content: center; text-align: center; background: color-mix(in srgb, currentColor 12%, #fff); color: inherit; }
.rtile b { font-size: 22px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.rtile small { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; line-height: 1.3; }
.rtile i { font-style: normal; font-size: 13px; opacity: .7; line-height: 1.1; }
.rtile svg { width: 22px; height: 22px; }
.rdoc .doc-main { flex: 1; min-width: 0; align-self: center; padding: 12px 0; color: var(--ink); }
.rdoc .doc-title { display: block; font-weight: 600; font-size: 16px; line-height: 1.3; }
.rdoc .doc-sub { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 14px; color: var(--muted); }
.rtype { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.rdoc.t-facture .rtype { color: var(--blue); } .rdoc.t-rapport .rtype { color: var(--green); }
.rtype svg { width: 13px; height: 13px; }
.rdoc > .av-stack { align-self: center; flex: none; }
.rdoc > .av-stack .av.sm { width: 28px; height: 28px; }
.rdoc > .av-stack .av + .av { margin-left: -8px; }
.rdoc .ev-chev { align-self: center; }

.rdoc.t-facture { --tc: var(--blue); }
.rdoc.t-rapport { --tc: var(--green); }
.rdoc.t-devis { --tc: var(--amber); }
.rdoc.t-ordonnance { --tc: var(--plum); }
.rdoc.t-traitement { --tc: var(--rose); }
.rdoc.t-protocole { --tc: var(--rose); }
.rdoc.t-note { --tc: var(--slate); }
.rdoc.t-lien { --tc: var(--slate); }
.rdoc.t-fiche { --tc: var(--slate); }
.rdoc.t-recette { --tc: #6f7f2e; }
.rdoc.t-analyse { --tc: var(--amber); }
.rdoc.t-historique { --tc: var(--slate); }
.rdoc .rtype, .rdoc .rtile { color: var(--tc, var(--slate)); }
.rtile { background: color-mix(in srgb, var(--tc, #888) 12%, #fff); }
.stage { overflow: hidden !important; contain: paint; height: 316px; }
.home::before { width: 100%; left: 0; transform: none; }

/* =================== v9 (00:11) =================== */
/* Accueil : plus d'air autour des portraits */
.stage { margin-top: 34px; }
.home-sec { margin-top: 40px; }

/* Suivi : fil d'Ariane discret + lien « à venir → » */
.crumb { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin: 2px 0 6px; color: var(--muted); }
.crumb a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.crumb a:active { color: var(--c); }
.crumb span { opacity: .6; }
.crumb b { color: var(--c); font-weight: 600; }
.f-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.go-next { flex: none; display: inline-flex; align-items: center; gap: 2px; margin-bottom: 10px; font-size: 14.5px; font-weight: 600; color: var(--c); text-decoration: none; padding: 6px 4px 6px 10px; border-radius: 999px; }
.go-next svg { width: 16px; height: 16px; transition: transform .2s; }
.go-next:active svg { transform: translateX(3px); }
.f-actions { display: none; }
.f-next { margin-top: 26px; background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(31,42,44,.04), 0 10px 24px -20px rgba(31,42,44,.4); }
.f-next svg { color: var(--c); }

/* Praticiens : actuels en couleur, anciens en gris */
.c-pro.past { background: transparent; border: 1px solid var(--line); }
.c-pro.past b { font-weight: 500; color: var(--ink-2); }
.c-pro.past .pill, .pill.pro-old { color: var(--muted); border-color: var(--line); }
.c-pro.past .pro-tel { box-shadow: none; border: 1px solid var(--line); color: var(--muted); }

/* Prise de sang : sobre, seules les valeurs hors normes sont colorées */
.lab-flag { background: none; color: var(--muted); padding: 0; font-weight: 500; }
.labs-calm .lab { background: #f7f5f0; }
.labs-calm .lab.hi { background: color-mix(in srgb, var(--hot) 9%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hot) 22%, transparent); }
.labs-calm .lab.hi b, .labs-calm .lab.hi i { color: var(--hot); }
.labs-calm .lab i { color: var(--hot); }

/* Recommandations mises en valeur */
.reco { margin: 16px 0 6px; padding: 16px 16px 14px; border-radius: 20px; background: color-mix(in srgb, var(--green) 8%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 20%, transparent); }
.reco-h { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.reco-h svg { width: 16px; height: 16px; }
.reco-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.reco-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.45; color: var(--ink); }
.reco-list li svg { flex: none; width: 17px; height: 17px; margin-top: 3px; color: var(--green); stroke-width: 2.2; }
.reco-one { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--ink); font-weight: 500; }

/* =================== v10 (00:33) =================== */
/* 62 — Barre du bas : pilule en verre dépoli + fondu crème sous la barre */
.tabbar {
  background: rgba(255, 255, 255, .66);
  -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), 0 0 0 1px rgba(31,42,44,.06), 0 18px 40px -14px rgba(31,42,44,.38), 0 2px 6px -2px rgba(31,42,44,.08);
}
body::after {
  content: ""; position: fixed; z-index: 25; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 100%; max-width: var(--col); height: calc(118px + var(--safe-b));
  background: linear-gradient(to bottom, rgba(245,241,234,0) 0%, rgba(245,241,234,.78) 55%, rgba(245,241,234,.95) 100%);
  pointer-events: none;
}
.sheet-open body::after, body.sheet-open::after { display: none; }

/* 64 — logo des notifications plus grand */
.notif.n2 { padding-left: 10px; }
.notif-logo { width: 58px; height: 58px; margin: -4px -2px -4px -4px; }

/* 65 — Carnet / Suivi : barre du haut transparente, le décor monte jusqu'en haut */
body[data-page="carnet"] .topbar:not(.scrolled), body[data-page="animal"] .topbar:not(.scrolled) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body[data-page="carnet"] .topbar, body[data-page="animal"] .topbar { transition: background .25s; }
body[data-page="carnet"] .view > .carnet { margin-top: calc(-62px - env(safe-area-inset-top, 0px)); padding-top: calc(58px + env(safe-area-inset-top, 0px)); }
body[data-page="animal"] .view > .fil { margin-top: calc(-62px - env(safe-area-inset-top, 0px)); }
body[data-page="animal"] .f-stage { top: 0; aspect-ratio: auto; height: calc(58px + env(safe-area-inset-top, 0px) + 62vw); max-height: 360px; }
body[data-page="carnet"] .icon-btn, body[data-page="animal"] .icon-btn { background: rgba(255,255,255,.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 999px; }

/* 70 — Carnet : l'icône remplit le coin, le contenu retrouve les bords (plus de cadres dans les cadres) */
.c-sec { position: relative; overflow: hidden; padding-top: 0; }
.c-head { margin: 0 -20px 6px; gap: 14px; min-height: 60px; align-items: center; }
.c-head .c-ico { width: 60px; height: 60px; border-radius: 0 0 20px 0; align-self: flex-start; }
.c-head .c-ico svg { width: 24px; height: 24px; }
.c-head h2 { padding-right: 20px; }
.c-sec .c-tiles { margin: 0 -20px; gap: 0; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2, #eee8de); }
.c-sec .c-tile { background: none; border-radius: 0; padding: 12px 20px 13px; border-bottom: 1px solid var(--line-2, #eee8de); }
.c-sec .c-tile:nth-child(odd):not(.wide) { border-right: 1px solid var(--line-2, #eee8de); }
.c-sec .c-tile.wide { grid-column: 1 / -1; }
.c-sec .c-tiles .c-tile:last-child { border-bottom: 0; }
.c-sec .c-vacc { gap: 0; margin: 0 -20px; }
.c-sec .c-vacc-i { background: none; border-radius: 0; padding: 12px 20px; border-top: 1px solid var(--line-2, #eee8de); }
.c-sec .c-pro { background: none; border: 0; border-radius: 0; margin: 0 -20px; padding: 13px 20px; border-top: 1px solid var(--line-2, #eee8de); }
.c-sec .c-pro + .c-pro { margin-top: 0; }
.c-sec .c-watch { gap: 0; margin: 0 -20px; }
.c-sec .c-watch-i { border-radius: 0; padding: 12px 20px; border-top: 1px solid rgba(168,116,42,.18); }
.c-sec .c-doc { margin: 14px -20px 0; border-radius: 0; padding: 4px 20px; }
.c-sec > .c-doc:last-child, .c-sec .c-treat:last-child .c-doc:last-child { margin-bottom: -22px; padding-bottom: 8px; }
.c-sec .c-note { margin: 14px -20px 0; border-radius: 0; padding: 12px 20px; }
.c-sec .c-treat + .c-treat { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }

/* 71 — Prise de sang : hors normes comme avant (fond ambre + pastille), le reste en cartes non colorées */
.labs-v2 .lab { background: #fff; box-shadow: inset 0 0 0 1px var(--line-2, #eee8de); }
.labs-v2 .lab.hi { background: var(--amber-l); box-shadow: none; }
.labs-v2 .lab.hi b { color: var(--ink); }
.labs-v2 .lab i { color: var(--amber); }

/* 72 — praticiens non actuels : sans couleur */
.c-sec .c-pro.past { opacity: .78; }
.c-sec .c-pro.past .pill, .pill.pro-old { color: var(--muted) !important; background: none; box-shadow: inset 0 0 0 1px var(--line); }
.c-sec .c-pro.past .pro-tel { color: var(--muted); }

/* 73 — Suivi : bout de carte daté, couleur du domaine */
.f-line { padding: 0 10px 0 0; gap: 14px; align-items: stretch; overflow: hidden; min-height: 78px; }
.f-line .f-date { align-self: stretch; width: 62px; border-radius: 0; padding: 0; place-content: center; background: color-mix(in srgb, currentColor 12%, #fff); }
.f-line .f-date b, .f-line .f-date small { color: inherit; }
.f-line .f-date b { font-size: 22px; }
.f-line .f-body { align-self: center; padding: 13px 0; }
.f-line .ev-chev { align-self: center; }

/* 67 — Spyke (côté gauche) un peu plus grand */
.stage.n3 .p1 .hp-art { top: 0; bottom: 88px; }

/* =================== v11 (00:44) =================== */
/* 75 — plus de barre en haut : seuls les boutons flottent */
.topbar, .topbar.scrolled, body[data-page] .topbar { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important; border: 0 !important; pointer-events: none; }
.topbar .icon-btn { pointer-events: auto; }
.topbar-title, .topbar.scrolled .topbar-title, .topbar.always .topbar-title { display: none; }
.topbar .icon-btn:not([hidden]) { background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(12px) saturate(1.6); backdrop-filter: blur(12px) saturate(1.6); border-radius: 999px; box-shadow: 0 0 0 1px rgba(31,42,44,.05), 0 6px 16px -8px rgba(31,42,44,.35); }
body[data-page="accueil"] .view, body[data-page="agenda"] .view, body[data-page="ressources"] .view { margin-top: -30px; }

/* 76 — accueil : laisser respirer la peinture */
.home-head { padding-top: 26px; }
.stage { margin-top: 64px !important; height: 340px; }
.home-sec { margin-top: 78px; }

/* 77 — « À venir » : lignes plus courtes (≈ 2/3) */
.av-title { justify-content: center; gap: 16px; }
.av-title i { flex: 0 0 auto; width: 22%; }

/* 79 — Spyke plus grand mais plus loin (en retrait, plus haut) ; Bamboo plus petite, plus proche */
.stage.n3 .p1 { width: 62%; left: -16%; z-index: 0; }
.stage.n3 .p1 .hp-art { top: 0; bottom: 112px; }
.stage.n3 .p1 .hp-info { left: calc(26% + 18px); }
.stage.n3 .p2 { width: 50%; right: -9%; z-index: 1; }
.stage.n3 .p2 .hp-art { top: 46px; bottom: 80px; }
.stage.n3 .p2 .hp-info { right: calc(18% + 18px); }

/* 78 — Compte : un espace plus « sexy » */
.acct-hero { position: relative; isolation: isolate; text-align: center; margin: 0 -20px; padding: 40px 20px 26px; }
.acct-wash { position: absolute; z-index: -1; left: 50%; top: -30px; width: 340px; height: 340px; transform: translateX(-50%) rotate(-8deg); opacity: .16; filter: blur(.5px) saturate(1.2); pointer-events: none; }
.acct-hero::after { content: ""; position: absolute; z-index: -1; inset: auto 0 0 0; height: 90px; background: linear-gradient(to bottom, rgba(245,241,234,0), var(--bg)); }
.acct-hero .acct-av { width: 96px; height: 96px; margin: 0 auto; padding: 3px; border-radius: 999px; display: block; background: conic-gradient(from 210deg, var(--green), var(--blue), var(--plum), var(--rose), var(--amber), var(--green)); box-shadow: 0 18px 36px -18px rgba(31,42,44,.55); }
.acct-hero .acct-av span { width: 100%; height: 100%; border-radius: 999px; display: grid; place-items: center; background: #fff; border: 3px solid #fff; font-size: 40px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); background: radial-gradient(circle at 30% 25%, #fff, #f3eee6); }
.acct-name { margin: 16px 0 0; font-size: 34px; font-weight: 600; letter-spacing: -.03em; }
.acct-sub { margin-top: 2px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.acct-pets { display: flex; justify-content: center; gap: 18px; margin-top: 22px; }
.acct-pet { display: grid; justify-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; }
.acct-pet .av { width: 58px; height: 58px; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--c), 0 10px 20px -12px rgba(31,42,44,.5); transition: transform .2s; }
.acct-pet:active .av { transform: scale(.94); }
.acct-pet small { font-size: 14px; font-weight: 600; color: var(--c); }
.acct-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0 0; background: rgba(255,255,255,.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 22px; box-shadow: 0 1px 2px rgba(31,42,44,.04), 0 12px 28px -22px rgba(31,42,44,.4); overflow: hidden; }
.acct-stats > * { padding: 14px 6px 12px; display: grid; gap: 2px; color: var(--ink); text-decoration: none; }
.acct-stats > * + * { border-left: 1px solid var(--line-2); }
.acct-stats b { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.acct-stats small { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.acct-stats a b { color: var(--green); }
/* sections du compte = cartes à icône dans le coin, comme le carnet */
body[data-page="parametres"] .sec { position: relative; overflow: hidden; background: #fff; border: 0; border-radius: 26px; padding: 0 20px 20px; margin-top: 16px; box-shadow: 0 1px 2px rgba(31,42,44,.04), 0 14px 34px -20px rgba(31,42,44,.22); --k: var(--green); }
body[data-page="parametres"] .sec:nth-of-type(2) { --k: var(--blue); }
body[data-page="parametres"] .sec:nth-of-type(3) { --k: var(--plum); }
body[data-page="parametres"] .sec:nth-of-type(4) { --k: var(--amber); }
body[data-page="parametres"] .sec:nth-of-type(5) { --k: var(--rose); }
body[data-page="parametres"] .sec:nth-of-type(6) { --k: var(--slate); }
body[data-page="parametres"] .sec .block-label { display: flex; align-items: center; gap: 14px; margin: 0 -20px 14px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; text-transform: none; color: var(--ink); }
body[data-page="parametres"] .sec .block-label svg { width: 56px; height: 56px; padding: 16px; box-sizing: border-box; flex: none; border-radius: 0 0 20px 0; background: color-mix(in srgb, var(--k) 13%, #fff); color: var(--k); }
body[data-page="parametres"] .sec .rows { margin: 0 -20px; }
body[data-page="parametres"] .sec .row { padding: 12px 20px; border-top: 1px solid var(--line-2); }
body[data-page="parametres"] .sec .note { margin: 14px -20px -20px; padding: 13px 20px 16px; border-radius: 0; background: #faf8f4; font-size: 14px; color: var(--muted); }
body[data-page="parametres"] .sec .btn { margin-top: 14px; }

/* =================== v12 (01:04) =================== */
/* 80 — notif sans date : ligne légère */
.notif-date.nodate { color: var(--muted) !important; font-weight: 500; font-style: italic; letter-spacing: 0; }

/* 81 — accueil : fine flèche en couleur sous espèce · âge */
.hp-go { display: block; width: 40px; height: 12px; margin-top: 5px; color: var(--c); transition: transform .3s; }
.hp-go svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.hp:active .hp-go, .hp:hover .hp-go { transform: translateX(5px); }
.hp-info[style*="right"] .hp-go, .stage.n2 .p1 .hp-go, .stage.n3 .p2 .hp-go, .stage.n1 .hp-go { align-self: flex-end; }
.stage.n3 .p0 .hp-go { align-self: center; }
@keyframes goHint { 0%, 70%, 100% { transform: none; } 80% { transform: translateX(5px); } 90% { transform: translateX(1px); } }
.hp-go { animation: goHint 4.5s ease-in-out 2s infinite; }

/* 82 — logo avant chaque titre */
.t-logo { width: 1.25em; height: 1.25em; object-fit: contain; vertical-align: -.28em; margin-right: .3em; }
.h1-logo { display: flex; align-items: center; gap: 10px; }
.h1-logo .t-logo { width: 46px; height: 46px; margin: -6px 0 -6px -4px; }
.eb-logo, .crumb, .acct-sub { display: inline-flex; align-items: center; gap: 6px; }
.eb-logo .t-logo, .crumb .t-logo, .acct-sub .t-logo { width: 26px; height: 26px; margin: -6px 0 -6px -2px; vertical-align: middle; }
.add-title { display: flex; align-items: center; gap: 8px; }
.add-title .t-logo { width: 38px; height: 38px; margin: -6px 0 -6px -4px; }

/* 83 — fondu : le contenu s'efface AVANT d'atteindre la barre */
body::after { height: calc(170px + var(--safe-b)); background: linear-gradient(to bottom, rgba(245,241,234,0) 0%, rgba(245,241,234,.55) 22%, rgba(245,241,234,.92) 40%, var(--bg) 52%); }

/* 84 — Spyke et Bamboo à la même hauteur (Spyke un peu plus grand) */
.stage.n3 .p1 { width: 56%; left: -13%; z-index: 1; }
.stage.n3 .p2 { width: 52%; right: -11%; z-index: 1; }
.stage.n3 .p1 .hp-art, .stage.n3 .p2 .hp-art { top: 14px; bottom: 96px; }
.stage.n3 .p1 .hp-info { left: calc(23% + 18px); }
.stage.n3 .p2 .hp-info { right: calc(21% + 18px); }

/* 85 — Ajouter : simple, visuel, pensé téléphone */
.choices2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.choice2 { position: relative; overflow: hidden; display: grid; align-content: end; gap: 1px; min-height: 112px; padding: 14px 16px; border: 0; border-radius: 22px; text-align: left; background: #fff; box-shadow: 0 1px 2px rgba(31,42,44,.05), 0 10px 24px -18px rgba(31,42,44,.4); transition: transform .15s; }
.choice2:active { transform: scale(.97); }
.choice2 .ch-ico { position: absolute; top: 0; left: 0; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 0 0 18px 0; background: color-mix(in srgb, var(--k) 13%, #fff); color: var(--k); }
.choice2 .ch-ico svg { width: 23px; height: 23px; }
.choice2 b { font-size: 16.5px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.choice2 small { font-size: 14px; color: var(--muted); }
.sheet .field { margin-top: 18px; }
.sheet .field > label, .sheet .field > .flabel, .sheet .field.two label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 9px 2px; }
.sheet .flabel small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.sheet .input { font-size: 17px; min-height: 50px; border-radius: 16px; }
.sheet textarea.input { min-height: 0; }
/* animaux = bulles portrait */
.pick-pets { display: flex; gap: 14px; flex-wrap: wrap; }
.pet-chip { position: relative; display: grid !important; justify-items: center; gap: 6px; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; min-width: 64px; }
.pet-chip .av { width: 60px; height: 60px; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line), 0 6px 14px -10px rgba(31,42,44,.5); transition: box-shadow .2s, transform .2s; filter: grayscale(.35); opacity: .75; }
.pet-chip span { font-size: 14px; font-weight: 600; color: var(--muted); }
.pet-chip i { position: absolute; top: 40px; right: 2px; width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; background: var(--c); color: #fff; border: 2px solid #fff; transform: scale(0); transition: transform .2s; }
.pet-chip i svg { width: 12px; height: 12px; stroke-width: 3; }
.pet-chip[aria-pressed="true"] .av { box-shadow: 0 0 0 2.5px var(--c), 0 8px 18px -10px rgba(31,42,44,.55); filter: none; opacity: 1; transform: scale(1.04); }
.pet-chip[aria-pressed="true"] span { color: var(--c); }
.pet-chip[aria-pressed="true"] i { transform: scale(1); }
/* choix en pastilles colorées */
.sheet .pick { gap: 8px; }
.sheet .pick .chip[aria-pressed="true"]:not(.pet-chip) { color: #fff; background: var(--ink); border-color: var(--ink); }
.sheet .pick .chip.d-veto[aria-pressed="true"], .sheet .pick .chip.t-rapport[aria-pressed="true"] { background: var(--green); border-color: var(--green); }
.sheet .pick .chip.d-osteo[aria-pressed="true"], .sheet .pick .chip.t-facture[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); }
.sheet .pick .chip.d-phyto[aria-pressed="true"] { background: #6f7f2e; border-color: #6f7f2e; }
.sheet .pick .chip.d-nutrition[aria-pressed="true"], .sheet .pick .chip.t-devis[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); }
.sheet .pick .chip.t-ordonnance[aria-pressed="true"], .sheet .pick .chip.d-posture[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); }
.sheet .pick .chip.t-traitement[aria-pressed="true"], .sheet .pick .chip.t-protocole[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); }
.quick-obs .chip.on { background: color-mix(in srgb, var(--plum) 12%, #fff); border-color: var(--plum); color: var(--plum); }
/* fichiers côte à côte */
.drops2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drops2 > .flabel { grid-column: 1 / -1; margin-bottom: 0 !important; }
.drops2 .field { margin: 0; }
.drops2 .drop { flex-direction: column; justify-content: center; text-align: center; min-height: 92px; gap: 6px; font-size: 15px; }
/* plus de détails */
.more { margin-top: 18px; border-top: 1px solid var(--line-2); }
.more summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 14px 2px 4px; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; }
.more summary::-webkit-details-marker { display: none; }
.more summary svg { width: 16px; height: 16px; transform: rotate(90deg); transition: transform .2s; }
.more[open] summary svg { transform: rotate(-90deg); }
.more .field:first-child { margin-top: 8px; }
/* bouton Enregistrer collé en bas de la feuille */
.save-bar { position: sticky; bottom: 0; z-index: 2; margin: 22px -20px 0; padding: 14px 20px calc(10px + var(--safe-b)); background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 28%); }
.save-bar .btn { width: 100%; min-height: 54px; font-size: 17px; border-radius: 18px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.save-bar .btn svg { width: 19px; height: 19px; }
.save-bar { background: linear-gradient(to bottom, rgba(245,241,234,0), var(--bg) 30%); }
.sheet .pick-pets + *, .save-bar + .sheet-close-btm { margin-top: 6px; }

/* =================== v13 (01:19) =================== */
/* 86 — lignes de « À venir » encore deux fois plus courtes */
/* 87 — la petite flèche sous les portraits */
.hp-go { position: absolute; left: 50%; bottom: -14px; margin: 0; width: 38px; transform: translateX(-50%); animation: goHint2 4.5s ease-in-out 2s infinite; }
.hp:active .hp-go, .hp:hover .hp-go { transform: translateX(calc(-50% + 5px)); }
@keyframes goHint2 { 0%, 70%, 100% { transform: translateX(-50%); } 80% { transform: translateX(calc(-50% + 5px)); } 90% { transform: translateX(calc(-50% + 1px)); } }
.stage.n3 .p1 .hp-go { left: 58%; }
.stage.n3 .p2 .hp-go { left: 44%; }
.hp-art { overflow: visible; }
/* 88 — observations positives d'abord */
.quick-obs .chip.good.on { background: color-mix(in srgb, var(--green) 12%, #fff); border-color: var(--green); color: var(--green); }
.watch { margin-top: 10px; }
.watch summary { list-style: none; display: inline-block; font-size: 14px; font-weight: 600; color: var(--muted); padding: 4px 2px; cursor: pointer; }
.watch summary::-webkit-details-marker { display: none; }
.watch[open] summary { margin-bottom: 6px; }
.watch .chip { font-size: 14px; }
/* 89 — « Voir le suivi » : plus discret (fini le foncé) */
.c-cta:not(.f-next), .aa-main { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 6px 16px -14px rgba(31,42,44,.45); }
.c-cta:not(.f-next) span svg, .aa-main svg { color: var(--green); }
.c-cta:not(.f-next) > svg { color: var(--muted); }
/* 90 — plus de hauteur pour les portraits (oreilles entières) */
.stage { height: 388px !important; }
.stage.n3 .p0 .hp-art { top: 0; }
.stage.n3 .p1 .hp-art, .stage.n3 .p2 .hp-art { top: 40px; bottom: 96px; }
.watch summary { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px 7px 14px; border-radius: 999px; background: color-mix(in srgb, var(--hot) 7%, #fff); color: color-mix(in srgb, var(--hot) 75%, var(--ink)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hot) 20%, transparent); }
.watch summary svg { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .2s; }
.watch[open] summary svg { transform: rotate(-90deg); }

/* =================== v14 (01:26) =================== */
.from-field label { display: inline-flex !important; align-items: center; gap: 6px; }
.from-field label svg { width: 14px; height: 14px; }
.from-field .input { background: color-mix(in srgb, var(--green) 6%, #fff); }
.ev-report .btn { margin-top: 10px; }
.ev-report .ev-from + .btn, .ev-report .doc + .btn { margin-top: 12px; }

/* =================== v15 (01:55) =================== */
.av-title i { width: 11% !important; }   /* 94 — lignes « À venir » plus courtes (à l'essai) */
.ai-note { display: flex; gap: 8px; align-items: flex-start; }
.ai-note svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; color: var(--plum); }

/* =================== v16 (02:05) =================== */
/* 96 — vrais boutons ronds sous les noms (la porte d'entrée vers carnets et suivis) */
.hp-go { display: none !important; }
.hp-btn { display: grid; place-items: center; width: 46px; height: 46px; margin-top: 9px; border-radius: 999px; background: var(--c); color: #fff;
  box-shadow: 0 10px 20px -10px var(--c), 0 0 0 5px color-mix(in srgb, var(--c) 14%, transparent); transition: transform .2s; animation: btnPulse 3.6s ease-in-out 1.5s infinite; }
.hp-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hp:active .hp-btn { transform: scale(.92); }
@keyframes btnPulse { 0%, 100% { box-shadow: 0 10px 20px -10px var(--c), 0 0 0 5px color-mix(in srgb, var(--c) 14%, transparent); }
  50% { box-shadow: 0 10px 20px -10px var(--c), 0 0 0 10px color-mix(in srgb, var(--c) 6%, transparent); } }
.stage.n3 .p0 .hp-btn { align-self: center; }
.stage.n3 .p2 .hp-btn, .stage.n2 .p1 .hp-btn, .stage.n1 .hp-btn { align-self: flex-end; }
/* moins d'espace au-dessus des portraits, plus de place pour les boutons */
.stage { margin-top: 30px !important; height: 430px !important; }
.stage.n3 .p0 .hp-art { top: 0; bottom: 118px; }
.stage.n3 .p1 .hp-art, .stage.n3 .p2 .hp-art { top: 52px; bottom: 150px; }
.stage.n3 .p1 .hp-info, .stage.n3 .p2 .hp-info { bottom: 6px; }
.stage.n3 .p0 .hp-info { bottom: 6px; }
.stage.n2 .hp-art { bottom: 112px; }
.stage.n1 .hp-art { bottom: 112px; }
/* 98 — « Voir le suivi » : coloré, avec le même bouton rond */
.c-go { background: color-mix(in srgb, var(--c) 10%, #fff) !important; color: color-mix(in srgb, var(--c) 80%, var(--ink)) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent) !important; padding: 9px 9px 9px 18px !important; }
.c-go span svg { color: var(--c) !important; }
.go-round { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; background: var(--c); color: #fff; box-shadow: 0 8px 16px -10px var(--c); }
.go-round svg { width: 20px !important; height: 20px !important; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.aa-main { background: var(--c) !important; color: #fff !important; box-shadow: 0 10px 20px -12px var(--c) !important; }
.aa-main svg { color: #fff !important; }
/* 96b — tout tient dans l'écran : logo un peu plus petit, scène plus compacte, fondu plus court */
.stage { margin-top: 10px !important; height: 384px !important; }
.stage.n3 .p0 .hp-art { top: 0; bottom: 112px; }
.stage.n3 .p1 .hp-art, .stage.n3 .p2 .hp-art { top: 40px; bottom: 138px; }
body::after { height: calc(132px + var(--safe-b)); background: linear-gradient(to bottom, rgba(245,241,234,0) 0%, rgba(245,241,234,.7) 18%, var(--bg) 34%); }

/* =================== v17 (02:20) =================== */
/* 99 — rdv : catégories aux couleurs de l'agenda */
.sheet .pick .chip.k-rdv { --kc: var(--green); } .sheet .pick .chip.k-asap { --kc: var(--rose); } .sheet .pick .chip.k-a-faire { --kc: var(--blue); }
.sheet .pick .chip.k-traitement { --kc: var(--plum); } .sheet .pick .chip.k-attente { --kc: var(--amber); }
.sheet .pick .chip[class*="k-"] { border-color: color-mix(in srgb, var(--kc) 35%, transparent); color: color-mix(in srgb, var(--kc) 85%, var(--ink)); }
.sheet .pick .chip[class*="k-"][aria-pressed="true"] { background: var(--kc); border-color: var(--kc); color: #fff; }
/* 105 — « Voir le suivi » : option B, plein couleur */
.c-go { background: var(--c) !important; color: #fff !important; box-shadow: 0 12px 24px -14px var(--c) !important; }
.c-go span svg { color: #fff !important; }
.c-go .go-round { background: #fff; color: var(--c); box-shadow: none; }
/* 106 — accueil : logo d'origine, plus d'air après le titre, scène plus haute, Spyke plus grand et élancé */
.stage { margin-top: 48px !important; height: 470px !important; }
.stage.n3 .p0 .hp-art { top: 0; bottom: 150px; }
.stage.n3 .p1 { width: 62% !important; left: -16% !important; }
.stage.n3 .p1 .hp-art { top: 6px; bottom: 150px; }
.stage.n3 .p2 .hp-art { top: 92px; bottom: 150px; }
.stage.n3 .p1 .hp-info { left: calc(26% + 18px) !important; bottom: 10px; }
.stage.n3 .p2 .hp-info { bottom: 10px; }
.stage.n3 .p0 .hp-info { bottom: 10px; }
.c-go { margin-top: 18px !important; }

/* =================== v18 (02:37) — finir l'accueil =================== */
/* zone portraits + boutons plus haute ; rien n'est coupé en hauteur (on ne rogne qu'à gauche/droite) */
.stage { margin-top: 32px !important; height: 530px !important; overflow-x: clip !important; overflow-y: visible !important; contain: none !important; }
.stage.n3 .p0 .hp-art { top: 0; bottom: 176px; }
.stage.n3 .p1 { width: 60% !important; left: -15% !important; }
.stage.n3 .p1 .hp-art { top: 0; bottom: 176px; }
.stage.n3 .p2 .hp-art { top: 104px; bottom: 176px; }
.stage.n3 .p0 .hp-info, .stage.n3 .p1 .hp-info, .stage.n3 .p2 .hp-info { bottom: 24px; }
.stage.n2 .hp-art, .stage.n1 .hp-art { bottom: 176px; }
.stage.n2 .hp-info, .stage.n1 .hp-info { bottom: 24px; }

/* =================== v19 (02:46) — boutons ronds encore plus grands =================== */
.hp-btn { width: 62px; height: 62px; margin-top: 12px; }
.hp-btn svg { width: 30px; height: 30px; stroke-width: 2.4; }
@keyframes btnPulse { 0%, 100% { box-shadow: 0 12px 24px -10px var(--c), 0 0 0 6px color-mix(in srgb, var(--c) 15%, transparent); }
  50% { box-shadow: 0 12px 24px -10px var(--c), 0 0 0 13px color-mix(in srgb, var(--c) 6%, transparent); } }
.stage.n3 .p0 .hp-art, .stage.n3 .p1 .hp-art, .stage.n3 .p2 .hp-art, .stage.n2 .hp-art, .stage.n1 .hp-art { bottom: 190px; }
.stage { height: 546px !important; }

/* =================== v20 (02:50) — Sacha au premier plan =================== */
.stage.n3 .p0 { left: 13% !important; width: 74% !important; z-index: 3; }
.stage.n3 .p0 .hp-art { top: 56px; bottom: 140px; }
.stage.n3 .p1 .hp-art { top: 0; bottom: 222px; }
.stage.n3 .p2 .hp-art { top: 96px; bottom: 222px; }
.stage.n3 .p0 .hp-info { bottom: 16px; }
.stage.n3 .p1 .hp-info, .stage.n3 .p2 .hp-info { bottom: 84px; }
.stage.n3 .p1 { width: 66% !important; left: -19% !important; }
.stage.n3 .p1 .hp-info { left: calc(29% + 14px) !important; }
.stage.n3 .p1 { width: 63% !important; left: -14% !important; }
.stage.n3 .p1 .hp-info { left: calc(23% + 14px) !important; }
.stage.n3 .p2 { width: 47% !important; right: -9% !important; }
.stage.n3 .p2 .hp-art { top: 124px; bottom: 222px; }
.stage.n3 .p2 .hp-info { right: calc(19% + 14px) !important; }

/* =================== v21 (03:02) — Sacha : fond plein invisible, un peu plus petit ; espacements =================== */
/* silhouette couleur crème du fond, exactement derrière le dessin : le bord des portraits des chats ne se voit plus à travers */
.hp-art .hp-sil { position: absolute; inset: 0; filter: none !important; pointer-events: none; }
.hp-art .hp-sil + img { position: relative; z-index: 1; }
.stage.n3 .p0 { left: 17% !important; width: 66% !important; }
.stage.n3 .p0 .hp-art { top: 56px; bottom: 146px; }
/* moins d'espace après le titre */
.stage { margin-top: 18px !important; }
/* plus d'espace entre le nom et le bouton rond */
.hp-btn { margin-top: 20px; }
.home-sec { margin-top: 50px; }   /* moins d'espace avant « À venir » (était 78) */

/* =================== v22 (03:14) — chats juste derrière Sacha ; Spyke un peu plus petit =================== */
/* ligne des chats descendue de 40 px (portraits + noms + boutons) : moins loin derrière Sacha */
.stage.n3 .p1 .hp-art { top: 0; bottom: 182px; }
.stage.n3 .p2 .hp-art { top: 124px; bottom: 182px; }
.stage.n3 .p1 .hp-info, .stage.n3 .p2 .hp-info { bottom: 44px; }
/* Spyke ~8 % plus petit, même centre */
.stage.n3 .p1 { width: 58% !important; left: -11.5% !important; }
.stage.n3 .p1 .hp-info { left: calc(20% + 14px) !important; }

/* =================== v23 (03:17) — moins d'espace sous le titre =================== */
/* les chats ayant descendu, l'espace titre → portraits était devenu trop grand : tout remonte de ~48 px, tailles inchangées */
.stage { margin-top: 10px !important; height: 506px !important; }
.stage.n3 .p0 .hp-art { top: 16px; }
.stage.n3 .p2 .hp-art { top: 84px; }

/* =================== v24 (03:28) — Carnet : « En bref » comme les cartes du dessous ; taches hors du portrait =================== */
/* même bout de carte coloré : grande icône dans le coin, titre à côté */
.c-bref { position: relative; overflow: hidden; border-radius: 26px; padding: 0 20px 18px; margin-top: 16px;
  box-shadow: 0 1px 2px rgba(31,42,44,.04), 0 14px 34px -20px rgba(31,42,44,.22); }
.c-bref .c-head { margin: 0 -20px 8px; }
.c-bref .facts { padding: 4px 0 0; gap: 12px; }
/* les taches d'aquarelle (décor) sont percées à la forme de l'animal par decoMask() : rien ne passe sur le portrait */
.c-deco { -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }

/* =================== v25 (03:41) — Carnet : fond opaque, icônes encadrées, encadrés couleur animal, documents-boutons, praticiens =================== */
/* 1 — fond opaque derrière le portrait (silhouette couleur du fond), comme à l'accueil */
.c-deco { -webkit-mask: none !important; mask: none !important; }
.c-art .c-sil { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: right bottom; transform: translateX(14%); }
.c-art .c-sil + img { position: relative; z-index: 1; }

/* 2 — « En bref » : icônes des points encadrées (sans remplissage), même forme que l'icône de section */
.c-bref .fact { align-items: center; gap: 12px; }
.c-bref .fact > svg { box-sizing: border-box; flex: none; width: 36px; height: 36px; padding: 8px; margin: 0; border-radius: 12px;
  border: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent); color: var(--c); background: none; }

/* 3 — plus de zones beiges : encadrés à la couleur de l'animal, légèrement teintés */
.c-sec .c-note { margin: 14px 0 0; border-radius: 16px; padding: 12px 14px; background: color-mix(in srgb, var(--c) 6%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 28%, transparent); }
.c-sec .c-watch { margin: 6px 0 0; border-radius: 16px; overflow: hidden; background: color-mix(in srgb, var(--c) 6%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 28%, transparent); }
.c-sec .c-watch-i { background: none; padding: 12px 16px; border-top: 1px solid color-mix(in srgb, var(--c) 16%, transparent); }
.c-sec .c-watch-i:first-child { border-top: 0; }
.c-sec .c-watch-i::before { background: var(--c); opacity: .55; }

/* 4 — documents à consulter : de vrais boutons */
.c-sec .c-doc, .c-sec > .c-doc:last-child, .c-sec .c-treat:last-child .c-doc:last-child { margin: 12px 0 0; padding: 0; background: none; border-radius: 0; }
.c-doc .docrow { width: 100%; padding: 10px 12px; border-radius: 16px; border: 0; text-align: left;
  background: color-mix(in srgb, var(--c) 7%, #fff); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 38%, transparent), 0 8px 16px -12px var(--c); transition: transform .15s; }
.c-doc .docrow:active { transform: scale(.98); }
.c-doc .docrow .doc-title { color: color-mix(in srgb, var(--c) 80%, var(--ink)); font-weight: 600; }
.c-doc .docrow .chev { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--c); color: #fff; flex: none; }
.c-doc .docrow .chev svg { width: 16px; height: 16px; }
.c-doc + .c-doc { margin-top: 8px !important; }

/* 5 — praticiens : une carte chacun·e, actif·ve en couleur, sinon grisé */
.pro-cards { display: grid; gap: 10px; margin-top: 6px; }
.pro-card { position: relative; padding: 12px 14px 12px; border-radius: 18px; background: color-mix(in srgb, var(--c) 6%, #fff);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 35%, transparent); transition: opacity .25s, filter .25s, background .25s; }
.pro-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pro-disc { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.pro-name { display: block; margin-top: 4px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.pro-place { display: block; margin-top: 1px; font-size: 14px; color: var(--muted); line-height: 1.35; }
.pro-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.pro-last { font-size: 14px; color: var(--ink-2); }
.pro-last b { font-weight: 600; }
.pro-acts { display: flex; gap: 8px; }
.pro-act { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; background: var(--c); color: #fff; box-shadow: 0 8px 14px -10px var(--c); }
.pro-act svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* interrupteur Actif */
.pro-sw { display: inline-flex; align-items: center; gap: 8px; padding: 2px 0; background: none; border: 0; font: inherit; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
.pro-sw i { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #d9d4cb; transition: background .2s; }
.pro-sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.pro-sw[aria-checked="true"] { color: var(--c); }
.pro-sw[aria-checked="true"] i { background: var(--c); }
.pro-sw[aria-checked="true"] i::after { transform: translateX(16px); }
/* pas actif·ve : grisé (l'interrupteur reste net pour pouvoir le réactiver) */
.pro-card.off { background: #faf9f6; box-shadow: inset 0 0 0 1px var(--line); }
.pro-card.off .pro-disc, .pro-card.off .pro-name, .pro-card.off .pro-place, .pro-card.off .pro-last { color: var(--muted); filter: grayscale(1); opacity: .8; }
.pro-card.off .pro-name { font-weight: 500; }
.pro-card.off .pro-act { background: #fff; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.c-doc .docrow .doc-title, .c-doc .docrow .doc-sub { white-space: normal; overflow: visible; text-overflow: clip; }   /* titres en entier, sur 2 lignes si besoin */

/* =================== v26 (03:54) — valeurs hautes couleur animal ; « En bref » icônes liées au bord ; fond opaque page Suivi =================== */
/* 1 — Analyses : plus d'ambre/beige pour les valeurs hautes → encadré couleur de l'animal, mention « haut » gardée */
.c-sec .labs-v2 .lab.hi { background: color-mix(in srgb, var(--c) 7%, #fff); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 38%, transparent); }
.c-sec .labs-v2 .lab i { color: var(--c); }
.c-sec .c-flag { color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); }
/* 2 — « En bref » : plus d'encadré autour des icônes ; chaque icône dans une case collée au bord gauche de la carte (même largeur et teinte que l'icône de section) */
.c-bref { padding-bottom: 0; }
.c-bref .facts { margin: 0 -20px; padding: 0; gap: 2px; }
.c-bref .fact { align-items: stretch; gap: 0; min-height: 52px; }
.c-bref .fact > svg { box-sizing: border-box; align-self: stretch; width: 60px; height: auto; min-height: 52px; padding: 0 19px; margin: 0;
  border: 0; border-radius: 0; background: var(--c-l); color: var(--c); }
.c-bref .fact > span { align-self: center; padding: 10px 20px 10px 14px; }
.c-bref .fact:last-child > svg { border-radius: 0 0 0 26px; }
.c-bref .fact:last-child > span { padding-bottom: 14px; }
/* 3 — page Suivi : fond opaque derrière l'illustration (silhouette couleur du fond), comme au carnet */
.f-art .f-sil { filter: none; }
.f-art .f-sil + img { z-index: 1; }

/* =================== v27 (04:02) — « En bref » cadre ouvert sur le bord ; praticiens inactifs = juste plus pâles ; chiffres du haut couleur animal =================== */
/* 1 — « En bref » : cadre fin sans remplissage, haut comme le texte, ouvert à gauche = collé au bord de la carte */
.c-bref { padding-bottom: 18px; }
.c-bref .facts { margin: 0 -20px; padding: 2px 0 0; gap: 12px; }
.c-bref .fact { align-items: stretch; gap: 0; min-height: 0; }
.c-bref .fact > svg, .c-bref .fact:last-child > svg { box-sizing: border-box; align-self: stretch; width: 60px; height: auto; min-height: 38px; padding: 0 19px; margin: 0;
  background: none; color: var(--c); border: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent); border-left: 0; border-radius: 0 14px 14px 0; }
.c-bref .fact > span, .c-bref .fact:last-child > span { align-self: center; padding: 0 20px 0 14px; }
/* 2 — praticien pas actif : même carte, simplement plus pâle (l'interrupteur reste net) */
.pro-card.off { background: color-mix(in srgb, var(--c) 6%, #fff); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 35%, transparent); }
.pro-card.off .pro-disc, .pro-card.off .pro-name, .pro-card.off .pro-place, .pro-card.off .pro-last { color: inherit; filter: none; opacity: 1; }
.pro-card.off .pro-disc { color: var(--c); }
.pro-card.off .pro-place { color: var(--muted); }
.pro-card.off .pro-name { font-weight: 600; }
.pro-card.off .pro-act { background: var(--c); color: #fff; box-shadow: 0 8px 14px -10px var(--c); }
.pro-card.off .pro-disc, .pro-card.off .pro-name, .pro-card.off .pro-place, .pro-card.off .pro-foot { opacity: .45; }
.pro-card.off { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 18%, transparent); background: color-mix(in srgb, var(--c) 3%, #fff); }
/* 3 — en haut du carnet : Âge / Poids / À venir à la couleur de l'animal (plus de gris mélangé) */
.carnet .c-stat small { color: var(--c); }
.carnet .c-stat span { color: color-mix(in srgb, var(--c) 55%, var(--ink)); }

/* =================== v28 (04:04) — barre de menu du bas plus grande (barre, textes, icônes, bouton +) =================== */
.tabbar { width: calc(100% - 28px); max-width: calc(var(--col) - 28px); height: 82px; padding: 0 8px; grid-template-columns: 1fr 1fr 86px 1fr 1fr; }
.tab, .tabbar .tab span { font-size: 14px; }
.tab { gap: 4px; }
.tab svg { width: 28px; height: 28px; }
.tab-plus { width: 66px; height: 66px; }
.tab-plus svg { width: 31px; height: 31px; }
.toast { bottom: calc(112px + var(--safe-b)); }
body::after { height: calc(132px + var(--safe-b)); }
.app { padding-bottom: calc(122px + var(--safe-b)); }   /* place pour la barre agrandie */

/* =================== v29 (04:16) — vraie barre de menu fixée en bas ; tout plus grand en mobile ; « À venir » cliquable =================== */
/* 1 — barre collée au bas du téléphone (fond jusque sous la barre de geste), bouton + qui dépasse */
.tabbar { left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: var(--col);
  height: calc(70px + var(--safe-b)); padding: 0 8px var(--safe-b); border-radius: 24px 24px 0 0;
  grid-template-columns: 1fr 1fr 92px 1fr 1fr; align-items: center;
  background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: 0 -1px 0 rgba(31,42,44,.08), 0 -10px 30px -18px rgba(31,42,44,.35); }
body::after { display: none; }
.tab { justify-content: center; min-height: 56px; gap: 4px; }
.tab, .tabbar .tab span { font-size: 13px; }
.tab svg { width: 28px; height: 28px; }
.tab-plus { width: 70px; height: 70px; transform: translateY(-24px); box-shadow: 0 0 0 6px #fff, 0 12px 22px -8px rgba(61,122,94,.75); }
.tab-plus:active { transform: translateY(-24px) scale(.93); }
.tab-plus svg { width: 32px; height: 32px; }
.app { padding-bottom: calc(104px + var(--safe-b)); }
.toast { bottom: calc(96px + var(--safe-b)); }

/* 2 — tout ce qui se touche fait au moins 44 × 44 */
.topbar-spacer, .icon-btn, .acct-btn { width: 44px; height: 44px; }
.close-btn, .pro-tel, .pro-act { width: 44px; height: 44px; }
.pro-act svg { width: 20px; height: 20px; }
.ev-n-del { width: 44px; height: 44px; right: 0; }
.chip { min-height: 44px; padding: 10px 16px; }
.pro-sw { min-height: 44px; }
.c-doc .docrow { min-height: 60px; }
.c-doc .docrow .chev { width: 34px; height: 34px; }
.ev-chev, .ag-chev { width: 34px; height: 34px; }
.mini { width: 28px; height: 28px; }

/* 3 — tuile « À venir » cliquable (carnet + en-tête du suivi) */
.c-stat-go { position: relative; display: block; color: inherit; text-decoration: none; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 40%, transparent), var(--shadow); transition: transform .15s; }
.c-stat-go:active { transform: scale(.96); }
.c-stat-go small { color: var(--c); }
.c-stat-go span { color: color-mix(in srgb, var(--c) 55%, var(--ink)); }
.c-stat-arr { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; background: var(--c); color: #fff; }
.c-stat-arr svg { width: 13px; height: 13px; stroke-width: 2.4; }
.f-head .f-up { flex: none; width: 112px; padding: 12px 10px 11px; border-radius: 20px; background: #fff; text-align: center; align-self: flex-end; }

/* =================== v30 (04:23) — retour à la barre-pilule flottante (style précédent) en version grande ; « À venir » sans encadré ni flèche =================== */
.tabbar { bottom: calc(12px + var(--safe-b)); width: calc(100% - 20px); max-width: calc(var(--col) - 20px);
  height: 80px; padding: 0 6px; border-radius: 999px; grid-template-columns: 1fr 1fr 82px 1fr 1fr;
  background: rgba(255, 255, 255, .66); -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), 0 0 0 1px rgba(31,42,44,.06), 0 18px 40px -14px rgba(31,42,44,.38), 0 2px 6px -2px rgba(31,42,44,.08); }
body::after { display: block; height: calc(130px + var(--safe-b)); }
.tab { min-height: 0; gap: 4px; }
.tab, .tabbar .tab span { font-size: 13px; }
.tab svg { width: 28px; height: 28px; }
.tab-plus { width: 64px; height: 64px; transform: none; box-shadow: 0 8px 18px -6px rgba(61, 122, 94, .7); }
.tab-plus:active { transform: scale(.93); }
.tab-plus svg { width: 30px; height: 30px; }
.app { padding-bottom: calc(120px + var(--safe-b)); }
.toast { bottom: calc(108px + var(--safe-b)); }
/* « À venir » : cliquable, mais même aspect que les autres cases (pas de contour couleur, pas de flèche) */
.c-stat-go { box-shadow: var(--shadow); }
.c-stat-arr { display: none; }

/* =================== v31 (04:27) — textes agrandis : titres sur 2 lignes au lieu d'être coupés par « … » =================== */
.notif-title, .notif-text, .rdoc .doc-title, .doc .doc-title, .docrow .doc-title { white-space: normal; overflow: hidden; text-overflow: clip;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }

/* =================== v32 (04:31) — menu encore plus grand (pilule gardée) =================== */
.tabbar { bottom: calc(10px + var(--safe-b)); width: calc(100% - 16px); max-width: calc(var(--col) - 16px); height: 92px; padding: 0 4px; grid-template-columns: 1fr 1fr 88px 1fr 1fr; }
.tab { gap: 5px; }
.tab, .tabbar .tab span { font-size: 14px; letter-spacing: -.01em; }
.tab svg { width: 32px; height: 32px; }
.tab-plus { width: 74px; height: 74px; }
.tab-plus svg { width: 34px; height: 34px; }
body::after { height: calc(140px + var(--safe-b)); }
.app { padding-bottom: calc(130px + var(--safe-b)); }
.toast { bottom: calc(116px + var(--safe-b)); }

/* =================== v32 (04:41) — barre-pilule encore plus grande =================== */
.tabbar { bottom: calc(10px + var(--safe-b)); width: calc(100% - 16px); max-width: calc(var(--col) - 16px); height: 94px; padding: 0 4px; grid-template-columns: 1fr 1fr 86px 1fr 1fr; }
.tab { gap: 5px; }
.tab, .tabbar .tab span { font-size: 14px; letter-spacing: -.01em; }
.tab svg { width: 32px; height: 32px; }
.tab-plus { width: 74px; height: 74px; }
.tab-plus svg { width: 34px; height: 34px; }
body::after { height: calc(140px + var(--safe-b)); }
.app { padding-bottom: calc(132px + var(--safe-b)); }
.toast { bottom: calc(118px + var(--safe-b)); }

/* =================== v33 (04:59) — Alimentation : recette de la saison, « Consulter les recettes », en-cas + générateur, confirmations =================== */
.c-eyebrow-s { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c); margin: 2px 0 4px; }
.food-go { margin-top: 12px; }
.snacks { margin-top: 16px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--c) 18%, transparent); }
.snacks-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.snacks-h span { display: inline-flex; align-items: center; gap: 8px; font-size: 16.5px; font-weight: 600; }
.snacks-h span svg { width: 20px; height: 20px; color: var(--c); }
.snacks-h small { font-size: 14px; color: var(--muted); }
.snacks-list { margin-top: 8px; }
.snacks-empty { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.snacks-edit { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; padding: 0 16px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: #fff; color: var(--c); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.snacks-edit svg { width: 18px; height: 18px; }
/* feuille En-cas */
.sn-rows { display: grid; gap: 10px; margin-top: 16px; }
.sn-row { display: grid; gap: 8px; padding: 12px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 30%, transparent); }
.sn-line { display: flex; gap: 8px; align-items: center; }
.sn-qty { width: 58px; flex: none; text-align: center; padding: 0 6px; }
.sn-name { flex: 1; min-width: 0; }
.sn-line select { flex: 1; min-width: 0; height: 48px; padding: 0 10px; -webkit-appearance: none; appearance: none; background: #fff; }
.sn-del { flex: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: none; color: var(--muted); display: grid; place-items: center; }
.sn-del svg { width: 18px; height: 18px; }
.sn-add { margin-top: 12px; }
.sn-text { min-height: 110px; }
.sn-regen { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 6px; padding: 0 4px; border: 0; background: none; color: var(--c); font: inherit; font-size: 15px; font-weight: 500; }
.sn-regen svg { width: 18px; height: 18px; }
/* confirmation Oui / Non */
.confirm-box { margin-top: 16px; padding: 16px; border-radius: 20px; background: color-mix(in srgb, var(--c, var(--green)) 7%, #fff); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c, var(--green)) 35%, transparent); }
.confirm-box p { margin: 0; font-size: 16px; line-height: 1.45; }
.confirm-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.confirm-acts .btn { margin-top: 14px; }
/* fiche recette */
.pick-wrap { margin-top: 14px; }
.pick-btn { margin-top: 0; }
.pick-cur { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 16px; color: var(--c); background: color-mix(in srgb, var(--c) 8%, #fff); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 35%, transparent); font-size: 15.5px; }
.pick-cur svg { width: 20px; height: 20px; flex: none; }
.pick-cur b { font-weight: 600; }

/* =================== v34 (05:09) — récap recette : Consulter l'original / toutes les recettes / Attribuer (date) / Voir le suivi =================== */
.pick-date-l { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 16px; font-weight: 600; }
.pick-date-l .input { width: auto; flex: 1; max-width: 200px; }
.btn.ghost.see-suivi, .btn.ghost.all-rec { text-decoration: none; }
.btn.ghost.see-suivi { color: var(--c); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 45%, transparent); background: #fff; }

/* v35 — En-cas : une ligne par en-cas + petit crayon ; fréquence choisie + précision ; pesée de saison */
.snacks-h { align-items: center; }
.snacks-h small { margin-left: auto; }
.sn-plus { flex: none; width: 44px; height: 44px; margin: -6px -8px -6px 0; border: 0; border-radius: 999px; background: none; color: var(--c); display: grid; place-items: center; }
.sn-plus svg { width: 22px; height: 22px; }
.sn-items { margin-top: 6px; }
.sn-item { position: relative; padding: 12px 48px 12px 0; border-top: 1px solid color-mix(in srgb, var(--c) 12%, transparent); }
.sn-item:first-child { border-top: 0; }
.sn-f { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.sn-kind { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.sn-lab { font-size: 14px; color: var(--muted); }
.sn-lab::before { content: "· "; }
.sn-what { margin-top: 3px; font-size: 17px; line-height: 1.35; }
.sn-pen { position: absolute; top: 50%; transform: translateY(-50%); right: -8px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: none; color: var(--muted); display: grid; place-items: center; }
.sn-pen svg { width: 17px; height: 17px; }
.sn-pen:active, .sn-plus:active { background: color-mix(in srgb, var(--c) 10%, transparent); }
.sn-kinds { display: flex; gap: 8px; margin-bottom: 10px; }
.sn-k { flex: 1; min-height: 44px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--c) 35%, transparent); background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; }
.sn-k.on { background: var(--c); border-color: var(--c); color: #fff; }
.sn-hint { margin-top: 6px; font-size: 14px; color: var(--muted); }
.sn-rm { margin-top: 14px; }
.ev-kg.input { flex: none; width: 110px; padding: 0 12px; font-size: 20px; text-align: center !important; }
.ev-weigh .ev-row { align-items: center; }
.ev-kg-u { font-size: 17px; color: var(--muted); }

/* ===== v36 — « + » en arbre : une question à la fois (21.11) ===== */
.wz-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.wz-back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 14px 0 6px; border: 0; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.wz-back svg { width: 18px; height: 18px; transform: rotate(180deg); }
.wz-dots { display: flex; justify-content: center; gap: 6px; }
.wz-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--line); transition: width .25s, background .25s; }
.wz-dots i.past { background: color-mix(in srgb, var(--ink) 35%, var(--line)); }
.wz-dots i.on { width: 22px; background: var(--ink); }
.wz-ctx { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 8px 12px; border-radius: 14px; background: color-mix(in srgb, var(--ink) 4%, #fff); font-size: 14px; color: var(--ink-2); }
.wz-ctx > svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.wz-ctx > span:not(.av-stack) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.wz-ctx .av-stack { flex: none; }
.wz-q { margin: 26px 2px 4px; font-size: 27px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); animation: wzIn .3s ease both; }
.wz-sub { margin: 0 2px 4px; font-size: 15px; color: var(--muted); line-height: 1.4; }
@keyframes wzIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wz-tiles { display: grid; gap: 10px; margin-top: 18px; animation: wzIn .35s ease both; }
.wz-tile { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 12px 16px 12px 12px; border: 0; border-radius: 22px; background: #fff; text-align: left; font: inherit; color: var(--ink); box-shadow: 0 1px 2px rgba(31,42,44,.05), 0 10px 24px -18px rgba(31,42,44,.4); cursor: pointer; transition: transform .15s; }
.wz-tile:active, .wz-cell:active, .wz-pet:active { transform: scale(.97); }
.wz-ico { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: color-mix(in srgb, var(--k) 13%, #fff); color: var(--k); }
.wz-ico svg { width: 24px; height: 24px; }
.wz-tt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.wz-tt b { font-size: 17.5px; font-weight: 600; letter-spacing: -.01em; }
.wz-tt small { font-size: 14px; color: var(--muted); }
.wz-tile > svg:last-child { width: 18px; height: 18px; color: var(--line); flex: none; }
.wz-other { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wz-other button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: none; font: inherit; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.wz-other svg { width: 17px; height: 17px; color: var(--rose); }
.wz-pets { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 22px; margin-top: 22px; animation: wzIn .35s ease both; }
.wz-block .wz-pets { justify-content: flex-start; gap: 10px 16px; margin-top: 4px; }
.wz-pet { position: relative; display: grid; justify-items: center; gap: 8px; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.wz-pet .av { width: 84px; height: 84px; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line), 0 10px 22px -14px rgba(31,42,44,.55); transition: box-shadow .2s, transform .2s; }
.wz-block .wz-pet .av { width: 58px; height: 58px; filter: grayscale(.35); opacity: .75; }
.wz-pet b { font-size: 16px; font-weight: 600; color: var(--c); }
.wz-block .wz-pet b { font-size: 14px; color: var(--muted); }
.wz-pet i { position: absolute; top: 2px; right: 0; width: 24px; height: 24px; border-radius: 99px; display: grid; place-items: center; background: var(--c); color: #fff; border: 2px solid #fff; transform: scale(0); transition: transform .2s; }
.wz-pet i svg { width: 12px; height: 12px; stroke-width: 3; }
.wz-pet.on .av { box-shadow: 0 0 0 3px var(--c), 0 10px 22px -12px rgba(31,42,44,.55); filter: none; opacity: 1; }
.wz-pet.on b { color: var(--c); }
.wz-pet.on i { transform: scale(1); }
.wz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; animation: wzIn .35s ease both; }
.wz-cell { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 8px 12px 8px 8px; border: 0; border-radius: 18px; background: #fff; font: inherit; text-align: left; box-shadow: 0 1px 2px rgba(31,42,44,.05), 0 8px 20px -16px rgba(31,42,44,.4); cursor: pointer; transition: transform .15s; }
.wz-cell .wz-ico { width: 44px; height: 44px; border-radius: 13px; }
.wz-cell .wz-ico svg { width: 21px; height: 21px; }
.wz-cell b { font-size: 16px; font-weight: 600; color: var(--ink); }
.wz-cell.on { box-shadow: 0 0 0 2px var(--k), 0 8px 20px -16px rgba(31,42,44,.4); }
.wz-cell.t-rapport { --k: var(--green); } .wz-cell.t-facture { --k: var(--blue); } .wz-cell.t-analyse { --k: #6f7f2e; }
.wz-cell.t-ordonnance { --k: var(--plum); } .wz-cell.t-recette { --k: var(--amber); } .wz-cell.t-historique { --k: var(--slate); }
.wz-link { display: block; margin: 16px auto 0; min-height: 44px; padding: 0 16px; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.wz-when { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 18px; }
.wz-when label span { display: block; margin: 0 0 7px 2px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wz-when small, .wz-lab small { font-weight: 400; letter-spacing: 0; text-transform: none; }
.wz-when .input { height: 54px; font-size: 17px; }
.wz-file { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 12px; border-radius: 14px; background: var(--green-l); color: var(--green); font-size: 14px; }
.wz-file svg { width: 16px; height: 16px; }
.wz-file span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-file .wz-link { margin: 0; color: var(--green); }
.wz-sum { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.wz-sum > span:not(.av-stack):not(.wz-ico):not(.pill) { flex: 1; min-width: 0; display: grid; }
.wz-sum b { font-size: 16px; font-weight: 600; }
.wz-sum small { font-size: 14px; color: var(--muted); }
.wz-sum .wz-ico { width: 44px; height: 44px; border-radius: 13px; }
.wz-block { margin-top: 20px; }
.wz-lab { display: block; margin: 0 0 9px 2px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wz-yn { display: flex; gap: 8px; }
.wz-yn.wrap { flex-wrap: wrap; }
.wz-chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 1 1 auto; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.wz-chip svg { width: 16px; height: 16px; }
.wz-chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.wz-panel .wz-chip.on { background: var(--k); border-color: var(--k); }
.wz-hint { margin: 8px 2px 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.wz-kgrow { display: flex; align-items: center; gap: 10px; }
.wz-kgrow span { font-weight: 600; color: var(--muted); }
/* Note rapide : étiquettes au-dessus de la note */
.wz-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.wz-tag { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 15px 0 12px; border: 1px solid color-mix(in srgb, var(--k) 30%, var(--line)); border-radius: 999px; background: #fff; font: inherit; font-size: 15px; font-weight: 600; color: var(--k); cursor: pointer; transition: background .2s, color .2s; }
.wz-tag svg { width: 18px; height: 18px; }
.wz-tag.on { background: var(--k); border-color: var(--k); color: #fff; }
.wz-panel { margin-top: 10px; padding: 12px; border-radius: 18px; background: color-mix(in srgb, var(--k) 7%, #fff); display: flex; flex-wrap: wrap; gap: 6px; animation: wzIn .25s ease both; }
.wz-panel.wz-weigh, .wz-panel:has(.wz-lab) { display: block; }
.wz-word { min-height: 40px; padding: 0 13px; border: 1px solid color-mix(in srgb, var(--k) 25%, var(--line)); border-radius: 999px; background: #fff; font: inherit; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.wz-word.pet { border-color: var(--c); color: var(--c); font-weight: 600; }
.wz-word.used { background: color-mix(in srgb, var(--k) 14%, #fff); border-color: var(--k); color: var(--k); }
.wz-kg { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wz-kg button { width: 52px; height: 52px; border: 0; border-radius: 99px; background: #fff; box-shadow: var(--shadow); font: inherit; font-size: 26px; font-weight: 500; color: var(--k); }
.wz-kg output { font-size: 18px; color: var(--muted); }
.wz-kg output b { font-size: 40px; font-weight: 600; letter-spacing: -.03em; color: var(--k); font-variant-numeric: tabular-nums; }
.wz-weigh input[type="range"] { width: 100%; margin: 14px 0 2px; accent-color: var(--k); height: 32px; }
.wz-weigh .wz-yn { margin-top: 12px; flex-direction: column; }
.wz-ta { margin-top: 12px; min-height: 120px; font-size: 16px; }
.sheet .save-bar .btn[disabled] { opacity: .4; }
/* fiche d'une chose prévue : « Ajouter une info » remplace « C'est fait » */
.ev-add { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; font-size: 17px; border-radius: 18px; }
.ev-add svg { width: 20px; height: 20px; }
.ev-add-hint { margin: 8px 4px 4px; font-size: 14px; color: var(--muted); text-align: center; }

/* ===== v37 — note rapide linéaire + fiches d'agenda allégées (21.11 15:00) ===== */
.wz-lab-top { margin-top: 18px; }
.wz-forwho { margin-top: 14px; }
.wz-forwho .wz-pets { gap: 8px 14px; }
.wz-forwho .wz-pet .av { width: 50px; height: 50px; }
.wz-tags.wz-used { margin-top: 16px; }
.wz-tags.wz-used .wz-tag { min-height: 36px; font-size: 14px; pointer-events: none; }
.wz-tag.closer:not(.on) { background: color-mix(in srgb, var(--k) 9%, #fff); }
.wz-ta { margin-top: 10px; }
.wz-col { display: block; }
.wz-again { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.wz-tags.sm { margin-top: 0; }
.wz-tags.sm .wz-tag { min-height: 40px; font-size: 14px; padding: 0 13px 0 10px; }
.wz-tags.sm .wz-tag svg { width: 16px; height: 16px; }
.wz-pro.on { box-shadow: 0 0 0 2px var(--k), 0 10px 24px -18px rgba(31,42,44,.4); }
.wz-tiles .wz-pro .wz-ico { width: 44px; height: 44px; border-radius: 13px; }
.wz-tiles .wz-pro { min-height: 66px; }

/* fiche d'une chose prévue */
.ev-who { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--muted); }
.ev-who svg { width: 15px; height: 15px; }
.ev-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.ev-acts.three { grid-template-columns: 1fr 1fr 1fr; }
.ev-act { display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 84px; padding: 10px 6px; border: 0; border-radius: 18px; background: #fff; box-shadow: var(--shadow); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center; color: var(--ink); cursor: pointer; transition: transform .15s; }
.ev-act:active { transform: scale(.97); }
.ev-act svg { width: 24px; height: 24px; color: var(--muted); }
.ev-act.main { background: var(--ink); color: #fff; }
.ev-act.main svg { color: #fff; }
.ev-act.on { box-shadow: 0 0 0 2px var(--ink); }
.ev-datebox { margin-top: 10px; padding: 14px; border-radius: 18px; background: color-mix(in srgb, var(--ink) 4%, #fff); animation: wzIn .25s ease both; }
.ev-datebox .btn { width: 100%; margin-top: 10px; }
.ev-datebox .pick-row { margin-bottom: 10px; }
.ev-datebox .ev-switch { margin-top: 12px; }
.ev-donebar { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 12px 14px; border-radius: 16px; background: var(--green-l); color: var(--green); font-weight: 600; }
.ev-donebar svg { width: 18px; height: 18px; }
.ev-donebar span { flex: 1; }
.ev-donebar button { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: underline; min-height: 44px; }
.ev-sec { margin-top: 22px; }
.ev-sec > .block-label { margin-bottom: 8px; }
.ev-sec .ev-n, .ev-sec .ev-from, .ev-sec .doc-row { margin-top: 6px; }
.ev-origin { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 18px; padding: 12px 14px; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: none; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.ev-origin small { flex: none; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ev-origin span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 500; }
.ev-origin em { flex: none; font-style: normal; font-size: 13px; color: var(--muted); }
.ev-origin > svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.ev-histd { margin-top: 14px; font-size: 14px; color: var(--muted); }
.ev-histd summary { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; list-style: none; cursor: pointer; font-weight: 500; }
.ev-histd summary::-webkit-details-marker { display: none; }
.ev-histd summary svg { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .2s; }
.ev-histd[open] summary svg { transform: rotate(-90deg); }
.ev-histd div { padding: 3px 0; }
.ev-histd small { margin-right: 6px; }
.ev-del { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 44px; margin-top: 10px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--rose); }
.ev-del svg { width: 16px; height: 16px; }

/* ===== v38 — plus discret, boutons horizontaux, note rapide en une carte (21.11 15:20) ===== */
/* flèches : fines, sans rond */
.ev-chev, .ag-chev, .per .ev .ev-chev { width: 20px !important; height: 34px !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; color: color-mix(in srgb, var(--ink) 32%, transparent) !important; }
.ev-chev svg, .ag-chev svg { width: 16px !important; height: 16px !important; stroke-width: 1.6; }
/* « dans 2 j » : petites capitales fines en couleur, sans fond */
.ev-delay { padding: 0 !important; background: none !important; font-size: 11.5px !important; font-weight: 500 !important; letter-spacing: .09em; text-transform: uppercase; color: var(--u) !important; line-height: 1.3; }
.ev-delay-pill { background: none !important; border: 0 !important; box-shadow: none !important; padding-left: 4px !important; }
.ev-delay-pill span { font-size: 12px !important; font-weight: 500 !important; letter-spacing: .09em; text-transform: uppercase; }

/* fiche d'agenda : actions horizontales, « consulter » en ligne fine */
.ev-acts { grid-template-columns: 1fr 1fr; }
.ev-act { display: flex !important; align-items: center; justify-content: center; gap: 8px; min-height: 52px !important; padding: 0 12px !important; border-radius: 16px !important; font-size: 15px !important; }
.ev-act svg { width: 19px !important; height: 19px !important; flex: none; }
.ev-consult { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; padding: 12px 4px; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: none; font: inherit; text-align: left; color: var(--ink-2); cursor: pointer; }
.ev-consult > svg:first-child { width: 20px; height: 20px; color: var(--amber); flex: none; }
.ev-consult span { flex: 1; font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.ev-consult em { font-style: normal; font-size: 13px; color: var(--muted); }
.ev-consult > svg:last-child { width: 15px; height: 15px; color: var(--muted); flex: none; }
.ev-consult + .ev-origin { margin-top: 0; border-top: 0; }

/* « Passer » et compagnie : boutons horizontaux discrets */
.wz-skiprow { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.wz-skip { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.wz-skip svg { width: 16px; height: 16px; color: var(--muted); }

/* note rapide : une seule carte — étiquettes, parties ouvertes, note en bas */
.wz-card { margin-top: 16px; padding: 14px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.wz-card .wz-tags { margin-top: 0; }
.wz-tag[aria-pressed="true"] svg { stroke-width: 2.6; }
.wz-part { margin-top: 12px; padding: 12px; border-radius: 16px; background: color-mix(in srgb, var(--k) 6%, #fff); border-left: 3px solid var(--k); animation: wzIn .25s ease both; }
.wz-part-h { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--k); }
.wz-part-h svg { width: 16px; height: 16px; }
.wz-part .wz-words { display: flex; flex-wrap: wrap; gap: 6px; }
.wz-part.wz-weigh { display: block; }
.wz-yn.col { flex-direction: column; margin-top: 12px; }
.wz-part .wz-chip.on { background: var(--k); border-color: var(--k); }
.wz-notearea { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.wz-notearea .wz-ta { margin-top: 0; min-height: 96px; }

/* ===== v38b — filtres en bulles portrait, agenda par soin, Suivi « à voir », contenu direct des documents ===== */
.pet-filter { display: flex; gap: 14px; margin: 14px 0 6px; padding: 4px 2px 6px; overflow-x: auto; scrollbar-width: none; }
.pet-filter::-webkit-scrollbar { display: none; }
.pf { flex: none; display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; --c: var(--ink); }
.pf .av, .pf .pf-all { width: 54px; height: 54px; border: 3px solid #fff; border-radius: 999px; box-shadow: 0 0 0 1.5px var(--line), 0 6px 14px -10px rgba(31,42,44,.5); filter: grayscale(.4); opacity: .7; transition: box-shadow .2s, transform .2s, opacity .2s, filter .2s; }
.pf .pf-all { display: grid; place-items: center; background: #fff; color: var(--muted); }
.pf .pf-all svg { width: 24px; height: 24px; }
.pf b { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.pf[aria-pressed="true"] .av, .pf[aria-pressed="true"] .pf-all { box-shadow: 0 0 0 2.5px var(--c), 0 8px 18px -10px rgba(31,42,44,.55); filter: none; opacity: 1; transform: scale(1.05); }
.pf[aria-pressed="true"] .pf-all { color: var(--ink); }
.pf[aria-pressed="true"] b { color: var(--c); }
.type-filter { margin-top: 4px; }
.type-filter .chip { display: inline-flex; align-items: center; gap: 6px; }
.type-filter .chip svg { width: 15px; height: 15px; }
.f-togo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 4px; padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--c) 9%, #fff); color: var(--c); text-decoration: none; font-size: 15px; font-weight: 500; }
.f-togo b { font-weight: 700; }
.f-togo svg { width: 16px; height: 16px; flex: none; }
.doc-content + .doc-content { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line); }
.dc-who { display: flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.dc-who span + .av { margin-left: 8px; }
.dc-head { margin: 12px 2px 0; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.sheet .ev-consult { margin-top: 18px; }
.doc-insuivi { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; min-height: 44px; margin-top: 6px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; }
.doc-insuivi svg { width: 14px; height: 14px; }

/* ===== v39 — note rapide multi-animaux, filtres = bulles du formulaire, fiche animal (21.11 15:45) ===== */
.pf { position: relative; }
.pf i { position: absolute; top: 34px; right: -2px; width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; background: var(--c); color: #fff; border: 2px solid #fff; transform: scale(0); transition: transform .2s; }
.pf i svg { width: 11px; height: 11px; stroke-width: 3; }
.pf[aria-pressed="true"] i { transform: scale(1); }
.pf .av, .pf .pf-all { width: 58px; height: 58px; }
/* observation / pesée : une entrée par animal */
.wz-entry { position: relative; }
.wz-entry + .wz-entry { margin-top: 12px; padding-top: 12px; border-top: 1px dashed color-mix(in srgb, var(--k) 30%, var(--line)); }
.wz-minipets { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 34px 10px 0; }
.wz-mp { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 3px 12px 3px 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.wz-mp .av.sm { width: 30px; height: 30px; filter: grayscale(.4); opacity: .75; }
.wz-mp.on { border-color: var(--c); color: var(--c); box-shadow: 0 0 0 1px var(--c); }
.wz-mp.on .av.sm { filter: none; opacity: 1; }
.wz-x { position: absolute; top: 0; right: 0; width: 34px; height: 34px; border: 0; border-radius: 99px; background: #fff; display: grid; place-items: center; color: var(--muted); box-shadow: var(--shadow); }
.wz-entry + .wz-entry .wz-x { top: 12px; }
.wz-x svg { width: 15px; height: 15px; }
.wz-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; min-height: 42px; padding: 0 14px; border: 1px dashed color-mix(in srgb, var(--k) 45%, var(--line)); border-radius: 999px; background: #fff; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--k); cursor: pointer; }
.wz-more svg { width: 16px; height: 16px; }
.wz-kg button { color: var(--k); }
.wz-kg output b { color: var(--k); }
.wz-range { width: 100%; margin: 14px 0 2px; height: 32px; }
/* Compte : bulles → modifier la fiche */
button.acct-pet { position: relative; border: 0; background: none; font: inherit; cursor: pointer; padding: 0; }
.acct-edit { position: absolute; top: 40px; right: -4px; width: 24px; height: 24px; border-radius: 99px; display: grid; place-items: center; background: #fff; color: var(--c); box-shadow: 0 2px 6px rgba(31,42,44,.18); }
.acct-edit svg { width: 13px; height: 13px; }
/* fiche animal */
.af-head { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.af-photo { display: grid; justify-items: center; gap: 6px; cursor: pointer; flex: none; }
.af-photo .av { width: 78px; height: 78px; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--c), 0 10px 20px -12px rgba(31,42,44,.5); }
.af-ph { display: grid !important; place-items: center; background: color-mix(in srgb, var(--c) 12%, #fff) !important; color: var(--c); }
.af-ph svg { width: 28px; height: 28px; }
.af-photo small { font-size: 12.5px; color: var(--muted); max-width: 90px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.af-card { padding: 16px; }
.af-f + .af-f { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.af-ac { position: relative; }
.af-sugg { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); max-height: 260px; overflow: auto; padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 14px 34px -12px rgba(31,42,44,.35), 0 0 0 1px var(--line); }
.af-sugg button { display: block; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 16px; text-align: left; color: var(--ink); }
.af-sugg button:active, .af-sugg button:hover { background: var(--bg); }
.af-dots { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.af-dot { display: grid; justify-items: center; gap: 4px; width: 56px; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.af-dot i { width: 38px; height: 38px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(31,42,44,.18), 0 0 0 3px #fff, 0 0 0 4px var(--line); display: grid; place-items: center; transition: box-shadow .2s, transform .2s; }
.af-dot small { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.15; }
.af-dot.on i { box-shadow: inset 0 0 0 1px rgba(31,42,44,.18), 0 0 0 3px #fff, 0 0 0 5px var(--ink); transform: scale(1.05); }
.af-dot.on small { color: var(--ink); font-weight: 600; }
.af-more i { background: #fff; color: var(--muted); }
.af-more i svg { width: 18px; height: 18px; }
.wz-chip.sm { min-height: 40px; font-size: 14px; flex: 0 0 auto; }
.af-shows { display: grid; gap: 8px; }
.af-show { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.af-show span:last-child { display: grid; }
.af-show b { font-size: 15px; font-weight: 600; color: var(--ink); }
.af-show small { font-size: 13.5px; color: var(--muted); }
.af-sw { flex: none; width: 42px; height: 26px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; }
.af-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.af-show.on .af-sw { background: var(--green); }
.af-show.on .af-sw::after { transform: translateX(16px); }
.af-photo small { white-space: normal; max-width: 96px; line-height: 1.2; }

/* ===== v40 — plusieurs à faire / liens, signe lunaire avec l'heure, signes près de l'anniversaire, fiche suivi, recette (21.11 16:00) ===== */
.wz-urlrow { display: flex; align-items: center; gap: 8px; }
.wz-urlrow .wz-x { position: static; flex: none; }
.wz-urlrow + .wz-urlrow { margin-top: 8px; padding-top: 0; border-top: 0; }
.af-showbox { border-radius: 16px; }
.af-showbox.open { background: color-mix(in srgb, var(--plum) 6%, #fff); box-shadow: 0 0 0 1px var(--line); }
.af-showbox.open .af-show { border-color: transparent; background: none; }
.af-moonh { padding: 0 12px 12px 66px; display: grid; gap: 6px; }
.af-moonh label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--plum); }
.af-moonh .input { height: 48px; max-width: 160px; }
.af-moonh small { font-size: 13px; color: var(--muted); line-height: 1.35; }
/* signes : petite ligne fine, en capitales de couleur, sous l'anniversaire */
.c-signs { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; margin-top: 6px; font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--c); opacity: .9; }
.c-signs span { display: inline-flex; align-items: center; gap: 5px; }
.c-signs em { font-style: normal; opacity: .5; }
.sg-glyph { font-style: normal; font-size: 15px; letter-spacing: 0; line-height: 1; font-family: "Segoe UI Symbol", "Apple Symbols", serif; }
.sg-moon svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; display: block; }
/* fiche d'un suivi : un grand titre, des parties bord à bord */
.sv-title { font-size: 23px; line-height: 1.22; }
.sv-part { margin-top: 22px; }
.sv-part h3 { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sv-text { font-size: 16px; line-height: 1.5; color: var(--ink); white-space: pre-wrap; }
.sv-part .dots { margin-top: 8px; }
.sv-task { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 2px; border: 0; border-bottom: 1px solid var(--line-2); background: none; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.sv-task:first-of-type { border-top: 1px solid var(--line-2); }
.sv-dot { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--k) 12%, #fff); color: var(--k); }
.sv-dot svg { width: 17px; height: 17px; }
.sv-task > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.sv-task b { font-size: 15.5px; font-weight: 600; }
.sv-task small { font-size: 13.5px; color: var(--muted); }
.sv-task > svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.sv-task.done b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.sv-recos { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.sv-recos li { display: flex; gap: 8px; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.sv-recos svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--green); }
.sv-part .ev-consult { margin-top: 0; }
.sv-part .ev-consult + .ev-consult { border-top: 0; }
/* recette : une rangée de 3 petits liens couleur animal */
.rec-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; }
.rec-links a, .rec-links button { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0; border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--c); text-decoration: none; cursor: pointer; }
.rec-links svg { width: 15px; height: 15px; }

/* ===== v41 — Ressources : filtres animal / domaine / type bien visibles (21.11 16:30) ===== */
.pet-filter { padding: 7px 8px 8px; margin-left: -8px; margin-right: -8px; scroll-padding-inline: 8px; }
.res-doms, .res-types { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 10px -8px 0; padding: 2px 8px 4px; }
.res-doms::-webkit-scrollbar, .res-types::-webkit-scrollbar { display: none; }
.dchip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, currentColor 30%, transparent); background: color-mix(in srgb, currentColor 6%, #fff); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.dchip:not([class*="d-"]) { color: var(--ink); }
.dchip svg { width: 16px; height: 16px; }
.dchip[aria-pressed="true"] { background: currentColor; border-color: currentColor; }
.dchip[aria-pressed="true"] span, .dchip[aria-pressed="true"] svg { color: #fff; }
.dchip:not([class*="d-"])[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.res-types { gap: 18px; margin-top: 6px; border-bottom: 1px solid var(--line-2); padding-bottom: 0; }
.tchip { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 1px; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
.tchip svg { width: 14px; height: 14px; }
.tchip[aria-pressed="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.res-doms, .res-types { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); padding-right: 36px; }
/* note rapide en étapes */
.wz-tags-big { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wz-tags-big .wz-tag { height: 54px; justify-content: flex-start; padding: 0 14px; font-size: 15.5px; border-radius: 16px; }
.wz-one { padding-top: 4px; }
.wz-one .wz-part { margin-top: 0; padding-top: 0; border-top: 0; }
.wz-one .wz-part-h { font-size: 22px; font-weight: 700; color: var(--ink); gap: 10px; margin-bottom: 16px; }
.wz-one .wz-part-h svg { width: 26px; height: 26px; color: var(--k); }
.wz-recap { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.wz-recap span { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 999px; background: color-mix(in srgb, var(--k) 12%, #fff); color: var(--k); font-size: 13.5px; font-weight: 600; }
.wz-recap svg { width: 14px; height: 14px; }
/* note à cet endroit (traitement, alimentation, milieu de vie) */
.c-notelink { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; min-height: 36px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; text-align: left; }
.c-notelink svg { width: 15px; height: 15px; flex: none; }
.c-notelink span { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.c-treat.paused .c-title, .c-treat.paused .c-list { opacity: .5; }
.c-paused { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 7px; margin-bottom: 8px; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--amber) 12%, #fff); color: var(--amber); font-size: 14px; font-weight: 600; }
.c-paused svg { width: 15px; height: 15px; stroke-width: 2.4; }
.c-paused small { grid-column: 2; color: var(--ink-2); font-weight: 400; font-size: 13.5px; }
.wz-hint svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
/* espèces illustrées */
.af-species { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.af-sp { display: grid; justify-items: center; gap: 4px; padding: 8px 2px 8px; border: 1.5px solid var(--line-2); border-radius: 16px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; transition: border-color .2s, background .2s; }
.af-sp img, .af-sp-o { width: 52px; height: 52px; object-fit: contain; display: grid; place-items: center; filter: saturate(.75); opacity: .85; }
.af-sp-o svg { width: 26px; height: 26px; color: var(--muted); }
.af-sp.on { border-color: var(--c, var(--ink)); background: color-mix(in srgb, var(--c, var(--ink)) 7%, #fff); color: var(--ink); }
.af-sp.on img { filter: none; opacity: 1; }
/* option peinture (petit supplément) */
.paint-opt { display: flex; align-items: center; gap: 12px; width: 100%; margin: 12px 0 4px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 16px; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.paint-opt.on { border-color: var(--plum); background: color-mix(in srgb, var(--plum) 5%, #fff); }
.paint-ico { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--plum) 12%, #fff); color: var(--plum); }
.paint-ico svg { width: 19px; height: 19px; }
.paint-opt > span:nth-child(2) { flex: 1; display: grid; gap: 1px; }
.paint-opt b { font-size: 15px; font-weight: 600; color: var(--ink); }
.paint-opt small { font-size: 13px; color: var(--muted); }
.paint-cost { font-style: normal; font-size: 12px; letter-spacing: .04em; color: var(--plum); }
.paint-opt .af-sw { flex: none; }
.paint-opt.on .af-sw { background: var(--plum); }
.paint-opt.on .af-sw::after { transform: translateX(18px); }
/* profil */
.acct-av-edit { position: relative; cursor: pointer; overflow: visible; }
.acct-av-edit img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; }
.acct-av-edit .acct-edit { position: absolute; right: -2px; bottom: -2px; }
.row-btn { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; color: inherit; display: flex; align-items: center; gap: 8px; }
.row-btn > span:nth-child(2) { margin-left: auto; color: var(--ink-2); }
.row-btn > svg { width: 14px; height: 14px; color: var(--muted); }
/* mes documents */
.dl-where { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--green) 8%, #fff); }
.dl-where > svg { width: 20px; height: 20px; flex: none; color: var(--green); margin-top: 1px; }
.dl-where span { display: grid; gap: 2px; font-size: 14.5px; }
.dl-where small { font-size: 13px; color: var(--ink-2); }
.dl-levels { display: grid; gap: 8px; margin-top: 12px; }
.dl-lv { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 16px; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.dl-lv.on { border-color: var(--ink); box-shadow: 0 6px 16px -12px rgba(31,42,44,.5); }
.dl-ico { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--paper, #f6f3ee); color: var(--ink-2); }
.dl-lv.on .dl-ico { background: var(--ink); color: #fff; }
.dl-ico svg { width: 18px; height: 18px; }
.dl-lv > span:last-child { display: grid; gap: 1px; }
.dl-lv b { font-size: 15.5px; } .dl-lv small { font-size: 13px; color: var(--muted); font-style: italic; } .dl-lv em { font-style: normal; font-size: 13.5px; color: var(--ink-2); line-height: 1.35; margin-top: 2px; }
.dl-sub { margin: 16px 0 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dl-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dl-md { display: grid; gap: 2px; padding: 10px 8px; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; font: inherit; text-align: center; cursor: pointer; }
.dl-md b { font-size: 14px; } .dl-md small { font-size: 12px; color: var(--muted); line-height: 1.25; }
.dl-md.on { border-color: var(--ink); background: var(--ink); } .dl-md.on b, .dl-md.on small { color: #fff; }
.dl-f { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.dl-f > svg { width: 17px; height: 17px; color: var(--amber); flex: none; }
.dl-f span { flex: 1; min-width: 0; }
.dl-f button { border: 0; background: none; color: var(--muted); padding: 6px; cursor: pointer; } .dl-f button svg { width: 14px; height: 14px; }
.dl-st { border-bottom: 1px solid var(--line-2); }
.dl-st summary { display: flex; align-items: center; gap: 10px; min-height: 46px; list-style: none; cursor: pointer; font-size: 15px; font-weight: 500; }
.dl-st summary::-webkit-details-marker { display: none; }
.dl-st summary > svg:first-child { width: 18px; height: 18px; color: var(--blue); }
.dl-st summary span { flex: 1; }
.dl-st summary em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--green); background: color-mix(in srgb, var(--green) 10%, #fff); padding: 3px 9px; border-radius: 999px; }
.dl-st summary > svg:last-child { width: 14px; height: 14px; color: var(--muted); transform: rotate(90deg); transition: transform .2s; }
.dl-st[open] summary > svg:last-child { transform: rotate(-90deg); }
.dl-st p { margin: 0 0 12px 28px; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.dl-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.dl-where b { line-height: 1.3; }
.dl-md { align-content: start; }
.dl-lv { min-height: 92px; }

/* ===== v42 — agenda, cartes, fil d'Ariane, note rapide « toucher = avancer », carnet (21.11 17:15) ===== */
/* (a1) titres de l'agenda : centrés, un seul trait */
.per-h { display: flex !important; align-items: center; justify-content: center; gap: 12px; margin: 26px 0 12px !important; font-size: 13.5px !important; font-weight: 600 !important; letter-spacing: .16em; text-transform: uppercase; color: var(--green) !important; }
.per-h i { flex: 0 0 11%; border-top: 1.5px solid currentColor; opacity: .45; }
.per-h .per-n { order: 0; min-width: 0 !important; height: auto !important; padding: 0 !important; background: none !important; color: inherit !important; font-size: 12px !important; letter-spacing: 0; opacity: .7; margin-left: -6px; }
.per-late .per-h, .per-asap .per-h { color: var(--rose) !important; }
/* (a2) contours de cartes un peu plus nets (agenda, ressources, accueil) */
.ev-list .ev, #resList .rdoc, .home-sec .ev { box-shadow: 0 0 0 1px rgba(31,42,44,.10), 0 3px 10px -6px rgba(31,42,44,.22) !important; }
/* (b1) filtres : jamais de glissade, tout visible */
.pet-filter, .res-doms, .res-types { flex-wrap: wrap !important; overflow: visible !important; -webkit-mask-image: none !important; mask-image: none !important; padding-right: 8px !important; }
.pet-filter { row-gap: 10px; }
.res-types { gap: 4px 16px; }
/* (a4) retour « À faire » en haut à gauche */
.sh-back { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px 0 6px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.sh-back svg { width: 16px; height: 16px; transform: rotate(180deg); }
/* (a5) actions : à l'horizontale, toute la largeur */
.ev-acts { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.ev-acts.three { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.ev-acts.three .ev-act { padding: 0 6px !important; font-size: 14px !important; gap: 6px; }
.ev-acts .ev-act span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-act.doc-open { background: #fff; border: 1.5px solid var(--line) !important; box-shadow: none; }
/* (a3) provenance */
.ev-from-h { margin: 20px 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
/* (a7) animaux avec leur image */
.atag-av { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 3px !important; }
.atag-av .av { width: 26px !important; height: 26px !important; border: 0; box-shadow: none; }
.atag-av .av img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; }
/* (a6) fil d'Ariane */
.crumbs { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; min-width: 0; }
.crumb-back { flex: none; display: inline-flex; align-items: center; gap: 3px; height: 32px; padding: 0 11px 0 5px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.crumb-back svg { width: 15px; height: 15px; transform: rotate(180deg); }
.crumb-path { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; white-space: nowrap; font-size: 13px; color: var(--muted); }
.crumb-path button { border: 0; background: none; padding: 0; font: inherit; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; }
.crumb-path i { font-style: normal; opacity: .6; }
.crumb-path b { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
/* (b2) note rapide */
.wz-part-h { position: relative; }
.wz-untag { position: absolute; right: 0; top: 50%; transform: translateY(-50%); border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wz-more-box { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.wz-mb-l { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wz-mb-l + .wz-recap { margin: 0 0 14px; }
.wz-recap button { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; border: 1.5px solid color-mix(in srgb, var(--k) 35%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--k) 10%, #fff); color: var(--k); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.wz-recap button svg { width: 14px; height: 14px; }
.wz-recap button svg:last-child { width: 12px; height: 12px; opacity: .7; }
/* (b3) carnet : ce qui se touche a un encadré, le reste non */
.c-notelink { margin-top: 14px; height: 36px; padding: 0 14px 0 11px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink) !important; font-weight: 600 !important; }
.c-notelink span { text-decoration: none !important; }
.rec-links a, .rec-links button { height: 36px; padding: 0 13px 0 10px !important; border: 1.5px solid color-mix(in srgb, var(--c) 40%, transparent) !important; border-radius: 999px; background: #fff !important; }
.rec-links { gap: 8px !important; }
.c-tile { background: none !important; border-radius: 0 !important; padding: 8px 0 9px !important; border-bottom: 1px solid var(--line-2); }
.allergy { background: none !important; padding: 10px 0 0 !important; border-radius: 0 !important; }
.c-watch-i { background: none !important; padding: 8px 0 8px 14px !important; border-radius: 0 !important; }
.c-paused { background: none !important; padding: 0 !important; }
.c-doc .docrow { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--c) 30%, transparent); background: #fff !important; }
.c-doc { background: none !important; padding: 0 !important; }
/* (b4) praticiens anciens */
.pro-old { margin-top: 12px; }
.pro-old summary { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pro-old summary::-webkit-details-marker { display: none; }
.pro-old summary svg { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .2s; }
.pro-old[open] summary svg { transform: rotate(-90deg); }
.pro-old .pro-cards { margin-top: 12px; }
/* (b5) espèces : têtes simples, rondes */
.af-sp img { width: 52px; height: 52px; border-radius: 999px; object-fit: cover; filter: none !important; opacity: .9; }
.af-sp.on img { opacity: 1; }
/* (b6) ajouter un animal */
.acct-addpet { display: inline-flex; align-items: center; gap: 5px; margin: 10px auto 0; padding: 6px 10px; border: 0; background: none; font: inherit; font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.acct-addpet svg { width: 12px; height: 12px; }
button.acct-av { border: 0; padding: 0; font: inherit; }
/* signes : petites illustrations à droite de l'anniversaire, couleur de l'animal */
.c-bdayrow { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.c-bdayrow .c-bday { margin-top: 0; }
.c-bdayrow .c-signs { margin: 0; gap: 6px; }
.sg { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sg-img { display: block; width: 26px; height: 26px; background: var(--c); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.sg .sg-glyph { font-size: 17px; color: var(--c); }
.sg-moonw .sg-moon svg { width: 17px; height: 17px; }
/* mes documents */
.dl-sub { display: flex; align-items: center; gap: 8px; }
.dl-sub i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; background: var(--ink); color: #fff; font-style: normal; font-size: 11.5px; letter-spacing: 0; }
.dl-rule { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.dl-rule > svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--green); }
.dl-give { margin-top: 12px; cursor: pointer; }
.dl-tidy { margin-top: 12px; }
.dl-guides { margin-top: 14px; }
.dl-guides summary { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; list-style: none; cursor: pointer; font-size: 14.5px; font-weight: 600; }
.dl-guides summary::-webkit-details-marker { display: none; }
.dl-guides summary > svg:first-child { width: 17px; height: 17px; color: var(--blue); }
.dl-guides summary > svg:last-child { width: 14px; height: 14px; margin-left: auto; color: var(--muted); transform: rotate(90deg); }
.dl-guides[open] summary > svg:last-child { transform: rotate(-90deg); }
.dl-st { padding: 10px 2px; border-bottom: 1px solid var(--line-2); }
.dl-st-h { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.dl-st-h svg { width: 17px; height: 17px; color: var(--blue); }
.dl-st-h em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--green); background: color-mix(in srgb, var(--green) 10%, #fff); padding: 2px 9px; border-radius: 999px; }
.dl-st p { margin: 4px 0 0 25px !important; }
.crumbs { align-items: flex-start; }
.crumb-path { flex-wrap: wrap; white-space: normal; overflow: visible; row-gap: 2px; padding-top: 7px; line-height: 1.35; }
.crumb-path button, .crumb-path b { white-space: nowrap; overflow: visible; }
.sg { width: 44px; height: 44px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 18%, transparent); }
.sg-img { width: 36px; height: 36px; }
.dl-lv { position: relative; padding-right: 40px; }
.dl-lv::after { content: ""; position: absolute; right: 14px; top: 16px; width: 18px; height: 18px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); background: #fff; }
.dl-lv.on::after { box-shadow: inset 0 0 0 5.5px var(--ink); }

/* ===== v43 (21.11 20:15) ===== */
/* signes sans rond */
.sg { width: auto !important; height: auto !important; background: none !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.sg-img { width: 40px !important; height: 40px !important; }
/* en-tête de l'agenda : logo en aquarelle qui habille, peu de place */
.pg-head { position: relative; margin: 6px 0 10px; padding: 14px 0 12px; min-height: 92px; overflow: visible; }
.pg-wash { position: absolute; right: -14px; top: -10px; width: 132px; height: auto; opacity: .9; pointer-events: none; transform: rotate(-6deg); filter: saturate(.9); }
.pg-eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--green); opacity: .85; }
.pg-title { margin: 2px 0 0; font-size: 34px; line-height: 1.05; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.pg-sub { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.pg-sub::before { content: ""; width: 28px; border-top: 1.5px solid var(--green); opacity: .55; }
/* cartes : un peu plus d'ombre pour les décoller du fond */
.ev-list .ev, #resList .rdoc, .home-sec .ev { box-shadow: 0 0 0 1px rgba(31,42,44,.08), 0 8px 22px -12px rgba(31,42,44,.32), 0 2px 5px -3px rgba(31,42,44,.14) !important; }
/* ressources : types en bulles neutres */
.tchip2 { color: var(--ink-2); }
.res-types2 .dchip[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.res-types2 .dchip[aria-pressed="true"] span, .res-types2 .dchip[aria-pressed="true"] svg { color: #fff; }
.res-types2 + .res-doms { margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
/* ===== v44 (21.11 21:15) — fiche tâche & suivi : textes sur fond blanc, carte « Suivi », documents dépliés ===== */
.read-card { margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: 0 6px 18px -14px rgba(31,42,44,.35); }
.read-card.ev-detail { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.sv-part .read-card { margin-top: 0; }
.sv-part .read-card .sv-text { font-size: 15.5px; }
.ev-acts2 { display: grid; gap: 8px; margin-top: 18px; }
.ev-acts2 .ev-act { width: 100%; min-height: 50px !important; justify-content: center; background: #fff !important; border: 1.5px solid var(--line) !important; box-shadow: none !important; border-radius: 16px !important; color: var(--ink); }
.ev-notebtn { width: 100%; margin-top: 8px; min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.ev-notebtn svg { width: 18px; height: 18px; }
.rc-label { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.rc-label svg { width: 15px; height: 15px; }
.rc-title { display: block; font-size: 17.5px; line-height: 1.3; color: var(--ink); }
.rc-sub { margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.rc-text { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.rc-more { margin-top: 10px; }
.rc-more summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.rc-more summary::-webkit-details-marker { display: none; }
.rc-more summary svg { width: 13px; height: 13px; transform: rotate(90deg); }
.rc-more[open] summary svg { transform: rotate(-90deg); }
.rc-more .dots { margin-top: 8px; }
.rc-link, .rc-inline { border: 0; background: none; padding: 0; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink-2) 40%, transparent); text-underline-offset: 3px; cursor: pointer; }
.rc-link { display: inline-block; margin-top: 14px; }
.src-card .dcard { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.src-card .dcard.solo { margin-top: 0; padding-top: 0; border-top: 0; }
.dcard-h { display: flex; align-items: center; gap: 10px; }
.dcard-h .doc-ico { width: 38px; height: 38px; border-radius: 12px; flex: none; }
.dcard-h > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.dcard-h b { font-size: 15.5px; line-height: 1.3; }
.dcard-h small { font-size: 13px; color: var(--muted); }
.dcard-amt { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dcard-sum { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.dcard .c-list { margin-top: 10px; }
.dcard-note { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.dcard-rows { margin-top: 10px; }
.dcard-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 12px; }
.dcard-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 11px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.dcard-btn svg { width: 15px; height: 15px; }
.crumb-back { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* fond du suivi : volutes d'aquarelle */
.f-aqua { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; mix-blend-mode: multiply; opacity: .85; }
.f-stage .c-deco { z-index: 1; }
.f-stage .f-art { z-index: 2; }
/* photo de l'animal : plus visible + fenêtre de choix */
.af-photo { border: 0; background: none; padding: 0; font: inherit; }
.af-photo .av { width: 92px !important; height: 92px !important; }
.af-photo .av img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; }
.af-ph { border: 2px dashed color-mix(in srgb, var(--c) 55%, transparent) !important; box-shadow: none !important; background: color-mix(in srgb, var(--c) 8%, #fff) !important; color: var(--c) !important; }
.af-ph svg { width: 30px; height: 30px; }
.af-photo small { font-size: 13.5px !important; font-weight: 600; color: var(--c) !important; max-width: 110px !important; }
.pk-choices { display: grid; gap: 10px; }
.pk-choice { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--line); border-radius: 18px; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.pk-choice:active { transform: scale(.99); }
.pk-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--plum) 12%, #fff); color: var(--plum); }
.pk-choice:nth-child(2) .pk-ico { background: color-mix(in srgb, var(--blue) 12%, #fff); color: var(--blue); }
.pk-ico svg { width: 22px; height: 22px; }
.pk-choice > span:last-child { display: grid; gap: 3px; }
.pk-choice b { font-size: 16.5px; } .pk-choice small { font-size: 14px; color: var(--ink-2); line-height: 1.4; } .pk-choice em { font-style: normal; font-size: 12.5px; color: var(--plum); letter-spacing: .03em; }
.pk-tips { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.pk-tips li { display: flex; gap: 8px; font-size: 15px; color: var(--ink-2); }
.pk-tips svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--green); }
.pk-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pk-th { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #fff; }
.pk-th img { width: 100%; height: 100%; object-fit: cover; }
.pk-th button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 999px; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; }
.pk-th button svg { width: 14px; height: 14px; }
.pk-add { display: grid; place-items: center; align-content: center; gap: 4px; border: 2px dashed var(--line); cursor: pointer; color: var(--muted); }
.pk-add svg { width: 22px; height: 22px; }
.pk-cost { display: flex; gap: 6px; align-items: center; margin: 14px 0 0; }
.pk-cost svg { width: 14px; height: 14px; }
.pk-srcs { display: grid; gap: 10px; }
.pk-src { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; font-size: 16px; font-weight: 600; cursor: pointer; }
.pk-src svg { width: 22px; height: 22px; color: var(--blue); }
.pk-crop { display: grid; place-items: center; }
.pk-frame { position: relative; width: min(78vw, 300px); aspect-ratio: 1; border-radius: 999px; overflow: hidden; background: #eee; touch-action: none; cursor: grab; box-shadow: 0 0 0 4px #fff, 0 10px 26px -14px rgba(31,42,44,.5); }
.pk-frame img { position: absolute; left: 0; top: 0; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.pk-range { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pk-range input { flex: 1; }
.pk-filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.pk-f { display: grid; justify-items: center; gap: 4px; border: 0; background: none; font: inherit; cursor: pointer; }
.pk-f span { width: 60px; height: 60px; border-radius: 999px; overflow: hidden; box-shadow: 0 0 0 2px transparent; }
.pk-f span img { width: 100%; height: 100%; object-fit: cover; }
.pk-f small { font-size: 12.5px; color: var(--muted); }
.pk-f.on span { box-shadow: 0 0 0 2.5px var(--ink); } .pk-f.on small { color: var(--ink); font-weight: 600; }
/* mes documents : ce que veut dire le choix, + FAQ */
.dl-facts { display: grid; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.dl-facts > span { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.dl-facts i { display: block; font-style: normal; font-weight: 600; color: var(--ink); font-size: 13px; }
.dl-faq details { border-bottom: 1px solid var(--line-2); }
.dl-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; list-style: none; cursor: pointer; font-size: 15px; font-weight: 600; }
.dl-faq summary::-webkit-details-marker { display: none; }
.dl-faq summary svg { width: 14px; height: 14px; color: var(--muted); transform: rotate(90deg); flex: none; }
.dl-faq details[open] summary svg { transform: rotate(-90deg); }
.dl-faq p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.af-sp img[src$=".svg"] { object-fit: contain; }
.f-aqua { opacity: 1; }

/* ===== v45 (21.11 22:05) — ombre = on peut toucher · plat = à lire ; note Qui/Quoi ; photo ; documents complets ; en-têtes ; vagues */
:root { --lift: 0 1px 2px rgba(31,42,44,.06), 0 8px 20px -10px rgba(31,42,44,.32); --lift-press: 0 1px 2px rgba(31,42,44,.08), 0 3px 8px -4px rgba(31,42,44,.3); }
/* à lire : plat, juste un trait très fin */
.c-sec, .c-bref, .read-card, .dx-sec, .c-stat:not(.c-stat-go) { box-shadow: none !important; border: 1px solid color-mix(in srgb, var(--line-2, #eee8de) 90%, transparent); }
.read-card { background: color-mix(in srgb, #fff 70%, transparent); }
/* à toucher : ombre douce, s'enfonce un peu */
.ev, .docrow, .c-doc .docrow, .c-stat-go, .ev-link, .ev-from, .pk-src, .paint-opt, .wz-tile, .c-cta, .choice2, .pro-card[data-pro], .share[href] {
  box-shadow: var(--lift) !important; transition: transform .12s ease, box-shadow .12s ease; }
.ev:active, .docrow:active, .c-stat-go:active, .ev-link:active, .ev-from:active, .pk-src:active, .paint-opt:active, .wz-tile:active, .c-cta:active, .choice2:active { transform: translateY(1px) scale(.995); box-shadow: var(--lift-press) !important; }
.docrow { background: #fff; border-radius: 16px; padding: 10px 12px; margin-top: 8px; border: 0 !important; }
.sv-part .docrow { width: 100%; }

/* carte d'identité : de l'air à gauche et à droite */
.c-sec .c-tiles .c-tile { padding: 12px 20px 13px !important; }
.c-sec .c-tiles .c-tile:last-child:nth-child(odd):not(.wide) { grid-column: 1 / -1; border-right: 0 !important; }

/* rappel : une seule ligne-lien vers le suivi ou le document */
.ev-link { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 16px; padding: 12px 14px; border: 0; border-radius: 18px; background: #fff; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.ev-link > span:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ev-link small { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.ev-link b { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.ev-link > svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.ev-link-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--green) 12%, #fff); color: var(--green); }
.ev-link-ico svg { width: 20px; height: 20px; }

/* note rapide : Qui ? / Quoi ? sur un seul écran */
.wz-sec { margin-top: 18px; }
.wz-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 10px; font-size: 19px; font-weight: 700; color: var(--ink); }
.wz-h small { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.wz-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.wz-all svg { width: 16px; height: 16px; } .wz-all.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.wz-one { margin-top: 12px; }
.wz-ename { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; font-size: 15px; color: var(--c); }
.wz-ename .av { width: 28px !important; height: 28px !important; }

/* photo : aperçu → changer → peinture ou photo simple → valider */
.pk-crop { margin-top: 6px; }
.pk-empty { display: grid !important; place-items: center; align-content: center; gap: 6px; cursor: pointer; background: color-mix(in srgb, var(--c) 8%, #fff) !important; border: 2px dashed color-mix(in srgb, var(--c) 50%, transparent); color: var(--c); box-shadow: none !important; }
.pk-empty svg { width: 40px; height: 40px; } .pk-empty small { font-size: 15px; font-weight: 600; }
.pk-change { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.pk-src.sm { min-height: 48px; padding: 0 12px; font-size: 14.5px; gap: 8px; }
.pk-src.sm svg { width: 18px; height: 18px; }
.pk-srcs { margin-top: 16px; }
.pk-paint { margin-top: 18px; width: 100%; }
.pk-paint + .pk-tips { margin-top: 14px; }
.pk-thumbs { grid-template-columns: repeat(3, 1fr); }
.sheet .save-bar { position: sticky; bottom: 0; }

/* document : tout le contenu, bien rangé */
.dx { margin-top: 14px; display: grid; gap: 12px; }
.dx-lead { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.dx-kv { margin: 0; display: grid; gap: 0; background: #fff; border-radius: 18px; padding: 4px 16px; border: 1px solid var(--line-2, #eee8de); }
.dx-kv > div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2, #eee8de); }
.dx-kv > div:last-child { border-bottom: 0; }
.dx-kv dt { font-size: 13.5px; color: var(--muted); } .dx-kv dd { margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink); }
.dx-kv.sm { background: none; border: 0; padding: 0; } .dx-kv.sm > div { grid-template-columns: 84px 1fr; padding: 7px 0; }
.dx-sec { background: #fff; border-radius: 20px; padding: 16px; }
.dx-h { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.dx-table { display: grid; }
.dx-tr { display: grid; grid-template-columns: 1fr auto 118px; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line-2, #eee8de); font-size: 14.5px; }
.dx-tr.two { grid-template-columns: 1fr auto; } .dx-tr.two b { text-align: right; max-width: 58%; }
.dx-tr:last-child { border-bottom: 0; }
.dx-tr span { color: var(--ink-2); line-height: 1.35; } .dx-tr b { font-weight: 650; color: var(--ink); white-space: nowrap; } .dx-tr.two b { white-space: normal; font-weight: 600; }
.dx-tr small { font-size: 12.5px; color: var(--muted); text-align: right; line-height: 1.3; }
.dx-th { padding-top: 0; } .dx-th span { font-size: 12px; color: var(--muted); font-weight: 600; } .dx-th span:nth-child(3) { text-align: right; }
.dx-tr.out { background: color-mix(in srgb, #c8692b 7%, transparent); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 10px; }
.dx-flag { margin-left: 6px; font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #b4561d; }
.dx-flag.lo { color: #3a7697; }
.dx-note { margin: 10px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.dx-item { padding: 12px 0; border-bottom: 1px solid var(--line-2, #eee8de); } .dx-item:first-of-type { padding-top: 0; } .dx-item:last-child { border-bottom: 0; padding-bottom: 0; }
.dx-it-h { display: grid; gap: 2px; margin-bottom: 4px; } .dx-it-h b { font-size: 16px; } .dx-it-h small { font-size: 13.5px; color: var(--muted); }
.dx-list, .dx-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.dx-list li::marker { color: var(--green); }
.dx-steps li::marker { font-weight: 700; color: var(--green); }
.dx-p { margin: 0 0 10px; font-size: 15px; line-height: 1.55; } .dx-p:last-child { margin-bottom: 0; }
.dx-warn { margin: 0; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, #d9a441 14%, #fff); font-size: 15px; line-height: 1.45; }
.dx-dated { display: grid; } .dx-dated > div { display: grid; grid-template-columns: 86px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2, #eee8de); font-size: 14.5px; line-height: 1.45; }
.dx-dated > div:last-child { border-bottom: 0; } .dx-dated small { font-size: 13px; font-weight: 600; color: var(--green); padding-top: 1px; }
.dx-noorig { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }
.dx-noorig svg { width: 16px; height: 16px; }

/* en-têtes de page : grand titre + vague d'aquarelle */
.pg-head { padding: 16px 0 14px; min-height: 108px; }
.pg-wash { width: 150px; right: -18px; top: -14px; opacity: .92; }
.pg-title { font-size: 38px; letter-spacing: -.015em; }
.pg-wave { display: block; width: 150px; height: 16px; margin: 6px 0 2px -2px; overflow: visible; }
.pg-sub { margin-top: 6px; font-size: 14.5px; }
.pg-sub::before { display: none; }

/* fond du suivi : vagues d'aquarelle */
.f-aqua { mix-blend-mode: multiply; opacity: .95; }
.dx-tr b, .dx-tr small { font-variant-numeric: tabular-nums; }
.dx-tr b { text-align: right; }
.dx-flag::before { content: "▲ "; font-size: 9px; } .dx-flag.lo::before { content: "▼ "; }
.sheet-more-ind.lift { bottom: calc(78px + var(--safe-b)); padding-top: 0; background: none; }
.wz-h small { flex-basis: 100%; }
.pk-tips li { display: block; position: relative; padding-left: 24px; line-height: 1.45; }
.pk-tips li svg { position: absolute; left: 0; top: 2px; margin: 0; }

/* ===== v46 (21.11 22:55) — bulles chiffrées, décors de page, tuiles partout, questions pour le véto, plus de texte sur beige */
/* chiffres dans une bulle ronde discrète */
.pg-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; margin-right: 8px; border-radius: 999px; background: color-mix(in srgb, var(--green) 13%, #fff); color: var(--green); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 18%, transparent); }
.pg-sub { display: flex; align-items: center; gap: 0; }
/* décors : fond peint qui s'efface vers le bas */
.pg-head { position: relative; isolation: isolate; }
.pg-art { position: absolute; z-index: -1; left: -20px; right: -20px; top: -90px; height: 330px; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%); }
.pg-art svg { width: 100%; height: 100%; display: block; }
.pg-wave { display: none; }
.pg-wash { z-index: 1; }
body.ag-back .pg-head { padding-top: 22px; }
/* « Voir l'agenda » (même famille que « Voir le suivi ») */
.f-togo2 { margin: 12px 0 6px !important; text-decoration: none; }
.f-togo2 span { display: inline-flex; align-items: center; gap: 10px; }
.f-togo2 span svg { width: 20px; height: 20px; }
.go-num { font-style: normal; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
/* rappels : boutons en tuiles comme la 1re carte d'ajout */
.ev-tiles { margin-top: 14px; }
.ev-tiles + .ev-datebox { margin-top: 10px; }
.ev-tiles .wz-tile { width: 100%; }
/* note rapide : Quoi ? en tuiles */
.wz-qgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wz-qt { position: relative; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 12px; border: 0; border-radius: 18px; background: #fff; font: inherit; text-align: left; color: var(--ink); cursor: pointer; box-shadow: var(--lift); transition: transform .12s, box-shadow .12s; }
.wz-qt:active { transform: translateY(1px); box-shadow: var(--lift-press); }
.wz-qt .wz-ico { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--k) 13%, #fff); color: var(--k); }
.wz-qt .wz-ico svg { width: 20px; height: 20px; }
.wz-qt b { font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.wz-qck { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 999px; display: none; place-items: center; background: var(--k); color: #fff; }
.wz-qck svg { width: 12px; height: 12px; stroke-width: 3; }
.wz-qt.on { box-shadow: 0 0 0 2px var(--k), var(--lift) !important; }
.wz-qt.on .wz-qck { display: grid; }
.wz-qt.closer { grid-column: 1 / -1; }
.wz-obs-hint { margin: 10px 2px 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
/* peinture : en attente du pelage + récapitulatif */
.af-paintwait { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--plum) 30%, transparent); font-size: 14.5px; line-height: 1.45; }
.af-paintwait svg { flex: none; width: 18px; height: 18px; color: var(--plum); margin-top: 2px; }
.pr-recap { display: grid; gap: 14px; margin-top: 8px; }
.pr-dots { display: inline-flex; gap: 4px; margin-left: 8px; vertical-align: middle; }
.pr-dots i { width: 14px; height: 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.pr-miss { font-style: normal; color: var(--rose); font-weight: 600; }
.pr-later { display: block; margin: 10px auto 0; }
/* questions pour le véto */
.q-box { margin-top: 16px; padding: 14px; border-radius: 20px; background: #fff; border: 1px solid color-mix(in srgb, var(--blue) 22%, transparent); }
.q-box-h { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.q-box-h svg { width: 18px; height: 18px; }
.q-box-h .pg-count { margin: 0 0 0 auto; background: color-mix(in srgb, var(--blue) 12%, #fff); color: var(--blue); box-shadow: none; letter-spacing: 0; }
.q-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 2px; border: 0; border-top: 1px solid var(--line-2, #eee8de); background: none; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.q-box-h + .q-row { border-top: 0; }
.q-row > span:nth-child(2) { flex: 1; display: grid; gap: 3px; } .q-row b { font-size: 15px; font-weight: 600; line-height: 1.35; } .q-row small { font-size: 13px; color: var(--muted); }
.q-row > svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.q-ico { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--blue) 12%, #fff); color: var(--blue); }
.q-ico svg { width: 18px; height: 18px; }
.q-pill { color: var(--blue) !important; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--blue) 35%, transparent) !important; }
.q-pill svg { width: 14px; height: 14px; }
.ev-q { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--blue); }
.ev-q svg { width: 14px; height: 14px; }
.dx-hl { background: color-mix(in srgb, var(--blue) 12%, #fff) !important; box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue) 40%, transparent); border-radius: 10px; }
/* historiques : date à côté du nom */
.dc-who small { margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
/* plus de texte à lire sur du beige : blanc, ou rien */
.read-card { background: #fff !important; }
.ev-n, .ev-from, .c-note, .lab, .c-doc, .c-pro, .c-vacc-i, .labs-calm .lab { background: #fff !important; }
.reco { background: #fff !important; }
.sheet .block { background: #fff; box-shadow: none; border: 1px solid var(--line-2, #eee8de); }
.sv-recos { padding: 12px 14px; border-radius: 16px; background: #fff; }
.dx-lead { padding: 14px 16px; border-radius: 18px; background: #fff; }
.doc-content + .doc-content { border-top: 0; }
.doc-content { background: #fff; border-radius: 20px; padding: 14px 16px; margin-top: 12px; }
.doc-content .block { border: 0 !important; padding: 0; margin-top: 12px; }
.doc-content .dc-head { margin-top: 10px; }

/* ===== v47 (21.11 23:27) — fond sur toute la page, bulles partout, Retour dans la note rapide */
#view { position: relative; }
body[data-page="agenda"] #view, body[data-page="ressources"] #view { background-image: var(--pg-bg); background-size: 400px auto; background-repeat: repeat; background-position: center top; }
.pg-art { display: none !important; }
/* bulles des chiffres : « Dès que possible », « Cette semaine »… (légèrement colorées, discrètes) */
.per-h .per-n { order: 0; display: inline-grid !important; place-items: center; min-width: 24px !important; height: 24px !important; padding: 0 7px !important; border-radius: 999px !important;
  background: color-mix(in srgb, currentColor 12%, #fff) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 20%, transparent) !important; font-size: 12.5px !important; font-weight: 700 !important; letter-spacing: 0 !important; }
/* Ressources : « Éléments » comme « À venir » de l'accueil */
.res-avt { margin: 22px 4px 12px !important; }
.res-avt .pg-count { margin: 0 0 0 -6px; }
/* Agenda : questions pour le véto */
.ag-q { margin: 16px 0 4px; }
/* note rapide : de l'air en bas (barre de geste de l'iPhone) */
.sheet .save-bar { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); margin-bottom: 0; }
#sheetBody { padding-bottom: 18px; }
.res-avt .pg-count { margin: 0 !important; }
.per-late .per-n, .per-asap .per-n { color: #a03f37 !important; }

/* ===== v48 (22.11 00:12) — questions en section, animal choisi agrandi, Mes documents en cartes, logo d'accueil plus grand */
/* logo de l'accueil plus grand (à l'essai) */
.home-logo { width: 172px !important; height: 172px !important; margin: -12px auto -12px !important; }
/* filtres animaux : fond opaque (le décor ne passe plus derrière) ; l'animal choisi en grand */
.pf .av, .pf .pf-all { background: #fff !important; transition: width .2s ease, height .2s ease, transform .2s ease; }
.pf .av img { background: color-mix(in srgb, var(--c, #fff) 10%, #fff); }
.pf[aria-pressed="true"] .av, .pf[aria-pressed="true"] .pf-all { width: 74px !important; height: 74px !important; transform: none !important; }
.pet-filter { align-items: flex-end; }
.pf b { background: color-mix(in srgb, var(--bg) 88%, transparent); border-radius: 8px; padding: 0 4px; }
/* questions pour le véto : une section comme les autres, cartes blanches, « ? » peint */
.per-q .per-h { color: var(--blue) !important; }
.q-ev { background: #fff; }
.q-paint { position: relative; flex: none; width: 48px; height: 48px; display: grid; place-items: center; }
.q-paint svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.q-paint b { position: relative; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 27px; font-weight: 700; color: var(--blue); line-height: 1; transform: rotate(-6deg); }
.q-kind { color: var(--blue) !important; }
.q-ev .ev-title { font-size: 15px; line-height: 1.35; }
/* Ressources : « Éléments » à la couleur de l'animal */
.res-avt[style] .pg-count { background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent); }
/* Mes documents : 3 cartes épurées */
.dl-cards { display: grid; gap: 10px; }
.dl-card { position: relative; background: #fff; border-radius: 20px; box-shadow: var(--lift); padding: 4px; transition: box-shadow .15s; }
.dl-card.on { box-shadow: 0 0 0 2px var(--green), var(--lift); }
.dl-pick { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 46px 12px 12px; border: 0; background: none; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.dl-pick .dl-ico { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--green) 12%, #fff); color: var(--green); }
.dl-pick .dl-ico svg { width: 21px; height: 21px; }
.dl-pick > span:nth-child(2) { flex: 1; display: grid; gap: 3px; }
.dl-pick b { font-size: 16px; } .dl-pick small { font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.dl-pick em { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.dl-radio { position: absolute; right: 52px; top: 50%; width: 0; height: 0; }
.dl-info { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 999px; border: 0; background: color-mix(in srgb, var(--blue) 10%, #fff); color: var(--blue); display: grid; place-items: center; cursor: pointer; }
.dl-info svg { width: 19px; height: 19px; }
.dl-card .dl-tidy, .dl-card .dl-give { margin: 2px 8px 10px; width: calc(100% - 16px); }
.dl-tip { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: 16px; background: #fff; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.dl-tip svg { flex: none; width: 18px; height: 18px; color: var(--blue); margin-top: 2px; }
.dl-pm li::marker { color: var(--green); } .dl-pm.minus li::marker { color: var(--amber); }
.dl-pm { background: #fff; border-radius: 16px; padding: 12px 14px 12px 32px; }
.dl-facts.in-sheet { margin: 0; padding: 12px 14px; border: 0; border-radius: 16px; background: #fff; }

/* ===== v49 (22.11 00:27) — fonds d'Agenda et de Ressources : aquarelles peintes, sur toute la page */
body[data-page="agenda"] #view, body[data-page="ressources"] #view { background-image: none !important; isolation: isolate; }
body[data-page="agenda"] #view::before, body[data-page="ressources"] #view::before {
  content: ""; position: absolute; inset: 0 -24px; z-index: -1; pointer-events: none;
  background: var(--pg-bg) center top / 100% auto repeat-y; opacity: .38; mix-blend-mode: multiply; }
body[data-page="ressources"] #view::before { opacity: .32; }
/* lisibilité sur l'aquarelle : petits fonds crème derrière les textes posés sur le décor ; cartes bien blanches */
body[data-page="agenda"] #view::before { opacity: .32; }
body[data-page="ressources"] #view::before { opacity: .26; }
.per-h span:not(.per-n), .res-avt span:not(.pg-count), .pg-sub, .pg-eyebrow { background: color-mix(in srgb, var(--bg) 86%, transparent); border-radius: 999px; padding: 2px 8px; }
.pg-sub { display: inline-flex; padding: 3px 10px 3px 4px; }
.pg-eyebrow { display: inline-block; }
.q-ev, .per .ev { background: #fff !important; opacity: 1 !important; }
.per-q .ev-list { display: grid; gap: 10px; }

/* ===== v51 (22.11 00:55) — haut d'Agenda/Ressources centré + logo au-dessus, barre de menu cadrée, photo retirable, Mes documents en ligne */
/* plus de petites bulles crème sous les textes */
.per-h span:not(.per-n), .res-avt span:not(.pg-count), .pg-sub, .pg-eyebrow { background: none !important; padding: 0 !important; border-radius: 0 !important; }
/* haut des pages centré, logo au-dessus de « Mes soins véto » */
body[data-page="agenda"] .pg-head, body[data-page="ressources"] .pg-head { text-align: center; min-height: 0; padding-top: 6px; }
body[data-page="agenda"] .pg-wash, body[data-page="ressources"] .pg-wash { position: static; display: block; width: 92px; height: auto; margin: 0 auto 6px; transform: none; opacity: 1; }
body[data-page="agenda"] .pg-sub, body[data-page="ressources"] .pg-sub { display: flex !important; justify-content: center; }
body[data-page="agenda"] .pet-filter, body[data-page="ressources"] .pet-filter { justify-content: center; }
body[data-page="agenda"] .filters, body[data-page="ressources"] .res-doms { justify-content: center; }
/* barre de menu : fin trait de cadre, fond un peu plus clair */
.tabbar { background: rgba(255,255,255,.97) !important; box-shadow: 0 0 0 1px rgba(31,42,44,.09), 0 10px 30px -16px rgba(31,42,44,.32) !important; }
/* accueil : un peu d'air avant le logo */
.home-logo { margin-top: 14px !important; }
/* retirer la photo */
.pk-remove { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 16px auto 0; color: var(--rose) !important; }
.pk-remove svg { width: 16px; height: 16px; }
/* Mes documents : cartes à titre seul + « En savoir plus » bien visible */
.dl-pick { padding: 14px 16px !important; gap: 14px; }
.dl-pick b { flex: 1; font-size: 17px; }
.dl-radio { position: static !important; width: 26px !important; height: 26px !important; border-radius: 999px; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--line); color: transparent; flex: none; }
.dl-radio svg { width: 14px; height: 14px; stroke-width: 3; }
.dl-card.on .dl-radio { background: var(--green); box-shadow: none; color: #fff; }
.dl-info { display: none !important; }
.dl-more { display: flex; align-items: center; gap: 4px; margin: -4px 0 0 72px; padding: 0 0 12px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--blue); cursor: pointer; }
.dl-more svg { width: 13px; height: 13px; }
.dl-card .dl-tidy, .dl-card .dl-give { margin: 0 12px 10px !important; width: calc(100% - 24px) !important; }
/* ton stockage (version en ligne) */
.dl-clouds { display: grid; background: #fff; border-radius: 18px; padding: 2px 14px; }
.dl-cl { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2, #eee8de); }
.dl-cl:last-child { border-bottom: 0; }
.dl-cl-ico { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--blue) 10%, #fff); color: var(--blue); }
.dl-cl-ico svg { width: 18px; height: 18px; }
.dl-cl > span:nth-child(2) { flex: 1; display: grid; gap: 2px; } .dl-cl b { font-size: 15.5px; } .dl-cl small { font-size: 13px; color: var(--muted); }
.dl-cl.on small { color: var(--green); font-weight: 600; }
.dl-cl-btn { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.dl-cl:not(.on) .dl-cl-btn { background: var(--ink); color: #fff; border-color: var(--ink); }
.dl-now { margin-top: 12px; }

/* ===== v53 (22.11 01:15) — décors épurés : fonds en pleine couleur (papier retiré), fumée colorée du suivi */
body[data-page="agenda"] #view::before, body[data-page="ressources"] #view::before { inset: 0 !important; opacity: 1 !important; mix-blend-mode: normal !important; background-size: 100% auto !important; }
#view { overflow-x: clip; }
.f-sheet { position: relative; }
.f-smoke { position: absolute; right: 8px; top: 20px; width: 58%; max-width: 240px; height: auto; pointer-events: none; z-index: 0; }
.f-sheet > .crumb, .f-sheet > .f-head { position: relative; z-index: 1; }
/* stockage : petite phrase sous le titre */
.dl-tt { flex: 1; display: grid; gap: 2px; }
.dl-tt small { font-size: 13.5px; line-height: 1.35; color: var(--ink-2); font-weight: 400; }
.dl-more { margin-left: 72px; }
/* accueil : un peu plus d'air au-dessus du logo et avant « À venir » */
.home-logo { margin-top: 26px !important; }
.home-sec { margin-top: 62px !important; }
/* décors plus épurés : bandes peintes qui s'effacent, beige vide entre elles, haut de page dégagé */
body[data-page="agenda"] #view::before, body[data-page="ressources"] #view::before {
  background-position: center 230px !important; background-repeat: repeat-y !important;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 200px, #000 420px); mask-image: linear-gradient(to bottom, transparent 0, transparent 200px, #000 420px); }
body[data-page="agenda"] #view::before { opacity: .72 !important; }
body[data-page="ressources"] #view::before { opacity: .55 !important; }
.f-smoke { top: 34px; }
body[data-page="ressources"] #view::before { opacity: .68 !important; }

/* ===== v54 (22.11 14:00) — décors de côté, bouts de cartes pleins, rappel allégé, filtres, espèces, patte du logo */
/* 1. plus de fonds peints pleine page (Agenda, Ressources) */
body[data-page="agenda"] #view, body[data-page="ressources"] #view { background-image: none !important; }
body[data-page="agenda"] #view::before, body[data-page="ressources"] #view::before { display: none !important; }
/* 2. décors seulement sur les côtés de l'en-tête, jamais sous un texte */
/* logo plus grand et mis en avant en haut des pages */
body[data-page="agenda"] .pg-wash, body[data-page="ressources"] .pg-wash { width: 128px !important; margin: 0 auto 4px !important; }
/* suivi : plus de fumée */
.f-smoke { display: none !important; }

/* 3. bouts de cartes : le fond coloré de l'icône va jusqu'au bord, partout (comme les dates de l'agenda) */
.wz-tile, .wz-qt, .docrow, .c-doc .docrow, .ev-from, .ev-link { overflow: hidden; align-items: stretch !important; padding-left: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
.wz-tile > .wz-ico, .wz-qt > .wz-ico, .docrow > .doc-ico, .ev-link > .ev-link-ico {
  align-self: stretch; width: 62px !important; height: auto !important; min-height: 100%; border-radius: 0 !important; border: 0 !important; box-shadow: none !important; }
.wz-qt > .wz-ico { width: 48px !important; }
.wz-tile > .wz-tt, .wz-tile > svg:last-child, .wz-qt > b, .wz-qt > .wz-qck { align-self: center; }
.wz-tile > .wz-tt { padding: 14px 0; }
.wz-tile { min-height: 72px; }
.wz-qt b { padding: 10px 0; }
/* documents : la couleur du type remplit le bout */
.docrow > .doc-ico { background: color-mix(in srgb, currentColor 13%, #fff) !important; }
.docrow > .doc-main, .docrow > .chev, .docrow > .docrow-amt { align-self: center; }
.docrow > .doc-main { padding: 10px 0; }
.docrow { border-radius: 16px; background: #fff; border: 0 !important; gap: 14px; padding-right: 12px !important; box-shadow: 0 0 0 1px rgba(31,42,44,.08), 0 6px 16px -12px rgba(31,42,44,.3); }
.docrow + .docrow { margin-top: 8px; }
/* carnet : plus de cadre dans un cadre */
.c-doc .docrow { background: #fff !important; box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent), 0 8px 18px -14px var(--c) !important; min-height: 64px; }
.c-doc .docrow > .doc-ico { color: var(--c) !important; background: color-mix(in srgb, var(--c) 14%, #fff) !important; }
.c-doc .docrow .chev { margin-left: 2px; }
.ev-from { padding-right: 12px !important; }
.ev-from > .pill { align-self: center; margin-left: 12px; }
.ev-from > span:nth-child(2), .ev-from > svg { align-self: center; }

/* 4. rappel : en-tête sans cadre, couleur du type de rappel */
.ev-top .dtile { background: none !important; box-shadow: none !important; border: 0 !important; width: auto; min-width: 44px; height: auto; color: var(--k) !important; padding: 0; }
.ev-top .dtile b, .ev-top .dtile small { color: var(--k) !important; }
.ev-top .dtile b { font-size: 30px; }
.ev-top .dtile.nodate svg { width: 40px; height: 40px; stroke-width: 1.6; }
/* d'où ça vient : un simple lien, sous le résumé */
.ev-src { display: flex; align-items: center; gap: 8px; width: 100%; margin: 8px 0 0; padding: 6px 4px; border: 0; background: none; font: inherit; font-size: 14.5px; color: var(--green); text-align: left; cursor: pointer; }
.ev-src > svg:first-child { width: 17px; height: 17px; flex: none; }
.ev-src > span { flex: 1; min-width: 0; }
.ev-src b { font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.ev-src > svg:last-child { width: 14px; height: 14px; flex: none; opacity: .7; }
.ev-tiles2 { margin-top: 10px !important; }

/* 5. filtres : mêmes boutons dans Agenda et Ressources ; « Tous… » seul sur la 1re ligne */
body[data-page="agenda"] .type-filter { margin-top: 12px; }
.res-doms .fl-break { flex-basis: 100%; height: 0; padding: 0; margin: 0; }
.res-doms.tous-first { justify-content: center; }
/* « En attente » et « Sans date » en ocre */
.per-nodate .per-h, .per-wait .per-h { color: var(--amber) !important; }

/* 6. suivi : les mois comme les périodes de l'agenda, couleur de l'animal */
.f-month2 { color: var(--c) !important; margin: 18px 0 2px !important; }
.f-month2 span:not(.per-n) { text-transform: uppercase; }

/* 7. la patte du logo (encre noire) pour « Tous », partout */
.paw-ink { display: block; width: 62%; height: 62%; object-fit: contain; }
.pf .pf-all .paw-ink { width: 58%; height: 58%; }
.wz-all .paw-ink { width: 18px; height: 18px; display: inline-block; }
.wz-all.on .paw-ink { filter: invert(1); }
.tab .tab-paw { width: 28px; height: 28px; opacity: .6; filter: grayscale(1); }
.tab.active .tab-paw { opacity: 1; }

/* 8. animal sans photo : la tête de son espèce */
.sp-def { width: 100%; height: 100%; object-fit: contain; }
.av .sp-def { width: 86%; height: 86%; margin: 7%; }
.c-art.empty .sp-def, .f-art.empty .sp-def, .hp-art.empty .sp-def { width: 78%; height: 78%; opacity: .9; }

/* 9. photo : l'image actuelle dans le grand rond */
.pk-cur { position: relative; cursor: pointer; overflow: hidden; }
.pk-cur img { width: 100%; height: 100%; object-fit: cover; }
.pk-cur-tag { position: absolute; left: 50%; bottom: 10%; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }

/* 10. Paramètres : vrais logos, option « bientôt » */
.dl-cl-ico { background: color-mix(in srgb, var(--b, var(--blue)) 10%, #fff) !important; }
.dl-cl-ico svg { width: 22px; height: 22px; }
.dl-soon { opacity: .75; cursor: default; }
.dl-soon-tag { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--amber) 14%, #fff); color: var(--amber); font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .04em; }

/* 11. accueil : un peu moins d'air après le titre, un peu plus après « À venir » */
.home-hello::after { margin-top: 10px !important; }
.home .stage { margin-top: -14px !important; }
.home-sec .av-title { margin-bottom: 22px !important; }
.f-month2 .per-n { opacity: 1 !important; color: var(--c) !important; }
/* têtes d'espèce (fond blanc) : fondues dans le décor, en médaillon rond */
.sp-def { mix-blend-mode: multiply; border-radius: 999px; object-fit: cover; }
.av .sp-def { width: 100%; height: 100%; margin: 0; }
.c-art.empty .sp-def, .f-art.empty .sp-def, .hp-art.empty .sp-def { width: 74%; height: auto; aspect-ratio: 1; opacity: 1; }

/* ===== v55 (22.11 15:20) — vagues de côté sous l'en-tête, logo agrandi, « animaliers », compte */
.wave-body { position: relative; isolation: isolate; }
.side-waves { position: absolute; top: 0; bottom: 0; left: -20px; right: -20px; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 60px); mask-image: linear-gradient(to bottom, transparent, #000 60px); }
.side-waves::before, .side-waves::after { content: ""; position: absolute; top: 0; bottom: 0; width: 24px; background: var(--tile) left top / 24px 480px repeat-y; }
.side-waves::before { left: -2px; }
.side-waves::after { right: -2px; transform: scaleX(-1); background-position: left 160px; }
.acct-hero + .wave-body { margin-top: 6px; }
/* logo Agenda / Ressources : encore plus grand, presque contre « MES SOINS » */
body[data-page="agenda"] .pg-wash, body[data-page="ressources"] .pg-wash { width: 168px !important; margin: -10px auto -14px !important; }
.pg-eyebrow2 { display: block; font-size: 9.5px; letter-spacing: .34em; margin-top: 1px; opacity: .8; font-weight: 600; }
/* compte : chiffres = ajouter */
.acct-stats > button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; position: relative; display: grid; justify-items: center; padding: 0; }
.acct-stats > button i { position: absolute; top: -4px; right: 6px; width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; background: color-mix(in srgb, var(--green) 14%, #fff); color: var(--green); }
.acct-stats > button i svg { width: 11px; height: 11px; stroke-width: 2.4; }
.acct-stats > button:last-child b { color: var(--green); }
.acct-danger { margin: 18px 0 8px; display: grid; }
.plan-list { display: grid; gap: 8px; margin: 14px 0; }
.plan { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(31,42,44,.08); }
.plan small { grid-column: 1; color: var(--muted); font-size: 13.5px; }
.plan em { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.plan.on { box-shadow: 0 0 0 2px var(--green); }
.plan-cur { font-style: normal; font-size: 12px; font-weight: 700; color: var(--green); }
.del-warn { display: flex; gap: 10px; margin: 12px 0 14px; padding: 14px; border-radius: 16px; background: color-mix(in srgb, var(--rose) 9%, #fff); color: var(--ink-2); line-height: 1.45; }
.del-warn svg { flex: none; width: 22px; height: 22px; color: var(--rose); }
.del-ok { display: flex; gap: 10px; align-items: center; margin: 14px 2px; font-weight: 600; }
.del-ok input { width: 20px; height: 20px; accent-color: var(--rose); }
.btn.danger-fill { background: var(--rose); border-color: var(--rose); color: #fff; }
/* stockages : « Connecté » en noir, « Connexion » en clair */
.dl-cl-btn { display: inline-flex; align-items: center; gap: 5px; background: #fff !important; color: var(--ink-2) !important; border: 1.5px solid var(--line) !important; }
.dl-cl-btn.on { background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important; }
.dl-cl-btn svg { width: 14px; height: 14px; stroke-width: 2.4; }
/* photo : bouton visible dans la bulle */
.pk-cur-tag { bottom: auto; top: 9%; }
.pk-cur-btn { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 18px -8px rgba(0,0,0,.5); }
.pk-cur-btn svg { width: 16px; height: 16px; }
.side-waves { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 60px, #000 calc(100% - 90px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 60px, #000 calc(100% - 90px), transparent); }

/* ===== v56 (22.11 16:35) — décor large (dernier essai), en-tête, paramètres réorganisés, confirmations de l'app */
/* décor : des bords jusque vers les titres du centre, derrière les cartes */
.side-waves::before, .side-waves::after { width: 46%; background-size: 180px 640px; background-image: var(--tile);
  -webkit-mask-image: linear-gradient(to right, #000 35%, transparent 95%); mask-image: linear-gradient(to right, #000 35%, transparent 95%); }
.side-waves::before { left: 0; }
.side-waves::after { right: 0; background-position: left 220px; }
/* en-tête Agenda / Ressources : logo un peu plus petit et collé, « MES SOINS » plus grand, « ANIMALIERS » coloré */
body[data-page="agenda"] .pg-wash, body[data-page="ressources"] .pg-wash { width: 140px !important; margin: -12px auto -22px !important; position: relative; z-index: 0; }
body[data-page="agenda"] .pg-eyebrow, body[data-page="ressources"] .pg-eyebrow { position: relative; z-index: 1; font-size: 15px !important; letter-spacing: .2em; }
.pg-eyebrow2 { font-size: 9.5px !important; letter-spacing: .34em; color: var(--rose); opacity: 1 !important; margin-top: 2px; }
/* compte : chiffres exactement comme avant (cliquables) */
.acct-stats > [data-wz-task] { cursor: pointer; }
.acct-stats > * { justify-items: center; }
/* sommaire des paramètres */
.set-toc { margin-top: 14px; }
/* installation */
.inst h3 { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; font-size: 15px; font-weight: 700; }
.inst h3 svg { width: 18px; height: 18px; color: var(--green); }
.inst + .inst { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
/* fin de page : Se déconnecter puis Supprimer le compte, tout en bas */
.acct-end { display: grid; gap: 10px; margin: 22px 0 10px; }
.acct-danger { display: none; }
/* documents : tuiles d'action, accordéon des stockages, FAQ avec « ? » */
.dl-tiles { margin-top: 16px; }
.dl-more-st { margin-top: 8px; }
.dl-none { margin: 4px 2px; color: var(--muted); }
.dl-faq summary { display: flex; align-items: center; gap: 10px; }
.dl-faq summary .q-paint { width: 30px; height: 30px; flex: none; }
.dl-faq summary .q-paint b { font-size: 17px; }
.dl-faq summary > span:not(.q-paint) { flex: 1; }
/* confirmations habillées comme l'app */
.ask-wrap { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(31,42,44,.32); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .18s; }
.ask-wrap.in { opacity: 1; }
.ask { width: min(360px, 100%); padding: 22px 20px 18px; border-radius: 26px; background: var(--bg); box-shadow: 0 24px 60px -20px rgba(0,0,0,.45); text-align: center; transform: translateY(8px) scale(.98); transition: transform .18s; }
.ask-wrap.in .ask { transform: none; }
.ask-logo { width: 56px; height: 56px; object-fit: contain; margin: -6px auto 4px; display: block; }
.ask h3 { margin: 0 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.ask p { margin: 0 0 16px; color: var(--ink-2); line-height: 1.45; font-size: 15px; }
.ask-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ask-btns .btn { margin: 0; }
body[data-page="agenda"] .pg-title, body[data-page="ressources"] .pg-title { margin-top: 8px; }
.set-toc { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
.set-toc::-webkit-scrollbar { display: none; }
.set-toc .chip { flex: none; }

/* ===== v57 (22.11 17:33) — compte (burger, séparateur), documents (numéros peints, stockages à bout de carte, rangement gris), signes discrets, + aquarelle */
/* « ANIMALIERS » en vert ; logo recentré (l'image a des feuilles à gauche) */
.pg-eyebrow2 { color: var(--green) !important; }
body[data-page="agenda"] .pg-wash, body[data-page="ressources"] .pg-wash { transform: translateX(-7%) !important; }
/* compte : 3 chiffres de la même couleur ; burger en haut à droite de la carte Compte */
.acct-stats > * b { color: var(--ink) !important; }
.set-body > #sec-compte { position: relative; }
.set-burger { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 12px; border: 0; background: color-mix(in srgb, var(--green) 9%, #fff); color: var(--green); display: grid; place-items: center; cursor: pointer; }
.set-burger svg { width: 20px; height: 20px; stroke-width: 2.2; }
.set-menu { position: absolute; z-index: 20; top: 56px; right: 12px; min-width: 200px; padding: 6px; border-radius: 18px; background: #fff; box-shadow: 0 18px 40px -16px rgba(31,42,44,.45), 0 0 0 1px rgba(31,42,44,.06); display: grid; }
.set-menu[hidden] { display: none; }
.set-menu button { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 0; border-radius: 12px; background: none; font: inherit; font-size: 15.5px; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; }
.set-menu button:hover, .set-menu button:active { background: var(--bg); }
.set-menu svg { width: 18px; height: 18px; color: var(--green); }
/* petite déco entre « Se déconnecter » et « Supprimer le compte » */
.acct-sep { display: grid; place-items: center; position: relative; height: 54px; margin: 6px 0; }
.acct-sep svg { position: absolute; width: 150px; height: 30px; }
.acct-sep img { position: relative; width: 22px; height: 22px; opacity: .55; }
/* documents : numéros peints à l'aquarelle (comme le « ? ») */
.dl-sub i, .steps li::before { width: 28px !important; height: 28px !important; border-radius: 0 !important; background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 4c10 0 19 7 20 17 1 11-7 22-19 23C13 45 4 37 4 25 4 13 13 4 24 4z' fill='%233d7a5e' opacity='.34'/%3E%3Cpath d='M12 12c8-6 21-5 26 4' stroke='%233d7a5e' stroke-width='2.4' fill='none' opacity='.28' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
  color: var(--green) !important; font-family: Georgia, "Times New Roman", serif !important; font-style: italic !important; font-weight: 700 !important; font-size: 16px !important; letter-spacing: 0 !important; }
.dl-sub { color: var(--ink-2); }
/* cartes de stockage : le logo dans un bout de carte coloré, jusqu'au bord */
.dl-cl { overflow: hidden; align-items: stretch !important; padding-left: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; min-height: 62px; }
.dl-cl > .dl-cl-ico { align-self: stretch; width: 58px !important; height: auto !important; border-radius: 0 !important; display: grid; place-items: center; }
.dl-cl > span:nth-child(2), .dl-cl > .dl-cl-btn { align-self: center; }
.dl-cl > span:nth-child(2) { padding: 10px 0; }
.dl-under { margin: 8px 0 4px 14px; padding-left: 12px; border-left: 2px solid color-mix(in srgb, var(--green) 25%, transparent); }
/* rangement : gris, discret */
.dl-tidy, .dl-tidy.on { border-color: var(--line-2) !important; background: #f7f6f3 !important; }
.dl-tidy .paint-ico { color: var(--muted) !important; background: #eceae5 !important; }
.dl-tidy.on .af-sw { background: var(--slate) !important; }
/* fiche animal : « Personnaliser sa fiche » discret */
.af-perso { margin: 14px 2px 4px; }
.af-perso > summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 2px; }
.af-perso > summary::-webkit-details-marker { display: none; }
.af-perso > summary svg { width: 15px; height: 15px; }
.af-perso > summary svg:last-child { margin-left: auto; transform: rotate(90deg); transition: transform .2s; }
.af-perso[open] > summary svg:last-child { transform: rotate(-90deg); }
.af-perso .af-shows { margin-top: 6px; }
/* bouton + : en aquarelle */
.tab-plus { background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 2c17 0 30 12 30 29 0 18-13 31-31 31C14 62 2 49 2 32 2 15 15 2 32 2z' fill='%233d7a5e'/%3E%3Cpath d='M10 22c6-12 22-18 36-12' stroke='%239cc5a8' stroke-width='7' fill='none' opacity='.55' stroke-linecap='round'/%3E%3Cpath d='M54 40c-4 10-15 17-28 15' stroke='%232f5e48' stroke-width='9' fill='none' opacity='.5' stroke-linecap='round'/%3E%3Ccircle cx='18' cy='44' r='9' fill='%236f9f82' opacity='.45'/%3E%3Ccircle cx='46' cy='18' r='6' fill='%23b8d9c2' opacity='.4'/%3E%3C/svg%3E") center / cover no-repeat !important; }
.tab-plus svg { stroke-width: 2.6 !important; filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }
.side-waves::before, .side-waves::after { width: 42%; -webkit-mask-image: linear-gradient(to right, #000 25%, transparent 85%); mask-image: linear-gradient(to right, #000 25%, transparent 85%); filter: blur(.6px); }

/* ===== v58 (22.11 18:00) — logo centré (fini le décalage), burger au-dessus de la carte, icônes des modes à bout de carte, décors plus bas, + aquarelle sur la croix */
/* logo : l'ancien « right:-18px » le poussait à droite → annulé ; descendu contre « MES SOINS » */
body[data-page="agenda"] .pg-wash, body[data-page="ressources"] .pg-wash { right: auto !important; left: auto !important; transform: none !important; margin: -12px auto -34px !important; }
/* burger : au-dessus de la carte Compte, à droite */
.set-top { position: relative; display: flex; justify-content: flex-end; margin: 14px 0 -4px; z-index: 6; }
.set-top .set-burger { position: static; }
.set-top .set-menu { top: 46px; right: 0; }
/* modes de documents : icône dans un bout de carte coloré, jusqu'au bord */
.dl-card { padding: 0 0 0 62px !important; overflow: hidden; }
.dl-card .dl-pick .dl-ico { position: absolute; left: 0; top: 0; bottom: 0; width: 62px !important; height: auto !important; border-radius: 0 !important; }
.dl-card.on .dl-pick .dl-ico { background: color-mix(in srgb, var(--green) 22%, #fff) !important; }
.dl-card .dl-more { margin-left: 16px !important; }
/* décors : commencent au haut de la première carte */
.wave-body > .side-waves { top: 46px; }
/* ressources : larges coups de pinceau dans tous les sens, sur toute la largeur, sous les cartes */
.sw-res::before { width: 100% !important; left: 0 !important; background-size: 420px 760px !important; -webkit-mask-image: none !important; mask-image: none !important; filter: none !important; }
.sw-res::after { display: none !important; }
/* bouton + : fond vert uni (comme avant), la croix blanche en aquarelle */
.tab-plus { background: var(--green) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23fff' stroke-linecap='round'%3E%3Cpath d='M20.5 7.5c-.6 8.4-.2 16.6.3 25' stroke-width='5.6' opacity='.92'/%3E%3Cpath d='M19.2 9c.4 7.6.9 15.2.2 22.6' stroke-width='3' opacity='.55'/%3E%3Cpath d='M7.5 19.6c8.4.7 16.8.3 25-.4' stroke-width='5.6' opacity='.92'/%3E%3Cpath d='M9 21.2c7.4-.6 15-.2 22.4.4' stroke-width='2.6' opacity='.5'/%3E%3Ccircle cx='31.6' cy='18.8' r='1.6' fill='%23fff' stroke='none' opacity='.7'/%3E%3Ccircle cx='21' cy='33.6' r='1.3' fill='%23fff' stroke='none' opacity='.6'/%3E%3C/g%3E%3C/svg%3E") center / 60% no-repeat !important; }
.tab-plus svg { display: none !important; }
.wave-body > .side-waves { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24px, #000 calc(100% - 90px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 24px, #000 calc(100% - 90px), transparent); }
.sw-res::before { background-repeat: repeat !important; background-position: 0 0 !important; }
.tab-plus { background: var(--green) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23fff' stroke-linecap='round'%3E%3Cpath d='M20.8 6.5c-1 4-.2 9.5-.6 13.8s.9 9.4.4 13.4' stroke-width='8' opacity='.32'/%3E%3Cpath d='M20.4 8c-.5 8.2.2 16.2.2 24' stroke-width='4.2' opacity='.95'/%3E%3Cpath d='M6.6 20.2c4.1-.9 9.6.3 13.9-.2s9.3.4 13.1-.5' stroke-width='8' opacity='.32'/%3E%3Cpath d='M8 19.9c8.1.6 16.1.2 24-.3' stroke-width='4.2' opacity='.95'/%3E%3Ccircle cx='33.4' cy='17.2' r='1.7' fill='%23fff' stroke='none' opacity='.6'/%3E%3Ccircle cx='22.8' cy='35' r='1.4' fill='%23fff' stroke='none' opacity='.55'/%3E%3Ccircle cx='9.5' cy='23.6' r='1' fill='%23fff' stroke='none' opacity='.5'/%3E%3C/g%3E%3C/svg%3E") center / 62% no-repeat !important; }
.sw-agenda::before { background-position: left -200px !important; } .sw-agenda::after { background-position: left 60px !important; }

/* ===== v59 (22.11 21:10) — espacements des filtres, burger plus visible, rangement en bout de carte, source au changement de mode, installation + notifications, traces de pattes, autres espèces */
/* Agenda : un peu moins d'air avant les animaux ; Agenda + Ressources : un peu plus avant les filtres en texte */
body[data-page="agenda"] .pet-filter { margin-top: 4px !important; }
body[data-page="agenda"] .pet-filter + .res-doms, body[data-page="ressources"] .pet-filter + .res-doms { margin-top: 22px !important; }
/* burger : plus grand, plein, avec ombre (= cliquable) */
.set-top .set-burger { width: 50px; height: 50px; border-radius: 16px; background: var(--green); color: #fff; box-shadow: 0 8px 18px -8px rgba(61,122,94,.8); }
.set-top .set-burger svg { width: 26px; height: 26px; stroke-width: 2.4; }
.set-top .set-burger[aria-expanded="true"] { background: color-mix(in srgb, var(--green) 85%, #000); }
.set-top .set-menu { top: 58px; }
/* Rangement : bout de carte (icône dans un fond jusqu'au bord) */
.dl-card .dl-tidy { position: relative; overflow: hidden; padding-left: 64px !important; min-height: 62px; }
.dl-card .dl-tidy .paint-ico { position: absolute; left: 0; top: 0; bottom: 0; width: 50px !important; height: auto !important; border-radius: 0 !important; }
.dl-card .dl-tidy.on .paint-ico { background: color-mix(in srgb, var(--slate) 18%, #fff) !important; color: var(--slate) !important; }
/* confirmation avec choix de la source */
.ask-ch { display: grid; gap: 8px; margin: 4px 0 14px; text-align: left; }
.ask-c { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 44px 0 0; overflow: hidden; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }
.ask-c-ico { align-self: stretch; width: 52px; display: grid; place-items: center; background: color-mix(in srgb, var(--b) 12%, #fff); }
.ask-c-ico svg { width: 22px; height: 22px; }
.ask-c b { font-weight: 600; }
.ask-c .dl-radio { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.ask-c.on { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.ask-c.on .dl-radio { background: var(--green); box-shadow: none; color: #fff; }
.ask .btn[disabled] { opacity: .45; }
/* Installation : étapes en une seule colonne de texte (fini les mots en colonnes) */
.steps li > span { flex: 1; min-width: 0; line-height: 1.4; }
.inst-p { margin: 6px 0 10px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.inst-sub { margin: 12px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.inst-notif { margin-top: 14px !important; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.inst-nrow { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 12px 8px 64px; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1.5px var(--line-2); }
.inst-nico { position: absolute; left: 0; top: 0; bottom: 0; width: 52px; display: grid; place-items: center; background: color-mix(in srgb, var(--green) 12%, #fff); color: var(--green); }
.inst-nico svg { width: 22px; height: 22px; }
.inst-nrow > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.inst-nrow b { font-size: 15px; } .inst-nrow small { font-size: 13px; color: var(--muted); line-height: 1.35; }
.inst-nok { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: var(--green); color: #fff; }
.inst-nok svg { width: 16px; height: 16px; }
/* séparation : traces de pattes de gauche à droite */
.acct-trail { height: 56px; margin: 8px -6px; color: #3d7a5e; }
.acct-trail svg { position: static; width: 100%; height: 46px; }
/* Ressources : décor un peu plus présent */
.sw-res::before { opacity: 1 !important; }
/* « Autre » : sélection élargie d'animaux */
.af-others { margin-top: 12px; padding: 4px 12px 12px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1.5px var(--line-2); }
.af-og { margin: 12px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.af-ogrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.af-oc { display: grid; justify-items: center; gap: 4px; padding: 8px 2px; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; font: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.2; color: var(--ink-2); text-align: center; cursor: pointer; }
.af-oc-av { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: color-mix(in srgb, var(--green) 10%, #fff); color: var(--green); overflow: hidden; }
.af-oc-av svg { width: 20px; height: 20px; } .af-oc-av img { width: 100%; height: 100%; object-fit: cover; }
.af-oc.on { border-color: var(--green); background: color-mix(in srgb, var(--green) 7%, #fff); color: var(--ink); }
.af-ofree { display: flex; gap: 8px; margin-top: 14px; }
.af-ofree .input { flex: 1; min-width: 0; }
.set-top { margin: 16px 0 10px !important; }
.acct-trail { height: 62px; } .acct-trail svg { height: 54px; }

/* ===== v60 (22.11 21:40) — Suivi + Carnet : bulles stylisées comme Agenda/Ressources */
.f-filters.res-doms { margin-top: 18px; flex-wrap: wrap !important; overflow: visible !important; -webkit-mask-image: none !important; mask-image: none !important; padding-right: 8px !important; row-gap: 8px; }
.f-filters .dchip { box-shadow: none; }
/* sommaire du carnet : bulles à la couleur de l'animal, avec icône */
.c-toc { gap: 8px !important; }
.c-toc .c-tchip { color: color-mix(in srgb, var(--c, var(--green)) 82%, #000); background: color-mix(in srgb, var(--c, var(--green)) 7%, #fff) !important; }
.c-toc .c-tchip:last-child { margin-right: 0; }
/* « Note rapide » : même famille de bulles */
.c-notelink { height: 38px !important; padding: 0 14px 0 12px !important; border: 1.5px solid color-mix(in srgb, var(--c, var(--green)) 30%, transparent) !important; border-radius: 999px !important; background: color-mix(in srgb, var(--c, var(--green)) 7%, #fff) !important; color: color-mix(in srgb, var(--c, var(--green)) 82%, #000) !important; font-size: 14.5px !important; font-weight: 600 !important; }
.c-notelink svg { width: 16px !important; height: 16px !important; }

/* ===== v61 (22.11 21:52) — traces de la patte du logo, sous-menu Animaux */
.acct-hops { position: relative; display: block; height: 64px; margin: 8px 0; }
.acct-hops img { position: absolute !important; height: auto !important; margin: 0; }
.anim-menu { position: fixed; z-index: 60; left: max(12px, calc(50% - 240px + 10px)); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); width: min(330px, calc(100vw - 24px)); padding: 10px 12px 12px; border-radius: 22px; background: #fff; box-shadow: 0 22px 44px -18px rgba(31,42,44,.5), 0 0 0 1px rgba(31,42,44,.05); opacity: 0; transform: translateY(8px); transition: opacity .18s, transform .18s; }
.anim-menu.in { opacity: 1; transform: none; }
.anim-menu::after { content: ""; position: absolute; left: 34px; bottom: -7px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); box-shadow: 3px 3px 6px -3px rgba(31,42,44,.2); }
.am-all { display: flex; align-items: center; gap: 10px; padding: 8px 6px 10px; border-bottom: 1px dashed var(--line-2); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.am-all .paw-ink { width: 22px; height: 22px; }
.am-h { display: flex; align-items: center; gap: 7px; margin: 10px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.am-h svg { width: 15px; height: 15px; }
.am-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.am-pet { flex: none; display: grid; justify-items: center; gap: 4px; width: 62px; color: var(--ink); text-decoration: none; }
.am-pet .av { width: 48px; height: 48px; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px color-mix(in srgb, var(--c) 45%, transparent); }
.am-pet small { font-size: 12.5px; font-weight: 600; max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== v62 (22.11 22:17) — sous-menu Animaux = petit raccourci ; bouton + peint (lavis vert mat, croix blanche aquarelle) */
.anim-menu { width: auto !important; padding: 10px 12px 8px !important; border-radius: 18px !important; }
.anim-menu::after { left: 26px !important; }
.am-row { display: flex; gap: 12px; overflow: visible; padding: 0; }
.am-pet { display: grid; justify-items: center; gap: 2px; width: auto !important; }
.am-av { display: block; text-decoration: none; }
.am-pet .av { width: 32px !important; height: 32px !important; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px color-mix(in srgb, var(--c) 45%, transparent) !important; }
.am-suivi { font-size: 11px; line-height: 1.3; color: var(--muted); text-decoration: none; padding: 1px 2px; }
.am-suivi:active, .am-av:active { opacity: .6; }
.tab-plus { background: #447f63 url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.42' cy='.38' r='.62'%3E%3Cstop offset='0' stop-color='%235f9479'/%3E%3Cstop offset='.7' stop-color='%23447f63'/%3E%3Cstop offset='1' stop-color='%2333694f'/%3E%3C/radialGradient%3E%3Cfilter id='d' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.07' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .13 0 0 0 0 .32 0 0 0 0 .23 0 0 0 -1.4 .85'/%3E%3CfeComposite in2='SourceGraphic' operator='in'/%3E%3C/filter%3E%3Cfilter id='l' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.05' numOctaves='2' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 .78 0 0 0 0 .9 0 0 0 0 .82 0 0 0 -1.6 .7'/%3E%3CfeComposite in2='SourceGraphic' operator='in'/%3E%3C/filter%3E%3C/defs%3E%3Ccircle cx='32' cy='32' r='32' fill='url(%23g)'/%3E%3Ccircle cx='32' cy='32' r='32' fill='%23000' filter='url(%23d)' opacity='.55'/%3E%3Ccircle cx='32' cy='32' r='32' fill='%23000' filter='url(%23l)' opacity='.35'/%3E%3Cg transform='translate(12 12)' fill='none' stroke='%23fff' stroke-linecap='round'%3E%3Cpath d='M20.8 6.5c-1 4-.2 9.5-.6 13.8s.9 9.4.4 13.4' stroke-width='8' opacity='.3'/%3E%3Cpath d='M20.4 8c-.5 8.2.2 16.2.2 24' stroke-width='4.2' opacity='.95'/%3E%3Cpath d='M6.6 20.2c4.1-.9 9.6.3 13.9-.2s9.3.4 13.1-.5' stroke-width='8' opacity='.3'/%3E%3Cpath d='M8 19.9c8.1.6 16.1.2 24-.3' stroke-width='4.2' opacity='.95'/%3E%3Ccircle cx='33.4' cy='17.2' r='1.6' fill='%23fff' stroke='none' opacity='.6'/%3E%3Ccircle cx='22.8' cy='35' r='1.3' fill='%23fff' stroke='none' opacity='.55'/%3E%3C/g%3E%3C/svg%3E") center / 100% no-repeat !important; }

/* ===== v63 (22.11 22:30) — Récupérer (dossier .zip) */
.c-export { margin-top: 22px; }
.exp-list { display: grid; gap: 8px; margin: 6px 0 12px; }
.exp-list > span { position: relative; display: grid; gap: 2px; min-height: 56px; padding: 9px 12px 9px 62px; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1.5px var(--line-2); align-content: center; }
.exp-list > span > svg { position: absolute; left: 0; top: 0; bottom: 0; width: 50px; height: 100%; padding: 0 14px; box-sizing: border-box; background: color-mix(in srgb, var(--green) 12%, #fff); color: var(--green); }
.exp-list b { font-size: 15px; } .exp-list small { font-size: 13px; color: var(--muted); }
.exp-note { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; padding: 12px 14px; border-radius: 14px; background: #f7f6f3; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.exp-note svg { flex: none; width: 18px; height: 18px; color: var(--muted); margin-top: 2px; }
.exp-docs { margin-top: 4px !important; }
/* bouton + : vraie aquarelle (image générée 22.11 22:35) */
.tab-plus { background: #447f63 url("images/plus-aquarelle.png?v=1") 52% 54% / 100% no-repeat !important; }   /* variante B gardée : images/plus-aquarelle-2.png (48% 47%) */
.wz-skiprow { flex-wrap: wrap; gap: 8px; }
