/* Espace client Wariguai (client.wariguai.com) — maquette validée le 2026-11-26. Thème clair seulement. */
:root {
  --navy: #0a1a36; --navy2: #12306b; --blue: #1f56d6; --gold: #d4a02a; --gold2: #f5cb5c; --gold-soft: #fff6e0; --gold-ink: #7a5600;
  --bg: #f4f6fb; --card: #fff; --ink: #0d1630; --muted: #5d6a85; --faint: #98a2b8; --line: #e6e9f1; --soft: #eef1f7;
  --ok: #0e8a3e; --ok-soft: #e6f6ec; --warn: #b26a00; --warn-soft: #fff3dc; --info: #1f56d6; --info-soft: #eaf0ff; --bad: #d03b3b; --bad-soft: #fdecec;
  --sh1: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --sh2: 0 4px 6px -2px rgba(16, 24, 40, .03), 0 12px 24px -4px rgba(16, 24, 40, .08);
  --sh3: 0 24px 48px -12px rgba(10, 26, 54, .25);
  --gold-grad: linear-gradient(135deg, #f5cb5c, #d4a02a);
  --hero: radial-gradient(60% 80% at 100% 0%, rgba(77, 132, 255, .38) 0%, rgba(77, 132, 255, 0) 62%), radial-gradient(90% 120% at 0% 100%, rgba(31, 86, 214, .55) 0%, rgba(31, 86, 214, 0) 60%), linear-gradient(135deg, #0a1a36 0%, #12306b 100%);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 500 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); text-decoration: none; }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; border: 0; font-weight: 800; font-size: 14px; cursor: pointer; white-space: nowrap; transition: transform .08s ease, box-shadow .15s ease, background .15s ease; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn .ico { width: 17px; height: 17px; }
.btn-gold { background: var(--gold-grad); color: #2b1d00; box-shadow: 0 8px 20px -6px rgba(212, 160, 42, .6), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: var(--sh1); }
.btn-white { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--sh1); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--soft); }
.btn-danger { background: var(--bad-soft); color: #c0392b; }
.btn-big { height: 52px; padding: 0 24px; border-radius: 14px; font-size: 15.5px; }
.btn-full { width: 100%; }
.btn-sm { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.link { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 13.5px; color: var(--blue); background: none; border: 0; cursor: pointer; padding: 0; }
.link .ico { width: 15px; height: 15px; }

/* Cartes, pastilles */
.card { background: var(--card); border-radius: 22px; padding: 24px; box-shadow: var(--sh2); border: 1px solid rgba(230, 233, 241, .7); }
.card-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.card-title > .grow { font: inherit; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; white-space: nowrap; background: var(--soft); color: var(--muted); }
.pill .ico { width: 13px; height: 13px; stroke-width: 2.5; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.gold { background: var(--gold-soft); color: var(--gold-ink); }
.spin { animation: cx-spin 1.1s linear infinite; }
@keyframes cx-spin { to { transform: rotate(360deg); } }
.logo { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(16, 24, 40, .06); background: #fff; }
.avatar { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 19px; flex: none; }
.avatar .ico { width: 45%; height: 45%; }
.avatar img { position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; border-radius: 7px; border: 2px solid #fff; object-fit: cover; background: #fff; }
.tile { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--gold-soft); color: var(--gold-ink); }
.tile .ico { width: 21px; height: 21px; }
.tile.blue { background: var(--info-soft); color: var(--blue); }
.tile.green { background: var(--ok-soft); color: var(--ok); }
.tile.soft { background: var(--soft); color: var(--navy); }

/* Cadre : barre latérale, barre du haut, barre du bas (téléphone) */
.cx { display: flex; min-height: 100vh; }
.cx-side { width: 256px; flex: none; background: #fff; border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.cx-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--ink); }
.cx-brand img { width: 34px; height: 34px; }
.cx-nav { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 12px; font-weight: 600; font-size: 14.5px; color: var(--muted); }
.cx-nav .ico { width: 19px; height: 19px; }
.cx-nav:hover { background: var(--soft); }
.cx-nav.on { background: var(--navy); color: #fff; font-weight: 800; box-shadow: var(--sh1); }
.cx-nav.on .ico { color: var(--gold2); }
.cx-me { border-radius: 16px; background: var(--bg); padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.cx-me .avatar { width: 38px; height: 38px; font-size: 15px; background: var(--gold-grad); color: #2b1d00; }
.cx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cx-top { height: 68px; display: flex; align-items: center; gap: 12px; padding: 0 36px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .8); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.cx-search { display: flex; align-items: center; gap: 10px; width: min(460px, 100%); height: 42px; border-radius: 12px; background: #fff; border: 1px solid var(--line); padding: 0 8px 0 12px; color: var(--faint); }
.cx-search input { flex: 1; border: 0; outline: 0; background: none; color: var(--ink); font-weight: 600; font-size: 13.5px; min-width: 0; }
.cx-search input::placeholder { color: var(--faint); }
.kbd { padding: 3px 7px; border-radius: 6px; background: var(--soft); font-weight: 800; font-size: 11px; color: var(--muted); }
.cx-iconbtn { position: relative; width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); cursor: pointer; }
.cx-page { padding: 26px 36px 48px; display: flex; flex-direction: column; gap: 22px; max-width: 1240px; width: 100%; }
.cx-tabbar { display: none; }
.cx-mtop { display: none; }

/* Bandeau bleu nuit */
.hero { position: relative; overflow: hidden; border-radius: 28px; background: var(--hero); padding: 28px 30px 24px; color: #fff; box-shadow: var(--sh3); }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(120deg, transparent 20%, #000 80%); mask-image: linear-gradient(120deg, transparent 20%, #000 80%); pointer-events: none; }
.hero::after { content: ''; position: absolute; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 70px 70px 0 -70px transparent; pointer-events: none; }
.hero > * { position: relative; }
.hero-date { font-weight: 600; font-size: 14px; color: #9fb0d4; }
.hero-hello { font-weight: 800; font-size: 32px; letter-spacing: -.02em; margin-top: 2px; line-height: 1.15; }
.hero-month { text-align: right; }
.hero-month b { display: block; font-size: 26px; font-weight: 800; }
.hero-month span { font-size: 12px; color: #9fb0d4; font-weight: 600; }
.cmd { margin-top: 20px; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 8px 0 10px; border-radius: 20px; background: #fff; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .5); color: var(--ink); }
.cmd-ai { width: 46px; height: 46px; border-radius: 14px; background: var(--navy); color: var(--gold2); display: grid; place-items: center; flex: none; }
.cmd input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-weight: 600; font-size: 15.5px; color: var(--ink); }
.cmd input::placeholder { color: var(--faint); }
.cmd-mic { width: 46px; height: 46px; border-radius: 14px; background: var(--soft); border: 0; display: grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; }
.cmd-mic.listening { background: var(--bad-soft); color: var(--bad); animation: cx-pulse 1.2s ease-in-out infinite; }
@keyframes cx-pulse { 50% { box-shadow: 0 0 0 8px rgba(208, 59, 59, .12); } }
.nets { margin-top: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nets-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12.5px; color: #9fb0d4; margin-right: 4px; }
.net { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-weight: 700; font-size: 12.5px; color: #e6ecf8; }
.net img { width: 22px; height: 22px; border-radius: 7px; object-fit: cover; background: #fff; }
.net i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .2); }
.net.SLOW i, .net.OK i { background: #f5cb5c; box-shadow: 0 0 0 3px rgba(245, 203, 92, .25); }
.net.OFF i { background: #98a2b8; box-shadow: none; }
.net span { color: #9fb0d4; font-weight: 600; }

/* À faire pour toi */
.todos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.todo { position: relative; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: var(--sh2); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.todo::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--gold); }
.todo.OFFER::before { background: var(--ok); }
.todo-head { display: flex; align-items: center; gap: 12px; }
.todo b { font-size: 14.5px; }

/* Grilles de l'accueil */
/* Largeur de la colonne de droite propre à chaque page : style « --aside » (jamais gridTemplateColumns en
   ligne, sinon les colonnes ne s'empilent plus sur un petit écran). */
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) var(--aside, 330px); gap: 22px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.people { display: flex; gap: 12px; margin-top: 16px; overflow-x: auto; padding-bottom: 4px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 92px; flex: none; background: none; border: 0; cursor: pointer; padding: 0; text-align: center; }
.person b { font-size: 13px; }
.person span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.person-add { width: 56px; height: 56px; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; color: var(--muted); }
.day { font-weight: 800; font-size: 11.5px; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; padding: 14px 14px 4px; }
.op { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; cursor: pointer; text-align: left; width: 100%; background: none; border: 0; }
.op:hover { background: var(--bg); }
.op.sel { background: var(--info-soft); box-shadow: inset 0 0 0 1.5px rgba(31, 86, 214, .25); }
.op-title { font-weight: 800; font-size: 14.5px; }
.op-sub { font-weight: 600; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.op-amt { text-align: right; }
.op-amt b { display: block; font-size: 15px; }
.op-amt .pill { margin-top: 4px; }
.reward { border-radius: 24px; padding: 22px; background: linear-gradient(160deg, #fff6e0, #ffe6a3); box-shadow: var(--sh2); position: relative; overflow: hidden; }
.reward::after { content: ''; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.reward > * { position: relative; z-index: 1; }
.reward-pts { font-weight: 800; font-size: 34px; letter-spacing: -.02em; margin-top: 12px; }
.reward-pts span { font-size: 15px; color: var(--gold-ink); }
.bar { height: 8px; border-radius: 4px; background: rgba(122, 86, 0, .12); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--gold-grad); border-radius: 4px; }
.code-box { margin-top: 14px; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 6px 6px 6px 12px; }
.code-box b { flex: 1; letter-spacing: .04em; }
.mini { display: flex; align-items: center; gap: 12px; padding: 18px 20px; cursor: pointer; }
.empty { padding: 26px 10px; text-align: center; color: var(--muted); font-weight: 600; }

/* Formulaires */
.label { font-weight: 800; font-size: 13px; margin-bottom: 10px; display: block; }
.field { height: 56px; border: 1.5px solid var(--line); border-radius: 16px; padding: 0 10px 0 16px; display: flex; align-items: center; gap: 10px; background: #fff; }
.field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 86, 214, .1); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-weight: 800; font-size: 18px; }
.field .prefix { color: var(--muted); font-weight: 800; font-size: 18px; }
.field .op-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 12px; background: var(--soft); font-weight: 700; font-size: 13px; }
.field .op-badge img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; }
.input { width: 100%; height: 46px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fff; font-weight: 600; outline: 0; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 86, 214, .1); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; background: var(--soft); color: var(--ink); border: 0; cursor: pointer; }
.chip.on { background: var(--info-soft); color: var(--blue); box-shadow: inset 0 0 0 1.5px rgba(31, 86, 214, .3); }
.amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.amount { height: 54px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 16px; background: #fff; border: 1.5px solid var(--line); cursor: pointer; }
.amount.on { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: var(--sh2); }
.pays { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.pay { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line); cursor: pointer; text-align: left; }
.pay.on { border-color: transparent; box-shadow: 0 0 0 2px var(--gold), var(--sh2); }
.pay .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.pay.on .dot { border: 0; background: var(--ok); box-shadow: inset 0 0 0 5px var(--ok), inset 0 0 0 8px #fff; }
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; max-height: 340px; overflow: auto; padding: 2px; }
.offer { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; text-align: left; }
.offer.on { border-color: transparent; box-shadow: 0 0 0 2px var(--gold); background: var(--gold-soft); }
.offer b { font-size: 14px; }
.offer span { font-size: 12px; color: var(--muted); font-weight: 600; }
.offer strong { font-size: 15px; margin-top: 4px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--soft); width: fit-content; }
.tab { height: 38px; padding: 0 16px; border-radius: 11px; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13.5px; color: var(--muted); border: 0; background: none; cursor: pointer; }
.tab.on { background: #fff; color: var(--ink); box-shadow: var(--sh1); }
.tab .ico { width: 16px; height: 16px; }
.tab.on .ico { color: var(--gold); }

/* Ticket (récapitulatif, reçu) */
.ticket { background: #fff; border-radius: 22px; box-shadow: var(--sh3); overflow: hidden; }
.ticket-head { background: var(--hero); padding: 20px 22px; color: #fff; display: flex; align-items: center; gap: 12px; }
.ticket-head small { display: block; font-weight: 700; font-size: 12.5px; color: #9fb0d4; }
.ticket-head b { font-size: 26px; letter-spacing: -.02em; }
.ticket-body { padding: 16px 22px 6px; }
.tk { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-weight: 600; font-size: 14px; color: var(--muted); }
.tk b { color: var(--ink); font-weight: 800; text-align: right; }
.tk.total { font-size: 18px; color: var(--ink); font-weight: 800; }
.perf { position: relative; height: 22px; }
.perf::before, .perf::after { content: ''; position: absolute; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.perf::before { left: -11px; }
.perf::after { right: -11px; }
.perf i { position: absolute; left: 20px; right: 20px; top: 10px; border-top: 2px dashed var(--line); }
.safe-note { display: flex; gap: 8px; margin-top: 14px; font-weight: 600; font-size: 12.5px; color: var(--muted); }
.safe-note .ico { color: var(--ok); }

/* Validation dans l'appli, suivi */
.validate { display: flex; gap: 34px; align-items: center; }
.phone { width: 250px; height: 470px; border-radius: 38px; background: #0b1020; padding: 10px; box-shadow: var(--sh3); flex: none; }
.phone-in { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: linear-gradient(180deg, #1c2b52, #0a1a36); position: relative; color: #fff; }
.phone-clock { text-align: center; margin-top: 46px; font-weight: 300; font-size: 46px; }
.phone-note { margin: 26px 12px 0; border-radius: 18px; background: rgba(255, 255, 255, .94); padding: 12px; color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); animation: cx-drop .6s ease-out; }
@keyframes cx-drop { from { transform: translateY(-14px); opacity: 0; } }
.phone-note .acts { display: flex; gap: 6px; margin-top: 10px; }
.phone-note .acts span { flex: 1; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: var(--soft); }
.phone-note .acts span:first-child { background: var(--gold-grad); color: #2b1d00; }
.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 14px; }
.step-dot { display: flex; flex-direction: column; align-items: center; }
.step-dot span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: #fff; }
.step-dot span .ico { width: 15px; height: 15px; stroke-width: 3; }
.step-dot i { width: 2px; height: 30px; background: var(--line); }
.step.done .step-dot span { background: var(--ok); }
.step.done .step-dot i { background: var(--ok); }
.step.now .step-dot span { background: var(--gold-grad); color: #2b1d00; box-shadow: 0 0 0 6px rgba(245, 203, 92, .25); }
.step b { display: block; font-size: 14.5px; padding-top: 4px; }
.step:not(.done):not(.now) b { color: var(--faint); }
.step small { font-weight: 600; font-size: 12.5px; color: var(--muted); }
.receipt { width: min(470px, 100%); margin: 0 auto; filter: drop-shadow(0 24px 40px rgba(10, 26, 54, .18)); }
.receipt-top { background: #fff; border-radius: 24px 24px 0 0; padding: 30px 30px 18px; text-align: center; }
.receipt-check { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-soft); display: inline-grid; place-items: center; color: var(--ok); box-shadow: 0 0 0 10px rgba(14, 138, 62, .07); }
.receipt-check .ico { width: 36px; height: 36px; stroke-width: 3; }
.receipt-amt { font-weight: 800; font-size: 40px; letter-spacing: -.03em; }
.receipt .perf { background: #fff; }
.receipt-bottom { background: #fff; border-radius: 0 0 24px 24px; padding: 6px 30px 26px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 8px; height: 14px; border-radius: 2px; opacity: .8; animation: cx-fall 2.6s ease-in forwards; }
@keyframes cx-fall { to { transform: translateY(110vh) rotate(540deg); opacity: 0; } }

/* Mes opérations : liste + détail */
.ops-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 22px; align-items: start; }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--soft); }
.seg button { height: 34px; padding: 0 14px; border-radius: 10px; border: 0; background: none; font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--sh1); }
.detail { position: sticky; top: 90px; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--soft); font-weight: 600; font-size: 13.5px; color: var(--muted); }
.kv b { color: var(--ink); text-align: right; }
.timeline-box { margin-top: 14px; border-radius: 14px; background: var(--bg); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.timeline-box div { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13px; }
.timeline-box div span { margin-left: auto; color: var(--muted); font-weight: 600; }
.timeline-box .ico { color: var(--ok); }
.timeline-box .todo-step .ico { color: var(--faint); }

/* Connexion */
.login { display: flex; min-height: 100vh; background: var(--bg); }
.login-hero { width: 560px; flex: none; position: relative; overflow: hidden; background: var(--hero); padding: 52px 56px; display: flex; flex-direction: column; color: #fff; }
.login-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(120deg, transparent 20%, #000 80%); mask-image: linear-gradient(120deg, transparent 20%, #000 80%); }
.login-hero > * { position: relative; }
.login-hero h1 { font-size: 46px; line-height: 1.08; letter-spacing: -.025em; margin: 0; }
.login-hero h1 span { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-hero p { color: #c9d4ec; font-size: 16.5px; line-height: 1.6; max-width: 400px; }
.login-perk { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14.5px; color: #e6ecf8; }
.login-perk span { width: 34px; height: 34px; border-radius: 11px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; color: var(--gold2); }
.login-main { flex: 1; display: grid; place-items: center; padding: 30px 20px; }
.login-card { width: min(700px, 100%); background: #fff; border-radius: 22px; padding: 30px 36px 28px; box-shadow: var(--sh3); }
.qr-wrap { display: flex; gap: 34px; align-items: center; margin-top: 26px; }
.qr-box { position: relative; padding: 16px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--sh2); flex: none; }
.qr-box img.qr { width: 196px; height: 196px; display: block; }
.qr-box .qr-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 12px; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px #fff; }
.qr-box .qr-logo img { width: 36px; height: 36px; }
.qr-box .scanline { position: absolute; left: 16px; right: 16px; top: 20px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, rgba(245, 203, 92, 0), var(--gold2), rgba(245, 203, 92, 0)); box-shadow: 0 0 14px var(--gold2); animation: cx-scan 2.4s ease-in-out infinite alternate; }
@keyframes cx-scan { to { top: 206px; } }
.qr-done { position: absolute; inset: 0; border-radius: 24px; background: rgba(255, 255, 255, .92); display: grid; place-items: center; text-align: center; font-weight: 800; color: var(--ok); }
.lstep { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 15px; }
.lstep > span:first-child { width: 30px; height: 30px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-ink); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
/* Cases du code secret / code SMS : bien visibles (fond gris, bord net, comme le champ du numéro). */
.digits { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.digits input { width: 62px; height: 66px; border-radius: 16px; border: 2px solid #c6cfdf; text-align: center; font-weight: 800; font-size: 26px; color: var(--ink); outline: 0; background: var(--bg); box-shadow: inset 0 2px 0 rgba(13, 22, 48, .04); }
.digits input:hover { border-color: #9fabc4; }
.digits.secret input { font-size: 30px; letter-spacing: 0; }
.digits-eye { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; padding: 8px 12px; border: 0; border-radius: 12px; background: var(--soft); color: var(--muted); font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.digits-eye:hover { color: var(--ink); }
.digits-eye .ico { width: 18px; height: 18px; }
.label-hint { color: var(--muted); font-weight: 600; }
.digits input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245, 203, 92, .25); }
.digits input.filled { border-color: var(--gold); background: var(--gold-soft); }
.error { border-radius: 12px; background: var(--bad-soft); color: var(--bad); font-weight: 700; font-size: 13.5px; padding: 10px 12px; }
.info-box { border-radius: 16px; background: var(--bg); padding: 14px 16px; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 13.5px; }
.info-box .ico { color: var(--gold-ink); }

/* Fenêtres, messages */
.modal-back { position: fixed; inset: 0; background: rgba(10, 26, 54, .45); display: grid; place-items: center; z-index: 60; padding: 16px; animation: cx-fade .15s ease-out; }
@keyframes cx-fade { from { opacity: 0; } }
.modal { width: min(440px, 100%); background: #fff; border-radius: 22px; padding: 24px; box-shadow: var(--sh3); display: flex; flex-direction: column; gap: 14px; }
.modal h3 { margin: 0; font-size: 19px; }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 70; width: min(440px, calc(100% - 32px)); }
.toast { background: var(--navy); color: #fff; border-radius: 14px; padding: 12px 16px; font-weight: 700; font-size: 14px; box-shadow: var(--sh3); display: flex; gap: 10px; align-items: center; animation: cx-drop .25s ease-out; }
.toast.bad { background: #8f1f1f; }
.toast.ok .ico { color: #3ddc84; }
.page-title { font-weight: 800; font-size: 28px; letter-spacing: -.02em; margin: 0; }
.crumbs { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.crumbs b { color: var(--ink); }

/* Étape 2 : connexion par notification, programmées, faire payer par un proche, factures */
.notif-number { font-size: 64px; font-weight: 800; letter-spacing: .06em; line-height: 1; padding: 18px 38px; border-radius: 24px; background: var(--gold-soft); color: var(--gold-ink); box-shadow: inset 0 0 0 2px var(--gold2); }
.switch { position: relative; width: 50px; height: 28px; border-radius: 14px; border: 0; background: #cfd5e1; cursor: pointer; flex: none; transition: background .15s ease; padding: 0; }
.switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .25); transition: left .15s ease; }
.switch.on { background: var(--ok); }
.switch.on i { left: 25px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--bg); border: 1.5px solid transparent; cursor: pointer; text-align: left; width: 100%; }
.opt b { display: block; font-size: 13.5px; }
.opt small { display: block; font-weight: 600; font-size: 12px; color: var(--muted); }
.opt > .ico { width: 20px; height: 20px; }
.opt.green > .ico { color: var(--ok); }
.opt.gold > .ico { color: var(--gold-ink); }
.opt.on.gold { background: var(--gold-soft); border-color: var(--gold); }
.opt.on.green { background: var(--ok-soft); border-color: rgba(14, 138, 62, .35); }
.sub-box { border-radius: 18px; background: var(--bg); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.daychips { display: flex; gap: 6px; flex-wrap: wrap; }
.daychip { height: 38px; min-width: 46px; padding: 0 10px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; font-weight: 800; font-size: 13px; cursor: pointer; color: var(--muted); }
.daychip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.textarea { width: 100%; min-height: 92px; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; font-weight: 600; outline: 0; resize: vertical; line-height: 1.5; }
.textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 86, 214, .1); }
.sched { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 18px 4px; border-top: 1px solid var(--line); }
.sched:first-child { border-top: 0; }
/* Le titre garde toujours au moins 240 px ; sinon le bloc de droite passe à la ligne. */
.sched > .grow { flex: 1 1 240px; }
.sched-side { display: flex; align-items: center; gap: 14px; margin-left: auto; flex: none; }
.sched-next { text-align: right; flex: none; }
.sched-next small { display: block; font-weight: 700; font-size: 12px; color: var(--faint); }
.sched-next b { font-size: 14px; }
.sched-acts { display: flex; gap: 4px; flex: none; }
.navy-card { background: var(--hero); color: #fff; border-radius: 24px; padding: 28px; box-shadow: var(--sh3); }
.navy-card h3 { margin: 16px 0 8px; font-size: 21px; letter-spacing: -.01em; }
.navy-card p { margin: 0; color: #c9d4ec; line-height: 1.6; font-weight: 500; }
.navy-card .tile { background: rgba(255, 255, 255, .1); color: var(--gold2); }
.fake-note { margin-top: 20px; border-radius: 16px; background: rgba(255, 255, 255, .1); padding: 12px 14px; display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 13.5px; }
.fake-note img { width: 26px; height: 26px; }
.fake-note span.btn { height: 32px; pointer-events: none; }
.share-msg { border-radius: 16px; background: var(--bg); padding: 16px; font-weight: 500; line-height: 1.6; }
.share-qr { border-radius: 20px; background: var(--bg); padding: 16px; display: flex; gap: 16px; align-items: center; }
.share-qr img { width: 112px; height: 112px; padding: 8px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); flex: none; }
.tl { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.tl div { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.tl div span { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.tl .ok { color: var(--ok); }
.tl .wait { color: var(--warn); }
.tl .muted-i { color: var(--faint); }
.photo-drop { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; border: 2px dashed var(--line); background: #fff; cursor: pointer; }
.photo-drop:hover { border-color: var(--blue); }
.photo-drop img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.mini-list .op { cursor: pointer; }
.wallet-card { display: block; background: var(--hero); color: #fff; border-radius: 24px; padding: 22px 24px; box-shadow: var(--sh3); }
.wallet-card .tile { background: rgba(255, 255, 255, .1); color: var(--gold2); }
.wallet-card > .row .ico { color: #9fb0d4; }
.wallet-bal { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 14px 0 6px; color: #fff; }
.wallet-card.big { padding: 28px; }
.wallet-card.big .wallet-bal { font-size: 48px; margin: 18px 0 10px; }

/* Écrans moyens */
/* Écran de connexion sur un ordinateur étroit ou zoomé (ex. 1280 px à 150 %) : le panneau bleu passe
   au-dessus au lieu d'être rogné, et se fait petit quand l'écran est bas. */
@media (max-width: 1100px) and (min-width: 821px) {
  .login { flex-direction: column; }
  .login-hero { width: auto; padding: 24px 32px; }
  .login-hero h1 { font-size: 32px; }
  .login-hero .perks, .login-hero .foot { display: none; }
  .login-main { place-items: start center; padding: 24px 20px 40px; }
}
@media (max-width: 1100px) and (max-height: 720px) {
  .login-hero p { display: none; }
  .login-hero h1 { font-size: 26px; }
}
@media (max-width: 1180px) {
  .grid-main, .ops-grid { grid-template-columns: minmax(0, 1fr); }
  .detail { position: static; }
  .login-hero { width: 440px; padding: 44px; }
}
/* Téléphone : pas de barre latérale, barre du bas avec le bouton + au centre */
@media (max-width: 820px) {
  .cx-side, .cx-top { display: none; }
  .cx-mtop { display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 16px; background: var(--navy); }
  .cx-mtop .cx-brand { padding: 0; color: #fff; font-size: 18px; }
  .cx-mtop .cx-brand img { width: 28px; height: 28px; }
  .cx-me-mini { width: 34px; height: 34px; border-radius: 50%; background: var(--gold-grad); color: #2b1d00; display: grid; place-items: center; font-weight: 800; }
  .cx-page { padding: 16px 16px 110px; gap: 16px; }
  .hero { border-radius: 0 0 28px 28px; margin: -16px -16px 0; padding: 8px 18px 22px; box-shadow: none; }
  .hero-hello { font-size: 24px; }
  .hero-month { display: none; }
  .cmd { height: 54px; border-radius: 16px; }
  .cmd-ai { display: none; }
  .cmd input { font-size: 14px; }
  .cmd .kbd, .cmd .btn span { display: none; }
  .nets .net span { display: none; }
  .card { padding: 18px; border-radius: 20px; }
  .validate { flex-direction: column; }
  .phone { display: none; }
  .cx-tabbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; height: 64px; border-radius: 22px; background: #fff; box-shadow: var(--sh3); align-items: center; justify-content: space-around; z-index: 40; }
  .cx-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-weight: 700; font-size: 10.5px; color: var(--faint); }
  .cx-tabbar a.on { color: var(--navy); }
  .cx-tabbar .plus { width: 50px; height: 50px; border-radius: 16px; background: var(--gold-grad); display: grid; place-items: center; margin-top: -26px; box-shadow: 0 10px 20px -6px rgba(212, 160, 42, .7); color: #2b1d00; }
  .login { flex-direction: column; }
  .login-hero { width: auto; padding: 28px 22px; }
  .login-hero h1 { font-size: 30px; }
  .login-hero .perks, .login-hero .foot { display: none; }
  .login-card { padding: 22px 18px; }
  .qr-wrap { flex-direction: column-reverse; }
  .digits { gap: 8px; }
  .digits input { width: 52px; height: 60px; }
  .digits:not(.secret) input { width: 44px; height: 56px; font-size: 22px; }
  .tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; padding: 0 8px; }
  .opts { grid-template-columns: 1fr; }
  .sched > .grow { flex-basis: 160px; }
  .sched-side { width: 100%; flex-wrap: wrap; justify-content: space-between; row-gap: 8px; }
  .sched-next { text-align: left; flex-basis: 100%; }
  .notif-number { font-size: 52px; padding: 14px 28px; }
}
