/* Police Poppins hébergée dans l'application (fonctionne hors ligne, sans Google Fonts) */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/Poppins-Regular.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/Poppins-Medium.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 600 800; font-style: normal; font-display: swap; src: url("fonts/Poppins-Bold.woff") format("woff"); }
/* SOLSA ANTREPRISE — vèt + blan, ba sou kote, tablo, onglè transparan */
:root {
  --g0: #064e3b;
  --g1: #0b6e4f;
  --g2: #12a56e;
  --g3: #3ecf8e;
  --mint: #e8f6ef;
  --mint2: #d2eee0;
  --ink: #14302a;
  --muted: #6a8077;
  --line: #e3eee8;
  --red: #d24435;
  --red-soft: #fdeceA;
  --amber: #8a5b00;
  --amber-soft: #fff4d6;
  --ok: #138a58;
  --ok-soft: #e0f6ea;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(11, 110, 79, .12);
  --surface: #fff; --glass: rgba(255, 255, 255, .7); --glass-hi: rgba(255, 255, 255, .8); --chip: #edf3ef;
  --body-bg: #eaf5ef; --alert-late: #8d2118; --alert-warn: #6b4500; --alert-ok: #0f6a42;
  --accent: var(--g1);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink);
  font: 15px/1.45 "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(900px 520px at 88% 100%, rgba(18, 165, 110, .22), transparent 62%),
    radial-gradient(700px 420px at 0% 0%, rgba(62, 207, 142, .24), transparent 60%),
    var(--body-bg);
  background-attachment: fixed;
  min-height: 100vh;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.55rem; line-height: 1.15; }
