/*
 * Portail client Always Improving (`/portail`).
 * Couleurs de la marque (cf. propositions commerciales) : bleu #1E7FC2,
 * marine #0B3B5C, nuit #07293F, ciel #F3F8FC. Police Inter servie par le CRM.
 * CSP stricte : aucun style en ligne — les largeurs de barres sont des classes `w-NN`.
 */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../proposal/fonts/inter-400-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../proposal/fonts/inter-400-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20C0; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../proposal/fonts/inter-600-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../proposal/fonts/inter-700-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC; }

:root {
  --deep: #07293F; --navy: #0B3B5C; --accent: #1E7FC2; --accent-2: #3BA4E8; --accent-soft: #E8F3FB;
  --sky: #F3F8FC; --canvas: #F5F8FB; --card: #FFFFFF;
  --ink: #0F2233; --text: #1F2D3A; --muted: #5B6B78; --faint: #8A99A6;
  --line: #E3EBF2; --line-2: #D3DEE8;
  --success: #12B76A; --success-soft: #ECFDF3; --warning: #DC6803; --warning-soft: #FFF6E6;
  --danger: #D92D20; --danger-soft: #FEF3F2; --violet: #6D4AFF; --violet-soft: #F1EEFF; --teal: #0E9384; --teal-soft: #E6F6F4;
  --r-sm: 10px; --r: 16px; --r-lg: 22px;
  --sh-sm: 0 1px 2px rgba(15, 34, 51, .06);
  --sh: 0 1px 2px rgba(15, 34, 51, .05), 0 12px 32px -16px rgba(15, 34, 51, .18);
  --sh-lg: 0 30px 60px -28px rgba(7, 41, 63, .55);
  --ease: cubic-bezier(.22, .8, .22, 1);
  --side-w: 288px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--canvas); color: var(--text); font: 400 15px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.pi { flex: 0 0 auto; width: 20px; height: 20px; }
.pi.inline { width: 15px; height: 15px; vertical-align: -2px; }
.brand-logo { border-radius: 11px; background: #fff; object-fit: contain; padding: 3px; }
.muted { color: var(--muted); }

/* ── Boutons, badges ────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 12px;
  font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: none !important; transition: transform .15s var(--ease), box-shadow .15s, background .15s; }
.btn .pi { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, #2A8DD2, var(--accent)); color: #fff; box-shadow: 0 10px 22px -10px var(--accent), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-primary:hover { box-shadow: 0 14px 26px -10px var(--accent), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-primary .pi { transition: transform .2s var(--ease); }
.btn-primary:hover .pi { transform: translateX(3px); }
.btn-block { width: 100%; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sky); }
.btn-ghost-light { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); }
.btn-amber { background: var(--warning); color: #fff; white-space: nowrap; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--sky); color: var(--accent); text-decoration: none; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 9px; background: rgba(255,255,255,.08); color: #fff; font-size: 13px; font-weight: 600; }
.chip-btn .pi { width: 16px; height: 16px; }
.chip-btn:hover { background: rgba(255,255,255,.16); text-decoration: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tone-success { background: var(--success-soft); color: #067647; }
.tone-warning { background: var(--warning-soft); color: #B54708; }
.tone-danger { background: var(--danger-soft); color: #B42318; }
.tone-info { background: var(--accent-soft); color: #175C8C; }
.tone-muted { background: #F0F3F6; color: var(--muted); }
.tone-text-danger { color: var(--danger); } .tone-text-warning { color: var(--warning); } .tone-text-muted { color: var(--faint); }
.licence .tone-success, .licence .tone-warning, .licence .tone-danger, .licence .tone-muted { background: none; }
.licence .tone-success { color: #6CE9A6; } .licence .tone-warning { color: #FEC84B; } .licence .tone-danger { color: #FDA29B; }

.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.lang form { margin: 0; }
.lang button { border: 0; background: none; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }

.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin: 0 0 18px; }
.note .pi { width: 18px; height: 18px; margin-top: 1px; }
.note.warn { background: var(--warning-soft); color: #93370D; }
.note.ok { background: var(--success-soft); color: #05603A; }
.note.dev { background: var(--violet-soft); color: #3E1C96; margin-top: 18px; }

/* ── Connexion ──────────────────────────────────────────────────────────── */
.auth-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(380px, 1fr) minmax(420px, 1.1fr); }
.auth-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 44px 52px; color: #fff;
  background: radial-gradient(90% 60% at 100% 0%, rgba(59,164,232,.35), transparent 60%), radial-gradient(70% 50% at 0% 100%, rgba(30,127,194,.35), transparent 60%), linear-gradient(160deg, var(--navy), var(--deep)); }
