/* =====================================================================
   YK Marketing Agency — Espace client & tableau de bord
   S'appuie sur style.css (couleurs, boutons, champs .fl, animations).
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.portal { min-height: 70vh; }
.nav--portal .nav__inner { justify-content: space-between; }
.pu { display: flex; align-items: center; gap: 10px; }
.pu__avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #9a7330, #e0b96b); color: #080808; font: 600 13px/1 var(--font-ui); }
.pu__name { color: #cfc9bb; font-size: 14px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pu .btn { padding: 9px 16px; font-size: 14px; }
.pfoot { border-top: 1px solid var(--inkline); padding-block: 22px; color: var(--ash); font-size: 13px; }
.pfoot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.pfoot a { color: var(--mist); text-decoration: none; }
.pfoot a:hover { color: #e0b96b; }

/* Bandeau démo */
.demo-banner { position: sticky; top: 68px; z-index: 40; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; padding: 10px var(--gutter);
  background: #e0b96b; color: #080808; font-size: 14px; text-align: center; }
.demo-banner__switch { border: 1px solid #080808; background: transparent; color: #080808; border-radius: 9999px; padding: 6px 14px; font: 600 13px/1 var(--font-ui); cursor: pointer; }
.demo-banner__switch:hover { background: #080808; color: #e0b96b; }

/* ---------------- Connexion ---------------- */
.auth-wrap { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 100px); }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(32px, 6vw, 88px); align-items: center; }
.auth__intro .h-xl { margin-top: 22px; }
.auth__intro .lead { margin-top: 18px; }
.auth__feats { list-style: none; padding: 0; margin-top: 30px; display: grid; gap: 14px; }
.auth__feats li { display: flex; gap: 12px; align-items: flex-start; color: #a9a293; font-size: 15px; }
.auth__feats li > svg { width: 20px; height: 20px; flex: none; color: #0d0c0a; background: #e0b96b; border-radius: 50%; padding: 4px; margin-top: 1px; }
.auth__feats b { display: block; color: #f6f3ec; font-weight: 500; }
.auth__card { position: relative; padding: clamp(22px, 3.5vw, 34px); border-radius: 24px; background: linear-gradient(180deg, #17150f, #100f0c); border: 1px solid var(--edge);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(224, 185, 107, .12); display: grid; gap: 18px; }
.auth__card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(224, 185, 107, .6), transparent 35%, transparent 65%, rgba(224, 185, 107, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.auth__tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 9999px; background: #0d0c0a; border: 1px solid var(--inkline); }
.auth__tabs button { border: 0; background: transparent; color: #a9a293; padding: 11px; border-radius: 9999px; font: 500 14.5px/1 var(--font-ui); cursor: pointer; transition: background-color .3s, color .3s; }
.auth__tabs button.on { background: #f6f3ec; color: #080808; }
.pt-form { display: grid; gap: 14px; }
.pt-form.is-busy { opacity: .7; pointer-events: none; }
.pt-form .btn--xl { width: 100%; }
.auth__or { display: flex; align-items: center; gap: 12px; color: #6e6656; font-size: 13px; }
.auth__or::before, .auth__or::after { content: ""; flex: 1; height: 1px; background: var(--inkline); }
.auth__link { justify-self: center; border: 0; background: none; color: #e0b96b; font: 500 14px/1.4 var(--font-ui); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.auth__note { min-height: 1.4em; font-size: 14px; color: #a9a293; }
.auth__note.is-error { color: #ff8f7a; }
.auth__note.is-ok { color: #55d68a; }
.auth__note.is-info { color: #e0b96b; }
.auth__demo { padding: 16px; border-radius: 14px; border: 1px dashed #7d5c22; background: rgba(224, 185, 107, .06); display: grid; gap: 12px; font-size: 14px; color: #cfc9bb; }
.auth__demo .btn { padding: 9px 16px; font-size: 14px; }
.auth__secure { display: flex; align-items: center; justify-content: center; gap: 8px; color: #6e6656; font-size: 12.5px; }
.auth__secure svg { width: 14px; height: 14px; }

/* ---------------- Commun espace client / admin ---------------- */
.pt-wrap { padding-block: clamp(28px, 4vw, 48px) clamp(56px, 7vw, 96px); display: grid; gap: 18px; }
.pt-loading { min-height: 50vh; display: grid; place-items: center; align-content: center; gap: 14px; color: #a9a293; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--edge); border-top-color: #e0b96b; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pt-hero { display: grid; gap: 12px; padding-bottom: 8px; }
.pt-hero .h-xl { font-size: clamp(38px, 5vw, 64px); }
.pt-hero--row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.pt-select { display: inline-grid; gap: 6px; font-size: 13px; color: #a9a293; max-width: 100%; }
.pt-select select { padding: 11px 40px 11px 14px; border-radius: 12px; border: 1px solid var(--edge); background: #0d0c0a; color: #f6f3ec; font: 400 15px/1.3 var(--font-ui); max-width: 100%;
  -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #e0b96b 50%), linear-gradient(135deg, #e0b96b 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.pt-card { position: relative; padding: clamp(18px, 2.6vw, 28px); border-radius: 22px; background: linear-gradient(180deg, #16140f, #100f0c); border: 1px solid var(--edge); display: grid; gap: 14px; align-content: start; min-width: 0; }
.pt-card__head { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.pt-h { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2vw, 24px); color: #f6f3ec; display: flex; align-items: center; gap: 10px; }
.pt-muted { color: #a9a293; font-size: 14.5px; }
.pt-ok { display: flex; align-items: center; gap: 8px; color: #55d68a; font-size: 14.5px; font-weight: 500; }
.pt-ok svg { width: 16px; height: 16px; }
.pt-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 9999px; background: #231d12; border: 1px solid var(--hot-line); color: #e0b96b; font: 500 12px/1 var(--font-ui); white-space: nowrap; }
.pt-badge--live i { width: 7px; height: 7px; border-radius: 50%; background: #55d68a; animation: blink 1.4s infinite; }
.pt-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 18px; align-items: start; }
.pt-col { display: grid; gap: 18px; min-width: 0; }
.pt-check { display: inline-flex; align-items: center; gap: 8px; color: #a9a293; font-size: 14px; cursor: pointer; }
.pt-check input { accent-color: #c89b4a; width: 16px; height: 16px; }
.pt-secure { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pt-secure svg { width: 14px; height: 14px; flex: none; }
.btn--sm { padding: 8px 14px; font-size: 13.5px; }
.btn svg { width: 16px; height: 16px; }

/* Avancement */
.tracker { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; position: relative; }
.tracker::before { content: ""; position: absolute; left: 10%; right: 10%; top: 19px; height: 2px; background: var(--edge); }
.tracker::after { content: ""; position: absolute; left: 10%; top: 19px; height: 2px; width: calc((var(--step) - 1) * 20%); max-width: 80%;
  background: linear-gradient(90deg, #9a7330, #e0b96b); box-shadow: 0 0 12px rgba(224, 185, 107, .6); animation: grow 1.2s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.tracker__s { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 6px; }
.tracker__dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 500 15px/1 var(--font-mono); letter-spacing: 0; background: #0d0c0a; border: 1px solid var(--edge); color: #6e6656; }
.tracker__dot svg { width: 16px; height: 16px; }
.tracker__s b { font-size: 14px; font-weight: 500; color: #a9a293; }
.tracker__s small { font-size: 12px; color: #6e6656; line-height: 1.35; max-width: 18ch; }
.tracker__s.is-done .tracker__dot { background: #c89b4a; border-color: #c89b4a; color: #080808; }
.tracker__s.is-done b { color: #cfc9bb; }
.tracker__s.is-now .tracker__dot { background: #f6f3ec; border-color: #f6f3ec; color: #080808; box-shadow: 0 0 0 6px rgba(224, 185, 107, .18); animation: pulse-gold 2s infinite; }
.tracker__s.is-now b { color: #f6f3ec; }
.tracker__s.is-now small { color: #a9a293; }
@keyframes pulse-gold { 50% { box-shadow: 0 0 0 10px rgba(224, 185, 107, .05); } }
.pt-next { display: grid; gap: 6px; padding: 16px 18px; border-radius: 16px; background: #0d0c0a; border: 1px solid var(--inkline); justify-items: start; }
.pt-next p { color: #f6f3ec; font-size: 16px; }
.pt-next small { color: #a9a293; }
.pt-next .btn { margin-top: 6px; }

/* Anneau de progression */
.pring { position: relative; width: 58px; height: 58px; flex: none; display: grid; place-items: center; }
.pring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.pring circle { fill: none; stroke-width: 3; }
.pring__bg { stroke: var(--edge); }
.pring__fg { stroke: #e0b96b; stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: calc(97.4 - 97.4 * var(--pct) / 100); animation: ring-in 1.2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ring-in { from { stroke-dashoffset: 97.4; } }
.pring b { font: 500 12.5px/1 var(--font-mono); color: #f6f3ec; letter-spacing: 0; }

/* Checklist */
.needs { list-style: none; padding: 0; display: grid; gap: 10px; }
.need { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px; border-radius: 16px; background: #0d0c0a; border: 1px solid var(--inkline); transition: border-color .3s, background-color .3s; }
.need.is-done { border-color: rgba(85, 214, 138, .25); background: rgba(85, 214, 138, .03); }
.need__state { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed var(--hairline); background: transparent; color: #0d0c0a; padding: 0; }
button.need__state { cursor: pointer; }
.need.is-done .need__state { border: 0; background: #55d68a; }
.need__state svg { width: 14px; height: 14px; }
.need__main { display: grid; gap: 6px; min-width: 0; }
.need__main b { color: #f6f3ec; font-weight: 500; }
.need.is-done .need__main b { color: #cfc9bb; }
.need__main small { color: #8a8170; font-size: 13.5px; line-height: 1.45; }
.need__files { font-size: 12.5px; color: #55d68a; overflow-wrap: anywhere; }
.need__toggle { justify-self: start; }
.needs--admin .need { grid-template-columns: 30px minmax(0, 1fr) auto; }
.item-add { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; margin-top: 4px; }
.item-add input[name="label"] { padding: 11px 14px; border-radius: 12px; border: 1px solid var(--edge); background: #0d0c0a; color: #f6f3ec; font: 400 15px/1.3 var(--font-ui); min-width: 0; }
.item-add input[name="label"]:focus { outline: none; border-color: #e0b96b; }

/* Dépôt de fichiers */
.drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 16px; border: 1.5px dashed var(--hairline); background: rgba(224, 185, 107, .03); cursor: pointer;
  transition: border-color .3s, background-color .3s, transform .3s cubic-bezier(.2, .8, .2, 1); }
.drop:hover, .drop.is-drag { border-color: #e0b96b; background: rgba(224, 185, 107, .08); }
.drop.is-drag { transform: scale(1.015); }
.drop__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop__input:focus-visible + .drop__ico { outline: 2px solid #e0b96b; outline-offset: 3px; }
.drop__ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #231d12; color: #e0b96b; }
.drop__ico svg { width: 20px; height: 20px; }
.drop__txt { display: grid; gap: 2px; }
.drop__txt b { color: #f6f3ec; font-weight: 500; font-size: 15px; }
.drop__txt small { color: #8a8170; font-size: 13px; }
.drop--sm { padding: 10px 12px; gap: 10px; }
.drop--sm .drop__ico { width: 32px; height: 32px; border-radius: 10px; }
.drop--sm .drop__ico svg { width: 16px; height: 16px; }
.drop--sm .drop__txt b { font-size: 14px; }
.drop.is-busy { pointer-events: none; border-style: solid; border-color: #e0b96b; overflow: hidden; }
.drop.is-busy::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 40%; background: linear-gradient(90deg, transparent, #e0b96b, transparent); animation: busy 1.1s linear infinite; }
@keyframes busy { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* Fichiers */
.files { list-style: none; padding: 0; display: grid; gap: 8px; }
.frow { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #0d0c0a; border: 1px solid var(--inkline); }
.frow__ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #1c1914; color: #e0b96b; }
.frow__ico svg { width: 18px; height: 18px; }
.frow__main { display: grid; min-width: 0; }
.frow__main b { color: #f6f3ec; font-weight: 500; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow__main small { color: #8a8170; font-size: 12.5px; }
.ibtn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--edge); background: transparent; color: #cfc9bb; cursor: pointer; transition: all .25s; padding: 0; }
.ibtn svg { width: 17px; height: 17px; }
.ibtn:hover { border-color: #e0b96b; color: #e0b96b; }
.ibtn--danger:hover { border-color: #ff8f7a; color: #ff8f7a; }

/* Messagerie */
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; padding: 4px 2px; scroll-behavior: smooth; }
.chat__empty { color: #8a8170; font-size: 14.5px; padding: 18px 0; text-align: center; }
.msg { max-width: 82%; align-self: flex-start; display: grid; gap: 4px; animation: msg-in .45s cubic-bezier(.2, .8, .2, 1) both; }
.msg p { padding: 12px 15px; border-radius: 18px 18px 18px 6px; background: #1c1914; border: 1px solid var(--edge); color: #f6f3ec; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.msg small { color: #6e6656; font-size: 12px; padding-left: 6px; }
.msg--me { align-self: flex-end; }
.msg--me p { background: #f6f3ec; border-color: #f6f3ec; color: #15120d; border-radius: 18px 18px 6px 18px; }
.msg--me small { text-align: right; padding-right: 6px; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.chat__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.chat__form textarea { width: 100%; resize: vertical; min-height: 52px; max-height: 200px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--edge); background: #0d0c0a; color: #f6f3ec; font: 400 15.5px/1.45 var(--font-ui); }
.chat__form textarea:focus { outline: none; border-color: #e0b96b; box-shadow: 0 0 0 4px rgba(224, 185, 107, .12); }
.chat__form .btn { height: 52px; }

.pt-empty { justify-items: start; padding: clamp(28px, 4vw, 44px); }
.pt-empty__ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #231d12; color: #e0b96b; }
.pt-empty__ico svg { width: 26px; height: 26px; }
.pt-empty p { color: #cfc9bb; max-width: 56ch; }

/* ---------------- Tableau de bord admin ---------------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { padding: 20px; border-radius: 20px; background: linear-gradient(180deg, #16140f, #100f0c); border: 1px solid var(--edge); display: grid; gap: 4px; }
.kpi strong { font: 500 clamp(34px, 4vw, 48px)/1 var(--font-display); color: #f6f3ec; font-variant-numeric: lining-nums tabular-nums; }
.kpi span { color: #a9a293; font-size: 14px; }
.kpi--warn strong { color: #e0b96b; }
.kpi--hot { border-color: var(--hot-line); background: linear-gradient(180deg, #231d12, #14110b); }
.kpi--hot strong { color: #e0b96b; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 8px; }
.search { flex: 1 1 280px; }
.search input { width: 100%; padding: 13px 18px; border-radius: 9999px; border: 1px solid var(--edge); background: #0d0c0a; color: #f6f3ec; font: 400 15px/1.3 var(--font-ui); }
.search input:focus { outline: none; border-color: #e0b96b; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { padding: 8px 14px; border-radius: 9999px; border: 1px solid var(--edge); background: transparent; color: #a9a293; font: 500 13px/1 var(--font-ui); cursor: pointer; transition: all .25s; }
.fchip:hover { color: #f6f3ec; border-color: var(--hairline); }
.fchip.on { background: #f6f3ec; border-color: #f6f3ec; color: #080808; }
.plist { display: grid; gap: 8px; }
.prow { width: 100%; text-align: left; display: grid; grid-template-columns: 44px minmax(0, 1.6fr) auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 18px;
  border-radius: 18px; border: 1px solid var(--edge); background: #12100d; color: inherit; font: inherit; cursor: pointer; transition: border-color .25s, background-color .25s, transform .3s cubic-bezier(.2, .8, .2, 1); }
.prow:hover { border-color: var(--hairline); background: #17140f; transform: translateX(4px); }
.prow.has-unread { border-color: var(--hot-line); }
.prow.is-archived { opacity: .55; }
.prow__av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #231d12; border: 1px solid var(--hot-line); color: #e0b96b; font: 600 14px/1 var(--font-ui); flex: none; }
.prow__main { display: grid; min-width: 0; }
.prow__main b { color: #f6f3ec; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow__main small { color: #8a8170; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow__bar { display: grid; gap: 6px; min-width: 0; }
.prow__bar small { color: #8a8170; font-size: 12.5px; }
.bar { display: block; height: 5px; border-radius: 9999px; background: var(--edge); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9a7330, #e0b96b); }
.prow__meta { display: grid; justify-items: end; gap: 6px; min-width: 74px; }
.prow__meta small { color: #6e6656; font-size: 12.5px; white-space: nowrap; }
.dotcount { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 9999px; display: grid; place-items: center; background: #e0b96b; color: #080808; font: 600 12px/1 var(--font-ui); animation: pulse-gold 2s infinite; }
.stepchip { display: inline-block; padding: 6px 12px; border-radius: 9999px; font: 500 12.5px/1 var(--font-ui); border: 1px solid var(--edge); color: #cfc9bb; white-space: nowrap; }
.stepchip.s1 { color: #a9a293; }
.stepchip.s2 { color: #e0b96b; border-color: var(--hot-line); }
.stepchip.s3 { background: #231d12; color: #f8e7b8; border-color: var(--hot-line); }
.stepchip.s4 { background: #e0b96b; color: #080808; border-color: #e0b96b; }
.stepchip.s5 { background: rgba(85, 214, 138, .14); color: #55d68a; border-color: rgba(85, 214, 138, .35); }
.pt-none { padding: 24px; text-align: center; }
.orphans { margin-top: 12px; display: grid; gap: 12px; }
.orphans ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.orphans li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 16px; border: 1px dashed var(--hairline); }

/* Panneau latéral */
.drawer { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.drawer__back { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .4s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(640px, 100%); overflow-y: auto; overscroll-behavior: contain; background: #0d0c0a; border-left: 1px solid var(--edge);
  box-shadow: -30px 0 80px rgba(0, 0, 0, .6); transform: translateX(104%); transition: transform .55s cubic-bezier(.7, 0, .2, 1); padding: clamp(18px, 3vw, 30px); display: grid; gap: 4px; align-content: start; }
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__back { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.dr__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; padding-bottom: 18px; border-bottom: 1px solid var(--inkline); }
.dr__head .h-md { margin-top: 6px; }
.dr__head .pt-muted { margin-top: 8px; }
.dr__head a { color: #e0b96b; }
.dr__sec { display: grid; gap: 14px; padding-block: 22px; border-bottom: 1px solid var(--inkline); }
.dr__sec:last-child { border-bottom: 0; }
.stepper { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.stepper__b { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--edge); background: transparent; color: #a9a293; font: 500 12px/1.2 var(--font-ui); cursor: pointer; transition: all .25s; }
.stepper__b span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--edge); font: 500 12px/1 var(--font-mono); }
.stepper__b:hover { border-color: var(--hairline); color: #f6f3ec; }
.stepper__b.done span { background: #c89b4a; border-color: #c89b4a; color: #080808; }
.stepper__b.on { border-color: #e0b96b; background: #231d12; color: #f6f3ec; }
.stepper__b.on span { background: #f6f3ec; border-color: #f6f3ec; color: #080808; }
.chat--dr { max-height: 340px; }
.cat-row { margin-bottom: -4px; }

/* Boîtes de dialogue */
.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.modal__back { position: absolute; inset: 0; background: rgba(0, 0, 0, .65); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.modal__box { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: clamp(22px, 3.5vw, 32px); border-radius: 22px; background: #12100d; border: 1px solid var(--edge);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6); display: grid; gap: 16px; opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .3s, transform .4s cubic-bezier(.2, .8, .2, 1); }
.modal.is-open { pointer-events: auto; }
.modal.is-open .modal__back { opacity: 1; }
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal__text { color: #cfc9bb; }

/* Notifications */
.toasts { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: min(92vw, 460px); }
.toast { padding: 12px 18px; border-radius: 14px; background: #f6f3ec; color: #15120d; font-size: 14.5px; font-weight: 500; box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .3s, transform .4s cubic-bezier(.2, .8, .2, 1); text-align: center; }
.toast.on { opacity: 1; transform: none; }
.toast--ok { background: #55d68a; color: #0d0c0a; }
.toast--error { background: #ff8f7a; color: #1a0a06; }

/* Étincelles */
.burst { position: fixed; z-index: 130; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; animation: burst 1.3s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) rotate(540deg); opacity: 0; } }

/* ---------------- Responsive ---------------- */
@media (max-width: 1040px) {
  .auth, .pt-grid { grid-template-columns: minmax(0, 1fr); }
  .auth__card { max-width: 560px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prow { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .prow__bar { grid-column: 2 / 3; }
  .prow__step { grid-column: 3; grid-row: 1; }
  .prow__meta { grid-column: 3; grid-row: 2; }
}
@media (max-width: 640px) {
  .pu__name { display: none; }
  .pu .btn { padding: 8px 12px; font-size: 13px; }
  .demo-banner { top: 68px; font-size: 13px; }
  .pt-hero--row { grid-template-columns: minmax(0, 1fr); }
  .pt-hero--row .btn--xl { width: 100%; }
  .tracker { grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: 4px; }
  .tracker::before, .tracker::after { left: 23px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; max-width: none; }
  .tracker::after { height: calc((var(--step) - 1) * 25%); max-height: calc(100% - 40px); bottom: auto; transform-origin: top; animation-name: grow-v; }
  .tracker__s { grid-template-columns: 40px minmax(0, 1fr); justify-items: start; text-align: left; column-gap: 14px; row-gap: 0; padding-bottom: 14px; }
  .tracker__dot { grid-row: span 2; }
  .tracker__s small { max-width: none; }
  .need { grid-template-columns: 30px minmax(0, 1fr); }
  .needs--admin .need { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .msg { max-width: 92%; }
  .chat__form .btn span { display: none; }
  .chat__form .btn { width: 52px; padding: 0; }
  .kpi { padding: 16px; }
  .prow { padding: 12px 14px; gap: 12px; }
  .stepper { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stepper__b { font-size: 10.5px; padding: 8px 2px; }
  .item-add { grid-template-columns: minmax(0, 1fr) auto; }
  .item-add .btn { grid-column: span 2; }
  .orphans li { grid-template-columns: 44px minmax(0, 1fr); }
  .orphans li .btn { grid-column: span 2; }
  .frow { grid-template-columns: 36px minmax(0, 1fr) auto auto; }
}
@keyframes grow-v { from { transform: scaleY(0); } }
@media (prefers-reduced-motion: reduce) {
  .tracker::after, .pring__fg, .msg, .tracker__s.is-now .tracker__dot, .dotcount, .spinner { animation: none !important; }
}
@media (max-width: 640px) {
  .nav--portal .brand span { display: none; }
  .stepper__b { font-size: 0; gap: 0; padding: 8px 2px; }
  .stepper__b span { font-size: 12px; width: 30px; height: 30px; }
}
.fl.is-invalid input, .fl.is-invalid textarea { border-color: #ff8f7a; box-shadow: 0 0 0 4px rgba(255, 143, 122, .15); } .consent.is-invalid { color: #ff8f7a; } .consent.is-invalid input { outline: 2px solid #ff8f7a; outline-offset: 2px; } .auth__note { scroll-margin: 120px; }