h2 { font-size: 1.1rem; }
h3 { font-size: 1rem; }
p + p { margin-top: .4rem; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.boot { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.right { text-align: right; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap-r { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.ic { width: 20px; height: 20px; flex: none; }

/* ============ KOK APP LA ============ */
.shell {
  display: grid; grid-template-columns: 236px minmax(0, 1fr);
  max-width: 1200px; min-height: min(740px, calc(100vh - 48px)); margin: 24px auto;
  border-radius: 30px; overflow: hidden; background: var(--surface);
  box-shadow: 0 30px 70px rgba(11, 110, 79, .24), 0 2px 6px rgba(11, 110, 79, .1);
}

/* ---- Ba sou kote ---- */
.side {
  position: relative; display: flex; flex-direction: column; color: #fff;
  padding: 28px 0 20px 18px; overflow: hidden;
  background: linear-gradient(165deg, var(--g0) 0%, var(--g1) 38%, var(--g2) 78%, var(--g3) 120%);
}
.side::before {
  content: ""; position: absolute; width: 330px; height: 330px; border-radius: 50%;
  left: 50%; bottom: 70px; transform: translateX(-46%);
  background: url(icons/logo.png) center / cover no-repeat; opacity: .17; pointer-events: none;
  filter: saturate(.8); mix-blend-mode: soft-light;
}
.side::after {
  content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%;
  left: -90px; top: -60px; background: rgba(255, 255, 255, .07); pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; padding-right: 16px; }
.brand img { width: 62px; height: 62px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.brand b { display: block; font-size: 1.5rem; letter-spacing: 1.5px; line-height: 1.05; }
.brand small { display: block; font-size: .8rem; letter-spacing: 3px; opacity: .85; font-weight: 600; }

.nav-s { margin-top: 38px; display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.ni {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 0; border-radius: 30px 0 0 30px; background: transparent; cursor: pointer;
  color: rgba(255, 255, 255, .92); font-weight: 600; text-align: left; transition: background .2s;
}
.ni:hover { background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.ni.on { background: var(--surface); color: var(--accent); }
.ni.on::before, .ni.on::after {
  content: ""; position: absolute; right: 0; width: 22px; height: 22px; pointer-events: none;
}
.ni.on::before { top: -22px; background: radial-gradient(circle at 0 0, transparent 22px, var(--surface) 22.5px); }
.ni.on::after { bottom: -22px; background: radial-gradient(circle at 0 100%, transparent 22px, var(--surface) 22.5px); }
.ni .dot { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: .72rem; display: grid; place-items: center; }

.side-foot { margin-top: auto; padding-right: 18px; display: grid; gap: 8px; position: relative; z-index: 1; }
.glass {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; cursor: pointer;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .34); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-weight: 600; font-size: .86rem;
}
.glass.static { cursor: default; font-weight: 500; font-size: .76rem; opacity: .95; }

/* ---- Pano prensipal ---- */
.main { position: relative; background: var(--surface); padding: 28px 30px 30px; min-width: 0; overflow: hidden; }
.main::before {
  content: ""; position: absolute; right: -90px; top: -90px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 207, 142, .26), transparent 68%); pointer-events: none;
}
.main > * { position: relative; }
.mh { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.mh .muted { margin-top: 4px; }
.mh-r { display: flex; align-items: center; gap: 10px; }
.ib {
  position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(6px); color: var(--accent);
}
.ib .badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: .68rem; display: grid; place-items: center; font-weight: 700; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--g2), var(--g1)); color: #fff; font-weight: 700; }

/* Onglè transparan */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 20px 0 6px; align-items: flex-end; }
.tab {
  border: 1px solid rgba(18, 165, 110, .28); border-bottom-color: transparent;
  background: rgba(18, 165, 110, .08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--accent); padding: 8px 16px; border-radius: 14px 14px 4px 4px; font-weight: 600; font-size: .86rem; cursor: pointer;
  transition: background .2s;
}
.tab:hover { background: rgba(18, 165, 110, .16); }
.tab.on { background: rgba(18, 165, 110, .2); border-color: var(--g2); border-bottom-color: transparent; box-shadow: inset 0 -3px 0 var(--g2); }
.tab i { font-style: normal; margin-left: 6px; font-size: .74rem; background: var(--glass); border-radius: 9px; padding: 1px 7px; }
.tabs .spacer { flex: 1; }
.dates { display: flex; align-items: center; gap: 8px; }
.dates input {
  width: auto; min-height: 38px; padding: 6px 10px; border-radius: 12px; font-size: .84rem;
  background: rgba(18, 165, 110, .07); border: 1px solid rgba(18, 165, 110, .25); backdrop-filter: blur(6px);
}

/* Tablo */
.tbl { margin-top: 6px; }
.thead, .trow { display: grid; grid-template-columns: var(--cols); gap: 12px; align-items: center; }
.thead { padding: 10px 18px; background: var(--mint); border-radius: 12px; color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .3px; }
.trow {
  padding: 13px 18px; margin-top: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  transition: background .2s, box-shadow .2s, transform .2s, color .2s; font-size: .88rem;
}
.trow > span { min-width: 0; overflow-wrap: anywhere; }
.trow .nm { font-weight: 650; display: block; }
.trow.click { cursor: pointer; }
.trow.hl, .trow.click:active {
  background: linear-gradient(90deg, var(--g1), var(--g2)); color: #fff; border-color: transparent;
  box-shadow: 0 16px 30px rgba(11, 110, 79, .3);
}
@media (hover: hover) {
  .trow:hover {
    background: linear-gradient(90deg, var(--g1), var(--g2)); color: #fff; border-color: transparent;
    box-shadow: 0 16px 30px rgba(11, 110, 79, .3); transform: scale(1.004);
  }
}
.trow:hover .muted, .trow.hl .muted { color: rgba(255, 255, 255, .82); }
.trow:hover .btn:not(.wa):not(.danger), .trow.hl .btn:not(.wa):not(.danger) { background: #fff; color: var(--g1); }
.trow:hover .bar, .trow.hl .bar { background: rgba(255, 255, 255, .3); }
.trow:hover .bar i, .trow.hl .bar i { background: #fff; }
.trow:hover .link-btn { color: #fff; }
.acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: .8rem; color: var(--muted); flex-wrap: wrap; gap: 8px; }
.pager div { display: flex; gap: 2px; }
.pager button { border: 0; background: none; min-width: 30px; height: 30px; border-radius: 9px; cursor: pointer; color: var(--muted); font-weight: 600; }
.pager button.on { background: var(--mint2); color: var(--accent); }
.pager button[disabled] { opacity: .35; cursor: default; }

/* Cards (kliyan + fòm) */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; border: 1px solid var(--line); }
.card + .card { margin-top: 14px; }
.card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.empty { text-align: center; color: var(--muted); padding: 26px 10px; }

/* Stats (vit transparan) */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.stat {
  border-radius: 16px; padding: 14px 16px; border: 1px solid rgba(18, 165, 110, .22);
  background: linear-gradient(135deg, rgba(18, 165, 110, .13), var(--glass));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.stat b { display: block; font-size: 1.35rem; color: var(--accent); }
.stat span { font-size: .78rem; color: var(--muted); }
.stat.red b { color: var(--red); }
.sec { display: flex; justify-content: space-between; align-items: baseline; margin: 26px 0 4px; }

/* Bouton */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer;
  border-radius: 12px; padding: 10px 16px; min-height: 42px; font-weight: 650;
  background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff;
}
.btn:active { transform: translateY(1px); }
.btn.gold { background: rgba(18, 165, 110, .14); color: var(--accent); border: 1px solid rgba(18, 165, 110, .35); backdrop-filter: blur(6px); }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--g2); }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.wa { background: #25d366; color: #05361a; }
.btn.small { min-height: 34px; padding: 5px 12px; font-size: .82rem; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; }
.link-btn { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; padding: 6px; }

/* Fòm */
label { display: block; font-weight: 600; font-size: .86rem; margin: 0 0 4px; }
.field { margin-bottom: 12px; }
input, select, textarea {
  width: 100%; font: inherit; padding: 11px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); min-height: 44px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--g3); border-color: var(--g2); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.search { position: relative; }
.search input { padding-left: 38px; background: rgba(18, 165, 110, .05); }
.search .ic { position: absolute; left: 11px; top: 12px; color: var(--muted); }

textarea { resize: vertical; min-height: 96px; border-radius: 12px; border: 1.5px solid var(--line); padding: 11px 12px; background: var(--surface); }

/* Chip + alert + bar */
.chip { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--chip); color: var(--muted); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.late { background: var(--red-soft); color: var(--red); }
.chip.warn { background: var(--amber-soft); color: var(--amber); }
.alert { border-radius: 12px; padding: 11px 13px; margin: 10px 0; font-size: .92rem; }
.alert.late { background: var(--red-soft); color: var(--alert-late); border: 1px solid #f3c2bc; }
.alert.warn { background: var(--amber-soft); color: var(--alert-warn); border: 1px solid #f1d98d; }
.alert.ok { background: var(--ok-soft); color: var(--alert-ok); border: 1px solid #b4e2c9; }
.alert.info { background: var(--mint); color: var(--accent); border: 1px solid var(--mint2); }
.bar { height: 9px; background: #e6efea; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--g2), var(--g3)); border-radius: 99px; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; font-weight: 700; font-size: .85rem; flex: none; }
.num.me { background: var(--mint2); color: var(--accent); box-shadow: 0 0 0 2px var(--g2); }
.num.taken { background: #cbd8d1; }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.t td { padding: 8px 4px; border-top: 1px solid var(--line); }

/* Modal + toast */
#modal-root .back { position: fixed; inset: 0; background: rgba(6, 40, 30, .5); backdrop-filter: blur(3px); z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
#modal-root .sheet { background: var(--surface); width: 100%; max-width: 540px; max-height: 92vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 20px 18px calc(env(safe-area-inset-bottom) + 20px); }
#toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 96px); transform: translateX(-50%) translateY(20px); background: var(--g0); color: #fff; padding: 11px 18px; border-radius: 14px; opacity: 0; transition: .25s; z-index: 99; max-width: 90vw; pointer-events: none; text-align: center; box-shadow: var(--shadow); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: var(--red); }
.code-box { font-size: 1.7rem; letter-spacing: 5px; text-align: center; font-weight: 800; color: var(--accent); background: var(--mint); border-radius: 14px; padding: 12px; margin: 12px 0; }

/* Koneksyon */
.login-bg { min-height: 100vh; display: grid; place-items: center; padding: 20px 14px; }
.login-card {
  width: 100%; max-width: 420px; padding: 26px 22px 24px; border-radius: 28px;
  background: var(--glass-hi); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass); box-shadow: 0 30px 70px rgba(11, 110, 79, .25);
}
.login-card .logo { width: 140px; height: 140px; border-radius: 50%; display: block; margin: 34px auto 10px; box-shadow: var(--shadow); }
.login-card h1 { text-align: center; color: var(--accent); letter-spacing: 2px; font-size: 2rem; }
.login-card h1 small { display: block; font-size: .88rem; letter-spacing: 6px; color: var(--g2); margin-top: 2px; }
.login-card .tag { text-align: center; color: var(--muted); margin: 8px 0 18px; font-size: .9rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.seg button { border: 1px solid rgba(18, 165, 110, .28); background: rgba(18, 165, 110, .08); backdrop-filter: blur(6px); padding: 10px; border-radius: 14px 14px 4px 4px; font-weight: 650; color: var(--accent); cursor: pointer; }
.seg button.on { background: rgba(18, 165, 110, .22); box-shadow: inset 0 -3px 0 var(--g2); }
.demo-line { background: var(--amber-soft); color: var(--amber); font-size: .78rem; padding: 6px 12px; border-radius: 10px; text-align: center; margin-bottom: 14px; }

/* ============ TELEFÒN ============ */
@media (max-width: 859px) {
  body { background: var(--mint); }
  .shell { display: block; margin: 0; border-radius: 0; min-height: 100vh; box-shadow: none; }
  .side { flex-direction: row; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top) + 14px) 16px 16px; border-radius: 0 0 26px 26px; }
  .brand img { width: 46px; height: 46px; }
  .brand b { font-size: 1.22rem; }
  .side-foot { margin: 0; padding: 0; position: relative; }
  .side-foot .glass.static { display: none; }
  .side-foot .glass { padding: 8px 12px; }
  .nav-s {
    position: fixed; left: 10px; right: 10px; bottom: calc(env(safe-area-inset-bottom) + 10px); margin: 0; z-index: 40;
    flex-direction: row; gap: 4px; padding: 6px; border-radius: 24px;
    background: var(--glass-hi); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass); box-shadow: 0 14px 34px rgba(11, 110, 79, .28);
  }
  .ni { flex: 1; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 2px; border-radius: 18px; font-size: .7rem; color: var(--muted); text-align: center; }
  .ni:hover { background: rgba(18, 165, 110, .1); }
  .ni.on { background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; }
  .ni.on::before, .ni.on::after { display: none; }
  .ni .dot { position: absolute; top: 2px; right: 14px; margin: 0; }
  .main { padding: 20px 16px 120px; }
  h1 { font-size: 1.3rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .thead { display: none; }
  .trow { grid-template-columns: 1fr 1fr !important; row-gap: 8px; }
  .trow > span:first-child, .trow > span:last-child { grid-column: 1 / -1; }
  .trow > span[data-l]::before { content: attr(data-l); display: block; font-size: .68rem; color: var(--muted); font-weight: 600; }
  .acts { justify-content: flex-start; }
  #modal-root .back { align-items: flex-end; }
}
@media (min-width: 860px) {
  #modal-root .back { align-items: center; }
  #modal-root .sheet { border-radius: 22px; }
}


/* ============ ANNONCES + CONTACT ============ */
.ann { background: linear-gradient(135deg, rgba(18, 165, 110, .12), var(--glass-hi)); border: 1px solid rgba(18, 165, 110, .3);
  border-radius: 16px; padding: 12px 14px; margin-top: 10px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ann.new { border-left: 5px solid var(--g2); }
.ann-h { display: flex; align-items: center; gap: 8px; color: var(--accent); flex-wrap: wrap; }
.ann-h .ic { width: 20px; height: 20px; flex: none; }
.ann p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ann-old { margin-top: 10px; }
.ann-old summary { cursor: pointer; font-weight: 650; color: var(--accent); }
.contact-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.avatar.big { width: 56px; height: 56px; font-size: 1.3rem; }
.contact-btns { display: grid; gap: 10px; }
.contact-btns .btn .ic { width: 20px; height: 20px; }

/* ============ ANIMATIONS ============ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ripple { from { transform: scale(0); opacity: .45; } to { transform: scale(1); opacity: 0; } }
@keyframes tabGrow { from { box-shadow: inset 0 0 0 var(--g2); transform: translateY(3px); } to { box-shadow: inset 0 -3px 0 var(--g2); transform: none; } }
@keyframes iconPop { 0% { transform: scale(.6) rotate(-12deg); } 60% { transform: scale(1.2) rotate(4deg); } 100% { transform: none; } }
@keyframes badgePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(210, 68, 53, .5); } 50% { box-shadow: 0 0 0 6px rgba(210, 68, 53, 0); } }

.btn, .tab, .glass, .pager button, .seg button { position: relative; }
.rip-wrap { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.rip { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .55); transform: scale(0); animation: ripple .6s ease-out forwards; }
.tab .rip, .btn.gold .rip, .btn.ghost .rip, .seg button .rip, .pager button .rip, .ib .rip, .btn.danger .rip { background: rgba(18, 165, 110, .35); }
.ni:not(.on) .rip { background: rgba(255, 255, 255, .4); }
.ni.on .rip { background: rgba(18, 165, 110, .3); }

.btn, .tab, .ib, .ni, .glass, .pager button, .seg button { transition: transform .15s ease, box-shadow .2s ease, background .2s ease, filter .2s ease; }
.btn:active, .tab:active, .ib:active, .glass:active, .seg button:active, .pager button:active { transform: scale(.94); }
.ni:active { transform: scale(.96); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(11, 110, 79, .28); filter: brightness(1.05); }
  .btn.wa:hover { box-shadow: 0 8px 18px rgba(37, 211, 102, .4); }
  .btn.danger:hover { box-shadow: 0 8px 18px rgba(210, 68, 53, .25); }
  .tab:hover { transform: translateY(-2px); }
  .ib:hover { transform: translateY(-2px) rotate(-6deg); box-shadow: 0 6px 14px rgba(11, 110, 79, .2); }
  .glass:hover { background: rgba(255, 255, 255, .26); }
  .card:hover, .stat:hover, .ann:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(11, 110, 79, .18); }
  .btn:active, .tab:active, .ib:active { transform: scale(.94); }
}
.card, .stat, .ann { transition: transform .2s ease, box-shadow .25s ease; }

.tab.on { animation: tabGrow .35s ease both; }
.ni.on .ic { animation: iconPop .45s ease both; }
.seg button.on { animation: tabGrow .35s ease both; }
.ib .badge, .ni .dot { animation: badgePulse 1.8s ease-in-out infinite; }

.main > header, .main > .alert { animation: fadeIn .3s ease both; }
.main > *:not(header):not(.alert), .login-card > * { animation: fadeUp .45s ease backwards; }
.main > *:nth-child(3) { animation-delay: .04s; } .main > *:nth-child(4) { animation-delay: .08s; }
.main > *:nth-child(5) { animation-delay: .12s; } .main > *:nth-child(6) { animation-delay: .16s; }
.main > *:nth-child(n+7) { animation-delay: .2s; }
.login-card > *:nth-child(2) { animation-delay: .05s; } .login-card > *:nth-child(3) { animation-delay: .1s; }
.login-card > *:nth-child(4) { animation-delay: .15s; } .login-card > *:nth-child(n+5) { animation-delay: .2s; }
.login-card .logo { animation: popIn .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.stat { animation: fadeUp .5s ease backwards; }
.stats .stat:nth-child(2) { animation-delay: .06s; } .stats .stat:nth-child(3) { animation-delay: .12s; } .stats .stat:nth-child(4) { animation-delay: .18s; }
.trow { animation: fadeUp .4s ease backwards; }
.tbl .trow:nth-child(2) { animation-delay: .03s; } .tbl .trow:nth-child(3) { animation-delay: .06s; } .tbl .trow:nth-child(4) { animation-delay: .09s; }
.tbl .trow:nth-child(5) { animation-delay: .12s; } .tbl .trow:nth-child(6) { animation-delay: .15s; } .tbl .trow:nth-child(n+7) { animation-delay: .18s; }
.ann, .card { animation: fadeUp .45s ease backwards; }
#modal-root .back { animation: fadeIn .2s ease both; }
#modal-root .sheet { animation: popIn .3s cubic-bezier(.2, .9, .3, 1.15) both; }

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

.chip.main { background: rgba(18, 165, 110, .16); color: var(--accent); border: 1px solid rgba(18, 165, 110, .35); margin-left: 6px; backdrop-filter: blur(6px); vertical-align: middle; }
.trow:hover .chip.main, .trow.hl .chip.main { background: #fff; color: var(--g1); border-color: #fff; }


/* ============ MODE SOMBRE ============ */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #4fd69b;
  --mint: #12281f; --mint2: #1b3a2e; --ink: #e3f1ea; --muted: #8fa89d; --line: #244236;
  --red: #f0705f; --red-soft: #3a1a17; --amber: #f0c35a; --amber-soft: #3a2f10; --ok: #4fd69b; --ok-soft: #12392a;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --surface: #0f1f1a; --glass: rgba(20, 44, 35, .72); --glass-hi: rgba(15, 31, 26, .82); --chip: #1b2f27;
  --body-bg: #07130f; --alert-late: #ffb4aa; --alert-warn: #f6d98c; --alert-ok: #8be8bd;
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --accent: #4fd69b;
  --mint: #12281f; --mint2: #1b3a2e; --ink: #e3f1ea; --muted: #8fa89d; --line: #244236;
  --red: #f0705f; --red-soft: #3a1a17; --amber: #f0c35a; --amber-soft: #3a2f10; --ok: #4fd69b; --ok-soft: #12392a;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --surface: #0f1f1a; --glass: rgba(20, 44, 35, .72); --glass-hi: rgba(15, 31, 26, .82); --chip: #1b2f27;
  --body-bg: #07130f; --alert-late: #ffb4aa; --alert-warn: #f6d98c; --alert-ok: #8be8bd;
  color-scheme: dark;
}
/* éléments dont le texte doit rester lisible sur fond vert en mode sombre */
:root[data-theme="dark"] .btn:not(.gold):not(.ghost):not(.danger):not(.wa), :root[data-theme="dark"] .avatar, :root[data-theme="dark"] .num { color: #04241a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn:not(.gold):not(.ghost):not(.danger):not(.wa), :root:not([data-theme="light"]) .avatar, :root:not([data-theme="light"]) .num { color: #04241a; }
}


/* ============ CHARGEMENT (SKELETON) ============ */
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.skel { background: linear-gradient(90deg, var(--mint) 25%, var(--mint2) 50%, var(--mint) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 14px; }
.skel-shell { display: grid; grid-template-columns: 236px 1fr; gap: 0; max-width: 1200px; margin: 24px auto; min-height: 560px; border-radius: 30px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.skel-shell .sk-side { border-radius: 0; background: linear-gradient(165deg, var(--g0), var(--g1)); animation: none; }
.sk-main { padding: 28px 30px; display: grid; gap: 16px; align-content: start; }
.sk-h { height: 34px; width: 40%; }
.sk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sk-stats .skel { height: 78px; }
.sk-row { height: 58px; }
@media (max-width: 859px) { .skel-shell { grid-template-columns: 1fr; margin: 0; border-radius: 0; } .skel-shell .sk-side { height: 70px; } .sk-main { padding: 18px 16px; } .sk-stats { grid-template-columns: 1fr 1fr; } }

/* ============ ÉTATS VIDES ============ */
.empty-state { text-align: center; padding: 34px 18px; margin-top: 16px; border: 1.5px dashed rgba(18, 165, 110, .4); border-radius: 20px; background: linear-gradient(160deg, rgba(18, 165, 110, .08), transparent); }
.empty-state .ei { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: rgba(18, 165, 110, .15); color: var(--accent); animation: floaty 3s ease-in-out infinite; }
.empty-state .ei .ic { width: 30px; height: 30px; }
.empty-state h3 { margin-bottom: 4px; }
.empty-state .btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ============ TABLEAU DE BORD ============ */
.dash { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-top: 16px; }
.dash .card { margin: 0; }
.pills { display: inline-flex; gap: 4px; padding: 3px; border-radius: 12px; background: rgba(18, 165, 110, .1); }
.pills button { border: 0; background: transparent; color: var(--accent); font-weight: 650; font-size: .76rem; padding: 5px 10px; border-radius: 9px; cursor: pointer; position: relative; overflow: hidden; }
.pills button.on { background: var(--surface); box-shadow: 0 2px 8px rgba(11, 110, 79, .18); }
.chart { width: 100%; height: auto; display: block; margin-top: 8px; }
.chart text { fill: var(--muted); font-size: 10px; font-family: inherit; }
.chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .bar-r { transform-origin: bottom; transform-box: fill-box; animation: growY .7s cubic-bezier(.2, .9, .3, 1) backwards; }
.chart .bar-g:hover .bar-r { filter: brightness(1.15); }
.chart .val { fill: var(--accent); font-weight: 700; opacity: 0; transition: opacity .2s; }
.chart .bar-g:hover .val { opacity: 1; }
@keyframes growY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.donut-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.donut { width: 132px; height: 132px; flex: none; }
.donut circle.seg { animation: dash .9s ease backwards; }
@keyframes dash { from { stroke-dasharray: 0 999; } }
.donut text { fill: var(--ink); font-weight: 700; font-family: inherit; }
.legend { display: grid; gap: 6px; font-size: .84rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.legend b { margin-left: 6px; }
@media (max-width: 859px) { .dash { grid-template-columns: 1fr; } }

/* ============ PROFIL CLIENT ============ */
.profile-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.profile-head .avatar { width: 64px; height: 64px; font-size: 1.6rem; flex: none; }
.profile-head .who { flex: 1; min-width: 180px; }
.profile-head .who h2 { font-size: 1.25rem; }
.profile-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* ============ RAPPELS ============ */
.rem { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.rem:first-of-type { border-top: 0; }
.rem .who { flex: 1; min-width: 0; }
.rem .btn.sent { background: var(--ok-soft); color: var(--ok); }
.progress { height: 8px; border-radius: 99px; background: var(--mint2); overflow: hidden; margin: 6px 0 12px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--g2), var(--g3)); border-radius: 99px; transition: width .4s ease; }

/* ============ PARAMÈTRES ============ */
.set-grid { display: grid; gap: 14px; margin-top: 16px; grid-template-columns: 1fr 1fr; align-items: start; }
.set-grid .card { margin: 0; }
.theme-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.theme-opts button { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 14px; padding: 12px 6px; cursor: pointer; font-weight: 650; display: grid; gap: 4px; justify-items: center; position: relative; overflow: hidden; }
.theme-opts button.on { border-color: var(--g2); background: rgba(18, 165, 110, .14); color: var(--accent); }
.export-list { display: grid; gap: 8px; margin-top: 10px; }
.export-list .btn { justify-content: flex-start; }
@media (max-width: 859px) { .set-grid { grid-template-columns: 1fr; } }
.ib .ic { width: 20px; height: 20px; }

/* Alerte douce : blanc + un peu de vert, jamais foncé */
.alert.soft { background: linear-gradient(135deg, #ffffff 0%, #e6f6ee 100%); color: #0b4f39; border: 1px solid #bfe5d1; box-shadow: 0 4px 14px rgba(18, 165, 110, .12); }
.alert.soft b { color: #0b6e4f; }
@media (max-width: 859px) { .side::before { display: none; } }

/* ============ DISCUSSION PRIVÉE ============ */
.chat-box { height: min(52vh, 440px); overflow-y: auto; padding: 12px 6px; display: flex; flex-direction: column; gap: 6px; scroll-behavior: smooth;
  background: linear-gradient(180deg, rgba(18, 165, 110, .06), transparent 40%); border-radius: 16px; }
.day-sep { text-align: center; margin: 10px 0 4px; }
.day-sep span { font-size: .72rem; font-weight: 650; color: var(--muted); background: var(--glass); border: 1px solid var(--line); padding: 3px 12px; border-radius: 99px; backdrop-filter: blur(6px); }
.msg { display: flex; animation: msgIn .25s ease backwards; }
.msg.out { justify-content: flex-end; }
.msg .b { max-width: min(82%, 520px); padding: 8px 12px 6px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.38; font-size: .93rem; }
.msg.in .b { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; box-shadow: 0 2px 8px rgba(11, 110, 79, .08); }
.msg.out .b { background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; border-bottom-right-radius: 5px; box-shadow: 0 4px 12px rgba(11, 110, 79, .22); }
.msg .t { display: block; text-align: right; font-size: .66rem; opacity: .72; margin-top: 2px; }
.msg .tick { font-style: normal; margin-left: 5px; letter-spacing: -2px; }
.msg .tick.read { color: #b6ffe0; opacity: 1; font-weight: 700; }
:root[data-theme="dark"] .msg.out .b { color: #04241a; }
:root[data-theme="dark"] .msg.out .tick.read { color: #064e3b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .msg.out .b { color: #04241a; } :root:not([data-theme="light"]) .msg.out .tick.read { color: #064e3b; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.chat-empty { margin: auto; text-align: center; padding: 24px 12px; color: var(--muted); }
.chat-empty .ic { width: 38px; height: 38px; color: var(--accent); opacity: .7; margin-bottom: 6px; }
.chat-empty.big { padding: 60px 18px; }
.composer { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.composer textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 120px; height: 44px; border-radius: 22px; padding: 11px 16px; resize: none; line-height: 1.3; }
.composer .send { width: 46px; min-width: 46px; height: 46px; padding: 0; border-radius: 50%; flex: none; }
.chat-card { padding: 16px; }
.chat-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 14px; margin-top: 8px; align-items: start; }
.chat-layout .card { margin: 0; }
.chat-list { display: grid; gap: 4px; max-height: min(62vh, 520px); overflow-y: auto; }
.conv { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 8px; border-radius: 14px; cursor: pointer; color: var(--ink); position: relative; overflow: hidden; transition: background .2s, transform .15s; }
.conv:hover { background: rgba(18, 165, 110, .1); }
.conv.on { background: rgba(18, 165, 110, .18); box-shadow: inset 3px 0 0 var(--g2); }
.conv .avatar { width: 40px; height: 40px; flex: none; }
.conv .grow b, .conv .grow small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .meta { display: grid; justify-items: end; gap: 4px; flex: none; }
.conv .dot { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: .72rem; display: grid; place-items: center; animation: badgePulse 1.8s ease-in-out infinite; }
.conv-h { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin: 10px 6px 2px; }
.thread-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; flex-wrap: wrap; }
.thread-head .back-btn { display: none; font-size: 1.4rem; line-height: 1; }
.chat-pane .chat-box { height: min(52vh, 440px); }
@media (max-width: 859px) {
  .chat-layout { grid-template-columns: 1fr; }
  .chat-layout.has-thread .chat-list-wrap { display: none; }
  .chat-layout:not(.has-thread) .chat-pane { display: none; }
  .thread-head .back-btn { display: grid; }
  .chat-box { height: calc(100vh - 520px); min-height: 200px; }
  .chat-pane .chat-box { height: calc(100vh - 500px); min-height: 200px; }
}

.chat-card, .chat-pane, .chat-layout > * { min-width: 0; }

/* Sélecteur de langue compact (page de connexion) */
.lang-mini { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.lang-mini button { border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: .72rem; padding: 7px 9px; cursor: pointer; min-height: 0; }
.lang-mini button.on { background: var(--g2); color: #fff; }

/* Photo de profil */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
button.btn-av { border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 700; position: relative; }
button.btn-av:focus-visible { outline: 3px solid var(--g2); outline-offset: 2px; }
.avatar.big2 { width: 96px; height: 96px; font-size: 2.2rem; flex: none; box-shadow: var(--shadow); }
.photo-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.photo-btns { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
label.btn { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.profile-card { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 6px 0 2px; }
.profile-card h3 { margin: 8px 0 0; font-size: 1.15rem; }

/* Logo cliquable : actualise l'application */
button.brand { background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button.brand:focus-visible { outline: 3px solid rgba(255, 255, 255, .6); outline-offset: 4px; border-radius: 14px; }
@keyframes logoSpin { to { transform: rotate(360deg); } }
.brand img.spin, .login-card .logo.spin { animation: logoSpin .7s cubic-bezier(.4, 0, .2, 1); }
@media (prefers-reduced-motion: reduce) { .brand img.spin, .login-card .logo.spin { animation: none; } }

/* Lignes cliquables (modifier un paiement) */
.trow.click { cursor: pointer; transition: background .15s ease, transform .15s ease; }
.trow.click:hover { background: rgba(18, 165, 110, .08); }
.trow.click:focus-visible { outline: 2px solid var(--g2); outline-offset: -2px; }
.trow.click:active { transform: scale(.995); }

/* Fenêtre de confirmation + bouton « Annuler » du toast */
#toast.act { pointer-events: auto; }
.toast-undo { border: 0; background: rgba(255, 255, 255, .2); color: #fff; font-weight: 700; padding: 5px 12px; border-radius: 999px; margin-left: 10px; cursor: pointer; }
.toast-undo:hover { background: rgba(255, 255, 255, .32); }
.ask-back { position: fixed; inset: 0; z-index: 120; background: rgba(6, 40, 30, .55); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 18px; animation: fadeIn .15s ease both; }
.ask-back.out { opacity: 0; transition: opacity .14s ease; }
.ask-sheet { background: var(--surface); color: var(--ink); width: min(380px, 100%); border-radius: 22px; padding: 22px 20px 18px; text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); animation: popIn .25s cubic-bezier(.2, 1.2, .4, 1) both; }
.ask-ic { width: 52px; height: 52px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(214, 69, 69, .12); color: var(--red); margin-bottom: 10px; }
.ask-ic .ic { width: 26px; height: 26px; }
.ask-sheet h3 { margin: 0 0 6px; font-size: 1.08rem; }
.ask-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }

/* Recherche générale */
.gs-back { position: fixed; inset: 0; z-index: 110; background: rgba(6, 40, 30, .5); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 14px 14px; animation: fadeIn .15s ease both; }
.gs { background: var(--surface); color: var(--ink); width: min(580px, 100%); border-radius: 20px; box-shadow: 0 26px 70px rgba(0, 0, 0, .38); overflow: hidden; animation: popIn .22s cubic-bezier(.2, 1.1, .4, 1) both; }
.gs-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.gs-in input { flex: 1; border: 0; outline: 0; background: transparent; min-height: 0; padding: 4px 0; font-size: 1.02rem; color: var(--ink); }
.gs-in kbd { font: inherit; font-size: .7rem; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; color: var(--muted); }
.gs-res { max-height: min(60vh, 460px); overflow: auto; padding: 6px; }
.gs-h { margin: 8px 10px 4px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.gs-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; cursor: pointer; }
.gs-item.sel { background: rgba(18, 165, 110, .14); }
.gs-item .avatar { width: 36px; height: 36px; flex: none; font-size: .95rem; }
.gs-ico { width: 36px; height: 36px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(18, 165, 110, .14); color: var(--accent); font-weight: 700; }
.gs-ico .ic { width: 18px; height: 18px; }
.gs-t { flex: 1; min-width: 0; display: grid; }
.gs-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-t small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-none { padding: 26px 14px; text-align: center; color: var(--muted); }
@media (max-width: 859px) { .gs-back { padding-top: 70px; } .gs-in kbd { display: none; } .gs-item .chip { display: none; } }

/* tableau des tours */
.board{display:grid;grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:8px}
.tile{border:1.5px solid var(--line);border-radius:14px;padding:8px 6px;text-align:center;background:var(--surface,#fff);display:flex;flex-direction:column;gap:1px;min-width:0}
.tile b{font-size:1.05rem;color:var(--accent,#0b6b43)}
.tile span{font-weight:600;font-size:.82rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tile small{font-size:.7rem;color:var(--muted)}
.tile.done{background:var(--mint);opacity:.75}
.tile.cur{border-color:#e0a82e;background:var(--amber-soft);box-shadow:0 0 0 2px #f3d27a55}
.tile.late{border-color:#e07a6a;background:var(--red-soft)}
.tile.free{border-style:dashed;background:transparent;color:var(--muted)}
.dot{display:inline-block;width:10px;height:10px;border-radius:50%;vertical-align:middle}
.dot.cur{background:#e0a82e}.dot.late{background:#e07a6a}
/* compte à rebours client */
.hero{display:flex;align-items:center;gap:16px;margin:4px 0 12px;padding:12px;border-radius:16px;background:var(--mint)}
.ring{--p:0;width:84px;height:84px;border-radius:50%;flex:none;display:grid;place-items:center;background:conic-gradient(var(--g2,#18a164) calc(var(--p)*1%),var(--line) 0)}
.ring span{width:64px;height:64px;border-radius:50%;background:var(--surface,#fff);display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:700;font-size:1rem;line-height:1.05}
.ring small{font-size:.6rem;font-weight:500;color:var(--muted)}
.hero-big{font-size:2.2rem;font-weight:700;line-height:1;color:var(--accent,#0b6b43)}
.hero-s{font-size:.9rem;color:var(--muted);margin-top:2px}

.avs{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;margin-right:8px;vertical-align:middle;overflow:hidden;background:var(--mint2);color:var(--accent);font-size:.72rem;font-weight:700}
.avs img{width:100%;height:100%;object-fit:cover;display:block}
.tile .tph{width:28px;height:28px;border-radius:50%;object-fit:cover;margin:0 auto 2px;display:block}

/* À propos */
.about{display:grid;gap:14px;margin-top:6px}
.about .card{margin:0}
.ab h2{margin:0 0 8px;font-size:1.05rem;color:var(--accent)}
.ab p{margin:0 0 8px;line-height:1.6;font-size:.93rem}
.ab-row{display:flex;gap:16px;align-items:center}
.ab-img{flex:none;width:120px;background:#fff;border-radius:16px;padding:6px;display:grid;place-items:center;border:1px solid var(--line)}
.ab-img img{width:100%;height:auto;display:block;border-radius:10px}
.ab-tx{min-width:0;flex:1}
.ab-list{margin:0 0 8px;padding-left:20px;line-height:1.7;font-size:.93rem}
.ab-hero{text-align:center;padding:22px 16px}
.ab-hero img{width:104px;height:104px;object-fit:contain;border-radius:50%}
.ab-hero h2{margin:10px 0 2px;letter-spacing:.06em}
.ab-hero p{margin:0;color:var(--muted)}
.ab-merci{border-radius:20px;overflow:hidden;max-width:360px;margin:6px auto 0}
.ab-merci img{width:100%;display:block}
@media (max-width:520px){.ab-row{flex-direction:column;align-items:stretch}.ab-img{width:150px;align-self:center}}

.tile.mm{border-color:var(--accent);background:var(--mint)}
.tile.mm b{font-size:1.2rem}
.tile.mm span{font-size:.7rem;white-space:normal;line-height:1.1}

/* Images des annonces */
.ann-img{display:block;width:100%;height:auto;max-height:480px;object-fit:contain;border-radius:14px;margin-top:10px;cursor:zoom-in;background:var(--mint)}
.ann-pick{margin-top:2px}
.ann-prev{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.ann-prev img{width:140px;height:auto;max-height:140px;object-fit:cover;border-radius:12px;border:1px solid var(--line)}

.check{display:flex;gap:10px;align-items:flex-start;margin:12px 0;cursor:pointer;line-height:1.4}
.check input{width:20px;height:20px;margin-top:3px;flex:none;accent-color:var(--accent)}
.open-sol{margin-top:12px}

.ask-ic.safe{background:var(--mint2);color:var(--accent)}

.turn-pick{display:flex;flex-wrap:wrap;gap:8px}
.turn{position:relative;cursor:pointer}
.turn input{position:absolute;opacity:0;inset:0;cursor:pointer}
.turn span{display:grid;place-items:center;min-width:44px;height:44px;padding:0 6px;border-radius:12px;border:1.5px solid var(--line);font-weight:700;background:var(--surface,#fff)}
.turn input:checked+span{background:linear-gradient(135deg,var(--g1),var(--g2));color:#fff;border-color:transparent}
.turn input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}

/* ---- Page d'accueil ---- */
.lp { max-width: 980px; margin: 0 auto; padding: 0 16px 40px; }
.lp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; position: sticky; top: 0; z-index: 5; background: var(--bg, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lp-tools { display: flex; gap: 8px; align-items: center; }
.lp-tools .btn { min-height: 38px; padding: 0 14px; }
.lp-hero { position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: 28px; padding: 44px 20px 30px; margin-top: 6px;
  background: radial-gradient(circle at 80% 0%, rgba(255, 214, 102, .35), transparent 45%), linear-gradient(150deg, var(--g0), var(--g1) 55%, var(--g2)); box-shadow: 0 30px 70px rgba(11, 110, 79, .28); }
.lp-sun { position: absolute; width: 340px; height: 340px; right: -110px; top: -130px; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 214, 102, .22) 0 8deg, transparent 8deg 20deg); animation: lpSpin 60s linear infinite; }
@keyframes lpSpin { to { transform: rotate(360deg); } }
.lp-logo { position: relative; width: 112px; height: 112px; border-radius: 50%; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: popIn .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.lp-hero h1 { position: relative; color: #fff; font-size: clamp(1.7rem, 5.5vw, 2.7rem); line-height: 1.15; margin: 18px auto 10px; max-width: 640px; }
.lp-hero p { position: relative; max-width: 560px; margin: 0 auto; opacity: .92; line-height: 1.55; }
.lp-cta { position: relative; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 22px 0 18px; }
.lp-cta .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .1); }
.lp-chips { position: relative; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.lp-chips span { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); border-radius: 99px; padding: 6px 12px; font-size: .8rem; }
.lp-sec { padding: 40px 4px 10px; }
.lp-sec.alt { background: var(--chip); border-radius: 24px; padding: 32px 18px 22px; margin-top: 30px; }
.lp-sec h2 { text-align: center; color: var(--accent); margin-bottom: 8px; }
.lp-sub { text-align: center; color: var(--muted); max-width: 600px; margin: 0 auto 22px; }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.lp-steps li { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--glass); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); }
.lp-steps .n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--g1), var(--g2)); }
.lp-steps p, .lp-f p, .lp-vals p, .lp-q p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.lp-ex { margin: 18px auto 0; max-width: 640px; text-align: center; background: rgba(245, 183, 49, .15); border: 1px dashed #f5b731; border-radius: 16px; padding: 12px 14px; }
.lp-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 18px; }
.lp-f { background: var(--surface); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); transition: transform .2s; }
.lp-f:hover { transform: translateY(-3px); }
.lp-f i { font-style: normal; font-size: 1.7rem; display: block; margin-bottom: 6px; }
.lp-vals { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); text-align: center; margin-top: 16px; }
.lp-vals > div { padding: 14px; border-radius: 18px; border: 1px solid var(--glass); background: var(--surface); }
.lp-q { background: var(--surface); border-radius: 14px; padding: 12px 14px; margin-top: 10px; }
.lp-q summary { cursor: pointer; font-weight: 600; }
.lp-end { text-align: center; padding: 44px 10px 10px; }
.lp-end p { margin: 14px 0; }
.lp-end small { color: var(--muted); display: block; margin-top: 18px; }
.lp-back { background: none; border: 0; color: var(--accent); font-weight: 600; cursor: pointer; padding: 4px 0; position: absolute; top: 12px; left: 16px; }
.lp-hero, .lp-sec { animation: fadeUp .5s ease backwards; }
@media (prefers-reduced-motion: reduce) { .lp-sun { animation: none; } }
.lp { overflow-x: clip; }
.lp-top { flex-wrap: wrap; }
@media (max-width: 480px) { .lp-top .brand div { display: none; } .lp-tools { gap: 5px; } .lp-tools .btn { padding: 0 10px; font-size: .85rem; } }
.lp-hero .btn.gold, .lp-end .btn.gold { background: linear-gradient(135deg, #ffd666, #f5b731); color: #3a2a00; border: 0; box-shadow: 0 8px 22px rgba(245, 183, 49, .4); font-weight: 700; }

/* ---- Accueil v2 : style aéré ---- */
.lp { max-width: 1040px; }
.lp-top { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; position: relative; padding: 18px 0 8px; }
.lp-pill { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 18px; border-radius: 99px; background: var(--glass-hi); border: 1px solid var(--glass); box-shadow: 0 8px 30px rgba(11,110,79,.1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lp-pill a { color: var(--muted); text-decoration: none; font-size: .82rem; padding: 8px 12px; border-radius: 99px; }
.lp-pill a:hover { color: var(--accent); background: var(--chip); }
.lp-pill .btn { margin-left: 6px; }
.lp-mob { display: none; }
.lp-hero { background: radial-gradient(ellipse at 50% 0%, rgba(255,214,102,.22), transparent 60%), linear-gradient(180deg, var(--surface), var(--mint)); color: var(--ink); box-shadow: 0 20px 60px rgba(11,110,79,.12); border: 1px solid var(--glass); padding: 52px 20px 0; min-height: 0; }
.lp-hero h1 { color: var(--ink); font-size: clamp(2rem, 7vw, 3.6rem); font-weight: 700; letter-spacing: -.5px; max-width: 760px; margin: 18px auto 14px; }
.lp-hero h1 em { font-style: normal; color: var(--g2); }
.lp-hero p { color: var(--muted); opacity: 1; max-width: 520px; }
.lp-badge { display: inline-block; background: var(--chip); color: var(--muted); letter-spacing: 2px; font-size: .68rem; padding: 7px 14px; border-radius: 10px; }
.lp-cta { margin: 26px 0 0; }
.lp-main { background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; border: 0; box-shadow: 0 10px 24px rgba(18,165,110,.35); }
.lp-soft { background: var(--chip); color: var(--ink); border: 1px solid var(--line); }
.lp-scene { position: relative; margin: 20px -20px 0; height: 230px; }
.lp-scene svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lp-glass { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); width: 104px; height: 104px; border-radius: 26px; display: grid; place-items: center; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 16px 40px rgba(11,110,79,.2); animation: lpFloat 5s ease-in-out infinite; }
.lp-glass img { width: 70px; height: 70px; border-radius: 50%; }
.lp-glass.ref { top: auto; bottom: 4px; transform: translateX(-50%) scaleY(-1); height: 40px; opacity: .25; animation: none; overflow: hidden; align-items: end; mask-image: linear-gradient(#000, transparent); -webkit-mask-image: linear-gradient(#000, transparent); }
@keyframes lpFloat { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -8px); } }
.lp-sec h2 { color: var(--ink); }
@media (max-width: 760px) { .lp-pill a { display: none; } .lp-pill { display: none; } .lp-mob { display: inline-flex; } .lp-top .brand div { display: block; } }
@media (max-width: 480px) { .lp-top .brand div { display: none; } .lp-scene { height: 190px; } .lp-glass { width: 84px; height: 84px; top: 14px; } .lp-glass img { width: 56px; height: 56px; } }
@media (prefers-reduced-motion: reduce) { .lp-glass { animation: none; } }

.lp-serv { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 18px; }
.lp-serv > div { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); font-weight: 600; font-size: .9rem; transition: transform .2s; }
.lp-serv > div:hover { transform: translateY(-3px); }
.lp-serv i { font-style: normal; font-size: 1.5rem; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--chip); flex: none; }
.lp-quote { font-size: 1.05rem; font-style: italic; color: var(--accent); max-width: 460px; margin: 22px auto 0; }

/* ---- Animations au défilement ---- */
.lp-sec, .lp-hero { animation: none; }
.rv { opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .6s ease var(--d, 0ms), transform .6s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.lp-hero > * { animation: fadeUp .6s ease backwards; }
.lp-hero > :nth-child(2) { animation-delay: .08s; } .lp-hero > :nth-child(3) { animation-delay: .16s; } .lp-hero > :nth-child(4) { animation-delay: .24s; }
.lp-scene svg { transform: translateY(var(--py, 0px)); will-change: transform; }
.lp-top { position: sticky; top: 0; z-index: 20; transition: background .25s, box-shadow .25s, padding .25s; }
.lp-top.sc { background: var(--glass-hi); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 8px 24px rgba(11, 110, 79, .1); border-radius: 0 0 20px 20px; padding: 10px 12px; }
.lp-main { animation: lpPulse 2.8s ease-out 1.2s infinite; }
@keyframes lpPulse { 0% { box-shadow: 0 10px 24px rgba(18, 165, 110, .35), 0 0 0 0 rgba(18, 165, 110, .45); } 70%, 100% { box-shadow: 0 10px 24px rgba(18, 165, 110, .35), 0 0 0 16px rgba(18, 165, 110, 0); } }
.lp-steps .n { transition: transform .3s; } .lp-steps li:hover .n { transform: scale(1.12) rotate(-6deg); }
.lp-q[open] { box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .lp-main { animation: none; } .lp-hero > * { animation: none; } }
@media (max-width: 760px) { .lp-top { flex-wrap: nowrap; } .lp-top.sc { padding: 8px 4px; } }

/* ---- Logo & accueil en mode sombre ---- */
:root[data-theme="dark"] img[src$="icons/logo.png"] { border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .92), 0 6px 18px rgba(0, 0, 0, .35); }
:root[data-theme="dark"] .lp-glass { background: rgba(20, 44, 35, .6); border-color: rgba(255, 255, 255, .18); }
:root[data-theme="dark"] .lp-scene svg { filter: brightness(.42) saturate(.85); }
:root[data-theme="dark"] .lp-soft { color: #d8efe4; border-color: rgba(255, 255, 255, .15); }
:root[data-theme="dark"] .lp-pill a { color: #a9c4b8; }
:root[data-theme="dark"] .lp-badge { color: #a9c4b8; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) img[src$="icons/logo.png"] { border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .92), 0 6px 18px rgba(0, 0, 0, .35); }
  :root:not([data-theme="light"]) .lp-glass { background: rgba(20, 44, 35, .6); border-color: rgba(255, 255, 255, .18); }
  :root:not([data-theme="light"]) .lp-scene svg { filter: brightness(.42) saturate(.85); }
  :root:not([data-theme="light"]) .lp-soft { color: #d8efe4; border-color: rgba(255, 255, 255, .15); }
  :root:not([data-theme="light"]) .lp-pill a { color: #a9c4b8; }
  :root:not([data-theme="light"]) .lp-badge { color: #a9c4b8; }
}
:root[data-theme="dark"] .lp-soft { color: #d8efe4 !important; }
:root[data-theme="dark"] .lp-glass.ref { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lp-soft { color: #d8efe4 !important; } :root:not([data-theme="light"]) .lp-glass.ref { display: none; } }

/* ---- Adaptation à tous les écrans ---- */
@supports (height: 100dvh) { .login-bg { min-height: 100dvh; } .shell { min-height: 100dvh; } }
.ni span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ni { min-width: 0; }
@media (max-width: 859px) and (min-width: 0) { img, svg, video { max-width: 100%; } .card, .sheet { overflow-wrap: anywhere; } }
@media (max-width: 380px) {
  .nav-s { left: 6px; right: 6px; gap: 2px; padding: 5px; }
  .ni { font-size: .62rem; padding: 8px 0; }
  .main { padding-left: 12px; padding-right: 12px; }
  .stats { gap: 8px; }
  .login-card { padding: 22px 16px 20px; }
  .lp { padding-left: 10px; padding-right: 10px; }
  .lp-hero { border-radius: 22px; padding-left: 14px; padding-right: 14px; }
  .lp-hero h1 { font-size: 1.75rem; }
}
@media (max-width: 340px) { .lp-tools .lang-mini button { padding: 0 7px; } .btn { padding-left: 12px; padding-right: 12px; } h1 { font-size: 1.15rem; } }
@media (min-width: 761px) and (max-width: 940px) { .lp-top .brand div { display: none; } .lp-pill a { padding: 8px 8px; font-size: .78rem; } }
.lp-top { flex-wrap: nowrap; }
@media (max-height: 520px) { .lp-top { position: static; } .lp-top.sc { position: static; box-shadow: none; background: transparent; backdrop-filter: none; } .lp-hero { padding-top: 30px; } .lp-scene { height: 170px; } .nav-s { position: static !important; margin: 10px 0 0; } .main { padding-bottom: 24px; } }
@media (max-width: 859px) { input, select, textarea { font-size: 16px; } }
@media (max-width: 360px) { .grid2 { grid-template-columns: 1fr; } }
@media (max-width: 380px) {
  .side { padding-left: 12px; padding-right: 12px; gap: 8px; }
  .brand img { width: 40px; height: 40px; }
  .brand b { font-size: 1.05rem; }
  .brand small { letter-spacing: 3px; font-size: .62rem; }
  .side-foot .glass span { display: none; }
  .side-foot .glass { padding: 9px 11px; }
  .ni { font-size: .58rem; letter-spacing: -.2px; }
}
[hidden] { display: none !important; }

/* Textes légaux */
.legal-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; align-items: center; margin: 14px 0 0; font-size: .82rem; opacity: .85; }
.legal-l { padding: 4px 2px; font-size: inherit; }
.lp-end .legal-row { color: inherit; }
.legal h3 { margin: 14px 0 4px; font-size: 1rem; color: var(--green, #0b6e4f); }
.legal p { margin: 0; line-height: 1.55; font-size: .93rem; }

.rules-box { white-space: pre-wrap; line-height: 1.6; font-size: .95rem; background: var(--soft, rgba(11,110,79,.06)); border-radius: 12px; padding: 12px 14px; max-height: 60vh; overflow: auto; }

.rules-gen { margin: 0 0 6px; padding-left: 18px; line-height: 1.55; font-size: .93rem; }
.rules-gen li { margin-bottom: 6px; }

.terms-scroll { max-height: 46vh; overflow: auto; border: 1px solid rgba(11,110,79,.2); border-radius: 12px; padding: 4px 14px 12px; }
.legal-h { font-size: 1.05rem; margin: 16px 0 2px; }
#terms-gate { z-index: 9999; }


.brand img.logo3d { width: 78px; height: 78px; border-radius: 0; background: none; box-shadow: none; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .3)); }
@media (max-width: 859px) { .brand img.logo3d { width: 52px; height: 52px; } }

.stat.click { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; position: relative; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.stat.click:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(11, 110, 79, .16); border-color: rgba(18, 165, 110, .5); }
.stat.click:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.stat.click i { position: absolute; right: 12px; top: 10px; font-style: normal; font-size: 1.3rem; color: var(--muted); opacity: .7; }
.stat.click.red i { color: var(--red); }

/* --- Page d'un sòl : barre d'actions, indicateurs, menus « ⋯ » --- */
.gd-bar { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.gd-bar .spacer { flex: 1; }
.gd-kpi { margin-top: 12px; padding: 18px 20px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.kpi { padding: 2px 18px; border-left: 1px solid var(--line); min-width: 0; }
.kpi:first-child { border-left: 0; padding-left: 0; }
.kpi span { display: block; font-size: .72rem; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.kpi b { display: block; font-size: 1.5rem; color: var(--accent); margin: 4px 0 2px; line-height: 1.15; }
.kpi b em { font-style: normal; font-size: 1rem; color: var(--muted); font-weight: 600; }
.kpi small { display: block; color: var(--muted); font-size: .76rem; }
.kpi.neg b { color: var(--red); }
.kpi .bar { margin: 6px 0 4px; height: 6px; }
.gd-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); }
.vac { margin-top: 12px; padding: 0; border-left: 4px solid var(--gold, #e0a800); }
.vac > summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.vac > summary::-webkit-details-marker { display: none; }
.vac[open] > summary { border-bottom: 1px solid var(--line); }
.vac > :not(summary) { margin-left: 18px; margin-right: 18px; }
.vac > :last-child { margin-bottom: 16px; }
.vac > summary + * { margin-top: 12px; }
.mn { position: relative; display: inline-block; }
.mn-list { display: none; position: absolute; right: 0; top: calc(100% + 6px); min-width: 250px; z-index: 80; flex-direction: column; gap: 2px; padding: 6px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .22); }
.mn.open .mn-list { display: flex; }
.mn-list button { width: 100%; text-align: left; background: none; border: 0; padding: 11px 12px; border-radius: 10px; font: inherit; font-weight: 600; font-size: .88rem; color: inherit; cursor: pointer; }
.mn-list button:hover, .mn-list button:focus-visible { background: var(--mint); }
.mn-list button.dng { color: var(--red); }
.trow.mn-on { position: relative; z-index: 40; }
.trow:hover .mn-btn { background: #fff; color: var(--g1); }
@media (max-width: 860px) {
  .kpis { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .kpi:nth-child(odd) { border-left: 0; padding-left: 0; }
  .kpi:nth-child(n+3) { padding-top: 14px; border-top: 1px dashed var(--line); }
  .mn-list { right: 0; min-width: 230px; }
}
@media (min-width: 861px) { .trow .acts { flex-wrap: nowrap; } .trow .acts .btn { white-space: nowrap; } }

.lp-news { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
#lp-news { padding-top: 8px; padding-bottom: 0; }

.pay-hands { display: flex; flex-direction: column; gap: 6px; }
.pay-hands .turn.wide { width: 100%; justify-content: flex-start; }
.pay-hands .turn.wide { display: block; position: relative; }
.pay-hands .turn.wide span { display: flex; justify-content: flex-start; align-items: center; width: 100%; padding: 0 14px; }

.trow.multi { border-left: 4px solid var(--g2); }
.trow.sub { margin-left: 22px; background: var(--soft, rgba(11,110,79,.05)); border-style: dashed; }

.nmlink { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: inherit; cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: rgba(18,165,110,.45); text-underline-offset: 3px; }
.nmlink:hover { text-decoration-color: currentColor; }
.sheet table.t th { text-align: left; font-size: .72rem; text-transform: uppercase; color: var(--muted); letter-spacing: .5px; padding: 4px 0; }
.sheet table.t th.right { text-align: right; }

/* ============ V99 — LOOK PRO (inspiré Ant Design Mobile : plat, net, lignes fines, rayons modestes) ============
   Style seulement : aucune fonction, aucun contenu n'est modifié. */
:root { --radius: 12px; --shadow: 0 1px 2px rgba(20, 48, 42, .06), 0 4px 14px rgba(20, 48, 42, .06); --hair: 1px solid var(--line); }
body { font-size: 15px; line-height: 1.5; letter-spacing: .1px; }
h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.2px; }
h2 { font-weight: 650; }
.shell { border-radius: 20px; box-shadow: 0 12px 40px rgba(11, 110, 79, .16), 0 1px 3px rgba(11, 110, 79, .08); }
.main::before { display: none; }
.muted { color: var(--muted); }

/* Boutons : pleins, plats, retour au toucher (comme adm-button) */
.btn { background: var(--g1); border-radius: 8px; padding: 9px 16px; font-weight: 600; letter-spacing: .1px; transition: opacity .15s, background .15s; position: relative; }
.btn:hover { background: var(--g0); }
.btn:active { transform: none; opacity: .85; }
.btn.gold { background: var(--mint); color: var(--accent); border: 1px solid var(--mint2); backdrop-filter: none; }
.btn.gold:hover { background: var(--mint2); }
.btn.ghost { background: transparent; border: 1px solid var(--g2); color: var(--accent); }
.btn.ghost:hover { background: var(--mint); }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.danger:hover { background: var(--red-soft); filter: brightness(.97); }
.btn.wa:hover { background: #20bd5a; }
.btn.small { border-radius: 6px; min-height: 32px; padding: 4px 11px; }

/* Formulaires : champs plats, bordure fine */
input, select, textarea { border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
textarea { border-radius: 8px; border: 1px solid var(--line); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--g2); box-shadow: 0 0 0 3px rgba(18, 165, 110, .16); }
label { font-weight: 600; color: var(--ink); }
.search input { background: var(--mint); border-color: transparent; border-radius: 10px; }
.dates input { backdrop-filter: none; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }

/* Onglets : soulignés (comme adm-tabs) */
.tabs { gap: 4px; margin: 18px 0 8px; border-bottom: 1px solid var(--line); }
.tab { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; border-radius: 0; padding: 10px 14px; color: var(--muted); font-weight: 600; position: relative; margin-bottom: -1px; }
.tab:hover { background: transparent; color: var(--accent); }
.tab.on { background: transparent; color: var(--accent); box-shadow: none; border: 0; }
.tab.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--g2); }
.tab i { background: var(--mint); color: var(--accent); }
.seg button { backdrop-filter: none; border-radius: 8px; background: var(--mint); border: 1px solid transparent; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--accent); border-color: var(--g2); box-shadow: none; }

/* Lignes de liste : blanches, séparées par un trait fin ; survol discret (plus de ligne verte) */
.thead { background: transparent; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 14px; font-weight: 600; text-transform: none; }
.trow { margin-top: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--surface); padding: 13px 14px; transition: background .15s; }
.trow:last-child { border-bottom: 0; }
.trow.hl, .trow.click:active { background: var(--mint); color: inherit; border-color: var(--line); box-shadow: inset 3px 0 0 var(--g2); }
@media (hover: hover) {
  .trow:hover { background: var(--mint); color: inherit; border-color: var(--line); box-shadow: none; transform: none; }
}
.trow:hover .muted, .trow.hl .muted { color: var(--muted); }
.trow:hover .btn:not(.wa):not(.danger):not(.gold):not(.ghost), .trow.hl .btn:not(.wa):not(.danger):not(.gold):not(.ghost) { background: var(--g1); color: #fff; }
.trow:hover .btn.gold, .trow.hl .btn.gold { background: var(--surface); color: var(--accent); }
.trow:hover .btn.ghost, .trow.hl .btn.ghost { background: transparent; color: var(--accent); }
.trow:hover .bar, .trow.hl .bar { background: #dfeae4; }
.trow:hover .bar i, .trow.hl .bar i { background: linear-gradient(90deg, var(--g2), var(--g3)); }
.trow:hover .link-btn { color: inherit; }
.tbl { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.tbl .thead { background: var(--mint); border-bottom: 1px solid var(--line); }

/* Cartes, stats, puces */
.card { border-radius: 12px; box-shadow: var(--shadow); padding: 16px; }
.stat { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--mint); border: 1px solid var(--mint2); border-radius: 12px; }
.stat b { font-weight: 700; }
.chip { border-radius: 6px; padding: 2px 8px; font-weight: 600; }
.alert { border-radius: 8px; }
.bar { height: 6px; background: #e6efea; }
.ib { backdrop-filter: none; background: var(--surface); }
.glass { backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 10px; }

/* Fenêtres (sheet) et toast */
#modal-root .back { backdrop-filter: none; background: rgba(6, 30, 22, .45); }
#modal-root .sheet { border-radius: 16px 16px 0 0; box-shadow: 0 -4px 24px rgba(0, 0, 0, .12); }
#toast { border-radius: 8px; background: rgba(20, 48, 42, .92); }

/* Connexion */
.login-card { border-radius: 16px; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(11, 110, 79, .16); }

/* Téléphone : barre d'onglets du bas plate (comme adm-tab-bar) */
@media (max-width: 859px) {
  body { background: var(--body-bg); }
  .shell { box-shadow: none; }
  .side { border-radius: 0; }
  .nav-s { left: 0; right: 0; bottom: 0; padding: 4px 6px calc(env(safe-area-inset-bottom) + 4px); border-radius: 0; background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; border-top: 1px solid var(--line); box-shadow: 0 -2px 12px rgba(20, 48, 42, .06); }
  .ni { border-radius: 8px; padding: 7px 2px; font-weight: 600; }
  .ni:hover { background: transparent; }
  .ni.on { background: transparent; color: var(--accent); }
  .ni .dot { right: 22%; }
  .trow { border: 0; border-bottom: 1px solid var(--line); }
}

/* ============ V100 — STYLE TABLER (tableau de bord sobre : cartes à bordure fine, badges doux, en-têtes de tableau en petites capitales) ============
   Style seulement : aucune fonction ni contenu modifiés. */
:root { --tb-bg: #f5f7fa; --tb-hover: #f6f8fb; --tb-border: rgba(4, 32, 69, .1); --tb-shadow: 0 0 4px rgba(24, 36, 51, .04); --tb-btn-shadow: 0 1px 0 rgba(4, 32, 69, .06); }
:root[data-theme="dark"] { --tb-bg: #07130f; --tb-hover: #12281f; --tb-border: #244236; --tb-shadow: none; --tb-btn-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tb-bg: #07130f; --tb-hover: #12281f; --tb-border: #244236; --tb-shadow: none; --tb-btn-shadow: none; } }
:root { --radius: 8px; }
body { background: var(--tb-bg); }
.shell { border-radius: 12px; }

/* Titre de page */
.mh h1 { font-size: 1.4rem; font-weight: 650; letter-spacing: -.1px; }
.mh .muted { font-size: .86rem; }

/* Cartes : fond blanc, bordure fine, ombre quasi nulle */
.card { border: 1px solid var(--tb-border); border-radius: 8px; box-shadow: var(--tb-shadow); }
.card-title h2, .card-title h3 { font-size: .95rem; font-weight: 650; }
.stat { background: var(--surface); border: 1px solid var(--tb-border); border-radius: 8px; box-shadow: var(--tb-shadow); padding: 14px 16px; }
.stat span { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.stat b { font-size: 1.5rem; margin-top: 2px; }

/* Tableaux : en-tête en petites capitales, lignes aérées */
.tbl { border: 1px solid var(--tb-border); border-radius: 8px; box-shadow: var(--tb-shadow); }
.thead, .tbl .thead { background: var(--tb-hover); color: var(--muted); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--tb-border); padding: 10px 16px; }
.trow { padding: 12px 16px; border-bottom: 1px solid var(--tb-border); }
@media (hover: hover) { .trow:hover { background: var(--tb-hover); } }
.trow.hl, .trow.click:active { background: var(--tb-hover); }
table.t td { border-top: 1px solid var(--tb-border); }
.list li { border-top: 1px solid var(--tb-border); }

/* Boutons : coins nets, fine ombre sous le bouton */
.btn { border-radius: 4px; box-shadow: var(--tb-btn-shadow); font-weight: 600; }
.btn.small { border-radius: 4px; }
.btn.gold { background: var(--surface); color: var(--accent); border: 1px solid var(--tb-border); }
.btn.gold:hover { background: var(--tb-hover); }
.btn.ghost { border: 1px solid var(--tb-border); color: var(--ink); background: var(--surface); }
.btn.ghost:hover { background: var(--tb-hover); border-color: var(--g2); color: var(--accent); }
.btn.danger { box-shadow: none; }
.ib { border-radius: 8px; border: 1px solid var(--tb-border); box-shadow: var(--tb-btn-shadow); }
.ib .badge { border-radius: 99px; }
.avatar { border-radius: 8px; }
.trow .avatar, .trow .ava { border-radius: 6px; }

/* Badges doux (comme .badge .bg-*-lt de Tabler) */
.chip { border-radius: 4px; font-size: .7rem; font-weight: 650; padding: 3px 8px; letter-spacing: .02em; }

/* Champs */
input, select, textarea { border-radius: 4px; border: 1px solid var(--tb-border); }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 .25rem rgba(18, 165, 110, .18); }
.search input { border-radius: 4px; background: var(--surface); border: 1px solid var(--tb-border); }
.dates input { border-radius: 4px; }
label { font-size: .8rem; font-weight: 600; }

/* Onglets (déjà soulignés) : trait de base plus fin */
.tabs { border-bottom: 1px solid var(--tb-border); }
.tab { font-size: .86rem; }
.alert { border-radius: 4px; }
.sheet, #modal-root .sheet { border-radius: 8px 8px 0 0; }
.login-card { border-radius: 8px; border: 1px solid var(--tb-border); }
.seg button { border-radius: 4px; }
#toast { border-radius: 4px; }
.bar { height: 5px; }

@media (max-width: 859px) {
  body { background: var(--tb-bg); }
  .nav-s { border-top: 1px solid var(--tb-border); }
  .trow { border-bottom: 1px solid var(--tb-border); }
}

/* ============ V101 — POLICES : texte courant en police système (net, lisible), Poppins gardé pour titres, marque, boutons et chiffres clés ============ */
:root { --f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --f-head: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body, input, select, textarea { font-family: var(--f-body); }
h1, h2, h3, .brand b, .brand small, .btn, .tab, .ni, .chip, .stat b, .code-box, .login-card h1, .lp-top .brand, .num, .avatar, .thead, .stat span, .badge, .dot { font-family: var(--f-head); }
body { font-size: 15px; }
.trow .nm { font-family: var(--f-head); }
/* Page d'accueil : le bouton « Découvrir » garde son style doux (corrige V99/V100) */
.btn.lp-soft { background: var(--chip); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.lp-soft:hover { background: var(--mint2); }

/* ============ V103 — QUALITÉ UI/UX (checklist ui-ux-pro-max : contraste ≥ 4,5:1, focus visible, mouvement réduit, curseur, zones tactiles) ============
   Style seulement. Les variables sombres (plus spécifiques) ne sont pas touchées. */
:root { --muted: #566b62; --ok: #0f7a4d; --red: #b83a2d; }
.num, .avatar { background: var(--g1); }
.btn.gold, .btn.ghost { color: var(--g1); }
:root[data-theme="dark"] .btn.gold, :root[data-theme="dark"] .btn.ghost { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.gold, :root:not([data-theme="light"]) .btn.ghost { color: var(--accent); } }

/* Focus clavier toujours visible */
:focus-visible { outline: 2px solid var(--g2); outline-offset: 2px; }
.btn:focus-visible, .tab:focus-visible, .ni:focus-visible, .ib:focus-visible { outline: 2px solid var(--g2); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }

/* Curseur sur tout ce qui est cliquable */
button, [data-act], .tab, .ni, .ib, .chip[data-act], .trow.click, summary, label[for] { cursor: pointer; }
button[disabled], .btn[disabled] { cursor: not-allowed; }

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Zones tactiles confortables sur téléphone (≥ 40 px) */
@media (max-width: 859px) {
  .btn.small { min-height: 40px; }
  .ib { width: 44px; height: 44px; }
  .tab { padding: 12px 14px; }
}

/* ============ V104 — MOUVEMENT (principes du skill taste : une seule courbe, entrée du hero une fois, survol net, pression nette ; rien ne bouge au défilement) ============
   Style seulement. Respecte prefers-reduced-motion (règle V103). */
:root { --m-in: 150ms; --m-out: 120ms; --m-press: 90ms; --m-card: 180ms; --m-ease: cubic-bezier(.2, .8, .2, 1); --m-enter: cubic-bezier(.22, 1, .36, 1); }

/* Entrée du hero : une fois au chargement, ~1 s, puis il reste fixe */
@keyframes mEnter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes mFade { from { opacity: 0; } to { opacity: 1; } }
.lp-badge { animation: mEnter .7s var(--m-enter) both; }
.lp-hero h1 { animation: mEnter .8s var(--m-enter) 80ms both; }
.lp-hero > p { animation: mEnter .8s var(--m-enter) 160ms both; }
.lp-cta { animation: mEnter .8s var(--m-enter) 240ms both; }
.lp-scene { animation: mFade 1s var(--m-ease) 320ms both; }

/* Boutons : survol = monte de 1 px, pression = descend de 1 px et se réduit un peu */
.btn { transition: transform var(--m-out) var(--m-ease), background-color var(--m-out) var(--m-ease), border-color var(--m-out) var(--m-ease), box-shadow var(--m-out) var(--m-ease), opacity var(--m-out) var(--m-ease); }
.btn:active:not([disabled]) { transform: translateY(1px) scale(.985); opacity: 1; transition-duration: var(--m-press); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover:not([disabled]) { transform: translateY(-1px); transition-duration: var(--m-in); }
  .btn:active:not([disabled]) { transform: translateY(1px) scale(.985); }

  /* Cartes cliquables : montent de 2 px, bordure un cran plus foncée */
  .lp-f, .lp-serv > div, .lp-steps li, .lp-q, .stat.click, .card[data-act], .lp-news > * { transition: transform var(--m-out) var(--m-ease), box-shadow var(--m-out) var(--m-ease), border-color var(--m-out) var(--m-ease); }
  .lp-f:hover, .lp-serv > div:hover, .lp-steps li:hover, .stat.click:hover, .card[data-act]:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20, 48, 42, .1); border-color: rgba(18, 165, 110, .45); transition-duration: var(--m-card); }
  .lp-serv > div:hover { transform: translateY(-2px); }

  /* Liens du menu : un trait se dessine sous le mot */
  .lp-pill a { background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat; background-position: 12px calc(100% - 6px); background-size: 0 1.5px; transition: background-size var(--m-in) var(--m-ease), color var(--m-in) var(--m-ease); }
  .lp-pill a:hover { background-color: transparent; background-size: calc(100% - 24px) 1.5px; }
}
.stat.click:active, .card[data-act]:active { transform: translateY(0) scale(.99); }

/* Questions fréquentes : la flèche et le contenu s'ouvrent sans saut */
.lp-q[open] > p { animation: mFade .2s var(--m-ease) both; }
/* Fenêtres : ouverture douce (une fois) */
#modal-root .sheet { animation: mSheet .22s var(--m-enter) both; }
@keyframes mSheet { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ============ V105 — Cartes « Sols disponibles » + menu d'accueil (corrige débordements) ============ */
.open-sol { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.open-sol .card-title { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 8px; }
.open-sol .card-title h3 { overflow-wrap: anywhere; line-height: 1.3; }
.open-sol .chip { white-space: normal; max-width: 100%; }
.open-sol > .row.between { margin-top: auto; padding-top: 6px; align-items: center; }
.open-sol:has(.chip.late) { opacity: .78; }
.lp-pill { flex-wrap: nowrap; }
.lp-pill a, .lp-pill .btn { white-space: nowrap; flex: none; }
.lp-top .brand { flex: none; }

/* V106 : Kane (kanè dijital) */
.kn-link{color:inherit;cursor:pointer}.kn-link:hover{text-decoration:underline}
.kn-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-end}
.kn-head>div{display:flex;flex-direction:column}.kn-sum{text-align:right}.kn-sum b{font-size:20px}
.kn-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(54px,1fr));gap:6px}
.kn-c{position:relative;border:1px solid var(--line);border-radius:8px;padding:4px 2px;text-align:center;background:var(--chip);min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:space-between}
.kn-c b{font-size:11px;color:var(--muted,#667)}.kn-c i{font-style:normal;font-size:10px;color:var(--muted,#667)}
.kn-c .kn-m{font-size:16px;line-height:1;font-weight:700}
.kn-c.paid{background:#e6f6ec;border-color:#2e9e5b}.kn-c.paid .kn-m{color:#1f7a44}
.kn-c.part{background:#fff6dd;border-color:#d9a21b}.kn-c.late{background:#fdeaea;border-color:#d64545}.kn-c.late .kn-m{color:#c0392b}
.kn-c.skip{opacity:.45}.kn-c.mom{outline:2px dashed #d9a21b;outline-offset:-2px}
.kn-c em{position:absolute;top:-7px;right:-3px;font-style:normal;font-size:9px;background:#d9a21b;color:#fff;border-radius:6px;padding:0 4px}
.kn-leg{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:10px}
.kn-d{display:inline-block;width:12px;height:12px;border-radius:3px;border:1px solid var(--line);background:var(--chip);vertical-align:-2px}
.kn-d.paid{background:#e6f6ec;border-color:#2e9e5b}.kn-d.part{background:#fff6dd;border-color:#d9a21b}.kn-d.late{background:#fdeaea;border-color:#d64545}

/* V108 : actions qui ne se chevauchent plus + kane par mois */
@media (min-width: 861px) { .trow .acts { flex-wrap: wrap; justify-content: flex-end; } }
.trow > span { min-width: 0; }
.kn-mo{margin-bottom:12px}.kn-mh{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:6px;text-transform:capitalize}
.kn-grid.kn-w{grid-template-columns:repeat(5,minmax(0,1fr))}
