/* Portail client — nouveau style (maquettes validées par Marc le 06/11/2026).
   Chargé seulement par portal/base.html, après portal.css (que l'espace atelier partage) :
   tout est rangé sous body.pt pour ne rien changer côté atelier. */
.pt {
  --night: #121A2E; --bg: #F3F4F8; --surface: #FFFFFF; --ink: #121A2E; --muted: #5B6478; --line: #E6E8EF;
  --line2: #E3E6EE; --lime: #C6F432; --lime-soft: #F1FBD2; --lime-ink: #3F5A00; --indigo: #4338CA;
  --indigo-soft: #ECEBFD; --accent: #4338CA; --accent-soft: #ECEBFD; --warn-bg: #FEF3E2; --warn-ink: #8A5A00;
  --ok-bg: #E7F8EE; --ok-ink: #15803D; --err-bg: #FDECEC; --danger: #B42318; --radius: 20px;
  background: var(--bg); color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums; font-size: 15px;
}
.pt a { color: var(--indigo); }
.pt h1 { font-size: 30px; font-weight: 800; letter-spacing: -.6px; line-height: 1.15; margin: 0 0 6px; }
.pt h2 { font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.pt h3 { font-size: 16px; font-weight: 800; }
.pt .wrap { max-width: 1180px; padding: 0 24px; }
.pt .main { padding-top: 28px; padding-bottom: 56px; }
.pt .muted { color: var(--muted); }
.pt .ref { font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--muted); }
.pt .back { font-weight: 700; color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.pt .icon { width: 18px; height: 18px; flex: none; }

/* Barre du haut */
.pt .topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.pt .topbar-inner { min-height: 70px; gap: 16px; flex-wrap: nowrap; }
.pt .brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; }
.pt .brand-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--night); color: #fff; display: flex;
  align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex: none; }
.pt .pnav { display: flex; gap: 4px; margin-left: 16px; }
.pt .pnav a { height: 40px; padding: 0 14px; border-radius: 10px; display: flex; align-items: center; text-decoration: none;
  font-size: 14px; font-weight: 600; color: #3B4357; transition: background .2s ease; }
.pt .pnav a:hover { background: var(--bg); }
.pt .pnav a.on { background: var(--lime-soft); color: var(--ink); font-weight: 800; }
.pt .top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.pt .who { display: flex; align-items: center; gap: 10px; }
.pt .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--indigo-soft); color: var(--indigo);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex: none; }
.pt .who-text { display: flex; flex-direction: column; line-height: 1.25; font-size: 13px; }
.pt .who-text b { font-size: 14px; }
.pt .who-text span { color: var(--muted); font-size: 12px; }
.pt .icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line2); background: #fff; color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* Boutons */
.pt .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 12px; border: 0; background: var(--night); color: #fff; font-weight: 800; font-size: 14px;
  text-decoration: none; transition: transform .15s ease, opacity .2s ease; }
.pt .btn:active { transform: scale(.98); }
.pt .btn .icon { color: var(--lime); }
.pt .btn-lime { background: var(--lime); color: var(--night); }
.pt .btn-lime .icon { color: var(--night); }
.pt .btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line2); }
.pt .btn-ghost .icon { color: var(--ink); }
.pt .btn-small { min-height: 38px; padding: 0 14px; font-size: 13px; }
.pt .btn[disabled] { opacity: .4; }
.pt .link { color: var(--indigo); font-weight: 700; text-decoration: none; }
.pt .link.danger { color: var(--danger); }

