/* Portail client Nova Stellaris (portail-client 01) : mise en page commune à toutes les agences. */
/* Le thème de l'agence (polices, --font, --brand, --brand-hover, --accent, --accent-soft, --head, --head-deep) vient de /clients/assets/theme.css. */
:root {
--bg: #eef2f6; --card: #fff; --line: #dde3ea; --text: #232634; --muted: #5b6478; --faint: #8b93a5;
  --ok: #0f8a5f; --ok-soft: #e4f5ee; --warn: #b8660b; --warn-soft: #fdf1e2; --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; margin: 0; }
body { font: 400 15px/1.55 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; } button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
.i { width: 15px; height: 15px; flex-shrink: 0; }

.top { position: sticky; top: 0; z-index: 10; background: linear-gradient(180deg, var(--head), var(--head-deep)); color: #fff; }
.top .in { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 24px; }
.back { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background .25s var(--ease); } .back:hover { background: rgba(255,255,255,.16); }
.logo img { height: 24px; display: block; } .sep { width: 1px; height: 24px; background: rgba(255,255,255,.18); }
.agency { font: 600 13px var(--font); color: rgba(255,255,255,.75); }
.who { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.75); }
.av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--font); background: var(--accent-soft); color: var(--head); flex-shrink: 0; }
.top .av { background: rgba(255,255,255,.12); color: #fff; }

main { max-width: 1080px; margin: 0 auto; padding: 28px 24px 48px; }
.ph { margin-bottom: 22px; } .ph .eb { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.ph h1 { font: 800 clamp(24px, 3.2vw, 32px)/1.2 var(--font); color: var(--head); margin-top: 4px; }
.ph p { color: var(--muted); margin-top: 6px; max-width: 64ch; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.pad { padding: 18px 20px; }
.h2 { font: 700 12px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 99px; font-weight: 700; font-size: 14px; transition: all .25s var(--ease); white-space: nowrap; }
.btn .i { width: 13px; height: 13px; }
.btn.main { background: var(--brand); color: #fff; } .btn.main:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(214,34,70,.28); }
.btn.main:disabled { opacity: .45; transform: none; box-shadow: none; cursor: not-allowed; }
.btn.ghost { border: 1px solid var(--line); background: var(--card); } .btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-todo { background: #fde7ec; color: var(--brand); } .s-ok { background: var(--ok-soft); color: var(--ok); } .s-wait { background: var(--bg); color: var(--muted); } .s-warn { background: var(--warn-soft); color: var(--warn); } .s-info { background: var(--accent-soft); color: var(--accent); }
.link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--accent); } .link:hover { color: var(--brand); } .link .i { width: 12px; height: 12px; }
.muted { color: var(--muted); } .faint { color: var(--faint); font-size: 12.5px; }
.list > * + * { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; }
.ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.grow { flex: 1; min-width: 0; } .grow strong { display: block; font-weight: 700; } .grow span { font-size: 13px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 10px); opacity: 0; background: var(--head); color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 13.5px; display: flex; gap: 8px; align-items: center; transition: all .35s var(--ease); z-index: 30; pointer-events: none; } .toast.on { opacity: 1; transform: translate(-50%, 0); }
footer.pw { display: flex; justify-content: center; padding: 0 24px 32px; }
.powered { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; font-size: 12px; color: var(--faint); transition: all .25s var(--ease); } .powered img { height: 16px; } .powered b { color: var(--muted); font-weight: 600; } .powered:hover { background: #e2e8ef; color: var(--muted); }

/* Accueil d'un espace (portail-client 03, maquette accueil/) */
.hello h1 { font: 800 clamp(26px, 3.4vw, 36px)/1.2 var(--font); color: var(--head); letter-spacing: -.01em; }
.hello p { color: var(--muted); margin-top: 6px; max-width: 60ch; }
.todo { margin-top: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 6px; }
.todo h2, .sec h2 { font: 700 12px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 14px 16px 8px; }
.task { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; transition: background .25s var(--ease); }
.task:hover { background: var(--bg); }
.task .ico { flex-shrink: 0; }
.task .t { flex: 1; min-width: 0; } .task .t strong { display: block; font-weight: 600; font-size: 15px; } .task .t span { font-size: 13px; color: var(--muted); }
.task .go { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 99px; background: var(--brand); color: #fff; font-weight: 700; font-size: 13.5px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); white-space: nowrap; }
.task .go:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0,0,0,.18); }
.task .go .i { width: 13px; height: 13px; }
.due { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--warn); }
.none { display: flex; align-items: center; gap: 10px; padding: 6px 16px 14px; color: var(--muted); font-size: 14px; } .none .i { color: var(--ok); width: 14px; height: 14px; }
.home .grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.colA, .colB { display: grid; gap: 20px; align-content: start; }
.sec { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 6px 6px 10px; }
.steps { list-style: none; padding: 6px 16px 8px; }
.steps li { position: relative; display: flex; gap: 14px; padding: 10px 0; }
.steps li::before { content: ""; position: absolute; left: 11px; top: 34px; bottom: -10px; width: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; border: 2px solid var(--line); background: var(--card); color: var(--faint); }
.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; } .done .dot .i { width: 11px; height: 11px; }
.now .dot { border-color: var(--accent); } .now .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.steps strong { display: block; font-weight: 600; font-size: 14.5px; } .steps li > span:last-child > span { font-size: 13px; color: var(--muted); }
.now strong { color: var(--head); }
.bar { margin: 4px 16px; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; } .bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.barl { display: flex; justify-content: space-between; gap: 12px; margin: 8px 16px 0; font-size: 12.5px; color: var(--muted); }
.more { display: inline-flex; align-items: center; gap: 6px; margin: 10px 16px 4px; font-size: 13.5px; font-weight: 700; color: var(--accent); } .more:hover { color: var(--brand); } .more .i { width: 12px; height: 12px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 10px 6px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); transition: border-color .25s var(--ease), transform .25s var(--ease); }
.tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.tile strong { font-weight: 600; font-size: 14px; } .tile > span:last-child { font-size: 12.5px; color: var(--muted); } .tile .ok { color: var(--ok) !important; }
.tile .row { display: flex; align-items: center; gap: 8px; padding: 0; }
.tile .badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 600; display: inline-grid; place-items: center; }
.contact { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.contact .av { width: 44px; height: 44px; font-size: 14px; }
.contact strong { display: block; font-weight: 600; } .contact span { font-size: 13px; color: var(--muted); }
.cbtn { display: flex; gap: 8px; padding: 0 16px 6px; flex-wrap: wrap; }
.cbtn a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 99px; font-weight: 600; border: 1px solid var(--line); font-size: 13.5px; transition: border-color .25s var(--ease); } .cbtn a:hover { border-color: var(--accent); }
.cbtn .i { color: var(--accent); width: 14px; height: 14px; }
.feed { list-style: none; padding: 2px 16px 6px; }
.feed li { border-top: 1px solid var(--line); font-size: 13.5px; } .feed li:first-child { border-top: 0; }
.feed li > a, .feed li:not(:has(> a)) { display: flex; gap: 12px; padding: 10px 0; }
.feed .i { color: var(--faint); width: 14px; height: 14px; margin-top: 3px; }
.feed time { display: block; font-size: 12px; color: var(--faint); }

