/* Pattes — direction artistique « carnet » : crème, vert sapin, sauge. */
@font-face {
  font-family: "Jakarta"; src: url("/static/fonts/jakarta.woff2") format("woff2");
  font-weight: 400 800; font-display: swap;
}
:root {
  --bg: #f7f5ee; --side: #fcfbf7; --card: #ffffff; --line: #e8e5da; --line-2: #dcd8ca;
  --ink: #27352d; --title: #1f3a2d; --muted: #7c8178; --soft: #a3a69c;
  --primary: #2c5a43; --primary-h: #224a36; --primary-soft: #e6eedc;
  --sage: #e8ecdb; --sage-2: #dbe3c8; --olive: #9cb36a;
  --peach: #fcecdf; --peach-ink: #c97a3d; --lav: #eeecf8; --lav-ink: #7f78c0;
  --sand: #f3e7cc;
  --ok: #3d7a54; --ok-soft: #e3f0e4; --late: #b54a3a; --late-soft: #fae5e0;
  --warn: #9a6a12; --warn-soft: #fbefd0;
  --matin: #e5a93b; --midi: #df7f45; --soir: #6c67b5;
  --r: 18px; --r-lg: 26px;
  --shadow: 0 1px 2px rgba(31, 58, 45, .04);
  --font: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --side-w: 300px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, dl, dd, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
img { max-width: 100%; }
button { font-family: inherit; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7;
      stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 16px; height: 16px; } .ic.lg { width: 26px; height: 26px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.grow { flex: 1; min-width: 0; }
.muted, .sub, .hint { color: var(--muted); }
.sub { font-size: .9rem; } .sub.inline { margin-left: 8px; }
.sub a, .row strong a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.hint { font-size: .84rem; margin-top: 3px; } .hint.ok { color: var(--ok); } .hint.pad { padding: 10px 4px; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .03em; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 2px; }

/* ---- titres ---- */
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.05; letter-spacing: -.045em; font-weight: 800; color: var(--title); }
h1 .dot, .brand .dot, .h-dot { color: var(--olive); }
.kicker { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
          display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.lead { color: var(--muted); margin-top: 12px; font-size: 1rem; }
h2.sec { font-size: 1.35rem; letter-spacing: -.03em; font-weight: 800; color: var(--title);
         display: flex; align-items: center; gap: 10px; margin: 40px 0 18px; }
h2.sec .more { margin-left: auto; font-size: .88rem; font-weight: 600; letter-spacing: 0; color: var(--title);
               display: inline-flex; align-items: center; gap: 4px; }
.pill { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 8px;
        background: var(--sage); color: var(--title); font-size: .78rem; font-weight: 700; letter-spacing: 0; }
.pill.late { background: var(--late-soft); color: var(--late); }

/* ---- structure ---- */
.side { display: none; }
.top { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; gap: 14px;
       height: 64px; padding: 0 16px; background: rgba(247, 245, 238, .92); backdrop-filter: blur(8px);
       border-bottom: 1px solid var(--line); }
.crumb { display: none; align-items: center; gap: 12px; color: var(--muted); font-size: .95rem; min-width: 0; }
.crumb a:hover { color: var(--title); }
.crumb .here { color: var(--title); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .brand-sm { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.25rem; letter-spacing: -.04em; color: var(--title); }
.top .brand-sm img { width: 32px; height: 32px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.private { display: none; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.bell { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--title); }
.bell:hover { background: var(--sage); }
.bell b { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--peach-ink);
          border: 2px solid var(--bg); }
.me { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sand);
      color: var(--title); font-weight: 700; text-transform: uppercase; }

main { padding: 22px 16px calc(100px + env(safe-area-inset-bottom)); max-width: 1640px; margin: 0 auto; }
main.center { min-height: 100dvh; display: grid; place-items: center; padding-bottom: 22px; }
.notice { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .85rem;
          color: var(--muted); margin-bottom: 28px; }
.notice span { display: inline-flex; align-items: center; gap: 8px; }
.notice a { color: var(--title); text-decoration: underline; text-underline-offset: 4px; display: inline-flex; gap: 6px; align-items: center; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.back { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; margin-bottom: 22px; }
.back:hover { color: var(--title); }
.cols { display: grid; gap: 0 28px; }

/* barre du bas (mobile) */
.tabbar { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; display: flex; background: var(--side);
          border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { flex: 1; display: grid; justify-items: center; gap: 3px; padding: 7px 2px; border-radius: 14px;
            font-size: .72rem; font-weight: 600; color: var(--muted); }
.tabbar a.on { color: var(--title); background: var(--sage); }
.tabbar .ic { width: 23px; height: 23px; }

@media (min-width: 640px) { .private { display: inline-flex; } }
@media (min-width: 1000px) {
  body.with-nav { padding-left: var(--side-w); }
  .tabbar { display: none; }
  .side { position: fixed; z-index: 10; inset: 0 auto 0 0; width: var(--side-w); display: flex; flex-direction: column;
          background: var(--side); border-right: 1px solid var(--line); padding: 46px 30px 0; overflow-y: auto; }
  .top { height: 108px; padding: 0 42px 0 58px; background: var(--side); backdrop-filter: none; position: static; }
  .top .brand-sm { display: none; }
  .crumb { display: flex; }
  main { padding: 46px 42px 70px 58px; }
  .cols { grid-template-columns: 1.6fr 1fr; align-items: start; }
}
.brand { display: flex; align-items: center; gap: 14px; font-size: 2.35rem; font-weight: 800; letter-spacing: -.055em; color: var(--title); }
.brand img { width: 54px; height: 54px; }
.tagline { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 22px 0 52px; }
.side nav { display: grid; gap: 8px; }
.side nav a { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; font-weight: 600;
              font-size: 1.05rem; color: #59605a; }
.side nav a:hover { background: #f1f0e8; }
.side nav a.on { background: var(--sage); color: var(--title); font-weight: 700; }
.side nav a .pill { margin-left: auto; background: rgba(255, 255, 255, .7); }
.side nav a:not(.on) .pill { background: var(--sage); }
.side nav a .pill.late { background: var(--late-soft); }
.side-quote { position: relative; overflow: hidden; margin: auto 0 28px; padding: 26px 22px 24px; border-radius: var(--r);
              background: var(--sage); color: var(--title); }
.side-quote p { font-size: 1.12rem; line-height: 1.55; margin-top: 14px; letter-spacing: -.01em; }
.side-quote small { display: block; color: var(--muted); margin-top: 14px; font-size: .86rem; line-height: 1.7; }
.side-quote .deco { position: absolute; right: -18px; bottom: -14px; width: 76px; opacity: .5; color: #fff; }
.side-quote small { padding-right: 34px; }
.side-user { display: flex; align-items: center; gap: 14px; margin: 0 -30px; padding: 22px 30px; border-top: 1px solid var(--line); }
.side-user:hover { background: #f1f0e8; }
.side-user .me { width: 46px; height: 46px; }
.side-user strong { display: block; color: var(--title); }
.side-user small { color: var(--muted); display: inline-flex; gap: 5px; align-items: center; }
.side-user i { width: 8px; height: 8px; border-radius: 50%; background: var(--olive); margin-left: auto; }

/* ---- composants ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
        padding: 8px 26px; margin-bottom: 16px; }
.card.pad { padding: 30px 32px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 22px 0 12px; }
.card-head h3 { font-size: 1.2rem; letter-spacing: -.03em; color: var(--title); font-weight: 800; }
.card-head .add-link { margin-left: auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--title); }
.card-head .add-link:hover { background: var(--sage); }
.card-head .count { margin-left: auto; color: var(--muted); font-size: .85rem; font-weight: 600; }
.card.empty, .empty { color: var(--muted); padding: 36px 20px; text-align: center; font-size: .95rem; }
.empty .btn { margin-top: 18px; }
.flash { padding: 13px 18px; border-radius: 14px; margin-bottom: 20px; font-weight: 600; background: var(--ok-soft); color: var(--ok); }
.flash.err { background: var(--late-soft); color: var(--late); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
       border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--title);
       font: 700 .95rem var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--title); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(44, 90, 67, .18); }
.btn.primary:hover { background: var(--primary-h); }
.btn.big { min-height: 56px; padding: 0 26px; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--sage); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: .86rem; border-radius: 10px; }
.btn.icon { width: 44px; padding: 0; }
.btn.block { width: 100%; }
.btn.danger { color: var(--late); border-color: #ecc4bb; background: transparent; }
.danger-text { color: var(--late); }
.danger-zone { margin-top: 30px; text-align: center; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--title); font-size: .92rem; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.x { width: 36px; height: 36px; border: 0; background: none; color: var(--soft); border-radius: 50%; cursor: pointer;
     display: grid; place-items: center; }
.x:hover { background: var(--late-soft); color: var(--late); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 4px 10px;
       border-radius: 8px; background: var(--sage); color: var(--title); vertical-align: middle; }
.tag.grey { background: #f0eee6; color: var(--muted); }
.tag.med { background: var(--peach); color: #a8571d; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.late { background: var(--late-soft); color: var(--late); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.slot.matin { background: #fcf0d4; color: #8a5d08; }
.tag.slot.midi { background: var(--peach); color: #a8571d; }
.tag.slot.soir { background: var(--lav); color: var(--soir); }
.chip { display: inline-flex; align-items: center; padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 8px;
        font-size: .84rem; color: var(--muted); background: var(--card); }

.avatar { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: end center;
          background: var(--sand); overflow: hidden; }
.avatar.chat { background: var(--peach); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar img.art { width: 92%; height: 92%; object-fit: contain; object-position: bottom; }
.avatar.sm { width: 42px; height: 42px; border-radius: 12px; }
.avatar.lg { width: 140px; height: 140px; border-radius: 26px; }
@media (min-width: 700px) { .avatar.lg { width: 182px; height: 182px; border-radius: 30px; } }

.list .row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.list .row:first-child { border-top: 0; }
.list.compact .row { padding: 9px 0; }
.row strong { color: var(--title); }
.row.late .when { color: var(--late); font-weight: 700; }
.pin { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--sage); color: var(--title); }
.pin.vaccin { background: var(--lav); color: var(--lav-ink); }
.pin.rappel { background: var(--peach); color: var(--peach-ink); }
.row.late .pin { background: var(--late-soft); color: var(--late); }

/* ---- bandeau ---- */
.hero { position: relative; overflow: hidden; display: grid; gap: 20px; background: var(--sage); border-radius: var(--r-lg);
        padding: 34px 26px 0; margin-bottom: 26px; }
.hero h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.12; letter-spacing: -.045em; font-weight: 800; color: var(--title); }
.hero p { color: #5d655d; margin: 18px 0 22px; line-height: 1.75; }
.hero .bar { height: 8px; max-width: 360px; border-radius: 99px; background: rgba(255, 255, 255, .7); overflow: hidden; margin: -6px 0 20px; }
.hero .bar i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.hero-art { position: relative; height: 230px; }
.hero-art .disc { position: absolute; right: -40px; bottom: -120px; width: 330px; height: 330px; border-radius: 50%; background: var(--sage-2); }
.hero-art .dog { position: absolute; right: 30px; bottom: 0; width: 210px; }
.hero-art .cat { position: absolute; right: 200px; bottom: 0; width: 120px; }
.hero-art .paw { position: absolute; color: #c6d0b2; }
.float { position: absolute; left: 0; top: 40px; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
         background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(31, 58, 45, .1); transform: rotate(-4deg); white-space: nowrap; width: max-content; }
.float .pin { width: 36px; height: 36px; border-radius: 10px; }
.float strong { display: block; font-size: .86rem; color: var(--title); font-weight: 600; }
.float small { font-size: .74rem; color: var(--muted); }
.float .ok { color: var(--olive); margin-left: 10px; }
.hero-body { padding-bottom: 6px; }
@media (min-width: 1100px) {
  .hero { grid-template-columns: 1fr 1fr; padding: 48px 48px 0; min-height: 344px; }
  .hero-body { padding-bottom: 48px; }
  .hero-art { height: auto; }
  .hero-art .disc { right: 10px; bottom: -40px; width: 352px; height: 352px; }
  .hero-art .dog { right: 50px; width: 260px; }
  .hero-art .cat { right: 270px; width: 140px; }
  .float { left: auto; right: 250px; top: 46px; }
}
@media (max-width: 520px) { .hero-art .cat { display: none; } .float { top: 20px; } }

/* ---- statistiques ---- */
.stats { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin-bottom: 8px; }
@media (max-width: 639px) { .stat { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; } .stat .pin { width: 40px; height: 40px; } .stat .num { font-size: 1.7rem; } .stat small.d { display: none; } }
@media (min-width: 640px) { .stats { gap: 22px; } }
.stat { display: flex; align-items: center; gap: 20px; background: var(--card); border: 1px solid var(--line);
        border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); transition: border-color .15s; }
a.stat:hover { border-color: var(--line-2); }
.stat .pin { width: 52px; height: 52px; border-radius: 14px; }
.stat .num { font-size: 2.2rem; font-weight: 700; color: var(--title); font-variant-numeric: tabular-nums; letter-spacing: -.04em; min-width: 30px; }
.stat .num small { font-size: 1.1rem; color: var(--muted); }
.stat .num.warn { color: var(--late); }
.stat strong { display: block; font-size: .92rem; color: var(--title); font-weight: 600; }
.stat small.d { font-size: .8rem; color: var(--muted); }

/* ---- prises ---- */
.daynav { display: flex; gap: 8px; align-items: center; }
h3.slot { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; padding: 22px 0 8px; color: var(--title); letter-spacing: -.02em; }
h3.slot .ic { color: var(--matin); } h3.slot.midi .ic { color: var(--midi); } h3.slot.soir .ic { color: var(--soir); }
h3.slot .count { margin-left: auto; color: var(--muted); font-size: .85rem; font-weight: 600; }
.check { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff;
         display: grid; place-items: center; cursor: pointer; padding: 0; color: transparent; flex: none; }
.check .ic { width: 22px; height: 22px; stroke-width: 2.6; }
.check:hover { border-color: var(--primary); color: #b7c9b3; }
.check:disabled { opacity: .4; cursor: not-allowed; }
.dose.done .check { background: var(--primary); border-color: var(--primary); color: #fff; }
.dose.done .grow > strong, .dose.done .grow > .sub { opacity: .5; }

/* ---- animaux ---- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 40px 0 22px; }
.toolbar h2.sec { margin: 0 auto 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { position: relative; }
.search .ic { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--muted); width: 18px; height: 18px; }
.search input { padding-left: 46px; width: min(280px, 100%); }
.filters select { width: auto; }
.grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); } }
.acard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
         overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; height: 100%; }
.acard:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(31, 58, 45, .08); }
.acard .ph { position: relative; height: 240px; overflow: hidden; background: var(--sand); display: flex; align-items: flex-end; justify-content: center; }
.acard .ph.chat { background: var(--peach); }
.acard .ph img { width: 100%; height: 100%; object-fit: cover; }
.acard .ph img.art { width: auto; height: 205px; object-fit: contain; }
.acard .badge { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
                background: rgba(255, 255, 255, .92); border-radius: 8px; font-size: .74rem; color: var(--title); font-weight: 600; }
.acard .badge.med { color: #a8571d; }
.acard .go { position: absolute; right: 14px; bottom: 14px; width: 36px; height: 36px; border-radius: 50%; background: #fff;
             display: grid; place-items: center; color: var(--title); box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.acard .body { padding: 22px 22px 0; flex: 1; }
.acard h3 { font-size: 1.45rem; letter-spacing: -.035em; color: var(--title); font-weight: 700; display: flex; align-items: center; }
.acard h3 .sex { margin-left: auto; color: var(--muted); font-size: 1.1rem; font-weight: 500; }
.acard .meta { color: var(--muted); font-size: .86rem; margin-top: 6px; }
.acard .foot { display: flex; align-items: center; gap: 8px; margin: 18px 22px 0; padding: 16px 0 18px;
               border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.acard .foot i { width: 7px; height: 7px; border-radius: 50%; background: var(--olive); }
.acard .foot i.grey { background: var(--soft); }
.acard .foot .ic { margin-left: auto; }
.addcard { min-height: 380px; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center;
           border: 1.5px dashed #cdd4bd; border-radius: var(--r); background: #f3f4ea; color: var(--title); padding: 30px; }
.addcard:hover { background: var(--sage); }
.addcard .plus { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-2); margin-bottom: 16px; }
.addcard strong { font-size: 1.2rem; letter-spacing: -.02em; }
.addcard small { color: var(--muted); }
.addcard .link { margin-top: 14px; }

/* ---- fiche ---- */
.profile { display: flex; flex-wrap: wrap; gap: 22px 34px; align-items: center; margin-bottom: 36px; }
.profile .info { flex: 1; min-width: 240px; }
.profile .sub { font-size: 1rem; margin-top: 10px; }
.profile .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.profile > .btn { align-self: center; }
.tabs { display: flex; gap: 34px; overflow-x: auto; margin: 0 -16px 32px; padding: 0 16px; scrollbar-width: none;
        border-bottom: 1px solid var(--line); position: sticky; top: 64px; background: var(--bg); z-index: 5; }
@media (min-width: 1000px) { .tabs { margin: 0 0 32px; padding: 0; top: 0; } }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 10px; padding: 14px 0 16px; font-weight: 500; color: var(--muted);
          border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 1rem; }
.tabs a b { font-size: .72rem; background: #efeee6; color: var(--muted); border-radius: 6px; padding: 2px 7px; font-weight: 600; }
.tabs a.on { color: var(--title); font-weight: 700; border-color: var(--primary); }
.tabs a.on b { background: var(--sage); color: var(--title); }
html:not(.js) .tabs { display: none; }
html.js .tabpanel:not(.on) { display: none; }
html:not(.js) .tabpanel { margin-bottom: 30px; }
.split { display: grid; gap: 24px; }
@media (min-width: 1100px) { .split { grid-template-columns: 2fr 1fr; align-items: start; } }

.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: .92rem; }
.facts dd { color: var(--title); text-align: right; overflow-wrap: anywhere; }
.infocard { padding: 30px 32px 14px; }
.infocard .pin { margin-bottom: 30px; }
.infocard h3 { font-size: 1.3rem; letter-spacing: -.035em; color: var(--title); margin-bottom: 18px; }
.desc { white-space: pre-line; color: #4e564f; line-height: 1.7; padding: 4px 0 22px; }
.softcard { background: var(--sage); border-radius: var(--r); padding: 34px 32px; color: var(--title); }
.softcard h3 { font-size: 1.4rem; letter-spacing: -.035em; margin: 24px 0 10px; }
.softcard p { color: #5d655d; line-height: 1.7; }
.softcard .link { margin-top: 20px; }

.items { display: grid; gap: 14px; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px; box-shadow: var(--shadow); }
.item strong { color: var(--title); }
.item.important { border-left: 4px solid var(--peach-ink); }
.items.past .item { opacity: .7; }
.item-head { display: flex; gap: 12px; align-items: flex-start; }
.note-text { white-space: pre-line; margin-top: 6px; line-height: 1.65; }
.scan { display: block; margin-top: 12px; max-height: 240px; border-radius: 12px; border: 1px solid var(--line); }
.week { display: flex; gap: 6px; align-items: flex-end; margin-top: 14px; flex-wrap: wrap; }
.week .day { display: grid; justify-items: center; gap: 3px; }
.week .day i { width: 28px; height: 28px; border-radius: 8px; background: #efeee6; display: grid; place-items: center;
               font-style: normal; font-size: .72rem; font-weight: 800; color: #fff; }
.week .day small { font-size: .68rem; color: var(--muted); }
.week .full i { background: var(--primary); } .week .part i { background: var(--matin); }
.week .miss i { background: var(--late); } .week .todo i { background: #fff; border: 2px dashed var(--line-2); }
.week .off i { background: transparent; border: 1px solid var(--line); }
.week .legend { font-size: .74rem; color: var(--muted); margin: 0 0 18px 8px; }

/* ---- formulaires ---- */
label { display: grid; gap: 7px; font-size: .86rem; font-weight: 600; color: var(--muted); }
legend { font-size: .86rem; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
input, select, textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 12px;
  background: #fff; color: var(--ink); font: 15px var(--font); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
input::placeholder, textarea::placeholder { color: var(--soft); }
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-height: 0; accent-color: var(--primary); }
input[type=file] { padding: 12px; }
.checkline { display: flex; align-items: center; gap: 10px; color: var(--ink); align-self: end; min-height: 50px; }
.form { padding-top: 26px; padding-bottom: 26px; }
.fields { display: grid; gap: 18px; }
@media (min-width: 700px) { .fields { grid-template-columns: 1fr 1fr; } .fields .wide { grid-column: 1 / -1; } }
.actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.actions.between { justify-content: space-between; align-items: center; margin-top: 14px; }
.inline-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; padding: 16px 0 20px; border-top: 1px solid var(--line); }
.seg { display: flex; background: #eeede4; border-radius: 12px; padding: 4px; gap: 4px; }
.seg label { flex: 1; display: block; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 10px 16px; border-radius: 9px; color: var(--muted);
            cursor: pointer; white-space: nowrap; font-size: .9rem; }
.seg input:checked + span { background: var(--card); color: var(--title); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); font-weight: 700; }
.seg.multi input:checked + span { background: var(--primary); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--olive); }
details.add { padding: 0 26px; }
details.add summary { cursor: pointer; font-weight: 700; color: var(--title); padding: 18px 0; list-style: none;
                      display: flex; align-items: center; gap: 12px; }
details.add summary .pin { width: 34px; height: 34px; border-radius: 10px; }
details.add summary::-webkit-details-marker { display: none; }
details.add[open] summary { border-bottom: 1px solid var(--line); }

/* ---- connexion ---- */
.login { width: min(420px, 100%); display: grid; gap: 16px; padding: 40px 34px; text-align: center; }
.login .brand { justify-content: center; margin-bottom: 4px; }
.login .tagline { margin: 0 0 10px; }
.login label { text-align: left; }
.login-art { width: 120px; margin: 0 auto -6px; }
/* garde-fous mobile */
.split > *, .cols > * { min-width: 0; }
.inline-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
@media (max-width: 480px) { .inline-form { grid-template-columns: 1fr 1fr; } .inline-form .btn { grid-column: 1 / -1; } }
input[type=date] { min-width: 0; }
