/* ============================================================
   RAHIM INTERNATIONAL — ESPACE CLIENT (portail)
   ============================================================ */
:root {
  --navy: #081a33; --navy-mid: #10294a; --navy-soft: #17375f; --ink: #07111f;
  --gold: #C9A96E; --gold-soft: rgba(201,169,110,0.16);
  --cream: #f4f7f8; --steel: #e6edf1; --white: #fff; --pale: #E8EEF6;
  --muted: #657384; --border: rgba(8,26,51,0.12);
  --ok: #2f7d5b; --ok-soft: #e3f1ea; --warn: #9a6a1c;
  --radius: 14px; --shadow: 0 18px 50px rgba(8,26,51,0.10);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Didact Gothic', system-ui, sans-serif; background: var(--cream); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.serif { font-family: 'Cormorant Garamond', Georgia, serif; }

/* ---- top bar ---- */
.pt-bar { background: var(--ink); border-bottom: 1px solid rgba(210,180,134,0.24); padding: 0 16px; }
.pt-bar-in { max-width: 1080px; margin: 0 auto; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 48px; height: 42px; object-fit: contain; flex: 0 0 auto; }
.brand-name { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; color: var(--gold); letter-spacing: .08em; line-height: 1; white-space: nowrap; }
.brand-name span { color: #fff; }
.brand-sub { font-size: .58rem; letter-spacing: .17em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 4px; white-space: nowrap; }
.pt-user { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.75); font-size: .8rem; min-width: 0; }
.pt-user .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 11px 20px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; text-decoration: none; transition: background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #d8bb84; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }
.btn-line { border-color: var(--border); background: #fff; color: var(--navy); }
.btn-line:hover { border-color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.25); background: transparent; color: #fff; padding: 8px 14px; font-size: .68rem; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 7px 13px; font-size: .66rem; }
.btn-danger { background: #fff; color: #a23b3b; border-color: rgba(162,59,59,.3); }
.btn[disabled] { opacity: .5; cursor: default; }

/* ---- layout ---- */
main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 28px 16px 60px; }
.grid { display: grid; gap: 20px; }
.grid-2 { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.card h2 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 1.45rem; color: var(--navy); margin-bottom: 14px; }
.eyebrow { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.notice { background: var(--gold-soft); border: 1px solid rgba(201,169,110,.45); color: #6b4f22; border-radius: 10px; padding: 10px 14px; font-size: .82rem; margin-bottom: 18px; }

/* ---- hero ---- */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%); color: #fff; border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(201,169,110,.25); }
.hero h1 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.1; }
.hero h1 em { color: var(--gold); font-style: italic; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.chip { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 12px; color: rgba(255,255,255,.85); }
.chip.gold { border-color: var(--gold); color: var(--gold); }
.progress-label { display: flex; justify-content: space-between; font-size: .8rem; color: rgba(255,255,255,.75); margin-bottom: 8px; gap: 10px; }
.progress { height: 8px; background: rgba(255,255,255,.14); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, #b98f4f, var(--gold)); border-radius: 99px; transition: width .6s; }

/* ---- timeline ---- */
.steps { list-style: none; position: relative; }
.step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; position: relative; }
.step:not(:last-child)::before { content: ''; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--steel); }
.step.done:not(:last-child)::before { background: var(--ok); }
.dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 700; border: 2px solid var(--steel); background: #fff; color: var(--muted); }
.step.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.step.current .dot { border-color: var(--gold); color: var(--navy); background: var(--gold-soft); box-shadow: 0 0 0 5px rgba(201,169,110,.15); }
.step-title { font-weight: 700; color: var(--navy); font-size: .95rem; padding-top: 6px; }
.step.todo .step-title { color: var(--muted); font-weight: 400; }
.step-desc { font-size: .82rem; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.step-meta { font-size: .74rem; margin-top: 5px; color: var(--ok); }
.step.current .step-meta { color: var(--warn); }

/* ---- message ---- */
.message { background: var(--pale); border-left: 3px solid var(--navy); border-radius: 10px; padding: 14px 16px; font-size: .9rem; line-height: 1.55; white-space: pre-line; }
.message-from { font-size: .72rem; color: var(--muted); margin-top: 8px; }

/* ---- documents ---- */
.doc-group + .doc-group { margin-top: 16px; }
.doc-group h3 { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 400; }
.doc { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; background: #fff; transition: border-color .2s, background .2s; cursor: pointer; width: 100%; text-align: left; }
.doc + .doc { margin-top: 8px; }
.doc:hover { border-color: var(--gold); background: #fffdf8; }
.doc-ico { width: 36px; height: 36px; border-radius: 9px; background: var(--pale); display: grid; place-items: center; flex: 0 0 auto; color: var(--navy); font-size: .7rem; font-weight: 700; letter-spacing: .04em; }
.doc-ico.video { background: #f6ece0; color: #87452c; }
.doc-body { min-width: 0; flex: 1; }
.doc-title { font-size: .88rem; color: var(--navy); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-date { font-size: .74rem; color: var(--muted); }
.doc-go { color: var(--gold); font-size: 1.1rem; flex: 0 0 auto; }
.empty { font-size: .85rem; color: var(--muted); padding: 14px; border: 1px dashed var(--border); border-radius: 10px; text-align: center; }

/* ---- contact ---- */
.advisor { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; flex: 0 0 auto; }
.contact-actions { display: grid; gap: 8px; }

/* ---- login ---- */
.login-wrap { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 32px 16px; background: radial-gradient(circle at 20% 0%, rgba(201,169,110,.12), transparent 50%), var(--cream); }
.login { width: 100%; max-width: 420px; }
.login h1 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 2.2rem; color: var(--navy); line-height: 1.1; margin-bottom: 10px; }
.login h1 em { color: var(--gold); }
label { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 16px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=url], select, textarea { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; background: #fff; font-size: .92rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(201,169,110,.5); border-color: var(--gold); }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.login .btn { width: 100%; margin-top: 18px; }
.ok-box { background: var(--ok-soft); color: var(--ok); border-radius: 10px; padding: 14px; font-size: .88rem; margin-top: 16px; line-height: 1.5; }
.err-box { background: #fbeaea; color: #a23b3b; border-radius: 10px; padding: 12px 14px; font-size: .85rem; margin-top: 14px; }

/* ---- footer ---- */
.pt-foot { text-align: center; font-size: .74rem; color: var(--muted); padding: 22px 16px 30px; border-top: 1px solid var(--border); }
.pt-foot a { color: var(--navy); }

/* ---- admin ---- */
.adm { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .adm { grid-template-columns: minmax(0, 1fr); } }
.client-list { list-style: none; display: grid; gap: 6px; margin-top: 12px; max-height: 60vh; overflow: auto; }
.client-item { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; cursor: pointer; background: #fff; text-align: left; width: 100%; }
.client-item.active { border-color: var(--gold); background: #fffdf8; }
.client-item .n { font-weight: 700; color: var(--navy); font-size: .88rem; }
.client-item .s { font-size: .74rem; color: var(--muted); margin-top: 2px; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .row { grid-template-columns: minmax(0, 1fr); } }
.step-edit { display: grid; grid-template-columns: 28px minmax(0, 1fr) 150px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--steel); }
@media (max-width: 560px) { .step-edit { grid-template-columns: 28px minmax(0, 1fr); } .step-edit input { grid-column: 2; } }
.step-edit input[type=radio] { width: 18px; height: 18px; accent-color: var(--navy); }
.step-edit .t { font-size: .88rem; color: var(--navy); }
.adm-doc { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--steel); font-size: .85rem; }
.adm-doc .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: .84rem; box-shadow: var(--shadow); z-index: 50; opacity: 0; transition: opacity .25s; pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; }
.hidden { display: none !important; }
@media (max-width: 560px) {
  .pt-user .who { display: none; }
  .brand-name { font-size: 1.05rem; }
  .brand img { width: 40px; height: 36px; }
  .hero, .card { padding: 20px; }
}

/* ---- pièces du client ---- */
.pieces-count { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.piece { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.piece + .piece { margin-top: 8px; }
.piece.ok { border-color: rgba(47,125,91,.35); background: #f7fbf9; }
.piece-head { display: flex; align-items: center; gap: 12px; }
.piece-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--steel); display: grid; place-items: center; font-size: .75rem; color: #fff; flex: 0 0 auto; }
.piece.ok .piece-check { background: var(--ok); border-color: var(--ok); }
.piece-txt { flex: 1; min-width: 0; }
.piece-label { font-size: .9rem; font-weight: 700; color: var(--navy); }
.piece-hint { font-size: .76rem; color: var(--muted); }
.piece-file { display: flex; align-items: center; gap: 10px; font-size: .8rem; margin: 8px 0 0 36px; flex-wrap: wrap; }
.piece-file .linkish:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; color: var(--navy); text-decoration: underline; font-size: .8rem; }
.linkish.danger { color: #a23b3b; }
.tag-client { display: inline-block; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; background: var(--gold-soft); color: #87452c; border: 1px solid rgba(201,169,110,.5); border-radius: 999px; padding: 1px 7px; vertical-align: 1px; }
label.check { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: .85rem; color: var(--navy); margin: 14px 0 0; cursor: pointer; }
label.check input { width: 17px; height: 17px; accent-color: var(--navy); }

/* ---- bons de visite ---- */
.visit { border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.visit + .visit, .visit + .doc-group { margin-top: 14px; }
.visit.pending { border-color: var(--gold); background: #fffdf8; }
.visit-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.visit-no { font-weight: 700; color: var(--navy); letter-spacing: .04em; }
.badge-wait { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; background: var(--gold); color: var(--ink); border-radius: 999px; padding: 3px 9px; }
.ptable { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .82rem; table-layout: fixed; }
.ptable th { text-align: left; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--navy); padding: 6px; font-weight: 400; }
.ptable td { border-bottom: 1px solid var(--steel); padding: 7px 6px; vertical-align: top; overflow-wrap: anywhere; }
.ptable th:first-child, .ptable td:first-child { width: 34px; }
.decl { font-size: .82rem; margin: 6px 0 4px; }
.decl summary { cursor: pointer; color: var(--navy); text-decoration: underline; }
.decl div { white-space: pre-line; line-height: 1.5; color: #33404f; background: var(--pale); border-radius: 8px; padding: 12px; margin-top: 8px; }
.prop-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 8px; margin-top: 8px; }
@media (max-width: 560px) { .prop-row { grid-template-columns: minmax(0, 1fr) auto; } .prop-row input:not(:first-child) { grid-column: 1; } }
.tag-ok { display: inline-block; font-size: .62rem; letter-spacing: .06em; background: var(--ok-soft); color: var(--ok); border-radius: 999px; padding: 1px 8px; vertical-align: 1px; }
@media (max-width: 560px) { .ptable { font-size: .76rem; } .ptable th:nth-child(3), .ptable td:nth-child(3) { display: none; } }
.locked { background: var(--navy); color: #fff; border-radius: 10px; padding: 11px 14px; font-size: .85rem; margin: 4px 0 8px; line-height: 1.45; }
.locked strong { color: var(--gold); }
.visit .doc + .doc { margin-top: 8px; }
.visit-bon { display: inline-block; margin-top: 10px; font-size: .78rem; color: var(--navy); }
.visit:not(.pending) .tag-ok { font-size: .66rem; padding: 3px 9px; }

/* ============ layout avec menu latéral ============ */
.app { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; padding: 24px 16px 60px; align-items: start; }
.app.hidden { display: none; }
.app-main { min-width: 0; display: grid; gap: 20px; align-content: start; }
.side { position: sticky; top: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; display: grid; gap: 4px; box-shadow: var(--shadow); }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: .9rem; position: relative; }
.nav-item svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.nav-item:hover { background: var(--cream); color: var(--navy); }
.nav-item.active { background: var(--navy); color: #fff; }
.nav-item.active svg { stroke: var(--gold); }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: .7rem; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }
.view { display: grid; gap: 20px; }
.view.hidden { display: none; }
.grid-2.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-compact { padding: 18px 24px; }
.hero-compact .eyebrow, .hero-compact .chips { display: none; }
.hero-compact h1 { font-size: 1.5rem; margin-bottom: 10px; }
.hero-compact h1 br { display: none; }
.hero-compact h1 em { margin-left: .3em; }
/* à faire */
.todo-card { border-color: rgba(201,169,110,.6); }
.act { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 12px; background: #fffdf8; border: 1px solid rgba(201,169,110,.45); text-decoration: none; }
.act + .act { margin-top: 10px; }
.act:hover { border-color: var(--gold); }
.act-ico { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-size: 1rem; flex: 0 0 auto; }
.act-body { flex: 1; min-width: 0; }
.act-title { display: block; font-weight: 700; color: var(--navy); font-size: .95rem; }
.act-sub { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.act-none { background: var(--ok-soft); color: var(--ok); border-radius: 10px; padding: 14px; font-size: .9rem; }
.facts { list-style: none; display: grid; gap: 10px; }
.facts li { font-size: .88rem; line-height: 1.5; color: #33404f; padding-left: 22px; position: relative; }
.facts li::before { content: '◆'; color: var(--gold); position: absolute; left: 0; font-size: .7rem; top: 3px; }

@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); padding-bottom: 96px; }
  .grid-2.even { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 40; border-radius: 0; border-width: 1px 0 0; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(8,26,51,.08); }
  .nav-item { flex-direction: column; gap: 3px; padding: 7px 2px; font-size: .66rem; justify-content: center; text-align: center; }
  .nav-item.active { background: transparent; color: var(--navy); font-weight: 700; }
  .nav-item.active svg { stroke: var(--navy); }
  .nav-badge { position: absolute; top: 2px; right: calc(50% - 22px); margin: 0; min-width: 17px; height: 17px; font-size: .62rem; padding: 0 4px; }
  .pt-foot { padding-bottom: 90px; }
}
main.app-main { padding: 0; max-width: none; margin: 0; flex: initial; }
.modal-wrap { position: fixed; inset: 0; background: rgba(7,17,31,.55); display: grid; place-items: center; padding: 16px; z-index: 60; }
.modal { width: 100%; max-width: 420px; }
.modal h2 { margin-bottom: 8px; }
.pw { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1rem; letter-spacing: .04em; user-select: all; }
#access-box { margin-top: 14px; }
@media (max-width: 560px) { #change-pw { display: none; } }
/* ---- emplacements compte rendu + vidéo ---- */
.visit-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 700px) { .visit-slots { grid-template-columns: minmax(0, 1fr); } }
.slot { min-width: 0; }
.slot-label { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.slot .empty { padding: 18px 12px; font-size: .8rem; }
.video { border-radius: 10px; overflow: hidden; background: var(--ink); aspect-ratio: 16 / 9; position: relative; }
.video + .video { margin-top: 8px; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video-play { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; color: #fff; background: radial-gradient(circle at 50% 45%, var(--navy-soft), var(--ink)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px; font-size: .82rem; text-align: center; }
.play-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font-size: 1.1rem; padding-left: 3px; }
.video-play:hover .play-ico { background: #d8bb84; }
.adm-doc { flex-wrap: wrap; } .adm-doc .t { flex-basis: 220px; }
.lock-tile { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: var(--navy); color: #fff; min-height: 64px; }
.lock-tile + .lock-tile { margin-top: 8px; }
.lock-tile.vid { aspect-ratio: 16 / 9; flex-direction: column; justify-content: center; text-align: center; background: radial-gradient(circle at 50% 45%, var(--navy-soft), var(--ink)); }
.lock-ico { width: 40px; height: 40px; border-radius: 50%; background: rgba(201,169,110,.18); border: 1px solid var(--gold); display: grid; place-items: center; flex: 0 0 auto; }
.lock-txt { display: grid; gap: 2px; font-size: .8rem; min-width: 0; }
.lock-txt strong { color: var(--gold); font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.lock-txt span { color: rgba(255,255,255,.7); font-size: .74rem; }

/* ---- documents vivants ---- */
.doc-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; scrollbar-width: thin; }
.doc-tab { flex: 0 0 auto; border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 8px 14px; font-size: .82rem; color: var(--navy); cursor: pointer; position: relative; white-space: nowrap; }
.doc-tab.empty-tab { color: var(--muted); border-style: dashed; }
.doc-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); border-style: solid; }
.doc-tab .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-left: 7px; vertical-align: 2px; }
.doc-current { border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.doc-cur-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.doc-cur-title { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; color: var(--navy); font-weight: 600; margin: 2px 0 4px; }
.pdf-preview { margin-top: 14px; }
.pdf-preview iframe { width: 100%; height: 70vh; min-height: 420px; border: 1px solid var(--border); border-radius: 10px; background: var(--cream); }
@media (max-width: 860px) { .pdf-preview { display: none; } }
.versions { margin-top: 16px; }
.versions summary { cursor: pointer; font-size: .85rem; color: var(--navy); text-decoration: underline; margin-bottom: 10px; }
.versions .doc { margin-top: 8px; }
.doc-empty { border: 1px dashed var(--border); border-radius: 12px; padding: 30px 20px; text-align: center; }
.doc-empty h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--navy); margin: 6px 0; }
.doc-empty p { font-size: .9rem; color: #33404f; line-height: 1.5; max-width: 460px; margin: 0 auto 6px; }
.doc-empty-ico { width: 46px; height: 46px; border-radius: 50%; background: var(--pale); color: var(--navy); display: grid; place-items: center; margin: 0 auto; font-size: 1.1rem; }
/* admin */
.type-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 11px 0; border-bottom: 1px solid var(--steel); }
.type-main { flex: 1 1 200px; min-width: 0; }
.type-name { font-weight: 700; color: var(--navy); font-size: .92rem; }
.type-hist { flex-basis: 100%; }
.type-hist summary { cursor: pointer; font-size: .8rem; color: var(--navy); text-decoration: underline; }
/* ---- financement ---- */
.fin-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .fin-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fin-tile { background: var(--cream); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; min-width: 0; }
.fin-k { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fin-v { font-size: 1.02rem; font-weight: 700; color: var(--navy); margin-top: 4px; overflow-wrap: anywhere; }
.nav-item.hidden { display: none; }
@media (max-width: 860px) { .side { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } .nav-label { font-size: .6rem; } }

/* ---- feuille de route ---- */
.road { list-style: none; }
.road-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; padding-bottom: 22px; position: relative; }
.road-step:not(:last-child)::before { content: ''; position: absolute; left: 16px; top: 36px; bottom: 0; width: 2px; background: var(--steel); }
.road-step.done:not(:last-child)::before { background: var(--ok); }
.road-step.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.road-step.current .dot { border-color: var(--gold); color: var(--navy); background: var(--gold-soft); box-shadow: 0 0 0 5px rgba(201,169,110,.15); }
.road-body { min-width: 0; }
.road-step.current .road-body { background: #fffdf8; border: 1px solid rgba(201,169,110,.5); border-radius: 12px; padding: 14px 16px; margin-top: -6px; }
.road-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-top: 6px; }
.road-step.current .road-head { padding-top: 0; }
.road-title { font-weight: 700; color: var(--navy); font-size: 1rem; }
.road-step.todo .road-title { color: var(--muted); }
.road-when { font-size: .74rem; color: var(--muted); }
.road-step.done .road-when { color: var(--ok); }
.road-step.current .road-when { color: var(--warn); font-weight: 700; }
.road-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
@media (max-width: 700px) { .road-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.road-k { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.road-line { font-size: .84rem; line-height: 1.45; color: #33404f; }
.road-step.todo .road-line { color: var(--muted); }
.road-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.road-doc { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: .78rem; color: var(--navy); text-decoration: none; cursor: pointer; max-width: 100%; }
.road-doc:hover { border-color: var(--gold); }
.road-doc.road-todo { background: var(--navy); color: #fff; border-color: var(--navy); }
.road-end { list-style: none; background: var(--ok-soft); color: var(--ok); border-radius: 12px; padding: 14px; font-weight: 700; }
/* accueil : où en est le projet */
.nn { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.nn + .nn { margin-top: 10px; }
.nn-cur { border-color: rgba(201,169,110,.6); background: #fffdf8; }
.nn-done { background: var(--ok-soft); border-color: transparent; }
.nn-k { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.nn-t { font-weight: 700; color: var(--navy); margin: 3px 0 6px; }
.nn-d { font-size: .82rem; color: #33404f; line-height: 1.45; }
.nn-d + .nn-d { margin-top: 3px; }
/* bouton WhatsApp flottant (mobile) */
.wa-float { display: none; }
@media (max-width: 860px) {
  .nav-item.nav-desktop { display: none; }
  .wa-float { display: grid; place-items: center; position: fixed; right: 16px; bottom: calc(78px + env(safe-area-inset-bottom)); width: 52px; height: 52px; border-radius: 50%; background: #25D366; box-shadow: 0 8px 24px rgba(8,26,51,.25); z-index: 45; }
  .wa-float svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
  #view-dash.hidden ~ .wa-float { display: none; }
}
.l-short { display: none; }
@media (max-width: 860px) { .l-long { display: none; } .l-short { display: inline; } }

.none-links { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 16px; }
.none-links a, .linkish { color: inherit; background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.none-links a:hover, .linkish:hover { color: var(--gold); }

/* Demandes (questionnaires de préconsultation) */
.adm-sub { margin-top: 22px; display: flex; align-items: center; gap: 8px; }
.req-new { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; background: var(--gold); color: var(--ink); border-radius: 999px; padding: 2px 8px; margin-inline-start: 6px; vertical-align: middle; }
.req-done .n { color: var(--muted); }
.qa { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0; border-top: 1px solid var(--border); margin-top: 10px; }
.qa dt, .qa dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .86rem; line-height: 1.5; }
.qa dt { color: var(--muted); padding-inline-end: 14px; }
.qa dd { color: var(--navy); font-weight: 600; }
@media (max-width: 640px) { .qa { grid-template-columns: minmax(0, 1fr); } .qa dt { border-bottom: 0; padding-bottom: 0; } }
.qa-sec { grid-column: 1 / -1; margin-top: 14px; padding: 6px 0 4px; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep, #8A6A2F); border-bottom: 1px solid var(--border); }
.qa .qa-sec:first-child { margin-top: 0; }