/* Maquettes (portail-client 04, maquette maquettes/) */
.mqs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 26px; }
.mq { display: block; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); } .mq:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 14px 30px rgba(23,28,39,.08); }
.th { aspect-ratio: 16/10; background: hsl(var(--h) 45% 92%); padding: 16px; display: grid; gap: 8px; grid-template-rows: 14px 1fr 40px; border-bottom: 1px solid var(--line); }
.th span { border-radius: 6px; background: hsl(var(--h) 40% 82%); } .th span:nth-child(2) { background: hsl(var(--h) 45% 74%); } .th span:nth-child(3) { width: 60%; }
.mq .t { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 2px; } .mq strong { font-weight: 700; font-size: 16px; } .mq .muted { font-size: 13px; }
.mqh { font: 700 13px var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 6px 0 12px; }
.mqnote { margin-bottom: 16px; color: var(--muted); font-size: 14px; white-space: pre-line; } .mqnote strong { display: block; color: var(--text); margin-bottom: 4px; }
.none-card { display: grid; gap: 4px; } .none-card strong { font-weight: 700; }
.mvtabs { display: flex; gap: 6px; overflow-x: auto; margin: -6px 0 14px; padding-bottom: 2px; }
.mvtabs a { flex: none; height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); display: inline-flex; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.mvtabs a:hover { border-color: var(--accent); color: var(--accent); } .mvtabs a[aria-current] { background: var(--head); border-color: var(--head); color: #fff; }
.mvhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mvbig { flex: none; height: 46px; padding: 0 22px; font-size: 14.5px; } .mvbig .i { width: 15px; height: 15px; }
.mvframe { overflow: hidden; } .mvframe iframe { display: block; width: 100%; height: calc(100vh - 230px); min-height: 520px; border: 0; background: #fff; }

/* Vue agence : le bandeau de l'agence (jamais montré à un client), aux couleurs de Nova Stellaris, pas de l'agence. */
.ag-band { position: relative; z-index: 20; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 8px 20px; background: #0f0f43; color: #fff; font: 13px/1.4 system-ui, sans-serif; }
.ag-tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; border: 1.5px solid #e75f83; font-weight: 600; font-size: 12px; }
.ag-tag .i { width: 12px; height: 12px; }
.ag-hint { color: #b9beaa; }
.ag-pick { margin-left: auto; position: relative; }
.ag-pick summary { list-style: none; cursor: pointer; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(62,161,204,.5); display: inline-flex; align-items: center; gap: 8px; }
.ag-pick summary::-webkit-details-marker { display: none; }
.ag-pick summary::after { content: "▾"; font-size: 11px; color: #b9beaa; }
.ag-pick nav { position: absolute; right: 0; top: 36px; min-width: 240px; max-height: 60vh; overflow-y: auto; padding: 6px; border-radius: 12px; background: #0f0f43; border: 1px solid rgba(62,161,204,.4); box-shadow: 0 16px 40px rgba(0,0,0,.45); display: grid; }
.ag-pick nav a { padding: 8px 10px; border-radius: 8px; color: #e5e7da; }
.ag-pick nav a:hover, .ag-pick nav a[aria-current] { background: rgba(62,161,204,.16); color: #fff; }
.ag-out { color: #b9beaa; font-size: 12.5px; } .ag-out:hover { color: #fff; }

@media (max-width: 760px) {
  .top .in { padding: 10px 16px; } .who span, .sep, .agency { display: none; }
  main { padding: 20px 16px 32px; } .row { padding: 14px 16px; } .pad { padding: 16px; }
  .btn { height: 46px; }
  .home .grid { grid-template-columns: 1fr; gap: 14px; } .colB { order: -1; }
  .task { flex-wrap: wrap; gap: 12px; padding: 14px 12px; } .task .go { width: 100%; justify-content: center; height: 44px; }
  .cbtn a { flex: 1; justify-content: center; height: 44px; }
  .ag-hint { display: none; } .ag-band { padding: 8px 14px; }
}

/* ── Devis (portail-client 06, maquette docs/prototypes/portail-client/devis/) ── */
.quote .lay { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.quote .doc .dh { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: linear-gradient(180deg, var(--head), var(--head-deep)); color: #fff; border-radius: 16px 16px 0 0; }
.quote .doc .dh img { height: 22px; } .quote .doc .dh div { text-align: right; } .quote .doc .dh strong { display: block; font-weight: 700; } .quote .doc .dh span { font-size: 12.5px; color: rgba(255,255,255,.7); }
.quote .who2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; } .quote .who2 strong { display: block; font-weight: 700; } .quote .who2 span { display: block; font-size: 13px; color: var(--muted); }
.quote .tw { overflow-x: auto; } .quote table { width: 100%; border-collapse: collapse; font-size: 14px; } .quote th { text-align: left; font-size: 12px; color: var(--faint); font-weight: 700; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.quote td { padding: 12px 6px; border-bottom: 1px solid var(--line); vertical-align: top; } .quote td strong { display: block; font-weight: 600; } .quote td span { font-size: 12.5px; color: var(--muted); } .quote th:not(:first-child), .quote td:not(:first-child) { text-align: right; white-space: nowrap; }
.quote .tot { margin: 14px 0 0 auto; max-width: 280px; display: grid; gap: 6px; } .quote .tot div { display: flex; justify-content: space-between; font-size: 14px; } .quote .tot .g { padding-top: 8px; border-top: 1px solid var(--line); font-size: 16px; } .quote .tot .g b { color: var(--head); font-weight: 800; }
.quote .cond { margin-top: 16px; }
.quote .side { display: grid; gap: 14px; position: sticky; top: 76px; }
.quote .amt { margin: 12px 0 14px; } .quote .amt b { display: block; font: 800 28px var(--font); color: var(--head); } .quote .amt span { font-size: 13px; }
.quote .todo-box { display: grid; gap: 10px; } .quote .ck { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; } .quote .ck input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.quote .nm { height: 42px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; outline: none; } .quote .nm:focus { border-color: var(--accent); }
.quote .done-box { display: none; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); } .quote .done-box .i { width: 20px; height: 20px; margin-top: 2px; } .quote .done-box strong { display: block; color: var(--text); } .quote .done-box span { font-size: 13px; }
.quote .acc.done .todo-box { display: none; } .quote .acc.done .done-box { display: flex; }
.quote .acts { display: grid; gap: 8px; } .quote .others .row { padding: 12px 20px 16px; }
@media (max-width: 860px) { .quote .lay { grid-template-columns: 1fr; } .quote .side { position: static; order: -1; } .quote .who2 { grid-template-columns: 1fr; }  }
.quote .wordmark { font: 800 18px var(--font); color: #fff; }
.quote .todo-box .err { color: var(--err, #c0392b); font-size: 13.5px; }
.quote .ok-line { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--ok); margin: 0 0 10px; } .quote .ok-line .i { width: 18px; height: 18px; flex: none; }
.quote .ask summary { list-style: none; cursor: pointer; } .quote .ask summary::-webkit-details-marker { display: none; }
.quote .ask form { display: grid; gap: 8px; margin-top: 10px; } .quote .ask textarea { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; resize: vertical; outline: none; } .quote .ask textarea:focus { border-color: var(--accent); }
.quote .ck span { font-size: 13px; line-height: 1.45; }
.card.list .row { padding: 14px 20px; } .card.list .none { padding: 18px 20px; }
.quote .doc .dh .wordmark { font: 800 18px var(--font); color: #fff; }
.quote .ask summary { display: flex; width: 100%; justify-content: center; }

/* ── Documents (portail-client 07, maquette docs/prototypes/portail-client/documents/) ── */
.docs .flt { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.docs .flt a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; transition: all .25s var(--ease); }
.docs .flt a.on { background: var(--head); border-color: var(--head); color: #fff; }
.docs .list .row { transition: background .25s var(--ease); } .docs .list .row:hover { background: #f7f9fb; }
.docs .kind { font-size: 12px; color: var(--faint); } .docs .row > .i { color: var(--faint); width: 13px; height: 13px; }
@media (max-width: 760px) { .docs .kind { display: none; } }

/* ── Visuels (portail-client 08, maquette docs/prototypes/portail-client/visuels/) ── */
.visuals .vh { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; } .visuals .vh b { font-weight: 800; color: var(--head); } .visuals .vh .bar { flex: 1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; } .visuals .vh .bar i { display: block; height: 100%; background: var(--ok); transition: width .4s var(--ease); }
.visuals .vg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.visuals .vt { position: relative; margin: 0; border-radius: 14px; overflow: visible; background: var(--card); border: 2px solid transparent; transition: border-color .25s var(--ease); }
.visuals .vt .img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 12px 12px 0 0; background: var(--line); }
.visuals .vt figcaption { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; } .visuals .vt figcaption > span { flex: 1; min-width: 0; }
.visuals .vt .said { display: block; font-style: normal; font-size: 12px; color: var(--warn); margin-top: 2px; }
.visuals .vb { display: flex; gap: 6px; position: relative; } .visuals .vb form { margin: 0; }
.visuals .vb button, .visuals .vb summary { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; transition: all .25s var(--ease); list-style: none; } .visuals .vb summary::-webkit-details-marker { display: none; }
.visuals .vb .i { width: 14px; height: 14px; } .visuals .vb .yes:hover { background: var(--ok); border-color: var(--ok); color: #fff; } .visuals .vb .no:hover, .visuals .vb details[open] .no { border-color: var(--warn); color: var(--warn); }
.visuals .redo-ask .note { position: absolute; right: 0; bottom: 44px; width: min(320px, 80vw); z-index: 20; box-shadow: 0 18px 40px rgba(23,28,39,.22); }
.visuals .note textarea { width: 100%; min-height: 80px; margin: 10px 0; border: 1px solid var(--line); border-radius: 12px; padding: 10px; resize: none; outline: none; font: inherit; } .visuals .note .nb { display: flex; justify-content: flex-end; }
.visuals .mark { position: absolute; top: 10px; left: 10px; display: none; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 700; align-items: center; background: var(--ok); color: #fff; }
.visuals .vt.ok { border-color: var(--ok); } .visuals .vt.ok .mark { display: inline-flex; } .visuals .vt.ok .mark::after { content: "Validé"; }
.visuals .vt.redo { border-color: var(--warn); } .visuals .vt.redo .mark { display: inline-flex; background: var(--warn); } .visuals .vt.redo .mark::after { content: "À retoucher"; }
.visuals .ok-line { display: flex; gap: 8px; align-items: center; color: var(--ok); font-size: 14px; margin: 0 0 12px; } .visuals .ok-line .i { width: 16px; height: 16px; }
.visuals .err { color: var(--err, #c0392b); margin: 0 0 12px; } .visuals .team-note { margin: -6px 0 12px; font-size: 13px; }
@media (max-width: 760px) { .visuals .vg { grid-template-columns: 1fr 1fr; gap: 10px; } .visuals .vt figcaption { flex-direction: column; align-items: stretch; font-size: 12.5px; } .visuals .vb { justify-content: stretch; } .visuals .vb > * { flex: 1; } .visuals .vb button, .visuals .vb summary { width: 100%; border-radius: 99px; height: 40px; } .visuals .vh { flex-wrap: wrap; } .visuals .vh .bar { order: 3; flex-basis: 100%; } }

/* ── Avancement (portail-client 10, maquette docs/prototypes/portail-client/avancement/) ── */
.progress .kp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; } .progress .kp b { display: block; font: 800 20px var(--font); color: var(--head); margin-top: 2px; }
.progress .need { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; border-left: 3px solid var(--brand); } .progress .need .ico { background: #fde7ec; color: var(--brand); } .progress .need strong { display: block; } .progress .need span { font-size: 14px; color: var(--muted); }
.progress .tl { list-style: none; margin: 0; } .progress .tl li { position: relative; display: flex; gap: 16px; padding: 4px 0 22px; } .progress .tl li:last-child { padding-bottom: 4px; }
.progress .tl li::before { content: ""; position: absolute; left: 13px; top: 32px; bottom: 0; width: 2px; background: var(--line); } .progress .tl li:last-child::before { display: none; } .progress .tl li.done::before { background: var(--accent); }
.progress .dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.progress .done .dot { background: var(--accent); border-color: var(--accent); } .progress .done .dot .i { width: 12px; height: 12px; } .progress .now .dot { border-color: var(--brand); } .progress .now .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.progress .sh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .progress .sh strong { font-weight: 700; font-size: 16px; } .progress .now .sh strong { color: var(--brand); }
.progress .tl p { font-size: 14px; margin: 2px 0 6px; }
@media (max-width: 760px) { .progress .kp { grid-template-columns: 1fr 1fr; } .progress .kp div:last-child { grid-column: 1/-1; } .progress .need { flex-wrap: wrap; } .progress .need .btn { width: 100%; } }

/* ── Votre site (portail-client 12, maquette docs/prototypes/portail-client/site/) ── */
.site .live { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; } .site .live strong { font-size: 17px; font-weight: 800; color: var(--ok); display: block; } .site .live strong.down { color: var(--err, #c0392b); } .site .live strong.wait { color: var(--muted); } .site .live .grow span { font-size: 13.5px; color: var(--muted); }
.site .pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(15,138,95,.5); animation: site-pl 2s infinite; flex-shrink: 0; } .site .pulse.down { background: var(--err, #c0392b); animation: none; } .site .pulse.wait { background: var(--line); animation: none; }
@keyframes site-pl { 70% { box-shadow: 0 0 0 12px rgba(15,138,95,0); } 100% { box-shadow: 0 0 0 0 rgba(15,138,95,0); } }
@media (prefers-reduced-motion: reduce) { .site .pulse { animation: none; } }
.site .up { margin-bottom: 14px; } .site .uh { display: flex; justify-content: space-between; margin-bottom: 12px; } .site .uh strong { font-weight: 700; } .site .uh b { font-weight: 800; color: var(--ok); }
.site .days { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; } .site .days i { height: 32px; border-radius: 4px; background: var(--ok); opacity: .85; transition: opacity .2s; } .site .days i:hover { opacity: 1; } .site .days i.bad { background: var(--warn); } .site .days i.none { background: var(--line); opacity: 1; }
.site .uf { display: flex; justify-content: space-between; margin: 6px 0 8px; font-size: 12.5px; }
.site .chk { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .site .ck2 { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; } .site .ck2 .grow span { display: block; font-size: 12.5px; color: var(--muted); } .site .ck2 strong { font-size: 14px; }
@media (max-width: 760px) { .site .chk { grid-template-columns: 1fr; } .site .live { flex-wrap: wrap; } .site .live .btn { width: 100%; } .site .days i { height: 24px; } }
.progress .tl li > div { flex: 1; min-width: 0; }

/* ── Factures (portail-client 11, maquette docs/prototypes/portail-client/factures/) ── */
.invoices .sum { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; } .invoices .sum b { display: block; font: 800 26px var(--font); color: var(--head); margin: 2px 0; } .invoices .sum b.warn { color: var(--warn); } .invoices .sum span { font-size: 13px; }
.invoices .list .row { flex-wrap: wrap; } .invoices .am { text-align: right; display: grid; justify-items: end; gap: 4px; } .invoices .am b { font-weight: 700; } .invoices .ac { display: flex; gap: 6px; } .invoices .ac .i { width: 13px; height: 13px; }
.invoices .paybox { flex-basis: 100%; margin: 6px 0 4px 54px; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: 12px; background: var(--bg, #f6f8fb); }
.invoices .paybox dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 10px 0; font-size: 14px; } .invoices .paybox dt { color: var(--muted); } .invoices .paybox dd { margin: 0; font-weight: 600; } .invoices .paybox code { font: 600 14px ui-monospace, monospace; user-select: all; } .invoices .paybox p { font-size: 13px; margin: 0; }
@media (max-width: 760px) { .invoices .row .grow { flex: 1 1 calc(100% - 60px); } .invoices .am { text-align: left; justify-items: start; display: flex; align-items: center; gap: 10px; flex: 1; margin-left: 54px; } .invoices .ac { margin-left: auto; } .invoices .hide-s { display: none; } .invoices .sum b { font-size: 21px; } .invoices .paybox { margin-left: 0; } }

/* ── Posts (portail-client 09, maquette docs/prototypes/portail-client/posts/) ── */
.posts .pg { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.posts .post { overflow: hidden; } .posts .post header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; } .posts .net { font-weight: 700; } .posts .post header .faint { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; } .posts .post header .i { width: 13px; height: 13px; }
.posts .pv { display: block; width: 100%; object-fit: cover; background: var(--line); } .posts .pv.novid { display: grid; place-items: center; font-size: 13px; color: var(--muted); padding: 16px; text-align: center; }
.posts .post p { padding: 14px 16px 4px; font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
.posts .pa { display: flex; gap: 8px; padding: 12px 16px 16px; flex-wrap: wrap; align-items: flex-start; } .posts .pa > * { flex: 1; } .posts .pa form { margin: 0; } .posts .pa .btn { width: 100%; justify-content: center; } .posts .pa .i { width: 13px; height: 13px; }
.posts .chg summary { list-style: none; cursor: pointer; } .posts .chg summary::-webkit-details-marker { display: none; } .posts .chg[open] { flex-basis: 100%; }
.posts .chg form { display: grid; gap: 8px; margin-top: 8px; } .posts .chg textarea { min-height: 80px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; font: inherit; resize: vertical; outline: none; } .posts .chg textarea:focus { border-color: var(--accent); }
.posts .ok-line { display: flex; gap: 8px; align-items: center; color: var(--ok); font-size: 14px; margin: 0 0 12px; } .posts .ok-line .i { width: 16px; height: 16px; } .posts .err { color: var(--err, #c0392b); margin: 0 0 12px; } .posts .team-note { margin: -6px 0 12px; font-size: 13px; }
/* portail-client 06b : devis en PDF */
.quote .pdfq .pad { display: grid; gap: 14px; }
.quote .pdfq .mqnote { margin: 0; }
.quote .pdfopen { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none; transition: border-color .15s, background .15s; }
.quote .pdfopen:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.quote .pdfopen > .i { width: 30px; height: 30px; flex: none; color: var(--accent); }
.quote .pdfopen strong { display: block; font-weight: 700; } .quote .pdfopen span span { display: block; font-size: 13px; }
.quote .pdfq .faint { margin: 0; }

/* portail-client 15 : espace agence du web (maquette docs/prototypes/portail-agence/), ordinateur seulement */
body.agd {min-width: 1100px; }
.agd .top .in.wide, .agd main.wide {max-width: 1320px; }
.agd .tabs {display: flex; gap: 4px; margin-left: 18px; }
.agd .tabs a {padding: 7px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.7); transition: background .2s var(--ease), color .2s var(--ease); }
.agd .tabs a:hover {color: #fff; background: rgba(255,255,255,.08); }
.agd .tabs a.on {color: #fff; background: rgba(255,255,255,.14); }
.agd .row-ph {display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.agd .search {position: relative; width: 380px; }
.agd .search input {width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 99px; padding: 0 18px 0 42px; background: var(--card); outline: none; transition: border-color .2s var(--ease); }
.agd .search input:focus {border-color: var(--accent); }
.agd .search .i {position: absolute; left: 16px; top: 15px; color: var(--faint); }
.agd .kpis {display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.agd .kpi {padding: 16px 20px; display: grid; gap: 2px; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.agd .kpi:hover {border-color: var(--accent); transform: translateY(-1px); }
.agd .kpi b {font: 800 30px/1.15 var(--font); color: var(--head); }
.agd .kpi .muted {font-size: 13px; }
.agd .kpi.hot b {color: var(--brand); }
.agd .asec {margin-bottom: 28px; scroll-margin-top: 80px; }
.agd .sh {display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.agd .sh .h2 {margin: 0; }
.agd .two {display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.agd .two .asec {margin-bottom: 28px; }
.agd .atodo .row {transition: opacity .3s var(--ease), background .2s var(--ease); flex-wrap: wrap; }
.agd .atodo .row:hover {background: #f7f9fb; }
.agd .atodo .row.done {opacity: .45; }
.agd .atodo .row.done .reply {display: none; }
.agd .atodo .status {min-width: 92px; justify-content: center; }
.agd .reply {display: contents; }
.agd .reply summary {list-style: none; }
.agd .reply summary::-webkit-details-marker {display: none; }
.agd .reply[open] summary {border-color: var(--accent); color: var(--accent); }
.agd .rf {flex-basis: 100%; margin-left: 54px; display: grid; gap: 10px; padding: 4px 0 6px; }
.agd .rf textarea {width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; resize: vertical; outline: none; }
.agd .rf textarea:focus {border-color: var(--accent); }
.agd .rfa {display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.agd .ck {display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); }
.agd .flt {display: flex; gap: 6px; }
.agd .flt a {padding: 5px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); background: var(--card); }
.agd .flt a.on {color: var(--head); border-color: var(--head); }
.agd .tbl {overflow: hidden; }
.agd .tbl table {width: 100%; border-collapse: collapse; font-size: 14px; }
.agd .tbl th {text-align: left; font-size: 12px; font-weight: 700; color: var(--faint); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.agd .tbl td {padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.agd .tbl tr:last-child td {border-bottom: 0; }
.agd .tbl tbody tr {transition: background .2s var(--ease); }
.agd .tbl tbody tr:hover {background: #f7f9fb; }
.agd .tbl td strong {display: block; font-weight: 700; }
.agd .tbl td > span:not(.status) {display: block; font-size: 12.5px; color: var(--muted); }
.agd .tbl td.r {text-align: right; white-space: nowrap; }
.agd .tbl tr.quiet td strong {color: var(--muted); }
.agd .tbl .late, .agd .tbl .warn {color: var(--brand) !important; font-weight: 600; }
.agd .tt {display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; font-weight: 700; border-bottom: 1px solid var(--line); }
.agd .mini {width: 120px; height: 6px; border-radius: 99px; background: var(--bg); overflow: hidden; margin-bottom: 4px; }
.agd .mini i {display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.agd .more {display: block; padding: 12px 16px; font-size: 13.5px; font-weight: 700; color: var(--accent); border-top: 1px solid var(--line); }
.agd .more:hover {color: var(--brand); }
.agd .mq .row {transition: background .2s var(--ease); }
.agd .mq .row:hover {background: #f7f9fb; }
.agd .mq b {font: 800 18px var(--font); color: var(--head); }
.agd .pages {display: flex; gap: 4px; margin-top: 8px; }
.agd .pages i, .agd .legend i {width: 22px; height: 8px; border-radius: 99px; background: var(--line); display: inline-block; }
.agd .pages i.p-ok, .agd .legend i.p-ok {background: var(--ok); }
.agd .pages i.p-todo, .agd .legend i.p-todo {background: var(--brand); }
.agd .legend {margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.agd .legend i {width: 14px; margin-left: 8px; }
.agd .legend i:first-child {margin-left: 0; }
.agd .feed {padding: 8px 0 0; }
.agd .feed .it {display: flex; gap: 12px; padding: 10px 20px; font-size: 14px; }
.agd .feed .it .faint {display: block; margin-top: 2px; }
.agd .dot {width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-top: 7px; flex-shrink: 0; }
.agd .dot.ok {background: var(--ok); }
.agd .dot.agency {background: var(--head); }
body.agx {min-width: 0; }
.agd .cx {max-width: 460px; padding-top: 10vh; }
.agd .cx .box {padding: 32px; }
.agd .cx .lg {background: linear-gradient(180deg, var(--head), var(--head-deep)); border-radius: 12px; padding: 16px; margin-bottom: 22px; }
.agd .cx .lg img {height: 26px; display: block; }
.agd .cx .eb {font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.agd .cx h1 {font: 800 26px/1.2 var(--font); color: var(--head); margin: 4px 0 8px; }
.agd .cx form {display: grid; gap: 10px; margin-top: 20px; }
.agd .cx input {height: 46px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; outline: none; }
.agd .cx input:focus {border-color: var(--accent); }
.agd .sent {display: flex; gap: 12px; margin-top: 20px; padding: 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); }
.agd .sent .i {width: 20px; height: 20px; margin-top: 2px; }
.agd .sent strong {display: block; }
.agd .sent .muted {font-size: 13.5px; }
.agd .cx .note {margin-top: 18px; }
.agd .sent[hidden], .agd form[hidden] {display: none; }
.agd .sh {align-items: center; margin-bottom: 14px; }
.agd .st {display: flex; align-items: center; gap: 12px; font: 800 22px/1.2 var(--font); color: var(--head); }
.agd .sti {display: grid; place-items: center; color: inherit; flex-shrink: 0; }
.agd .sti .i {width: 22px; height: 22px; }
.agd .asec {margin-bottom: 40px; }
.agd .flash { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 12px 16px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.agd .flash.err { background: #fde7ec; color: var(--brand); }
.agd .none { padding: 18px 20px; color: var(--muted); }
.agd .atodo form { margin: 0; }
.agd .atodo .grow .faint { display: block; margin-top: 2px; }
.agd .err { color: var(--brand); font-size: 13.5px; margin-top: 14px; }
.agd .cx .lg img { height: 26px; display: block; } .agd .cx .lg .wordmark { font: 800 20px var(--font); color: #fff; }

.agd .st { text-transform: none; letter-spacing: normal; margin: 0; }
