/*
 * Le portail MOBDIE — formulaire en ligne, espace client, espace des cabinets.
 *
 * v1.14.0 — la refonte validée par le gérant le 07/10/2026 (canevas « Refonte
 * portail MOBDIE ») : le vrai logo, la police Manrope hébergée sur le serveur,
 * un écran partagé pour le public, un menu fixe à gauche sur ordinateur et des
 * onglets en bas sur téléphone, une seule échelle de texte (13, 15, 18, 28,
 * 40 px), des contrastes AA.
 *
 * Feuille autonome, compilée par Vite : aucune police ni aucun script d'un
 * CDN. Les noms de classes de la v1.12.0 sont gardés : les écrans qui n'ont
 * pas été redessinés prennent la nouvelle allure d'eux-mêmes.
 */

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url('/fonts/manrope/manrope-latin-ext-wght-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url('/fonts/manrope/manrope-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --violet-marque: #AD5DEC;
    --violet: #8B3FD9;
    --violet-700: #7630C2;
    --violet-600: #7B33C9;
    --violet-ink: #6E2BB8;
    --violet-25: #FAF7FE;
    --violet-50: #F3E9FD;
    --violet-100: #EADCFA;
    --violet-200: #CDB6EE;
    --orange: #F59711;
    --ink: #17151C;
    --ink-2: #2A2633;
    --ink-3: #4B4656;
    --muted: #6A6576;
    --faint: #A7A2B1;
    --line: #E8E5EF;
    --line-2: #DAD6E3;
    --line-3: #EFEDF3;
    --bg: #F6F5F9;
    --card: #FFFFFF;
    --ok: #11663A;
    --ok-txt: #11753F;
    --ok-50: #E6F5EC;
    --ok-line: #CFE8DA;
    --ok-border: #3E9D6A;
    --warn: #7F4D00;
    --warn-txt: #8A5300;
    --warn-50: #FFF1DB;
    --warn-border: #D99A2B;
    --err: #A8231A;
    --err-txt: #B42318;
    --err-50: #FDEBE9;
    --err-border: #D23B30;
    --info: #3340A8;
    --info-50: #E9ECFF;
    --info-ink: #28307A;
    --cyan: #0E7490;
    --cyan-50: #E6F6FA;
    --r: 14px;
    --r-sm: 10px;
    /* Compatibilité v1.12 */
    --green: var(--ok-txt);
    --green-50: var(--ok-50);
    --red: var(--err-txt);
    --red-50: var(--err-50);
    --orange-50: var(--warn-50);
    --orange-ink: var(--warn);
    --cyan-ink: var(--cyan);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
[x-cloak], [hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 6px; }

.pt-logo { display: block; height: 34px; width: auto; color: var(--ink); flex: none; }
.pt-logo svg { height: 100%; width: auto; }
.pt-sigle { display: block; height: 26px; width: auto; flex: none; }
.pt-sigle svg { height: 100%; width: auto; }
.pt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =====================================================================
 * 1. Le public : l'écran partagé (accueil, connexion, confirmation)
 * ===================================================================== */

.pt-split { min-height: 100vh; display: flex; flex-wrap: wrap; background: var(--bg); }
.pt-brand {
    flex: 1 1 440px; background: var(--violet); color: #fff; padding: 48px 56px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.pt-brand-logo { align-self: flex-start; }
.pt-brand .pt-logo { height: 52px; color: #fff; }
.pt-brand-c { display: flex; flex-direction: column; gap: 20px; max-width: 520px; }
.pt-brand-k { font-size: 15px; font-weight: 700; color: #F4EAFF; }
.pt-brand-t { font-size: 40px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.pt-brand-p { font-size: 18px; line-height: 1.55; color: #F4EAFF; }
.pt-garanties { display: flex; flex-direction: column; gap: 18px; margin-top: 12px; }
.pt-garantie { display: flex; gap: 14px; align-items: flex-start; }
.pt-garantie .gt { width: 40px; height: 40px; border-radius: 11px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; flex: none; }
.pt-garantie .gt svg { width: 18px; height: 18px; }
.pt-garantie b { display: block; font-size: 16px; }
.pt-garantie span { font-size: 15px; color: #F4EAFF; }
.pt-brand-pied { font-size: 13px; color: #EBDDFB; }

.pt-pane { flex: 1.4 1 520px; min-width: 0; display: flex; flex-direction: column; padding: 28px 56px 28px; }
.pt-pane-top { display: flex; justify-content: flex-end; align-items: center; gap: 12px; min-height: 40px; }
.pt-ptop { display: none; }
.pt-pane-c { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 560px; margin: 0 auto; gap: 24px; padding: 28px 0; }
.pt-pane-c.etroit { max-width: 440px; }
.pt-pied { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.pt-pied a, .pt-pied span { color: var(--ink-3); font-weight: 600; }
.pt-pied a:hover { color: var(--ink); }

@media (max-width: 900px) {
    .pt-split { flex-direction: column; flex-wrap: nowrap; }
    .pt-brand { flex: none; padding: 22px 16px 26px; gap: 0; order: 2; }
    .pt-brand-logo, .pt-brand .pt-garanties, .pt-brand-pied { display: none; }
    .pt-brand-c { gap: 10px; }
    .pt-brand-k { font-size: 14px; }
    .pt-brand-t { font-size: 28px; line-height: 1.2; }
    .pt-brand-p { font-size: 15px; }
    .pt-pane { order: 3; flex: none; padding: 0 16px 28px; }
    .pt-pane-top { display: none; }
    .pt-ptop { order: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px; }
    .pt-pane-c { padding: 22px 0 8px; gap: 20px; justify-content: flex-start; }
    .pt-brand.sans-mobile { display: none; }
}

/* =====================================================================
 * 2. Le formulaire en ligne : barre, étapes, colonne + côté
 * ===================================================================== */

.pt-demande { min-height: 100vh; background: var(--bg); }
.pt-bar { display: flex; align-items: center; gap: 16px; padding: 14px 32px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; position: sticky; top: 0; z-index: 20; }
.pt-bar .sep { width: 1px; height: 24px; background: #E2DEEA; }
.pt-bar .titre { font-weight: 700; }
.pt-bar .grow { flex: 1 1 auto; }
.pt-bar .quitter { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.pt-wrap { max-width: 1120px; margin: 0 auto; padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 24px; }
.pt-stepper { display: flex; align-items: center; gap: 14px; max-width: 760px; }
.pt-stepper .step { display: flex; align-items: center; gap: 10px; color: inherit; }
.pt-stepper .step b { display: block; font-weight: 700; }
.pt-stepper .step span span { display: block; font-size: 13px; color: var(--muted); }
.pt-stepper .trait { flex: 1 1 40px; height: 2px; background: #E2DEEA; border-radius: 2px; }
.pt-stepper .trait.fait { background: var(--violet); }
.pt-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.pt-dot svg { width: 16px; height: 16px; }
.pt-dot.fait { background: var(--violet); color: #fff; }
.pt-dot.en { background: #fff; color: var(--violet-600); border: 2px solid var(--violet); }
.pt-dot.a { background: #F0EEF4; color: var(--muted); }
.pt-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.pt-cols > .pt-main-col { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pt-cols > .pt-aside { flex: 1 1 280px; max-width: 340px; display: flex; flex-direction: column; gap: 16px; }
.pt-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px 32px; display: flex; flex-direction: column; gap: 22px; }
.pt-form-t { display: flex; flex-direction: column; gap: 4px; }
.pt-form-t h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.pt-sec-f { display: flex; flex-direction: column; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line-3); }
.pt-sec-f > h2 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.pt-grille2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.pt-grille2 > .plein { grid-column: 1 / -1; }
.pt-pied-f { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line-3); }
.pt-pied-f .boutons { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pt-cote { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.pt-cote .k { font-size: 13px; font-weight: 800; color: #55505F; letter-spacing: .02em; text-transform: uppercase; }
.pt-cote .ligne { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; font-weight: 800; }
.pt-suite { display: flex; gap: 12px; align-items: flex-start; }
.pt-suite .n { width: 26px; height: 26px; border-radius: 50%; background: var(--violet-50); color: var(--violet-ink); font-size: 13px; font-weight: 800; display: grid; place-items: center; flex: none; }

/* La barre de téléphone du formulaire */
.pt-mbar { display: none; }
.pt-mprog { display: none; }

@media (max-width: 900px) {
    .pt-bar { display: none; }
    .pt-mbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
    .pt-mbar .grow { flex: 1 1 auto; min-width: 0; }
    .pt-mbar b { display: block; font-weight: 800; }
    .pt-mbar span.s { font-size: 13px; color: var(--muted); }
    .pt-mprog { display: flex; gap: 6px; padding: 10px 16px 0; }
    .pt-mprog i { flex: 1; height: 4px; border-radius: 4px; background: #E2DEEA; }
    .pt-mprog i.on { background: var(--violet); }
    .pt-wrap { padding: 16px 16px 120px; gap: 16px; }
    .pt-stepper { display: none; }
    .pt-form { padding: 0; border: 0; background: transparent; gap: 20px; }
    .pt-form-t h1 { font-size: 24px; }
    .pt-cols > .pt-aside { display: none; }
    .pt-grille2 { grid-template-columns: 1fr; }
    .pt-pied-f { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: #fff; border-top: 1px solid var(--line); padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); gap: 8px; }
    .pt-pied-f .pt-alert { margin: 0; padding: 8px 12px; font-size: 13px; }
    .pt-pied-f .boutons { flex-direction: row-reverse; }
    .pt-pied-f .boutons .pt-btn.p { flex: 1 1 auto; min-height: 50px; }
    .pt-pied-f .boutons .pt-btn.o { display: none; }
}

/* =====================================================================
 * 3. Les espaces : menu fixe à gauche, onglets en bas sur téléphone
 * ===================================================================== */

.pt-shell { min-height: 100vh; display: flex; background: var(--bg); }
.pt-side {
    width: 264px; flex: none; position: sticky; top: 0; height: 100vh; overflow: auto;
    background: #fff; border-right: 1px solid var(--line); padding: 22px 16px;
    display: flex; flex-direction: column; gap: 20px;
}
.pt-side .pt-logo { margin-left: 6px; align-self: flex-start; }
.pt-side-marque { display: flex; flex-direction: column; gap: 8px; }
.pt-side-dossier { padding: 12px 14px; border-radius: 12px; background: var(--bg); }
.pt-side-dossier b { display: block; font-weight: 800; }
.pt-side-dossier span { display: block; font-size: 13px; color: var(--muted); }
.pt-side-dossier select { width: 100%; margin-top: 8px; min-height: 36px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; padding: 0 8px; font-size: 13px; }
.pt-nav { display: flex; flex-direction: column; gap: 2px; }
.pt-nav a, .pt-side a.pt-nav {
    display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border-radius: 9px;
    color: var(--ink-3); font-weight: 600; font-size: 14.5px;
}
.pt-nav a svg { width: 18px; height: 18px; flex: none; }
.pt-nav a:hover { background: var(--bg); color: var(--ink); }
.pt-nav a.on { background: var(--violet-50); color: var(--violet-ink); }
.pt-compte { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--err-border); color: #fff; font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.pt-side-pied { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line-3); }
.pt-side-pied .grow { flex: 1 1 auto; min-width: 0; }
.pt-side-pied .grow b { display: block; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-side-pied .grow span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-side-pied button { width: 36px; height: 36px; border: 0; background: transparent; border-radius: 9px; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.pt-side-pied button:hover { background: var(--bg); color: var(--ink); }

.pt-main { flex: 1 1 auto; min-width: 0; padding: 32px 40px 56px; }
.pt-main > .pt-inner { max-width: 1080px; display: flex; flex-direction: column; gap: 22px; }
.pt-main > .pt-inner.large { max-width: 1140px; }
.pt-mtop { display: none; }
.pt-tabbar { display: none; }

@media (max-width: 900px) {
    .pt-shell { display: block; padding-bottom: 88px; }
    .pt-side { display: none; }
    .pt-main { padding: 16px 16px 24px; }
    .pt-main > .pt-inner { gap: 16px; }
    .pt-mtop { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
    .pt-mtop .grow { flex: 1 1 auto; min-width: 0; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .pt-tabbar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
        display: flex; background: #fff; border-top: 1px solid var(--line);
        padding: 6px 4px calc(10px + env(safe-area-inset-bottom));
    }
    .pt-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; font-size: 11.5px; font-weight: 700; color: var(--muted); position: relative; }
    .pt-tabbar a.on { color: var(--violet-ink); }
    .pt-tabbar svg { width: 22px; height: 22px; }
    .pt-tabbar .pt-pastille { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 16px; height: 16px; border-radius: 999px; background: var(--err-border); color: #fff; font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
    .pt-tabbar .pt-plus { width: 44px; height: 44px; border-radius: 14px; background: var(--violet); color: #fff; display: grid; place-items: center; }
    .pt-tabbar a.plus { font-size: 0; }
}

/* =====================================================================
 * 4. Le texte
 * ===================================================================== */

.pt-eyebrow, .pt-kick { font-size: 13px; font-weight: 700; color: var(--violet-600); }
.pt-h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
.pt-h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; margin: 0; }
.pt-h3 { font-size: 16px; font-weight: 800; margin: 0; }
.pt-lead { color: var(--muted); font-size: 15px; margin: 0; }
.pt-muted { color: var(--muted); }
.pt-small { font-size: 13px; }
.pt-hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.pt-sec { font-size: 16px; font-weight: 800; margin: 6px 0 0; display: flex; justify-content: space-between; align-items: center; }
.pt-sec a { font-weight: 700; color: var(--violet-600); font-size: 13px; }
.pt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.pt-head > div:first-child { min-width: 0; }
.pt-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pt-cap { font-size: 13px; font-weight: 800; color: #55505F; letter-spacing: .02em; text-transform: uppercase; }

@media (max-width: 900px) {
    .pt-h1 { font-size: 24px; }
    .pt-h2 { font-size: 20px; }
}

/* =====================================================================
 * 5. Les champs, et ce qu'ils disent
 * ===================================================================== */

.pt-field { display: flex; flex-direction: column; min-width: 0; }
.pt-field + .pt-field { margin-top: 0; }
.pt-field label, .pt-label, .pt-field legend { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; color: var(--ink-2); padding: 0; }
.pt-field label .opt, .pt-label .opt { font-weight: 500; color: var(--muted); }
fieldset.pt-field { border: 0; margin: 0; padding: 0; }
.pt-input, .pt-select, .pt-textarea {
    display: block; width: 100%; min-height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
    padding: 0 14px; font-size: 15px; background: #fff; outline: none; color: var(--ink);
}
.pt-select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2355505F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.pt-textarea { padding: 10px 14px; min-height: 90px; resize: vertical; }
.pt-input:focus, .pt-select:focus, .pt-textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-50); }
.pt-input.ok, .pt-input.lu { border-color: var(--ok-border); }
.pt-input.err, .pt-select.err, .pt-textarea.err { border-color: var(--err-border); background: #FFF9F8; }
.pt-input.warn { border-color: var(--warn-border); background: #FFFCF5; }
.pt-input[readonly] { background: var(--bg); }
.pt-msg { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; font-weight: 600; margin-top: 6px; }
.pt-msg svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.pt-msg.ok { color: var(--ok-txt); }
.pt-msg.warn { color: var(--warn-txt); }
.pt-msg.err, .pt-err { color: var(--err-txt); }
.pt-err { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; font-weight: 600; margin-top: 6px; }
.pt-msg .grow { flex: 1 1 auto; }
.pt-msg button { margin-left: auto; }
.pt-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 420px) { .pt-row2 { grid-template-columns: 1fr; } }
.pt-prefixe { display: flex; }
.pt-prefixe > span { display: flex; align-items: center; padding: 0 12px; min-height: 46px; border: 1px solid var(--line-2); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); background: var(--bg); font-weight: 700; font-size: 14px; flex: none; }
.pt-prefixe .pt-input { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.pt-prefixe.fin > span { order: 2; border-left: 0; border-right: 1px solid var(--line-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.pt-prefixe.fin .pt-input { border-radius: var(--r-sm) 0 0 var(--r-sm); }

.pt-seg { display: flex; gap: 4px; padding: 4px; background: #F0EEF4; border-radius: 12px; }
.pt-seg button, .pt-seg label, .pt-seg a {
    flex: 1; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; min-height: 44px; padding: 6px 8px; border-radius: 9px; font-size: 14px; font-weight: 700; color: #55505F; cursor: pointer; text-align: center;
}
.pt-seg button span, .pt-seg a span.s { font-size: 12px; font-weight: 500; color: var(--muted); }
.pt-seg a { flex-direction: row; }
.pt-seg .on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(23, 21, 28, .08); }

.pt-puces { display: flex; gap: 8px; flex-wrap: wrap; }
.pt-puce { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.pt-puce.on { border-color: var(--violet); background: var(--violet-50); color: var(--violet-ink); }
.pt-puce .n { font-size: 12.5px; color: var(--muted); }
.pt-puce.on .n { color: var(--violet-ink); }
.pt-puces.defile { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pt-puces.defile::-webkit-scrollbar { display: none; }
@media (max-width: 900px) {
    .pt-puces.defile { margin: 0 -16px; padding-left: 16px; padding-right: 36px; -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
    .pt-puces.defile .pt-puce { height: 36px; padding: 0 13px; font-size: 13.5px; }
}

.pt-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.pt-check input { width: 20px; height: 20px; accent-color: var(--violet); flex: none; margin: 2px 0 0; }

.pt-switch { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.pt-switch > span:first-child { flex: 1 1 auto; min-width: 0; }
.pt-switch input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 999px; background: #D7D3DF; position: relative; margin: 0; flex: none; cursor: pointer; transition: background .15s; }
.pt-switch input::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 3px; left: 3px; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: left .15s; }
.pt-switch input:checked { background: var(--violet); }
.pt-switch input:checked::after { left: 21px; }
.pt-switch .t { display: block; font-weight: 700; font-size: 15px; }
.pt-switch .d { display: block; font-size: 13px; color: var(--muted); }

/* =====================================================================
 * 6. Les boutons
 * ===================================================================== */

.pt-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer;
    font-weight: 700; font-size: 15px; white-space: nowrap; text-decoration: none; line-height: 1.2;
}
.pt-btn.p { background: var(--violet); color: #fff; }
.pt-btn.p:hover { background: var(--violet-700); }
.pt-btn.p:disabled, .pt-btn.p[aria-disabled=true] { opacity: .45; cursor: not-allowed; }
.pt-btn.s { background: var(--bg); color: var(--ink); }
.pt-btn.o { background: #fff; color: var(--ink); border-color: var(--line-2); }
.pt-btn.o:hover { background: var(--bg); }
.pt-btn.d { background: #C2261D; color: #fff; }
.pt-btn.sm { min-height: 36px; font-size: 14px; padding: 0 12px; border-radius: 9px; }
.pt-btn.lg { min-height: 52px; font-size: 16px; }
.pt-btn.block { width: 100%; }
.pt-btn svg { width: 18px; height: 18px; flex: none; }
.pt-btn.ico { padding: 0 10px; }
.pt-lien { color: var(--violet-600); font-weight: 700; font-size: 13px; background: none; border: 0; padding: 0; cursor: pointer; }
.pt-lien:hover { color: var(--violet-ink); }
.pt-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.pt-save { font-size: 13px; color: var(--muted); text-align: center; }

/* =====================================================================
 * 7. Cartes, lignes, puces d'état
 * ===================================================================== */

.pt-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.pt-card + .pt-card { margin-top: 0; }
.pt-card.flat { background: var(--bg); border: 0; }
.pt-card.vide { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 22px 16px; }
.pt-card-t { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 12px; gap: 10px; }
.pt-card-t h2, .pt-card-t .t { font-size: 16px; font-weight: 800; }
.pt-card-t a { font-size: 13px; font-weight: 700; color: var(--violet-600); }
.pt-pile { display: flex; flex-direction: column; gap: 16px; }
.pt-lines { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 0; overflow: hidden; }
.pt-line { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line-3); min-height: 68px; color: inherit; }
.pt-line:first-child { border-top: 0; }
.pt-card-t + .pt-line { border-top: 1px solid var(--line-3); }
.pt-line.alerte { background: #FFFAFA; }
.pt-line.attention { background: #FFFBF3; }
.pt-line.passee { opacity: .62; }
.pt-line .tt { font-weight: 700; font-size: 15px; }
.pt-line .dd { font-size: 13px; color: var(--muted); }
.pt-line .dd.r { color: var(--err); }
.pt-line .dd.o { color: var(--warn); }
.pt-line .end { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.pt-line .grow { min-width: 0; flex: 1; }
.pt-line .act { width: 176px; }
a.pt-line:hover { background: var(--violet-25); }

.pt-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.pt-ic svg { width: 18px; height: 18px; }
.pt-ic.v { background: var(--violet-50); color: var(--violet-600); }
.pt-ic.o { background: var(--warn-50); color: #9A5B00; }
.pt-ic.g { background: var(--ok-50); color: var(--ok); }
.pt-ic.r { background: var(--err-50); color: var(--err-txt); }
.pt-ic.b { background: var(--info-50); color: var(--info); }
.pt-ic.c { background: var(--cyan-50); color: var(--cyan); }
.pt-ic.n { background: #F0EEF4; color: #55505F; }
.pt-ic.lg { width: 44px; height: 44px; border-radius: 12px; }

.pt-chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pt-chip svg { width: 13px; height: 13px; }
.pt-chip.v { background: var(--violet-50); color: var(--violet-ink); }
.pt-chip.g { background: var(--ok-50); color: var(--ok); }
.pt-chip.o { background: var(--warn-50); color: var(--warn); }
.pt-chip.r { background: var(--err-50); color: var(--err); }
.pt-chip.b { background: var(--info-50); color: var(--info); }
.pt-chip.c { background: var(--cyan-50); color: var(--cyan); }
.pt-chip.n { background: #F0EEF4; color: #55505F; }

.pt-alert { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.pt-alert > .grow { flex: 1 1 auto; min-width: 0; }
.pt-alert b { font-weight: 800; }
.pt-alert.g { background: #E8F6EE; color: #0F5C34; }
.pt-alert.r { background: var(--err-50); color: #8E1D15; }
.pt-alert.o { background: #FFF4E2; color: #6B4100; }
.pt-alert.v { background: var(--violet-50); color: var(--violet-ink); }
.pt-alert.b { background: #EEF0FF; color: var(--info-ink); }
.pt-alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.pt-alert a { text-decoration: underline; color: inherit; }
.pt-alert .pt-btn { text-decoration: none; }

.pt-legal { font-size: 13px; color: var(--muted); line-height: 1.5; }
.pt-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--violet-50); color: var(--violet-ink); display: grid; place-items: center; font-weight: 800; flex: none; font-size: 13px; }
.pt-avatar.lg { width: 44px; height: 44px; font-size: 15px; }

.pt-jauge { height: 8px; border-radius: 999px; background: #F0EEF4; overflow: hidden; display: flex; flex: 1 1 auto; }
.pt-jauge span { height: 100%; }

/* =====================================================================
 * 8. Le formulaire : formules, dépôts, pièces
 * ===================================================================== */

.pt-plan { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; position: relative; }
.pt-plan input { width: 20px; height: 20px; accent-color: var(--violet); margin: 0; flex: none; }
.pt-plan.on { border-color: var(--violet); background: #FBF7FF; box-shadow: 0 0 0 3px #F1E6FD; }
.pt-plan .t { display: block; font-weight: 800; font-size: 17px; }
.pt-plan .d { font-size: 13px; color: var(--muted); }
.pt-plan .pr { margin-left: auto; text-align: right; white-space: nowrap; }
.pt-plan .pr b { display: block; font-weight: 800; font-size: 20px; }
.pt-plan .pr small { display: block; font-size: 13px; color: var(--muted); }
.pt-plan .pr s { display: block; font-size: 13px; color: var(--faint); }
.pt-plans { display: flex; flex-direction: column; gap: 12px; }

.pt-besoins { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.pt-besoins .pt-cap { padding: 14px 18px 4px; }
.pt-besoins .pt-line { min-height: 0; padding: 13px 18px; }
.pt-besoins .pt-line:nth-child(2) { border-top: 0; }

.pt-scan { border: 1.5px dashed var(--violet-200); background: #FCFAFF; border-radius: 12px; padding: 14px; display: flex; gap: 14px; align-items: center; cursor: pointer; position: relative; }
.pt-scan input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.pt-scan .t { display: block; font-weight: 800; font-size: 15px; color: var(--ink); }
.pt-scan .d { display: block; font-size: 13px; color: var(--muted); }
.pt-scan.err { border-color: var(--err-border); background: #FFF9F8; }
.pt-scan.err .d { color: var(--err-txt); font-weight: 600; }
.pt-scan.ok { border: 1px solid var(--ok-line); background: #F7FCF9; border-style: solid; }
.pt-scan.warn { border: 1px solid #F5DDB5; background: #FFFBF3; cursor: default; }
.pt-scan.ok { cursor: default; align-items: flex-start; }
.pt-scan.warn { align-items: flex-start; }
.pt-scan.grand { flex-direction: column; text-align: center; padding: 22px 16px; gap: 8px; }
.pt-faces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .pt-faces { grid-template-columns: 1fr; } }
.pt-vignette { width: 64px; height: 44px; border-radius: 7px; background: linear-gradient(135deg, #EDE7F6, #DCD3EC); display: grid; place-items: center; color: var(--violet-600); flex: none; }
.pt-vignette svg { width: 18px; height: 18px; }
.pt-lu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--violet-25); border: 1px solid var(--violet-100); }
.pt-lu p:first-child { font-size: 12px; font-weight: 700; color: var(--muted); }
.pt-lu p:last-child { font-weight: 800; overflow-wrap: anywhere; }
@media (max-width: 900px) { .pt-lu { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pt-lu-t { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--violet-ink); }
.pt-lu-t svg { width: 18px; height: 18px; }
.pt-associe { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) 120px 40px; gap: 12px; align-items: start; }
.pt-associe .retirer { width: 40px; height: 46px; margin-top: 27px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.pt-associe .retirer:hover { background: var(--bg); color: var(--ink); }
@media (max-width: 900px) {
    .pt-associe { grid-template-columns: minmax(0, 1fr) 110px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
    .pt-associe > .pt-field:first-child { grid-column: 1 / -1; }
    .pt-associe .retirer { grid-column: 1 / -1; width: auto; height: 32px; margin: 0; font-size: 13px; font-weight: 700; color: var(--violet-600); }
}
.pt-controle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.pt-controle svg { width: 15px; height: 15px; }
.pt-controle.ok { color: var(--ok-txt); }
.pt-controle.warn { color: var(--warn-txt); }
.pt-controles { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; }
.pt-recap { display: flex; gap: 14px; align-items: flex-start; padding: 14px 20px; border-top: 1px solid var(--line-3); font-size: 15px; }
.pt-recap .k { width: 110px; flex: none; font-size: 13px; font-weight: 700; color: var(--muted); padding-top: 2px; }
.pt-recap .grow { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 900px) { .pt-recap { flex-wrap: wrap; gap: 4px 12px; } .pt-recap .k { width: auto; flex: 1 1 100%; } }
.pt-coches { display: flex; flex-direction: column; gap: 6px; }
.pt-coches p { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.pt-coches svg { width: 15px; height: 15px; color: var(--ok-txt); margin-top: 2px; flex: none; }

.pt-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.pt-big-ok { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-50); color: var(--ok); display: grid; place-items: center; }
.pt-big-ok svg { width: 34px; height: 34px; }

/* =====================================================================
 * 9. Les frises : verticale (ancienne), horizontale (nouvelle)
 * ===================================================================== */

.pt-tl { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.pt-tl:not(:last-child)::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: #E2DEEA; }
.pt-tl.done:not(:last-child)::before { background: var(--violet); }
.pt-tl .dot { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 800; position: relative; z-index: 1; }
.pt-tl.done .dot { background: var(--violet); color: #fff; }
.pt-tl.now .dot { background: #fff; color: var(--violet-600); border: 2px solid var(--violet); }
.pt-tl.next .dot { background: #F0EEF4; color: var(--muted); }
.pt-tl .tt { font-weight: 700; font-size: 15px; }
.pt-tl .dd { font-size: 13px; color: var(--muted); }

.pt-frise { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pt-frise li { display: flex; flex-direction: column; gap: 8px; }
.pt-frise .barre { height: 4px; border-radius: 4px; margin-right: 10px; background: #E2DEEA; }
.pt-frise li.fait .barre { background: var(--violet); }
.pt-frise li.en .barre { background: linear-gradient(90deg, var(--violet) 50%, #E2DEEA 50%); }
.pt-frise .jalon { display: flex; gap: 8px; align-items: center; }
.pt-frise .jalon b { display: block; font-weight: 700; font-size: 14.5px; }
.pt-frise li.en .jalon b { font-weight: 800; }
.pt-frise li.a .jalon b { color: #55505F; }
.pt-frise .jalon span span { display: block; font-size: 13px; color: var(--muted); }
.pt-frise li.en .jalon span span { color: var(--violet-600); font-weight: 700; }
@media (max-width: 900px) {
    .pt-frise { grid-template-columns: 1fr; }
    .pt-frise li { flex-direction: row; position: relative; padding-bottom: 14px; }
    .pt-frise .barre { display: none; }
    .pt-frise li:not(:last-child)::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: #E2DEEA; }
    .pt-frise li.fait:not(:last-child)::before { background: var(--violet); }
    .pt-frise .jalon { width: 100%; }
    .pt-frise .jalon > span:last-child { display: flex; justify-content: space-between; flex: 1 1 auto; gap: 8px; }
    .pt-frise .pt-dot { width: 26px; height: 26px; position: relative; z-index: 1; }
}

.pt-etat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px; display: flex; flex-direction: column; gap: 20px; }
.pt-etat-t { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pt-etat-t h2 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.pt-prochaine { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 12px; background: var(--violet-25); border: 1px solid var(--violet-100); flex-wrap: wrap; }
.pt-prochaine > .grow { flex: 1 1 260px; min-width: 0; }
.pt-prochaine b { display: block; font-weight: 800; }
.pt-prochaine span { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
    .pt-etat { padding: 16px; gap: 14px; }
    .pt-etat-t h2 { font-size: 19px; }
    .pt-prochaine { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px; }
    .pt-prochaine .pt-btn { width: 100%; }
}

.pt-otp { display: flex; gap: 10px; }
.pt-otp input { width: 56px; height: 64px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 26px; font-weight: 800; text-align: center; outline: none; padding: 0; }
.pt-otp input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-100); }
.pt-otp-seul { width: 100%; height: 60px; text-align: center; font-size: 28px; font-weight: 800; letter-spacing: .5em; padding-left: .5em; border: 1px solid var(--line-2); border-radius: 12px; outline: none; }
.pt-otp-seul:focus { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-100); }
@media (max-width: 420px) { .pt-otp input { width: 46px; height: 56px; font-size: 22px; } .pt-otp { gap: 8px; } }

/* =====================================================================
 * 10. L'espace des cabinets : chiffres, filtres, lignes
 * ===================================================================== */

.pt-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pt-kpi { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; background: #fff; }
.pt-kpi .k { font-size: 13px; font-weight: 700; color: var(--muted); }
.pt-kpi .v { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.pt-kpi .s { font-size: 13px; color: var(--muted); }
.pt-kpi .s.r { color: var(--err-txt); font-weight: 700; }
@media (max-width: 1100px) { .pt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
    .pt-kpis { gap: 8px; }
    .pt-kpi { padding: 10px 12px; }
    .pt-kpi .k { font-size: 12px; }
    .pt-kpi .v { font-size: 18px; }
    .pt-kpi .s { display: none; }
}

.pt-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.pt-tabs::-webkit-scrollbar { display: none; }
.pt-tabs a { padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.pt-tabs a.on { color: var(--violet-ink); border-bottom-color: var(--violet); }
.pt-tabs a > span:not(.pt-chip) { font-size: 12.5px; color: var(--muted); }

.pt-prog { display: flex; gap: 3px; align-items: center; }
.pt-prog i { width: 22px; height: 5px; border-radius: 3px; background: #E2DEEA; }
.pt-prog i.d, .pt-prog i.n { background: var(--violet); }
.pt-prog em { font-style: normal; font-size: 13px; color: var(--ink-2); margin-left: 8px; white-space: nowrap; }
.pt-prog.bloc { flex-wrap: wrap; row-gap: 4px; }
.pt-prog.bloc em { flex-basis: 100%; margin: 0; }

.pt-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pt-grid-cote { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.pt-grid-cote > .large { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pt-grid-cote > .cote { flex: 1 1 300px; max-width: 370px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 900px) { .pt-grid2 { grid-template-columns: 1fr; } .pt-grid-cote > .cote { max-width: none; } }

.pt-tableau .pt-line { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1.2fr) 196px; gap: 16px; padding: 12px 20px; }
.pt-tableau .pt-line.entete { min-height: 0; font-size: 12.5px; font-weight: 800; color: var(--muted); padding-top: 12px; padding-bottom: 10px; }
.pt-tableau .qui { display: flex; gap: 12px; align-items: center; min-width: 0; }
.pt-tableau .qui > div { min-width: 0; }
.pt-tableau .qui a, .pt-tableau .qui b { display: block; font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-tableau .pt-btn { width: 100%; }

/* La ligne de téléphone : qui, puis l'état — 72 px, jamais plus. */
.pt-ligne-m { display: none; }
@media (max-width: 900px) {
    .pt-tableau .pt-line.entete { display: none; }
    .pt-tableau .pt-line { display: none; }
    .pt-ligne-m { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line-3); min-height: 72px; color: inherit; }
    .pt-ligne-m:first-child, .pt-line.entete + .pt-ligne-m { border-top: 0; }
    .pt-ligne-m .grow { flex: 1 1 auto; min-width: 0; }
    .pt-ligne-m b { display: block; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .pt-ligne-m .etat { display: flex; gap: 8px; align-items: center; margin-top: 3px; min-width: 0; }
    .pt-ligne-m .etat span:last-child { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .pt-ligne-m .chev { width: 16px; height: 16px; color: var(--faint); flex: none; }
}

/* Les lignes « à faire » et les listes simples, sur téléphone */
@media (max-width: 900px) {
    .pt-line { padding: 12px 14px; gap: 12px; min-height: 64px; flex-wrap: wrap; }
    .pt-line .grow { flex: 1 1 calc(100% - 60px); }
    .pt-line .end { flex: 1 1 100%; margin-left: 50px; flex-wrap: wrap; justify-content: flex-start; }
    .pt-line .end.court { flex: none; margin-left: auto; }
    .pt-line .act { width: auto; }
    .pt-card { padding: 16px; }
    .pt-card-t { padding: 13px 14px 9px; }
}

/* Compatibilité : écrans de la v1.12 encore servis tels quels */
.pt-table-lines .pt-line { flex-wrap: wrap; }
@media (min-width: 901px) { .pt-table-lines .pt-line { flex-wrap: nowrap; } }
.pt-task { display: flex; gap: 12px; align-items: center; padding: 13px 14px; border-radius: 12px; border: 1px solid #F5DDB5; background: #FFF8EC; }
.pt-task.r { border-color: #F3C9C5; background: #FFF6F5; }
.pt-du { border-radius: var(--r); border: 1px solid #F5DDB5; background: #FFF8EC; padding: 16px 18px; }
.pt-du .m { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.pt-need { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--ink-2); padding: 6px 0; }
.pt-steps { display: flex; gap: 6px; }
.pt-steps i { flex: 1; height: 4px; border-radius: 4px; background: #E2DEEA; }
.pt-steps i.on { background: var(--violet); }
.pt-back { width: 36px; height: 36px; border-radius: 9px; background: #fff; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink); cursor: pointer; flex: none; }
.pt-depot { position: relative; }
.pt-depot input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.pt-ptop .pt-coin-txt { display: none; }

/* v1.14.0 — ce qui ne s'affiche que sur téléphone, ou que sur ordinateur */
@media (min-width: 901px) { .pt-seul-mobile { display: none !important; } }
@media (max-width: 900px) { .pt-seul-bureau { display: none !important; } }

/* Le formulaire dans l'espace cabinet : dans le cadre de l'espace, pied non fixé (la barre d'onglets est en bas) */
.pt-insc-cabinet .pt-wrap { max-width: 1120px; margin: 0; padding: 0; }
@media (max-width: 900px) {
    .pt-insc-cabinet .pt-mprog { padding: 0 0 4px; }
    .pt-insc-cabinet .pt-wrap { padding: 0; }
    .pt-insc-cabinet .pt-pied-f { position: static; padding: 16px 0 0; background: transparent; border-top: 1px solid var(--line-3); }
    .pt-insc-cabinet .pt-pied-f .boutons .pt-btn.o { display: inline-flex; }
}
.pt-resume-err { width: 100%; text-align: left; font: inherit; cursor: pointer; border: 0; }
@media (max-width: 900px) {
    .pt-demande .pt-wrap { padding-bottom: 200px; }
    .pt-associe .retirer { display: flex; gap: 6px; align-items: center; justify-content: center; }
}
.pt-recaps-etat { display: flex; flex-wrap: wrap; gap: 12px 36px; }
.pt-recaps-etat span { display: block; font-size: 13px; color: var(--muted); }
.pt-recaps-etat b { font-weight: 800; }
@media (max-width: 900px) { .pt-sortie { width: 40px; padding: 0; justify-content: center; } }
.pt-avancee { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pt-avancee b { font-weight: 800; }
.pt-barres { flex: 1 1 200px; display: flex; height: 6px; border-radius: 6px; background: #ECE9F1; overflow: hidden; }
.pt-barres i { display: block; height: 100%; }
.pt-barres i.g { background: #2F9E62; }
.pt-barres i.b { background: #6E7DE3; }
.pt-barres i.r { background: var(--err-border); }
form.cote.pt-card { display: flex; flex-direction: column; }
.pt-a-regler { display: flex; flex-direction: column; gap: 6px; border-color: #F5DDB5; background: #FFFBF3; }
.pt-a-regler.echue { border-color: #F3C9C5; background: #FFF6F5; }
.pt-a-regler .k { margin: 0; font-size: 13px; font-weight: 700; color: var(--warn-txt); }
.pt-a-regler.echue .k { color: var(--err-txt); }
.pt-a-regler .m { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.pt-a-regler .m small { font-size: 14px; color: var(--muted); font-weight: 700; }
.pt-a-regler .boutons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pt-resume-sec { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: center; }
.pt-resume-sec::-webkit-details-marker { display: none; }
.pt-resume-sec .grow { flex: 1 1 auto; min-width: 0; }
.pt-resume-sec b { display: block; font-weight: 800; }
.pt-resume-sec span span { display: block; font-size: 13px; color: var(--muted); }
details[open] > .pt-resume-sec { padding-bottom: 4px; }
.pt-rib { margin: 6px 0; font-family: ui-monospace, Menlo, monospace; font-size: 15px; letter-spacing: .02em; word-break: break-all; }
.pt-puce-radio { position: relative; cursor: pointer; }
.pt-puce-radio input { position: absolute; opacity: 0; pointer-events: none; }
.pt-puce-radio:has(input:checked) { background: var(--violet-50); border-color: var(--violet); color: var(--violet-ink); }
.pt-puce-radio:has(input:focus-visible) { outline: 2px solid var(--violet); outline-offset: 2px; }
@media (max-width: 900px) { .pt-a-regler .boutons .pt-btn { flex: 1 1 auto; } }
.pt-edition { flex-basis: 100%; display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; padding-left: 50px; margin-top: 4px; }
@media (max-width: 900px) { .pt-edition { padding-left: 0; } .pt-edition > div:last-of-type { width: 100%; } .pt-edition .pt-btn { flex: 1 1 auto; } }
.pt-card .pt-card.vide { border: 0; background: transparent; padding: 6px 0; }
.pt-field label.pt-puce { display: inline-flex; margin: 0; padding: 0 16px; font-size: 14px; color: var(--ink-2); }
.pt-field label.pt-puce:has(input:checked) { color: var(--violet-ink); }
@media (max-width: 900px) {
    /* Une ligne au geste court (télécharger, un bouton) garde son geste sur la même ligne. */
    .pt-line:has(> .end.court) { flex-wrap: nowrap; }
    .pt-line:has(> .end.court) > .grow { flex: 1 1 0; }
}
.pt-recherche { position: relative; display: flex; align-items: center; }
.pt-recherche svg { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.pt-recherche .pt-input { min-height: 42px; width: 260px; padding-left: 38px; font-size: 14px; }
@media (max-width: 900px) { .pt-head .actions, .pt-recherche, .pt-recherche .pt-input { width: 100%; } }
a.pt-puce { text-decoration: none; }
.pt-puce.alerte:not(.on) { border-color: #F3C9C5; color: var(--err-txt); }
.pt-puce.alerte:not(.on) .n { color: var(--err-txt); }
.pt-r { color: var(--err-txt); font-weight: 700; }
.pt-g { color: var(--ok-txt); font-weight: 700; }
.pt-tableau .pt-line { align-items: center; }
a.pt-kpi { color: inherit; transition: border-color .15s; }
a.pt-kpi:hover { border-color: var(--violet-200); }
.pt-retour { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--violet-600); }
.pt-fiche-t { display: flex; gap: 14px; align-items: center; min-width: 0; }
.pt-fiche-t h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pt-fiche-t h1 .pt-chip { font-size: 12.5px; letter-spacing: 0; }
.pt-menu { position: relative; }
.pt-menu > summary { list-style: none; width: 44px; padding: 0; justify-content: center; }
.pt-menu > summary::-webkit-details-marker { display: none; }
.pt-menu-l { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(23, 21, 28, .12); padding: 6px; display: flex; flex-direction: column; }
.pt-menu-l a { padding: 10px 12px; border-radius: 8px; font-weight: 600; color: var(--ink-2); }
.pt-menu-l a:hover { background: var(--bg); color: var(--ink); }
.large.pt-card, form.large { display: flex; flex-direction: column; }
/* v1.14.1 — « Lu sur le certificat » : trois colonnes, l'activité peut être longue. */
.pt-lu.trois { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1.6fr); }
@media (max-width: 900px) { .pt-lu.trois { grid-template-columns: 1fr; } }

/* v1.16.0 §A2.5 — la recherche des clients du cabinet : ce qui a fait sortir
   un dossier (violet exact, ambre approché), le mot trouvé, les suggestions. */
.pt-pourquoi { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 8px; border-radius: 7px; font-size: 12px; line-height: 1.4; font-weight: 700; background: #F3E9FD; color: #5E1FA6; }
.pt-pourquoi.approche { background: #FFF1DB; color: #7F4D00; }
mark.mobdie-trouve { background: #FFE8A3; color: inherit; border-radius: 3px; padding: 0 1px; }
.pt-recherche .pt-suggestions { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 280px; z-index: 30; background: #fff; border: 1px solid var(--line, #E4E0EA); border-radius: 12px; box-shadow: 0 12px 32px rgba(23, 21, 28, .12); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.pt-recherche .pt-suggestions[hidden] { display: none; }
.pt-suggestions .tete { padding: 6px 8px; font-size: 12px; color: var(--muted, #6B6577); }
.pt-suggestions a { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px; border-radius: 8px; color: inherit; text-decoration: none; }
.pt-suggestions a:hover, .pt-suggestions a:focus { background: var(--violet-50, #F3E9FD); outline: none; }

/* v1.16.0 §D1, §D6 — le menu de la personne (« E-mail du lundi ») et « Plus » sur téléphone. */
.pt-menu-personne { position: relative; }
.pt-menu-personne > summary { list-style: none; width: 36px; height: 36px; border-radius: 9px; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.pt-menu-personne > summary::-webkit-details-marker { display: none; }
.pt-menu-personne > summary:hover { background: var(--bg); color: var(--ink); }
.pt-menu-volet { position: absolute; bottom: 44px; right: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(23, 21, 28, .14); padding: 6px; z-index: 40; }
.pt-recap-interrupteur button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border: 0; background: transparent; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; text-align: left; }
.pt-recap-interrupteur button:hover { background: var(--bg); }
.pt-recap-interrupteur .grow { flex: 1; }
.pt-plus-menu { display: none; }
@media (max-width: 900px) {
    .pt-plus-menu { display: block; flex: 1; position: relative; }
    .pt-plus-menu > summary { list-style: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; font-size: 11.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
    .pt-plus-menu > summary::-webkit-details-marker { display: none; }
    .pt-plus-menu > summary.on, .pt-plus-menu[open] > summary { color: var(--violet-ink); }
    .pt-plus-volet { position: absolute; right: 6px; bottom: 60px; width: min(280px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(23, 21, 28, .18); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
    .pt-plus-volet a, .pt-plus-volet form > button { display: flex; flex-direction: row; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--ink); background: transparent; border: 0; width: 100%; font-family: inherit; cursor: pointer; }
    .pt-plus-volet a:hover, .pt-plus-volet form > button:hover { background: var(--bg); }
    .pt-plus-volet svg { width: 18px; height: 18px; }
}

/* v1.16.0 §D4 — « Dates… » de « Mes primes ». */
.pt-dates { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.pt-dates label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--muted); }

/* v1.16.0 §D5 — le nouveau client express : la source de chaque champ, l'écart à trancher, les pièces lues. */
.pt-avec-source { position: relative; }
.pt-avec-source .pt-input { padding-right: 128px; }
.pt-source { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 2px 8px; border-radius: 6px; background: var(--violet-50); color: var(--violet-ink); font-size: 11.5px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.pt-express { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; align-items: start; }
.pt-express .pt-pieces-lues .pt-line { min-height: 0; }
.pt-ecart { border: 1px solid var(--warn-border, #F2C46B); background: var(--warn-50, #FFF7E8); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.pt-ecart .t { font-weight: 800; color: var(--warn, #7F4D00); display: flex; gap: 8px; align-items: center; }
.pt-ecart .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pt-propose { border-radius: var(--r); background: var(--bg); padding: 14px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pt-cap-n { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 999px; background: var(--warn-50, #FFF1DB); color: var(--warn, #7F4D00); font-size: 12px; font-weight: 800; margin-left: 6px; }
@media (max-width: 900px) {
    .pt-express { grid-template-columns: 1fr; }
    .pt-avec-source .pt-input { padding-right: 12px; padding-top: 24px; }
    .pt-source { top: 6px; transform: none; font-size: 10.5px; }
}
