/* FM Gestion v2 — charte filmmariage.fr */
:root {
  --bg: #F7F6F3;
  --surface: #FFFFFF;
  --surface-2: #FAF9F7;
  --ink: #1E1F24;
  --ink-2: #3D3F45;
  --muted: #5F6168;
  --line: #E6E4DF;
  --line-2: #EEECE7;
  --hover: #F2F0EB;
  --accent: #D9434E;
  --accent-ink: #B8323D;
  --accent-soft: #FCEBEC;
  --red: #A3222D;     --red-bg: #FDE8E8;
  --amber: #7A4A00;   --amber-bg: #FFF1DB;
  --blue: #1F4FA3;    --blue-bg: #E3EEFF;
  --green: #1C6B47;   --green-bg: #DFF3EA;
  --gray: #4A4C53;    --gray-bg: #EFEDE8;
  --radius: 14px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font); }
a { color: var(--accent-ink); }
a:hover { color: #8E2530; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tone-green { color: var(--green); }
.tone-red { color: var(--red); }
.ic { flex: none; }

/* ---------- Structure ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 264px; flex: none; background: var(--surface); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.sidebar-top { padding: 24px 20px 8px; display: flex; align-items: center; justify-content: space-between; }
.brand img { display: block; width: 196px; height: auto; }
.sidebar .menu-toggle { display: none; }
.sidebar-body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 16px 12px 12px; overflow-y: auto; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-title { margin: 20px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--gray); text-decoration: none; font-size: 14px; font-weight: 500; min-height: 44px; }
.nav-link:hover { background: var(--hover); color: var(--ink); }
.nav-link.is-active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.nav-link.is-soon { color: #8A8C92; cursor: default; }
.nav-link.is-soon:hover { background: none; color: #8A8C92; }
.nav-link em { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 600; background: var(--gray-bg); color: var(--muted); padding: 2px 7px; border-radius: 99px; }
.old-link { margin-top: 18px; font-size: 13px; }
.userbox { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 14px 12px 6px; border-top: 1px solid var(--line-2); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; flex: none; }
.userbox-text { display: flex; flex-direction: column; min-width: 0; }
.userbox-text strong { font-size: 14px; }
.userbox-text form { margin: 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: 12.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link-btn:hover { color: var(--ink); }

.main { flex: 1; min-width: 0; padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 20px; max-width: 1560px; }

/* ---------- Éléments ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid #E2E0DA; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--hover); color: var(--ink); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn-block { width: 100%; }
.btn.is-disabled { opacity: .45; cursor: not-allowed; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid #E2E0DA; background: var(--surface); color: var(--gray); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; list-style: none; }
.icon-btn::-webkit-details-marker { display: none; }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.card.pad { padding: 20px 22px; }
.card-title { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.card-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.3; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge-relance { background: var(--red-bg); color: var(--red); }
.badge-refuse { background: #EDEBE6; color: #6B6760; }
.badge-attente { background: var(--amber-bg); color: var(--amber); }
.badge-signe { background: var(--blue-bg); color: var(--blue); }
.badge-regle { background: var(--green-bg); color: var(--green); }
.badge-neutre { background: var(--gray-bg); color: var(--gray); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-relance { background: var(--red); } .dot-attente { background: #C27A00; } .dot-signe { background: var(--blue); } .dot-regle { background: var(--green); } .dot-refuse { background: #9A958C; }
.tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; white-space: nowrap; text-decoration: none; }
.tag-soon { background: var(--accent); color: #fff; }
.tag-warn { background: var(--amber-bg); color: var(--amber); }
.tag-neutral { background: var(--gray-bg); color: var(--gray); }
.pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; margin-left: 6px; }
.pill-ok { background: var(--green-bg); color: var(--green); }
.pill-wait { background: var(--gray-bg); color: var(--gray); }
.bar { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--blue); border-radius: 99px; min-width: 0; }
.bar > span.is-full { background: var(--green); }
.bar-lg { height: 8px; margin: 6px 0; }

.flash { padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; transition: opacity .4s; }
.flash-success { background: var(--green-bg); color: var(--green); }
.flash-error { background: var(--red-bg); color: var(--red); }
.flash.is-hiding { opacity: 0; }

/* ---------- En-tête de page ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.page-head-text { flex: 1 1 240px; }
.page-head h1 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.page-head p { margin: 4px 0 0; font-size: 14px; }
.search { flex: 0 1 340px; margin: 0; }
.search-box { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid #E2E0DA; border-radius: 12px; padding: 0 14px; height: 44px; color: var(--muted); }
.search-box:focus-within { border-color: var(--accent); }
.search-box input { border: 0; outline: 0; flex: 1; min-width: 0; background: transparent; font-size: 14px; color: var(--ink); }

/* ---------- Indicateurs ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi-label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.kpi-value { font-size: 21px; font-weight: 700; margin-top: 4px; }
.kpi-sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Filtres ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid #E2E0DA; background: var(--surface); color: var(--ink-2); text-decoration: none; font-size: 13px; font-weight: 500; }
.chip:hover { border-color: #C9C6BE; color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .n { font-size: 12px; opacity: .75; }
.selects { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.select { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.select select { height: 38px; border: 1px solid #E2E0DA; border-radius: 10px; background: var(--surface); padding: 0 30px 0 10px; font-size: 13px; font-weight: 500; color: var(--ink); }

/* ---------- Liste clients ---------- */
.list { overflow: visible; }
.list-head, .crow { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.35fr) minmax(0, 1.6fr) minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 1.35fr) 124px; gap: 16px; align-items: center; padding: 14px 20px; }
.list-head { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-radius: 16px 16px 0 0; padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.crow { border-top: 1px solid var(--line-2); }
.list-head + .crow, .list-head + .empty + .crow { border-top: 0; }
.crow:hover { background: #FBFAF8; }
.crow:last-child { border-radius: 0 0 16px 16px; }
.c-name { display: flex; flex-direction: column; min-width: 0; }
.name-link { font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; }
.name-link:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.c-date { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tags:empty { display: none; }
.c-lieu { display: flex; gap: 6px; align-items: flex-start; font-size: 13.5px; min-width: 0; }
.c-lieu .ic { margin-top: 3px; color: var(--muted); }
.c-lieu span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.c-formule { font-size: 13px; color: var(--ink-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pay-line { display: flex; justify-content: space-between; gap: 6px; font-size: 12.5px; margin-bottom: 6px; white-space: nowrap; }
.c-actions { display: flex; gap: 6px; justify-content: flex-end; }
.empty { padding: 40px 20px; text-align: center; }
.empty p { margin: 4px 0; }

/* Menu documents */
.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(30, 31, 36, .12); padding: 6px; display: flex; flex-direction: column; }
.menu-title { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 6px; }
.menu-pop a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; }
.menu-pop a:hover { background: var(--hover); }

/* ---------- Fiche client ---------- */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; align-self: flex-start; }
.back-link:hover { color: var(--ink); }
.client-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.client-head h1 { font-size: 26px; font-weight: 700; margin: 2px 0 10px; }
.client-head p { margin: 0; }
.client-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.meta-item { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.client-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.client-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.client-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 0; }
.dl > div { min-width: 0; }
.dl .span-2 { grid-column: span 2; }
.dl dt { font-size: 12.5px; color: var(--muted); }
.dl dd { margin: 2px 0 0; font-weight: 600; font-size: 14.5px; }
.dl-compact { margin-top: 16px; }
.break { overflow-wrap: anywhere; }
.pay-box { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.pay-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.pay-row > span:first-child { color: var(--muted); }
.pay-val { font-weight: 600; white-space: nowrap; }
.pay-total { padding-top: 8px; border-top: 1px solid var(--line); }
.checks { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.check.is-on { color: var(--ink); }
.check-box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #C9C6BE; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.check.is-on .check-box { background: var(--green); border-color: var(--green); color: #fff; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 12px; }
.doc { display: flex; align-items: center; gap: 10px; padding: 0 12px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 500; }
.doc:hover { border-color: var(--accent); color: var(--accent-ink); }
.notes, .files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.note { padding: 12px 0; border-top: 1px solid var(--line-2); }
.note:first-child { border-top: 0; padding-top: 0; }
.note-body { margin-top: 4px; font-size: 14px; overflow-wrap: anywhere; }
.files li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.files li:first-child { border-top: 0; padding-top: 0; }
.file-link { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; text-decoration: none; overflow-wrap: anywhere; }

/* ---------- Connexion ---------- */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 36px 32px; box-shadow: 0 20px 50px rgba(30, 31, 36, .06); }
.login-logo { display: block; width: 240px; height: auto; margin-bottom: 26px; }
.login-card h1 { font-size: 22px; font-weight: 700; }
.login-card > p { margin: 6px 0 22px; font-size: 14px; }
.form-stack { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; }
.field input { height: 46px; border: 1px solid #D9D6CF; border-radius: 12px; padding: 0 14px; font-size: 15px; font-weight: 400; background: var(--surface); }
.field input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Tablette ---------- */
@media (max-width: 1180px) {
  .list-head { display: none; }
  .crow { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "name date actions" "lieu statut pay" "formule statut pay"; row-gap: 8px; }
  .crow:first-of-type { border-top: 0; }
  .c-name { grid-area: name; } .c-date { grid-area: date; } .c-actions { grid-area: actions; }
  .c-lieu { grid-area: lieu; } .c-formule { grid-area: formule; } .c-statut { grid-area: statut; } .c-pay { grid-area: pay; }
  .client-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .app { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: sticky; top: 0; z-index: 30; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-top { padding: 12px 16px; }
  .brand img { width: 160px; }
  .sidebar .menu-toggle { display: inline-flex; width: 44px; height: 44px; }
  .sidebar-body { display: none; padding: 0 12px 16px; max-height: calc(100vh - 70px); }
  .sidebar.is-open .sidebar-body { display: flex; }
  .main { padding: 18px 16px 40px; gap: 16px; }
  .page-head h1, .client-head h1 { font-size: 22px; }
  .page-head { gap: 12px; }
  .page-head-text { flex: 1 1 0; min-width: 0; }
  .search { flex: 1 1 100%; order: 3; }
  .page-head .btn { width: 44px; padding: 0; }
  .page-head .btn .btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px 14px; }
  .kpi-label { font-size: 12px; }
  .kpi-value { font-size: 17px; margin-top: 2px; }
  .kpi-sub { display: none; }
  .kpi:first-child .kpi-sub { display: block; }
  .filters { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .chip { flex: none; }
  .selects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .select { flex-direction: column; align-items: stretch; gap: 4px; font-size: 12px; min-width: 0; }
  .select select { width: 100%; min-width: 0; padding-right: 22px; }
  .list { background: transparent; border: 0; display: flex; flex-direction: column; gap: 10px; }
  .crow { background: var(--surface); border: 1px solid var(--line) !important; border-radius: 16px !important; padding: 14px 16px;
          grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name actions" "date date" "lieu lieu" "statut statut" "pay pay"; }
  .c-formule { display: none; }
  .c-date { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  .client-head { align-items: flex-start; }
  .client-head-actions { width: 100%; }
  .client-head-actions .btn { flex: 1; }
  .dl { grid-template-columns: minmax(0, 1fr); }
  .dl .span-2 { grid-column: auto; }
  .card.pad { padding: 16px; }
}

/* =================== Étapes 2 à 5 =================== */
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.clamp-2 { margin: 2px 0 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.narrow { max-width: 760px; }
.sub-title { font-size: 12px; font-weight: 700; color: var(--muted); margin: 18px 0 8px; text-transform: uppercase; letter-spacing: .06em; }
.flash-warn { background: var(--amber-bg); color: var(--amber); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.flash-warn a { color: var(--amber); font-weight: 600; }

/* Formulaires */
.input { width: 100%; min-height: 44px; border: 1px solid #D9D6CF; border-radius: 12px; padding: 0 12px; font-size: 14.5px; background: var(--surface); color: var(--ink); }
textarea.input { padding: 10px 12px; line-height: 1.5; resize: vertical; }
select.input { padding-right: 30px; }
.input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input[readonly] { background: var(--surface-2); color: var(--ink-2); }
.input-sm { min-height: 38px; font-size: 13.5px; border-radius: 10px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field .muted a { color: var(--muted); }
.field em { color: var(--accent); font-style: normal; }
.field small { font-weight: 400; }
.span-2 { grid-column: span 2; }
.form-grid { display: flex; flex-direction: column; gap: 16px; max-width: 980px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.form-stack .form-actions { margin-top: 4px; }
.calc { display: flex; gap: 12px; }
.calc > div { flex: 1; background: var(--surface-2); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; }
.calc strong { font-size: 17px; }
.prefill summary { cursor: pointer; list-style: none; }
.prefill summary::-webkit-details-marker { display: none; }
.prefill[open] summary { margin-bottom: 12px; }
.prefill .btn { margin-top: 10px; }
.extra-lines { margin-top: 14px; }
.extra-lines summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--accent-ink); margin-bottom: 10px; }
.extra-lines .fields { margin-bottom: 10px; }
.seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid #E2E0DA; border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 500; background: var(--surface); }
.seg label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }
.seg input { accent-color: var(--accent); }
.seg-wrap label { flex: 1 1 260px; }

/* Boutons supplémentaires */
.btn-sm { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #33353C; color: #fff; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { background: #861B25; color: #fff; }
.btn-danger-outline { color: var(--red); border-color: #F0C5C8; }
.btn-danger-outline:hover { background: var(--red-bg); color: var(--red); }
.btn[disabled], .icon-btn[disabled] { opacity: .45; cursor: not-allowed; }
.link-btn.danger { color: var(--red); }
.icon-btn.is-done { background: var(--green-bg); color: var(--green); border-color: var(--green-bg); }

/* Fiche client */
.badge-select { appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; padding: 6px 30px 6px 12px; font: 600 12.5px var(--font); cursor: pointer; min-height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.status-form { margin: 0; }
.toggle-form { margin: 0; }
.checks { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
button.check { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 14px; color: var(--muted); min-height: 44px; }
button.check:hover { background: var(--hover); }
button.check:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
button.check.is-on { color: var(--ink); }
.check-label { display: flex; flex-direction: column; }
.check-label small { font-size: 11.5px; }
.note-form { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; margin-bottom: 14px; }
.note-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.note-actions { display: flex; gap: 12px; align-items: center; }
.note-actions form { margin: 0; }
.note .note-form { margin: 8px 0 0; }
.link-row { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.link-row form { margin: 0; }
.link-lang { font-size: 11px; font-weight: 700; background: var(--gray-bg); color: var(--gray); padding: 3px 7px; border-radius: 6px; flex: none; }
.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mini-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.mini-list li:first-child { border-top: 0; }
.mini-list a { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; text-decoration: none; }
.mini-list .mini-total { font-weight: 700; border-top: 1.5px solid var(--ink); }
.dropzone { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px dashed #D2CFC7; border-radius: 12px; cursor: pointer; margin-bottom: 14px; color: var(--ink-2); position: relative; }
.dropzone:hover, .dropzone:focus-within { border-color: var(--accent); background: #FFF8F5; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-meta { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.file-meta form { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.danger-zone { border-color: #F3D6D8; }

/* Dialogues */
.dialog { border: 0; border-radius: 18px; padding: 24px; width: min(560px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(30, 31, 36, .25); color: var(--ink); }
.dialog::backdrop { background: rgba(30, 31, 36, .45); }
.dialog h2 { font-size: 19px; }
.dialog p { margin: 0; }

/* Listes simples (factures, formules, recettes…) */
.list-simple { overflow: hidden; }
.list-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 20px 6px; }
.list-title .card-title { margin: 0; }
.srow, .rrow { display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-top: 1px solid var(--line-2); }
.list-title + .srow, .list-title + .rrow, .list-title + .empty + .srow { border-top: 0; }
.srow:hover, .rrow:hover { background: #FBFAF8; }
.srow-main, .rrow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.srow-actions { display: flex; gap: 6px; align-items: center; }
.srow-actions form { margin: 0; }
.inv-num { font-weight: 700; font-size: 13px; background: var(--blue-bg); color: var(--blue); padding: 4px 9px; border-radius: 8px; white-space: nowrap; }
.inv-num.is-avoir { background: var(--red-bg); color: var(--red); }
.date-chip { display: flex; flex-direction: column; align-items: center; width: 52px; flex: none; line-height: 1.1; }
.date-chip strong { font-size: 19px; }
.date-chip span { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.rrow-date { font-weight: 700; font-size: 13px; width: 44px; flex: none; }
.rrow-amount { white-space: nowrap; }
.rrow-edit { padding: 14px 20px; background: var(--surface-2); border-top: 1px solid var(--line-2); }
.totals { padding: 14px 20px; border-top: 1.5px solid var(--ink); display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals-main { font-size: 16px; font-weight: 700; color: var(--green); }

/* Réglages */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { padding: 9px 14px; border-radius: 10px; text-decoration: none; color: var(--gray); font-size: 13.5px; font-weight: 600; min-height: 40px; display: inline-flex; align-items: center; }
.tab:hover { background: var(--hover); color: var(--ink); }
.tab.is-on { background: var(--ink); color: #fff; }
.edit-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; }
.edit-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.edit-list li:first-child { border-top: 0; }
.edit-list li > form { margin: 0; }
.inline-form { display: flex; gap: 8px; align-items: center; flex: 1; margin: 0; }
.usage { width: 80px; text-align: right; flex: none; }
.add-row { padding-top: 12px; border-top: 1px solid var(--line); }

/* Mise en page à deux colonnes */
.split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.split-side { display: flex; flex-direction: column; gap: 20px; }
aside.split-side { min-width: 0; }

/* Graphique en barres */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 200px; padding-top: 6px; }
.chart-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; text-decoration: none; color: var(--muted); min-width: 0; }
.chart-bar { width: 100%; max-width: 34px; background: var(--blue-bg); border-radius: 6px 6px 2px 2px; transition: background .2s; }
.chart-col:hover .chart-bar { background: #BFD4F7; }
.chart-col.is-on .chart-bar { background: var(--blue); }
.chart-val { font-size: 10.5px; font-weight: 600; color: var(--ink-2); min-height: 14px; }
.chart-lbl { font-size: 11px; }
.chart-col.is-on .chart-lbl { color: var(--ink); font-weight: 700; }

/* À faire */
.todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.todo li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.todo li:first-child { border-top: 0; }
.todo-ic { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.tone-bg-red { background: var(--red-bg); color: var(--red); }
.tone-bg-amber { background: var(--amber-bg); color: var(--amber); }
.tone-bg-blue { background: var(--blue-bg); color: var(--blue); }
.todo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.todo-main .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1180px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .client-grid { display: flex; flex-direction: column; }
  .client-col { display: contents; }
  .client-col > section { order: 9; }
  #mariage { order: 1; } #paiement { order: 2; } #suivi { order: 3; } #documents { order: 4; } #notes { order: 5; }
  .danger-zone { order: 10 !important; }
}
@media (max-width: 860px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .srow, .rrow { flex-wrap: wrap; padding: 12px 16px; gap: 8px 12px; }
  .srow-main, .rrow-main { flex-basis: calc(100% - 120px); }
  .list-title { padding: 16px 16px 4px; }
  .chart { height: 150px; gap: 4px; }
  .chart-val { display: none; }
  .usage { display: none; }
  .form-actions .btn { flex: 1; }
  .dialog { padding: 18px; }
  .calc { flex-direction: column; }
  .page-head .selects { order: 4; }
}

.consent-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; background: var(--amber-bg); color: var(--amber); padding: 10px 12px; border-radius: 10px; }
.consent-row input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--accent); }

.pay-sub > span:first-child { padding-left: 12px; border-left: 2px solid var(--line); }
.inline-del { display: inline; margin: 0 0 0 6px; }
.icon-btn-xs { width: 28px; height: 28px; border-radius: 8px; vertical-align: middle; }
.seg-pay label { flex: 1 1 auto; justify-content: center; }

/* =================== Calendrier =================== */
:root { --rose: #A3223F; --rose-bg: #FBD9E1; --rose-line: #F2A7B8; --sky: #1B5E8C; --sky-bg: #D7EEFC; --sky-line: #9CCDEF; }
.cal-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot-officiel { background: #E85C7E; } .dot-option { background: #6BB8EA; } .dot-nv { background: #fff; border: 1.5px dashed #9A9CA2; }
.tag-cal-officiel { background: var(--rose-bg); color: var(--rose); }
.tag-cal-option { background: var(--sky-bg); color: var(--sky); }
.cal-choice { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.cal-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 12px; border: 1.5px solid #E2E0DA; background: var(--surface); font: 600 13.5px var(--font); cursor: pointer; color: var(--ink-2); }
.cal-btn .cal-dot { width: 10px; height: 10px; }
.cal-option .cal-dot { background: #6BB8EA; } .cal-officiel .cal-dot { background: #E85C7E; }
.cal-option:hover { border-color: var(--sky-line); } .cal-officiel:hover { border-color: var(--rose-line); }
.cal-option.is-on { background: var(--sky-bg); border-color: var(--sky-line); color: var(--sky); }
.cal-officiel.is-on { background: var(--rose-bg); border-color: var(--rose-line); color: var(--rose); }

.agenda { display: flex; flex-direction: column; gap: 14px; }
.agenda-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.agenda-title { font-size: 20px; font-weight: 700; min-width: 170px; }
.agenda-nav { display: flex; gap: 6px; align-items: center; }
.flip .ic { transform: rotate(180deg); }
.cal-legend { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); }
.cal-legend li { display: inline-flex; align-items: center; gap: 6px; }
.cal-months { display: flex; gap: 4px; align-items: center; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cal-month { flex: 1 0 58px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600; min-height: 44px; }
.cal-month:hover { background: var(--hover); color: var(--ink); }
.cal-month.is-on { background: var(--ink); color: #fff; }
.cal-month-dots { display: flex; gap: 3px; min-height: 16px; }
.cal-month-dots b { font-size: 10.5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.n-officiel { background: var(--rose-bg); color: var(--rose); } .n-option { background: var(--sky-bg); color: var(--sky); } .n-nv { background: var(--gray-bg); color: var(--gray); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); gap: 1px; }
.cal-dow { background: var(--surface-2); text-align: center; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 8px 0; }
.cal-dow.is-we { color: var(--ink-2); }
.cal-cell { background: var(--surface); min-height: 96px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-cell.is-we { background: #FCFBF9; }
.cal-cell.is-out { background: var(--surface-2); }
.cal-cell.is-past .cal-day { color: #A5A7AD; }
.cal-day { font-size: 12.5px; font-weight: 600; color: var(--ink-2); width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.cal-cell.is-today .cal-day { background: var(--accent); color: #fff; }
.cal-ev { display: block; padding: 5px 7px; border-radius: 8px; font-size: 12px; font-weight: 600; text-decoration: none; line-height: 1.25; border-left: 3px solid transparent; min-width: 0; }
.cal-ev-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-officiel { background: var(--rose-bg); color: var(--rose); border-left-color: #E85C7E; }
.ev-option { background: var(--sky-bg); color: var(--sky); border-left-color: #6BB8EA; }
.ev-nv { background: var(--surface); color: var(--gray); border: 1.5px dashed #C9C6BE; border-left-width: 1.5px; }
.cal-ev:hover { filter: brightness(.97); text-decoration: underline; text-underline-offset: 2px; }
.cal-cell.is-multi { box-shadow: inset 0 0 0 2px #F5C26B; }
.cal-list { display: none; list-style: none; margin: 0; padding: 0; }
.cal-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.cal-list li:first-child { border-top: 0; }
.cal-empty { margin: 0; }
@media (max-width: 860px) {
  .cal-legend { margin-left: 0; width: 100%; }
  .agenda-title { min-width: 0; flex: 1; font-size: 18px; }
  .cal-cell { min-height: 54px; padding: 4px 3px; align-items: center; }
  .cal-day { width: 22px; height: 22px; font-size: 12px; }
  .cal-ev { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; }
  .cal-ev-name { display: none; }
  .ev-officiel { background: #E85C7E; } .ev-option { background: #6BB8EA; } .ev-nv { background: #fff; border: 1.5px dashed #9A9CA2; }
  .cal-cell { flex-direction: column; flex-wrap: wrap; justify-content: flex-start; }
  .cal-dow { font-size: 10px; letter-spacing: 0; }
  .cal-list { display: flex; flex-direction: column; }
}

/* ===== E-mails (même système qu'EE Gestion) ===== */
.check-inline { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; margin: 6px 0; }
.check-inline input { width: 18px; height: 18px; accent-color: var(--accent); }
.mail-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; margin: 14px 0 18px; }
.mail-body { font-family: var(--font); font-size: 14px; line-height: 1.55; resize: vertical; }
.mail-preview { position: sticky; top: 16px; overflow: hidden; }
.mail-preview .list-title { padding: 14px 18px 0; }
.mail-preview iframe { width: 100%; height: 78vh; min-height: 520px; border: 0; border-top: 1px solid var(--line); margin-top: 10px; background: #fff; }
.send-when { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 14px 0 0; }
.send-when legend { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 6px; }
.send-when .check-inline { display: block; line-height: 2.5; }
.send-when .check-inline input[type=radio], .send-when .check-inline input[type=checkbox] { vertical-align: middle; margin-right: 6px; }
.send-when .check-inline .input { display: inline-block; vertical-align: middle; }
.ton-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border: 0; padding: 0; margin: 0 0 14px; }
.ton-pick label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 13.5px; font-weight: 600; background: var(--surface); }
.ton-pick label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.to-sugg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.to-sugg .chip { font-size: 12.5px; }
.linklike { background: none; border: 0; padding: 0; margin: 4px 0 0; color: var(--accent-ink); text-decoration: underline; font: inherit; font-size: 12.5px; cursor: pointer; align-self: flex-start; }
.sig-box { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; margin-top: 4px; overflow-x: auto; }
.lib-pick { margin: 10px 0 0; } .lib-pick summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.doc-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-top: 8px; }
.doc-pick { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface); }
.doc-pick:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.doc-pick input { accent-color: var(--accent); width: 18px; height: 18px; }
.doc-pick-txt { display: flex; flex-direction: column; min-width: 0; }
.doc-pick-txt strong, .doc-pick-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 980px) { .mail-split { grid-template-columns: 1fr; } .mail-preview { position: static; } .mail-preview iframe { height: 620px; } }
@media (max-width: 760px) { .pr-row .srow-actions { width: 100%; justify-content: flex-start; } }

/* ===== Correspondance (e-mails Gmail) ===== */
.cr-section { margin-top: 18px; }
.cr-list { display: flex; flex-direction: column; border-top: 1px solid var(--line, #E8E6E1); }
.cr-msg { border-bottom: 1px solid var(--line-2, #F0EEEA); }
.cr-msg > summary { list-style: none; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 4px; cursor: pointer; }
.cr-msg > summary::-webkit-details-marker { display: none; }
.cr-msg > summary:hover { background: #FBFAF8; }
.cr-dir { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.cr-recu .cr-dir { background: #E8F1FD; color: #2C5FB3; }
.cr-envoye .cr-dir { background: #E9F6EE; color: #23794A; }
.cr-main { display: flex; flex-direction: column; min-width: 0; }
.cr-main strong, .cr-main span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-meta { white-space: nowrap; }
.cr-body { padding: 4px 6px 14px 40px; }
.cr-head { margin: 0 0 8px; overflow-wrap: anywhere; }
.cr-text { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; background: #FBFAF8; border-radius: 10px; padding: 12px 14px; }
.cr-quote { margin-top: 8px; }
.cr-quote summary { cursor: pointer; color: var(--muted, #6B6E76); }
.cr-pj { margin: 8px 0 0; }
@media (max-width: 760px) {
  .cr-msg > summary { grid-template-columns: 26px minmax(0, 1fr); }
  .cr-meta { grid-column: 2; }
  .cr-body { padding-left: 4px; }
}

/* =====================================================================
   Thème 2026 « studio » — v8
   Fond blanc / lavande, violet profond, titres Playfair Display, texte Inter,
   surligneur ambré, cartes arrondies et ombres douces.
   ===================================================================== */
:root {
  --bg: #FBF9FF;
  --surface: #FFFFFF;
  --surface-2: #F7F3FF;
  --ink: #1A1A1A;
  --ink-2: #3A3A42;
  --muted: #6A6A75;
  --line: #ECE6F7;
  --line-2: #F2EDFA;
  --hover: #F5F0FF;
  --accent: #693DB5;
  --accent-ink: #55309A;
  --accent-soft: #F1EAFE;
  --accent-2: #C5B3E6;
  --surligneur: #FFB84D;
  --red: #C0392B;     --red-bg: #FDECEA;
  --amber: #A35F00;   --amber-bg: #FFF4E6;
  --blue: #3B5BDB;    --blue-bg: #EEF2FF;
  --green: #1E8E50;   --green-bg: #E8F5E9;
  --gray: #4A4A4A;    --gray-bg: #F2F0F6;
  --radius: 16px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --titre: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --ombre: 0 1px 2px rgba(48, 22, 98, .04), 0 8px 24px rgba(48, 22, 98, .06);
  --ombre-forte: 0 18px 50px rgba(48, 22, 98, .14);
}
body { background: radial-gradient(1200px 520px at 85% -120px, #F3EDFF 0%, rgba(243, 237, 255, 0) 70%) no-repeat, var(--bg); color: var(--ink); font-size: 15px; }
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
::selection { background: #E7DCFB; }

/* Titres : serif élégante + surligneur */
.page-head h1, .client-head h1, .login-card h1 { font-family: var(--titre); font-weight: 800; letter-spacing: -.005em; font-size: 32px; line-height: 1.15; }
.page-head h1 { display: inline; background: linear-gradient(transparent 64%, rgba(255, 184, 77, .45) 64%, rgba(255, 184, 77, .45) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .08em; }
.page-head p { margin-top: 8px; color: var(--muted); }
.card-title { font-family: var(--titre); font-size: 19px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); }
.sub-title, .nav-title, .menu-title, .list-head { letter-spacing: .08em; }
.kpi-value { font-family: var(--titre); font-size: 26px; font-weight: 700; letter-spacing: -.01em; }

/* Barre latérale */
.sidebar { background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-right: 1px solid var(--line); }
.nav-title { color: #9A93AE; }
.nav-link { color: var(--ink-2); border-radius: 12px; position: relative; }
.nav-link .ic { color: #8E86A6; }
.nav-link:hover { background: var(--hover); color: var(--ink); }
.nav-link:hover .ic { color: var(--accent); }
.nav-link.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-link.is-active .ic { color: var(--accent); }
.nav-link.is-active::before { content: ''; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
.nav-link em { background: var(--accent); color: #fff; }
.userbox { border-top-color: var(--line); }
.avatar { background: linear-gradient(135deg, #8A5CD6, #693DB5); box-shadow: 0 4px 12px rgba(105, 61, 181, .3); }

/* Boutons */
.btn { height: 44px; border-radius: 10px; border: 1px solid #DCD5EA; background: var(--surface); color: var(--ink); font-weight: 600; transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; }
.btn:hover { background: var(--hover); border-color: #CBBFE4; color: var(--ink); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(105, 61, 181, .28); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; box-shadow: 0 8px 22px rgba(105, 61, 181, .34); transform: translateY(-1px); }
.btn-sm { border-radius: 9px; }
.icon-btn { border-color: #DCD5EA; border-radius: 10px; }
.icon-btn:hover { background: var(--hover); color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Cartes et blocs */
.card, .kpi { border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--ombre); }
.card.pad { padding: 22px 24px; }
.kpi { padding: 18px 20px; }
.kpi:nth-child(4n+1) { background: linear-gradient(180deg, #F7F2FF 0%, #FFFFFF 70%); }
.kpi-label { color: var(--muted); }
.menu-pop { border-radius: 16px; box-shadow: var(--ombre-forte); border-color: var(--line); }
.pay-box, .calc > div { background: var(--surface-2); border-radius: 14px; }
.flash { border-radius: 14px; box-shadow: var(--ombre); }

/* Badges pastel */
.badge { padding: 4px 11px; font-weight: 600; }
.badge-relance { background: var(--red-bg); color: var(--red); }
.badge-refuse { background: #F1EEF5; color: #6F6A7A; }
.badge-attente { background: var(--amber-bg); color: var(--amber); }
.badge-signe { background: var(--accent-soft); color: var(--accent); }
.badge-regle { background: var(--green-bg); color: var(--green); }
.badge-neutre { background: var(--gray-bg); color: var(--gray); }
.tag-soon { background: var(--accent); }
.bar { background: #EEE8F8; }
.bar > span { background: linear-gradient(90deg, #8A5CD6, #693DB5); }
.bar > span.is-full { background: var(--green); }

/* Filtres, champs, recherche */
.chip { border-color: #DCD5EA; }
.chip:hover { border-color: var(--accent-2); color: var(--accent); }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(105, 61, 181, .25); }
.search-box, .select select, .input, .field input { border-color: #DCD5EA; border-radius: 10px; }
.search-box:focus-within, .input:focus, .field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(105, 61, 181, .12); }
.check.is-on .check-box { background: var(--accent); border-color: var(--accent); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }

/* Listes */
.list-head { background: var(--surface-2); color: #8A82A0; border-bottom-color: var(--line); border-radius: 20px 20px 0 0; }
.crow { border-top-color: var(--line-2); }
.crow:hover { background: #FCFAFF; }
.crow:last-child { border-radius: 0 0 20px 20px; }
.name-link:hover { color: var(--accent); }
.doc:hover { border-color: var(--accent); color: var(--accent); background: var(--hover); }

/* Connexion */
.login-page { background: radial-gradient(900px 500px at 80% 0%, #EFE6FF 0%, rgba(239, 230, 255, 0) 70%), radial-gradient(700px 400px at 0% 100%, #FFF1DC 0%, rgba(255, 241, 220, 0) 70%), var(--bg); }
.login-card { border-radius: 24px; border-color: var(--line); box-shadow: var(--ombre-forte); }
.login-card h1 { font-size: 28px; }

@media (max-width: 860px) {
  .page-head h1, .client-head h1 { font-size: 24px; }
  .kpi-value { font-size: 20px; }
  .crow { border-radius: 18px !important; box-shadow: var(--ombre); }
  .nav-link.is-active::before { display: none; }
}
/* Sélections actives : violet au lieu du noir */
.seg label:has(input:checked), .ton-pick label:has(input:checked) { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab.is-on, .cal-month.is-on { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(105, 61, 181, .25); }
.btn-dark { background: #2A2340; border-color: #2A2340; }

/* Clients : solde restant + réservation confirmée (contrat signé et acompte reçu) mise en valeur */
.pay-reste { margin-top: 6px; font-size: 12.5px; color: var(--red); white-space: nowrap; }
.pay-reste strong { font-weight: 700; }
.pay-reste.is-solde { color: var(--green); font-weight: 600; }
.crow.is-reserve { background: linear-gradient(100deg, #5B2FA6 0%, #693DB5 55%, #7A4FC4 100%); color: #fff; border-top-color: transparent; position: relative; }
.crow.is-reserve + .crow { border-top-color: transparent; }
.crow.is-reserve:hover { background: linear-gradient(100deg, #52299A 0%, #5F35AA 55%, #7046BA 100%); }
.crow.is-reserve .name-link, .crow.is-reserve .name-link:hover { color: #fff; }
.crow.is-reserve .muted, .crow.is-reserve .c-lieu .ic { color: rgba(255, 255, 255, .78); }
.crow.is-reserve .c-formule { color: rgba(255, 255, 255, .92); }
.crow.is-reserve .badge { background: rgba(255, 255, 255, .18); color: #fff; }
.crow.is-reserve .tag { background: rgba(255, 255, 255, .2); color: #fff; }
.crow.is-reserve .tag-soon { background: var(--surligneur); color: #3A2400; }
.crow.is-reserve .bar { background: rgba(255, 255, 255, .25); }
.crow.is-reserve .bar > span { background: #fff; }
.crow.is-reserve .bar > span.is-full { background: #9BE7B4; }
.crow.is-reserve .pay-reste { color: #FFD9A0; }
.crow.is-reserve .pay-reste.is-solde { color: #B9F3CB; }
.crow.is-reserve .icon-btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: #fff; }
.crow.is-reserve .icon-btn:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.crow.is-reserve .menu-pop, .crow.is-reserve .menu-pop a { color: var(--ink); }
.crow.is-reserve a:focus-visible, .crow.is-reserve .icon-btn:focus-visible { outline-color: #fff; }
@media (max-width: 860px) { .crow.is-reserve { border-color: transparent !important; box-shadow: 0 10px 26px rgba(105, 61, 181, .3); } }

/* ---------- Liste des clients aérée : une carte par client ---------- */
.card.list { background: transparent; border: 0; box-shadow: none; display: flex; flex-direction: column; gap: 14px; }
.card.list .list-head { background: transparent; border: 0; padding-bottom: 0; border-radius: 0; }
.card.list .crow { background: var(--surface); border: 1px solid var(--line) !important; border-radius: 20px !important; box-shadow: var(--ombre); padding: 18px 22px 14px; row-gap: 12px; }
.card.list .crow:hover { background: #FDFBFF; box-shadow: 0 2px 4px rgba(48, 22, 98, .05), 0 12px 30px rgba(48, 22, 98, .09); }
.card.list .crow.is-reserve { border-color: transparent !important; box-shadow: 0 12px 30px rgba(105, 61, 181, .28); }
.card.list .crow.is-reserve:hover { background: linear-gradient(100deg, #52299A 0%, #5F35AA 55%, #7046BA 100%); }
.card.list .empty { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }

/* ---------- Parcours client (frise repliable sous chaque ligne) ---------- */
.crow > .pc { grid-column: 1 / -1; margin: 2px -8px 0; }
.pc-sum { list-style: none; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; cursor: pointer; font-size: 13px; color: var(--ink-2); background: var(--surface-2); user-select: none; }
.pc-sum::-webkit-details-marker { display: none; }
.pc-sum:hover { background: var(--hover); }
.pc-count { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; min-width: 36px; }
.pc-dots { display: inline-flex; gap: 4px; flex: none; }
.pc-dots i { width: 9px; height: 9px; border-radius: 50%; background: #DCD5EA; }
.pc-dots i.is-fait { background: var(--green); }
.pc-dots i.is-go { background: var(--accent); box-shadow: 0 0 0 3px rgba(105, 61, 181, .18); }
.pc-dots i.is-retard { background: var(--red); box-shadow: 0 0 0 3px rgba(192, 57, 43, .18); }
.pc-dots i.is-pl { background: var(--blue); }
.pc-next { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-next.is-go { color: var(--accent); font-weight: 600; }
.pc-next.is-retard { color: var(--red); font-weight: 600; }
.pc-tog { display: inline-flex; color: var(--muted); transition: transform .2s; }
.pc[open] .pc-tog { transform: rotate(180deg); }
.pc-list { list-style: none; margin: 10px 0 2px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; counter-reset: none; }
.pc-st { position: relative; display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.pc-st:hover { border-color: var(--accent-2); box-shadow: 0 6px 16px rgba(48, 22, 98, .08); transform: translateY(-1px); }
.pc-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 6px 10px 10px; color: inherit; text-decoration: none; }
.pc-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 700 12px/1 var(--font); background: #EEE8F8; color: #7A7290; }
.pc-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pc-txt strong { font-size: 13px; font-weight: 600; }
.pc-txt small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-val { margin: 0; display: flex; }
.pc-val button { width: 30px; border: 0; border-left: 1px solid var(--line-2); background: transparent; color: #A39CB8; border-radius: 0 14px 14px 0; cursor: pointer; font-size: 14px; opacity: 0; transition: opacity .15s, background .15s; }
.pc-st:hover .pc-val button, .pc-val button:focus-visible { opacity: 1; }
.pc-val button:hover { background: var(--green-bg); color: var(--green); }
.pc-st.is-fait { background: var(--green-bg); border-color: #BFE3C9; }
.pc-st.is-fait .pc-ic { background: var(--green); color: #fff; }
.pc-st.is-fait .pc-txt small { color: var(--green); }
.pc-st.is-fait .pc-val button:hover { background: #fff; color: var(--muted); }
.pc-st.is-go { border: 2px solid var(--accent); background: #FBF8FF; }
.pc-st.is-go .pc-ic { background: var(--accent); color: #fff; }
.pc-st.is-go .pc-txt small { color: var(--accent); font-weight: 600; }
.pc-st.is-retard { border: 2px solid var(--red); background: #FFF7F6; }
.pc-st.is-retard .pc-ic { background: var(--red); color: #fff; }
.pc-st.is-retard .pc-txt small { color: var(--red); font-weight: 600; }
.pc-st.is-pl { background: var(--blue-bg); border-color: #CCD7FF; }
.pc-st.is-pl .pc-ic { background: var(--blue); color: #fff; }
.pc-st.is-pl .pc-txt small { color: var(--blue); }
/* Sur une ligne violette (réservation confirmée), la frise reste lisible sur fond clair */
.crow.is-reserve .pc-sum { background: rgba(255, 255, 255, .14); color: #fff; }
.crow.is-reserve .pc-sum:hover { background: rgba(255, 255, 255, .22); }
.crow.is-reserve .pc-count, .crow.is-reserve .pc-next.is-go, .crow.is-reserve .pc-tog { color: #fff; }
.crow.is-reserve .pc-next.is-retard { color: #FFD1CB; }
.crow.is-reserve .pc-dots i { background: rgba(255, 255, 255, .35); }
.crow.is-reserve .pc-dots i.is-fait { background: #9BE7B4; }
.crow.is-reserve .pc-dots i.is-go { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.crow.is-reserve .pc-dots i.is-retard { background: #FF8A7A; }
.crow.is-reserve .pc-list { background: var(--surface); border-radius: 16px; padding: 10px; }
.crow.is-reserve .pc-st, .crow.is-reserve .pc-link { color: var(--ink); }
.crow.is-reserve .pc-txt small { color: var(--muted); }
.crow.is-reserve .pc-st.is-fait .pc-txt small { color: var(--green); }
.crow.is-reserve .pc-st.is-go .pc-txt small { color: var(--accent); }
.crow.is-reserve .pc-st.is-retard .pc-txt small { color: var(--red); }

@media (max-width: 1180px) {
  .card.list .crow { padding: 16px 18px 12px; }
}
@media (max-width: 860px) {
  .card.list { gap: 12px; }
  .crow > .pc { margin: 4px -4px 0; }
  .pc-sum { flex-wrap: wrap; gap: 6px 10px; padding: 9px 10px; }
  .pc-dots { order: 3; width: 100%; justify-content: space-between; }
  .pc-dots i { width: 8px; height: 8px; }
  .pc-next { white-space: normal; }
  /* Frise verticale : une étape par ligne, reliées par un trait */
  .pc-list { grid-template-columns: 1fr; gap: 6px; position: relative; padding-left: 2px; }
  .pc-st { border-radius: 12px; }
  .pc-val button { opacity: 1; width: 44px; border-radius: 0 12px 12px 0; }
  .pc-link { padding: 10px 6px 10px 10px; min-height: 48px; }
  .pc-txt small { white-space: normal; }
}
.card.list .crow.is-reserve { background: linear-gradient(100deg, #5B2FA6 0%, #693DB5 55%, #7A4FC4 100%); }
.pc-txt small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 1300px) { .pc-list { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
/* Parcours sur la fiche client */
.pc-fiche { padding: 10px 12px; }
.pc-fiche > .pc { margin: 0; }
.pc-fiche .pc-sum { background: transparent; padding: 6px 4px; font-size: 13.5px; }
.pc-fiche .pc-sum:hover { background: var(--hover); }
.pc-fiche .pc-list { margin-top: 8px; }
@media (min-width: 1300px) { .pc-fiche .pc-list { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.tag-prospect { background: var(--amber-bg); color: var(--amber); margin-right: 6px; }
textarea { font: inherit; color: inherit; }

/* ---------- Assistant d'installation et page Connexions (v13) ---------- */
.install-card { max-width: 560px; }
.install-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.install-etapes { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; padding: 0; font-size: 12px; color: var(--muted); }
.install-etapes li { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--hover, #F3F0FA); }
.install-etapes li span { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; font-weight: 700; }
.install-etapes li.is-en-cours { background: var(--accent); color: #fff; }
.install-etapes li.is-en-cours span { color: var(--accent); }
.install-etapes li.is-fait span { background: var(--accent-soft); color: var(--accent); }
.install-verifs, .cx-liste { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 8px; }
.install-verifs li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.install-verifs li > span { width: 22px; height: 22px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; }
.install-verifs li.is-ok > span { background: #2E9E6A; }
.install-verifs li.is-ko { border-color: #F2B8BD; background: #FDF1F2; }
.install-verifs li.is-ko > span { background: #D9434E; }
.install-verifs small, .install-option small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.install-choix { border: 0; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; }
.install-choix legend { font-weight: 600; margin-bottom: 8px; }
.install-option { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.install-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.install-option input { margin-top: 3px; accent-color: var(--accent); }
.install-passer { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.cx-carte { display: grid; gap: 10px; }
.cx-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cx-tete h2 { font-family: 'Playfair Display', serif; font-size: 20px; margin: 0; }
.cx-etat { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.cx-etat.is-ok { background: #DDF3E8; color: #1F7A50; }
.cx-etat.is-ko { background: var(--amber-bg, #FFF1D6); color: var(--amber, #8A5A00); }
.cx-etapes { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.cx-code { width: 100%; min-height: 140px; font: 12px/1.45 ui-monospace, Consolas, monospace; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #FAF9FD; }
.cx-grille { display: grid; gap: 16px; }
.install-card form:has(input[value="vierge"]:checked) .install-si-existante { display: none; }
.marque-texte { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 22px; color: var(--accent); letter-spacing: -.01em; display: inline-block; }
/* ---------- Assistant formules (v14) ---------- */
.fa-choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.fa-carte { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.fa-carte:hover { border-color: var(--accent); transform: translateY(-2px); }
.fa-carte strong { font-family: 'Playfair Display', serif; font-size: 19px; }
.fa-ico { font-size: 28px; line-height: 1; }
.fa-form { max-width: 720px; }
.fa-lignes { display: grid; gap: 6px; }
.fa-bandeau { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; text-decoration: none; color: inherit; }
.fa-bandeau:hover { border-color: var(--accent); }
.fa-bandeau.is-vide { background: var(--accent-soft); border-color: var(--accent); }
.fa-apercu { display: grid; gap: 10px; margin-top: 12px; }
.fa-ligne { display: grid; grid-template-columns: 28px 120px 1fr 120px; gap: 8px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.fa-ligne .fa-desc { grid-column: 3 / 5; font-size: 13px; }
.fa-garder { padding-top: 10px; }
.fa-ligne:has(.fa-garder input:not(:checked)) { opacity: .45; }
@media (max-width: 700px) { .fa-ligne { grid-template-columns: 28px 1fr; } .fa-ligne .fa-desc, .fa-ligne .input { grid-column: 2; } }

/* ---------- Version en ligne : inscription et espace éditeur ---------- */
.pf-adresse { display: flex; align-items: center; gap: 6px; }
.pf-adresse input { flex: 1; min-width: 0; }
.pf-adresse b { font-weight: 600; color: var(--muted); white-space: nowrap; }
.pf-cache { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pf-case { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; }
.pf-case input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.login-card.pf-large { max-width: 1080px; }
.pf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 6px 0 20px; }
.pf-stats div { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #FBFAFE; }
.pf-stats b { display: block; font-family: var(--titre); font-size: 24px; color: var(--accent); }
.pf-stats span { font-size: 12.5px; color: var(--muted); }
.pf-table-wrap { overflow-x: auto; }
.pf-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pf-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.pf-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pf-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.pf-etat { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pf-etat.is-ok { background: #E3F4EC; color: #1F7A44; }
.pf-etat.is-essai { background: #F1ECFA; color: var(--accent); }
.pf-etat.is-ko { background: #FDF1F2; color: #B8323D; }
.btn.pf-danger { color: #B8323D; border-color: #F2B8BD; }

/* ---------- Inscription (version en ligne) : deux colonnes + Google ---------- */
.pf-inscription { width: 100%; max-width: 1040px; display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: 48px; align-items: center; }
.pf-bienvenue h1 { font-family: var(--titre); font-weight: 800; font-size: 44px; line-height: 1.1; margin: 0 0 12px; }
.pf-bienvenue > p { font-size: 15px; max-width: 420px; }
.pf-atouts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.pf-atouts li { position: relative; padding-left: 34px; font-weight: 600; font-size: 15px; }
.pf-atouts li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.pf-carte-inscription { max-width: 460px; }
.pf-pastille { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #F1ECFA; color: var(--accent); font-size: 12.5px; font-weight: 700; margin-bottom: 12px; }
.pf-btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: #1E1F24; font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s; }
.pf-btn-google:hover { background: #F7F5FB; border-color: #CFC4E6; }
.pf-g { flex: none; }
.pf-separateur { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 13px; }
.pf-separateur::before, .pf-separateur::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pf-google-ok { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: #F7F5FB; font-size: 14px; margin-bottom: 14px; }
.pf-btn-creer { text-transform: uppercase; letter-spacing: .04em; }
.pf-deja { text-align: center; margin-top: 14px; }
@media (max-width: 860px) {
  .pf-inscription { grid-template-columns: 1fr; gap: 24px; }
  .pf-bienvenue h1 { font-size: 32px; }
  .pf-carte-inscription { max-width: none; }
}
/* ---------- Attente après inscription : barre de progression + étapes ---------- */
.pf-progression { height: 12px; border-radius: 999px; background: #EEE8F8; overflow: hidden; margin: 18px 0 6px; }
.pf-progression > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #8A63D2, var(--accent)); background-size: 200% 100%; animation: pf-reflet 1.6s linear infinite; transition: width .4s ease; }
@keyframes pf-reflet { from { background-position: 200% 0; } to { background-position: 0 0; } }
.pf-pourcent { margin: 0 0 16px; font-size: 14px; text-align: right; color: var(--accent); }
.pf-etapes { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.pf-etapes li { position: relative; padding-left: 32px; font-size: 14.5px; color: var(--muted); min-height: 22px; line-height: 22px; }
.pf-etapes li::before { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; box-sizing: border-box; border: 2px solid #D9D4E4; }
.pf-etapes li.is-ok { color: var(--ink, #1E1F24); }
.pf-etapes li.is-ok::before { content: "✓"; border: 0; background: #2E9E6A; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pf-etapes li.is-en-cours { color: var(--ink, #1E1F24); font-weight: 600; }
.pf-etapes li.is-en-cours::before { border-color: #E6DDF6; border-top-color: var(--accent); animation: pf-tourne .8s linear infinite; }
@keyframes pf-tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pf-progression > span, .pf-etapes li.is-en-cours::before { animation: none; } }
/* ---------- Console d'administration (version en ligne) ---------- */
.pf-console-page { background: radial-gradient(900px 500px at 80% 0%, #EFE6FF 0%, rgba(239, 230, 255, 0) 70%), var(--bg); min-height: 100vh; }
.pf-console { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.pf-console-menu { position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; }
.pf-console-marque { padding: 0 10px 18px; }
.pf-console-marque b { display: block; font-family: var(--titre); font-size: 20px; color: var(--accent); }
.pf-console-marque span { font-size: 12px; color: var(--muted); }
.pf-console-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pf-console-menu a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; color: var(--ink, #1E1F24); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.pf-console-menu a:hover { background: #F4F0FB; }
.pf-console-menu a.is-actif { background: #EEE6FB; color: var(--accent); font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); }
.pf-console-menu a.is-bientot { color: var(--muted); }
.pf-console-menu a small { margin-left: auto; font-size: 10.5px; padding: 1px 6px; border-radius: 999px; background: #F1ECFA; color: var(--accent); }
.pf-console-pied { margin-top: auto; padding: 18px 10px 0; font-size: 13px; line-height: 1.9; }
.pf-console-burger { display: none; }
.pf-console-contenu { padding: 30px 34px 60px; max-width: 1180px; width: 100%; box-sizing: border-box; }
.pf-console-contenu > h1 { font-family: var(--titre); font-weight: 800; font-size: 32px; margin: 0 0 18px; }
.pf-console-contenu .card + .card { margin-top: 18px; }
.pf-console-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 18px; }
.pf-console-grille .card + .card { margin-top: 0; }
.pf-liste { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.pf-graphe { width: 100%; height: 140px; display: block; }
.pf-filtres { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 12px; }
.pf-filtres input[type=search] { flex: 1; min-width: 220px; }
.pf-fiche { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; margin: 12px 0 0; font-size: 14.5px; }
.pf-fiche dt { color: var(--muted); }
.pf-fiche dd { margin: 0; }
.pf-sous-menu { margin: -6px 0 12px; }
.pf-bientot { padding: 12px 0; border-top: 1px solid var(--line); }
.pf-bientot:first-of-type { border-top: 0; padding-top: 0; }
.pf-journal { background: #1E1F24; color: #E8E6EE; padding: 12px; border-radius: 10px; font-size: 12px; overflow-x: auto; white-space: pre-wrap; }
@media (max-width: 900px) {
  .pf-console { grid-template-columns: 1fr; }
  .pf-console-menu { position: sticky; top: 0; z-index: 20; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; }
  .pf-console-marque { display: none; }
  .pf-console-burger { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-weight: 600; }
  .pf-console-menu ul, .pf-console-pied { display: none; }
  .pf-console-menu.is-ouvert ul { display: grid; margin-top: 8px; }
  .pf-console-menu.is-ouvert .pf-console-pied { display: block; padding-top: 10px; }
  .pf-console-contenu { padding: 20px 14px 50px; }
  .pf-fiche { grid-template-columns: 1fr; }
}

/* ---------- Bandeau d'annonce de l'éditeur (espaces studios) ---------- */
.pf-annonce { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; margin: 0 0 16px; font-size: 14.5px; font-weight: 500; }
.pf-annonce span { flex: 1; }
.pf-annonce button { border: 0; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; opacity: .7; }
.pf-annonce-info { background: #EEE6FB; color: #4A2A86; }
.pf-annonce-attention { background: #FFF1D6; color: #7A4B00; }
/* ---------- Métiers (profils de vidéaste) ---------- */
.pf-metiers { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.pf-metiers legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.pf-metier { position: relative; display: block; cursor: pointer; }
.pf-metier input { position: absolute; opacity: 0; pointer-events: none; }
.pf-metier span { display: flex; flex-direction: column; gap: 2px; height: 100%; box-sizing: border-box; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, background .15s; }
.pf-metier span b { font-size: 14px; }
.pf-metier span small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.pf-metier:hover span { border-color: #CFC4E6; }
.pf-metier input:checked + span { border-color: var(--accent); background: #F4EEFC; box-shadow: inset 0 0 0 1px var(--accent); }
.pf-metier input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pf-modeles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pf-modele { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; }
.pf-modele h3 { font-size: 15.5px; margin: 2px 0 6px; }
.pf-modele-type { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); font-weight: 700; margin: 0; }
.pf-mon-element { border-top: 1px solid var(--line); padding: 10px 0; }
.pf-mon-element:first-of-type { border-top: 0; }
.pf-modeles-profil { border-top: 1px solid var(--line); padding: 10px 0; }
.pf-modele-form { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 10px 0; }
.pf-barre-mini { display: inline-block; vertical-align: middle; width: 90px; height: 6px; margin-left: 8px; border-radius: 999px; background: #EEE8F8; overflow: hidden; }
.pf-barre-mini span { display: block; height: 100%; background: var(--accent); }
/* ---------- Abonnements : choix de l'offre (espace studio) ---------- */
.pf-offres { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 10px; }
.pf-offre { position: relative; border: 1.5px solid var(--line); border-radius: 16px; padding: 18px; background: #fff; display: flex; flex-direction: column; }
.pf-offre.is-avant { border-color: var(--accent); box-shadow: 0 10px 30px rgba(105, 61, 181, .12); }
.pf-offre h3 { font-family: var(--titre); font-size: 22px; margin: 6px 0 4px; }
.pf-offre form { margin-top: auto; }
.pf-prix { font-size: 15px; margin: 8px 0 10px; }
.pf-prix b { font-size: 26px; color: var(--accent); }
.pf-atouts-petits { margin: 0 0 14px; gap: 6px; }
.pf-atouts-petits li { font-weight: 500; font-size: 13.5px; padding-left: 28px; }
.pf-atouts-petits li::before { width: 18px; height: 18px; font-size: 11px; top: 1px; }
.pf-periode { display: flex; gap: 12px; font-size: 14px; }
.pf-periode label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
/* ---------- Pages publiques (accueil et pages par métier) ---------- */
.pf-vitrine { margin: 0; background: radial-gradient(1000px 520px at 85% -10%, #EFE6FF 0%, rgba(239, 230, 255, 0) 70%), var(--bg); color: var(--ink, #1E1F24); }
.pf-vt-entete { display: flex; align-items: center; justify-content: space-between; max-width: 1080px; margin: 0 auto; padding: 18px 20px; }
.pf-vt-entete nav { display: flex; gap: 16px; align-items: center; font-size: 14.5px; }
.pf-vt-entete nav a { color: inherit; text-decoration: none; font-weight: 500; }
.pf-vt-marque { font-family: var(--titre); font-weight: 800; font-size: 22px; color: var(--accent); text-decoration: none; }
.pf-vitrine main { max-width: 1080px; margin: 0 auto; padding: 0 20px 40px; }
.pf-vt-hero { padding: 40px 0 24px; max-width: 760px; }
.pf-vt-hero h1 { font-family: var(--titre); font-weight: 800; font-size: 44px; line-height: 1.1; margin: 0 0 14px; }
.pf-vt-accroche { font-size: 18px; line-height: 1.55; color: #4A4B52; margin: 0 0 22px; }
.pf-vt-image { display: block; width: 100%; max-width: 900px; margin-top: 26px; border-radius: 18px; box-shadow: 0 20px 50px rgba(30, 31, 36, .12); }
.pf-vt-bloc { padding: 26px 0; }
.pf-vt-bloc h2 { font-family: var(--titre); font-size: 28px; margin: 0 0 14px; }
.pf-vt-avantages { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 24px; }
.pf-vt-texte { max-width: 760px; font-size: 16px; line-height: 1.65; }
.pf-vt-texte h2 { font-size: 24px; margin-top: 18px; }
.pf-vt-metiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pf-vt-metier { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.pf-vt-metier:hover { border-color: var(--accent); transform: translateY(-2px); }
.pf-vt-metier span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.pf-vt-temoins { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.pf-vt-temoin { margin: 0; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.pf-vt-temoin p { margin: 0 0 10px; font-size: 15px; line-height: 1.55; }
.pf-vt-temoin footer { font-size: 13px; color: var(--muted); }
.pf-vt-faq { border-top: 1px solid var(--line); padding: 12px 0; max-width: 760px; }
.pf-vt-faq summary { font-weight: 600; cursor: pointer; }
.pf-vt-faq p { margin: 8px 0 0; color: #4A4B52; }
.pf-vt-final { text-align: center; background: #fff; border-radius: 20px; border: 1px solid var(--line); padding: 34px 20px; margin-top: 10px; }
.pf-vt-pied { max-width: 1080px; margin: 0 auto; padding: 20px; text-align: center; color: var(--muted); }
.pf-plus { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; }
.pf-plus summary { cursor: pointer; color: var(--accent); }
@media (max-width: 700px) { .pf-vt-hero h1 { font-size: 32px; } .pf-vt-accroche { font-size: 16px; } }
/* ---------- Production : tableau en colonnes, projet, espace client ---------- */
.pr-kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; }
.pr-colonne { flex: 0 0 240px; background: #F6F3FB; border-radius: 14px; padding: 10px; min-height: 120px; transition: background .15s; }
.pr-colonne.is-survol { background: #EDE5FA; outline: 2px dashed var(--accent); }
.pr-colonne h2 { font-size: 13.5px; margin: 2px 4px 10px; font-weight: 700; }
.pr-carte { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 8px; cursor: grab; }
.pr-carte a { color: inherit; text-decoration: none; }
.pr-carte.is-retard { border-color: #E9A3A9; box-shadow: inset 3px 0 0 #B8323D; }
.pr-carte.is-glisse { opacity: .5; }
.pr-barre { display: block; height: 5px; border-radius: 999px; background: #EEE8F8; overflow: hidden; }
.pr-barre span { display: block; height: 100%; background: var(--accent); }
.pr-retard td { background: #FDF3F4; }
.badge-retard { background: #FDE8E8; color: #A3222D; }
.pr-livrable { border-top: 1px solid var(--line); padding: 12px 0; }
.pr-livrable:first-of-type { border-top: 0; }
.pr-livrable-ligne { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pr-livrable-ligne .input { width: auto; }
.pr-version { margin: 6px 0; }
.pr-version > summary { cursor: pointer; font-size: 14px; }
.pr-retour { margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: #F6F3FB; }
.pr-retour.is-studio { background: #EEF6F1; }
.pr-espace { max-width: 860px; margin: 0 auto; padding: 10px 20px 40px; }
.pr-espace h1 { font-family: var(--titre); font-size: 32px; margin: 10px 0 8px; }
.pr-espace .card { margin-top: 16px; }
.pr-lecteur { display: block; width: 100%; max-height: 70vh; background: #000; border-radius: 14px; margin: 10px 0; }
/* ---------- Appli installable et affichage sur téléphone (v24) ---------- */
.pwa-installer { width: 100%; border: 0; background: var(--accent-soft, #F1EBFB); color: var(--accent, #693DB5); font: inherit; font-weight: 600; cursor: pointer; text-align: left; margin: 6px 0; }
.pwa-installer[hidden] { display: none; }
.pwa-etapes { margin: 6px 0 12px; padding-left: 22px; }
.pwa-etapes li { margin: 4px 0; }
.tone-green { color: #1C6B47; } .tone-red { color: #A3222D; }
@media (max-width: 640px) {
  .card-title-row { flex-wrap: wrap; }
  .client-grid { grid-template-columns: minmax(0, 1fr); }
  .doc-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
  .card .pf-table, .card table.table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .card .pf-table-wrap > .pf-table { display: table; }
  .page-head { flex-wrap: wrap; }
  .page-head > .inline-form { flex: 1 1 100%; width: 100%; }
  .page-head .inline-form .btn, .page-head .link-row .btn { width: auto; padding: 0 14px; }
  .link-row { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
  .link-row .input { flex: 1 1 100%; min-width: 0; }
  .client-grid .card { min-width: 0; max-width: 100%; width: 100%; box-sizing: border-box; }
  /* Étapes de production : une carte par étape au lieu d'un tableau */
  #etapes .pf-table, #etapes .pf-table tbody { display: block; }
  #etapes .pf-table thead { display: none; }
  #etapes .pf-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  #etapes .pf-table td { display: block; padding: 0; border: 0; }
  #etapes .pf-table td:first-child { grid-column: 1 / -1; }
  #etapes .pf-table td .input { width: 100% !important; }
  #etapes .pf-table td:nth-child(4) { display: flex; align-items: center; gap: 6px; }
  .pr-colonne { flex-basis: 78vw; scroll-snap-align: start; }
  .pr-colonne:first-child { scroll-margin-left: 0; }
  .inline-form { flex-wrap: wrap; }
  .btn, .btn-sm { min-height: 40px; }
  input.input, select.input, textarea.input { font-size: 16px; } /* évite le zoom automatique de l’iPhone */
}

/* Connexion d'un studio : « Propulsé par VidéasteStudio.pro » */
.vs-propulse { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px 0 0; font-size: 12.5px; color: var(--muted, #6b6f80); }
.vs-propulse img { display: block; height: 18px; width: auto; }


/* Plateforme VidéasteStudio.pro : couleurs de marque (dégradé bleu → violet) sur la vitrine et la console */
body.pf-vitrine, body.pf-console-page { --accent: #4B36E8; --accent-ink: #3A28C4; --accent-soft: #ECEBFF; }
body.pf-vitrine .btn-primary, body.pf-console-page .btn-primary { background: linear-gradient(120deg, #1E3CFF, #7A2FD0); border-color: transparent; }


.cx-yt-apercu { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.cx-yt-apercu img { border-radius: 50%; }


/* ---------- Frise de démarrage (espace studio, version en ligne) ---------- */
/* Collée en haut pendant le défilement (sous le menu mobile et les fenêtres) ; la place d'origine est gardée par min-height pour éviter les sauts */
.fr-zone { position: sticky; top: var(--fr-top, 10px); margin: -4px 0 18px; z-index: 15; pointer-events: none; }
.fr-zone .fr-bandeau, .fr-zone .fr-onglet { pointer-events: auto; }
.fr-zone.is-saisie .fr-bandeau, .fr-zone.is-saisie .fr-onglet { visibility: hidden; }
.fr-bandeau { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px 10px; box-shadow: 0 14px 34px -22px rgba(60, 40, 160, .45); overflow: hidden; max-height: 420px; transition: max-height .45s cubic-bezier(.2, .8, .2, 1), opacity .3s, padding .3s, margin .3s; }
.fr-zone.is-replie .fr-bandeau { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }
.fr-zone.is-parti { opacity: 0; transform: translateY(-12px); transition: all .5s; }
.fr-tete { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fr-tete > div:first-child { display: flex; flex-direction: column; min-width: 180px; }
.fr-tete b { font-size: 15.5px; }
.fr-compte { font-size: 12.5px; color: var(--muted); }
.fr-barre { flex: 1 1 160px; height: 8px; border-radius: 6px; background: #EEEEF6; overflow: hidden; }
.fr-barre i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #12A26B, #3CCB7F); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.fr-croix { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #F2F2F8; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); flex: none; }
.fr-croix:hover { background: #E7E6F3; color: var(--ink, #1E1F24); }
.fr-frise { list-style: none; margin: 12px 0 4px; padding: 6px 2px 4px; display: flex; gap: 0; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: thin; }
.fr-etape { position: relative; flex: 1 0 104px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 4px; }
.fr-etape::before { content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: #E4E4EF; z-index: 0; }
.fr-etape:first-child::before, .fr-sep + .fr-etape::before { display: none; }
.fr-etape.is-fait::before { background: #12A26B; }
.fr-etape a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: inherit; }
.fr-pastille { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13.5px; background: #F2F2F8; color: #8C8EA0; border: 2px solid #E4E4EF; transition: all .3s; }
.fr-pastille svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 0; animation: fr-coche .5s ease-out both; }
@keyframes fr-coche { from { stroke-dashoffset: 24; } }
.fr-etape.is-fait .fr-pastille { background: #12A26B; border-color: #12A26B; }
.fr-etape.is-courant .fr-pastille { background: var(--accent); border-color: var(--accent); color: #fff; animation: fr-pulse 1.8s ease-out infinite; }
@keyframes fr-pulse { 0% { box-shadow: 0 0 0 0 rgba(105, 61, 181, .45); } 70% { box-shadow: 0 0 0 10px rgba(105, 61, 181, 0); } 100% { box-shadow: 0 0 0 0 rgba(105, 61, 181, 0); } }
.fr-lib { font-size: 12.5px; line-height: 1.25; color: var(--muted); max-width: 120px; }
.fr-etape.is-fait .fr-lib { color: #12804F; }
.fr-etape.is-courant .fr-lib { color: var(--ink, #1E1F24); font-weight: 700; }
.fr-etape.is-second .fr-pastille { width: 26px; height: 26px; font-size: 12px; margin-top: 3px; }
.fr-etape.is-second::before { top: 15px; }
.fr-etape:hover .fr-pastille { transform: scale(1.08); }
.fr-fait { margin-top: 4px; border: 0; background: none; color: var(--accent-ink); font-size: 11.5px; cursor: pointer; text-decoration: underline; padding: 2px; }
.fr-etape.is-bravo .fr-pastille { animation: fr-bravo .6s cubic-bezier(.3, 1.6, .5, 1); background: #12A26B; border-color: #12A26B; }
@keyframes fr-bravo { 50% { transform: scale(1.35); } }
.fr-sep { flex: 0 0 auto; display: flex; align-items: flex-start; padding: 6px 10px 0; }
.fr-sep span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; border-left: 2px dashed #DCDCEA; padding-left: 10px; height: 24px; display: flex; align-items: center; }
.fr-aide { margin: 6px 2px 2px; font-size: 13px; color: var(--muted); }
.fr-onglet { position: absolute; right: 18px; bottom: -14px; transform: translateY(100%); display: none; align-items: center; gap: 8px; border: 1px solid var(--line); border-top: 0; background: #fff; border-radius: 0 0 14px 14px; padding: 7px 14px; font: 600 13px var(--font, inherit); color: var(--accent-ink); cursor: pointer; box-shadow: 0 10px 22px -14px rgba(60, 40, 160, .5); }
.fr-zone.is-replie { margin-bottom: 30px; }
.fr-zone.is-replie .fr-onglet { display: inline-flex; top: 0; bottom: auto; transform: none; position: relative; float: right; margin-top: -6px; }
.fr-onglet-pt { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: fr-pulse 1.8s ease-out infinite; }
.fr-zone.is-reussite .fr-bandeau { animation: fr-flash 1.4s ease-out; }
@keyframes fr-flash { 0% { box-shadow: 0 0 0 0 rgba(18, 162, 107, .55); } 100% { box-shadow: 0 0 0 18px rgba(18, 162, 107, 0); } }
.fr-bravo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fr-bravo-ic { font-size: 30px; }
.fr-bravo div { flex: 1 1 260px; display: flex; flex-direction: column; }
.fr-bravo span { font-size: 13px; color: var(--muted); }
.fr-surbrillance { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 14px; animation: fr-halo 1.4s ease-in-out 3; }
@keyframes fr-halo { 50% { outline-color: rgba(105, 61, 181, .25); } }
/* Version compacte quand la frise est collée en haut : compteur, pastilles, « Étape suivante », croix */
.fr-zone.is-colle:not(.is-replie) .fr-bandeau { display: flex; align-items: center; gap: 12px; padding: 7px 10px 7px 16px; border-radius: 14px; box-shadow: 0 12px 30px -16px rgba(60, 40, 160, .5); }
.fr-zone.is-colle .fr-tete { display: contents; }
.fr-zone.is-colle .fr-tete > div:first-child { order: 1; min-width: 0; flex: none; }
.fr-zone.is-colle .fr-tete > div:first-child b, .fr-zone.is-colle .fr-barre, .fr-zone.is-colle .fr-aide, .fr-zone.is-colle .fr-lib, .fr-zone.is-colle .fr-fait, .fr-zone.is-colle .fr-sep span { display: none; }
.fr-zone.is-colle .fr-compte { font-weight: 700; color: var(--accent-ink); white-space: nowrap; font-size: 13px; }
/* barre de défilement des pastilles repoussée hors du bandeau (masquée par overflow: hidden) */
.fr-zone.is-colle .fr-frise { order: 2; flex: 1 1 auto; min-width: 0; margin: 0 0 -20px; padding: 2px 2px 20px; scrollbar-width: none; }
.fr-zone.is-colle .fr-frise::-webkit-scrollbar { display: none; }
.fr-zone.is-colle .fr-etape { flex: 1 0 34px; padding: 0 2px; }
.fr-zone.is-colle .fr-etape::before { top: 12px; }
.fr-zone.is-colle .fr-pastille { width: 26px; height: 26px; font-size: 12px; }
.fr-zone.is-colle .fr-etape.is-second .fr-pastille { width: 20px; height: 20px; font-size: 10.5px; margin-top: 3px; }
.fr-zone.is-colle .fr-pastille svg { width: 14px; height: 14px; }
.fr-zone.is-colle .fr-sep { padding: 0 4px; }
.fr-zone.is-colle .fr-sep::before { content: ''; display: block; height: 22px; border-left: 2px dashed #DCDCEA; }
.fr-zone.is-colle .fr-suivante { order: 3; flex: none; white-space: nowrap; }
.fr-zone.is-colle .fr-croix { order: 4; width: 30px; height: 30px; font-size: 18px; }
.fr-zone.is-colle.is-replie .fr-onglet { margin-top: 0; }
@media (max-width: 860px) {
  .fr-zone { margin: 0 0 14px; }
  .fr-bandeau { border-radius: 16px; padding: 12px; }
  .fr-tete { gap: 10px; }
  .fr-tete > div:first-child { min-width: 0; flex: 1 1 60%; }
  .fr-barre { order: 3; flex-basis: 100%; }
  .fr-suivante { order: 4; width: 100%; justify-content: center; min-height: 44px; }
  .fr-frise { scroll-snap-type: x mandatory; margin-top: 10px; }
  .fr-etape { flex: 0 0 96px; scroll-snap-align: center; }
  .fr-onglet { padding: 10px 16px; font-size: 14px; }
  .fr-zone.is-replie .fr-onglet { float: none; display: flex; margin: 0 auto; width: max-content; border-top: 1px solid var(--line); border-radius: 999px; }
  /* Téléphone, collée : une ligne compteur + bouton + croix, puis les pastilles sur une ligne qui défile */
  .fr-zone { top: var(--fr-top, 0px); }
  .fr-zone.is-colle:not(.is-replie) .fr-bandeau { flex-wrap: wrap; gap: 6px 10px; padding: 7px 10px; }
  .fr-zone.is-colle .fr-tete > div:first-child { flex: 1 1 auto; }
  .fr-zone.is-colle .fr-suivante { width: auto; min-height: 34px; padding: 6px 12px; font-size: 13px; }
  .fr-zone.is-colle .fr-frise { order: 5; flex: 1 0 100%; scroll-snap-type: none; }
  .fr-zone.is-colle .fr-etape { flex: 0 0 38px; }
}
@media (prefers-reduced-motion: reduce) { .fr-etape.is-courant .fr-pastille, .fr-onglet-pt, .fr-surbrillance { animation: none !important; } .fr-bandeau { transition: none; } }

/* ---------- Pied de page de confiance (éditeur + liens À propos / légaux) ---------- */
.pf-confiance { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.pf-confiance-editeur { opacity: .85; }
.pf-confiance-liens a { white-space: nowrap; }

/* ---------- Assistant d'aide (bulle) et page Aide (espace studio, version en ligne) ---------- */
.as-zone { position: fixed; right: 18px; bottom: 18px; z-index: 40; }
.as-bulle { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 16px 10px 10px; background: var(--accent); color: #fff; font: 600 14px var(--font, inherit); cursor: pointer; box-shadow: 0 14px 30px -12px rgba(60, 40, 160, .6); }
.as-bulle > span:first-child { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-weight: 800; }
.as-zone.is-ouvert .as-bulle { display: none; }
.as-panneau { width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 100px)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px -24px rgba(40, 30, 110, .55); overflow: hidden; }
.as-panneau[hidden] { display: none; }
.as-panneau header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--accent); color: #fff; }
.as-fermer { border: 0; background: rgba(255, 255, 255, .18); color: #fff; width: 30px; height: 30px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.as-fil { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #FAF9FE; }
.as-msg { max-width: 92%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.as-msg p { margin: 6px 0 0; } .as-msg ul { margin: 6px 0 0; padding-left: 18px; }
.as-bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; }
.as-moi { background: var(--accent); color: #fff; align-self: flex-end; white-space: pre-wrap; }
.as-choix { display: flex; flex-wrap: wrap; gap: 6px; }
.as-contact { display: flex; flex-direction: column; gap: 8px; }
.as-contact label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.as-contact textarea, .as-contact input { border: 1px solid var(--line); border-radius: 10px; padding: 8px; font: inherit; }
.as-saisie { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
.as-saisie .input { flex: 1; min-width: 0; }
.as-panneau footer { padding: 6px 12px 10px; text-align: center; color: var(--muted); }
.ai-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.ai-article { border-top: 1px solid var(--line); padding: 10px 0; }
.ai-article summary { cursor: pointer; font-weight: 600; }
.ai-corps { padding: 6px 0 2px; color: var(--ink, #1E1F24); }
.ai-corps p { margin: 6px 0; } .ai-corps ul { margin: 6px 0; padding-left: 20px; }
@media (max-width: 860px) { .as-zone { right: 12px; bottom: 12px; } .as-bulle-txt { display: none; } .as-bulle { padding: 10px; } .as-panneau { height: calc(100vh - 90px); } }
@media print { .as-zone { display: none; } }

/* ---------- Console : graphiques simples (gestion comptable) ---------- */
.pf-graphes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 10px; }
.pf-graphes h3 { font-size: 14px; margin: 0 0 8px; }
.pf-barres { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 18px; border-bottom: 1px solid var(--line); }
.pf-barres > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.pf-barres i { display: block; width: 100%; max-width: 34px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #3CCB7F, #12A26B); }
.pf-barres.is-violet i { background: linear-gradient(180deg, #9B7BE0, var(--accent)); }
.pf-barres small { position: absolute; bottom: -20px; font-size: 11px; color: var(--muted); }
.pf-barres em { position: absolute; top: -2px; font-size: 10.5px; font-style: normal; color: var(--muted); }
.pf-graphes > div { padding-bottom: 22px; }
/* ---------- Cercle des jours d'essai (menu du studio) ---------- */
.nav-ligne-essai { display: flex; align-items: center; gap: 4px; }
.nav-ligne-essai > .nav-link { flex: 1; min-width: 0; }
.essai-cercle { position: relative; flex: none; width: 36px; height: 36px; display: grid; place-items: center; text-decoration: none; border-radius: 50%; transition: transform .2s; }
.essai-cercle:hover { transform: scale(1.08); }
.essai-cercle svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.essai-cercle .essai-disque { transition: r .6s; }
.essai-cercle b { position: relative; font: 800 12.5px var(--font, Inter, sans-serif); color: var(--ec, #693DB5); }
.essai-cercle.is-mobile { display: none; margin-left: auto; margin-right: 8px; }
@media (max-width: 860px) { .essai-cercle.is-mobile { display: grid; } }

/* ---------- Écran d'accueil à la connexion (scène 3D de l'inscription + astuce du jour) ---------- */
.ac-voile { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(24, 16, 52, .38); animation: ac-entre .35s ease-out both; }
.ac-voile.is-parti { opacity: 0; transition: opacity .5s ease; pointer-events: none; }
html.ac-actif .app { filter: blur(7px) brightness(.78); transition: filter .5s ease; }
html .app { transition: filter .5s ease; }
.ac-boite { width: min(420px, 100%); background: rgba(255, 255, 255, .95); border-radius: 26px; padding: 18px 24px 22px; text-align: center; box-shadow: 0 40px 90px -30px rgba(30, 20, 90, .6); animation: ac-pop .5s cubic-bezier(.2, .9, .3, 1.2) both; }
.ac-scene { position: relative; height: 170px; perspective: 900px; display: grid; place-items: center; }
.ac-tri3d { position: relative; width: 108px; height: 108px; transform-style: preserve-3d; animation: ac-rot 4s cubic-bezier(.45, .05, .55, .95) infinite; }
.ac-tri3d img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ac-tri3d img:last-child { filter: drop-shadow(0 10px 18px rgba(75, 54, 232, .35)); }
.ac-orbite { position: absolute; width: 190px; height: 190px; border-radius: 50%; border: 1.5px dashed #D3D6F5; transform: rotateX(72deg); animation: ac-orb 6s linear infinite; transform-style: preserve-3d; }
.ac-orbite span { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(120deg, #1E3CFF, #7A2FD0); top: -6px; left: calc(50% - 6px); box-shadow: 0 0 12px rgba(75, 54, 232, .6); }
.ac-orbite span:nth-child(2) { top: auto; bottom: -6px; background: #FFB84D; }
.ac-orbite span:nth-child(3) { top: calc(50% - 6px); left: -6px; background: #3FD1A8; }
.ac-sol { position: absolute; bottom: 10px; width: 120px; height: 16px; border-radius: 50%; background: radial-gradient(closest-side, rgba(75, 54, 232, .25), transparent); animation: ac-ombre 4s ease-in-out infinite; }
.ac-titre { font-weight: 700; font-size: 17px; margin: 2px 0 10px; }
.ac-barre { height: 8px; border-radius: 6px; background: #ECEEF8; overflow: hidden; }
.ac-barre span { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(120deg, #1E3CFF, #5B33E6, #7A2FD0); animation: ac-jauge 3.4s cubic-bezier(.3, .6, .3, 1) forwards; }
.ac-astuce { margin-top: 16px; background: #F6F3FF; border-radius: 16px; padding: 12px 14px; text-align: left; }
.ac-astuce b { font-size: 13px; color: var(--accent-ink, #4B2A91); }
.ac-astuce p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; }
@keyframes ac-entre { from { opacity: 0; } }
@keyframes ac-pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes ac-rot { 0% { transform: rotateY(-35deg) rotateX(12deg); } 50% { transform: rotateY(35deg) rotateX(-6deg) translateY(-6px); } 100% { transform: rotateY(-35deg) rotateX(12deg); } }
@keyframes ac-orb { to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes ac-ombre { 50% { transform: scale(.8); opacity: .6; } }
@keyframes ac-jauge { to { width: 100%; } }
@media (max-width: 480px) { .ac-scene { height: 140px; } .ac-tri3d { width: 90px; height: 90px; } .ac-orbite { width: 160px; height: 160px; } }
@media (prefers-reduced-motion: reduce) { .ac-tri3d, .ac-orbite, .ac-sol, .ac-boite, .ac-voile { animation: none !important; } .ac-barre span { animation-duration: .01s; width: 100%; } }
/* ---------- Console : cartes des studios (Utilisateurs) ---------- */
.pf-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 16px; margin-top: 14px; }
.pf-carte-studio { background: #fff; border: 1px solid var(--line); border-left: 5px solid #B9A6E8; border-radius: 18px; padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 12px 30px -24px rgba(40, 30, 110, .45); transition: box-shadow .2s, transform .2s; }
.pf-carte-studio:hover { box-shadow: 0 18px 40px -22px rgba(40, 30, 110, .5); transform: translateY(-1px); }
.pf-carte-studio.is-actif { border-left-color: #12A26B; }
.pf-carte-studio.is-essai { border-left-color: #693DB5; }
.pf-carte-studio.is-suspendu, .pf-carte-studio.is-impaye, .pf-carte-studio.is-resilie { border-left-color: #D23A4A; }
.pf-carte-studio.is-suppression { opacity: .5; border-left-color: #999; }
.pf-carte-studio[hidden] { display: none; }
.pf-carte-studio header { display: flex; align-items: center; gap: 12px; }
.pf-avatar { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; font: 800 20px var(--font-titre, 'Playfair Display', serif); box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .12); }
.pf-carte-titre { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-carte-nom { font-weight: 700; font-size: 17px; color: var(--ink, #1E1F24); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-carte-nom:hover { color: var(--accent); }
.pf-carte-adresse { font-size: 12.5px; color: var(--muted); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-carte-etats { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pf-carte-infos { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.pf-carte-infos em { font-style: normal; font-size: 11px; background: #EEF3FF; color: #1E5BD8; border-radius: 6px; padding: 1px 6px; }
.pf-carte-chiffres { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; background: #F8F7FD; border-radius: 14px; padding: 10px 12px; }
.pf-carte-chiffres div { display: flex; flex-direction: column; min-width: 0; }
.pf-carte-chiffres small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.pf-carte-chiffres b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-carte-frise i { display: block; height: 5px; border-radius: 4px; background: #E6E2F3; margin-top: 4px; overflow: hidden; }
.pf-carte-frise i span { display: block; height: 100%; background: linear-gradient(90deg, #12A26B, #3CCB7F); }
.pf-carte-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border-top: 1px dashed var(--line); padding-top: 12px; }
.pf-carte-actions form { margin: 0; }
.pf-carte-actions .btn { border-radius: 10px; }
.pf-carte-actions .btn-primary { box-shadow: 0 8px 18px -10px rgba(105, 61, 181, .8); }
.pf-carte-actions .pf-supprimer { margin-left: auto; }
@media (max-width: 640px) { .pf-carte-chiffres { grid-template-columns: repeat(2, 1fr); } .pf-carte-studio header { flex-wrap: wrap; } .pf-carte-etats { flex-direction: row; align-items: center; width: 100%; } .pf-carte-actions .pf-supprimer { margin-left: 0; } }
.pf-filtres select.input { width: auto; flex: none; }

/* ---------- Réseaux sociaux de la signature e-mail (Paramètres) ---------- */
.sr-liste { display: flex; flex-direction: column; gap: 8px; }
.sr-ligne { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #F8F7FD; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.sr-ico { flex: none; width: 28px; height: 28px; }
.sr-ligne select.input { width: auto; flex: 0 0 150px; }
.sr-ligne input.input { flex: 1 1 220px; min-width: 0; }
.sr-btns { display: flex; gap: 4px; }
.sr-btns .btn { min-width: 32px; padding-left: 8px; padding-right: 8px; }
/* ---------- Fiche client « projet » (version en ligne) ---------- */
.fp-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 4px 0 12px; }
.fp-kpi { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; box-shadow: 0 10px 24px -22px rgba(40, 30, 110, .5); }
.fp-kpi small { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.fp-kpi b { font-size: 20px; margin-top: 2px; }
.fp-kpi em { font-style: normal; font-size: 12px; color: var(--muted); }
.fp-kpi.is-ok b { color: #12A26B; } .fp-kpi.is-ro b { color: #C2343F; }
.fp-kpi i { display: block; height: 5px; border-radius: 4px; background: #E6F3EC; margin-top: 6px; overflow: hidden; } .fp-kpi i span { display: block; height: 100%; background: linear-gradient(90deg, #12A26B, #3CCB7F); }
.fp-raccourcis { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.fp-raccourcis .btn { border-radius: 11px; }
.fp-onglets { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 14px 0 16px; overflow-x: auto; scrollbar-width: none; }
.fp-onglets::-webkit-scrollbar { display: none; }
.fp-onglets button { border: 0; background: none; padding: 10px 14px; font: 600 14px var(--font, inherit); color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.fp-onglets button.is-actif { color: var(--accent); border-bottom-color: var(--accent); }
.fp-onglets em { font-style: normal; background: #D23A4A; color: #fff; border-radius: 999px; font-size: 11px; padding: 0 6px; margin-left: 4px; }
.fp-panneaux { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-bottom: 16px; }
.fp-panneaux > section[hidden] { display: none; }
.fp-alerte { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; margin-top: 8px; border: 1px solid; }
.fp-alerte > span { font-size: 18px; line-height: 1.2; }
.fp-alerte div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .fp-alerte small { color: var(--muted); }
.fp-alerte .btn { flex: none; white-space: nowrap; }
.fp-alerte.is-ro { background: #FFF3F4; border-color: #F4CDD2; } .fp-alerte.is-or { background: #FFF8EE; border-color: #F4DDB6; } .fp-alerte.is-v { background: #F6F2FD; border-color: #E2D7F6; }
.fp-ligne { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.fp-ligne:first-of-type { border-top: 0; } .fp-ligne div { display: flex; flex-direction: column; min-width: 0; } .fp-ligne small { color: var(--muted); }
.fp-ligne a { color: inherit; text-decoration: none; } .fp-ligne a:hover b { color: var(--accent); }
.fp-pastille { flex: none; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; }
.fp-pastille.is-ok { background: #E2F6EE; color: #0E7E54; } .fp-pastille.is-or { background: #FFF1DE; color: #A35F0E; } .fp-pastille.is-gr { background: #F0EFF5; color: #5F6170; } .fp-pastille.is-v { background: #EFE8FB; color: #5A33A0; }
.client-col[hidden] { display: none; }
@media (max-width: 860px) { .fp-chiffres { grid-template-columns: repeat(2, 1fr); } .fp-panneaux { grid-template-columns: 1fr; } .fp-alerte { flex-wrap: wrap; } .fp-alerte .btn { margin-left: 28px; } }
/* ---------- Fiche « projet », étape 2 : documents attendus, tâches, échanges, livraisons ---------- */
.fp-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-bottom: 6px; }
.fp-doc, .fp-tache { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 12px; background: #fff; }
.fp-doc.is-recu { border-style: solid; background: #F6FBF8; }
.fp-doc > span, .fp-tache > span { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.fp-doc small, .fp-tache small { color: var(--muted); font-size: 12px; }
.fp-doc form, .fp-tache form { margin: 0; }
.fp-coche { border: 0; background: none; font-size: 18px; cursor: pointer; padding: 0 2px; line-height: 1; }
.fp-suppr button { border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; padding: 0 4px; }
.fp-suppr button:hover { color: #C2343F; }
.fp-tache { border-style: solid; margin-bottom: 6px; } .fp-tache.is-fait span { text-decoration: line-through; color: var(--muted); } .fp-tache.is-retard { border-color: #F2C5CB; background: #FFF6F7; } .fp-tache.is-retard small { color: #C2343F; }
.fp-ajout { margin-top: 10px; } .fp-ajout summary { cursor: pointer; font-weight: 600; color: var(--accent); font-size: 14px; }
.fp-ajout form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; } .fp-ajout form .btn { align-self: flex-start; }
.fp-suggestions { display: flex; flex-wrap: wrap; gap: 6px; } .fp-suggestions label { font-size: 13px; background: #F5F2FC; border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.fp-form-ligne { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; } .fp-form-ligne .input { flex: 1 1 160px; width: auto; } .fp-form-ligne input[type=date] { flex: 0 0 150px; }
.fp-echange-form { display: grid; grid-template-columns: auto auto 1fr; gap: 6px; margin-bottom: 10px; } .fp-echange-form textarea { grid-column: 1 / -1; } .fp-echange-form .btn { justify-self: start; }
.fp-echange { border-top: 1px solid var(--line); padding: 8px 0; position: relative; } .fp-echange small { color: var(--muted); } .fp-echange p { margin: 4px 0 0; } .fp-echange .fp-suppr { position: absolute; right: 0; top: 6px; }
.fp-livr { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; } .fp-livr-tete { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .fp-livr-tete small { color: var(--muted); } .fp-livr-tete .fp-suppr { margin-left: auto; }
.fp-retour { background: #FFF8EE; border-radius: 10px; padding: 6px 10px; margin: 6px 0 0; font-size: 13.5px; }
.fp-livr-form { display: grid !important; grid-template-columns: 1fr 1.4fr 1fr auto; } 
@media (max-width: 860px) { .fp-echange-form { grid-template-columns: 1fr 1fr; } .fp-livr-form { grid-template-columns: 1fr; } }
/* ---------- Chronologie propre au métier (fiche client, version en ligne) ---------- */
.fm-chrono { padding: 14px 16px 10px; }
.fm-chrono-tete { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.fm-etapes { list-style: none; margin: 0; padding: 6px 0 2px; display: flex; overflow-x: auto; scrollbar-width: thin; }
.fm-etapes li { flex: 1 0 96px; position: relative; text-align: center; }
.fm-etapes li::before { content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: #E4E2EE; }
.fm-etapes li:first-child::before { display: none; } .fm-etapes li.is-fait::before { background: #12A26B; }
.fm-etapes form { margin: 0; } .fm-etapes button { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 100%; padding: 0 4px; font: inherit; color: var(--muted); }
.fm-etapes button[disabled] { cursor: default; }
.fm-pt { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #F1F0F6; border: 2px solid #E4E2EE; font-weight: 700; font-size: 13px; color: #8C8EA0; }
.fm-lib { font-size: 12px; line-height: 1.25; max-width: 110px; }
.fm-etapes li.is-fait .fm-pt { background: #12A26B; border-color: #12A26B; color: #fff; } .fm-etapes li.is-fait .fm-lib { color: #0E7E54; }
.fm-etapes li.is-courant .fm-pt { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 5px rgba(105, 61, 181, .15); } .fm-etapes li.is-courant .fm-lib { color: var(--ink, #1E1F24); font-weight: 700; }
.fm-etapes button:not([disabled]):hover .fm-pt { transform: scale(1.08); }
.fm-infos { display: grid; grid-template-columns: minmax(140px, 35%) 1fr; gap: 6px 12px; margin: 0 0 12px; font-size: 14px; }
.fm-infos dt { color: var(--muted); } .fm-infos dd { margin: 0; }
/* ---------- Espace studio : typographie Outfit (hébergée, licence OFL) et titres de rubrique animés ---------- */
@font-face { font-family: 'Outfit'; src: url('fonts/outfit-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('fonts/outfit-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('fonts/outfit-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
body.vs-studio .page-head h1, body.vs-studio .client-head h1 {
  font-family: 'Outfit', var(--font, Inter), sans-serif; font-weight: 800; letter-spacing: -.025em; line-height: 1.1;
  display: inline-block; padding: 0 0 10px; position: relative;
  background: linear-gradient(100deg, #2B1766 0%, #693DB5 45%, #B54BC4 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: vs-titre .75s cubic-bezier(.2, .8, .2, 1) both;
}
body.vs-studio .page-head h1::after, body.vs-studio .client-head h1::after {
  content: ''; position: absolute; left: 0; bottom: 2px; height: 4px; width: 64px; border-radius: 4px;
  background: linear-gradient(90deg, #FFB84D, #FF7AB6, #693DB5); background-size: 200% 100%;
  transform-origin: left; animation: vs-titre-trait .9s .25s cubic-bezier(.2, .8, .2, 1) both, vs-titre-brille 4s 1.2s linear infinite;
}
@keyframes vs-titre { from { opacity: 0; transform: translateY(12px); letter-spacing: .02em; filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes vs-titre-trait { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes vs-titre-brille { to { background-position: -200% 0; } }

/* Nouvelle demande / Nouveau client / Nouveau prospect : vignettes de métier et boutons */
body.page-demande .btn, body.page-client_form .btn, body.page-demande .dm-tuile, body.page-client_form .dm-tuile { font-family: 'Outfit', var(--font, Inter), sans-serif; letter-spacing: .005em; }
body.page-demande .btn, body.page-client_form .btn { font-weight: 600; }
body.vs-studio .dm-tuiles { gap: 14px; }
body.vs-studio .dm-tuile { padding: 18px 18px 16px; border-radius: 18px; gap: 6px; background: #fff; box-shadow: 0 10px 26px -24px rgba(40, 30, 110, .6); }
body.vs-studio .dm-tuile b { font-size: 16px; font-weight: 700; color: var(--ink, #1E1F24); }
body.vs-studio .dm-tuile:hover { transform: translateY(-4px); }
.mt-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 6px; color: var(--accent); background: linear-gradient(145deg, #F3EDFE, #E6DAFB); box-shadow: inset 0 0 0 1px rgba(105, 61, 181, .12); transition: transform .25s, background .25s, color .25s; }
.mt-ico svg { width: 26px; height: 26px; stroke-width: 1.8; }
body.vs-studio .dm-tuile:hover .mt-ico, body.vs-studio .dm-tuile.is-suggere .mt-ico { color: #fff; background: linear-gradient(145deg, #7B4FD0, #5A2FA6); transform: rotate(-4deg) scale(1.05); }
body.vs-studio .dm-tuile.is-autre .mt-ico { color: #8E76C9; }
@media (prefers-reduced-motion: reduce) { body.vs-studio .page-head h1, body.vs-studio .client-head h1, body.vs-studio .page-head h1::after, body.vs-studio .client-head h1::after { animation: none; } }
/* ===== Univers métier (sélecteur du menu, rappel en haut des listes) ===== */
.un-sel { position: relative; margin: 4px 12px 14px; --un: #693DB5; }
.un-sel > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, color-mix(in srgb, var(--un) 14%, #fff), #fff); border: 1.5px solid color-mix(in srgb, var(--un) 35%, #fff);
  box-shadow: 0 8px 20px -14px color-mix(in srgb, var(--un) 80%, transparent); transition: border-color .2s, box-shadow .2s; }
.un-sel > summary::-webkit-details-marker { display: none; }
.un-sel > summary:hover, .un-sel[open] > summary { border-color: var(--un); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--un) 90%, transparent); }
.un-sel .un-ico { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px; font-size: 18px; background: color-mix(in srgb, var(--un) 16%, #fff); }
.un-sel .un-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.un-sel .un-txt small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted, #6b6585); font-weight: 600; }
.un-sel .un-txt b { font-family: Outfit, Inter, sans-serif; font-weight: 700; font-size: 15.5px; color: var(--un); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.un-sel .un-fleche { margin-left: auto; color: var(--un); font-size: 12px; transition: transform .2s; }
.un-sel[open] .un-fleche { transform: rotate(180deg); }
.un-menu { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line, #e6e1f2); border-radius: 14px; padding: 6px;
  box-shadow: 0 22px 44px -18px rgba(40, 20, 90, .35); animation: un-ouvre .18s ease; }
@keyframes un-ouvre { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.un-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink, #1d1640); font-weight: 500; font-size: 14px; }
.un-menu a .un-ico { width: 28px; height: 28px; flex-basis: 28px; font-size: 15px; }
.un-menu a em { font-style: normal; font-size: 11px; color: var(--muted, #6b6585); margin-left: 4px; }
.un-menu a:hover { background: color-mix(in srgb, var(--un) 9%, #fff); }
.un-menu a.is-on { background: color-mix(in srgb, var(--un) 13%, #fff); color: var(--un); font-weight: 700; }
.un-menu a.un-tous { border-top: 1px solid var(--line, #e6e1f2); margin-top: 4px; border-radius: 0 0 10px 10px; padding-top: 10px; }
.un-bandeau { display: flex; align-items: center; gap: 10px; margin: -4px 0 16px; padding: 9px 14px; border-radius: 12px; font-size: 14px; color: var(--ink, #1d1640);
  background: color-mix(in srgb, var(--un) 8%, #fff); border: 1px solid color-mix(in srgb, var(--un) 25%, #fff); border-left: 4px solid var(--un); }
.un-bandeau .un-ico { font-size: 17px; }
.un-bandeau b { color: var(--un); }
.un-bandeau a { margin-left: 6px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .un-menu { animation: none; } }
/* ===== Univers métier : tableau de bord du suivi (étapes du métier) ===== */
.un-tb { margin-bottom: 18px; border-top: 4px solid var(--un, #693DB5); }
.un-tb-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.un-tb-tete h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-family: Outfit, Inter, sans-serif; font-weight: 700; font-size: 21px; color: var(--ink, #1d1640); }
.un-tb-tete .un-ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; font-size: 19px; background: color-mix(in srgb, var(--un) 14%, #fff); }
.un-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 16px; }
.un-kpis > div { padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--un) 7%, #fff); border: 1px solid color-mix(in srgb, var(--un) 18%, #fff); display: flex; flex-direction: column; gap: 2px; }
.un-kpis b { font-family: Outfit, Inter, sans-serif; font-size: 24px; font-weight: 800; color: var(--un); line-height: 1.1; }
.un-kpis span { font-size: 13px; color: var(--muted, #6b6585); }
.un-pipe { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.un-col { scroll-snap-align: start; min-height: 120px; padding: 10px; border-radius: 14px; background: #faf9fd; border: 1px dashed #e2dcef; display: flex; flex-direction: column; gap: 8px; }
.un-col.has-p { background: color-mix(in srgb, var(--un) 6%, #fff); border-style: solid; border-color: color-mix(in srgb, var(--un) 22%, #fff); }
.un-col-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink, #1d1640); line-height: 1.25; min-height: 32px; }
.un-col-tete em { font-style: normal; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; background: #ece8f5; color: var(--muted, #6b6585); }
.un-col.has-p .un-col-tete em { background: var(--un); color: #fff; }
.un-carte { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line, #e6e1f2); text-decoration: none; color: inherit; font-size: 13px; box-shadow: 0 4px 10px -8px rgba(40, 20, 90, .35); transition: transform .15s, border-color .15s; }
.un-carte:hover { transform: translateY(-2px); border-color: var(--un); }
.un-carte small { color: var(--muted, #6b6585); }
.un-plus { font-size: 12.5px; font-weight: 600; color: var(--un); text-decoration: none; }
/* ===== Univers métier : mention sur les modèles juridiques ===== */
.un-mention { margin: 8px 0; padding: 8px 12px; border-radius: 10px; background: #fff7e3; border: 1px solid #f1d58f; color: #6b4a00; font-size: 12.5px; line-height: 1.45; }

/* ===== Formules : jauges d'utilisation, encart « formule supérieure », comparatif ===== */
.of-jauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.of-jauge { padding: 12px 14px; border-radius: 14px; background: #faf9fd; border: 1px solid var(--line, #e6e1f2); margin-bottom: 14px; }
.of-jauges .of-jauge { margin-bottom: 0; }
.of-jauge-txt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.of-jauge-txt .btn { margin-left: auto; }
.of-barre { height: 7px; border-radius: 99px; background: #ece8f5; margin-top: 8px; overflow: hidden; }
.of-barre span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #693DB5, #B23FC9); }
.of-jauge.is-presque { background: #fff8e8; border-color: #f1d58f; }
.of-jauge.is-presque .of-barre span { background: linear-gradient(90deg, #E0A100, #F2A93B); }
.of-jauge.is-plein { background: #fff1f0; border-color: #f3c2bd; }
.of-jauge.is-plein .of-barre span { background: linear-gradient(90deg, #D9534F, #E57B56); }
.of-encart { text-align: center; padding: 34px 24px; background: linear-gradient(135deg, #f4effd, #fff 60%, #fff7e8); border: 1.5px solid #d9cdf3; }
.of-encart h2 { font-family: Outfit, Inter, sans-serif; font-weight: 700; font-size: 22px; margin: 12px 0 8px; }
.of-encart p { max-width: 560px; margin: 0 auto 18px; color: var(--muted, #5b5675); line-height: 1.55; }
.of-encart-badge { display: inline-block; padding: 4px 12px; border-radius: 99px; background: #693DB5; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.of-comparatif { width: 100%; border-collapse: collapse; font-size: 14px; }
.of-comparatif th, .of-comparatif td { padding: 9px 10px; border-bottom: 1px solid var(--line, #e6e1f2); text-align: center; }
.of-comparatif tbody th { text-align: left; font-weight: 500; color: var(--ink, #1d1640); }
.of-comparatif thead th { font-family: Outfit, Inter, sans-serif; font-size: 17px; font-weight: 700; }
.of-comparatif thead th small { display: block; font-family: Inter, sans-serif; font-size: 12px; font-weight: 500; color: var(--muted, #6b6585); }
.of-comparatif .is-moi { background: #f4effd; }
.of-comparatif thead .is-moi { color: #693DB5; }
.of-comparatif .is-non { color: #b4aec4; }
.un-menu a.un-verrou { color: #8A8597; }
/* ===== Assistant IA : boutons et retours ===== */
.ia-barre { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ia-btn { border-color: #d9cdf3; background: linear-gradient(135deg, #fff, #f4effd); color: #4b2a8a; font-weight: 600; }
.ia-btn:hover:not([disabled]) { border-color: #693DB5; box-shadow: 0 6px 16px -10px rgba(105, 61, 181, .7); }
.ia-btn[disabled] { opacity: .65; cursor: not-allowed; }
.ia-btn small { font-weight: 500; color: var(--muted, #6b6585); }
.ia-btn.is-attente { animation: ia-pulse 1.2s ease-in-out infinite; }
@keyframes ia-pulse { 50% { box-shadow: 0 0 0 4px rgba(105, 61, 181, .15); } }
.ia-compteur { margin-left: 4px; }
.ia-retour { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: #f4effd; color: #4b2a8a; border: 1px solid #e2d8f6; }
.ia-retour.is-erreur { background: #fff1f0; color: #9b2c2c; border-color: #f3c2bd; }
@media (prefers-reduced-motion: reduce) { .ia-btn.is-attente { animation: none; } }
/* ===== Mon site internet (réglages) ===== */
.site-etat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff1f0; border: 1px solid #f3c2bd; margin-bottom: 16px; }
.site-etat.is-on { background: #eefaf2; border-color: #b8e2c6; }
.site-pastille { width: 12px; height: 12px; border-radius: 50%; background: #D9534F; flex: 0 0 12px; }
.site-etat.is-on .site-pastille { background: #2e9e5b; box-shadow: 0 0 0 4px rgba(46, 158, 91, .18); }
.site-rubriques { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ===== Nom de domaine personnel ===== */
.dom-etat { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: #fff4d1; color: #7a4b00; margin-left: 6px; }
.dom-etat.is-ok { background: #e3f6ea; color: #1f6b3d; }
.dom-etat.is-ko { background: #fde4e1; color: #9b2c2c; }
.dom-etat.is-cours { background: #ece5fb; color: #4b2a8a; }
.dom-guide { margin-top: 10px; padding: 14px 16px; border-radius: 14px; background: #faf9fd; border: 1px solid var(--line, #e6e1f2); }
.dom-dns { border-collapse: collapse; margin: 8px 0; font-size: 14px; }
.dom-dns th, .dom-dns td { padding: 6px 12px; border-bottom: 1px solid var(--line, #e6e1f2); text-align: left; }
.dom-dns code { background: #fff; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line, #e6e1f2); }
