/* Espace Atlas — le style « verre » (OG Bank, OG Business) aux couleurs Studio Atlas : obsidian, off-white, aluminium, Atlas Blue.
   Chaque client colore son espace avec sa couleur (--c), posée par l'app sur <html>. */
@font-face { font-family: 'PJS'; src: url('../fonts/PlusJakartaSans.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
:root {
  --font: 'PJS', -apple-system, system-ui, sans-serif;
  --obsidian: #070A0F; --space: #0B1320; --off: #F5F5F7; --alu: #A7ACB4; --atlas: #2563EB;
  --c: #2563EB;                                   /* la couleur du client ou de l'agence */
  --c-soft: color-mix(in srgb, var(--c) 14%, white);
  --c-ink: color-mix(in srgb, var(--c) 70%, black);
  --bg: #EDEFF3; --text: #0B0D12; --text-2: #3B3F48; --muted: #6B7280; --line: rgba(7,10,15,.08);
  --glass: rgba(255,255,255,.42); --glass-line: rgba(255,255,255,.85); --glass-top: rgba(255,255,255,.95);
  --glass-sheen: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.12) 60%, rgba(255,255,255,0) 100%); --glass-shade: 0 1px 2px rgba(7,10,15,.04), 0 24px 60px -28px rgba(7,10,15,.35);
  --veil: rgba(7,10,15,.05); --veil-2: rgba(7,10,15,.09);
  --ok: #1F9D55; --ok-soft: #E8F7EE; --warn: #B26A00; --warn-soft: #FFF3E0; --bad: #C0392B; --bad-soft: #FDECEC; --info-soft: #EEF3FF;
  --r: 20px; --r-s: 14px; --r-btn: 14px; --dur: .18s; --ease: cubic-bezier(.2,.8,.2,1); --tab-h: 74px; --side-w: 256px;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
/* l'ambiance : un halo de la couleur du client, en haut, qui respire derrière le verre */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(900px 620px at 12% -8%, color-mix(in srgb, var(--c) 34%, transparent), transparent 62%),
              radial-gradient(760px 560px at 102% 18%, color-mix(in srgb, var(--c) 18%, transparent), transparent 62%),
              radial-gradient(700px 500px at 60% 110%, color-mix(in srgb, var(--atlas) 14%, transparent), transparent 60%),
              linear-gradient(180deg, #F1F3F8 0%, #E3E7EE 100%); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: color-mix(in srgb, var(--c) 30%, white); }
:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; left: -9999px; }

/* ───── Le verre ───── */
.glass { position: relative; overflow: hidden; border-radius: var(--r); background: var(--glass);
  backdrop-filter: blur(34px) saturate(190%); -webkit-backdrop-filter: blur(34px) saturate(190%);
  border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-top), inset 0 0 0 1px rgba(255,255,255,.25), var(--glass-shade); }