.auth-brand::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(80% 60% at 70% 30%, #000, transparent); pointer-events: none; }
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand-top { display: flex; align-items: center; gap: 12px; }
.auth-brand-top strong { display: block; font-size: 16px; }
.auth-brand-top span { font-size: 13px; color: rgba(255,255,255,.65); }
.auth-pitch h2 { color: #fff; font-size: clamp(28px, 3vw, 40px); line-height: 1.12; font-weight: 700; max-width: 14ch; margin-bottom: 32px; }
.auth-pitch ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; max-width: 420px; }
.auth-pitch li { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,.7); }
.auth-pitch li .pi { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.09); color: #8FC1E4; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.auth-pitch li strong { display: block; color: #fff; font-size: 15px; margin-bottom: 2px; }
.auth-foot { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.6); }
.auth-foot .pi { width: 16px; height: 16px; }
.auth-main { display: flex; flex-direction: column; padding: 28px; }
.auth-top { display: flex; justify-content: flex-end; }
.auth-card { width: 100%; max-width: 420px; margin: auto; padding: 8px 0 40px; animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.auth-card h1 { font-size: 28px; line-height: 1.2; margin: 18px 0 10px; }
.auth-card > p.muted { font-size: 15px; margin-bottom: 26px; }
.auth-card-logo { display: none; border-radius: 12px; }
.auth-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.auth-icon .pi { width: 26px; height: 26px; }
.auth-icon.ok { background: var(--success-soft); color: var(--success); }
.auth-form { display: grid; gap: 10px; }
.auth-form label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.input-icon { position: relative; }
.input-icon .pi { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 18px; height: 18px; }
.input-icon input { width: 100%; height: 50px; padding: 0 14px 0 44px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; font: inherit; font-size: 15.5px; color: var(--ink);
  box-shadow: var(--sh-sm); transition: border-color .15s, box-shadow .15s; }
.input-icon input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(30,127,194,.15); }
.auth-form .btn { margin-top: 8px; height: 50px; }
.auth-help { margin-top: 22px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-card-logo { display: block; }
  .auth-main { padding: 18px 20px; }
}

/* ── Application ────────────────────────────────────────────────────────── */
.shell { min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 30; display: flex; flex-direction: column; gap: 22px; padding: 22px 16px 16px; color: #fff; overflow-y: auto;
  background: radial-gradient(120% 50% at 0% 0%, rgba(59,164,232,.22), transparent 60%), linear-gradient(180deg, var(--navy), var(--deep)); }
