/* Charte ALL 360 (10-11-2026) : police Montserrat embarquée (marche hors connexion), « 360 » en
   turquoise, bande bleu-turquoise-orange. Le vert de l'hivernage reste la couleur des éleveurs. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/montserrat-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/montserrat-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/montserrat-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/montserrat-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/montserrat-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/montserrat-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Tamadante360 : application mobile d'abord.
   Vert de l'hivernage, couleur principale (choix de l'utilisateur, 03-11-2026), bleu du ciel en second,
   ocre réservé aux avertissements, aux marchés et aux paiements. */
:root {
  color-scheme: light;
  --vert: #1b6e3f;
  --vert-2: #23874d;
  --vert-soft: #e2f2e7;
  --ciel: #1b5fa8; /* bleu globe ALL 360 */
  --ciel-2: #144a85;
  --ciel-soft: #e4f1fb;
  --ochre: #f28c1e; /* orange ALL 360 */
  --ochre-texte: #c2620a;
  --turquoise: #17b5c4;
  --turquoise-texte: #0e9aa8;
  --bleu-nuit: #0b1a2e;
  --ochre-soft: #fbf0df;
  --acacia: #2f8a57;
  --danger: #c0392b;
  --danger-soft: #fdecea;
  --bg: #f4f3ef;
  --surface: #ffffff;
  --ink: #1b1e2b;
  --muted: #646a7d;
  --line: #e3e2dc;
  --shadow: 0 1px 2px rgba(16, 48, 30, .06), 0 4px 14px rgba(16, 48, 30, .07);
  --radius: 16px;
  --nav-h: 68px;
  --top-h: 60px;
  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* ancien nom conservé pour le dossier de plaidoyer */
  --green: var(--vert);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  font: 16px/1.5 var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h2, h3, .brand-name { font-family: var(--font-display); text-wrap: balance; }

/* ---------- En-tête ---------- */
.topbar {
  position: sticky; top: 0; z-index: 1000;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: var(--top-h);
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  background: var(--vert); color: #fff;
  border-bottom: 4px solid var(--ciel);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-name { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.brand-sub { display: block; font-size: 12px; opacity: .75; letter-spacing: .04em; text-transform: uppercase; }
.net {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.12);
}
.net::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5ad18a; }
.net.off::before { background: var(--ochre); }

/* ---------- Mise en page ---------- */
main { padding-bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom, 0px)); }
.tab { display: none; padding: 18px max(16px, env(safe-area-inset-right, 0px)) 18px max(16px, env(safe-area-inset-left, 0px)); max-width: 720px; margin: 0 auto; }
.tab.active { display: block; animation: rise .25s ease-out; }
@keyframes rise { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tab.active { animation: none; } }
h2 { margin: 0 0 4px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
h3 { margin: 26px 0 10px; font-size: 13px; font-family: var(--font-body); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lead { color: var(--muted); margin: 0 0 16px; }

/* ---------- Carte ---------- */
#tab-carte { padding: 0; max-width: none; position: relative; }
#map { height: calc(100dvh - var(--top-h) - var(--nav-h) - env(safe-area-inset-bottom, 0px)); width: 100%; background: #e6e2d6; }
.map-tools {
  position: absolute; top: 12px; right: 12px; z-index: 500;
  display: flex; gap: 6px; align-items: center;
  background: var(--surface); padding: 6px; border-radius: 999px; box-shadow: var(--shadow); font-size: 14px;
}
.map-tools button { width: auto; margin: 0; padding: 8px 14px; border-radius: 999px; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.map-tools label { margin: 0 8px 0 4px; color: var(--ink); display: flex; align-items: center; font-weight: 600; }
.legend {
  position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 500;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px;
}
.legend::-webkit-scrollbar { display: none; }
.legend span {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border-radius: 999px; padding: 6px 10px 6px 6px; font-size: 12px; font-weight: 600; box-shadow: var(--shadow);
}
.legend i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.legend svg { width: 12px; height: 12px; }
.pin { position: relative; width: 34px; height: 42px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.pin svg.shape { position: absolute; inset: 0; }
.pin svg.glyph { position: absolute; left: 9px; top: 7px; width: 16px; height: 16px; }
.pin.old { opacity: .6; }
.place-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 2px solid var(--vert); display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.place-dot svg { width: 14px; height: 14px; }
.leaflet-tooltip.lbl { background: rgba(255,255,255,.92); border: none; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.18); font: 600 12px/1.2 var(--font-body); color: var(--ink); padding: 3px 7px; }
.leaflet-tooltip.lbl::before { display: none; }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow); }
.leaflet-popup-content { font: 14px/1.45 var(--font-body); margin: 14px 16px; }
.leaflet-popup-content a { color: var(--vert-2); font-weight: 600; }
.leaflet-bar a { border-radius: 10px !important; }
.leaflet-touch .leaflet-bar { border: none; box-shadow: var(--shadow); border-radius: 12px; }

/* ---------- Formulaires ---------- */
label { display: block; margin: 14px 0; font-size: 14px; font-weight: 600; color: var(--ink); }
input, select, textarea, button {
  font: inherit; width: 100%; padding: 12px 14px; margin-top: 6px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--vert-2); box-shadow: 0 0 0 4px var(--vert-soft); }
input[type=checkbox] { width: 18px; height: 18px; margin: 0 8px 0 0; accent-color: var(--vert); flex: none; }
input[type=file] { padding: 10px; background: var(--bg); border-style: dashed; }
button {
  background: var(--vert); color: #fff; border: none; cursor: pointer; font-weight: 700;
  transition: transform .08s ease, background .15s ease;
}
button:hover { background: var(--vert-2); }
button:active { transform: scale(.98); }
button:focus-visible, a:focus-visible, .list li:focus-visible { outline: 3px solid var(--ciel); outline-offset: 2px; }
button.danger { background: var(--danger); }
button.secondary { background: var(--surface); color: var(--vert); border: 1.5px solid var(--vert); }
button[type=submit] { padding: 14px; font-size: 16px; }
.row { display: flex; gap: 8px; align-items: stretch; }
.row > * { margin-top: 6px; }
.row button { width: auto; white-space: nowrap; }
.row.wrap { flex-wrap: wrap; }
.row.wrap button { flex: 1 1 180px; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.quick button {
  margin: 0; padding: 12px 8px; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line);
  display: grid; justify-items: center; gap: 6px; font-size: 13px; line-height: 1.2;
}
.quick button:hover { background: var(--vert-soft); border-color: var(--vert-soft); }
.quick svg { width: 22px; height: 22px; color: var(--vert); }
fieldset { border: 1.5px solid var(--line); border-radius: 14px; margin: 14px 0; padding: 12px 14px; background: var(--surface); }
legend { font-size: 14px; font-weight: 600; padding: 0 6px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.checks label { margin: 0; font-weight: 500; display: flex; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--bg); }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0; font-weight: 400; }
.result { font-weight: 700; color: var(--acacia); }
details { margin: 18px 0; background: var(--surface); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 700; }

