/* ==========================================================
   BARASSEUR PRO — espace vendeur web (s'appuie sur site.css)
   ========================================================== */
body.pro { background: var(--soft); min-height: 100vh; }
.link { color: var(--ink); text-decoration: underline; font-weight: 600; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; }
.pro-tag { margin-left: 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 3px 7px; border-radius: 5px; background: var(--ink); color: var(--bg); }

/* ---------- Barre du haut ---------- */
.pro-top { position: sticky; top: 0; z-index: 60; background: var(--bg); border-bottom: 1px solid var(--line); }
.pro-bar { display: flex; align-items: center; gap: 26px; height: 68px; padding: 0 28px; max-width: 1440px; margin: 0 auto; }
.pro-bar .logo { font-size: 20px; }
.pro-bar .logo-mark { width: 28px; height: 28px; font-size: 15px; }
.pro-nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.pro-nav::-webkit-scrollbar { display: none; }
.pro-nav > a, .pro-nav .pro-more > button { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 68px; padding: 0 11px; font-size: 14.5px; font-weight: 600; color: var(--muted); white-space: nowrap; border: 0; background: none; cursor: pointer; border-bottom: 3px solid transparent; }
.pro-nav > a:hover, .pro-nav .pro-more > button:hover { color: var(--ink); text-decoration: none; }
.pro-nav > a.is-on, .pro-nav .pro-more > button.is-on { color: var(--ink); border-bottom-color: var(--ink); }
.pro-dot { position: absolute; top: 20px; right: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-orange); }
.pro-right { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.pro-more { position: relative; }
.pro-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 70; min-width: 230px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 6px; }
.pro-nav .pro-menu { position: fixed; top: 62px; left: auto; }
.pro-menu[hidden] { display: none; }
.pro-menu--right { left: auto; right: 0; }
.pro-menu--wide { width: 360px; max-height: 70vh; overflow-y: auto; }
.pro-menu a, .pro-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 7px; border: 0; background: none; font-size: 14.5px; color: var(--ink); cursor: pointer; }
.pro-menu a:hover, .pro-menu button:hover { background: var(--soft-2); text-decoration: none; }
.pro-menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; flex-direction: column; }
.pro-bell { position: relative; }
.pro-badge { position: absolute; top: 2px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--brand-orange); color: #fff; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pro-badge[hidden] { display: none; }
.pro-avatar-btn { border: 0; background: none; padding: 2px; border-radius: 50%; cursor: pointer; }
.notif { display: block; padding: 10px 12px; border-radius: 8px; }
.notif:hover { background: var(--soft-2); text-decoration: none; }
.notif strong { display: block; font-size: 14px; }
.notif span { display: block; font-size: 13px; color: var(--muted); }
.notif time { font-size: 12px; color: var(--muted-2); }
.notif.is-unread strong::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-orange); margin-right: 6px; vertical-align: 2px; }

/* ---------- Contenu ---------- */
.pro-main { padding: 28px 0 64px; }
.pro-wrap { max-width: 1440px; margin: 0 auto; padding: 0 28px; }
.pro-loading { display: flex; justify-content: center; padding: 80px 0; }
.pro-spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pro-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 120; background: #111; color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14.5px; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); }
.pro-toast.is-err { background: #B42318; }
.pro-toast[hidden] { display: none; }

.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.ph h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.ph p { color: var(--muted); margin-top: 4px; }
.ph-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 10px; }

