/* ===== Groupe Services : Banque, Garage, Services, Plans, Notes, Calculatrice ===== */

/* ---------- Banque ---------- */
.wl-wrap.wide { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.wl-card {
  position: relative; overflow: hidden; border-radius: 22px; padding: 18px 20px 20px; color: #fff; margin-bottom: 16px;
  background: radial-gradient(circle at 85% 0%, rgba(255,255,255,.18), transparent 45%), linear-gradient(135deg, #1f2a44 0%, #0d1220 55%, #2b2140 100%);
  box-shadow: 0 14px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.15);
}
.wl-card::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.06); }
.dark .wl-card { box-shadow: 0 14px 30px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.12); }
.wl-card-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; opacity: .8; }
.wl-card-top svg { width: 22px; fill: #fff; }
.wl-label { margin-top: 22px; font-size: 13px; opacity: .7; }
.wl-balance { font-size: 36px; font-weight: 700; letter-spacing: -.5px; }
.wl-num { margin-top: 14px; font-size: 14px; letter-spacing: 2px; opacity: .75; font-variant-numeric: tabular-nums; }
.wl-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.wl-actions button { position: relative; background: var(--card); border-radius: 16px; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.wl-actions button span { width: 40px; height: 40px; border-radius: 50%; background: rgba(10,132,255,.12); display: grid; place-items: center; }
.wl-actions svg { width: 20px; fill: var(--accent); }
.wl-actions .badge { top: 6px; right: 10px; }
.wl-tx-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.wl-tx-ic svg { width: 18px; }
.wl-tx-ic.in { background: rgba(48,209,88,.15); } .wl-tx-ic.in svg { fill: var(--green); }
.wl-tx-ic.out { background: rgba(255,69,58,.12); } .wl-tx-ic.out svg { fill: var(--red); }
.wl-amt { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wl-amt.in { color: var(--green); }
.wl-inv-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* ---------- Garage ---------- */
.gr-count { font-size: 13px; color: var(--muted); padding: 0 4px 10px; }
.gr-grid { display: flex; flex-direction: column; gap: 12px; }
.gr-grid.wide { display: grid; grid-template-columns: 1fr 1fr; }
.gr-card { background: var(--card); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.gr-top { display: flex; align-items: center; gap: 12px; }
.gr-ic { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(160deg,#6e6cf0,#3634a3); display: grid; place-items: center; flex-shrink: 0; }
.gr-ic svg { width: 26px; fill: #fff; }
.gr-name { font-size: 17px; font-weight: 600; }
.gr-plate { display: inline-block; margin-top: 3px; padding: 1px 8px; border-radius: 5px; border: 1.5px solid var(--text); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; font-family: ui-monospace, monospace; }
.gr-state { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 10px; white-space: nowrap; }
.gr-state.st-garage { background: rgba(48,209,88,.15); color: #20a447; }
.gr-state.st-out { background: rgba(10,132,255,.13); color: var(--accent); }
.gr-state.st-impound { background: rgba(255,69,58,.13); color: var(--red); }
.gr-where { display: flex; align-items: center; gap: 4px; }
.gr-where svg, .sv-alert .r-sub svg, .sv-hint svg { width: 14px; height: 14px; fill: var(--muted); flex-shrink: 0; }
.gr-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.gr-btns .btn { flex: 1 1 auto; padding: 9px 10px; font-size: 13px; white-space: nowrap; }
.btn:disabled { opacity: .5; }

/* ---------- Services ---------- */
.sv-seg { margin: 0 16px 12px; }
.sv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sv-grid.wide { grid-template-columns: repeat(4, 1fr); }
.sv-tile {
  aspect-ratio: 1; border-radius: 22px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; text-align: left;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 92%, white), color-mix(in srgb, var(--c) 70%, black)); color: #fff;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--c) 35%, transparent);
}
.sv-tile b { font-size: 16px; line-height: 1.2; }
.sv-ic { width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.22); display: grid; place-items: center; }
.sv-ic svg { width: 24px; fill: #fff; }
.sv-tile:active { transform: scale(.96); }
.sv-hint { display: flex; align-items: center; gap: 6px; justify-content: center; color: var(--muted); font-size: 13px; padding: 18px 0; }
.sv-alerts { display: flex; flex-direction: column; gap: 12px; }
.sv-alerts.wide { display: grid; grid-template-columns: 1fr 1fr; }
.sv-alert { background: var(--card); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 6px; border-left: 4px solid var(--red); }
.sv-alert.st-accepted { border-left-color: var(--accent); }
.sv-alert.st-closed { border-left-color: var(--muted); opacity: .65; }
.sv-al-top { display: flex; align-items: center; gap: 8px; }
.sv-al-top b { flex: 1; }
.sv-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(255,69,58,.18); }
.st-open .sv-dot { animation: svPulse 1.4s infinite; }
.st-accepted .sv-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(10,132,255,.15); }
.st-closed .sv-dot { background: var(--muted); box-shadow: none; }
@keyframes svPulse { 50% { box-shadow: 0 0 0 8px rgba(255,69,58,0); } }
.sv-al-msg { font-size: 15px; line-height: 1.35; }
.sv-alert .r-sub { display: flex; align-items: center; gap: 4px; white-space: normal; }

/* ---------- Plans ---------- */
.mp-wrap.wide { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.mp-card {
  position: relative; overflow: hidden; border-radius: 24px; min-height: 270px; margin-bottom: 18px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(160deg, #cfe9d6 0%, #b8d8e8 55%, #a6c3dd 100%);
}
.dark .mp-card { background: linear-gradient(160deg, #1d3a2a 0%, #183447 55%, #142638 100%); }
.mp-grid {
  position: absolute; inset: 0; opacity: .55;
  background-image: linear-gradient(rgba(255,255,255,.75) 2px, transparent 2px), linear-gradient(90deg, rgba(255,255,255,.75) 2px, transparent 2px),
    linear-gradient(35deg, transparent 47%, rgba(255,214,10,.8) 47%, rgba(255,214,10,.8) 53%, transparent 53%);
  background-size: 46px 46px, 46px 46px, 100% 100%;
  transform: perspective(500px) rotateX(35deg) scale(1.4); transform-origin: center 30%;
}
.dark .mp-grid { opacity: .25; }
.mp-arrow {
  position: absolute; left: 50%; top: 34%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center; border: 4px solid #fff; box-shadow: 0 0 0 10px rgba(10,132,255,.25), 0 6px 16px rgba(0,0,0,.3);
  transition: transform .6s;
}
.mp-arrow svg { width: 26px; fill: #fff; }
.mp-info { position: relative; background: var(--glass-strong); backdrop-filter: blur(20px); border-radius: 16px; padding: 10px 12px; margin-bottom: 10px; }
.mp-label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.mp-street { font-size: 18px; font-weight: 700; color: var(--text); }
.mp-btns { position: relative; display: flex; gap: 8px; }
.mp-btns .btn { flex: 1; padding: 10px; font-size: 14px; }
.mp-btns .btn.secondary { background: var(--glass-strong); backdrop-filter: blur(20px); }
.mp-pin { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.mp-pin svg { width: 18px; fill: #fff; }

/* ---------- Notes ---------- */
.nt-row .r-title { display: flex; align-items: center; gap: 4px; }
.nt-pin { width: 14px; height: 14px; fill: #f5b400; flex-shrink: 0; }
.nt-row .r-sub b { font-weight: 500; color: var(--text); opacity: .7; margin-right: 4px; }
.nt-editor { display: flex; flex-direction: column; padding-bottom: 20px; }
.nt-date { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0 10px; }
.nt-title { font-size: 26px; font-weight: 700; border: 0; outline: 0; background: none; padding: 4px 4px 8px; }
.nt-body { flex: 1; min-height: 300px; font-size: 17px; line-height: 1.45; border: 0; outline: 0; background: none; resize: none; padding: 4px; color: var(--text); }
.app .ui-act svg[data-p] { fill: #f5b400; }

/* ---------- Calculatrice ---------- */
.calc-app { background: #000; color: #fff; padding: 54px 18px 36px; justify-content: flex-end; }
.calc-display { text-align: right; font-size: 76px; font-weight: 300; padding: 0 10px 12px; white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; }
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ck { aspect-ratio: 1; border-radius: 50%; background: #333; color: #fff; font-size: 30px; display: grid; place-items: center; transition: filter .1s; }
.ck:active { filter: brightness(1.6); }
.ck.fn { background: #a5a5a5; color: #000; font-size: 26px; }
.ck.op { background: #ff9f0a; font-size: 34px; }
.ck.op.on { background: #fff; color: #ff9f0a; }
.ck.zero { grid-column: span 2; aspect-ratio: auto; border-radius: 999px; justify-content: start; padding-left: 30px; }
#phone.unfolded.span .calc-app { padding: 54px 25% 36px; }