.glass::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 52%; background: var(--glass-sheen); pointer-events: none; }
.glass::after { content: ""; position: absolute; left: 8%; right: 8%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent); pointer-events: none; }
.glass > * { position: relative; }
.card { padding: 20px 22px; }
.card--tight { padding: 14px 16px; }
.card h3, .eb { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.hero { background: linear-gradient(125deg, var(--space) 0%, color-mix(in srgb, var(--c) 55%, var(--space)) 60%, var(--c) 130%); color: #fff; border-color: rgba(255,255,255,.18); }
.hero::before { background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0)); }
.hero h3 { color: rgba(255,255,255,.7); }
.hero .t { font-size: 24px; font-weight: 800; letter-spacing: -.025em; line-height: 1.12; margin: 0; }
.hero p { color: rgba(255,255,255,.82); margin: 10px 0 16px; max-width: 56ch; }
.hero .btn { background: #fff; color: var(--space); }

/* ───── Mise en page ───── */
#app { position: relative; z-index: 1; min-height: 100dvh; display: flex; }
.side { display: none; }
.main { flex: 1; min-width: 0; padding: 18px 18px calc(var(--tab-h) + 24px); max-width: 1180px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 16px; }
.top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin: 0; }
.sub { color: var(--muted); margin-top: 4px; font-weight: 500; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr; } .g3 { grid-template-columns: 1fr; } .g4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .g2 { grid-template-columns: 1.3fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } .main { padding: 28px 30px 60px; } h1 { font-size: 30px; } }
@media (min-width: 980px) {
  .side { display: flex; flex-direction: column; gap: 4px; width: var(--side-w); flex: none; position: sticky; top: 0; height: 100dvh; padding: 24px 16px;
    background: linear-gradient(180deg, #0B0E14 0%, var(--obsidian) 100%); color: #fff; border-right: 1px solid rgba(255,255,255,.06); }
  .main { padding: 34px 40px 60px; }
}
.logo { display: flex; align-items: center; gap: 12px; padding: 4px 8px 26px; }
.logo img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.logo b { display: block; font-size: 16px; letter-spacing: -.01em; }
.logo small { display: block; font-size: 10.5px; color: var(--alu); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.nav { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: #c6c9d1; transition: background var(--dur), color var(--dur); position: relative; }
.nav:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav.on { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 30%, transparent), color-mix(in srgb, var(--c) 16%, transparent)); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.06); }
.nav.on::before { content: ""; position: absolute; left: 4px; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--c); }
.nav .badge { margin-left: auto; }
.nav--sep { height: 1px; background: rgba(255,255,255,.08); margin: 10px 8px; }
.side .bot { margin-top: auto; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); font-size: 13px; color: #c6c9d1; }
.side .bot b { display: block; color: #fff; }
.side .bot .lk { display: inline-block; margin-top: 6px; color: var(--alu); font-weight: 600; cursor: pointer; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--c); color: #fff; font-size: 11.5px; font-weight: 800; }
.badge--warn { background: #F59E0B; color: #1a1300; }
/* les onglets du téléphone */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around; padding: 8px 6px calc(env(safe-area-inset-bottom) + 8px);
  background: rgba(255,255,255,.72); backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%); border-top: 1px solid rgba(255,255,255,.8); }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; color: var(--muted); min-width: 58px; position: relative; }
.tabs a i { width: 26px; height: 26px; border-radius: 8px; background: var(--veil-2); display: block; }
.tabs a.on { color: var(--c); } .tabs a.on i { background: var(--c); }
.tabs .badge { position: absolute; top: -4px; right: 6px; }
@media (min-width: 980px) { .tabs { display: none; } }
.mob-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.mob-head .logo { padding: 0; } .mob-head .logo b, .mob-head .logo small { color: var(--text); } .mob-head .logo small { color: var(--muted); }
@media (min-width: 980px) { .mob-head { display: none; } }

