/* =====================================================================
   NICHÉE — styles communs
   ===================================================================== */
:root {
  --vert: #1F4D3F;
  --vert-fonce: #163A2F;
  --vert-clair: #E3EDE8;
  --creme: #F6F1E7;
  --creme-fonce: #F6EBD9;
  --orange: #E9A23B;
  --orange-clair: #FBEBD0;
  --orange-texte: #7A4A0B;
  --texte: #1E2B26;
  --texte-doux: #5E6B66;
  --bordure: #DDD5C6;
  --blanc: #FFFFFF;
  --erreur: #8A2A12;
  --erreur-fond: #FDE2DC;
  --rayon: 14px;
  --titre: "Bricolage Grotesque", system-ui, sans-serif;
  --corps: "Figtree", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--creme);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 16px;
  line-height: 1.45;
}

h1, h2, h3 { font-family: var(--titre); color: var(--vert); margin: 0; }

a { color: var(--vert); }
a:hover { color: var(--vert-fonce); }

[hidden] { display: none !important; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border: 0; border-radius: 12px;
  background: var(--vert); color: var(--blanc);
  font: 600 16px var(--corps);
  cursor: pointer;
  transition: background .15s;
}
.btn:hover { background: var(--vert-fonce); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-full { width: 100%; }
.btn-ghost {
  background: transparent; color: var(--vert);
  border: 1.5px solid var(--bordure);
}
.btn-ghost:hover { background: var(--vert-clair); }

.link-btn {
  background: none; border: 0; padding: 8px 0;
  color: var(--vert); font: 600 15px var(--corps);
  text-decoration: underline; cursor: pointer;
}

/* ---------- Langue FR / DE ---------- */
.lang-switch {
  display: inline-flex; border: 1px solid var(--bordure);
  border-radius: 10px; overflow: hidden; background: var(--blanc);
}
.lang-switch button {
  min-height: 36px; padding: 0 12px; border: 0;
  background: transparent; color: var(--texte);
  font: 700 13px var(--corps); cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--vert); color: var(--blanc); }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select {
  min-height: 48px; padding: 0 14px;
  border: 1.5px solid var(--bordure); border-radius: 12px;
  background: var(--blanc); color: var(--texte);
  font: 16px var(--corps);
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--vert);
  box-shadow: 0 0 0 3px var(--vert-clair);
}
.field small { color: var(--texte-doux); font-size: 13px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* ---------- Messages ---------- */
.msg { border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.msg-ok { background: var(--vert-clair); color: var(--vert); }
.msg-err { background: var(--erreur-fond); color: var(--erreur); }

/* ---------- Page de connexion ---------- */
.auth-page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px 16px;
}
.auth-top { width: 100%; max-width: 420px; display: flex; justify-content: flex-end; margin-bottom: 16px; }
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--blanc); border-radius: 20px;
  padding: 32px 28px; box-shadow: 0 2px 12px rgba(31, 77, 63, .08);
  display: flex; flex-direction: column; gap: 20px;
}
.auth-logo { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.auth-logo img { width: 220px; height: auto; }
.auth-logo p { margin: 0; color: var(--texte-doux); font-size: 14px; }

.tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--creme); border-radius: 12px; padding: 4px;
}
.tabs button {
  min-height: 42px; border: 0; border-radius: 9px;
  background: transparent; color: var(--texte-doux);
  font: 600 15px var(--corps); cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--blanc); color: var(--vert); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.center { text-align: center; }

/* ---------- App (après connexion) ---------- */
.app-header {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 12px 24px; background: var(--blanc);
  border-bottom: 1px solid #ECE6DA;
}
.app-header img { height: 40px; width: auto; }
.app-header .spacer { flex: 1; }

.app-main { max-width: 960px; margin: 0 auto; padding: 32px 16px 48px; display: flex; flex-direction: column; gap: 24px; }

.card {
  background: var(--blanc); border-radius: 18px;
  padding: 28px 24px; box-shadow: 0 1px 4px rgba(31, 77, 63, .06);
  display: flex; flex-direction: column; gap: 18px;
}
.card p { margin: 0; color: var(--texte-doux); }
.onboarding { max-width: 560px; margin: 0 auto; width: 100%; }