.side-brand { display: flex; align-items: center; gap: 11px; padding: 0 6px; }
.side-brand strong { display: block; font-size: 15px; }
.side-brand span { font-size: 12.5px; color: rgba(255,255,255,.6); }
.side-close { display: none; margin-left: auto; color: rgba(255,255,255,.7); }
.side-close:hover { background: rgba(255,255,255,.08); color: #fff; }
.side-label { display: block; padding: 0 10px 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.side-companies { display: grid; gap: 4px; }
.company-pill { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: rgba(255,255,255,.75); font-size: 14px; font-weight: 500; }
.company-pill .dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.company-pill:hover { background: rgba(255,255,255,.06); text-decoration: none; color: #fff; }
.company-pill.is-on { background: rgba(255,255,255,.1); color: #fff; }
.company-pill.is-on .dot { background: var(--accent-2); box-shadow: 0 0 0 3px rgba(59,164,232,.25); }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: rgba(255,255,255,.72); font-weight: 500; font-size: 14.5px; transition: background .15s, color .15s; }
.side-nav a .pi { color: rgba(255,255,255,.55); transition: color .15s; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.side-nav a.is-on { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.side-nav a.is-on .pi { color: var(--accent-2); }
.side-nav .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.manager { margin-top: auto; padding: 14px 12px 12px; border-radius: var(--r); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.manager .side-label { padding: 0 0 10px; }
.manager-row { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.manager-row strong { display: block; font-size: 14px; }
.manager-row span { font-size: 12.5px; color: rgba(255,255,255,.55); }
.manager-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.avatar { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 13.5px; color: #fff;
  background: linear-gradient(140deg, var(--accent-2), var(--accent)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.avatar.soft { background: rgba(255,255,255,.12); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 12px 6px 0; border-top: 1px solid rgba(255,255,255,.08); }
.side-user form { margin: 0 0 0 auto; }
.side-user-name { min-width: 0; }
.side-user-name strong { display: block; font-size: 13.5px; }
.side-user-name span { display: block; font-size: 12px; color: rgba(255,255,255,.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .icon-btn { color: rgba(255,255,255,.6); }
.side-user .icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.scrim { display: none; }

.main { margin-left: var(--side-w); }
.topbar { display: none; }
.content { max-width: 1160px; margin: 0 auto; padding: 36px 40px 40px; }

.hello { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; animation: rise .5s var(--ease) both; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.hello h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; font-weight: 700; }
.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.4s ease-in-out .6s 1; }
@keyframes wave { 0%, 60%, 100% { transform: none; } 10%, 30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } }
.lead { margin-top: 8px; font-size: 16px; color: var(--muted); }
.lead strong { color: var(--ink); }

.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; animation: rise .55s var(--ease) .05s both; }

/* Licence : une « carte » */
.licence { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; padding: 26px 28px; border-radius: var(--r-lg); color: #fff; box-shadow: var(--sh-lg);
  background: radial-gradient(120% 90% at 100% 0%, rgba(59,164,232,.45), transparent 55%), radial-gradient(80% 70% at 0% 100%, rgba(30,127,194,.4), transparent 60%), linear-gradient(140deg, #0E4870, var(--deep)); }
.licence::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px); pointer-events: none; }
.licence > * { position: relative; z-index: 1; }
.licence-mark { position: absolute; z-index: 0; right: -38px; bottom: -44px; width: 220px; height: 220px; opacity: .07; filter: grayscale(1) brightness(3); pointer-events: none; }
.licence-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.licence-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8FC1E4; }
.licence-kicker .pi { width: 16px; height: 16px; }
.licence-zone { padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 12.5px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.licence h2 { color: #fff; font-size: 26px; line-height: 1.15; font-weight: 700; }
.licence-acts { margin-top: -8px; font-size: 13.5px; color: rgba(255,255,255,.65); }
.licence-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 4px 0 0; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.licence-grid dt { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.licence-grid dd { margin: 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.licence-life-row { display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 8px; }
.licence-life-row span:last-child { font-weight: 600; }
.licence-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
.licence-wait { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.75); }

.bar { height: 8px; border-radius: 999px; background: #E9EFF5; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .8s var(--ease); }
.bar.on-dark { background: rgba(255,255,255,.14); }
.bar.on-dark span { background: linear-gradient(90deg, #8FC1E4, #fff); }
.w-0{width:0}.w-5{width:5%}.w-10{width:10%}.w-15{width:15%}.w-20{width:20%}.w-25{width:25%}.w-30{width:30%}.w-35{width:35%}.w-40{width:40%}.w-45{width:45%}.w-50{width:50%}
.w-55{width:55%}.w-60{width:60%}.w-65{width:65%}.w-70{width:70%}.w-75{width:75%}.w-80{width:80%}.w-85{width:85%}.w-90{width:90%}.w-95{width:95%}.w-100{width:100%}

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--r); background: var(--card); box-shadow: var(--sh); border: 1px solid var(--line); color: var(--muted); font-size: 13px;
  transition: transform .2s var(--ease), box-shadow .2s; min-width: 0; }
.stat:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 1px 2px rgba(15,34,51,.05), 0 18px 36px -18px rgba(15,34,51,.25); }
.stat strong { color: var(--ink); font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.stat strong.stat-small { font-size: 18px; line-height: 1.25; margin-top: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.stat-ico.blue { background: var(--accent-soft); color: var(--accent); }
.stat-ico.teal { background: var(--teal-soft); color: var(--teal); }
.stat-ico.amber { background: var(--warning-soft); color: var(--warning); }
.stat-ico.violet { background: var(--violet-soft); color: var(--violet); }

.action-needed { display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin-bottom: 8px; border-radius: var(--r); background: linear-gradient(90deg, #FFF6E6, #FFFBF3);
  border: 1px solid #FEDF89; animation: rise .55s var(--ease) .1s both; }
.action-ico { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; display: grid; place-items: center; background: #FEF0C7; color: var(--warning); }
.action-needed > div { flex: 1 1 auto; min-width: 0; }
.action-needed strong { color: #7A2E0E; font-size: 15px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; }
.chips li { padding: 4px 10px; border-radius: 999px; background: #fff; color: #93370D; font-size: 12.5px; font-weight: 600; box-shadow: inset 0 0 0 1px #FEDF89; }

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { margin-top: 40px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { font-size: 21px; font-weight: 700; }
.section-head p { margin-top: 3px; font-size: 14px; color: var(--muted); }
.empty { display: flex; align-items: center; gap: 14px; padding: 22px; border-radius: var(--r); border: 1.5px dashed var(--line-2); color: var(--muted); font-size: 14px; background: rgba(255,255,255,.5); }
.empty .pi { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--sky); color: var(--accent); }

/* Démarches */
.processes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 16px; align-items: start; }
.process { padding: 20px 20px 8px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); }
.process.is-closed { box-shadow: var(--sh-sm); }
.process.is-closed .bar span { background: var(--success); }
.process-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.process-title h3 { font-size: 17px; font-weight: 700; }
.process-title p { margin-top: 3px; font-size: 13px; color: var(--muted); }
.process-progress { display: flex; align-items: center; gap: 12px; margin: 16px 0 14px; }
.process-progress .bar { flex: 1 1 auto; }
.process-count { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.process-now { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 12px; background: var(--accent-soft); }
.now-label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.process-now strong { display: block; color: var(--ink); font-size: 14.5px; line-height: 1.35; margin-top: 2px; }
.now-due { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: #175C8C; }
.now-due .pi { width: 15px; height: 15px; }
.pulse { position: relative; flex: 0 0 12px; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: var(--accent); }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.4); opacity: 0; } }
.process-done { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 12px; background: var(--success-soft); color: #067647; font-size: 14px; font-weight: 600; }
.process-missing { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--warning-soft); color: #93370D; font-size: 13.5px; }
.process-missing .pi { width: 17px; height: 17px; margin-top: 1px; }
.timeline-wrap { margin-top: 10px; border-top: 1px solid var(--line); }
.timeline-wrap summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 2px; cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.timeline-wrap summary::-webkit-details-marker { display: none; }
.timeline-wrap summary:hover { color: var(--accent); }
.timeline-wrap .chev { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.timeline-wrap[open] .chev { transform: rotate(180deg); }
.timeline { list-style: none; margin: 0; padding: 2px 0 14px; }
.timeline li { position: relative; display: flex; gap: 12px; padding-bottom: 14px; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.timeline li.t-done:not(:last-child)::before { background: linear-gradient(var(--success), #A6F4C5); }
.t-dot { position: relative; z-index: 1; flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--faint); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.t-dot .pi { width: 15px; height: 15px; stroke-width: 2.5; }
.t-done .t-dot { background: var(--success); color: #fff; box-shadow: none; }
.t-current .t-dot { background: var(--accent); color: #fff; box-shadow: 0 0 0 5px rgba(30,127,194,.15); }
.t-blocked .t-dot { background: var(--warning); color: #fff; box-shadow: 0 0 0 5px rgba(220,104,3,.14); }
.t-skipped .t-dot { color: var(--faint); background: #F2F5F8; box-shadow: none; }
.t-body { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-top: 4px; min-width: 0; }
.t-label { font-size: 14px; color: var(--text); }
.t-todo .t-label { color: var(--muted); }
.t-skipped .t-label { color: var(--faint); text-decoration: line-through; }
.t-current .t-label { font-weight: 600; color: var(--ink); }
.t-tag { padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.t-tag.t-wait { background: var(--warning-soft); color: var(--warning); }
.t-tag.t-skip { background: #F2F5F8; color: var(--faint); }
.t-date { font-size: 12px; color: var(--faint); }

/* Documents */
.filters { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.filter { border: 0; background: none; padding: 7px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.filter:hover { color: var(--ink); }
.filter.is-on { background: var(--navy); color: #fff; }
.doc-group + .doc-group { margin-top: 22px; }
.group-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.group-title span { padding: 1px 8px; border-radius: 999px; background: #E9EFF5; color: var(--muted); font-size: 11.5px; letter-spacing: 0; }
/* Titre de groupe placé sous un bloc : la CSP du portail bloque les `style=` en ligne. */
.group-title.spaced { margin-top: 22px; }
.docs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.docs.one-col { grid-template-columns: 1fr; }
.doc { display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-sm);
  transition: border-color .15s, box-shadow .2s, transform .2s var(--ease); }
.doc:hover { border-color: #C3DBEE; box-shadow: 0 12px 24px -16px rgba(15,34,51,.3); transform: translateY(-1px); }
.doc-ext { flex: 0 0 42px; height: 48px; border-radius: 9px; display: grid; place-items: end center; padding-bottom: 7px; font-size: 10px; font-weight: 800; letter-spacing: .04em; position: relative;
  background: #EEF2F6; color: var(--muted); clip-path: polygon(0 0, 70% 0, 100% 24%, 100% 100%, 0 100%); }
.doc-ext::before { content: ""; position: absolute; top: 0; right: 0; width: 30%; height: 24%; background: rgba(0,0,0,.08); }
.doc-ext.ext-pdf { background: #FEE4E2; color: #B42318; }
.doc-ext.ext-jpg, .doc-ext.ext-jpeg, .doc-ext.ext-png, .doc-ext.ext-webp { background: var(--teal-soft); color: var(--teal); }
.doc-body { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.doc-name { color: var(--ink); font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-name:hover { color: var(--accent); text-decoration: none; }
.doc-meta { font-size: 12.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-actions { display: flex; gap: 2px; }
.doc-actions .icon-btn { width: 34px; height: 34px; }
.doc-actions .pi { width: 18px; height: 18px; }

/* Immigration */
.immig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; align-items: start; }
.immig-cards { display: grid; gap: 16px; }
.eid { position: relative; overflow: hidden; aspect-ratio: 1.586; max-height: 270px; display: flex; flex-direction: column; padding: 22px 24px; border-radius: 18px; color: #0B3B3A; box-shadow: var(--sh-lg);
  background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.7), transparent 50%), linear-gradient(135deg, #CFF0EA, #9ED9E8 55%, #8EC3EE); }
.eid::after { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 85% 120%, rgba(11,59,92,.06) 0 2px, transparent 2px 12px); pointer-events: none; }
.eid > * { position: relative; z-index: 1; }
.eid-top { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(11,59,92,.65); }
.eid-chip { width: 40px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, #F7D774, #D4A72C); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.eid-kicker { margin-top: auto; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.eid-no { font-size: clamp(18px, 2.2vw, 23px); font-weight: 700; letter-spacing: .06em; color: var(--deep); font-variant-numeric: tabular-nums; margin: 4px 0 14px; }
.eid-row { display: flex; gap: 28px; }
.eid-row span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(11,59,92,.6); }
.eid-row strong { font-size: 14px; color: var(--deep); }
.facts { margin: 0; padding: 6px 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); }
.facts > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; }
.facts > div + div { border-top: 1px solid var(--line); }
.facts dt { font-size: 13.5px; color: var(--muted); }
.facts dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); text-align: right; }
.facts small { display: block; font-weight: 500; font-size: 12px; }
.immig-docs .group-title + .docs + .group-title, .immig-docs .empty + .group-title { margin-top: 20px; }

/* Échéances */
.deadlines { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); }
.deadline { display: flex; align-items: center; gap: 16px; padding: 10px 12px; border-radius: 12px; }
.deadline:hover { background: var(--sky); }
.dl-date { flex: 0 0 58px; height: 58px; border-radius: 14px; display: grid; place-content: center; text-align: center; background: var(--sky); box-shadow: inset 0 0 0 1px var(--line); }
.dl-date strong { font-size: 20px; line-height: 1; color: var(--ink); }
.dl-date span { font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 3px; }
.tone-line-danger .dl-date { background: var(--danger-soft); box-shadow: inset 0 0 0 1px #FECDCA; }
.tone-line-warning .dl-date { background: var(--warning-soft); box-shadow: inset 0 0 0 1px #FEDF89; }
.dl-body { flex: 1 1 auto; min-width: 0; }
.dl-body strong { display: block; color: var(--ink); font-size: 14.5px; }
.dl-body span { font-size: 13px; color: var(--muted); }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }
.lang-top { display: none; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .immig { grid-template-columns: 1fr; }
  .eid { max-width: 440px; }
}
@media (max-width: 960px) {
  .side { transform: translateX(-100%); transition: transform .3s var(--ease); box-shadow: 30px 0 60px -30px rgba(0,0,0,.5); }
  .side.is-open { transform: none; }
  .side-close { display: inline-grid; }
  .scrim { position: fixed; inset: 0; z-index: 25; background: rgba(7,41,63,.45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
  .side.is-open + .scrim { display: block; }
  .main { margin-left: 0; }
  .topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(245,248,251,.85);
    -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
  .topbar strong { flex: 1 1 auto; min-width: 0; font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lang-top { display: inline-flex; }
  .lang-desk { display: none; }
  .content { padding: 22px 16px 32px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .licence { padding: 22px; }
  .licence-grid { grid-template-columns: 1fr 1fr; }
  .action-needed { flex-wrap: wrap; }
  .action-needed .btn { width: 100%; }
}
@media (max-width: 420px) {
  .stat strong { font-size: 24px; }
  .eid-row { gap: 18px; }
}

/* ── Parrainage ─────────────────────────────────────────────────────────── */
:root { --gold: #D4A72C; --gold-2: #F2C94C; --gold-soft: #FFF8E6; --gold-ink: #7A4E00; }
.btn-gold { background: linear-gradient(180deg, #E2B640, var(--gold)); color: #fff; box-shadow: 0 10px 22px -10px var(--gold), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-gold:hover { box-shadow: 0 14px 26px -10px var(--gold), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-gold .pi { transition: transform .2s var(--ease); }
.btn-gold:hover .pi { transform: translateX(3px); }
.side-nav .count.gold { min-width: 0; padding: 0 8px; background: rgba(242,201,76,.16); color: var(--gold-2); font-size: 11px; white-space: nowrap; }
.side-nav a.nav-referral .pi { color: var(--gold-2); }
.side-nav a.nav-referral.is-on .pi { color: var(--gold-2); }
.promo { position: relative; overflow: hidden; display: grid; gap: 6px; margin-top: auto; padding: 16px; border-radius: var(--r); color: #fff; text-decoration: none !important;
  background: radial-gradient(120% 120% at 100% 0%, rgba(242,201,76,.35), transparent 55%), linear-gradient(150deg, rgba(212,167,44,.22), rgba(255,255,255,.04));
  box-shadow: inset 0 0 0 1px rgba(242,201,76,.28); transition: transform .2s var(--ease); }
.promo:hover { transform: translateY(-2px); }
.promo-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--gold); color: #fff; box-shadow: 0 8px 18px -8px var(--gold); }
.promo strong { font-size: 15.5px; line-height: 1.3; }
.promo > span:not(.promo-ico):not(.promo-cta) { font-size: 12.5px; color: rgba(255,255,255,.7); }
.promo-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--gold-2); }
.promo-cta .pi { width: 16px; height: 16px; }
.manager.no-auto { margin-top: 0; }

.refer-banner { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 18px 20px; border-radius: var(--r); text-decoration: none !important; color: var(--text);
  background: linear-gradient(100deg, #FFF8E6, #FFFDF6 60%, #fff); border: 1px solid #F5DFA0; box-shadow: var(--sh-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.refer-banner:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -18px rgba(122,78,0,.35); }
.refer-banner-ico { flex: 0 0 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--gold); color: #fff; box-shadow: 0 10px 20px -10px var(--gold); }
.refer-banner > div { flex: 1 1 auto; min-width: 0; }
.refer-banner strong { display: block; color: var(--ink); font-size: 15.5px; }
.refer-banner span { font-size: 14px; color: var(--gold-ink); }
.refer-banner .btn { flex: 0 0 auto; }

.flash { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; font-size: 14.5px; animation: rise .4s var(--ease) both; }
.flash .pi { margin-top: 1px; }
.flash.ok { background: var(--success-soft); color: #05603A; box-shadow: inset 0 0 0 1px #ABEFC6; }
.flash.info { background: var(--accent-soft); color: #175C8C; box-shadow: inset 0 0 0 1px #B9DAF2; }
.eyebrow.gold { color: var(--gold); }

.ref-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 32px; border-radius: var(--r-lg); color: #fff; box-shadow: var(--sh-lg);
  background: radial-gradient(90% 120% at 100% 0%, rgba(242,201,76,.38), transparent 55%), radial-gradient(70% 80% at 0% 100%, rgba(30,127,194,.4), transparent 60%), linear-gradient(140deg, #0E4870, var(--deep));
  animation: rise .5s var(--ease) both; }
.ref-hero::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.03) 0 2px, transparent 2px 14px); pointer-events: none; }
.ref-hero > * { position: relative; z-index: 1; }
.ref-hero h1 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; font-weight: 800; }
.ref-hero h1 span { background: linear-gradient(90deg, #FFE08A, var(--gold-2), #E2B640); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ref-hero .lead { color: rgba(255,255,255,.75); margin-top: 12px; }
.ref-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ref-stat { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.ref-stat span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: rgba(255,255,255,.65); }
.ref-stat span .pi { width: 16px; height: 16px; color: var(--gold-2); }
.ref-stat strong { font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.ref-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
.ref-col { display: grid; gap: 20px; }
.card-p { padding: 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); }
.card-p h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.card-p h2 .pi { color: var(--accent); }
.ref-form h2 .pi { color: var(--gold); }
.card-p > p.muted { font-size: 14px; margin-bottom: 16px; }
.copy-row { display: flex; gap: 8px; }
.copy-input { flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--sky); font: inherit; font-size: 14px; color: var(--ink); }
.copy-row .btn { height: 46px; }
.share-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 11px; font-size: 14px; font-weight: 600; color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); text-decoration: none !important; }
.share-btn:hover { background: var(--sky); }
.share-btn.wa { color: #067647; box-shadow: inset 0 0 0 1px #ABEFC6; background: var(--success-soft); }
.share-btn .pi { width: 18px; height: 18px; }
.how { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.how li { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.how li > span { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; }
.how li:last-child > span { background: var(--gold-soft); color: var(--gold); }
.how strong { display: block; color: var(--ink); font-size: 14.5px; }

.pform { display: grid; gap: 14px; }
.pform label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.pform label > input:not([type=checkbox]), .pform label > select, .pform label > textarea { display: block; margin-top: 6px; }
.pform label b { color: var(--accent); }
.pform input:not([type=checkbox]):not([type=hidden]), .pform select, .pform textarea { width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line-2); background: #fff; font: inherit; font-size: 15px; font-weight: 400; color: var(--ink);
  box-shadow: var(--sh-sm); transition: border-color .15s, box-shadow .15s; }
.pform input:focus, .pform select:focus, .pform textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(30,127,194,.15); }
.pform textarea { resize: vertical; min-height: 84px; }
.pform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pform .hint { font-size: 12.5px; color: var(--faint); margin-top: -4px; }
.pform .check { display: flex; grid-template-columns: none; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; color: var(--muted); }
.pform .check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); }
.pform .btn { margin-top: 4px; height: 50px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.refs { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); }
.ref { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; }
.ref:hover { background: var(--sky); }
.avatar.soft-blue { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.ref-body { flex: 1 1 auto; min-width: 0; }
.ref-body strong { display: block; color: var(--ink); font-size: 14.5px; }
.ref-body span { font-size: 12.5px; color: var(--muted); }
.ref-amount { flex: 0 0 auto; min-width: 92px; text-align: right; font-weight: 700; font-size: 14px; color: var(--faint); font-variant-numeric: tabular-nums; }
.ref-amount.is-on { color: #067647; }
.terms { margin-top: 14px; font-size: 12.5px; line-height: 1.6; color: var(--faint); }

.ref-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(242,201,76,.16); color: var(--gold-2); font-size: 13px; font-weight: 700; margin-bottom: 18px; box-shadow: inset 0 0 0 1px rgba(242,201,76,.3); }
.ref-tag .pi { width: 16px; height: 16px; }
.ref-tag.dark { background: var(--gold-soft); color: var(--gold-ink); box-shadow: inset 0 0 0 1px #F5DFA0; margin: 16px 0 0; }
.auth-brand.gold-brand { background: radial-gradient(90% 60% at 100% 0%, rgba(242,201,76,.32), transparent 60%), radial-gradient(70% 50% at 0% 100%, rgba(30,127,194,.35), transparent 60%), linear-gradient(160deg, var(--navy), var(--deep)); }
.auth-foot a { color: #8FC1E4; }

@media (max-width: 1180px) { .ref-hero { grid-template-columns: 1fr; } }
@media (max-width: 960px) {
  .ref-grid { grid-template-columns: 1fr; }
  .ref-hero { padding: 24px 20px; }
  .refer-banner { flex-wrap: wrap; }
  .refer-banner .btn { width: 100%; }
  .pform-row { grid-template-columns: 1fr; }
  .ref { flex-wrap: wrap; }
  .ref .badge { order: 3; }
}

/* ── Ma famille ─────────────────────────────────────────────────────────── */
.family { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px; align-items: start; }
.member { padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); }
.member-head { display: flex; align-items: center; gap: 12px; }
.member-id { flex: 1 1 auto; min-width: 0; }
.member-id strong { display: block; color: var(--ink); font-size: 16px; }
.member-id span { font-size: 12.5px; color: var(--muted); }
.member-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; padding: 12px; border-radius: 12px; background: var(--sky); }
.member-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); margin-bottom: 3px; }
.member-facts dd { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.member-facts small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.member-docs-head { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.member-count { font-variant-numeric: tabular-nums; }
.bar.small { height: 6px; margin-bottom: 8px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 6px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.checklist li:last-child { border-bottom: 0; }
.check-dot { flex: 0 0 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.check-dot .pi { width: 13px; height: 13px; stroke-width: 2.5; }
.checklist .is-ok .check-dot { background: var(--success); color: #fff; box-shadow: none; }
.check-label { flex: 1 1 auto; min-width: 0; color: var(--ink); }
.checklist .is-wait .check-label { color: var(--muted); }
.check-wait { font-size: 12px; color: var(--faint); }
.checklist .icon-btn { width: 30px; height: 30px; }
.checklist .icon-btn .pi { width: 17px; height: 17px; }
@media (max-width: 420px) { .member-facts { grid-template-columns: 1fr 1fr; } }

/* ── Gérer ma société, comptabilité, NOC ────────────────────────────────── */
.manage { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.manage > span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); margin-right: auto; }
.manage a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.manage a .pi { width: 16px; height: 16px; }
.manage a.muted-link { color: var(--muted); font-weight: 500; }
.acct-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.acct-side { display: grid; gap: 20px; }
.flip-v svg, .pi.flip-v { transform: scaleY(-1); }
.dropzone { position: relative; display: grid !important; justify-items: center; gap: 6px; padding: 28px 16px; text-align: center; border-radius: 14px; border: 1.5px dashed var(--line-2); background: var(--sky); cursor: pointer; font-weight: 400 !important; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0 !important; }
.dropzone strong { color: var(--ink); font-size: 15px; }
.dropzone > span:last-child { font-size: 12.5px; color: var(--faint); }
.dz-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--accent); box-shadow: var(--sh-sm); }
.facts.plain { padding: 0; border: 0; box-shadow: none; margin-top: 12px; }
.mini-list { list-style: none; margin: 8px 0 0; padding: 0; }
.mini-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list li > span:first-child { min-width: 0; }
.mini-list strong { display: block; color: var(--ink); font-size: 14px; }
.mini-list small { font-size: 12.5px; color: var(--muted); }
.mini-list.plain li { display: list-item; list-style: disc inside; color: var(--muted); }
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.month { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.month-name { font-weight: 700; color: var(--ink); text-transform: capitalize; }
.month-steps { display: flex; gap: 4px; }
.month-steps span { flex: 1; height: 6px; border-radius: 3px; background: #E9EFF5; }
.month-steps span.on { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.month .badge { justify-self: start; }
.acct-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.acct-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.acct-perks li { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); font-size: 13.5px; color: rgba(255,255,255,.7); }
.acct-perks li .pi { flex: 0 0 22px; color: var(--gold-2); }
.acct-perks strong { display: block; color: #fff; font-size: 14.5px; }
.calendly { height: 680px; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); }
.calendly iframe { width: 100%; height: 100%; border: 0; }
.callback { margin-top: 16px; }
.noc-status h2 { font-size: 18px; margin-top: 12px; }
@media (max-width: 960px) { .acct-top { grid-template-columns: 1fr; } }
.card-p h2.spaced { margin-top: 26px; }

/* ── Re-entry permit, guide ─────────────────────────────────────────────── */
.reentry-card { margin-bottom: 16px; }
.reentry-card .btn { margin-top: 12px; }
.reentry-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.reentry-row strong { display: block; color: var(--ink); }
.reentry-row small { font-size: 12.5px; color: var(--muted); }
.guide-hero { grid-template-columns: 1fr; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.guide-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-sm);
  color: var(--muted); font-size: 14px; text-decoration: none !important; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.guide-card:hover { transform: translateY(-2px); border-color: #C3DBEE; box-shadow: 0 16px 32px -18px rgba(15,34,51,.3); }
.guide-card strong { color: var(--ink); font-size: 16px; line-height: 1.3; }
.guide-card-top { display: flex; gap: 6px; flex-wrap: wrap; min-height: 0; }
.guide-card-top:empty { display: none; }
.guide-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.guide-tag .pi { width: 13px; height: 13px; }
.guide-tag.video { background: var(--gold-soft); color: var(--gold-ink); }
.guide-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--accent); }
.guide-more .pi { width: 16px; height: 16px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.back-link .pi { width: 16px; height: 16px; }
.flip svg, .pi.flip { transform: scaleX(-1); }
.guide-article { max-width: 760px; padding: 32px 36px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); }
.guide-article h1 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; font-weight: 700; }
.guide-article .lead { margin: 10px 0 20px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; margin-bottom: 22px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose { font-size: 15.5px; line-height: 1.7; color: var(--text); }
.prose h3 { font-size: 18px; margin: 22px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { margin: 4px 0; }
.prose strong { color: var(--ink); }
@media (max-width: 960px) { .guide-article { padding: 22px 18px; } }

/* ── Second facteur (PORTAL_2FA=totp) ── */
.tf-steps { margin: 0 0 22px; padding-left: 20px; display: grid; gap: 12px; font-size: 14.5px; color: var(--ink); }
.tf-qr { display: block; margin: 12px 0 8px; width: 200px; height: 200px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; }
.tf-secret { display: block; font-size: 13px; color: var(--muted); }
.tf-secret code, .tf-codes code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; color: var(--ink); word-break: break-all; }
.tf-codes { list-style: none; margin: 0 0 24px; padding: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border-radius: 12px; background: var(--accent-soft); }
.tf-codes code { font-size: 15px; }

.acct-deliverables { margin-top: 12px; }
.calendly-fallback { margin-top: 8px; font-size: 13px; }
.flash.flush { margin: 0; }
.flash.reentry-sent { margin: 8px 0 12px; }

/* ── Factures et devis ── */
.bill-stats { margin-bottom: 16px; }
.bill-stats .stat small { font-size: 12.5px; }
.ref-amount { flex: 0 0 auto; font-weight: 700; color: var(--ink); font-size: 14.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 960px) { .ref .ref-amount { order: 2; } }
@media (max-width: 420px) { .bill-stats { grid-template-columns: 1fr; } }
.note.info { background: var(--accent-soft); color: #175C8C; }