/* Choix du sujet en tuiles */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 10px 0 4px; }
.cat-tiles button {
  margin: 0; padding: 12px; text-align: left; background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--line); display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.25; font-weight: 600;
}
.cat-tiles button:hover { background: var(--surface); border-color: var(--c); }
.cat-tiles button[aria-pressed=true] { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.cat-tiles i, .card .ico { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, white); color: var(--c); }
.cat-tiles svg, .card .ico svg { width: 20px; height: 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Cartes d'information ---------- */
.list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.list li, .card {
  background: var(--surface); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); border: 1px solid transparent;
}
.list li { cursor: pointer; transition: border-color .15s ease; }
.list li:hover { border-color: var(--vert-soft); }
.card { margin: 8px 0; }
.card.info { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.card.info > div { min-width: 0; }
.card .title { font-weight: 700; line-height: 1.3; }
.card .zone { color: var(--muted); font-weight: 500; }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.chip.dir, .dir { color: var(--vert); }
.chip.dir { background: var(--vert-soft); }
.chip.age::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fresh, #9aa0ad); }
.chip.age.fresh { --fresh: var(--acacia); }
.chip.age.recent { --fresh: var(--ochre); }
.card p, .card .desc { margin: 6px 0 0; }
.card.alerte { background: var(--danger-soft); border-color: #f5c6c0; }
.card .dir { font-weight: 700; }
.age { font-size: 13px; color: var(--muted); }
.big { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin: 8px 0; }
.arrow { display: block; width: 72px; height: 72px; margin: 4px auto; transition: transform .4s ease; }
.compass { text-align: center; }
.price-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.price-row:first-of-type { border-top: none; }
.price-row b { white-space: nowrap; }
.summary { background: var(--vert); color: #fff; border-radius: var(--radius); padding: 16px 18px; margin: 4px 0 8px; display: flex; gap: 14px; align-items: center; }
.summary svg { width: 34px; height: 34px; flex: none; color: var(--ochre); }
.summary b { display: block; font-family: var(--font-display); font-size: 18px; }
.summary span { opacity: .8; font-size: 14px; }
.lost {
  margin: 22px 0; padding: 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
  border-top: 4px solid var(--danger);
}
.lost button { font-size: 17px; padding: 15px; margin-top: 0; }
.lost label { display: flex; align-items: center; font-weight: 500; }

.signature { margin: 28px 0 8px; text-align: center; font-size: 13px; color: var(--muted); line-height: 1.6; }
.signature b { color: var(--vert); letter-spacing: .02em; }

/* ---------- Navigation ---------- */
.tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  display: flex; background: var(--surface); border-top: 1px solid var(--line);
  padding: 6px max(6px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(6px, env(safe-area-inset-left, 0px));
  box-shadow: 0 -4px 16px rgba(16, 48, 30, .06);
}
.tabs button {
  flex: 1; min-width: 0; margin: 0; border-radius: 14px; background: transparent; color: var(--muted);
  font-weight: 600; font-size: 11.5px; padding: 4px 2px; display: grid; justify-items: center; align-content: center; gap: 3px;
}
.tabs button svg { width: 24px; height: 24px; transition: transform .15s ease; }
.tabs button:hover { background: var(--bg); }
.tabs button.active { color: var(--vert); background: var(--vert-soft); }
.tabs button.active svg { transform: translateY(-1px); }

/* ---------- Modération ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.stats div { background: var(--surface); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); font-size: 13px; color: var(--muted); font-weight: 600; }
.stats b { display: block; font-family: var(--font-display); font-size: 28px; color: var(--vert); font-variant-numeric: tabular-nums; }
.bulletin { white-space: pre-wrap; background: var(--surface); border-radius: var(--radius); padding: 16px; font: 14px/1.5 ui-monospace, "SF Mono", Consolas, monospace; min-height: 40px; box-shadow: var(--shadow); overflow-x: auto; }
.card img { max-width: 100%; border-radius: 10px; margin-top: 8px; }
.actions { display: flex; gap: 8px; margin-top: 10px; }
.actions button { width: auto; padding: 9px 16px; }
dialog { border: none; border-radius: 18px; padding: 20px; max-width: min(520px, calc(100% - 32px)); box-shadow: 0 20px 50px rgba(0,0,0,.25); color: var(--ink); background: var(--surface); }
dialog::backdrop { background: rgba(20, 24, 48, .45); }
dialog h3 { margin-top: 0; }

/* ---------- Accueil : tableau de bord ---------- */
.dash-hero {
  background: linear-gradient(135deg, var(--vert) 0%, var(--vert-2) 62%, var(--ciel) 135%); color: #fff;
  border-radius: 22px; padding: 18px 18px 16px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.dash-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #bfe3ff; }
.dash-hero h2 { color: #fff; margin: 2px 0 4px; font-size: 28px; }
.dash-ctx { margin: 0; font-size: 14px; color: rgba(255,255,255,.82); }
.dash-counts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dash-counts span { background: rgba(255,255,255,.14); border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 600; }
.dash-counts span.warn { background: var(--ochre); color: #1b1e2b; }
.dash-alert {
  display: flex; gap: 12px; align-items: flex-start; background: var(--danger-soft); color: #5c140d;
  border-left: 5px solid var(--danger); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px;
}
.dash-alert .ico { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--danger); color: #fff; display: grid; place-items: center; }
.dash-alert .ico svg { width: 20px; height: 20px; }
.dash-alert div { display: grid; gap: 2px; font-size: 13px; }
.dash-alert b { font-size: 15px; color: #8a1c12; }
.dash-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
  background: var(--surface); border-radius: 18px; padding: 12px 13px; box-shadow: var(--shadow);
  border-top: 5px solid var(--c); color: var(--ink); text-decoration: none;
}
.tile:hover { box-shadow: 0 0 0 2px var(--c), var(--shadow); }
.tile-head { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--muted); }
.tile-head .ico { width: 26px; height: 26px; border-radius: 8px; background: var(--c); color: #fff; display: grid; place-items: center; flex: none; }
.tile-head .ico svg { width: 15px; height: 15px; }
.tile-value { font-family: var(--font-display); font-size: 27px; font-weight: 800; line-height: 1.1; margin: 4px 0 2px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.tile-value small { font-size: 14px; font-weight: 700; color: var(--muted); }
.tile-line { font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.tile-line .chip { margin-top: 2px; }
.tile-foot { margin-top: 6px; padding-top: 7px; border-top: 1px dashed var(--line); font-size: 12px; line-height: 1.4; color: var(--muted); }
.dash-map-wrap { position: relative; margin: 12px 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
#mini-map { height: 190px; background: #e6e2d6; cursor: pointer; }
.dash-map-open {
  position: absolute; right: 10px; bottom: 10px; z-index: 500; background: var(--vert); color: #fff;
  font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; text-decoration: none; box-shadow: var(--shadow);
}
.dash-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dash-actions .act {
  margin: 0; display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: 16px;
  background: var(--vert); color: #fff; font-size: 14px; font-weight: 700; text-align: center; text-decoration: none; line-height: 1.2;
}
.dash-actions .act.danger { background: var(--danger); }
.dash-actions .act svg { width: 24px; height: 24px; }
#sec-infos, #sec-eau, #sec-prix { scroll-margin-top: calc(var(--top-h) + 10px); }
@media (min-width: 720px) { .dash-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } #mini-map { height: 240px; } }

/* ---------- Bande publicitaire ---------- */
.pub {
  display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 12px 14px;
  background: var(--ochre-soft); border: 1.5px dashed #e3b877; border-radius: 16px;
}
.pub-tag { flex: none; align-self: flex-start; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7a4a10; background: #f3d6a8; border-radius: 6px; padding: 3px 6px; }
.pub div { display: grid; gap: 2px; min-width: 0; font-size: 13px; }
.pub b { font-size: 15px; }
.pub small { color: var(--muted); }
.pub-btn { flex: none; margin-left: auto; background: var(--ochre); color: #1b1e2b; font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: 12px; text-decoration: none; }

/* ---------- Espace données ---------- */
.dash-kicker.dark { color: var(--ochre-texte); }
.card.buy { border-left: 5px solid var(--ochre); }
.filtres label { flex: 1 1 160px; margin: 8px 0; }
.dataset-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.chip.paid { background: var(--ochre-soft); color: #7a4a10; }
.chip.free { background: #e3f3ea; color: var(--acacia); }
.table-wrap { overflow-x: auto; margin: 10px 0 0; border: 1px solid var(--line); border-radius: 10px; }
.table-wrap table { border-collapse: collapse; font-size: 12px; width: 100%; }
.table-wrap th, .table-wrap td { padding: 6px 8px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.table-wrap th { background: var(--bg); font-weight: 700; }
.dataset button { margin-top: 10px; }
.dataset button:disabled { opacity: .7; cursor: not-allowed; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.admin-grid .wide { grid-column: 1 / -1; }
.admin-grid label { margin: 8px 0; }
@media (max-width: 420px) { .admin-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Retour / Suivant ---------- */
.topbar { justify-content: flex-start; }
.topbar .net { margin-left: auto; }
.histnav { display: flex; gap: 4px; flex: none; }
.histnav button {
  width: auto; margin: 0; padding: 7px 10px; border-radius: 10px; display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.14); color: #fff; font-size: 13px; font-weight: 700;
}
.histnav button:hover { background: rgba(255,255,255,.24); }
.histnav button:disabled { opacity: .35; cursor: default; }
.histnav svg { width: 18px; height: 18px; }
@media (max-width: 440px) {
  .histnav span { display: none; }
  .brand-sub { font-size: 10px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 18px; }
}

/* ---------- Espace modération : rubriques ---------- */
.admin-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0 6px; }
.admin-menu button {
  margin: 0; position: relative; text-align: left; display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px;
  background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); font-weight: 400;
}
.admin-menu button:hover { background: var(--vert-soft); }
.admin-menu button.active { background: var(--vert); border-color: var(--vert); color: #fff; }
.admin-menu b { font-size: 15px; }
.admin-menu span { font-size: 12px; opacity: .75; line-height: 1.3; }
.admin-menu i:not(:empty) {
  position: absolute; top: 8px; right: 8px; font-style: normal; font-size: 12px; font-weight: 800;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--danger); color: #fff; display: grid; place-items: center;
}
.admin-pane > h3:first-child { margin-top: 14px; }
.admin-pane details summary { font-family: var(--font-display); font-size: 18px; }
.key-card { border-left: 5px solid var(--acacia); margin: 12px 0; }
.key { display: block; font: 700 18px/1.3 ui-monospace, Menlo, Consolas, monospace; background: var(--bg); border-radius: 10px; padding: 12px; margin: 8px 0; word-break: break-all; user-select: all; }
#admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
#admin-stats div { padding: 8px 10px; font-size: 12px; line-height: 1.25; }
#admin-stats b { font-size: 22px; }
.admin-menu button.wide { grid-column: 1 / -1; }
.admin-session { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 12px; font-size: 13px; font-weight: 600; color: var(--acacia); }
.admin-session button { width: auto; margin: 0; padding: 7px 12px; font-size: 13px; }
.tabs button[data-tab=admin] { color: var(--ochre-texte); }
.zone-note { flex: 1 0 100%; margin: 2px 4px 2px; font-size: 12.5px; line-height: 1.35; font-weight: 600; color: var(--vert); }
#tab-carte .leaflet-bottom.leaflet-right { bottom: 52px; }
.map-tools { left: 12px; flex-wrap: wrap; justify-content: flex-start; border-radius: 16px; }

/* ---------- Marchés hebdomadaires ---------- */
.chip.market { background: var(--ochre-soft); color: #7a4a10; }
.chip.market.soon { background: var(--ochre); color: #1b1e2b; }
.market-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.market-row select { width: auto; margin: 0; flex: none; }
.market-row select.saved { border-color: var(--acacia); box-shadow: 0 0 0 3px #d6efe0; }

/* ---------- Espace annonceurs ---------- */
.steps { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 4px; font-size: 14px; }
.tarifs { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 6px; }
.tarifs th, .tarifs td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.price-total { font-size: 16px; margin: 10px 0 4px; }
.pay-card { border-left: 5px solid var(--ochre); }
.pay-card code { font-size: 17px; background: var(--bg); padding: 2px 6px; border-radius: 6px; user-select: all; }
.pay-card form select, .pay-card form input { flex: 1 1 140px; }
.pay-avant { border: 1px solid var(--line, #dde3e8); border-left: 5px solid var(--ochre); border-radius: 12px; padding: 10px 12px; margin: 10px 0; display: grid; gap: 8px; }
.pay-avant .title { font-weight: 700; margin: 0; }
.pay-avant[hidden] { display: none; }
.pub.affiche { display: block; padding: 0; overflow: hidden; position: relative; }
.pub.affiche .pub-tag { position: absolute; top: 8px; left: 8px; }
.pub.affiche img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.pub-noimg { height: 140px; display: grid; place-items: center; color: var(--muted); background: #f6e7cf; }
.pub-foot { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.pub-foot div { display: grid; min-width: 0; }
.chip.st-warn { background: var(--ochre-soft); color: #7a4a10; }
.chip.st-info { background: var(--vert-soft); color: var(--vert); }
.chip.st-ok { background: #e3f3ea; color: var(--acacia); }
.chip.st-ko { background: var(--danger-soft); color: var(--danger); }

/* Profil : choix éleveur / partenaire, catégories et espace partenaire */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 0; padding: 0; margin: 0 0 12px; }
.seg label, .ptype { margin: 0; cursor: pointer; position: relative; }
.seg input, .ptype input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.seg span, .ptype span { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); }
.seg small, .ptype small { font-weight: 500; color: var(--muted); font-size: 12px; }
.seg input:checked + span, .ptype input:checked + span { border-color: var(--vert); background: var(--vert-soft); }
.seg input:focus-visible + span, .ptype input:focus-visible + span { outline: 3px solid var(--ciel); }
.ptype-list { display: grid; gap: 6px; }
.partner-head .title { font-size: 18px; }
.ps-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 10px 0; }
.ps-stats div { background: var(--surface); border-radius: 12px; padding: 8px 10px; font-size: 12px; line-height: 1.25; box-shadow: var(--shadow); }
.ps-stats b { display: block; font-size: 18px; font-family: var(--font-display); }
.ps-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--vert); color: #fff; font-weight: 700; text-decoration: none; flex: 1 1 140px; }
.btn.secondary { background: var(--surface); color: var(--vert); border: 2px solid var(--vert); }

/* Paiement : modes par famille, preuve jointe */
.pay-qr { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.pay-qr figure { margin: 0; flex: 1 1 140px; max-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; text-align: center; }
.pay-qr img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.pay-qr figcaption { font-size: 12px; color: var(--muted); font-weight: 600; }
.pay-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 8px 0; font-size: 14px; }
.pay-how ul { margin: 4px 0 0; padding-left: 18px; }
.pay-how code { font-size: 14px; }
.pay-form label { margin-top: 6px; }
.proof img { max-width: 160px; max-height: 200px; border-radius: 8px; border: 1px solid var(--line); margin-top: 4px; }
.proof { background: none; border: 0; padding: 0; min-height: 0; width: auto; }
.proof-view { max-width: min(92vw, 640px); border: 0; border-radius: 16px; padding: 12px; }
.proof-view img { display: block; max-width: 100%; max-height: 75vh; margin: 0 auto 10px; }
.result .pay-card, .result .pay-card * { color: var(--ink); font-weight: inherit; }
.result .pay-card { font-weight: 400; }
.result .pay-card b, .result .pay-card .title, .result .pay-card button { font-weight: 700; }
.result .pay-card button { color: #fff; }

/* Petits téléphones (360 px) : la barre du haut garde le nom entier, l'état réseau devient un point. */
@media (max-width: 380px) {
  .topbar { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .histnav button { padding: 6px 7px; }
  .brand { gap: 7px; }
  .brand-name { font-size: 17px; }
  .topbar .net { font-size: 0; gap: 0; padding: 8px; }
}

/* ---------- Carnet de troupeau ---------- */
.t-pick { display: flex; align-items: center; gap: 8px; margin: 0; min-width: 0; }
.t-pick input { width: 20px; height: 20px; margin: 0; flex: none; }
.t-pick .title { overflow-wrap: anywhere; }
.row.wrap.t-actions button { flex: 1 1 90px; width: auto; padding: 8px 10px; font-size: 13px; }
.t-zone h4, #tab-troupeau h4 { margin: 12px 0 4px; font-size: 14px; }
#t-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tabs button { font-size: 11px; }
#t-admin-services { display: grid; grid-template-columns: 1fr; gap: 8px; }
#t-admin-services label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Admin → Gestion */
.g-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; align-items: end; height: 140px; margin: 12px 0 4px; padding: 0 2px; }
.g-bars div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; font-size: 10px; color: var(--muted); min-width: 0; }
.g-bars span { display: block; width: 100%; background: var(--vert); border-radius: 4px 4px 0 0; min-height: 2px; }
.g-bars div.now span { background: var(--ochre); }
.g-qr { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start; }
.g-qr img, .g-qr .vide { width: 96px; height: 96px; object-fit: contain; border: 1px dashed var(--line); border-radius: 10px; background: #fff; }
.g-qr .vide { display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); text-align: center; }
.g-qr label { margin: 6px 0; }

/* ---------- Interface « argent mobile » : accueil, Scanner, vente en étapes ---------- */
.home-head { margin: -18px calc(-1 * max(16px, env(safe-area-inset-left, 0px))) 0; padding: 14px 16px 0; background: linear-gradient(var(--vert) 0 62%, transparent 62%); }
.home-hello { margin: 0 0 10px; color: #c9cfe8; font-size: 14px; }
.home-hello b { color: #fff; font-family: var(--font-display); font-size: 22px; display: block; }
.herd-card { background: var(--surface); border-radius: 20px; padding: 14px 16px 14px; box-shadow: 0 8px 24px rgba(23, 28, 56, .14); }
.herd-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.herd-eye { width: 44px; height: 44px; margin: -10px -10px -10px 0; padding: 0; background: transparent; color: var(--muted); display: grid; place-items: center; border-radius: 22px; }
.herd-eye:hover { background: var(--bg); }
.herd-eye svg { width: 20px; height: 20px; }
.herd-main { display: flex; align-items: baseline; gap: 8px; color: var(--ink); text-decoration: none; margin: 2px 0 8px; flex-wrap: wrap; }
.herd-main b { font-family: var(--font-display); font-size: 42px; line-height: 1; color: var(--vert); font-weight: 800; }
.herd-main span { font-size: 14px; color: var(--muted); }
.herd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.herd-chips:empty { display: none; }
.herd-card.masque .herd-main b, .herd-card.masque .herd-main span, .herd-card.masque .herd-chips, .herd-card.masque .herd-esp { filter: blur(7px); pointer-events: none; }
.herd-esp { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.herd-esp:empty { display: none; }
.herd-esp button { width: auto; flex: none; min-height: 0; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); font-size: 13px; font-weight: 700; }
.herd-esp button b { color: #2fd0de; margin-right: 4px; }
.t-focus-retour { margin: 0 0 10px; }
.home-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 4px; margin: 18px 0 18px; }
.home-grid a, .home-grid button { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-size: 12px; font-weight: 600; text-align: center; background: transparent; padding: 0; margin: 0; line-height: 1.2; width: auto; }
.home-grid button:hover { background: transparent; }
.home-grid .ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; transition: transform .12s ease; }
.home-grid a:active .ic, .home-grid button:active .ic { transform: scale(.94); }
.home-grid .ic svg { width: 25px; height: 25px; }
.c-blue { background: var(--vert-soft); color: var(--vert); }
.c-green { background: #e3f3ea; color: #23693f; }
.c-ochre { background: var(--ochre-soft); color: #8a5413; }
.c-red { background: var(--danger-soft); color: #a8321f; }

.tabs .nav-scan { color: var(--vert); font-weight: 700; }
.tabs .nav-scan span { width: 58px; height: 58px; margin-top: -30px; border-radius: 29px; background: var(--ochre); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(212, 137, 42, .45); border: 4px solid var(--surface); }
.tabs .nav-scan span svg { width: 26px; height: 26px; }
.tabs .nav-scan:hover { background: transparent; }

dialog.sheet { width: min(520px, 100%); max-width: 100%; max-height: 92vh; margin: auto auto 0; border-radius: 22px 22px 0 0; padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
@media (min-width: 600px) { dialog.sheet { margin: auto; border-radius: 22px; } }
.sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sheet-head h3 { margin: 0; font-size: 20px; }
.sheet-head .hint { margin: 0 0 0 auto; font-weight: 600; }
.sheet-x { width: 44px; height: 44px; padding: 0; margin: 0 -6px 0 auto; border-radius: 22px; background: var(--bg); color: var(--ink); font-size: 24px; line-height: 1; flex: none; }
.sheet-head .hint + .sheet-x { margin-left: 4px; }
.scan-view { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 1; }
.scan-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 18%; border: 3px solid var(--ochre); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
.result.err { color: var(--danger); }

.v-label { display: block; font-size: 14px; font-weight: 700; margin: 14px 0 6px; }
.v-center { text-align: center; }
.v-list { display: grid; gap: 8px; }
.v-animal { display: flex; align-items: center; gap: 12px; width: 100%; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; text-align: left; margin: 0; }
.v-animal:hover { background: var(--vert-soft); }
.v-animal.is-sel { border: 2px solid var(--vert); }
.v-ic { width: 42px; height: 42px; border-radius: 14px; background: var(--vert-soft); color: var(--vert); display: grid; place-items: center; font-weight: 800; flex: none; }
.v-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 15px; }
.v-txt small { color: var(--muted); font-weight: 500; font-size: 13px; }
.v-tel { display: flex; gap: 8px; }
.v-tel input { font-size: 20px; font-weight: 700; letter-spacing: .03em; min-width: 0; }
.v-tel button { width: auto; flex: none; }
.v-recents { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.v-recents .hint { margin: 0; }
.v-chip { width: auto; padding: 8px 12px; margin: 0; border-radius: 999px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); font-size: 13px; }
.v-chip:hover { background: var(--vert-soft); }
.v-prix { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-top: 6px; }
.v-prix input { text-align: center; font-family: var(--font-display); font-size: 38px; font-weight: 800; color: var(--vert); border: 0; border-bottom: 2px solid var(--line); border-radius: 0; background: transparent; max-width: 230px; padding: 4px 0; box-shadow: none; }
.v-prix input:focus { border-bottom-color: var(--vert); box-shadow: none; }
.v-prix b { color: var(--muted); }
.v-go, .v-ok { margin-top: 16px; padding: 15px; font-size: 17px; }
.v-ok { background: var(--acacia); }
.v-ok:hover { background: #26744a; }
.v-ok:disabled { opacity: .45; }
.v-recap, .v-recu { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 4px 14px; }
.v-recap div, .v-recu > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.v-recap div:last-child, .v-recu > div:last-child { border-bottom: 0; }
.v-recap span, .v-recu span { color: var(--muted); }
.v-recap b, .v-recu b { text-align: right; overflow-wrap: anywhere; }
.v-warn { font-size: 13px; font-weight: 600; color: #8a5413; margin: 10px 2px; }
.v-dots { display: flex; justify-content: center; gap: 16px; margin: 4px 0 12px; }
.v-dots span { width: 16px; height: 16px; border-radius: 8px; border: 2px solid #b9bccb; }
.v-dots span.on { background: var(--vert); border-color: var(--vert); }
.v-pad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.v-pad button { margin: 0; height: 54px; font-size: 22px; background: var(--bg); color: var(--ink); border-radius: 14px; }
.v-pad button:hover { background: var(--vert-soft); }
.v-two { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 14px; }
.v-two button { margin: 0; }
.v-done { text-align: center; display: grid; justify-items: center; gap: 6px; margin: 6px 0 14px; }
.v-done b { font-family: var(--font-display); font-size: 24px; }
.v-check { width: 68px; height: 68px; border-radius: 34px; background: var(--acacia); color: #fff; display: grid; place-items: center; font-size: 34px; font-weight: 800; }
.v-recu { border-top: 6px solid var(--ochre); }
.v-recu-head { font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.t-qr { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.t-qr img { width: 132px; height: 132px; image-rendering: pixelated; border-radius: 8px; background: #fff; flex: none; }
.t-qr p { margin: 4px 0; }
.t-animal.flash { box-shadow: 0 0 0 3px var(--ochre), var(--shadow); }
.sheet-head h3 { text-transform: none; letter-spacing: -.01em; color: var(--ink); font-size: 21px; }
.sheet-head .hint { white-space: nowrap; }
.v-prix input { width: 100%; }
.t-qr figure { margin: 0; text-align: center; flex: none; }
.t-qr figcaption code { font-size: 13px; font-weight: 700; }
.v-two { grid-template-columns: 1fr 1fr; }

/* Tableau de bord resserré : la carte reste visible sous « Autour de vous ». */
#tab-accueil .dash-hero { padding: 14px 16px 12px; margin-bottom: 10px; }
#tab-accueil .dash-hero h2 { font-size: 23px; margin: 0 0 2px; }
#tab-accueil .dash-counts { margin-top: 8px; }
#tab-accueil .dash-counts span { padding: 4px 10px; font-size: 12px; }
#tab-accueil .dash-map-wrap { margin: 0 0 10px; }
#tab-accueil #mini-map { height: 170px; }
#tab-accueil .dash-tiles { gap: 8px; }
#tab-accueil .tile { padding: 9px 11px; border-radius: 14px; border-top-width: 4px; gap: 1px; }
#tab-accueil .tile-head { font-size: 12px; }
#tab-accueil .tile-head .ico { width: 22px; height: 22px; border-radius: 7px; }
#tab-accueil .tile-head .ico svg { width: 13px; height: 13px; }
#tab-accueil .tile-value { font-size: 21px; margin: 2px 0 0; }
#tab-accueil .tile-value small { font-size: 12px; }
#tab-accueil .tile-line { font-size: 12px; line-height: 1.3; }
#tab-accueil .tile-foot { margin-top: 4px; padding-top: 4px; font-size: 11px; }

.dash-more { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.dash-more button, .dash-more a.button-like { width: auto; margin: 0; padding: 9px 13px; border-radius: 999px; background: var(--surface); color: var(--vert); border: 1px solid var(--line); font-size: 13px; }
.dash-more button:hover { background: var(--vert-soft); }
.dash-more a.button-like { text-decoration: none; font-weight: 600; }
#detail-body .det-sub { margin-top: 18px; }
#detail-body .card:first-child { margin-top: 0; }
.tile { cursor: pointer; }
.tile:active { transform: scale(.98); }
#tab-accueil .tile-head::after { content: '›'; margin-left: auto; font-size: 20px; line-height: 1; color: var(--muted); }
/* ---------- Identification au premier lancement ---------- */
button.link { background: none; color: var(--ciel-2); padding: 8px 4px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; width: auto; }
button.link:hover { background: none; color: var(--ciel); }
body.ob-open { overflow: hidden; }
.ob {
  position: fixed; inset: 0; z-index: 3000; overflow-y: auto;
  background: var(--bg);
  padding: max(20px, env(safe-area-inset-top, 0px)) 16px max(24px, env(safe-area-inset-bottom, 0px));
}
.ob-inner { max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 4px; }
.ob-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.ob-brand .brand-name { color: var(--vert); }
.ob-brand .brand-sub { color: var(--muted); }
.ob-step { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ciel); min-height: 1.2em; }
.ob h2 { margin: 2px 0 4px; font-size: 26px; line-height: 1.15; color: var(--vert); }
.ob-lead { margin: 0 0 14px; color: var(--muted); }
.ob-pane { display: none; flex-direction: column; gap: 12px; }
.ob-pane.active { display: flex; animation: rise .25s ease-out; }
.ob-pane input { font-size: 20px; padding: 14px; }
#ob-code { letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.ob-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--ciel-soft); color: var(--ciel-2); margin-bottom: 6px; }
.ob-icon svg { width: 30px; height: 30px; }
.ob-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.ob-langs button {
  min-height: 64px; font-size: 19px; font-weight: 700;
  background: var(--surface); color: var(--vert); border: 1.5px solid var(--line); box-shadow: var(--shadow);
}
.ob-langs button:hover, .ob-langs button[aria-pressed=true] { background: var(--vert); color: #fff; border-color: var(--vert); }
.ob-links { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ob-voice { display: flex; flex-direction: column; gap: 8px; }
.ob-voice button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ob-voice button svg { width: 20px; height: 20px; }
.ob-voice button.rec { background: var(--danger); color: #fff; border-color: var(--danger); }
.ob-voice audio { width: 100%; }
.ob-label { font-weight: 600; margin-top: 6px; }
.ob-note { margin: 8px 0 0; font-weight: 600; color: var(--danger); min-height: 1.2em; }
.ob-note.ok { color: var(--acacia); background: #e7f4ec; padding: 10px 12px; border-radius: 12px; }
.ob-note.info { color: var(--ciel-2); }
.ob-back { align-self: flex-start; margin-top: 8px; }
#ob-place-results li { cursor: pointer; }

/* ---------- Logo ALL360 Solutions (organisation porteuse) ---------- */
.topbar-end { display: flex; align-items: center; gap: 8px; flex: none; }
.all360 { display: inline-flex; align-items: center; gap: 6px; flex: none; text-decoration: none; }
.all360 img { height: 30px; width: auto; display: block; background: #fff; border-radius: 8px; padding: 2px 4px; }
.all360-txt { display: inline-flex; flex-direction: column; line-height: 1; font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: -.01em; padding: 5px 8px; border-radius: 9px; background: #fff; color: var(--vert); }
.all360-txt small { font-family: var(--font-body); font-weight: 700; font-size: 8px; letter-spacing: .12em; color: var(--ciel-2); margin-top: 2px; }
.all360:not(.sans-image) .all360-txt { display: none; }
.ob-all360 { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; color: var(--muted); font-size: 13px; }
.ob-all360 .all360-txt { border: 1px solid var(--line); }
.ob-all360 img { height: auto; width: min(260px, 70vw); padding: 0; border-radius: 0; background: none; }
/* Téléphones : l'état du réseau se réduit à son point de couleur pour laisser la place au logo. */
@media (max-width: 520px) {
  .topbar { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .topbar-end { gap: 6px; }
  .topbar-end .net { font-size: 0; padding: 0; gap: 0; background: none; }
  .histnav button { padding: 7px 8px; }
  .topbar .brand { flex: 1 1 auto; gap: 6px; }
  .topbar .brand-mark { width: 26px; height: 26px; }
  .topbar .brand-name { font-size: 17px; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .brand > div { min-width: 0; }
  .topbar .all360 img { height: 26px; }
  .topbar .all360-txt { font-size: 12px; padding: 4px 7px; }
}

/* ---------- Thème léger (03-11-2026) : fonds des pages en bleu ciel et vert hivernage ----------
   Le ciel en haut, la prairie d'hivernage en bas ; surfaces blanches, en-tête et barre translucides. */
:root {
  --bg: #eef6f3;
  --fond: linear-gradient(180deg, #dff0fc 0%, #ecf6f6 42%, #e2f3e7 100%);
  --shadow: 0 1px 2px rgba(16, 48, 30, .05), 0 6px 18px rgba(27, 110, 63, .07);
}
body, .ob { background: var(--fond); background-attachment: fixed; }
.topbar {
  background: rgba(255, 255, 255, .78); color: var(--vert);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(43, 135, 204, .22);
  box-shadow: 0 2px 14px rgba(43, 135, 204, .08);
}
.histnav button { background: var(--vert-soft); color: var(--vert); }
.histnav button:hover { background: #d0eadb; }
.net { background: var(--vert-soft); color: var(--vert); }
.all360 img { padding: 0; background: none; border-radius: 0; }
.tabs {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid rgba(27, 110, 63, .12);
}
.tabs button:hover { background: var(--vert-soft); }
.tabs button.active { color: var(--vert); background: linear-gradient(180deg, var(--ciel-soft), var(--vert-soft)); }
.list li, .card { border-color: rgba(27, 110, 63, .08); }
.topbar .all360 img { background: none; }
.ob-icon { background: #fff; box-shadow: var(--shadow); }

/* Centre de santé : croix rouge, plus grande (demande du 03-11-2026). */
button[data-near=sante] svg { color: var(--danger); width: 30px; height: 30px; stroke-width: 3; margin: -3px 0; }

/* Identification, étape 4 : nombre d'animaux par espèce. */
.ob-herd { display: flex; flex-direction: column; gap: 8px; }
.ob-herd-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px 8px 14px; box-shadow: var(--shadow); }
.ob-herd-row label { font-weight: 700; font-size: 17px; color: var(--vert); min-width: 0; }
.ob-stepper { display: flex; align-items: center; gap: 6px; flex: none; }
.ob-stepper button { width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; border-radius: 12px; font-size: 22px; line-height: 1; }
.ob-pane .ob-stepper input { width: 72px; text-align: center; font-size: 20px; padding: 8px 4px; font-variant-numeric: tabular-nums; margin: 0; }
.ob-herd-total { margin: 2px 0 0; font-weight: 700; color: var(--ciel-2); min-height: 1.2em; }
.ob-stepper input { -moz-appearance: textfield; appearance: textfield; }
.ob-stepper input::-webkit-outer-spin-button, .ob-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Scanner : fiche publique d'un animal qui n'est pas à moi. */
.fiche-animal { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.fiche-animal h4 { margin: 0; font-family: var(--font-display); font-size: 21px; color: var(--vert); }
.fiche-animal .hint { margin: 0; }
.fa-code { margin: 0; font-size: 13px; color: var(--muted); }
.fa-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.fa-label { margin: 6px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fa-vaccins { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.fa-vaccins li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; background: var(--vert-soft); border-radius: 10px; font-size: 14px; }
.fa-vaccins li span { color: var(--muted); white-space: nowrap; }
.fa-alerte { margin: 4px 0; padding: 9px 12px; border-radius: 10px; background: #fdecea; color: var(--danger); font-weight: 600; }

/* Marché des éleveurs */
.b-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 10px 0 12px; padding-bottom: 2px; }
.b-tabs button { width: auto; flex: none; margin: 0; padding: 9px 14px; border-radius: 999px; background: var(--surface); color: var(--vert); border: 1.5px solid var(--line); font-size: 14px; }
.b-tabs button[aria-pressed=true] { background: var(--vert); color: #fff; border-color: var(--vert); }
.b-filtres { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.b-filtres select, .b-filtres input { margin: 0; font-size: 14px; padding: 9px 8px; min-width: 0; }
@media (max-width: 420px) { .b-filtres { grid-template-columns: 1fr 1fr; } .b-filtres select[name=sens] { grid-column: 1 / -1; } }
.b-annonce { display: flex; flex-direction: column; gap: 4px; }
.b-annonce h4 { margin: 2px 0 0; font-family: var(--font-display); font-size: 19px; color: var(--ink); }
.b-annonce p { margin: 0; }
.b-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.b-prix { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--vert); font-variant-numeric: tabular-nums; }
.b-prix small { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--muted); }
.b-suivi { font-size: 13px; background: var(--vert-soft); border-radius: 10px; padding: 7px 10px; }
.b-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.b-actions .btn { flex: 1 1 140px; }
.b-contrib { margin: 8px 0 2px; padding: 10px 12px; border-radius: 12px; background: var(--ciel-soft); color: var(--ciel-2); }
.b-bareme { margin: 6px 0 10px; font-size: 14px; }
.b-bareme ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 4px; }
.b-bareme li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
#b-form-msg:empty { display: none; }
#adm-b-paliers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.b-recu { max-width: 220px; border-radius: 10px; border: 1px solid var(--line); display: block; margin: 6px 0; }
.b-tabs button { flex: 1 1 auto; padding: 9px 8px; font-size: 13px; white-space: nowrap; }

/* Marché : deux rayons, Animaux et Produits */
.b-rayons { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 10px 0 4px; background: var(--vert-soft); border-radius: 14px; padding: 4px; }
.b-rayons button { margin: 0; padding: 10px; border-radius: 11px; background: transparent; color: var(--vert); border: 0; font-weight: 700; font-size: 15px; }
.b-rayons button[aria-pressed=true] { background: var(--vert); color: #fff; }
.b-filtres input { margin: 0; font-size: 14px; padding: 9px 8px; min-width: 0; }
.p-photo { width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; margin: 6px 0; display: block; }
.p-une { border: 2px solid var(--ciel); }
.b-dist { background: var(--ciel-soft); color: var(--ciel-2); font-weight: 600; margin-left: 4px; white-space: nowrap; }

/* Accueil : boutons ronds, fond bleu ALL360, ombrés */
.home-grid .ic { width: 58px; height: 58px; border-radius: 50%; background: var(--ciel) !important; color: #fff !important;
  box-shadow: 0 6px 14px rgba(29, 106, 166, .35), inset 0 -3px 0 rgba(0, 0, 0, .12); }
.home-grid a:active .ic, .home-grid button:active .ic { box-shadow: 0 2px 6px rgba(29, 106, 166, .35); }

/* Bouton Signaler flottant, visible sur tous les écrans */
.fab-signal { position: fixed; right: max(14px, env(safe-area-inset-right, 0px)); bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: flex; align-items: center; gap: 8px; height: 54px; min-width: 54px; padding: 0 16px; border-radius: 999px;
  background: #c93a24; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 20px rgba(160, 40, 20, .38); max-width: min(330px, calc(100vw - 28px)); font-size: 14px; transition: padding .2s ease; }
.fab-signal[hidden] { display: none; }
.fab-signal svg { width: 24px; height: 24px; flex: none; }
.fab-signal .fab-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fab-signal.ouvert { animation: fab-pouls 1.2s ease 2; }
@keyframes fab-pouls { 50% { transform: scale(1.05); box-shadow: 0 10px 26px rgba(160, 40, 20, .5); } }
@media (prefers-reduced-motion: reduce) { .fab-signal.ouvert { animation: none; } }
.v-libre { margin-top: 10px; }

/* Points Tamadante */
.pts { background: linear-gradient(135deg, var(--ciel-soft), var(--vert-soft)); border: 0; }
.pts-head { display: flex; gap: 12px; align-items: center; }
.pts-n { width: 54px; height: 54px; border-radius: 50%; background: var(--ciel); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 800; box-shadow: 0 6px 14px rgba(29, 106, 166, .3); flex: none; }
.pts-bar { height: 8px; border-radius: 999px; background: rgba(29, 106, 166, .15); margin: 10px 0 6px; overflow: hidden; }
.pts-bar i { display: block; height: 100%; background: var(--ciel); border-radius: inherit; }
.pts details { margin-top: 4px; font-size: 14px; }
.pts ul { margin: 6px 0 0; padding-left: 18px; }
/* Pictogrammes en couleur (lisibles sans savoir lire) sur la pastille bleue */
.home-grid .ic svg { width: 34px !important; height: 34px !important; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }

/* Voix */
.sig-voix { margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: var(--ciel-soft); }
.sig-voix button { display: inline-flex; align-items: center; gap: 8px; width: auto; }
.sig-voix svg { width: 22px; height: 22px; }
.sig-voix audio { width: 100%; margin-top: 8px; }
#sig-voix-btn.rec, [data-voix-rec].rec { background: #c93a24; color: #fff; border-color: #c93a24; }
.voix-list { display: grid; gap: 6px; }
.voix-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 6px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.voix-row button { width: auto; margin: 0; padding: 6px 10px; font-size: 13px; }
.voix-file { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--vert); font-weight: 600; font-size: 13px; cursor: pointer; margin: 0; }
.voix-row { grid-template-columns: 1fr auto auto auto auto; }
.sig-voix .voix-file { margin: 6px 0 0 6px; font-size: 14px; }

/* Marques dessinées */
#dessin-pad { width: 100%; max-width: 420px; aspect-ratio: 1; display: block; margin: 8px auto; border-radius: 16px; border: 2px dashed var(--line); touch-action: none; background: #fffdf7; }
.dessin-actions button { width: auto; }
.t-marque { margin: 8px 0; }
.t-marques { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 8px; }
.t-marque-opt { width: 64px; height: 64px; padding: 4px; margin: 0; border-radius: 14px; background: #fffdf7; color: var(--ink); border: 2px solid var(--line); font-size: 12px; }
.t-marque-opt img { width: 100%; height: 100%; object-fit: contain; }
.t-marque-opt.on { border-color: var(--ciel); box-shadow: 0 0 0 3px var(--ciel-soft); }
.t-marque-card { display: flex; align-items: center; gap: 8px; margin: 6px 0; flex-wrap: wrap; }
.t-marque-card > img { width: 56px; height: 56px; border-radius: 12px; border: 1.5px solid var(--line); background: #fffdf7; }
.t-marque-card .t-marque-opt { width: 44px; height: 44px; }
.t-marque-card button.link { width: auto; }

/* Accueil : services près de vous (mairie, santé, vétérinaire, services techniques), toujours visibles */
.dash-h { font-size: 15px; margin: 14px 0 8px; color: var(--ciel-2, #1d6aa6); }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 720px) { .svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.svc { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 10px; text-align: left; border-radius: 14px;
  background: var(--surface); color: var(--ink, inherit); border: 1px solid var(--line); font-weight: 400; }
.svc:hover { background: var(--ciel-soft, #e4f1fb); }
.svc .ic { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ciel); display: grid; place-items: center;
  box-shadow: 0 5px 12px rgba(29, 106, 166, .33), inset 0 -3px 0 rgba(0, 0, 0, .12); }
.svc .ic svg { width: 30px; height: 30px; }
.svc-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12.5px; line-height: 1.25; }
.svc-t b { font-size: 13px; }
.svc-t span:not(.chip) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted, #555); }
.svc-t .chip { align-self: flex-start; margin: 2px 0 0; }

/* Marque : espèce, joue ou hanche, côté ; modèles */
.dessin-choix { display: flex; flex-direction: column; gap: 6px; margin: 4px 0; }
.dessin-grp { display: flex; flex-wrap: wrap; gap: 6px; }
.dessin-grp button { width: auto; margin: 0; padding: 8px 12px; border-radius: 999px; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); font-size: 13px; }
.dessin-grp button[aria-pressed="true"] { background: var(--ciel); color: #fff; border-color: var(--ciel); }
.dessin-modeles { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; }
.dessin-modeles .t-marque-opt { flex: none; width: 52px; height: 52px; }
.sig-marque { border: 1.5px solid var(--line); border-radius: 14px; padding: 10px; margin: 8px 0; background: #fffdf7; }
.sig-marque .t-marque-card img { width: 72px; height: 72px; }
.card.info > img.info-marque { width: 58px; height: 58px; flex: none; border-radius: 12px; border: 1.5px solid var(--line); background: #fffdf7; }

/* Signaler : type et état en boutons (chacun a sa voix) */
.sig-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.sig-chips button { width: auto; margin: 0; padding: 11px 15px; border-radius: 14px; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.sig-chips button[aria-pressed="true"] { border-color: var(--vert); background: var(--vert-soft); box-shadow: 0 0 0 2px var(--vert) inset; }
.sig-chips .niv-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); display: inline-block; }

/* Marché : coopératives et associations de femmes */
.p-coop-tag { background: #fbe3ef; color: #9c2a63; font-weight: 600; }
.card.p-coop { border-left: 4px solid #c2477f; }
.p-coop-chip { margin: 4px 0; }
#p-coop-inscr summary { cursor: pointer; }

/* Animaux perdus ou retrouvés : plusieurs espèces, nombre de têtes de chacune */
.sig-especes { display: grid; gap: 6px; margin: 6px 0 4px; }
.sig-esp { display: grid; grid-template-columns: 1fr 44px 64px 44px; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); }
.sig-esp.on { border-color: var(--vert); background: var(--vert-soft); }
.sig-esp span { font-weight: 600; }
.sig-esp button { width: 44px; height: 40px; margin: 0; padding: 0; border-radius: 10px; font-size: 22px; line-height: 1; }
.sig-esp input { margin: 0; text-align: center; font-size: 17px; font-weight: 700; padding: 8px 4px; }

/* Bouton haut-parleur : couper ou remettre la voix des images */
.voix-toggle { width: 38px; height: 38px; margin: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; background: var(--ciel-soft, #e4f1fb); color: var(--ciel-2, #1d6aa6); border: 1.5px solid var(--line); }
.voix-toggle svg { width: 22px; height: 22px; }
.voix-toggle[aria-pressed="false"] { background: #f1e6e3; color: #a2412c; }

/* Logo ALL360 en bas de l'écran */
.app-pied { display: flex; justify-content: center; padding: 18px 16px 90px; margin-top: 8px; }
.app-pied img { height: auto; width: min(200px, 55vw); padding: 0; border-radius: 0; background: none; }
.app-pied .all360-txt { border: 1px solid var(--line); }

/* Dessins pour ceux qui ne lisent pas */
svg.picto { width: 30px; height: 30px; flex: none; }
.sig-chips button svg.picto { width: 34px; height: 34px; margin: -4px 0; }
.sig-esp { grid-template-columns: minmax(0, 1fr) 40px 52px 40px; gap: 5px; }
.sig-esp button { width: 40px; }
.sig-esp > span { min-width: 0; flex-wrap: wrap; }
.sig-esp > span { display: flex; align-items: center; gap: 8px; line-height: 1.15; }
.sig-esp > span svg.picto { width: 40px; height: 40px; }
.sig-esp small { display: block; font-weight: 400; font-size: 12px; color: var(--muted, #666); }

.dessin-grp button svg.picto { width: 26px; height: 26px; margin: -4px 4px -4px -4px; vertical-align: middle; }

.p-prod-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin: 6px 0 10px; }
.p-prod-chips.defile { display: flex; overflow-x: auto; padding-bottom: 4px; }
.p-prod-chips button { margin: 0; padding: 8px 4px 6px; border-radius: 14px; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; line-height: 1.15; text-align: center; min-width: 78px; }
.p-prod-chips button svg.picto { width: 38px; height: 38px; }
.p-prod-chips button[aria-pressed="true"] { border-color: var(--vert); background: var(--vert-soft); box-shadow: 0 0 0 2px var(--vert) inset; }

/* Patrimoine et fêtes (service réservé « patrimoine ») */
  background: linear-gradient(135deg, #fbf3e4, #f4e3c4); color: var(--texte, #1d2a22); border: 1px solid #e3c99a; }
.pat-card, .pat-admin { padding: 12px; margin: 0 0 10px; display: block; }
.pat-photo { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; margin-bottom: 8px; display: block; }
.pat-tete { display: flex; align-items: center; gap: 10px; }
.pat-tete svg { width: 36px; height: 36px; flex: none; }
.pat-tete b { display: block; font-size: 15px; }
.pat-tete small { display: block; color: var(--muted, #5b6b7a); font-size: 12.5px; }
.pat-periode { margin: 8px 0 0; font-size: 13.5px; color: #7a4a1c; font-weight: 600; }
.pat-histoire { margin-top: 6px; }
.pat-histoire summary { cursor: pointer; color: var(--vert); font-weight: 600; padding: 4px 0; }
.pat-histoire p { margin: 6px 0; line-height: 1.5; font-size: 14px; }
.pat-filtres { margin-bottom: 10px; }
.pat-proposer { display: block; text-align: center; margin: 6px 0 2px; font-weight: 600; color: var(--vert); }
.pat-pin svg { width: 30px; height: 30px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); background: #fff; border-radius: 50%; }
.pat-attente { display: inline-block; margin-bottom: 6px; padding: 2px 9px; border-radius: 999px; background: #fff3cd; color: #7a5a00; font-size: 12px; font-weight: 600; }

/* Météo, pluie et inondations (10 nov.) */
.dash-alert.meteo-alerte { cursor: pointer; }
.dash-alert.meteo-alerte.n1 { border-color: #d0661c; background: #fff4ea; }
.dash-alert.meteo-alerte.n1 .ico { background: #d0661c; }
.meteo-plus { font-weight: 700; text-decoration: underline; }
.meteo-niveau { border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: #eef4fb; border-left: 5px solid #3a6ea5; }
.meteo-niveau.n1 { background: #fff4ea; border-color: #d0661c; }
.meteo-niveau.n2 { background: #fdecea; border-color: #c0392b; }
.meteo-niveau ul, .meteo-conseils ul { margin: 6px 0 0; padding-left: 18px; }
.meteo-niveau p { margin: 6px 0 0; }
.meteo-conseils { border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: var(--card, #fff); border: 1px solid var(--line); }
.meteo-jours { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; margin: 6px 0 10px; }
.mj { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; text-align: center; min-width: 0; }
.mj.passe { opacity: .55; }
.mj-j { font-weight: 700; font-size: 11px; }
.mj-barre { width: 100%; max-width: 22px; height: 60px; background: #eef1f4; border-radius: 6px; display: flex; align-items: flex-end; overflow: hidden; }
.mj-barre i { display: block; width: 100%; background: #2b9be6; border-radius: 6px 6px 0 0; }
.mj small { font-size: 10px; color: var(--muted); }
.mj-orage { font-size: 10px; font-weight: 700; color: #c0392b; }
.mj-vent { color: #d0661c !important; font-weight: 700; }
#meteo-signaler { display: block; text-align: center; margin: 12px 0 8px; }
@media (max-width: 380px) { .meteo-jours { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 10px; } }

/* Zones suivies (10 nov.) : un ajout sous « Autour de vous », jamais à sa place */
.zones-sec { margin: 16px 0; }
.zones-sec h3 { margin: 0 0 8px; font-size: 16px; }
.zones-liste { display: grid; gap: 10px; }
.zone-carte { background: #fff; border: 1px solid #dfe6e1; border-radius: 14px; padding: 10px 12px; }
.zone-carte header { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.zone-carte header small { color: #5b6b62; }
.zsuppr { margin-left: auto; width: auto; min-height: 0; padding: 2px 10px; background: none; border: 0; color: #5b6b62; font-size: 20px; line-height: 1; }
.zone-infos { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 4px; font-size: 14px; }
.zone-infos li { display: flex; gap: 6px; align-items: flex-start; }
.zone-infos li svg { width: 18px; height: 18px; flex: none; }
.zone-infos li.n1 { color: #a5510f; }
.zone-infos li.n2 { color: #b0302a; }
.zones-form { margin: 10px 0; background: #fff; color: var(--ink, #1d2a24); border: 1px solid #dfe6e1; border-radius: 14px; padding: 10px 12px; }
.zones-res { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.zones-res button { width: auto; }
#zones-ajout { margin-top: 10px; }
/* Position du troupeau (payant, avec l'accord du berger) */
.suivi-box { border-top: 1px dashed #dfe6e1; margin-top: 8px; padding-top: 8px; font-size: 14px; }
#suivi-berger { background: #fff8e8; border: 1.5px solid #e9b44c; border-radius: 14px; padding: 10px 12px; margin: 10px 0; }
.suivi-item + .suivi-item { border-top: 1px solid #f0dca9; margin-top: 8px; padding-top: 8px; }
.suivi-titre { font-weight: 700; margin: 0 0 4px; }
.suivi-loin { color: #b0302a; font-weight: 700; }
.suivi-carte { display: inline-block; margin: 4px 0; font-weight: 700; }
.suivi-box .row, #suivi-berger .row { display: flex; gap: 8px; flex-wrap: wrap; }
/* Pluie mesurée par satellite (IMERG, CHIRPS) */
.mj.mesure .mj-barre i { background: #1b5fa8; }
.meteo-sat { background: #eef5fb; border-radius: 12px; padding: 8px 12px; margin: 10px 0; font-size: 14px; }
.meteo-sat p { margin: 4px 0; }
.meteo-sat .saison.excedentaire b:first-child { color: #b0302a; }
.meteo-sat .saison.deficitaire b:first-child { color: #a5510f; }
.meteo-exemple { background: #fff3cd; color: #7a5a00; border-radius: 6px; padding: 1px 6px; font-size: 10px; font-weight: 800; letter-spacing: .04em; margin-left: 4px; }
.voix-import { margin: 4px 0 8px; }

/* Messages (alertes et rappels sans SMS) */
.msg-bandeau { display: flex; flex-direction: column; gap: 2px; margin: 12px 0; padding: 12px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line, #dfe7e2); color: inherit; text-decoration: none; }
.msg-bandeau b { color: var(--vert, #1b6e3f); }
.msg-bandeau span { font-size: .92em; opacity: .8; }
.msg-bandeau.non-lu { background: #fff6e0; border-color: #f0c96a; }
.msg-bandeau.non-lu b { color: #8a5a00; }
.card.msg.non-lu { border-left: 4px solid #e8a317; }
.card.msg p { margin: 4px 0; }

/* Charte ALL 360 : signature */
.brand-sub .b360 { color: var(--turquoise-texte); font-weight: 800; }
.tabs::before { content: ""; position: absolute; top: -3px; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--ciel) 0 60%, var(--turquoise) 60% 90%, var(--ochre) 90% 100%); }
:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 2px; }
a { color: var(--ciel); }

/* ---------- Charte ALL 360, finitions (14-11-2026) ----------
   Vert de l'hivernage = couleur principale ; bleu globe, turquoise et orange ALL 360 en accents,
   halos très légers et orbite du logo en filigrane, comme les supports ALL 360. */
.home-head { position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 70% at 105% -10%, rgba(23, 181, 196, .32), transparent 55%),
    radial-gradient(80% 50% at -10% 0%, rgba(242, 140, 30, .16), transparent 60%),
    linear-gradient(var(--vert) 0 62%, transparent 62%); }
.home-head::before { content: ""; position: absolute; z-index: -1; right: -70px; top: -60px; width: 260px; height: 150px;
  border: 2px solid rgba(255, 255, 255, .13); border-radius: 50%; transform: rotate(-18deg); }
.home-head::after { content: ""; position: absolute; z-index: -1; right: 40px; top: 18px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--ochre); box-shadow: 0 0 0 4px rgba(242, 140, 30, .22); }
.home-hello { color: rgba(255, 255, 255, .78); }
.dash-kicker { color: #8fe7ef; }
.dash-hero { background:
    radial-gradient(90% 80% at 100% 0%, rgba(23, 181, 196, .30), transparent 60%),
    linear-gradient(135deg, var(--vert) 0%, var(--vert-2) 60%, var(--ciel) 140%); position: relative; overflow: hidden; }
.dash-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--ciel) 0 60%, var(--turquoise) 60% 90%, var(--ochre) 90% 100%); }
/* Boutons ronds : bleu globe ALL 360 en dégradé, anneau turquoise au toucher */
.home-grid .ic { background: radial-gradient(circle at 32% 28%, #3a8be0 0%, var(--ciel) 55%, var(--ciel-2) 100%) !important;
  box-shadow: 0 6px 14px rgba(27, 95, 168, .32), inset 0 -3px 0 rgba(0, 0, 0, .12); }
.home-grid a:active .ic, .home-grid button:active .ic { box-shadow: 0 0 0 4px rgba(23, 181, 196, .35), 0 2px 6px rgba(27, 95, 168, .35); }
.home-grid a, .home-grid button { font-weight: 600; letter-spacing: -.01em; }
/* Signaler : appel à l'action en orange ALL 360, texte jamais coupé */
.fab-signal { background: linear-gradient(135deg, #f7a23a 0%, var(--ochre) 45%, #d9690c 100%); color: #fff;
  box-shadow: 0 8px 20px rgba(194, 98, 10, .38); height: auto; min-height: 54px; padding: 8px 18px; }
.fab-signal .fab-txt { white-space: normal; line-height: 1.2; text-shadow: 0 1px 1px rgba(120, 50, 0, .35); }
@keyframes fab-pouls { 50% { transform: scale(1.04); box-shadow: 0 10px 26px rgba(194, 98, 10, .5); } }
/* Titres de rubrique : petit trait turquoise */
.tab > h2::after { content: ""; display: block; width: 36px; height: 4px; border-radius: 4px; margin-top: 6px;
  background: linear-gradient(90deg, var(--turquoise), var(--ciel)); }
/* Cartes et champs : filets gris ALL 360, focus turquoise */
.card { border-color: #e3e8ee; }
input:focus, select:focus, textarea:focus { border-color: var(--turquoise); box-shadow: 0 0 0 3px rgba(23, 181, 196, .18); outline: none; }

/* ---------- Design plateformes ALL 360 (14-11-2026, maquettes « TAMADANTE 360 — Accueil / Carte ») ----------
   Même construction que les autres plateformes ALL 360 : fond gris clair, cartes blanches à filet
   #E3E8EE, en-tête plein, carte « Mon troupeau » en bleu nuit, tuiles à liseré de couleur à gauche,
   actions rapides en cartes, barre d'onglets blanche, Signaler en orange. Le vert de l'hivernage
   reste la couleur principale (en-tête, onglet actif, boutons) à la place du bleu de la maquette. */
:root {
  --bg: #f6f8fa;
  --fond: #f6f8fa;
  --line: #e3e8ee;
  --ink: #1f2630;
  --muted: #4a5562;
  --shadow: none;
}
body, .ob { background: var(--bg); }
/* En-tête plein, vert */
.topbar { background: var(--vert); color: #fff; border-bottom: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; }
.topbar .brand-name { font-weight: 800; color: #fff; }
.brand-name .b360n { color: #9fe9f0; }
.brand-sub { opacity: 1; color: #d6eadc; text-transform: none; letter-spacing: .03em; font-weight: 400; font-size: 11px; }
.brand-sub .b360 { color: #9fe9f0; }
.brand-mark rect { fill: rgba(255, 255, 255, .14); }
.histnav button { background: rgba(255, 255, 255, .14); color: #fff; border-radius: 10px; }
.histnav button:hover { background: rgba(255, 255, 255, .24); }
.net { background: transparent; color: #fff; padding: 5px 4px; font-weight: 600; }
.net::before { background: #2fd0de; width: 10px; height: 10px; }
.net.off::before { background: var(--ochre); }
.voix-toggle { background: #fff; color: var(--vert); border: 0; width: 40px; height: 40px; }
.voix-toggle[aria-pressed="false"] { background: rgba(255, 255, 255, .2); color: #fff; }
/* Accueil : bonjour + carte troupeau bleu nuit */
.home-head { background: none; margin: 0; padding: 0; overflow: visible; }
.home-head::before, .home-head::after { content: none; }
.home-hello { color: var(--ink); font-size: 22px; margin: 2px 0 12px; }
.home-hello b { display: inline; color: var(--ink); font-size: 22px; font-weight: 800; margin-left: .25em; }
.herd-card { background: var(--bleu-nuit); color: #fff; border-radius: 18px; padding: 16px; box-shadow: none; }
.herd-top { color: #c3ccd7; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.herd-eye { background: rgba(255, 255, 255, .1); color: #fff; margin: -6px -6px -6px 0; }
.herd-eye:hover { background: rgba(255, 255, 255, .18); }
.herd-main { color: #fff; margin: 6px 0 12px; gap: 10px; }
.herd-main b { color: #fff; font-size: 44px; }
.herd-main span { color: #c3ccd7; }
.herd-chips .chip { background: rgba(47, 208, 222, .16); color: #2fd0de; padding: 6px 10px; font-size: 12px; }
.herd-chips .chip.st-ko { background: rgba(247, 160, 67, .2); color: #f7a043; }
.herd-chips .chip.st-warn { background: rgba(247, 160, 67, .16); color: #f7c27f; }
/* Tuiles « autour de vous » : cartes blanches, liseré à gauche, la première sur toute la largeur */
.dash-tiles { margin: 12px 0 0; }
.dash-tiles > .tile:first-child { grid-column: span 2; }
.tile { border: 1px solid var(--line); border-left: 5px solid var(--c); border-top: 1px solid var(--line);
  border-radius: 16px; padding: 14px; box-shadow: none; gap: 4px; }
.tile:hover { box-shadow: 0 0 0 1px var(--c); }
.tile-head { font-size: 12px; color: var(--muted); }
.tile-head .ico { width: 22px; height: 22px; border-radius: 7px; }
.tile-head .ico svg { width: 13px; height: 13px; }
.tile-value { font-size: 22px; color: #111418; margin: 0; }
.tile-value small { font-size: 13px; font-weight: 600; color: var(--muted); }
.tile-line { font-size: 12px; color: var(--muted); }
.tile-line b { color: var(--ink); }
.tile-foot { border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); margin-top: 4px; padding-top: 6px; }
#tile-meteo[style*="#d0661c"], #tile-meteo[style*="#c0392b"] { border: 2px solid var(--c); border-left-width: 5px; }
/* Tableau de bord : carte blanche, chiffres en pastilles */
.dash-hero { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; margin: 12px 0 0; box-shadow: none; overflow: visible; }
.dash-hero::after { content: none; }
.dash-kicker { color: #5a6573; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; }
.dash-hero h2 { color: #111418; font-size: 22px; margin: 4px 0 2px; }
.dash-hero h2::after { content: none; }
.dash-ctx { color: var(--muted); font-size: 13px; }
.dash-counts { margin-top: 10px; }
.dash-counts span { background: var(--ciel-soft); color: var(--ciel); font-size: 12px; font-weight: 700; padding: 6px 10px; }
.dash-counts span.warn { background: #fdf0e2; color: #a9540a; }
/* Aperçu de la carte */
.dash-map-wrap { border: 1px solid var(--line); box-shadow: none; }
#mini-map { height: 230px; background: #eef1f4; }
.dash-map-open { background: var(--bleu-nuit); min-height: 44px; display: flex; align-items: center; padding: 0 16px; box-shadow: none; }
.labs-sig { position: absolute; left: 10px; bottom: 12px; z-index: 500; font-size: 10px; font-weight: 800; color: var(--muted);
  background: rgba(255, 255, 255, .85); padding: 2px 6px; border-radius: 6px; letter-spacing: .02em; }
.labs-sig i { font-style: normal; color: var(--ochre); }
/* Alertes : orange doux, filet orange */
.dash-alert { background: #fdf0e2; border: 2px solid var(--ochre); border-radius: 16px; color: var(--ink); padding: 14px 16px; margin: 12px 0 0; }
.dash-alert b { color: #a9540a; font-size: 15px; font-weight: 800; }
.dash-alert .ico { background: transparent; color: var(--ochre-texte); width: 30px; height: 30px; }
.dash-alert .ico svg { width: 26px; height: 26px; }
.dash-alert .meteo-plus { color: var(--ciel); text-decoration: none; font-weight: 700; font-size: 12px; }
.dash-alert.meteo-alerte.n1 { background: #fdf0e2; border-color: var(--ochre); }
.dash-alert.meteo-alerte.n2 { background: var(--danger-soft); border-color: var(--danger); }
.dash-alert.meteo-alerte.n2 b { color: var(--danger); }
.dash-alert.meteo-alerte .ico { background: transparent; }
/* Actions rapides : cartes blanches, pastille carrée arrondie */
.home-grid { gap: 8px; margin: 12px 0; }
.home-grid a, .home-grid button { min-height: 88px; padding: 10px 4px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); justify-content: center; font-weight: 700; line-height: 1.15; }
.home-grid button:hover, .home-grid a:hover { background: #fbfcfd; border-color: #c9d2dc; }
.home-grid .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--ciel-soft) !important; box-shadow: none !important; }
.home-grid .ic svg { width: 30px !important; height: 30px !important; filter: none; }
.home-grid > :nth-child(1) .ic { background: var(--vert) !important; }
.home-grid > :nth-child(5) .ic { background: var(--ciel) !important; }
.home-grid > :is(:nth-child(3), :nth-child(4), :nth-child(6), :nth-child(8)) .ic { background: #fdf0e2 !important; }
.home-grid a:active .ic, .home-grid button:active .ic { box-shadow: 0 0 0 3px rgba(23, 181, 196, .35) !important; }
/* Zones suivies, services, liens de détail */
.zones-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin: 12px 0; }
.zone-carte { background: var(--bg); border: 0; border-radius: 12px; }
#zones-ajout, .zones-sec button.secondary { border: 1px solid #c9d2dc; color: var(--ink); background: var(--surface); border-radius: 12px; min-height: 44px; }
.dash-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 4px; }
.dash-more button { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid #c9d2dc; color: var(--ink); font-weight: 700; }
.svc { border-radius: 16px; }
.svc .ic { box-shadow: none; }
.card, .list li { box-shadow: none; border-color: var(--line); }
/* Barre d'onglets blanche, onglet actif en vert gras */
.tabs { background: #fff; border-top: 1px solid var(--line); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.tabs::before { content: none; }
.tabs button { color: var(--muted); font-weight: 600; }
.tabs button.active { background: transparent; color: var(--vert); font-weight: 800; }
.tabs button:hover { background: transparent; color: var(--vert); }
/* Signaler : pilule orange, texte foncé (contraste 7:1) */
.fab-signal { background: var(--ochre); color: #111418; min-height: 56px; border-radius: 28px; padding: 8px 20px; font-weight: 800; font-size: 15px;
  box-shadow: 0 6px 16px rgba(11, 26, 46, .25); }
.fab-signal .fab-txt { text-shadow: none; }
@keyframes fab-pouls { 50% { transform: scale(1.04); box-shadow: 0 10px 24px rgba(11, 26, 46, .32); } }
/* Carte : outils et légende en panneaux blancs à filet */
.map-tools { background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-radius: 14px; box-shadow: none; padding: 8px; gap: 6px; }
.map-tools button { background: var(--vert); min-height: 44px; border-radius: 10px; font-weight: 700; font-size: 13px; }
.map-tools label { background: var(--bg); min-height: 44px; padding: 0 10px; border-radius: 10px; margin: 0; font-size: 13px; }
.map-tools input[type=checkbox] { accent-color: var(--vert); width: 18px; height: 18px; }
.legend span { background: rgba(255, 255, 255, .96); border: 1px solid var(--line); box-shadow: none; font-weight: 600; }
/* Titres des rubriques : sobres, comme les maquettes */
.tab > h2 { color: #111418; font-weight: 800; }
.tab > h2::after { background: var(--turquoise); width: 28px; height: 3px; }
button.secondary { border-color: #c9d2dc; }
#tab-accueil .tile { border-top-width: 1px; padding: 14px; gap: 4px; border-radius: 16px; }
/* Carte : légende et zoom au-dessus du bouton Signaler (plus de chevauchement) */
#tab-carte .legend { bottom: 84px; }
#tab-carte .leaflet-bottom.leaflet-right { bottom: 132px; }
/* Essai terrain par relais (15 nov.) */
.ob-relais { margin: 0 0 10px; padding: 10px 14px; border-radius: 14px; background: #fdf0e2; border: 2px solid var(--ochre); color: var(--ink); font-size: 14px; text-align: center; }
.ob-relais b { color: #a9540a; }
.rel-inv { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.rel-inv img { border-radius: 10px; border: 1px solid var(--line); flex: none; }
.rel-inv > div { flex: 1 1 220px; min-width: 0; }
.rel-lien { margin: 0 0 8px; font-weight: 700; overflow-wrap: anywhere; }
.rel-inv .row button, .rel-inv .row .btn { width: auto; flex: 1 1 150px; margin: 0; }
.rel-resume { margin: 8px 0; flex: 1; }
.rel-regions { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
#rel-table tr.rel-silence td { color: var(--muted); }
#rel-table tr.rel-silence td:last-child { color: var(--ochre-texte); font-weight: 700; }
.ob .brand-name .b360n, .ob .brand-sub .b360 { color: var(--turquoise-texte); }
.ob .brand-sub { color: var(--muted); }
.ob .brand-mark rect { fill: var(--vert); }
dialog pre { font-family: var(--font-body); font-size: 15px; line-height: 1.5; margin: 8px 0 16px; }

/* École (15-11-2026) : écoles proches, « Mon école », fiche écrite ou vocale */
.ec-card { padding: 14px; border-left: 5px solid #1b5fa8; }
.ec-card h3 { margin: 0 0 6px; }
.ec-tete { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.ec-tete small { display: block; color: var(--muted); }
.ec-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: #1b5fa8; color: #fff; display: grid; place-items: center; }
.ec-ic svg { width: 24px; height: 24px; }
.ec-niv { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.ec-resume { margin: 6px 0; padding-left: 18px; line-height: 1.5; }
.ec-card .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.ec-card .row button { width: auto; }
.ec-card audio { width: 100%; margin: 6px 0; }
#ec-mienne { margin: 12px 0; }
#form-ecole fieldset.ec-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 6px 0 12px; }
#form-ecole fieldset.ec-nums legend { font-weight: 700; padding: 0 4px; }
#form-ecole fieldset.ec-nums label { margin: 0; font-size: 14px; }
#form-ecole .sig-voix { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; }
#ec-voix.rec { background: #c0392b; color: #fff; }
.ec-chiffres { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 8px 0; }
.ec-chiffres div { background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.ec-chiffres b { display: block; font-size: 20px; color: #1b5fa8; }
.ec-chiffres span { font-size: 12.5px; color: var(--muted); }

/* Zones à risque (veille environnementale, 16 nov. 2026) */
.dash-alert.vr-alerte { cursor: pointer; }
.dash-alert.vr-alerte.vigilance { background: #fff3e2; border-left-color: #e8891c; color: #5a3306; }
.dash-alert.vr-alerte.vigilance .ico { background: #e8891c; }
.dash-alert.vr-alerte.vigilance b { color: #8a4a06; }
.vr-ici { border-left: 5px solid var(--muted, #5a6573); }
.vr-ici.exclusion { border-left-color: #c0392b; background: #fdecea; }
.vr-ici.vigilance { border-left-color: #e8891c; background: #fff3e2; }
.vr-ici p { margin: 6px 0 0; font-size: 14px; }
.vr-carte { height: 280px; border-radius: 14px; margin: 10px 0 6px; overflow: hidden; background: #e9e2d0; }
.vr-legende { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; margin: 0 0 10px; }
.vr-legende i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.vr-site h3 { margin: 0 0 6px; }
.vr-site .meta { margin-bottom: 4px; }
.vr-site .chip.warn { background: #fdecea; color: #8a1c12; }
.vr-conseils { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.vr-signaler { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: #3b3a4a; margin-top: 8px; }
.vr-signaler svg { width: 20px; height: 20px; }

/* Entrée par profil (17 nov.) : gros boutons avec pictogramme, compris sans savoir lire. */
.ob-profils { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.ob-profils button {
  min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-size: 16px; font-weight: 700; line-height: 1.2; text-align: center;
  background: var(--surface); color: var(--vert); border: 1.5px solid var(--line); box-shadow: var(--shadow);
}
.ob-profils button svg { width: 30px; height: 30px; }
.ob-profils button:hover, .ob-profils button[aria-pressed=true] { background: var(--vert); color: #fff; border-color: var(--vert); }
.ob-ptypes { display: flex; flex-direction: column; gap: 8px; }
.ob-ptypes button { text-align: left; background: var(--surface); color: var(--ink, inherit); border: 1.5px solid var(--line); font-weight: 600; }
.ob-ptypes button[aria-pressed=true] { background: var(--vert); color: #fff; border-color: var(--vert); }
.ob-cultures { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.ob-cultures label { margin: 0; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; }
.ob-cultures input { position: absolute; opacity: 0; pointer-events: none; }
.ob-cultures label:has(input:checked) { background: var(--vert); color: #fff; border-color: var(--vert); }
.ob-cultures label:has(input:focus-visible) { outline: 2px solid var(--vert); outline-offset: 2px; }
.ob-pour { display: flex; flex-direction: column; gap: 8px; }
#ob-place-wrap { display: flex; flex-direction: column; gap: 8px; }
.t-plus { margin: 8px 0; }
.t-plus summary { cursor: pointer; font-weight: 600; color: var(--vert); }
#t-btn-marque { margin: 8px 0; }

/* Ce que voit chaque profil (17 nov.) : un partenaire n'a pas de troupeau ; il voit son espace partenaire. */
.home-partenaire { display: none; }
body[data-profil="partenaire"] .home-partenaire { display: block; text-decoration: none; }
body[data-profil="partenaire"] .home-partenaire .title { display: block; }
body[data-profil="partenaire"] #herd-card,
body[data-profil="partenaire"] .home-grid [data-go],
body[data-profil="partenaire"] nav button[data-tab="troupeau"] { display: none; }

/* Troupeau simplifié (17 nov.) : une carte par espèce, une seule marque. */
.t-esp-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.t-esp { display: flex; flex-direction: column; gap: 8px; padding: 12px; margin: 0; }
.t-esp.vide { opacity: .85; }
.t-esp-top { display: flex; align-items: center; gap: 10px; }
.t-esp-picto { width: 46px; height: 46px; flex: none; }
.t-esp-top b.t-esp-n { display: block; font-size: 30px; line-height: 1; }
.t-esp-top span { font-weight: 600; }
.t-esp-vac { margin: 0; font-size: 13px; color: var(--muted, #667); }
.t-esp-vac.ok { color: var(--acacia, #2f8a57); font-weight: 600; }
.t-esp-vac.ko { color: var(--danger); font-weight: 700; }
.t-esp-act { display: flex; flex-direction: column; gap: 6px; }
.t-esp-act button { min-height: 44px; }
.t-esp-form { display: flex; flex-direction: column; gap: 8px; }
.t-esp:has(.t-esp-form:not([hidden])) { grid-column: 1 / -1; }
.t-pas { display: grid; grid-template-columns: 52px 1fr 52px; gap: 6px; }
.t-pas input { text-align: center; font-size: 22px; font-weight: 700; }
.t-pas button { font-size: 24px; padding: 0; }
.t-choix { display: flex; gap: 8px; }
.t-choix label { flex: 1; }
.t-choix input { position: absolute; opacity: 0; }
.t-choix span { display: block; text-align: center; padding: 10px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; }
.t-choix input:checked + span { background: var(--vert); color: #fff; border-color: var(--vert); }
.t-marque-troupeau { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.t-mq { display: flex; align-items: center; gap: 10px; }
.t-mq img { width: 56px; height: 56px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.t-mq b, .t-mq span { display: block; }
.t-chaque summary { font-size: 15px; }

/* Chaleur et froid dans la météo (17 nov.) */
.mj-temp { display: block; font-weight: 600; }
.mj-temp.chaud { color: #c2410c; }
.mj-temp.froid { color: #1d4ed8; }

/* Légende = filtre de la carte (18 nov.) */
.legend button { width: auto;
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; margin: 0;
  background: rgba(255, 255, 255, .96); color: var(--ink, #111418); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px 5px 6px; font-size: 12px; font-weight: 700; box-shadow: none; cursor: pointer;
}
.legend button[data-filtre="tout"] { padding: 5px 14px; }
.legend button[aria-pressed="true"] { background: var(--vert); color: #fff; border-color: var(--vert); }

/* Écran d'ouverture : connexion simple, création de compte par un petit lien (18 nov.) */
.ob-langue-btn { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px;
  background: #fff; color: var(--vert); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 700; box-shadow: none; }
.ob-langue-btn svg { width: 18px; height: 18px; }
.ob-inner { position: relative; }
.ob.ob-accueil .ob-icon, .ob.ob-accueil .ob-step { display: none; }
.ob.ob-accueil .ob-brand { flex-direction: column; text-align: center; gap: 12px; margin: 40px auto 18px; }
.ob.ob-accueil .ob-brand .brand-mark { width: 96px; height: 96px; box-shadow: 0 0 0 14px rgba(27, 110, 63, .08), 0 0 0 30px rgba(27, 110, 63, .05); border-radius: 26px; }
.ob.ob-accueil .ob-brand .brand-name { font-size: 26px; }
.ob.ob-accueil #ob-title { text-align: center; }
.ob.ob-accueil #ob-lead { text-align: center; }
.ob-champ { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 12px; margin-bottom: 12px; min-height: 56px; }
.ob-champ:focus-within { border-color: var(--vert); }
.ob-champ input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 20px; font-weight: 600; min-height: 52px; padding: 0; margin: 0; box-shadow: none; letter-spacing: .5px; }
.ob-indicatif { font-weight: 700; color: var(--muted, #667); padding: 0 6px 0 0; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; font-size: 17px; width: auto; min-height: 40px; margin: 0; box-shadow: none; max-width: 150px; }
.ob-cadenas svg, .ob-oeil svg { width: 20px; height: 20px; color: var(--muted, #667); }
.ob-oeil { background: none; border: 0; padding: 6px; min-height: 0; box-shadow: none; }
.ob-oubli { display: block; margin: 0 0 16px auto; font-size: 14px; }
#ob-login-btn { width: 100%; min-height: 56px; font-size: 18px; font-weight: 800; border-radius: 14px; }
.ob-creer { text-align: center; margin: 22px 0 0; font-size: 15px; }
.ob-creer .link { font-weight: 800; text-decoration: underline; font-size: 15px; }
.ob-langue-btn, .ob-oeil, .ob-oubli, .ob-creer .link { width: auto; flex: none; }
.ob-champ input { min-width: 0; width: auto; }
.ob-creer .link { display: inline; padding: 0; min-height: 0; }
.ob-langue-btn { left: auto; z-index: 2; }

/* Écran d'ouverture propre à TAMADANTE (18 nov.) : paysage pastoral en bandeau, carte blanche par-dessus. */
.ob-hero { display: none; }
.ob.ob-accueil { padding-top: 0; background: #f4efe4; }
.ob.ob-accueil .ob-hero { display: block; position: absolute; top: 0; left: 0; right: 0; height: 310px; overflow: hidden; }
.ob.ob-accueil .ob-hero svg { width: 100%; height: 100%; display: block; }
.ob.ob-accueil .ob-inner { margin-top: 268px; background: #fff; border-radius: 22px; padding: 22px 18px 20px; box-shadow: 0 10px 30px rgba(18, 59, 40, .14); z-index: 1; }
.ob.ob-accueil .ob-brand { position: absolute; top: -248px; left: 2px; flex-direction: row; text-align: left; margin: 0; gap: 10px; }
.ob.ob-accueil .ob-brand .brand-mark { width: 44px; height: 44px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); border-radius: 12px; }
.ob.ob-accueil .ob-brand .brand-name { color: #fff; font-size: 22px; }
.ob.ob-accueil .ob-brand .brand-sub, .ob.ob-accueil .ob-brand .b360, .ob.ob-accueil .ob-brand .b360n { color: rgba(255, 255, 255, .85); }
.ob.ob-accueil .ob-langue-btn { top: -244px; right: 2px; background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .45); }
.ob.ob-accueil #ob-title { text-align: left; font-size: 22px; }
.ob.ob-accueil #ob-lead { text-align: left; }
.ob-creer { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 20px 0 0; padding-top: 16px; border-top: 1px dashed var(--line); text-align: center; font-size: 14px; color: var(--muted, #667); }
.ob-creer #ob-creer { width: 100%; min-height: 50px; border-radius: 14px; font-weight: 800; font-size: 16px; color: var(--vert); border: 2px solid var(--vert); background: #fff; text-decoration: none; }

/* Logo femme éleveuse (18 nov.) : le dessin garde ses couleurs partout, y compris dans la barre verte. */
.brand-mark rect, .ob .brand-mark rect, .topbar .brand-mark rect { fill: #1b6e3f; }
.topbar .brand-mark { border-radius: 8px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55); }
.ob.ob-accueil .ob-brand .brand-mark { box-shadow: 0 0 0 2px rgba(255, 255, 255, .7), 0 4px 12px rgba(0, 0, 0, .2); }
/* Bannière de l'accueil : même scène que l'écran d'ouverture. */
.home-banniere { position: relative; height: 128px; border-radius: 20px; overflow: hidden; margin: 2px 0 12px; }
.home-banniere .hb-scene, .home-banniere .hb-scene svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.home-banniere .home-hello { position: relative; margin: 0; padding: 16px 18px; color: rgba(255, 255, 255, .9); font-size: 16px; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); max-width: 62%; }
.home-banniere .home-hello b { display: block; margin: 2px 0 0; color: #fff; font-size: 24px; }

/* Bannière de l'accueil, silhouette v3 (18 nov.) */
.home-banniere { height: 156px; }

/* Connexion par empreinte digitale (18 nov.) */
.ob-empreinte { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; margin-top: 10px;
  background: #fff; color: var(--vert); border: 2px solid var(--vert); border-radius: 14px; font-weight: 800; font-size: 16px; }
.ob-empreinte svg { width: 26px; height: 26px; flex: none; }
.empr-dlg { text-align: center; padding: 4px 4px 8px; }
.empr-dlg .empr-big { display: inline-flex; width: 84px; height: 84px; border-radius: 50%; align-items: center; justify-content: center;
  background: #e6f3ea; color: var(--vert); margin: 4px 0 8px; }
.empr-dlg .empr-big svg { width: 50px; height: 50px; }
.empr-dlg button { width: 100%; margin-top: 10px; }
.empr-card .title { display: flex; align-items: center; gap: 8px; }
.empr-ico { display: inline-flex; color: var(--vert); }
.empr-ico svg { width: 22px; height: 22px; }
#empr-avis { position: fixed; left: 16px; right: 16px; bottom: 90px; z-index: 50; background: #123b28; color: #fff; padding: 12px 16px;
  border-radius: 14px; font-weight: 600; text-align: center; opacity: 0; transform: translateY(10px); transition: .25s; pointer-events: none; }
#empr-avis.vu { opacity: 1; transform: none; }
.ob-empreinte span { width: auto; flex: none; }

/* Quitter la session (confirmation Quitter / Annuler) */
.compte { position: relative; }
.compte-btn { display: flex; align-items: center; gap: 2px; margin: 0; padding: 3px 6px 3px 3px; min-height: 0; height: 40px; border-radius: 22px; background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.35); color: #fff; width: auto; }
.compte-btn svg { width: 18px; height: 18px; }
.compte-ini { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #f6a640; color: #0b2e20; font-weight: 800; font-size: 15px; }
.compte-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 1200; width: 250px; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 14px 40px rgba(0,0,0,.22); padding: 8px; border: 1px solid var(--line); }
.compte-qui { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; flex-direction: column; }
.compte-qui b { font-size: 16px; }
.compte-qui small { color: var(--muted, #667); font-size: 13px; }
.compte-menu button { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 12px 10px; min-height: 0; background: none; border: 0; color: var(--ink); font-size: 16px; font-weight: 600; text-align: left; border-radius: 10px; }
.compte-menu button:hover, .compte-menu button:focus-visible { background: #f2f5f1; }
.compte-menu button svg { width: 22px; height: 22px; flex: none; }
.compte-menu .danger-txt { color: #a2412c; }
.compte-menu .hint { margin: 6px 10px 4px; font-size: 13px; }
.btn-sortir { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 18px 0 6px; color: #a2412c; border-color: #e3c3b9; }
.btn-sortir svg { width: 20px; height: 20px; }
.sortie-dlg { text-align: center; padding: 6px 4px 8px; }
.sortie-dlg h3 { margin: 10px 0 4px; font-size: 22px; text-transform: none; letter-spacing: -.01em; color: var(--ink); }
.sortie-big { display: inline-flex; width: 72px; height: 72px; border-radius: 50%; align-items: center; justify-content: center; background: #f6e7e2; color: #a2412c; }
.sortie-big svg { width: 38px; height: 38px; }
.sortie-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.sortie-btns button { margin: 0; min-height: 50px; font-size: 17px; }
button.danger { background: #b9452c; border-color: #b9452c; color: #fff; }
.topbar-end { margin-left: auto; }

/* Dessin de la marque (18 nov., Alhadi) : tout tient sur un écran, « Enregistrer » visible sans défiler. */
#dessin-dlg { max-height: 100dvh; padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
#dessin-dlg .sheet-head { margin-bottom: 4px; }
#dessin-dlg .sheet-head h3 { font-size: 18px; }
#dessin-dlg .sheet-x { width: 38px; height: 38px; font-size: 20px; }
#dessin-dlg .dessin-choix { flex-direction: row; flex-wrap: wrap; gap: 4px 10px; margin: 0; }
#dessin-dlg .dessin-grp { gap: 4px; }
#dessin-dlg .dessin-grp button { padding: 5px 9px; font-size: 12.5px; min-height: 34px; }
#dessin-dlg .dessin-grp button svg.picto { width: 20px; height: 20px; margin: -3px 3px -3px -3px; }
#dessin-dlg #dessin-aide { font-size: 12.5px; margin: 4px 0 0; line-height: 1.3; }
#dessin-pad { width: min(100%, 360px, calc(100dvh - 340px)); min-width: 170px; margin: 4px auto; }
#dessin-dlg .v-label { font-size: 12px; margin: 0; }
#dessin-dlg .dessin-modeles { padding: 2px 0 4px; }
#dessin-dlg .dessin-modeles .t-marque-opt { width: 42px; height: 42px; }
#dessin-dlg .dessin-actions { flex-wrap: nowrap; gap: 6px; margin: 0; }
#dessin-dlg .dessin-actions button { flex: 1 1 0; padding: 0 8px; min-height: 46px; font-size: 14px; margin: 0; white-space: nowrap; }
#dessin-dlg .dessin-actions button[data-dessin="valider"] { flex: 1.6 1 0; font-size: 15px; }
#dessin-dlg #dessin-msg { margin: 4px 0 0; min-height: 0; }

/* Mode Partenaire dans le profil (19 nov., Alhadi) : comme un passage en mode PRO, même numéro. */
.mode-pro { border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; margin: 12px 0; background: var(--surface); }
.mode-pro.on { border-color: var(--ciel); box-shadow: 0 0 0 3px rgba(27, 95, 168, .12); }
.mode-pro-tete { display: flex; align-items: center; gap: 10px; }
.mode-pro-tete > div { flex: 1; min-width: 0; }
.mode-pro-tete b { display: block; font-size: 16px; }
.mode-pro-tete small { display: block; font-size: 12.5px; color: #5b6170; line-height: 1.3; }
.mode-pro-badge { flex: none; font-weight: 800; font-size: 12px; letter-spacing: .06em; color: #fff; background: linear-gradient(135deg, var(--ciel), #17b5c4); border-radius: 8px; padding: 5px 7px; }
.interrupteur { position: relative; flex: none; width: 52px; height: 30px; margin: 0; }
.interrupteur input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; z-index: 1; }
.interrupteur span { position: absolute; inset: 0; border-radius: 999px; background: #cfd3da; transition: background .2s; }
.interrupteur span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.interrupteur input:checked + span { background: var(--ciel); }
.interrupteur input:checked + span::after { transform: translateX(22px); }
.interrupteur input:disabled + span { opacity: .6; }
.interrupteur input:focus-visible + span { outline: 3px solid rgba(27, 95, 168, .35); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mode-pro-info { margin: 8px 0 0; padding: 0; box-shadow: none; background: none; border-radius: 0; }
.mode-pro-info summary { cursor: pointer; font-weight: 700; color: var(--ciel); font-size: 14px; }
.mode-pro-info h4 { margin: 12px 0 4px; font-size: 14px; }
.mode-pro-info ul, .mode-pro-info ol { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.45; }
.mode-pro-gratuit { margin: 0 0 6px; font-size: 13.5px; }
.mode-pro-tarifs table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 8px; }
.mode-pro-tarifs th, .mode-pro-tarifs td { text-align: left; padding: 5px 4px; border-bottom: 1px solid var(--line); }
.mode-pro-tarifs th { font-size: 12px; color: #5b6170; font-weight: 700; }
.mode-pro-tarifs .n { text-align: right; white-space: nowrap; }

/* Champs fichier en français (19 nov.) : bouton « Choisir une photo », nom choisi, aide en petits caractères. */
.fichier { position: relative; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; padding: 8px; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--surface); }
.fichier .fichier-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; padding: 0; z-index: 1; }
.fichier-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; background: var(--ciel); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; }
.fichier-nom { font-size: 13.5px; color: #5b6170; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.fichier .fichier-input:focus-visible ~ .fichier-btn { outline: 3px solid rgba(27, 95, 168, .35); outline-offset: 2px; }
.fichier-aide { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; color: #5b6170; line-height: 1.35; }

/* Boutique de cartes (espace Partenaire) */
.boutique-cartes .carte-offre .title { font-size: 16px; }
.carte-prix { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.carte-prix .chip b { color: var(--green); }
.carte-choix { margin: 8px 0 0; padding: 0; box-shadow: none; border: 0; background: none; }
.carte-choix > summary { font-weight: 700; color: var(--green); cursor: pointer; padding: 6px 0; }
.carte-choix .row { display: flex; gap: 6px; }
.carte-choix .row input { flex: 1; min-width: 0; }
.carte-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.carte-chips .chip { border: 0; cursor: pointer; width: auto; display: inline-flex; flex: none; }
.carte-offre .desc { font-size: 15px; line-height: 1.45; margin: 4px 0; }
.carte-montant { margin: 8px 0; }
.panier { border: 2px solid var(--green); }
.panier-lignes { list-style: none; margin: 8px 0; padding: 0; }
.panier-lignes li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.panier-lignes .n { text-align: right; white-space: nowrap; }
.panier-total { font-size: 16px; }
button.lien { background: none; border: 0; color: var(--danger, #b00020); padding: 0; min-height: 0; text-decoration: underline; font-size: 13px; }
.carte-fichiers { display: grid; gap: 6px; margin: 8px 0; }

/* Profil : fiche résumée après enregistrement (Alhadi, 23 nov.) */
.prof-resume { display: grid; gap: 10px; }
.pr-tete { display: flex; gap: 12px; align-items: center; }
.pr-ini { width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 800; flex: none; }
.pr-nom { font-size: 20px; font-weight: 800; line-height: 1.2; }
.pr-badges, .pr-animaux { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pr-badges .chip, .pr-animaux .chip { width: auto; flex: none; }
.pr-type { background: var(--green); color: #fff; }
.pr-pro b { background: #0b1a2e; color: #fff; border-radius: 4px; padding: 0 4px; margin-right: 4px; font-size: 11px; }
.troupeau-vide { background: #fff7e6; border: 1px solid #f2c46d; border-radius: 10px; padding: 10px 12px; }
.troupeau-vide p { margin: 0 0 8px; }
.prof-boutons button { flex: 1; }

.t-cache { display: none !important; }
.t-esp-grille.focus { grid-template-columns: 1fr; }
/* Admin → Gestion : rien ne dépasse de l'écran du téléphone (Alhadi, 23 nov.) */
#g-tech-detail table { width: 100%; table-layout: fixed; }
#g-tech-detail td, #g-tech-detail th { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
#g-tech-detail td:first-child { width: 38%; }
.g-btn-cell { display: block; width: 100%; margin-top: 6px; white-space: normal; }

/* Profil : mes avantages et mes fonctions (23 nov.) */
.fn-card .title { margin-bottom: 6px; }
.fn-av { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.fn-av:first-of-type { border-top: 0; margin-top: 4px; padding-top: 0; }
.fn-av h4 { margin: 0 0 8px; font-size: 1rem; }
.fn-av h5 { margin: 12px 0 6px; font-size: .9rem; color: var(--muted); }
.fn-valeur { background: var(--vert-soft); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; margin-bottom: 10px; }
.fn-valeur b { font-size: 1.5rem; color: var(--vert); }
.fn-valeur small, .fn-evo small, .fn-org-pied small { color: var(--muted); }
.fn-org { margin: 8px 0; }
.fn-org-tete, .fn-org-pied { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; flex-wrap: wrap; }
.fn-barre { height: 10px; background: var(--line); border-radius: 6px; overflow: hidden; margin: 4px 0; }
.fn-barre span { display: block; height: 100%; background: var(--turquoise); border-radius: 6px; }
.fn-evos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.fn-evo { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; display: grid; gap: 2px; }
.fn-evo b { font-size: 1.25rem; }
.fn-evo.up b { color: var(--vert); }
.fn-evo.down b { color: var(--danger); }
.fn-jauge small { color: var(--muted); }
.fn-chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.fn-chiffres div { background: var(--ciel-soft); border-radius: 12px; padding: 8px 10px; display: grid; }
.fn-chiffres b { font-size: 1.3rem; color: var(--ciel); }
.fn-sujets, .fn-liste, .fn-trouves { list-style: none; padding: 0; margin: 0; }
.fn-sujets li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.fn-liste li, .fn-trouves li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fn-liste li > div, .fn-trouves li > span { flex: 1; min-width: 0; display: grid; }
.fn-liste small, .fn-trouves small { color: var(--muted); }
.fn-ic { font-size: 1.4rem; }
.fn-choix { display: grid; gap: 8px; margin-top: 10px; }
.fn-choix button { text-align: left; }
.fn-saisie h4 { margin: 4px 0 10px; }
.fn-saisie fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.fn-cases .check { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-weight: 400; }
.fn-cases .check input { width: 20px; height: 20px; flex: none; }
button.lien.danger { color: var(--danger); }
.fn-trouves li { flex-wrap: wrap; }
.fn-trouves li > span { flex: 1 1 100%; }
.fn-trouves li button { width: 100%; }
.ob-cgu { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 6px; font-size: 14px; line-height: 1.4; text-align: left; }
.ob-cgu input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--vert); }
.ob-cgu a { color: var(--ciel-2); font-weight: 600; }
.tab-defile { overflow-x: auto; margin-bottom: 10px; }
table.prix-reperes input { width: 100%; min-width: 84px; padding: 6px; font-size: 14px; }
table.prix-reperes th { white-space: nowrap; }
.fn-choix button.fn-prio { border-color: var(--vert); background: var(--vert-soft); }

/* ---------- Marché, rayon « Prix » (observatoire des prix, 23 nov. 2026) ---------- */
.x-question .row { display: flex; gap: 8px; }
.x-question .row input { flex: 1; }
.x-question .row button { width: auto; }
.x-reponse { white-space: pre-line; background: var(--ciel-soft); border-left: 4px solid var(--turquoise); border-radius: 10px; padding: 10px 12px; margin: 10px 0 6px; }
.x-marche summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; cursor: pointer; list-style: none; }
.x-marche summary::-webkit-details-marker { display: none; }
.x-marche-nom small { color: var(--muted); font-weight: 500; }
.x-table { width: 100%; border-collapse: collapse; margin: 10px 0 4px; font-size: 14px; }
.x-table td { padding: 7px 4px; border-top: 1px solid var(--line); vertical-align: top; }
.x-table .x-prix { text-align: right; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.x-var { display: block; font-weight: 600; }
.x-hausse { color: var(--danger); }
.x-baisse { color: var(--acacia); }
.x-releves { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.x-releves small { display: block; color: var(--muted); }
.x-carte { height: 340px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.x-alerte.x-risque_pastoral { border-left: 4px solid var(--danger); }
.x-alerte.x-termes_echange, .x-alerte.x-hausse, .x-alerte.x-ecart { border-left: 4px solid var(--ochre); }
.x-voix { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.x-voix button { width: auto; }
.x-voix button.rec { background: var(--danger); color: #fff; border-color: var(--danger); }
.x-texte { white-space: pre-wrap; background: var(--bg); border-radius: 10px; padding: 12px; font: 13px/1.5 ui-monospace, "SF Mono", Consolas, monospace; overflow-x: auto; }
.x-mesure { display: block; width: 100%; text-align: left; margin: 6px 0; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.x-mesure small { display: block; color: var(--muted); }
.x-mesure, .x-mesure b { color: var(--ink); font-weight: 600; }
.x-mesure.active { border-color: var(--turquoise); background: var(--ciel-soft); color: var(--ink); }
.x-courbe { margin: 12px 0; }
.x-courbe svg { width: 100%; height: auto; background: var(--bg); border-radius: 10px; }
.admin-sub { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.admin-sub button { width: auto; padding: 8px 12px; font-size: 13px; }
.admin-sub button.active { background: var(--vert); color: #fff; border-color: var(--vert); }
.x-vocal audio { display: block; width: 100%; margin: 8px 0; }
.x-checks-marches { max-height: 220px; overflow-y: auto; }
/* Trois rayons (Animaux, Produits, Prix) sur une seule ligne. */
#m-rayons { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }

/* ---------- Mon troupeau (Alhadi, 23 nov.) : une ligne par troupeau, actions et tableau de bord derrière la flèche ---------- */
.t-esp-grille, .t-esp-grille.focus { grid-template-columns: 1fr; gap: 10px; }
.t-esp { padding: 0; gap: 0; overflow: hidden; }
.t-esp:has(.t-esp-form:not([hidden])) { grid-column: auto; }
.t-esp-top { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: none; border: 0; color: var(--ink); text-align: left; min-height: 72px; box-shadow: none; }
.t-esp-top:hover, .t-esp-top:active { background: var(--vert-soft); }
.t-esp-picto { width: 48px; height: 48px; flex: none; }
.t-esp-nom { flex: 1; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 8px; }
.t-esp-nom b.t-esp-n { font-size: 30px; line-height: 1.05; color: var(--vert); }
.t-esp-nom > span { font-weight: 700; font-size: 17px; }
.t-esp-nom small { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.t-esp-nom small.ok { color: var(--acacia); font-weight: 600; }
.t-esp-nom small.ko { color: var(--danger); font-weight: 700; }
.t-esp-fleche { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--vert-soft); color: var(--vert); transition: transform .2s; }
.t-esp-fleche svg { width: 22px; height: 22px; }
.t-esp.ouvert .t-esp-fleche { transform: rotate(180deg); background: var(--vert); color: #fff; }
.t-esp-corps { border-top: 1px solid var(--line); padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.t-esp-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.t-act { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; min-height: 62px; font-size: 12px; font-weight: 600; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: none; }
.t-act i { font-style: normal; font-size: 18px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; line-height: 1; }
.t-act.a-vert i { background: var(--vert-soft); color: var(--vert); }
.t-act.a-bleu i { background: var(--ciel-soft); color: var(--ciel); }
.t-act.a-rouge i { background: var(--danger-soft); color: var(--danger); }
.t-act.a-ocre i { background: var(--ochre-soft); color: var(--ochre-texte); }
.t-act.a-gris i { background: var(--bg); color: var(--muted); }
.t-act.actif { border-color: var(--vert); background: var(--vert-soft); }
.t-esp-zone:empty { display: none; }
.t-esp-zone .t-esp-form { background: var(--bg); border-radius: 14px; padding: 12px; }
.t-esp-q { margin: 0; font-weight: 700; }
.t-esp-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.t-dash { display: flex; flex-direction: column; gap: 10px; }
.t-dash-titre { margin: 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ochre-texte); font-weight: 700; }
.t-dash-vac { background: var(--bg); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.t-dash-vac-h { display: flex; justify-content: space-between; font-weight: 600; }
.t-dash-vac-h b { color: var(--vert); }
.t-dash-barre { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.t-dash-barre span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--vert), var(--turquoise)); }
.t-dash-vac small { color: var(--muted); }
.t-dash-alerte { color: var(--danger); font-weight: 700; }
.t-dash-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.t-dash-t { background: var(--bg); border-radius: 12px; padding: 8px 4px; text-align: center; }
.t-dash-t b { display: block; font-size: 20px; }
.t-dash-t small { font-size: 11px; color: var(--muted); }
.t-dash-t.vert b { color: var(--vert); } .t-dash-t.rouge b { color: var(--danger); } .t-dash-t.ocre b { color: var(--ochre-texte); }
.t-dash-val { background: linear-gradient(135deg, var(--vert), #12512e); color: #fff; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.t-dash-val b { font-size: 20px; }
.t-dash-val small { opacity: .85; font-size: 12px; }
.t-dash-evt { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.t-dash-evt li { display: flex; gap: 10px; padding: 5px 0; border-top: 1px dashed var(--line); }
.t-dash-evt li span { color: var(--muted); min-width: 78px; }
.t-esp-nouv { padding: 0; margin: 0; overflow: hidden; }
.t-esp-nouv-btn { width: 100%; background: none; border: 0; color: var(--vert); font-weight: 700; min-height: 54px; box-shadow: none; }
.t-esp-nouv-corps { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.t-esp-nouv-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.t-esp-choix { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); border-radius: 12px; font-size: 13px; font-weight: 600; box-shadow: none; }
.t-esp-choix.actif { border-color: var(--vert); background: var(--vert-soft); }
.t-esp-nouv .t-esp-form { display: flex; flex-direction: column; gap: 8px; }
.t-esp-zone:not(:empty) ~ .t-dash { display: none; }

/* Un clic = seulement le bloc demandé (Alhadi, 23 nov.) */
.tab.solo > :not(.solo-cible):not(.solo-barre):not(.solo-chemin), .tab.solo .solo-chemin > :not(.solo-cible):not(.solo-chemin) { display: none !important; }
.solo-barre { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.solo-barre h2 { margin: 0; font-size: 22px; }
.solo-barre h2::after { display: none; }
.solo-retour { width: 44px; height: 44px; flex: none; padding: 0; border-radius: 50%; font-size: 22px; background: var(--vert-soft); color: var(--vert); border: 0; box-shadow: none; }

/* Accueil → Questions et suggestions (bouton WhatsApp) */
.aide-wa { display: flex; align-items: center; gap: 12px; width: 100%; margin: 14px 0; padding: 12px 14px; border: 0; border-radius: var(--radius); background: linear-gradient(135deg, #25d366, #128c4a); color: #fff; text-align: left; box-shadow: var(--shadow); }
.aide-wa-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.18); }
.aide-wa-ic svg { width: 28px; height: 28px; }
.aide-wa-t { flex: 1; display: flex; flex-direction: column; }
.aide-wa-t b { font-size: 16px; }
.aide-wa-t small { opacity: .9; font-weight: 500; }
.aide-wa-go { font-size: 28px; line-height: 1; opacity: .9; }
.aide-wa-lien { display: flex; align-items: center; justify-content: center; gap: 8px; background: #25d366; color: #fff; margin: 0 0 12px; }
.aide-wa-lien svg { width: 22px; height: 22px; }
.aide-onglets { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); margin-bottom: 12px; }
.aide-onglets button { background: none; color: var(--muted); border: 0; box-shadow: none; padding: 9px 4px; font-size: 14px; border-radius: 9px; }
.aide-onglets button[aria-selected="true"] { background: var(--surface); color: var(--vert); box-shadow: var(--shadow); }
.aide-faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.aide-faq summary { cursor: pointer; font-weight: 600; padding: 10px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.aide-faq summary::after { content: "+"; color: var(--vert); font-weight: 700; font-size: 20px; line-height: 1; }
.aide-faq details[open] summary::after { content: "−"; }
.aide-faq summary::-webkit-details-marker { display: none; }
.aide-faq p { margin: 0 0 10px; color: var(--muted); }
.aide-form { display: flex; flex-direction: column; gap: 10px; }
.aide-form #aide-rec.rec { background: var(--danger); color: #fff; border-color: var(--danger); }
.aide-form audio { width: 100%; }

/* ---------- Administration : tableau de bord d'abord (Alhadi, 23 nov.) ---------- */
#admin-body.adm-accueil .admin-pane { display: none !important; }
#admin-body.adm-rubrique .adm-tableau, #admin-body.adm-rubrique .admin-menu, #admin-body.adm-rubrique #admin-stats { display: none !important; }
#admin-body.adm-accueil .admin-menu button.active { background: var(--surface); color: var(--ink); border-color: var(--line); }
#tab-admin:has(#admin-body.adm-rubrique:not([hidden])) > .dash-kicker, #tab-admin:has(#admin-body.adm-rubrique:not([hidden])) > h2 { display: none; }
.adm-ico { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); flex: none; }
.adm-hero { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px; border-radius: var(--radius); color: #fff;
  background: radial-gradient(circle at 90% -20%, rgba(23,181,196,.45), transparent 55%), linear-gradient(135deg, var(--bleu-nuit), #123a5c); margin-bottom: 10px; }
.adm-hero small { opacity: .75; text-transform: capitalize; }
.adm-hero h3 { margin: 2px 0 0; color: #fff; font-size: 22px; }
.adm-hero-badge { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.adm-hero-badge.warn { background: var(--ochre); color: #fff; }
.adm-hero-badge.ok { background: rgba(255,255,255,.15); color: #b8f5d0; }
.adm-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.adm-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adm-kpi .adm-ico { width: 30px; height: 30px; border-radius: 9px; margin-bottom: 6px; }
.adm-kpi b { font-size: 22px; line-height: 1.1; overflow-wrap: anywhere; }
.adm-kpi span { font-size: 13px; font-weight: 600; }
.adm-kpi small { font-size: 11.5px; color: var(--muted); }
.adm-kpi em { font-style: normal; font-weight: 700; }
.adm-kpi em.up { color: var(--acacia); } .adm-kpi em.down { color: var(--danger); }
.adm-bloc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.adm-bloc-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.adm-bloc-h span { font-size: 12px; color: var(--muted); }
.adm-pastille { background: var(--danger); color: #fff !important; border-radius: 999px; padding: 1px 9px; font-weight: 800; font-size: 12px !important; }
.adm-faire { list-style: none; margin: 0; padding: 0; }
.adm-faire li + li { border-top: 1px solid var(--line); }
.adm-faire button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 0; background: none; border: 0; box-shadow: none; color: var(--ink); text-align: left; font-weight: 600; min-height: 52px; }
.adm-faire button > span:not(.adm-ico) { flex: 1; }
.adm-faire button b { background: var(--ochre-soft); color: var(--ochre-texte); border-radius: 999px; padding: 2px 10px; }
.adm-faire button i { font-style: normal; color: var(--muted); font-size: 22px; }
.adm-vide { margin: 4px 0; color: var(--acacia); font-weight: 600; }
.adm-barres { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; height: 120px; }
.adm-barres div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.adm-barres span { width: 100%; border-radius: 5px 5px 2px 2px; background: color-mix(in srgb, var(--turquoise) 45%, transparent); }
.adm-barres div.now span { background: linear-gradient(180deg, var(--turquoise), var(--vert)); }
.adm-barres small { font-size: 9.5px; color: var(--muted); }
.adm-rub-titre { margin: 16px 0 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ochre-texte); font-weight: 700; }
#admin-body .admin-menu { margin-top: 8px; }
#admin-body .admin-menu button { grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 10px 12px; }
#admin-body .admin-menu button .adm-ico { grid-row: span 2; }
#admin-body .admin-menu button b, #admin-body .admin-menu button span { grid-column: 2; }
.adm-retour { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; position: sticky; top: var(--top-h); z-index: 5; background: var(--bg); padding: 6px 0; }
.adm-retour button { width: 44px; height: 44px; padding: 0; flex: none; border-radius: 50%; background: var(--vert-soft); color: var(--vert); border: 0; font-size: 22px; box-shadow: none; }
.adm-retour h3 { margin: 0; font-size: 20px; }
.adm-sug audio { width: 100%; margin: 6px 0; }
.adm-sug textarea { width: 100%; margin: 6px 0; }
#admin-body.adm-rubrique .admin-session { display: none; }
.adm-hero h3 { text-transform: none; letter-spacing: -.01em; font-family: var(--font-display); font-weight: 800; }
.adm-bloc-h b { font-size: 15px; }
#tab-admin:has(#admin-body:not([hidden])) > .dash-kicker, #tab-admin:has(#admin-body:not([hidden])) > h2 { display: none; }
#admin-body .admin-session { margin: 0 0 8px; }
#admin-body .admin-session button { padding: 6px 10px; font-size: 12px; }
.adm-kpi { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.adm-kpi .adm-ico { grid-row: span 2; margin: 0; }
.adm-kpi small { grid-column: 1 / -1; margin-top: 4px; }
.adm-retour h3 { text-transform: none; letter-spacing: -.01em; color: var(--ink); font-size: 20px; }

/* Agriculteur : « Mon champ » (prix des cultures, gestes utiles). */
.fn-prix li { flex-wrap: wrap; }
.fn-prix li small { flex-basis: 100%; color: var(--muted, #6b7280); font-size: .78rem; }
.fn-gestes { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.fn-gestes .btn { flex: none; text-align: center; text-decoration: none; }
.prix-zone .chip.niv { font-size: .7rem; padding: 1px 7px; min-height: 0; vertical-align: middle; }

/* Tableau de bord général du troupeau (en bas de la liste des espèces) */
.t-dash-general { padding: 14px; margin: 6px 0 0; }
.t-dash-total { display: flex; flex-wrap: wrap; gap: 8px; }
.t-dash-total > div { flex: 1 1 120px; background: linear-gradient(135deg, var(--vert), #12512e); color: #fff; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.t-dash-total b { font-size: 22px; line-height: 1.15; }
.t-dash-total small { opacity: .85; font-size: 12px; }
.t-dash-sous { margin: 6px 0 0; font-weight: 700; font-size: 14px; }
.t-g { display: flex; flex-direction: column; gap: 10px; }
.t-g-tete { display: flex; align-items: center; gap: 8px; }
.t-g-tete b { flex: 1; font-size: 14px; }
.t-g-tete span { font-weight: 800; font-size: 18px; }
.t-g-picto { width: 28px; height: 28px; flex: none; }
.t-g-barre { height: 12px; border-radius: 8px; background: var(--bg); overflow: hidden; margin: 4px 0 2px; }
.t-g-barre span { display: block; height: 100%; border-radius: 8px; }
.t-g-ligne small { color: var(--muted); font-size: 12px; }

/* Bouton « Y aller » sur chaque lieu (23 nov.) */
.card.info { position: relative; }
.card.info .yaller { margin-left: auto; align-self: center; flex: none; display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px; min-height: 36px; border-radius: 999px; font-size: .82rem; font-weight: 700; width: auto;
  background: #e8f4ee; color: #1b6e3f; border: 1px solid #bfe0cc; }
.card.info .yaller svg { width: 16px; height: 16px; }
.card.info .yaller:active { background: #1b6e3f; color: #fff; }
.card.info:has(> .yaller) { grid-template-columns: auto 1fr auto; }

/* Accueil (Alhadi, 24 nov.) : bannière « Bonjour » et « Mon troupeau » plus compacts pour faire
   la place aux bandes défilantes Publicité et Annonces. */
.home-banniere { height: 92px; margin: 2px 0 8px; border-radius: 18px; }
.home-banniere .home-hello { padding: 12px 16px; font-size: 14px; }
.home-banniere .home-hello b { font-size: 20px; margin: 0; }
.herd-card { padding: 12px 14px; border-radius: 16px; }
.herd-top { font-size: 12px; }
.herd-eye { width: 36px; height: 36px; }
.herd-main { margin: 2px 0 8px; gap: 8px; }
.herd-main b { font-size: 32px; }
.herd-main span { font-size: 13px; }
.herd-esp { margin: 0 0 6px; gap: 5px; }
.herd-esp button { padding: 5px 10px; font-size: 12px; }
.herd-chips .chip { padding: 4px 9px; }

.bande { display: flex; align-items: stretch; gap: 0; margin: 0 0 8px; height: 38px; border-radius: 12px; overflow: hidden;
  background: #fff7ea; border: 1px solid #f1d9b0; }
.bande[hidden] { display: none; }
.bande-tag { flex: none; display: flex; align-items: center; padding: 0 10px; font-size: 10px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: #fff; background: var(--ochre, #f28c1e); }
.bande-ann { background: #eaf8f9; border-color: #bfe7ea; }
.bande-ann .bande-tag { background: #0e7f8b; }
.bande-vue { position: relative; flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); }
.bande-piste { display: flex; width: max-content; height: 100%; animation: bande-defile var(--bande-duree, 20s) linear infinite; }
.bande:hover .bande-piste, .bande:focus-within .bande-piste, .bande:active .bande-piste { animation-play-state: paused; }
.bande-lot { display: flex; align-items: center; flex: none; padding-left: 14px; white-space: nowrap; }
.bande-item { display: inline-flex; align-items: center; gap: 6px; color: var(--ink, #1b1e2b); text-decoration: none; font-size: 13px; }
.bande-item b { font-weight: 800; }
.bande-item small { color: var(--muted, #6b7280); font-size: 12px; }
.bande-item img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; flex: none; }
.bande-sep { margin: 0 12px; color: #c9a46a; }
.bande-ann .bande-sep { color: #7cc6cc; }
@keyframes bande-defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .bande-vue { overflow-x: auto; }
  .bande-piste { animation: none; }
  .bande-lot[aria-hidden="true"] { display: none; }
}
/* La scène garde toutes ses figures (femme éleveuse, animaux) ; le ciel se prolonge à gauche, sous « Bonjour ». */
.home-banniere { background:
  linear-gradient(transparent 78%, #1a5a3c 88%, #164a32 100%),
  linear-gradient(#0e3f2b 0, #155a3c 39%, #c98b3e 87%, #d39444 100%); }
.home-banniere .hb-scene svg { -webkit-mask-image: linear-gradient(90deg, transparent 42%, #000 54%); mask-image: linear-gradient(90deg, transparent 42%, #000 54%); }
.herd-esp, .herd-chips { display: inline-flex; vertical-align: middle; margin: 0 4px 0 0; }

/* Code secret masqué sans champ « mot de passe » (24 nov.) : le gestionnaire de mots de passe de Google
   ne le remplit plus et ne valide plus la connexion tout seul, avant l'accord de l'usager. */
input.code-masque { -webkit-text-security: disc; text-security: disc; }
input.code-masque.code-vu { -webkit-text-security: none; text-security: none; }

/* Empreinte (Alhadi, 24 nov.) : un petit interrupteur dans le menu du compte, à la place de la grande carte du profil. */
.compte-menu .compte-empr .interrupteur { margin-left: auto; flex: none; position: relative; width: 40px; height: 24px; border-radius: 12px; background: #cfd6d2; transition: background .2s; }
.compte-menu .compte-empr .interrupteur::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.compte-menu .compte-empr[aria-checked="true"] .interrupteur { background: var(--vert); }
.compte-menu .compte-empr[aria-checked="true"] .interrupteur::after { transform: translateX(16px); }
.compte-menu .compte-empr:disabled { opacity: .6; }
.compte-menu .compte-empr svg { width: 22px; height: 22px; }
/* Lieu de vie (inscription et profil) : choix courts côte à côte. */
.lv .ob-ptypes { display: flex; flex-wrap: wrap; gap: 8px; }
.lv .ob-ptypes button { flex: 1 1 28%; min-width: 0; justify-content: center; text-align: center; }
.lv .lv-prop .row { margin-top: 8px; }
.lv .lv-gps { margin-bottom: 6px; }

/* ===== Accueil façon page de réseau social (Alhadi, 24 nov.) =====
   Couverture TAMADANTE à la place de la bande verte, photo de profil (le logo), « Bonjour, Nom » dessous.
   Les autres onglets gardent une barre fine, sur le même fond de couverture. */
.topbar { background: linear-gradient(90deg, rgba(8, 42, 29, .86) 0, rgba(8, 42, 29, .5) 55%, rgba(8, 42, 29, .2) 100%), #0e3f2b url(couverture.svg) right 42% / cover no-repeat; }
.couverture { display: none; background: var(--bg, #f5f6f3); }
body[data-onglet="accueil"] .couverture { display: block; }
/* Accueil : la couverture garde la hauteur de l'ancienne bande verte (Alhadi, 24 nov. 13 h) ; la photo de profil déborde juste en dessous. */
body[data-onglet="accueil"] .topbar { position: relative; }
/* Accueil : le titre Tamadante360 reste sur la couverture ; le logo est la photo de profil, donc pas de doublon dans la barre. */
body[data-onglet="accueil"] .topbar .brand-mark { display: none; }
body.ob-open .couverture { display: none; }
.couv-image { display: none; }
.couv-bas { max-width: 720px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)) 2px;
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: end; }
.couv-photo { width: 68px; height: 68px; margin-top: -18px; z-index: 1001; border-radius: 50%; overflow: hidden; position: relative;
  border: 3px solid #fff; background: #1b6e3f; box-shadow: 0 6px 18px rgba(8, 42, 29, .28); }
.couv-photo .couv-logo { width: 100%; height: 100%; display: block; border-radius: 0; box-shadow: none; }
.couv-nom { padding: 6px 0 4px; min-width: 0; }
.couv-nom b { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--ink, #111418); line-height: 1.1; }
.couv-nom b span { color: var(--turquoise, #17b5c4); }
.couv-nom small { display: block; color: var(--muted, #667); font-size: 12px; }
.couv-bonjour { align-self: center; margin: 6px 0 0; min-width: 0; font-size: 18px; color: var(--muted, #556); }
.couv-bonjour b { color: var(--ink, #111418); font-family: var(--font-display); font-weight: 800; font-size: 22px; }
body[data-onglet="accueil"] #tab-accueil { padding-top: 10px; }
@media (min-width: 760px) { .couv-photo { width: 84px; height: 84px; margin-top: -22px; } }

/* Diaporama publicitaire : la place de l'ancienne bannière « Bonjour ». */
.diapo { position: relative; margin: 2px 0 10px; border-radius: 18px; overflow: hidden; aspect-ratio: 24 / 7; background: #0b1a2e;
  box-shadow: 0 6px 18px rgba(11, 26, 46, .16); }
.diapo[hidden] { display: none; }
.diapo-piste { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.diapo-piste::-webkit-scrollbar { display: none; }
.diapo-item { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; color: #fff; text-decoration: none; display: block; }
.diapo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.diapo-item.sans-image { background: radial-gradient(120% 140% at 100% 0, rgba(23, 181, 196, .55), transparent 55%), linear-gradient(135deg, #0b1a2e 0, #12355a 60%, #1b6e3f 100%); }
.diapo-texte { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 16px 18px 26px; max-width: 78%; }
.diapo-texte b { font-family: var(--font-display); font-size: 20px; line-height: 1.15; }
.diapo-texte span { font-size: 14px; opacity: .9; }
.diapo-texte small { font-size: 12px; opacity: .75; text-transform: uppercase; letter-spacing: .06em; }
.diapo-texte .diapo-btn { align-self: flex-start; margin-top: 6px; }
.diapo-btn { display: inline-block; background: var(--ochre, #f28c1e); color: #1b1e2b; font-weight: 800; font-size: 13px; padding: 7px 14px; border-radius: 999px; }
.diapo-pied { position: absolute; right: 12px; bottom: 12px; }
.diapo-tag { position: absolute; z-index: 2; top: 10px; left: 10px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(11, 26, 46, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 999px; padding: 4px 9px; }
.diapo-points { position: absolute; z-index: 2; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.diapo-points button { pointer-events: auto; width: 7px; height: 7px; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .55); transition: width .25s, background .25s; }
.diapo-points button[aria-selected="true"] { width: 20px; background: #fff; }
.diapo-points button::before { content: ""; position: absolute; inset: -10px -4px; }
.diapo-points button { position: relative; }
.couv-bonjour b:not(:empty)::before { content: ","; margin-right: .3em; font-family: var(--font, inherit); font-weight: 400; font-size: 18px; color: var(--muted, #556); }
.card .diapo.apercu { margin: 0 0 10px; box-shadow: none; }
.diapo .diapo-item img { margin: 0; border-radius: 0; max-width: none; }
@media (max-width: 759px) { body[data-onglet="accueil"] .topbar { min-height: calc(72px + env(safe-area-inset-top, 0px)); } }
/* Ajouter / Soigner depuis l'accueil : seulement les espèces (pas le tableau de bord). */
.tab.solo .t-esp-grille[data-action] .t-dash-general { display: none; }
.tab.solo .t-esp-grille[data-action="vac"] [data-esp-nouv] { display: none; }
/* Signaler : un sujet choisi n'affiche que son formulaire (la liste des sujets revient avec la flèche). */
.tab.solo #sig-tiles, .tab.solo #ec-retour, .tab.solo #pat-retour { display: none; }
/* « Je suis perdu » ouvert seul : le gros bouton reste pour relancer la recherche. */
.tab.solo #orient-perdu { margin-top: 0; }
/* Accueil (Alhadi, 24 nov.) : le bouton volume sort de la couverture et se place sous la photo du compte, à droite de « Bonjour ». */
body[data-onglet="accueil"] .topbar #voix-toggle { position: absolute; top: calc(100% + 10px); right: max(26px, calc(env(safe-area-inset-right, 0px) + 26px)); z-index: 1002;
  background: #fff; color: var(--vert); border: 1.5px solid var(--line); box-shadow: 0 2px 8px rgba(11, 26, 46, .12); }
body[data-onglet="accueil"] .couv-bonjour { padding-right: 52px; }
/* Charges du troupeau (24 nov.) */
.t-ch { display: grid; gap: 8px; margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--line); }
.t-ch-form { display: grid; gap: 8px; }
.t-ch-form[hidden] { display: none; }
.t-ch-postes { display: flex; flex-wrap: wrap; gap: 6px; }
.t-ch-postes label { margin: 0; }
.t-ch-postes input { position: absolute; opacity: 0; pointer-events: none; }
.t-ch-postes span { display: inline-block; padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 14px; cursor: pointer; }
.t-ch-postes input:checked + span { background: var(--vert); color: #fff; border-color: var(--vert); }
.t-ch-postes input:focus-visible + span { outline: 3px solid var(--turquoise, #17b5c4); }
.t-ch-liste li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.t-ch-suppr { margin-left: auto; width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 50%; background: transparent; color: var(--muted); border: 1px solid var(--line); }
.t-ch-liste li { flex-wrap: nowrap; }
.t-ch-l { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.t-ch-l b { font-size: 15px; }
/* Accueil (Alhadi, 24 nov.) : le titre TAMADANTE360 s'affiche en grand sur la couverture, jamais coupé.
   Retour et Suivant n'ont pas d'usage sur l'Accueil : ils laissent la place au titre. */
body[data-onglet="accueil"] .topbar .histnav { display: none; }
body[data-onglet="accueil"] .topbar .brand { flex: 0 0 auto; }
body[data-onglet="accueil"] .topbar .brand > div { min-width: max-content; }
body[data-onglet="accueil"] .topbar .brand-name { font-size: 25px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em;
  overflow: visible; text-overflow: clip; white-space: nowrap; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
body[data-onglet="accueil"] .topbar .brand-sub { font-size: 12px; }
@media (max-width: 359px) { body[data-onglet="accueil"] .topbar .brand-name { font-size: 21px; } }
body[data-onglet="accueil"] .couv-bonjour { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 359px) { body[data-onglet="accueil"] .couv-bonjour { font-size: 19px; } }

/* Outils de gestion de l'administrateur (onglet Admin). */
.admin-outils-bloc { margin: 14px 0; }
.admin-outils-bloc h3 { margin: 0 0 6px; font-size: 16px; }
#admin-outils:empty::after { content: 'Aucun outil ouvert pour le moment.'; color: var(--muted, #5a6573); font-size: 13px; }

/* ---------- Données au centre (Alhadi, 25 nov.) : inventaire replié, inscrits, listes compactes ---------- */
.adm-pli { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin: 0 0 10px; padding: 0 14px; }
.adm-pli > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 13px 26px 13px 0; position: relative; }
.adm-pli > summary::-webkit-details-marker { display: none; }
.adm-pli > summary::after { content: "›"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--muted); transition: transform .15s; }
.adm-pli[open] > summary::after { transform: translateY(-50%) rotate(90deg); }
.adm-pli > summary span { font-size: 12.5px; color: var(--muted); }
.adm-pli[open] { padding-bottom: 12px; }
.inv-hero h3 { font-size: 24px; }
.inv-cherche { width: 100%; margin: 2px 0 6px; }
.inv-mods { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.inv-mod { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.inv-mod.vide { opacity: .78; }
.inv-mod > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 60px; }
.inv-mod > summary::-webkit-details-marker { display: none; }
.inv-mod[open] > summary { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--turquoise) 6%, var(--surface)); }
.inv-mod-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.inv-mod-t b { font-size: 15px; }
.inv-mod-t small, .inv-mod-n small { color: var(--muted); font-size: 11.5px; }
.inv-mod-n { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.inv-mod-n b { font-size: 18px; color: var(--bleu-nuit); }
.inv-mod-corps { padding: 6px 12px 12px; }
.inv-mod-corps > .hint { margin: 4px 0 8px; }
.inv-jeux { list-style: none; margin: 0 0 10px; padding: 0; }
.inv-jeu { border-top: 1px solid var(--line); }
.inv-jeu:first-child { border-top: 0; }
.inv-jeu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 9px 0; min-height: 44px; }
.inv-jeu summary::-webkit-details-marker { display: none; }
.inv-jeu summary::before { content: "›"; color: var(--turquoise-texte); font-weight: 700; transition: transform .15s; }
.inv-jeu details[open] summary::before { transform: rotate(90deg); }
.inv-jeu-t { flex: 1; min-width: 0; font-size: 14px; }
.inv-jeu summary b { background: var(--ciel-soft); color: var(--ciel); border-radius: 999px; padding: 1px 10px; font-size: 13px; }
.inv-jeu.vide { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0 9px 16px; color: var(--muted); font-size: 13.5px; }
.inv-jeu.vide small { font-style: italic; white-space: nowrap; }
.inv-jeu-corps { padding: 0 0 10px 16px; }
.inv-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.inv-meta span { background: var(--bg); border-radius: 999px; padding: 2px 10px; font-size: 12px; color: var(--muted); }
.inv-rep, .ins-regions, .ins-vil { list-style: none; margin: 0 0 10px; padding: 0; }
.inv-rep li, .ins-regions li { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; align-items: center; gap: 8px; padding: 3px 0; font-size: 13px; }
.ins-regions li small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; margin-top: -2px; }
.ins-barre { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.ins-barre > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--turquoise), var(--vert)); min-width: 3px; }
.inv-aller { width: 100%; }
/* Inscrits : genre (femmes / hommes / non précisé) */
.ins-genre { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--bg); margin: 6px 0; }
.ins-genre.mini { height: 8px; width: 80px; display: inline-flex; vertical-align: middle; margin: 0; }
.ins-genre .f, .ins-leg i.f { background: #b0428c; }
.ins-genre .h, .ins-leg i.h { background: var(--ciel); }
.ins-genre .nc, .ins-leg i.nc { background: #c9ced6; }
.ins-leg { font-size: 12px; color: var(--muted); margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.ins-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: -6px; }
.ins-ouvrir { width: 100%; margin-top: 4px; }
.adm-kpi-lien { text-align: left; color: var(--ink); font: inherit; cursor: pointer; box-shadow: none; }
.adm-kpi-lien:hover { border-color: var(--turquoise); }
.adm-kpis:has(.adm-kpi:nth-child(4)) { grid-template-columns: 1fr 1fr; }
.ins-regs { display: flex; flex-direction: column; gap: 6px; }
.ins-reg { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ins-reg > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.ins-reg > summary::-webkit-details-marker { display: none; }
.ins-reg-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ins-reg-t small { color: var(--muted); font-size: 11.5px; }
.ins-couv { width: 64px; height: 8px; border-radius: 99px; background: var(--danger-soft); overflow: hidden; flex: none; }
.ins-couv > span { display: block; height: 100%; background: var(--acacia); }
.ins-n { min-width: 34px; text-align: right; font-size: 17px; }
.ins-reg-corps { padding: 0 12px 10px; }
.ins-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ins-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 4px; border-bottom: 1px solid var(--line); }
.ins-table td { padding: 7px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ins-table td small { display: block; color: var(--muted); font-size: 11px; }
.ins-table tr.zero td { color: var(--muted); }
.ins-table .lien { background: none; border: 0; box-shadow: none; padding: 0; color: var(--ciel); font-weight: 700; text-decoration: underline; text-align: left; min-height: 0; }
.ins-vil li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.ins-vil li small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.ins-carte { height: 420px; border-radius: 12px; overflow: hidden; margin: 4px 0 8px; background: #f2f5f8; }
.ins-actions { gap: 8px; margin: 6px 0; }
.g-remise .title { cursor: pointer; }
.g-remise.ok { border-left: 4px solid var(--acacia); }
.g-remise .danger { margin-top: 8px; }
/* Publicités : liste compacte, le détail au toucher */
.adm-liens { display: flex; flex-direction: column; gap: 6px; }
.adm-liens-compte { margin: 0 0 4px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.adm-lien { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.adm-lien > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 9px 12px; min-height: 50px; }
.adm-lien > summary::-webkit-details-marker { display: none; }
.adm-lien-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-lien-t b { color: var(--ciel); text-decoration: underline; text-underline-offset: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-lien[open] .adm-lien-t b { text-decoration: none; color: var(--ink); white-space: normal; }
.adm-lien-t small { color: var(--muted); font-size: 11.5px; }
.adm-lien-corps { padding: 0 12px 12px; }
.adm-lien-corps .diapo { margin-bottom: 8px; }
/* Diaporama : image, GIF ou vidéo ajustés à la zone */
.diapo-item { position: relative; }
.diapo-item .diapo-media { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }
.diapo-item .diapo-media.aj-couvrir { object-fit: cover; }
.diapo-item .diapo-media.aj-contenir { object-fit: contain; }
.diapo-item video.diapo-media.aj-contenir { background: var(--bleu-nuit); }
.diapo-item .diapo-fond { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(22px) brightness(.7); z-index: 0; }
.diapo-item { overflow: hidden; }
.diapo-item .diapo-pied { z-index: 2; }
.diapo-exemple, .bande-exemple { background: var(--ochre); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 6px; padding: 2px 7px; }
.diapo-exemple { position: absolute; z-index: 2; right: 10px; top: 10px; }
.ins-vides { margin: 2px 0 8px; font-size: 12.5px; color: var(--danger); font-weight: 600; }
#admin-body.adm-rubrique .admin-outils-bloc { display: none; }
/* Les blocs repliés de l'inventaire, des inscrits et des publicités n'héritent pas du style général des <details>. */
.inv-mod, .inv-jeu details, .ins-reg, .adm-lien, .adm-pli { margin: 0; padding: 0; box-shadow: none; border-radius: 14px; }
.inv-jeu details { border-radius: 0; background: none; }
.adm-pli { padding: 0 14px; margin: 0 0 10px; }
.admin-pane .inv-mod summary, .admin-pane .inv-jeu summary, .admin-pane .ins-reg summary, .admin-pane .adm-lien summary, .admin-pane .adm-pli summary { font-family: var(--font-body); font-size: inherit; }
.inv-hero small { text-transform: none; }
.inv-hero { flex-wrap: wrap; }
.inv-hero .adm-hero-badge { white-space: normal; }

/* Téléphone (Alhadi, 26 nov.) : Retour et Suivant prenaient la place du titre Tamadante360.
   Ils passent en bas de la couverture, sur une ligne fine à eux, et le titre garde toute la largeur. */
@media (max-width: 600px) {
  body:not([data-onglet="accueil"]) { --top-h: 98px; }
  .topbar { flex-wrap: wrap; row-gap: 6px; }
  .topbar .histnav { order: 10; flex: 1 0 100%; gap: 6px; }
  .topbar .histnav button { padding: 4px 10px; font-size: 12px; min-height: 30px; }
  .topbar .histnav svg { width: 16px; height: 16px; }
  .topbar .histnav span { display: inline; }
  .topbar .brand { flex: 1 1 auto; }
  .topbar .brand-name { font-size: 20px; white-space: nowrap; }
}
/* Publicité réduite aux 2/3 de sa hauteur (Alhadi, 26 nov.) : 24:7 au lieu de 16:7 ; texte plus serré. */
/* Le texte commence sous l'étiquette PUBLICITÉ (sinon elle recouvre le titre). */
.diapo-texte { padding: 32px 14px 10px; gap: 2px; max-width: 70%; justify-content: flex-start; }
.diapo-texte b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.diapo-texte span { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.diapo-texte small { font-size: 11px; }
.diapo-texte .diapo-btn { position: absolute; right: -32%; bottom: 14px; margin: 0; }
.diapo-btn { font-size: 12px; padding: 6px 12px; }
.diapo-pied { right: 10px; bottom: 10px; }

/* Alertes de prix (30 nov.) : lignes Bouc contre mil et Hausses ; étiquette de prix sur la carte. */
.x-ligne { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.x-ligne:last-child { border-bottom: 0; }
.x-ligne .chip { white-space: normal; text-align: right; }
.x-etiquette { font-weight: 700; font-size: 12px; padding: 1px 6px; }

/* Collecte terrain (Admin) : liens d'export en bouton. */
#admin-collecte a.button-like { display: inline-block; padding: 9px 13px; border-radius: 999px; background: var(--surface); color: var(--vert); border: 1px solid var(--line); font-size: 13px; font-weight: 600; text-decoration: none; }

/* Mes champs dans « Mon champ » : petites cartes des champs tracés. */
.fn-champs { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 8px; }
.fn-champs a { flex: none; width: 112px; text-decoration: none; color: var(--ink); }
.fn-champs svg { width: 112px; height: 84px; border-radius: 10px; display: block; }
.fn-champs small { display: block; font-size: 12px; line-height: 1.3; margin-top: 4px; }

/* ---------- Marché : rayon « Vitrine » (maquette « Alibaba local », 30 nov. 2026) ---------- */
#m-rayons { grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); }
#m-rayons button { font-size: 14px; padding: 10px 4px; }
.v-search { display: flex; gap: 8px; background: var(--surface); border: 1.5px solid var(--vert); border-radius: 14px; padding: 4px 4px 4px 12px; align-items: center; margin: 10px 0 8px; }
.v-search input { flex: 1; border: 0; background: none; font-size: 16px; padding: 8px 0; margin: 0; min-width: 0; box-shadow: none; outline: none; }
.v-search button { width: auto; margin: 0; padding: 10px 14px; border-radius: 11px; }
.v-ouvrir { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.v-ouvrir button { margin: 0; }
.v-choix { margin: 8px 0; display: grid; gap: 8px; }
.v-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0 4px; }
.v-cat { position: relative; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 8px 2px 6px; margin: 0; text-align: center; font-size: 11px; line-height: 1.2; font-weight: 600; box-shadow: none; }
.v-cat svg { width: 44px; height: 36px; display: block; margin: 0 auto 4px; }
.v-cat small { position: absolute; top: 4px; right: 6px; font-size: 10px; color: var(--vert); font-weight: 800; }
.v-cat[aria-pressed=true] { background: var(--vert-soft); border-color: var(--vert); color: var(--vert); }
.v-h { font-family: var(--font-display); font-weight: 800; font-size: 17px; margin: 16px 0 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.v-h small { font-size: 12px; font-weight: 600; color: var(--ciel); }
.v-h .link { padding: 0; margin: 0; width: auto; font-size: 12px; }
.v-tri { display: flex; gap: 6px; margin: 0 0 10px; overflow-x: auto; }
.v-tri button { flex: 0 0 auto; width: auto; margin: 0; padding: 6px 12px; border-radius: 99px; font-size: 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.v-tri button[aria-pressed=true] { background: var(--ciel); border-color: var(--ciel); color: #fff; }
.v-rail { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.v-rail .v-item { flex: 0 0 148px; }
.v-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
.v-item { display: block; width: 100%; margin: 0; padding: 0; text-align: left; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: none; font-weight: 400; }
.v-ph { height: 96px; display: grid; place-items: center; position: relative; overflow: hidden; }
.v-ph svg { width: 78px; height: 64px; }
.v-ph img { width: 100%; height: 100%; object-fit: cover; }
.v-tag { position: absolute; top: 6px; left: 6px; font-style: normal; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--ochre); color: #1b1e2b; }
.v-tag.v-ok { left: auto; right: 6px; background: var(--vert); color: #fff; }
.v-tag.v-complet { top: auto; bottom: 6px; background: #1B5FA8; color: #fff; }
.v-tx { display: block; padding: 7px 9px 9px; font-size: 12px; }
.v-tx b { display: block; font-size: 13px; line-height: 1.25; margin-bottom: 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.v-prix { display: block; font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--vert); white-space: nowrap; }
.v-prix small { font-weight: 600; font-size: 11px; color: var(--muted); }
.v-lieu { display: block; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-retour { width: auto; padding: 4px 0; margin: 6px 0; }
.v-hero { height: 200px; border-radius: 16px; display: grid; place-items: center; overflow: hidden; }
.v-hero svg { width: 190px; height: 150px; }
.v-hero img { width: 100%; height: 100%; object-fit: cover; }
.v-fiche h3 { text-transform: none; letter-spacing: 0; margin: 0 0 2px; font-family: var(--font-display); font-size: 20px; }
.v-fiche > .hint { margin: 0; }
.v-prix-grand { font-size: 22px; margin: 2px 0 6px; }
.v-ref { background: var(--ciel-soft); color: var(--ciel-2); border-radius: 10px; padding: 8px 10px; font-size: 13px; margin: 8px 0; }
.v-ref b { display: block; }
.v-ref-vide { color: var(--muted); background: var(--bg); }
.v-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.v-badges span { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: var(--vert-soft); color: var(--vert); }
.v-lignes p { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; margin: 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.v-lignes p span { color: var(--muted); }
.v-lignes p b { text-align: right; }
@media (max-width: 360px) { .v-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Atelier de cartes (carte sur mesure, Labo cartes) */
.atl-demande .desc { margin: 6px 0; }
.atl-versions { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.atl-versions li { border-top: 1px solid #e4e8ee; padding-top: 8px; }
.atl-versions button { margin: 4px 6px 0 0; }
.chip.atl-livree { background: #e3f3e8; color: #1b6e3f; }
.chip.atl-observations, .chip.atl-recue { background: #fdeedd; color: #a65400; }
.chip.atl-en_preparation, .chip.atl-a_valider { background: #e3eefb; color: #1b5fa8; }
.chip.atl-annulee { background: #eee; color: #666; }
.atl-table { overflow-x: auto; }
.atl-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.atl-table th, .atl-table td { text-align: left; padding: 6px 4px; border-bottom: 1px solid #e4e8ee; vertical-align: top; }
.atl-table tr[data-ouvrir] { cursor: pointer; }
.atl-table tr.actif { background: #eef5fc; }
.atl-fiche h4 { margin: 14px 0 6px; }
.atl-alerte { background: #fff6ea; border-left: 4px solid #f28c1e; padding: 8px 10px; border-radius: 6px; margin: 8px 0; }
.atl-alerte p { margin: 4px 0; }
.atl-apercu { border: 1px solid #e4e8ee; border-radius: 8px; overflow: hidden; background: #fff; }
.atl-apercu svg { display: block; width: 100%; height: auto; }
.atl-version textarea { width: 100%; }
.atl-alerte button.lien { background: none; border: 0; padding: 0; color: #1b5fa8; text-decoration: underline; font: inherit; cursor: pointer; min-height: 0; }

/* Profil à compléter : cercle bleu (rempli) / rouge (reste) */
.pc-carte { display: grid; gap: 10px; }
.pc-tete { display: flex; gap: 14px; align-items: center; }
.pc-cercle { width: 84px; height: 84px; flex: none; }
.pc-manque { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-bloc { width: auto; display: inline-flex; align-items: center; gap: 6px; text-align: left; }
.pc-point { width: 10px; height: 10px; border-radius: 50%; background: #d64545; flex: none; }
.pc-badge { background: #1B5FA8; color: #fff; width: auto; flex: none; }
.pc-saisie { display: grid; gap: 8px; }
.pc-sous { border: 1px solid var(--line, #ddd); border-radius: 10px; padding: 8px 10px; display: grid; gap: 6px; }

/* Ma chaîne : liens Éducation et Santé */
.fn-ch { display: grid; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line, #e3e6ea); }
.fn-ch h4 { margin: 0; }
.fn-ch-ligne small { font-weight: 700; color: var(--muted, #667); }
.fn-ch-etapes { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: stretch; }
.fn-ch-etapes li { display: grid; gap: 2px; padding: 6px 10px; border-radius: 10px; background: #f1f3f5; border-left: 4px solid #c9ced6; font-size: 14px; }
.fn-ch-etapes li.ok { border-left-color: #1B5FA8; background: #eaf2fb; }
.fn-ch-etapes li:not(:last-child)::after { content: none; }
.fn-ch-table { overflow-x: auto; }
.fn-ch-table table { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.fn-ch-table th, .fn-ch-table td { padding: 4px 6px; border-bottom: 1px solid #e3e6ea; text-align: left; white-space: nowrap; }

/* Marché : boutique, avis, arnaque, vente en 3 gestes */
.v-note { color: #b7791f; font-weight: 700; font-size: 13px; white-space: nowrap; }
.v-alerte { background: #fdecea; color: #8a1f17; border-radius: 10px; padding: 8px 10px; font-weight: 600; }
.v-conseil { margin: 4px 0; }
.v-liens { gap: 8px; align-items: center; }
.v-bq-tete { display: flex; gap: 12px; align-items: center; }
.v-bq-tete h3 { margin: 0; }
.v-avis { list-style: none; padding: 0; display: grid; gap: 8px; }
.v-avis li { background: #f6f7f9; border-radius: 10px; padding: 8px 10px; }
.v-avis p { margin: 4px 0 0; }
.v-avis-form, .v-arnaque, .v-vite { display: grid; gap: 8px; }
.v-etoiles { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.v-etoiles input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.v-etoiles span { font-size: 30px; color: #c9ced6; cursor: pointer; line-height: 1; }
.v-etoiles label:hover span, .v-etoiles label:hover ~ label span, .v-etoiles input:checked + span, .v-etoiles label:has(input:checked) ~ label span { color: #e0a020; }
.v-pas { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; counter-reset: pas; }
.v-pas li { counter-increment: pas; flex: 1; text-align: center; font-size: 13px; padding: 6px 4px; border-radius: 99px; background: #eef0f3; color: #556; }
.v-pas li::before { content: counter(pas) ". "; font-weight: 700; }
.v-pas li.en-cours { background: #1B5FA8; color: #fff; }
.v-pas li.fait { background: #dcebf8; color: #1B5FA8; }
.v-vite-go { font-size: 18px; padding: 14px; }

/* Boutique ALL 360 (mode Pro partenaire) */
.bq-modules { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 14px; }
.bq-modules button { width: auto; flex: 1; min-width: 100px; background: #eef2f7; color: #1b2a44; border: 0; border-radius: 99px; padding: 10px 12px; font-weight: 700; }
.bq-modules button[aria-pressed="true"] { background: #1B5FA8; color: #fff; }
.bq-grille { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.bq-carte { display: grid; gap: 8px; align-content: start; }
.bq-tete { display: flex; gap: 10px; align-items: center; }
.bq-ico { font-size: 28px; line-height: 1; }
.bq-lien { text-decoration: none; color: inherit; }
.bq-lien:hover { border-color: #1B5FA8; }
/* Carto : une partie à la fois (30 nov.) */
.bq-sous { display: flex; gap: 4px; border-bottom: 2px solid #e4e8ee; margin: 0 0 12px; overflow-x: auto; }
.bq-sous button { width: auto; flex: 1; white-space: nowrap; background: none; color: #5b6577; border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 10px 8px; font-weight: 700; margin-bottom: -2px; }
.bq-sous button[aria-pressed="true"] { color: #1B5FA8; border-bottom-color: #F28C1E; }
.boutique-cartes[hidden], #bq-mes-cartes[hidden] { display: none !important; }
.panier-payer > summary { list-style: none; cursor: pointer; text-align: center; margin: 6px 0; }
.panier-payer > summary::-webkit-details-marker { display: none; }
.atl-payer { border: 1px solid #f3d3a8; background: #fff8ef; border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.atl-payer summary.btn { display: inline-block; cursor: pointer; }
/* Labo : paiement, corrections appliquées, aperçu zoomable */
.atl-paiement { border: 1px solid #e4e8ee; border-radius: 10px; padding: 10px 12px; margin: 10px 0; background: #f7f9fc; }
.atl-p-paiement_declare { border-color: #F28C1E; background: #fff8ef; }
.atl-p-payee, .atl-p-contrat { border-color: #8fd3b0; background: #f1fbf5; }
.atl-zoom { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.atl-zoom button { width: auto; padding: 6px 12px; }
.atl-zoomable { max-height: 75vh; overflow: auto; cursor: zoom-in; }
.atl-corrections { border: 1px solid #e4e8ee; border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.atl-ok { color: #1d7a46; background: #f1fbf5; border-radius: 8px; padding: 6px 10px; }
#tab-boutique .boutique-cartes > h3, #bq-mes-cartes > h3 { display: none; }

/* Admin → Marchés (30 nov.) */
.am-outils { padding: 6px 0 4px; }
.am-outils input[type=search] { width: 100%; }
.am-filtres { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; margin-top: 6px; }
.am-groupe { margin: 14px 0 4px; font-size: 13px; color: #1B5FA8; text-transform: none; letter-spacing: 0; }
.am-ligne { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; padding: 6px 0; border-bottom: 1px solid #e4e8ee; }
.am-ligne .am-nom { font-weight: 600; overflow-wrap: anywhere; }
.am-ligne select { width: auto; min-width: 108px; padding: 6px 8px; }
.am-ligne select.am-inconnu { border-color: #F28C1E; background: #fff8ef; }
.am-ligne .am-crayon { width: auto; padding: 6px 10px; }
.am-renom { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; }
.am-renom[hidden] { display: none; }
@media (max-width: 480px) { .am-renom { grid-template-columns: 1fr; } }

/* Essai de transcription (30 nov.) */
.tr-essai summary { cursor: pointer; }
.tr-msg { border-top: 1px solid #e4e8ee; padding: 10px 0; display: grid; gap: 6px; }
.tr-msg select { width: auto; }
.tr-msg button { width: auto; }
.tr-texte { background: #f7f9fc; border-radius: 8px; padding: 8px 10px; margin: 0; font-style: italic; }

/* Agent Admin (30 nov.) */
.ag-agent > summary { cursor: pointer; list-style: none; }
.ag-agent > summary::-webkit-details-marker { display: none; }
.ag-agent > summary span { font-size: 12px; color: #5b6b80; }
.ag-niv { margin: 10px 0 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ag-bloque { color: #c0392b; } .ag-attend { color: #F28C1E; } .ag-conseil { color: #1B5FA8; }
.ag-liste { list-style: none; margin: 0; padding: 0; }
.ag-liste li { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid #e4e8ee; }
.ag-liste li small { display: block; color: #5b6b80; font-size: 12px; margin-top: 2px; }
.ag-liste li button { width: auto; padding: 6px 12px; }
.ag-liste li b { font-size: 14px; font-weight: 600; }

/* « Mon champ » comme la maquette P2-P2RS (Alhadi, 2 déc. 2026). */
.mon-champ { display: flex; flex-direction: column; gap: 10px; }
.mc-carte { position: relative; display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); line-height: 0; }
.mc-carte svg { display: block; width: 100%; height: auto; }
.mc-badge { position: absolute; left: 10px; top: 10px; line-height: 1.2; background: rgba(255, 255, 255, .95); border-radius: 20px; padding: 5px 10px; font-size: 11px; font-weight: 700; color: #1d4d3c; display: flex; gap: 6px; align-items: center; }
.mc-badge i { width: 9px; height: 9px; border-radius: 50%; background: var(--turquoise); display: inline-block; }
.mc-vide { background: var(--vert-soft); border-radius: 14px; padding: 14px; }
.mc-vide p { margin: 0 0 10px; font-size: 13px; }
.mc-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mc-chips span { background: #e4f1ea; color: #1d4d3c; font-size: 11.5px; font-weight: 700; border-radius: 14px; padding: 4px 9px; }
.mc-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mc-c { background: var(--surface); border-radius: 12px; padding: 10px 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.mc-l { font-size: 10.5px; font-weight: 700; color: #5b6675; text-transform: uppercase; letter-spacing: .4px; }
.mc-v { font-size: 22px; font-weight: 800; color: var(--ciel); margin-top: 3px; font-family: var(--font-display); }
.mc-v small { font-size: 12px; font-weight: 600; }
.mc-v.mc-baisse { color: #d9620f; }
.mc-v.mc-hausse { color: var(--vert); }
.mc-v.mc-stable { color: var(--bleu-nuit); }
.mc-v.mc-nd { color: var(--muted); }
.mc-s { font-size: 11.5px; color: #5b6675; margin-top: 2px; line-height: 1.35; }
.mc-c p { margin: 4px 0 0; font-size: 13px; line-height: 1.4; }
.mc-alerte { background: #fff3e4; border-left: 4px solid var(--ochre); }
.mc-alerte .mc-l { color: #b35a08; }
.mc-calme { background: #eef7f1; border-left: 4px solid var(--acacia); }
.mc-ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed #e3e8ee; }
.mc-ligne:last-of-type { border-bottom: 0; }
.mc-ligne b { color: var(--bleu-nuit); white-space: nowrap; }
.mc-tag { font-size: 10px; background: #e4f1ea; color: #1d7a4c; border-radius: 8px; padding: 1px 6px; margin-left: 6px; font-weight: 700; }