/* ───── Composants ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: var(--r-btn); font-weight: 700; font-size: 14.5px; letter-spacing: -.01em; white-space: nowrap; position: relative; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, white) 0%, color-mix(in srgb, var(--c) 92%, transparent) 50%, color-mix(in srgb, var(--c) 86%, black) 100%); color: #fff; border: 1px solid rgba(255,255,255,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -2px 0 rgba(0,0,0,.08), 0 14px 30px -14px color-mix(in srgb, var(--c) 80%, transparent); text-shadow: 0 1px 1px rgba(0,0,0,.14);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); transition: transform var(--dur) var(--ease), opacity var(--dur), box-shadow var(--dur); }
.btn::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 50%; background: linear-gradient(180deg, rgba(255,255,255,.38), rgba(255,255,255,0)); pointer-events: none; }
.btn:hover { transform: translateY(-1px); } .btn:active { transform: scale(.985); } .btn[disabled] { opacity: .5; pointer-events: none; }
.btn--sec { background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.4)); color: var(--text); border: 1px solid rgba(255,255,255,.95); box-shadow: inset 0 1px 0 #fff, 0 10px 24px -14px rgba(7,10,15,.35); text-shadow: none; }
.btn--sec::before { background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0)); }
.btn--ghost { background: transparent; color: var(--c); box-shadow: none; border-color: transparent; text-shadow: none; backdrop-filter: none; }
.btn--danger { background: var(--bad-soft); color: var(--bad); box-shadow: none; border-color: transparent; text-shadow: none; }
.btn--s { height: 36px; padding: 0 13px; font-size: 13px; border-radius: 11px; }
.btn--full { width: 100%; height: 52px; font-size: 16px; }
.lk { color: var(--c); font-weight: 700; cursor: pointer; }
.st { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st--ok { background: var(--ok-soft); color: var(--ok); } .st--warn { background: var(--warn-soft); color: var(--warn); }
.st--info { background: var(--info-soft); color: var(--atlas); } .st--bad { background: var(--bad-soft); color: var(--bad); } .st--grey { background: var(--veil); color: var(--text-2); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; vertical-align: 2px; white-space: nowrap; }
.tag--contenu { background: var(--ok-soft); color: var(--ok); } .tag--visibilite { background: var(--info-soft); color: var(--atlas); }
.tag--securite { background: var(--warn-soft); color: var(--warn); } .tag--design { background: #F3EEFF; color: #6D3FD8; } .tag--page { background: var(--bad-soft); color: var(--bad); }
.chip { display: inline-block; font-size: 10.5px; font-weight: 800; padding: 3px 7px; border-radius: 6px; margin-right: 4px; letter-spacing: .03em; }
.chip--site { background: var(--info-soft); color: var(--atlas); } .chip--ads { background: var(--warn-soft); color: var(--warn); } .chip--cm { background: #F3EEFF; color: #6D3FD8; }
.row { display: flex; align-items: center; gap: 12px; } .row--between { justify-content: space-between; } .row--wrap { flex-wrap: wrap; } .row--top { align-items: flex-start; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.sep { height: 1px; background: var(--line); margin: 6px 0; }
.mu { color: var(--muted); } .sm { font-size: 13px; } .xs { font-size: 12px; } .b { font-weight: 700; } .xb { font-weight: 800; letter-spacing: -.02em; }
.big { font-size: 24px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.right { text-align: right; } .center { text-align: center; }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
/* une ligne de liste (modification, facture, demande…) */
.item { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.item:first-child { border-top: 0; padding-top: 0; } .item:last-child { padding-bottom: 0; }
.item .ic { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 17px; font-weight: 800; }
.item b.t { display: block; font-size: 15px; letter-spacing: -.01em; line-height: 1.25; } .item .d { font-size: 13px; color: var(--muted); margin-top: 3px; }
.item--link { cursor: pointer; } .item--link:hover b.t { color: var(--c-ink); }
.ic--contenu { background: var(--ok-soft); color: var(--ok); } .ic--visibilite { background: var(--info-soft); color: var(--atlas); } .ic--securite { background: var(--warn-soft); color: var(--warn); }
.ic--design { background: #F3EEFF; color: #6D3FD8; } .ic--page { background: var(--bad-soft); color: var(--bad); }
.date-box { width: 60px; height: 60px; border-radius: 16px; background: var(--c-soft); color: var(--c-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; line-height: 1; flex: none; }
.date-box small { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.bar { height: 6px; border-radius: 3px; background: var(--veil); margin-top: 14px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--c); border-radius: 3px; transition: width .6s var(--ease); }
/* formulaires */
.field { display: flex; flex-direction: column; gap: 6px; } .field label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.inp, textarea.inp { width: 100%; height: 48px; padding: 0 16px; border-radius: 13px; border: 1px solid rgba(7,10,15,.1); background: rgba(255,255,255,.8); font-weight: 500; font-size: 15px; transition: border var(--dur), box-shadow var(--dur); }
textarea.inp { height: auto; min-height: 110px; padding: 13px 16px; resize: vertical; line-height: 1.45; }
.inp:focus { outline: 0; border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
select.inp { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B7280' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form .cols { display: grid; gap: 12px; grid-template-columns: 1fr; } @media (min-width: 640px) { .form .cols { grid-template-columns: 1fr 1fr; } }
.err { color: var(--bad); font-weight: 600; font-size: 13.5px; } .okm { color: var(--ok); font-weight: 600; font-size: 13.5px; }
.drop { border: 1.5px dashed rgba(7,10,15,.18); border-radius: 14px; padding: 16px; text-align: center; color: var(--muted); font-size: 13.5px; cursor: pointer; background: rgba(255,255,255,.4); }
.drop.on { border-color: var(--c); background: var(--c-soft); color: var(--c-ink); }
.att { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--veil); font-size: 12.5px; font-weight: 600; max-width: 100%; }
.att img { width: 54px; height: 40px; object-fit: cover; border-radius: 6px; }
/* tableau */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 0 12px 10px; white-space: nowrap; }
.table td { padding: 13px 12px; border-top: 1px solid var(--line); font-weight: 600; vertical-align: middle; }
.table tr.lnk { cursor: pointer; } .table tr.lnk:hover td { background: rgba(255,255,255,.4); }
.table .dim td { opacity: .5; }
.scroll { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
/* messages */
.msgs { display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 12px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; max-width: 86%; white-space: pre-wrap; word-break: break-word; }
.msg--me { background: var(--c); color: #fff; margin-left: auto; border-bottom-right-radius: 5px; } .msg--them { background: rgba(255,255,255,.85); border-bottom-left-radius: 5px; border: 1px solid rgba(255,255,255,.9); }
.msg .who { display: block; font-size: 11.5px; font-weight: 700; opacity: .7; margin-bottom: 3px; } .msg .when { display: block; font-size: 11px; opacity: .6; margin-top: 5px; }
.msg .atts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; } .msg--me .att { background: rgba(255,255,255,.2); color: #fff; }
/* publications & aperçu Instagram */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; } @media (min-width: 760px) { .posts { grid-template-columns: repeat(3, 1fr); } } @media (min-width: 1100px) { .posts { grid-template-columns: repeat(4, 1fr); } }
.post { overflow: hidden; cursor: pointer; }
.post .v { aspect-ratio: 4/5; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 60%, #222), var(--obsidian)); display: flex; align-items: flex-end; padding: 12px; color: #fff; font-weight: 800; font-size: 14px; position: relative; }
.post .v img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .post .v span { position: relative; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.post .v .typ { position: absolute; top: 10px; right: 10px; font-size: 10.5px; font-weight: 800; background: rgba(0,0,0,.55); padding: 3px 8px; border-radius: 99px; }
.post .i { padding: 11px 13px; font-size: 13px; } .post .i b { display: block; font-size: 13.5px; margin-bottom: 5px; }
.ig { max-width: 430px; margin: 0 auto; width: 100%; }
.ig-head { display: flex; align-items: center; gap: 16px; padding: 10px 6px 16px; }
.ig-head .av { width: 76px; height: 76px; border-radius: 50%; background: conic-gradient(from 200deg, #f9ce34, #ee2a7b, #6228d7, #f9ce34); padding: 3px; flex: none; }
.ig-head .av i { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--obsidian); border: 3px solid var(--bg); display: grid; place-items: center; font-size: 26px; }
.ig-head b { font-size: 15px; } .ig-head .n { display: flex; gap: 18px; font-size: 13px; margin-top: 6px; } .ig-head .n span b { display: block; font-size: 15px; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.ig-cell { aspect-ratio: 4/5; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 55%, #222), var(--obsidian)); position: relative; overflow: hidden; cursor: pointer; }
.ig-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-cell .s { position: absolute; left: 6px; bottom: 6px; font-size: 10px; font-weight: 800; color: #fff; background: rgba(0,0,0,.55); padding: 2px 7px; border-radius: 99px; }
.ig-cell .r { position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.ig-cell.dim::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 6px, transparent 6px 14px); }
/* modale */
.modal-bg { position: fixed; inset: 0; z-index: 40; background: rgba(7,10,15,.45); backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; padding: 0; }
@media (min-width: 640px) { .modal-bg { align-items: center; padding: 24px; } }
.modal { width: 100%; max-width: 620px; max-height: 92dvh; overflow: auto; background: #fff; border-radius: 24px 24px 0 0; padding: 22px 22px calc(env(safe-area-inset-bottom) + 22px); box-shadow: 0 40px 100px -30px rgba(7,10,15,.6); }
@media (min-width: 640px) { .modal { border-radius: 24px; padding: 26px; } }
.modal--wide { max-width: 860px; }
.modal h2 { margin: 0 0 14px; font-size: 20px; letter-spacing: -.02em; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 16px); transform: translateX(-50%); z-index: 50; background: var(--obsidian); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: 0 20px 40px -16px rgba(0,0,0,.6); max-width: 92vw; }
@media (min-width: 980px) { .toast { bottom: 24px; } }
.toast--bad { background: var(--bad); }
/* connexion */
.login { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(800px 500px at 20% 0%, color-mix(in srgb, var(--c) 35%, transparent), transparent 60%), var(--obsidian); color: #fff; width: 100%; }
.login .box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.login .logo { padding: 0 0 18px; } .login h1 { font-size: 32px; } .login .mu { color: var(--alu); }
.login .inp { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: #fff; } .login .inp::placeholder { color: rgba(255,255,255,.4); }
.login .inp:focus { background: rgba(255,255,255,.1); }
/* la fiche client côté agence : onglets */
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; } .subtabs a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 99px; font-size: 13.5px; font-weight: 700; background: var(--veil); color: var(--text-2); }
.subtabs a.on { background: var(--c); color: #fff; }
.tech { font: 600 12.5px ui-monospace, Menlo, monospace; color: var(--text-2); background: rgba(7,10,15,.05); border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; word-break: break-word; }
.notif { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: flex-start; } .notif:first-child { border-top: 0; }
.notif .dot { margin-top: 7px; background: var(--c); } .notif.lu .dot { background: var(--veil-2); }
.kpi { display: flex; flex-direction: column; gap: 4px; } .kpi .v { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.swatch { width: 28px; height: 28px; border-radius: 8px; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.fade { animation: fade .25s var(--ease); } @keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* les cartes clients côté agence : une carte de verre par client, teintée de sa couleur */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; } @media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } } @media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.ccard { padding: 18px 20px 16px; cursor: pointer; transition: transform var(--dur) var(--ease), box-shadow var(--dur);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 16%, rgba(255,255,255,.5)) 0%, rgba(255,255,255,.42) 45%, rgba(255,255,255,.38) 100%); }
.ccard:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 var(--glass-top), 0 30px 60px -24px color-mix(in srgb, var(--c) 60%, transparent); }
.ccard .em { box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 6px 14px -8px color-mix(in srgb, var(--c) 60%, transparent); }
.ccard .hd { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ccard .em { width: 46px; height: 46px; border-radius: 14px; background: var(--c-soft); display: grid; place-items: center; font-size: 22px; flex: none; }
.ccard .hd b { display: block; font-size: 16.5px; letter-spacing: -.02em; line-height: 1.15; }
.ccard .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-bottom: 12px; }
.ccard .kv span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ccard .kv b { font-size: 15px; letter-spacing: -.01em; }
.ccard .cnt { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.ccard .cnt .st { height: 24px; font-size: 11.5px; }
.ccard .ft { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
/* la vue « comme le client » : une bannière, rien de modifiable */
.bandeau { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-radius: 14px; background: var(--obsidian); color: #fff; font-size: 13.5px; font-weight: 600; }
.bandeau a { color: #fff; text-decoration: underline; }
.apercu form, .apercu .dep, .apercu .post .btn, .apercu #nv, .apercu #nd { pointer-events: none; opacity: .55; }

/* la fiche client côté agence : les blocs d'un onglet s'espacent comme le reste */
#o { display: flex; flex-direction: column; gap: 16px; }