/* Cartes, pastilles, messages */
.pt .card { border-radius: var(--radius); border-color: var(--line); padding: 22px; }
.pt .badge { padding: 4px 10px; font-size: 12px; font-weight: 800; background: var(--indigo-soft); color: var(--indigo); }
.pt .badge-draft { background: #EEF0F4; color: var(--muted); }
.pt .badge-new { background: var(--warn-bg); color: var(--warn-ink); }
.pt .badge-ok { background: var(--ok-bg); color: var(--ok-ink); }
.pt .badge-blocked { background: var(--err-bg); color: var(--danger); }
.pt .badge-lime { background: var(--lime); color: var(--night); }
.pt .badge-night { background: var(--night); color: var(--lime); }
.pt .flash-list { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; width: min(520px, calc(100% - 32px));
  margin: 0; }
.pt .flash { background: var(--night); color: #fff; border-radius: 14px; padding: 13px 16px; font-size: 14px; font-weight: 600;
  box-shadow: 0 16px 36px rgba(18,26,46,.3); animation: pt-up .35s cubic-bezier(.2,.8,.2,1) both; }
.pt .flash-error { background: var(--danger); }
.pt .flash-warning { background: #8A5A00; }
.pt .notice { background: var(--warn-bg); color: var(--warn-ink); border-radius: 14px; font-weight: 600; font-size: 14px; }
.pt .ok-notice { background: var(--ok-bg); color: #14532D; }
.pt .page-head { margin-bottom: 18px; align-items: flex-end; }
.pt .status-help { font-size: 14px; }
.pt .section { margin-top: 20px; }
.pt .section > .section-head h2, .pt .card > .section-head h2 { margin: 0; }
.pt section.section:not(.card) { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.pt .list { gap: 10px; }
.pt .row-card { border-radius: 16px; border-color: var(--line); padding: 14px 16px; align-items: center; transition: transform .2s ease, box-shadow .2s ease; }
.pt a.row-card:hover { border-color: var(--line); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(18,26,46,.08); }
.pt section.section .row-card { background: #F8F9FB; border-color: transparent; }
.pt .table th { font-size: 12px; text-transform: uppercase; letter-spacing: .3px; font-weight: 800; color: var(--muted); }
.pt .chip { border-radius: 99px; background: #F3F4F8; border-color: transparent; padding: 3px 10px; font-weight: 700; }
.pt .add-box { border-radius: 16px; }
.pt .add-box summary { font-weight: 800; }

/* Formulaires */
.pt input[type=text], .pt input[type=password], .pt input[type=number], .pt input[type=date], .pt input[type=email],
.pt input[type=file], .pt select, .pt textarea {
  border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; background: #F8F9FB; font-size: 16px; }
.pt input:focus, .pt select:focus, .pt textarea:focus { outline: 2px solid var(--lime); outline-offset: 1px; border-color: var(--night); background: #fff; }
.pt .form label, .pt .field label { font-weight: 700; font-size: 14px; }
.pt .choice { border-radius: 18px; padding: 18px 18px 18px 50px; border: 2px solid var(--line); }
.pt .choice:has(input:checked) { border-color: var(--night); background: var(--night); color: #fff; box-shadow: none; }
.pt .choice:has(input:checked) .choice-text { color: #B7BFD0; }
.pt .choice input { accent-color: var(--lime); }
.pt .sizes { border-radius: 16px; border-color: var(--line); background: #fff; }
.pt .size-cell input { font-weight: 800; }

/* Fil d'échanges */
.pt .thread { gap: 12px; }
.pt .msg { border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid var(--line); padding: 10px 14px; font-size: 14px; }
.pt .msg-mine { background: var(--night); color: #fff; border-color: var(--night); border-radius: 16px 16px 4px 16px; }
.pt .msg-mine .msg-meta { color: #B7BFD0; }

/* Bas de page */
.pt .footer { background: transparent; border-top: 1px solid var(--line); }
.pt .footer-inner { font-size: 13px; }

/* Barre d'onglets du téléphone */
.pt .tabbar { display: none; }

/* Accueil */
.pt .hello-date { font-size: 14px; font-weight: 600; color: var(--muted); }
.pt .hello-sub { font-size: 16px; color: #3B4357; margin: 0; }
.pt mark.hl { background: var(--lime-soft); color: var(--ink); font-weight: 800; padding: 1px 6px; border-radius: 6px; }
.pt .todo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 12px 0 28px; }
.pt .todo-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: flex; flex-direction: column;
  gap: 8px; text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.pt .todo-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(18,26,46,.1); }
.pt .todo-card.dark { background: var(--night); color: #fff; border-color: var(--night); }
.pt .todo-card .todo-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pt .todo-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--lime-soft); color: var(--lime-ink); display: flex; align-items: center; justify-content: center; }
.pt .todo-card.dark .todo-ico { background: var(--lime); color: var(--night); }
.pt .todo-card b { font-size: 17px; }
.pt .todo-card .sub { font-size: 14px; color: var(--muted); }
.pt .todo-card.dark .sub { color: #B7BFD0; }
.pt .todo-card .go { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.pt .todo-card.dark .go { color: var(--lime); }
.pt .todo-done { background: #fff; border: 1px dashed #CBD0DC; border-radius: 22px; padding: 22px; color: var(--muted); font-size: 14px; margin: 12px 0 28px; }
.pt .home-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.pt .home-side { display: flex; flex-direction: column; gap: 14px; }
.pt .dos-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 16px; margin-bottom: 14px; }
.pt .dos-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pt .dos-head h3 { font-size: 20px; margin: 2px 0 0; letter-spacing: -.3px; }
.pt .dos-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pt .dos-facts span { background: #F6F7FA; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.pt .dos-facts b { font-size: 14px; color: var(--ink); }
.pt .last-msg { background: #F6F7FA; border-radius: 14px; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.pt .last-msg .avatar { background: var(--night); color: var(--lime); width: 32px; height: 32px; font-size: 11px; }
.pt .side-cta { background: var(--night); color: #fff; border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.pt .side-cta .kicker { font-size: 13px; color: #B7BFD0; font-weight: 600; }
.pt .side-cta b.big { font-size: 22px; line-height: 1.2; letter-spacing: -.3px; }
.pt .side-cta a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; text-decoration: none;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #fff; font-size: 12px; }
.pt .side-cta a b { font-size: 15px; }
.pt .side-cta a span { color: #B7BFD0; }
.pt .side-cta a.lime { background: var(--lime); border-color: var(--lime); color: var(--night); }
.pt .side-cta a.lime span { color: var(--lime-ink); }
.pt .side-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.pt .side-card b.t { font-size: 16px; }

/* Frise des 5 étapes */
.pt .steps5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pt .steps5 .st { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: #8790A6; }
.pt .steps5 .bar { height: 6px; border-radius: 3px; background: #E9EBF0; overflow: hidden; }
.pt .steps5 .bar i { display: block; height: 100%; background: var(--night); transform-origin: left; animation: pt-grow 1s cubic-bezier(.2,.8,.2,1) both; }
.pt .steps5 .st.now .bar i { background: var(--lime); width: 55%; }
.pt .steps5 .st.done .bar i { width: 100%; }
.pt .steps5 .st.todo .bar i { width: 0; }
.pt .steps5 .lab { display: flex; align-items: center; gap: 6px; }
.pt .steps5 .lab::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #CBD0DC; flex: none; }
.pt .steps5 .st.done, .pt .steps5 .st.now { color: var(--ink); }
.pt .steps5 .st.done .lab::before { background: var(--night); }
.pt .steps5 .st.now .lab::before { background: var(--lime); box-shadow: 0 0 0 4px rgba(198,244,50,.3); }
.pt .hero .steps5 .bar { background: rgba(255,255,255,.12); }
.pt .hero .steps5 .st { color: #8790A6; }
.pt .hero .steps5 .st.done, .pt .hero .steps5 .st.now { color: #fff; }
.pt .hero .steps5 .st.done .bar i { background: var(--lime); }
.pt .hero .steps5 .st.done .lab::before { background: var(--lime); }

/* Page d'un dossier */
.pt .hero { background: var(--night); color: #fff; border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 20px; position: relative; overflow: hidden; }
.pt .hero .ref { color: #B7BFD0; }
.pt .hero h1 { color: #fff; margin: 4px 0 0; }
.pt .hero-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.pt .hero-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.pt .hero-facts span { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: #9AA3B8; }
.pt .hero-facts b { font-size: 15px; color: #fff; }
.pt .hero-help { font-size: 14px; color: #B7BFD0; margin: 0; }
.pt .anchors { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0; }
.pt .anchors a { height: 38px; padding: 0 14px; border-radius: 99px; background: #E9EBF0; color: #3B4357; display: flex; align-items: center; font-size: 13px; font-weight: 700; text-decoration: none; }
.pt .anchors a:hover { background: #DFE2EA; }
.pt .dos-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.pt .dos-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pt .dos-main > section.section { margin-top: 0; }
.pt .chat-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; position: sticky; top: 90px; display: flex; flex-direction: column; max-height: calc(100vh - 110px); }
.pt .chat-head { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.pt .chat-head .avatar { background: var(--night); color: var(--lime); }
.pt .chat-head b { font-size: 16px; display: block; }
.pt .chat-head span { font-size: 12px; color: var(--muted); }
.pt .chat-body { padding: 16px 18px; overflow-y: auto; background: #F8F9FB; flex: 1; }
.pt .chat-body .thread { margin: 0; }
.pt .chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.pt .chat-form textarea { min-height: 48px; height: 48px; resize: none; }
.pt .chat-form .btn { width: 48px; padding: 0; flex: none; min-height: 48px; }
.pt .chat-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pt .quote-card { border: 2px solid #F59E0B; }
.pt .quote-card.ok { border-color: #16A34A; }
.pt .valid-pill { display: inline-flex; align-items: center; gap: 10px; background: var(--warn-bg); color: var(--warn-ink); border-radius: 14px; padding: 10px 14px; font-size: 13px; font-weight: 700; }
.pt .totals { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.pt .totals > span { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.pt .totals > span.big, .pt .totals > span.big span { font-size: 20px; color: var(--ink); font-weight: 800; }
.pt .size-bars { display: flex; gap: 14px; align-items: flex-end; height: 120px; padding-top: 18px; }
.pt .size-bars span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--muted); }
.pt .size-bars i { display: block; width: 100%; max-width: 56px; background: var(--night); border-radius: 10px 10px 6px 6px; transform-origin: bottom; animation: pt-growy .9s cubic-bezier(.2,.8,.2,1) both; }
.pt .size-bars b { color: var(--ink); font-size: 13px; }
.pt .sheet-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.pt .sheet-steps span { background: #F6F7FA; border-radius: 14px; padding: 12px; font-size: 13px; font-weight: 700; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.pt .sheet-steps span i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: #E3E6EE; display: flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.pt .sheet-steps span.on { background: var(--lime-soft); color: var(--ink); border: 1px solid #DCEFA3; }
.pt .sheet-steps span.on i { background: var(--night); color: #fff; }
.pt .sheet-steps span.done { color: var(--ok-ink); }
.pt .sheet-steps span.done i { background: var(--ok-ink); color: #fff; }
.pt .file-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.pt .file-tile { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff; }
.pt .file-tile .pic { height: 100px; background: #EEF4FB; color: #2C6E99; display: flex; align-items: center; justify-content: center; }
.pt .file-tile .pic .icon { width: 34px; height: 34px; }
.pt .file-tile .cap { padding: 10px 12px; display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.pt .file-tile .cap b { font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt .file-add { border: 1.5px dashed #CBD0DC; border-radius: 16px; padding: 16px; background: #fff; }
.pt .file-add summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 800; color: var(--muted); text-align: center; font-size: 14px; }
.pt .file-add summary::-webkit-details-marker { display: none; }
.pt .file-add[open] { grid-column: 1 / -1; }
.pt .checklist { border: 2px solid var(--night); }
.pt .progress5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 10px 0 14px; }
.pt .progress5 i { height: 6px; border-radius: 3px; background: #DADDE5; }
.pt .progress5 i.done { background: var(--night); }
.pt .progress5 i.now { background: var(--lime); }

/* Factures */
.pt .bill-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 18px; align-items: start; margin-bottom: 18px; }
.pt .bill-hero { background: var(--night); color: #fff; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.pt .bill-hero .k { font-size: 13px; color: #9AA3B8; }
.pt .bill-hero .amount { font-size: 32px; font-weight: 800; letter-spacing: -.8px; }
.pt .bill-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.1); }
.pt .bill-bar i { background: var(--lime); transform-origin: left; animation: pt-grow 1.2s cubic-bezier(.2,.8,.2,1) both .3s; }
.pt .rib { display: flex; align-items: center; gap: 8px; background: #F6F7FA; border-radius: 12px; padding: 10px 12px; }
.pt .rib code { flex: 1; font-family: ui-monospace, monospace; font-size: 14px; font-weight: 700; word-break: break-all; }
.pt .pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pt .pills button { height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line2); background: #fff; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.pt .pills button[aria-pressed="true"] { background: var(--night); color: #fff; border-color: var(--night); }
.pt .doc-row { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; display: grid; grid-template-columns: 48px minmax(0, 1.4fr) 1fr 1fr auto; gap: 14px; align-items: center; margin-bottom: 10px; color: var(--ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.pt .doc-row:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(18,26,46,.08); }
.pt .doc-abbr { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; background: #E2F6F5; color: #0F766E; }
.pt .doc-abbr.fa { background: var(--lime-soft); color: var(--lime-ink); }
.pt .doc-abbr.av { background: var(--err-bg); color: var(--danger); }
.pt .doc-abbr.bl { background: var(--indigo-soft); color: var(--indigo); }

/* Connexion */
.pt.auth .topbar, .pt.auth .footer { display: none; }
.pt.auth .main { padding: 0; max-width: none; }
.pt .auth-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.pt .auth-left { background: var(--night); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.pt .auth-left::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -160px; top: -140px; background: #1E2A4D; }
.pt .auth-left > * { position: relative; z-index: 1; }
.pt .auth-left .brand-dot { background: #fff; color: var(--night); width: 52px; height: 52px; font-size: 14px; }
.pt .auth-left h1 { color: #fff; font-size: 44px; letter-spacing: -1px; max-width: 520px; }
.pt .auth-left p { color: #B7BFD0; font-size: 17px; max-width: 460px; }
.pt .auth-points { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pt .auth-points li { display: flex; gap: 12px; align-items: center; font-size: 15px; animation: pt-rise .6s cubic-bezier(.2,.8,.2,1) both; }
.pt .auth-points li:nth-child(2) { animation-delay: .12s; }
.pt .auth-points li:nth-child(3) { animation-delay: .24s; }
.pt .auth-points .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: rgba(198,244,50,.14); color: var(--lime); box-sizing: border-box; }
.pt .auth-right { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.pt .auth-form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 16px; }
.pt .auth-form h2 { font-size: 26px; margin: 0; }
.pt .pw { display: flex; align-items: center; border: 1px solid var(--line2); border-radius: 12px; background: #F8F9FB; padding-right: 6px; }
.pt .pw input { border: 0 !important; background: transparent !important; outline: none !important; }
.pt .pw button { height: 40px; padding: 0 10px; border: 0; background: transparent; color: var(--indigo); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.pt .pw:focus-within { outline: 2px solid var(--lime); outline-offset: 1px; border-color: var(--night); }
.pt .auth-form .btn { min-height: 54px; font-size: 16px; }
.pt .auth-foot { font-size: 12px; color: var(--muted); text-align: center; }

/* Barre d'actions collée en bas (téléphone) */
.pt .sticky-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@keyframes pt-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pt-growy { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pt-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pt-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.pt .rise { animation: pt-rise .6s cubic-bezier(.2,.8,.2,1) both; }
@media (prefers-reduced-motion: reduce) {
  .pt *, .pt *::before { animation: none !important; transition: none !important; }
}

/* Tablette */
@media (max-width: 1000px) {
  .pt .dos-grid, .pt .home-grid, .pt .bill-grid { grid-template-columns: minmax(0, 1fr); }
  .pt .chat-card { position: static; max-height: none; }
  .pt .chat-body { max-height: 520px; }
}

/* Téléphone */
@media (max-width: 760px) {
  .pt { font-size: 15px; }
  .pt .wrap { padding: 0 16px; }
  .pt .main { padding-top: 18px; padding-bottom: 120px; }
  .pt h1 { font-size: 24px; }
  .pt .topbar-inner { min-height: 60px; }
  .pt .pnav, .pt .top-new, .pt .who-text { display: none; }
  .pt .footer { display: none; }
  .pt .tabbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 40; height: 78px; padding: 0 12px env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); }
  .pt .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 700; }
  .pt .tabbar a .icon { width: 22px; height: 22px; }
  .pt .tabbar a.on { color: var(--ink); font-weight: 800; }
  .pt .tabbar a.plus { margin-top: -24px; color: var(--ink); font-weight: 800; }
  .pt .tabbar a.plus span { width: 54px; height: 54px; border-radius: 18px; background: var(--lime); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 22px rgba(18,26,46,.18); }
  .pt .flash-list { bottom: 92px; }
  .pt .hero { border-radius: 0 0 26px 26px; margin: -18px -16px 0; padding: 20px 16px 22px; }
  .pt .hero-facts { display: flex; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .pt .hero-facts span { flex: none; min-width: 140px; }
  .pt .steps5 .st { font-size: 10px; }
  .pt .steps5 .lab::before { display: none; }
  .pt .anchors { flex-wrap: nowrap; overflow-x: auto; margin: 14px -16px; padding: 0 16px; scrollbar-width: none; position: sticky; top: 60px; z-index: 10; background: var(--bg); padding-top: 6px; padding-bottom: 6px; }
  .pt .anchors a { flex: none; }
  .pt .card, .pt section.section:not(.card), .pt .dos-card { padding: 16px; border-radius: 18px; }
  .pt .dos-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt .dos-facts span:last-child { grid-column: span 2; }
  .pt .todo-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pt .sheet-steps { grid-template-columns: minmax(0, 1fr); }
  .pt .doc-row { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .pt .doc-row .col-total, .pt .doc-row .col-state { grid-column: 2; }
  .pt .sticky-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line);
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); flex-wrap: nowrap; }
  .pt .sticky-actions > * { flex: 1; min-height: 52px; }
  .pt .sticky-actions form { display: flex; flex: 1; }
  .pt .sticky-actions form .btn { flex: 1; }
  .pt.has-sticky .tabbar { display: none; }
  .pt .table-scroll { margin: 0 -16px; padding: 0 16px; }
  .pt .auth-split { grid-template-columns: minmax(0, 1fr); }
  .pt .auth-left { padding: 40px 24px 28px; gap: 18px; }
  .pt .auth-left h1 { font-size: 30px; }
  .pt .auth-left p { font-size: 15px; }
  .pt .auth-points { display: none; }
  .pt .auth-right { border-radius: 28px 28px 0 0; margin-top: -24px; position: relative; z-index: 2; align-items: flex-start; padding-top: 28px; }
}

/* Quantités par taille : boutons + et − */
.pt .stepper { display: flex; align-items: center; gap: 4px; }
.pt .stepper input { text-align: center; padding: 10px 4px; min-width: 0; }
.pt .stepper button { width: 36px; height: 44px; flex: none; border-radius: 10px; border: 1px solid var(--line2); background: #fff; color: var(--ink);
  font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; }
.pt .stepper button:last-child { background: var(--night); color: #fff; border-color: var(--night); }
.pt .size-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
@media (max-width: 760px) {
  .pt .size-grid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .pt .size-cell { flex-direction: row; align-items: center; justify-content: space-between; border-bottom: 1px solid #F0F1F5; padding: 4px 0; }
  .pt .size-cell label { text-align: left; font-size: 15px; font-weight: 800; }
  .pt .stepper button { width: 44px; }
  .pt .stepper input { width: 56px; }
}
@media (max-width: 760px) { .pt .hide-phone { display: none !important; } }
.pt .show-phone { display: none; }
@media (max-width: 760px) {
  .pt .show-phone { display: block; }
  .pt .auth-split { grid-template-rows: auto 1fr; }
  .pt .sticky-actions .btn { white-space: nowrap; font-size: 14px; padding: 0 12px; }
  .pt .sticky-actions .btn .icon { display: none; }
}

/* Propositions */
.pt .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pt .opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; align-items: start; }
.pt .opt-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.pt .opt-pic { height: 260px; background: #E8EBF6; display: flex; align-items: center; justify-content: center; position: relative; color: var(--night); }
.pt .opt-pic img { width: 100%; height: 100%; object-fit: contain; }
.pt .opt-pic > .icon { width: 120px; height: 120px; stroke-width: 1.2; }
.pt .opt-card:nth-child(2n) .opt-pic { background: #F7E9EE; }
.pt .opt-letter { position: absolute; left: 16px; top: 16px; width: 40px; height: 40px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; box-shadow: 0 4px 12px rgba(18,26,46,.08); }
.pt .opt-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pt .opt-parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pt .opt-part { background: #F6F7FA; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #3B4357; }
.pt .opt-part .k { font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.pt .opt-part b { color: var(--ink); font-size: 14px; }
.pt .validate-box { margin-top: 0; }
.pt .decision { border-radius: 12px; border-left-width: 4px; background: #F8F9FB; }
@media (max-width: 760px) {
  .pt .opt-grid { grid-template-columns: minmax(0, 1fr); }
  .pt .opt-pic { height: 220px; }
  .pt .opt-parts { grid-template-columns: minmax(0, 1fr); }
}

/* Fiche technique : vérifier les tailles */
.pt .sheet-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 18px; align-items: start; }
.pt .sheet-pic { background: #EAF3FB; border-radius: 18px; height: 330px; display: flex; align-items: center; justify-content: center; color: #2C6E99; overflow: hidden; }
.pt .sheet-pic img { width: 100%; height: 100%; object-fit: contain; }
.pt .sheet-pic > .icon { width: 140px; height: 140px; stroke-width: 1.1; }
.pt .size-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pt .size-chips button { flex: none; min-width: 64px; height: 54px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line2); background: #fff; color: var(--ink);
  font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.pt .size-chips button b { font-size: 16px; }
.pt .size-chips button span { font-size: 10px; font-weight: 700; color: var(--muted); }
.pt .size-chips button.off b { color: #8790A6; }
.pt .size-chips button[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #fff; }
.pt .size-chips button[aria-pressed="true"] b, .pt .size-chips button[aria-pressed="true"] span { color: #fff; }
.pt .measure-list { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.pt .measure-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-top: 1px solid #EEF0F4; }
.pt .measure-row:first-child { border-top: 0; background: var(--lime-soft); }
.pt .measure-row .code { width: 32px; height: 32px; border-radius: 10px; background: #F3F4F8; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex: none; }
.pt .measure-row:first-child .code { background: var(--night); color: var(--lime); }
.pt .measure-row .val { font-size: 26px; font-weight: 800; letter-spacing: -.5px; white-space: nowrap; }
.pt .measure-row .val small { font-size: 13px; color: var(--muted); font-weight: 700; }
.pt .valid-box { background: var(--night); color: #fff; border-radius: 22px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.pt .valid-box label { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.pt .valid-box input[type=checkbox] { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--lime); }
.pt .btn-ghost-dark { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
@media (max-width: 1000px) { .pt .sheet-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .pt .sheet-pic { height: 240px; }
  .pt .size-chips { margin: 0 -16px; padding: 0 16px 2px; }
  .pt .valid-box { padding: 16px; }
  .pt .valid-box .sticky-actions { background: #fff; }
  .pt .valid-box .btn-ghost-dark { color: var(--ink); border-color: var(--line2); background: #fff; }
}
.pt .table tfoot th { font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.pt .table tfoot tr:last-child th { font-size: 18px; }
@media (max-width: 760px) {
  .pt .table-scroll .table { min-width: 560px; }
  .pt .quote-card .table-scroll .table { min-width: 0; }
  .pt .bill-hero b { font-size: 16px !important; }
}
.pt .eyebrow { display: block; font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