.box-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.box-item {
  border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px;
  background: var(--vert-clair); color: var(--vert);
}
.box-item.chat { background: var(--orange-clair); color: var(--orange-texte); }
.box-item b { font-size: 16px; }
.box-item span { font-size: 13px; }

.next-step {
  border: 2px dashed var(--bordure); border-radius: 16px; padding: 20px;
  color: var(--texte-doux); text-align: center;
}

.loading { text-align: center; color: var(--texte-doux); padding: 48px 0; }

/* ---------- Calendrier ---------- */
.app-main:has(.dash:not([hidden])) { max-width: 1280px; }
.dash { display: flex; flex-direction: column; gap: 20px; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.hello { margin: 0 0 4px; color: var(--texte-doux); font-weight: 600; }
.cal-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
#cal-range { font-weight: 700; min-width: 170px; }
.icon-btn {
  width: 40px; height: 40px; border: 1px solid var(--bordure); border-radius: 10px;
  background: var(--blanc); color: var(--texte);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn:hover { background: var(--vert-clair); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat { background: var(--blanc); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.stat span { font-size: 14px; color: var(--texte-doux); }
.stat b { font-family: var(--titre); font-size: 28px; color: var(--texte); }

.cal-card { background: var(--blanc); border-radius: 16px; padding: 6px 0; }
.cal-scroll { overflow-x: auto; }
.cal-grid { min-width: 900px; display: flex; flex-direction: column; }
.cal-row {
  display: grid; grid-template-columns: 150px repeat(14, minmax(0, 1fr));
  min-height: 50px; padding: 0 16px; border-bottom: 1px solid #F1ECE2;
}
.cal-row:last-child { border-bottom: 0; }
.cal-label { grid-row: 1; grid-column: 1; align-self: center; font-weight: 600; font-size: 14px; padding-right: 8px; }
.cal-head { font-size: 12px; color: var(--texte-doux); text-align: center; border-bottom: 1px solid #ECE6DA; min-height: 0; padding-top: 6px; padding-bottom: 6px; }
.cal-head .cal-label { text-align: left; }
.cal-head .day { grid-row: 1; display: flex; flex-direction: column; padding: 4px 0; margin: 0 2px; border-radius: 8px; }
.cal-head .day b { font-size: 15px; color: var(--texte); }
.cal-head .day.weekend { background: var(--creme); }
.cal-head .day.today { background: var(--vert); color: var(--blanc); }
.cal-head .day.today b { color: var(--blanc); }
.cal-cell { grid-row: 1; border: 0; border-left: 1px solid #F6F1E7; background: transparent; cursor: pointer; padding: 0; }
.cal-cell.weekend { background: #FBF8F2; }
.cal-cell:hover, .cal-cell:focus-visible { background: var(--vert-clair); outline: none; }
.cal-bar {
  grid-row: 1; align-self: center; z-index: 1; margin: 0 2px; min-height: 34px; min-width: 0;
  border: 0; border-radius: 8px; padding: 0 10px;
  background: var(--vert); color: var(--blanc);
  font: 600 13px var(--corps); text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
.cal-bar:hover { filter: brightness(1.08); }
.cal-bar.chat { background: var(--orange-clair); color: var(--orange-texte); }
.cal-bar.demande { background: var(--blanc); color: var(--vert); border: 1.5px dashed var(--vert); }
.cal-bar.chat.demande { color: var(--orange-texte); border-color: var(--orange-texte); }
.cal-empty { padding: 24px; text-align: center; color: var(--erreur); margin: 0; }

.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--texte-doux); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.sw-dog { background: var(--vert); }
.sw-cat { background: var(--orange-clair); }
.sw-req { border: 1.5px dashed var(--vert); width: 12px; height: 12px; }

.pending-item {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px; padding: 12px 0; border-bottom: 1px solid #F1ECE2;
}
.pending-item:last-child { border-bottom: 0; }
.pending-item .actions { display: flex; gap: 8px; }
.muted { color: var(--texte-doux); font-size: 14px; margin: 0; }

.cal-bar.warn::before {
  content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--orange); margin-right: 7px; vertical-align: 1px;
  box-shadow: 0 0 0 2px var(--blanc);
}
.msg-warn { background: var(--orange-clair); color: var(--orange-texte); }
#detail-body { display: flex; flex-direction: column; gap: 14px; }
#detail-body .link-btn { align-self: flex-start; }

/* ---------- Navigation ---------- */
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 8px 14px; border-radius: 10px;
  color: var(--texte-doux); font-weight: 600; text-decoration: none;
}
.main-nav a:hover { background: var(--creme); color: var(--vert); }
.main-nav a[aria-current="page"] { background: var(--vert-clair); color: var(--vert); }

/* ---------- Fiches animaux ---------- */
.app-wide { max-width: 1280px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.animals-layout { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.animals-list-card { flex: 1 1 300px; max-width: 420px; min-width: 0; padding: 18px; gap: 12px; }
.fiche { flex: 999 1 480px; min-width: 0; }
.fiche:focus { outline: none; }
.animal-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 70vh; overflow-y: auto; }
.list-empty { padding: 12px 4px; }
.animal-item {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 10px; border: 0; border-radius: 12px; background: transparent;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.animal-item:hover { background: var(--creme); }
.animal-item.selected { background: var(--vert-clair); }
.animal-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.animal-item-text .muted { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%;
  background: #D6965A; color: var(--blanc);
  display: flex; align-items: center; justify-content: center;
  font: 700 24px var(--titre);
}
.avatar.chat { background: var(--orange-texte); }
.avatar-sm { width: 38px; height: 38px; font-size: 16px; }
.fiche-head { display: flex; align-items: center; gap: 14px; }
.section-title {
  margin: 8px 0 0; font: 700 13px var(--corps); letter-spacing: .06em;
  text-transform: uppercase; color: var(--texte-doux);
}
.chip { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip-ok { background: var(--vert-clair); color: var(--vert); }
.chip-warn { background: var(--orange-clair); color: var(--orange-texte); }
.chip-bad { background: var(--erreur-fond); color: var(--erreur); }
.vaccins { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid #ECE6DA; padding-top: 16px; }
.vac-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vac-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center;
  gap: 12px; padding: 8px 0; border-bottom: 1px solid #F1ECE2;
}
.vac-name { font-weight: 600; }
.vac-date { color: var(--texte-doux); font-size: 14px; }
.vac-add { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }

@media (max-width: 600px) {
  .animals-list-card { max-width: none; flex-basis: 100%; }
  .fiche { flex-basis: 100%; }
  .animal-item .chip { display: none; }
  .animal-item .avatar-sm { box-shadow: none; }
  .vac-row { grid-template-columns: minmax(0, 1fr) auto; }
  .vac-add { grid-template-columns: 1fr; }
  .main-nav { order: 3; width: 100%; }
}

/* ---------- Journal du séjour : côté gérant ---------- */
.stack { display: flex; flex-direction: column; gap: 20px; }
.back-link { align-self: flex-start; text-decoration: none; }
.back-link::before { content: "← "; }
a.btn { text-decoration: none; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.share-row input {
  flex: 1 1 260px; min-width: 0; min-height: 48px; padding: 0 14px;
  border: 1.5px solid var(--bordure); border-radius: 12px; background: var(--creme);
  font: 14px var(--corps); color: var(--texte-doux);
}
.photo-preview { width: 100%; max-width: 360px; max-height: 280px; object-fit: cover; border-radius: 12px; margin-top: 6px; }
.field input[type="file"] { padding: 10px; min-height: 0; }
.check-line { display: flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 600; font-size: 15px; }
.check-line input { width: 20px; height: 20px; accent-color: var(--vert); }
.news-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.news-item { display: flex; flex-wrap: wrap; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid #F1ECE2; }
.news-item:last-child { border-bottom: 0; padding-bottom: 0; }
.news-photo { width: 140px; height: 105px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.news-body { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.news-body p { margin: 0; color: var(--texte); }
.news-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.danger-link { color: var(--erreur); padding: 0; }

/* ---------- Journal du séjour : page du propriétaire ---------- */
.journal-page { background: var(--creme); }
.j-hero { background: var(--vert); color: var(--creme-fonce); border-radius: 0 0 28px 28px; }
.j-hero-inner { max-width: 640px; margin: 0 auto; padding: 22px 20px 26px; display: flex; flex-direction: column; gap: 12px; }
.j-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.j-top .lang-switch { flex-shrink: 0; }
.j-top .lang-switch button { padding: 0 10px; }
.j-pension { font-size: 14px; font-weight: 600; letter-spacing: .03em; }
.j-title { color: var(--blanc); font-size: clamp(26px, 7vw, 36px); line-height: 1.15; }
.j-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; }
.j-bar { flex: 1 1 120px; height: 6px; border-radius: 3px; background: rgba(246, 235, 217, .25); overflow: hidden; }
.j-bar > div { height: 6px; background: var(--orange); width: 0; transition: width .4s; }
.lang-switch-dark { background: transparent; border-color: rgba(246, 235, 217, .4); }
.lang-switch-dark button { color: var(--creme-fonce); }
.lang-switch-dark button[aria-pressed="true"] { background: var(--creme-fonce); color: var(--vert); }
.j-main { max-width: 640px; margin: 0 auto; padding: 20px 16px 40px; display: flex; flex-direction: column; gap: 14px; }
.j-feed { display: flex; flex-direction: column; gap: 14px; }
.j-day-title { font: 700 13px var(--corps); letter-spacing: .06em; text-transform: uppercase; color: var(--texte-doux); margin-top: 8px; }
.j-card { background: var(--blanc); border-radius: 18px; overflow: hidden; box-shadow: 0 1px 4px rgba(31, 77, 63, .06); }
.j-photo { display: block; width: 100%; max-height: 480px; object-fit: cover; background: var(--vert-clair); }
.j-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.j-card-body p { margin: 0; font-size: 16px; line-height: 1.5; }
.j-time { font-size: 13px; color: var(--texte-doux); }
.j-empty { text-align: center; color: var(--texte-doux); padding: 32px 0; margin: 0; }
.j-footer { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.j-powered { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; font-size: 13px; color: var(--texte-doux); }
.j-powered img { border-radius: 4px; }

/* ---------- Réglages ---------- */
.box-table { display: flex; flex-direction: column; gap: 8px; }
.box-head, .box-line { display: grid; grid-template-columns: minmax(0, 1fr) 150px 70px; gap: 10px; align-items: center; }
.box-head { font-size: 13px; font-weight: 700; color: var(--texte-doux); }
.box-head span:last-child { text-align: center; }
#box-rows { display: flex; flex-direction: column; gap: 8px; }
.box-line input[type="text"], .box-line select {
  min-height: 44px; padding: 0 12px; border: 1.5px solid var(--bordure); border-radius: 10px;
  background: var(--blanc); font: 15px var(--corps); color: var(--texte); min-width: 0;
}
.box-line.inactive input[type="text"] { color: var(--texte-doux); text-decoration: line-through; }
.toggle { display: flex; justify-content: center; }
.toggle input { width: 22px; height: 22px; accent-color: var(--vert); }
.sticky-actions {
  position: sticky; bottom: 0; padding: 12px 0;
  background: linear-gradient(to top, var(--creme) 70%, transparent);
}
.msg a { margin-left: 6px; font-weight: 700; }

/* ---------- Facture : éditeur ---------- */
.inv-lines { display: flex; flex-direction: column; gap: 8px; }
.inv-line { display: grid; grid-template-columns: minmax(0, 1fr) 80px 130px auto; gap: 8px; align-items: center; }
.inv-line-head { font-size: 13px; font-weight: 700; color: var(--texte-doux); }
.inv-line input {
  min-height: 44px; padding: 0 12px; border: 1.5px solid var(--bordure); border-radius: 10px;
  background: var(--blanc); font: 15px var(--corps); color: var(--texte); min-width: 0;
}
.btn:disabled { cursor: not-allowed; }

/* ---------- Facture : document ---------- */
.invoice {
  position: relative; background: var(--blanc); color: #111;
  border-radius: 16px; padding: 40px; box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
  display: flex; flex-direction: column; gap: 22px; font-size: 14px;
}
.inv-draft-badge {
  position: absolute; top: 16px; right: 16px; padding: 4px 10px; border-radius: 999px;
  background: var(--orange-clair); color: var(--orange-texte); font-weight: 700; font-size: 12px;
}
.inv-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.inv-seller, .inv-meta, .inv-client { display: flex; flex-direction: column; gap: 2px; }
.inv-seller-name { font-family: var(--titre); font-size: 20px; color: var(--vert); margin-bottom: 4px; }
.inv-meta { text-align: right; }
.inv-meta h1 { font-size: 28px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.inv-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--texte-doux); }
.inv-client { padding: 14px 16px; background: var(--creme); border-radius: 12px; max-width: 360px; }
.inv-period { margin: 0; font-weight: 600; }
.inv-table { width: 100%; border-collapse: collapse; }
.inv-table th, .inv-table td { padding: 10px 8px; border-bottom: 1px solid #E7E1D6; text-align: left; vertical-align: top; }
.inv-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--texte-doux); border-bottom: 2px solid var(--vert); }
.inv-table .num { text-align: right; white-space: nowrap; }
.inv-table tfoot th, .inv-table tfoot td { font-size: 17px; font-weight: 700; border-bottom: 0; padding-top: 14px; }
.inv-table tfoot th { text-align: right; }
.inv-vat { margin: 0; font-style: italic; color: var(--texte-doux); }
.inv-thanks { margin: 0; }
.inv-powered { margin: 0; font-size: 11px; color: #9AA39F; text-align: center; }

@media (max-width: 600px) {
  .invoice { padding: 22px 16px; }
  .inv-meta { text-align: left; }
  .inv-line { grid-template-columns: minmax(0, 1fr) 70px; }
  .inv-line-head { display: none; }
  .box-head, .box-line { grid-template-columns: minmax(0, 1fr) 110px 50px; }
}

/* ---------- Impression (facture en PDF) ---------- */
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; }
  .no-print, .app-header, .inv-draft-badge { display: none !important; }
  .app-main { padding: 0; max-width: none; }
  .invoice { box-shadow: none; border-radius: 0; padding: 0; }
  .inv-client { background: #F4F1EA; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Fenêtres (détail, nouvelle réservation) ---------- */
.dlg {
  border: 0; border-radius: 18px; padding: 0;
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .2); color: var(--texte);
}
.dlg::backdrop { background: rgba(30, 43, 38, .45); }
.dlg-inner { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.detail-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.detail-list dt { color: var(--texte-doux); }
.detail-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.btn-danger { background: var(--erreur-fond); color: var(--erreur); }
.btn-danger:hover { background: #F9CFC4; }
.sub-block { border-left: 3px solid var(--orange); padding-left: 14px; display: flex; flex-direction: column; gap: 14px; }
.fieldset { border: 0; margin: 0; padding: 0; }
.fieldset legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 6px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 500; }
.radio-row input { width: 18px; height: 18px; accent-color: var(--vert); }
.field textarea {
  min-height: 80px; padding: 10px 14px; resize: vertical;
  border: 1.5px solid var(--bordure); border-radius: 12px; font: 16px var(--corps);
}
.field textarea:focus { outline: none; border-color: var(--vert); box-shadow: 0 0 0 3px var(--vert-clair); }

@media (max-width: 480px) {
  .auth-card { padding: 24px 18px; }
  .dlg-inner { padding: 18px; }
  #btn-new { width: 100%; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 12px; }
  .stat span { font-size: 12px; }
  .stat b { font-size: 22px; }
  .app-header img { height: 32px; }
  .grid-2 { grid-template-columns: 1fr; }
  .app-header { padding: 12px 16px; }
}