.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card + .card { margin-top: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { font-size: 17px; font-weight: 700; }
.card-body { padding: 20px 22px; }
.card-body--flush { padding: 0; }
.card-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack > .card + .card, .dash-side > .card + .card { margin-top: 0; }

.dash { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.dash-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 92px; }
.me-card { text-align: center; padding: 26px 22px; }
.me-card .avatar { width: 88px; height: 88px; font-size: 28px; margin: 0 auto 12px; }
.me-card h2 { font-size: 18px; font-weight: 700; }
.me-rows { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; text-align: left; font-size: 14px; }
.me-rows div { display: flex; justify-content: space-between; gap: 10px; }
.me-rows dt { color: var(--muted); }
.me-rows dd { margin: 0; font-weight: 600; }
.progress { height: 7px; border-radius: 99px; background: var(--soft-2); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.progress--accent > span { background: var(--accent); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
a.kpi:hover { border-color: var(--line-2); text-decoration: none; box-shadow: var(--shadow); }
.kpi span { font-size: 13.5px; color: var(--muted); }
.kpi strong { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.kpi.is-hot { border-color: var(--ink); }
.kpi small { font-size: 12.5px; color: var(--muted); }

.money-card { padding: 20px 22px; }
.money-card .big { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 12px; }
.money-rows { display: grid; gap: 8px; font-size: 14px; margin-bottom: 14px; }
.money-rows div { display: flex; justify-content: space-between; }
.money-rows dt { color: var(--muted); }
.money-rows dd { margin: 0; font-weight: 600; }

.banner { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); margin-bottom: 18px; font-size: 14.5px; }
.banner--warn { background: var(--warn-soft); border-color: transparent; }
.banner--accent { background: var(--accent-soft); border-color: transparent; }
.banner .btn { margin-left: auto; }

/* Tableaux */
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--soft); white-space: nowrap; }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: default; }
.tbl tbody tr[data-href] { cursor: pointer; }
.tbl tbody tr[data-href]:hover { background: var(--soft); }
.tbl .num { text-align: right; white-space: nowrap; font-weight: 600; }
.tbl-wrap { overflow-x: auto; }
.cell-main { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.cell-main img, .cell-thumb { width: 64px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--soft-2); flex: none; }
.cell-title { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cell-sub { font-size: 13px; color: var(--muted); }

/* Statuts */
.st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--soft-2); color: var(--ink-2); }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.st--new, .st--paid, .st--pending { background: #FFF4E5; color: #9A4B00; }
.st--progress, .st--accepted, .st--in_progress, .st--active { background: #E8F1FD; color: #1C4F9A; }
.st--delivered { background: #F2EAFB; color: #6232A3; }
.st--done, .st--completed, .st--approved { background: var(--accent-soft); color: var(--accent); }
.st--bad, .st--cancelled, .st--disputed, .st--rejected, .st--refunded { background: #FDECEC; color: #B42318; }
.st--paused, .st--draft, .st--withdrawn, .st--expired { background: var(--soft-2); color: var(--muted); }
html[data-mode="dark"] .st--new, html[data-mode="dark"] .st--paid, html[data-mode="dark"] .st--pending { background: #3A2A12; color: #F6C27A; }
html[data-mode="dark"] .st--progress, html[data-mode="dark"] .st--accepted, html[data-mode="dark"] .st--in_progress, html[data-mode="dark"] .st--active { background: #15253C; color: #9CC2F5; }
html[data-mode="dark"] .st--delivered { background: #2A1D3B; color: #CBA9F5; }
html[data-mode="dark"] .st--bad, html[data-mode="dark"] .st--cancelled, html[data-mode="dark"] .st--disputed, html[data-mode="dark"] .st--rejected { background: #3A1A1A; color: #FF9C9C; }

/* Onglets */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { border: 0; background: none; padding: 12px 14px; font-weight: 600; font-size: 14.5px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs button:hover, .tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs .is-on { color: var(--ink); border-bottom-color: var(--ink); }
.tabs .count { font-size: 12px; background: var(--soft-2); border-radius: 999px; padding: 1px 7px; color: var(--ink-2); }
.card > .tabs { margin: 0; padding: 0 12px; }

/* Formulaires */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > label, .label { font-weight: 600; font-size: 14px; }
.help { font-size: 13px; color: var(--muted); }
.input, .form input:not([type=checkbox]):not([type=radio]):not([type=file]), .form select, .form textarea,
.auth-form input:not([type=checkbox]):not([type=radio]), .auth-form select, .auth-form textarea, .modal input:not([type=checkbox]):not([type=radio]):not([type=file]), .modal select, .modal textarea {
    width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); font-size: 15px; color: var(--ink);
}
.form textarea, .auth-form textarea, .modal textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus, .form input:focus, .form select:focus, .form textarea:focus, .auth-form input:focus, .auth-form select:focus, .auth-form textarea:focus, .modal input:focus, .modal select:focus, .modal textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(34,35,37,.08); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.field-err { color: var(--danger); font-size: 13.5px; }
.field-err[hidden] { display: none; }
.check-line { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; font-size: 14px !important; }
.check-line input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--ink); flex: none; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { width: 40px; height: 23px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .2s; flex: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(17px); }
.counter { font-size: 12.5px; color: var(--muted-2); text-align: right; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.seg label { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.seg label + label { border-left: 1px solid var(--line-2); }
.seg input { accent-color: var(--ink); }
.seg label:has(input:checked) { background: var(--soft-2); }

/* Fenêtre modale */
.modal { position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--bg); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.modal-box--wide { width: min(760px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 18px; font-weight: 700; }
.modal-close { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 4px; }
.modal-body { padding: 20px 22px; display: grid; gap: 16px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* Offres (liste) */
.gig-actions { display: flex; gap: 6px; justify-content: flex-end; }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { border-color: var(--ink); }

/* Éditeur d'offre façon Fiverr */
.wizard { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.wizard-steps { display: flex; gap: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); overflow-x: auto; margin-bottom: 18px; }
.wizard-steps button { flex: 1; min-width: 130px; border: 0; background: none; padding: 14px 12px; font-weight: 600; font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; justify-content: center; cursor: pointer; border-bottom: 3px solid transparent; }
.wizard-steps button span { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.wizard-steps button.is-on { color: var(--ink); border-bottom-color: var(--ink); }
.wizard-steps button.is-on span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.wizard-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 14px; }
.tips { font-size: 14px; color: var(--ink-2); }
.tips h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.tips ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.preview-card { overflow: hidden; }
.preview-card .gig { padding: 14px; }

.pkg-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pkg-table th, .pkg-table td { border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }
.pkg-table th { background: var(--soft); text-align: left; font-size: 14px; }
.pkg-table th:first-child, .pkg-table td:first-child { width: 150px; font-weight: 600; font-size: 13.5px; color: var(--muted); background: var(--soft); }
.pkg-table input, .pkg-table textarea { width: 100%; border: 1px solid transparent !important; border-radius: 6px; padding: 6px 8px !important; min-height: 34px !important; background: transparent !important; font-size: 14px !important; }
.pkg-table input:focus, .pkg-table textarea:focus { border-color: var(--ink) !important; background: var(--bg) !important; box-shadow: none !important; }
.pkg-table textarea { min-height: 64px !important; }
.pkg-table .is-off { opacity: .45; }
.pkg-col-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.list-editor { display: grid; gap: 10px; }
.list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--soft); }
.list-row .row2, .list-row .row3 { gap: 10px; }
.list-row-fields { display: grid; gap: 10px; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.media-tile { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: var(--soft-2); border: 1px solid var(--line); }
.media-tile img { width: 100%; height: 100%; object-fit: cover; }
.media-tile .icon-btn { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; }
.media-tile em { position: absolute; left: 6px; top: 6px; font-style: normal; font-size: 11.5px; font-weight: 700; background: #fff; color: #222; padding: 2px 7px; border-radius: 5px; }
.media-add { aspect-ratio: 16 / 10; border-radius: var(--r-lg); border: 1.5px dashed var(--line-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); cursor: pointer; font-size: 13.5px; font-weight: 600; background: var(--bg); }
.media-add:hover { border-color: var(--ink); color: var(--ink); }
.media-add input { display: none; }

/* Messagerie */
.chat { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - 68px - 56px - 70px); min-height: 480px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-item { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.chat-item:hover { background: var(--soft); text-decoration: none; }
.chat-item.is-on { background: var(--soft-2); }
.chat-item-main { min-width: 0; flex: 1; }
.chat-item-top { display: flex; justify-content: space-between; gap: 8px; }
.chat-item-top strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item-top time { font-size: 12px; color: var(--muted-2); flex: none; }
.chat-item p { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item .pro-badge { position: static; }
.chat-thread { display: flex; flex-direction: column; min-width: 0; }
.chat-head { padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 8px; background: var(--soft); }
.msg { max-width: 72%; padding: 9px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; background: var(--bg); border: 1px solid var(--line); align-self: flex-start; white-space: pre-wrap; word-wrap: break-word; }
.msg.mine { align-self: flex-end; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.msg time { display: block; font-size: 11px; opacity: .6; margin-top: 3px; }
.msg img { max-width: 240px; border-radius: 8px; margin-bottom: 4px; }
.msg-system { align-self: center; font-size: 12.5px; color: var(--muted); background: none; border: 0; }
.chat-form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-form textarea { flex: 1; min-height: 44px; max-height: 160px; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: var(--r); resize: none; font-size: 15px; background: var(--bg); color: var(--ink); }
.chat-form textarea:focus { outline: none; border-color: var(--ink); }
.chat-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--muted); }

/* Détail commande */
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.timeline li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; font-size: 14.5px; }
.timeline li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); margin-top: 6px; }
.timeline li:first-child::before { background: var(--ink); }
.timeline time { display: block; font-size: 12.5px; color: var(--muted); }
.timeline .media-row { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.timeline .media-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; }
.kv .total { font-size: 17px; }
.steps-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 18px; }
.steps-bar div { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.steps-bar div::before { content: ""; display: block; height: 5px; border-radius: 99px; background: var(--line); margin-bottom: 6px; }
.steps-bar div.is-done::before { background: var(--ink); }
.steps-bar div.is-done { color: var(--ink); }
.answer { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.answer:last-child { border-bottom: 0; }
.answer strong { display: block; }

/* Graphique */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding-top: 10px; }
.bars span { flex: 1; background: var(--ink); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; opacity: .85; }
.bars span:hover { opacity: 1; }
.bars span:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: #111; color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; z-index: 2; }
.bars-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted-2); margin-top: 6px; }

/* Avis */
.review-card { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.review-card:last-child { border-bottom: 0; }
.review-sub { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Plans */
.plans-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

/* ---------- Connexion / inscription ---------- */
body.pro-auth { background: var(--bg); }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 100vh; }
.auth-side { background: var(--brand-deep); color: #fff; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.logo--light, .logo--light:hover { color: #fff; }
.logo--light .logo-word span { color: var(--brand-green); }
.logo--light .pro-tag { background: #fff; color: var(--brand-deep); }
.auth-side h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; max-width: 460px; }
.auth-side ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; font-size: 16px; color: rgba(255,255,255,.88); }
.auth-side li { display: flex; gap: 10px; align-items: center; }
.auth-side li svg { color: var(--brand-green); flex: none; }
.auth-side-foot { font-size: 14px; color: rgba(255,255,255,.65); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: min(460px, 100%); }
.auth-box .notice { margin-bottom: 16px; }
.auth-title { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); margin: 22px 0 6px; }
.auth-tabs button { border: 0; background: none; padding: 12px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; }
.auth-tabs button.is-on { color: var(--ink); border-bottom-color: var(--ink); }
.auth-form { display: grid; gap: 14px; margin-top: 18px; }
.auth-form[hidden] { display: none; }
.auth-form label:not(.check-line):not(.cat-opt) { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.auth-form label[hidden] { display: none !important; }
.cat-picker { margin-top: 8px; max-height: 300px; overflow-y: auto; border: 1px solid var(--line-2); border-radius: var(--r); }
.cat-picker details + details { border-top: 1px solid var(--line); }
.cat-picker summary { padding: 11px 12px; font-weight: 600; font-size: 14px; cursor: pointer; }
.cat-options { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 0 12px 12px; }
.cat-opt { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400 !important; cursor: pointer; }
.cat-opt[hidden] { display: none; }
.cat-opt input { accent-color: var(--ink); width: 16px; height: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .dash, .order-grid, .wizard { grid-template-columns: minmax(0, 1fr); }
    .dash-side, .wizard-side { position: static; }
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .chat { grid-template-columns: 280px minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .pro-bar { padding: 0 14px; gap: 12px; height: auto; flex-wrap: wrap; padding-top: 10px; }
    .pro-nav { order: 3; flex-basis: 100%; }
    .pro-nav > a, .pro-nav .pro-more > button { height: 46px; }
    .pro-dot { top: 12px; }
    .pro-nav .pro-menu { top: 104px; }
    .pro-wrap { padding: 0 14px; }
    .row2, .row3 { grid-template-columns: 1fr; }
    .chat { grid-template-columns: minmax(0, 1fr); height: auto; }
    .chat.has-thread .chat-list { display: none; }
    .chat:not(.has-thread) .chat-thread { display: none; }
    .chat-msgs { min-height: 50vh; }
    .auth-shell { grid-template-columns: minmax(0, 1fr); }
    .auth-side { display: none; }
    .cat-options { grid-template-columns: 1fr; }
    .pkg-table th:first-child, .pkg-table td:first-child { width: 96px; }
    .tbl-wrap .tbl { min-width: 620px; }
    .tbl-wrap .pkg-table { min-width: 600px; }
}

/* Profondeur : boîtes posées, chiffres clés qui se soulèvent */
.card, .kpi, .me-card, .money-card, .review-card, .preview-card { box-shadow: var(--sh-1); }
.kpi { transition: transform .3s var(--lift), box-shadow .3s; }
a.kpi:hover, .kpi:hover { transform: translateY(-3px); box-shadow: var(--sh-2); text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
    #pro-root > * { animation: hero-in .5s var(--lift) both; }
    #pro-root .kpi, #pro-root .card { animation: hero-in .55s var(--lift) both; }
    #pro-root .kpi:nth-child(2) { animation-delay: .05s; } #pro-root .kpi:nth-child(3) { animation-delay: .1s; } #pro-root .kpi:nth-child(4) { animation-delay: .15s; }
}
.pro-foot { padding: 22px 0 30px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 30px; }
.pro-foot a { color: var(--ink-2); font-weight: 600; }

/* Inscription : choix de l'activité */
.kind-cards { display: grid; gap: 12px; margin-top: 18px; }
.kind-card { text-align: left; border: 0; border-radius: 18px; padding: 18px 20px; color: #fff; cursor: pointer; display: grid; gap: 4px; font: inherit; transition: transform .25s cubic-bezier(.2,.9,.25,1.15), box-shadow .25s; }
.kind-card strong { font-family: var(--font-display); font-size: 20px; font-stretch: 88%; }
.kind-card span { opacity: .9; font-size: 14px; line-height: 1.45; }
.kind-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -16px rgba(0,0,0,.45); }
.kind-card--green { background: linear-gradient(135deg, #0A341B, #1F6B3A); }
.kind-card--blue { background: linear-gradient(135deg, #1D3B6E, #2D63B0); }
.kind-card--orange { background: linear-gradient(135deg, #8C2E0C, #F96A33); }
.geo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .geo-row { grid-template-columns: 1fr; } }

/* Courbes */
.lc-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.lc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lc-svg { width: 100%; display: block; overflow: visible; }
.lc-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lc-line { stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: lc-draw 1.4s cubic-bezier(.2,.8,.2,1) forwards; }
.lc-line:nth-of-type(3) { animation-delay: .15s; }
.lc-area { opacity: 0; animation: lc-fade .8s .5s ease forwards; }
.lc-hit { fill: transparent; }
.lc-hit:hover { fill: rgba(127,127,127,.08); }
.lc-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
@keyframes lc-draw { to { stroke-dashoffset: 0; } }
@keyframes lc-fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lc-line { animation: none; stroke-dashoffset: 0; } .lc-area { animation: none; opacity: 1; } }

/* Studio formateur */
.studio-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: center; padding: 28px; margin-bottom: 20px; border-radius: 24px; color: #fff;
    background: linear-gradient(130deg, #2A1408, #7A2E0E 55%, #F96A33); box-shadow: 0 30px 60px -30px rgba(122,46,14,.7); }
.studio-hero::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 65%); animation: studio-glow 10s ease-in-out infinite alternate; }
.studio-hero > * { position: relative; }
.studio-tag { display: inline-block; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.16); font-size: 12px; font-weight: 700; }
.studio-hero h1 { font-family: var(--font-display); font-stretch: 85%; font-size: 34px; margin: 10px 0 4px; color: #fff; }
.studio-hero p { opacity: .88; }
.studio-money { margin: 18px 0; display: grid; }
.studio-money span { font-size: 13px; opacity: .8; font-weight: 600; }
.studio-money strong { font-family: var(--font-display); font-size: 34px; letter-spacing: -.02em; }
.studio-hero .lc-legend { color: rgba(255,255,255,.8); }
.studio-hero .lc-grid { stroke: rgba(255,255,255,.18); }
.studio-hero .lc-axis { color: rgba(255,255,255,.7); }
@keyframes studio-glow { to { transform: translate(-80px, 60px) scale(1.2); } }
@media (max-width: 860px) { .studio-hero { grid-template-columns: 1fr; padding: 22px; } }

/* ---- Animations de l'espace vendeur : entrées en cascade, cartes qui réagissent ---- */
@keyframes pro-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
#pro-root > *, .rise { animation: pro-rise .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.stack > *:nth-child(2), .grid2 > *:nth-child(2) { --i: 1; } .stack > *:nth-child(3) { --i: 2; } .stack > *:nth-child(4) { --i: 3; } .stack > *:nth-child(5) { --i: 4; }
.stack > *, .grid2 > *, .kpis > * { animation: pro-rise .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.card { transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: 0 14px 34px -18px rgba(16, 40, 30, .35); }
@media (prefers-reduced-motion: reduce) { #pro-root > *, .rise, .stack > *, .grid2 > *, .kpis > * { animation: none; } .card:hover { transform: none; } }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plain-list li { padding-bottom: 10px; border-bottom: 1px solid var(--line, rgba(0,0,0,.08)); }
.plain-list li:last-child { border: 0; padding: 0; }

.feat-list { display: grid; gap: 10px; }
.feat { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line, rgba(0,0,0,.08)); border-radius: 14px; }
.feat-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--green, #0f5132) 12%, transparent); color: var(--green, #0f5132); flex: none; }
.feat-txt { flex: 1; display: grid; gap: 2px; min-width: 0; }

.biz-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 26px; color: #fff; background: linear-gradient(135deg, #1d3b6e, #26508f 55%, #2f6fb5); display: grid; gap: 16px; }
.biz-hero::after { content: ''; position: absolute; width: 260px; height: 260px; right: -60px; top: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%); animation: studio-glow 7s ease-in-out infinite alternate; }
.biz-hero h2 { font-family: var(--font-display); font-size: 24px; margin: 0 0 6px; }
.biz-hero p { margin: 0; opacity: .9; max-width: 560px; }
.biz-actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.biz-hero .btn-outline { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.biz-hero .btn-primary { background: #fff; color: #1d3b6e; border-color: #fff; }

/* Mon abonnement */
.sub-hero { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; justify-content: space-between; padding: 26px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #0a341b, #124526 55%, #2b8a3e); position: relative; overflow: hidden; }
.sub-hero::after { content: ''; position: absolute; width: 240px; height: 240px; right: -60px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.2), transparent 70%); animation: studio-glow 7s ease-in-out infinite alternate; }
.sub-hero h2 { font-family: var(--font-display); font-size: 28px; margin: 2px 0 6px; }
.sub-hero p { margin: 0; opacity: .9; }
.sub-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9fe07a; }
.sub-bar { margin-top: 14px; height: 8px; width: min(420px, 70vw); border-radius: 99px; background: rgba(255,255,255,.18); overflow: hidden; }
.sub-bar i { display: block; height: 100%; border-radius: 99px; background: #f96a33; animation: sub-fill 1.2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes sub-fill { from { width: 0; } }
.sub-actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.sub-hero .btn-primary { background: #f96a33; border-color: #f96a33; color: #0e1f18; }
.sub-hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.table-wrap { overflow-x: auto; }
