
:root{
    --cxt-bg:#f5f2ee;
    --cxt-card:#ffffff;
    --cxt-text:#211e1c;
    --cxt-muted:#756e68;
    --cxt-line:#e5ddd6;
    --cxt-user-accent:#7867a8;
    --cxt-danger:#a83c3c;
    --cxt-success:#2f7948;
    --cxt-soft:#f1edf7;
}
*,
*::before,
*::after{box-sizing:border-box}
html,body{
    margin:0;
    padding:0;
    min-height:100%;
}
body.cxt-compte-page{
    background:var(--cxt-bg);
    color:var(--cxt-text);
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    -webkit-font-smoothing:antialiased;
}
button,input,textarea{font:inherit}
a{color:inherit}
.cxt-logo-mark{
    display:inline-grid;
    place-items:center;
    width:44px;
    height:44px;
    border-radius:14px;
    background:var(--cxt-user-accent);
    color:#fff;
    font-weight:900;
    letter-spacing:-.03em;
}
.cxt-notice{
    margin-bottom:18px;
    padding:13px 15px;
    border-radius:10px;
    font-weight:700;
    font-size:14px;
}
.cxt-notice.is-error{
    color:#812d2d;
    background:#fff0f0;
    border:1px solid #efc2c2;
}
.cxt-notice.is-success{
    color:#276c3d;
    background:#edf8f0;
    border:1px solid #c9e7d1;
}

/* AUTH */
.cxt-auth-shell{
    width:min(1100px,calc(100% - 32px));
    min-height:100vh;
    margin:0 auto;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;
    padding:48px 0;
}
.cxt-auth-brand h1{
    margin:22px 0 10px;
    max-width:650px;
    font-size:clamp(38px,6vw,70px);
    line-height:.98;
    letter-spacing:-.055em;
}
.cxt-auth-brand p{
    max-width:520px;
    margin:0;
    color:var(--cxt-muted);
    font-size:18px;
    line-height:1.6;
}
.cxt-auth-card{
    padding:34px;
    border:1px solid var(--cxt-line);
    border-radius:22px;
    background:#fff;
    box-shadow:0 20px 60px rgba(49,39,31,.08);
}
.cxt-auth-card h2{
    margin:0 0 8px;
    font-size:30px;
}
.cxt-auth-intro{
    margin:0 0 24px;
    color:var(--cxt-muted);
    line-height:1.55;
}
.cxt-form{
    display:grid;
    gap:15px;
}
.cxt-form label,
.cxt-profile-form>label{
    display:grid;
    gap:7px;
}
.cxt-form label>span,
.cxt-profile-form label>span{
    font-size:13px;
    font-weight:750;
}
.cxt-form input,
.cxt-profile-form input[type=text],
.cxt-profile-form input[type=email],
.cxt-profile-form textarea{
    width:100%;
    min-height:46px;
    padding:10px 12px;
    border:1px solid #d1cac4;
    border-radius:10px;
    background:#fff;
    color:var(--cxt-text);
}
.cxt-profile-form textarea{min-height:120px;resize:vertical}
.cxt-form input:focus,
.cxt-profile-form input:focus,
.cxt-profile-form textarea:focus{
    outline:none;
    border-color:var(--cxt-user-accent);
    box-shadow:0 0 0 3px color-mix(in srgb,var(--cxt-user-accent) 14%,transparent);
}
.cxt-form small,
.cxt-profile-form small{color:var(--cxt-muted)}
.cxt-form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}
.cxt-check{
    display:flex!important;
    grid-template-columns:none!important;
    align-items:center;
    gap:9px!important;
}
.cxt-check input{width:auto;min-height:0}
.cxt-main-btn{
    width:100%;
    min-height:50px;
    border:0;
    border-radius:11px;
    background:var(--cxt-user-accent);
    color:#fff;
    font-weight:850;
    cursor:pointer;
}
.cxt-main-btn:hover{filter:brightness(.94)}
.cxt-main-btn.fit{width:auto;padding:0 20px}
.cxt-auth-links{
    display:flex;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    margin-top:18px;
}
.cxt-auth-links a{
    color:var(--cxt-user-accent);
    text-decoration:none;
    font-size:13px;
    font-weight:750;
}

/* ACCOUNT */
.cxt-account-shell{
    min-height:100vh;
    display:grid;
    grid-template-columns:280px minmax(0,1fr);
}
.cxt-account-sidebar{
    position:sticky;
    top:0;
    height:100vh;
    display:flex;
    flex-direction:column;
    padding:24px 18px;
    border-right:1px solid var(--cxt-line);
    background:#fff;
}
.cxt-account-brand{
    display:flex;
    align-items:center;
    gap:11px;
    padding:0 8px 20px;
    text-decoration:none;
    font-weight:900;
}
.cxt-user-mini{
    display:flex;
    align-items:center;
    gap:11px;
    margin:3px 0 18px;
    padding:14px;
    border-radius:14px;
    background:color-mix(in srgb,var(--cxt-user-accent) 8%,#fff);
}
.cxt-user-mini img{
    width:46px;
    height:46px;
    border-radius:50%;
    object-fit:cover;
    border:2px solid #fff;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
}
.cxt-user-mini strong,
.cxt-user-mini span{display:block;min-width:0}
.cxt-user-mini strong{
    max-width:165px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.cxt-user-mini span{
    max-width:165px;
    margin-top:3px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:var(--cxt-muted);
    font-size:11px;
}
.cxt-account-nav{
    display:grid;
    gap:5px;
}
.cxt-account-nav a{
    display:flex;
    align-items:center;
    gap:10px;
    min-height:43px;
    padding:8px 11px;
    border-radius:10px;
    color:#4e4945;
    text-decoration:none;
    font-size:13px;
    font-weight:760;
}
.cxt-account-nav a:hover{
    background:#f6f3f0;
}
.cxt-account-nav a.is-active{
    background:color-mix(in srgb,var(--cxt-user-accent) 12%,#fff);
    color:var(--cxt-user-accent);
}
.cxt-nav-icon{
    width:25px;
    height:25px;
    display:grid;
    place-items:center;
    border-radius:8px;
    background:rgba(0,0,0,.035);
    font-weight:900;
}
.cxt-logout-form{
    margin-top:auto;
    padding-top:18px;
}
.cxt-logout-form button{
    width:100%;
    min-height:42px;
    border:1px solid var(--cxt-line);
    border-radius:10px;
    background:#fff;
    color:var(--cxt-danger);
    cursor:pointer;
    font-weight:750;
}
.cxt-account-main{
    width:min(1320px,100%);
    margin:0 auto;
    padding:42px clamp(22px,4vw,58px) 70px;
}
.cxt-section-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:26px;
    margin-bottom:24px;
}
.cxt-section-head.compact{display:block}
.cxt-kicker{
    display:block;
    margin-bottom:7px;
    color:var(--cxt-user-accent);
    font-size:11px;
    font-weight:900;
    letter-spacing:.14em;
}
.cxt-section-head h1{
    margin:0;
    font-size:clamp(34px,4vw,54px);
    line-height:1;
    letter-spacing:-.04em;
}
.cxt-section-head p{
    max-width:720px;
    margin:10px 0 0;
    color:var(--cxt-muted);
    line-height:1.6;
}
.cxt-head-avatar{
    width:88px;
    height:88px;
    flex:0 0 88px;
    border-radius:50%;
    object-fit:cover;
    border:5px solid #fff;
    box-shadow:0 12px 34px rgba(37,29,23,.10);
}
.cxt-status-row{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin-bottom:20px;
}
.cxt-status-row span{
    padding:6px 9px;
    border-radius:999px;
    background:color-mix(in srgb,var(--cxt-user-accent) 12%,#fff);
    color:var(--cxt-user-accent);
    font-size:11px;
    font-weight:850;
}
.cxt-dashboard-cards{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
    margin-bottom:18px;
}
.cxt-dashboard-cards.is-without-commissions{
    grid-template-columns:repeat(2,minmax(0,1fr));
}
.cxt-dashboard-card,
.cxt-content-panel{
    border:1px solid var(--cxt-line);
    border-radius:17px;
    background:#fff;
    box-shadow:0 8px 30px rgba(46,37,30,.04);
}
.cxt-dashboard-card{
    padding:20px;
}
.cxt-dashboard-card>span{
    color:var(--cxt-muted);
    font-size:12px;
    font-weight:750;
}
.cxt-dashboard-card>strong{
    display:block;
    margin:9px 0 7px;
    font-size:30px;
}
.cxt-dashboard-card small{
    color:var(--cxt-muted);
    line-height:1.45;
}
.cxt-content-panel{
    margin-bottom:15px;
    padding:24px;
}
.cxt-content-panel h2{
    margin:0 0 8px;
    font-size:20px;
}
.cxt-content-panel p{
    margin:0;
    color:var(--cxt-muted);
    line-height:1.65;
}

.cxt-project-shortcuts{
    margin:34px 0 18px;
}
.cxt-project-shortcuts-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:16px;
}
.cxt-project-shortcuts-head h2{
    margin:4px 0 5px;
    font-size:24px;
    letter-spacing:-.02em;
}
.cxt-project-shortcuts-head p{
    margin:0;
    color:var(--cxt-muted);
    line-height:1.55;
}
.cxt-project-shortcuts-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
}
.cxt-project-shortcut{
    min-width:0;
    overflow:hidden;
    border:1px solid var(--cxt-line);
    border-radius:17px;
    background:#fff;
    color:var(--cxt-text);
    text-decoration:none;
    box-shadow:0 8px 30px rgba(46,37,30,.05);
    transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
.cxt-project-shortcut:hover{
    transform:translateY(-3px);
    border-color:color-mix(in srgb,var(--cxt-user-accent) 38%,var(--cxt-line));
    box-shadow:0 15px 34px rgba(46,37,30,.11);
}
.cxt-project-shortcut:focus-visible{
    outline:3px solid color-mix(in srgb,var(--cxt-user-accent) 55%,#fff);
    outline-offset:3px;
}
.cxt-project-shortcut-media{
    display:block;
    aspect-ratio:12/7;
    overflow:hidden;
    background:#2c0a65;
}
.cxt-project-shortcut-media img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .28s ease;
}
.cxt-project-shortcut:hover .cxt-project-shortcut-media img{
    transform:scale(1.025);
}
.cxt-project-shortcut-body{
    display:grid;
    gap:6px;
    min-height:76px;
    padding:14px 15px;
}
.cxt-project-shortcut-body strong{
    min-width:0;
    font-size:15px;
    line-height:1.25;
}
.cxt-project-shortcut-body>span{
    color:var(--cxt-user-accent);
    font-size:11px;
    font-weight:850;
}
.cxt-project-shortcut-body b{
    margin-left:3px;
    font-size:15px;
}
@media(max-width:1050px){
    .cxt-project-shortcuts-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}

.cxt-empty-state{
    padding:30px;
    text-align:center;
    border:1px dashed #d8d0c9;
    border-radius:13px;
    background:#fbfaf9;
}
.cxt-empty-state strong{display:block;font-size:18px}
.cxt-empty-state p{margin-top:8px}
.cxt-profile-form{
    display:grid;
    gap:16px;
}
.cxt-profile-top{
    display:flex;
    align-items:center;
    gap:18px;
    margin-bottom:8px;
}
.cxt-profile-avatar{
    width:100px;
    height:100px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid #fff;
    box-shadow:0 10px 28px rgba(0,0,0,.09);
}
.cxt-upload-btn{
    position:relative;
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    width:auto!important;
    min-height:40px;
    padding:0 14px;
    border:1px solid var(--cxt-line);
    border-radius:9px;
    background:#fff;
    cursor:pointer;
    font-size:13px;
    font-weight:750;
}
.cxt-upload-btn input{
    position:absolute;
    width:1px!important;
    height:1px!important;
    opacity:0;
    pointer-events:none;
}
.cxt-color-field{
    max-width:240px;
}
.cxt-color-field input[type=color]{
    width:86px;
    height:46px;
    padding:4px;
    border:1px solid var(--cxt-line);
    border-radius:9px;
    background:#fff;
}

@media(max-width:950px){
    .cxt-auth-shell{
        grid-template-columns:1fr;
        gap:28px;
        max-width:620px;
    }
    .cxt-account-shell{
        grid-template-columns:1fr;
    }
    .cxt-account-sidebar{
        position:relative;
        height:auto;
        border-right:0;
        border-bottom:1px solid var(--cxt-line);
    }
    .cxt-account-nav{
        display:flex;
        overflow-x:auto;
        padding-bottom:5px;
    }
    .cxt-account-nav a{
        flex:0 0 auto;
        white-space:nowrap;
    }
    .cxt-logout-form{
        margin-top:12px;
    }
}
@media(max-width:700px){
    .cxt-project-shortcuts-grid{grid-template-columns:1fr;}
    .cxt-project-shortcut-body{min-height:64px;}
    .cxt-auth-shell{
        width:min(100% - 24px,620px);
        padding:28px 0;
    }
    .cxt-auth-brand h1{
        font-size:42px;
    }
    .cxt-auth-card{
        padding:24px 18px;
    }
    .cxt-form-grid,
    .cxt-dashboard-cards{
        grid-template-columns:1fr;
    }
    .cxt-account-main{
        padding:28px 14px 50px;
    }
    .cxt-section-head{
        align-items:flex-start;
    }
    .cxt-head-avatar{
        width:64px;
        height:64px;
        flex-basis:64px;
    }
    .cxt-section-head h1{
        font-size:36px;
    }
}

/* CXT Compte 0.1.25 — espace client étendu */
.cxt-dashboard-cards-expanded{
    grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
}
.cxt-account-link-grid,
.cxt-personal-data-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    margin-bottom:15px;
}
.cxt-personal-data-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
}
.cxt-account-link-card,
.cxt-personal-data-card{
    min-width:0;
    padding:20px;
    border:1px solid var(--cxt-line);
    border-radius:17px;
    background:#fff;
    box-shadow:0 8px 30px rgba(46,37,30,.04);
}
.cxt-account-link-card{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    gap:18px;
}
.cxt-account-link-card strong,
.cxt-personal-data-card>strong{
    display:block;
    font-size:18px;
}
.cxt-account-link-card p,
.cxt-personal-data-card p{
    margin:7px 0 0;
    color:var(--cxt-muted);
    line-height:1.6;
}
.cxt-account-link-card a,
.cxt-personal-data-card a,
.cxt-document-row b{
    color:var(--cxt-user-accent);
    font-size:12px;
    font-weight:850;
    text-decoration:none;
}
.cxt-account-link-card>span,
.cxt-personal-data-card>span{
    color:var(--cxt-muted);
    font-size:12px;
    font-weight:750;
}
.cxt-account-history-list,
.cxt-document-list{
    display:grid;
    gap:10px;
    margin-top:15px;
}
.cxt-account-history-row,
.cxt-document-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:14px 15px;
    border:1px solid var(--cxt-line);
    border-radius:12px;
    background:#fff;
}
.cxt-account-history-row span,
.cxt-document-row small{
    display:block;
    margin-top:4px;
    color:var(--cxt-muted);
    font-size:11px;
}
.cxt-account-history-money{
    text-align:right;
}
.cxt-document-row{
    text-decoration:none;
    transition:border-color .18s ease,transform .18s ease;
}
.cxt-document-row:hover{
    transform:translateY(-1px);
    border-color:color-mix(in srgb,var(--cxt-user-accent) 34%,var(--cxt-line));
}
.cxt-personal-data-card{
    display:flex;
    flex-direction:column;
    min-height:190px;
}
.cxt-personal-data-card a,
.cxt-personal-data-card>span{
    margin-top:auto;
    padding-top:16px;
}
.cxt-account-info-panel{
    background:color-mix(in srgb,var(--cxt-user-accent) 5%,#fff);
}
@media(max-width:900px){
    .cxt-personal-data-grid{grid-template-columns:1fr;}
}
@media(max-width:700px){
    .cxt-account-link-grid{grid-template-columns:1fr;}
    .cxt-account-history-row,
    .cxt-document-row{align-items:flex-start;flex-direction:column;}
    .cxt-account-history-money{text-align:left;}
}


.cxt-dashboard-primary-flow{
    display:flex;
    flex-direction:column;
}
.cxt-dashboard-primary-flow .cxt-project-shortcuts{
    order:1;
}
.cxt-dashboard-primary-flow .cxt-dashboard-summary-intro{
    order:2;
}
.cxt-dashboard-primary-flow .cxt-dashboard-table-panel{
    order:3;
}

.cxt-dashboard-table-panel{
    overflow:hidden;
}
.cxt-panel-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:18px;
    margin-bottom:14px;
}
.cxt-panel-head h2{
    margin:0 0 6px;
    font-size:20px;
}
.cxt-panel-head p{
    margin:0;
    color:var(--cxt-muted);
    line-height:1.6;
}
.cxt-summary-table-wrap{
    overflow:auto;
}
.cxt-summary-table{
    width:100%;
    border-collapse:collapse;
    min-width:680px;
}
.cxt-summary-table thead th{
    padding:13px 14px;
    border-bottom:1px solid var(--cxt-line);
    color:var(--cxt-muted);
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.05em;
    text-align:left;
}
.cxt-summary-table tbody th,
.cxt-summary-table tbody td{
    padding:15px 14px;
    border-bottom:1px solid var(--cxt-line);
    vertical-align:top;
    text-align:left;
}
.cxt-summary-table tbody tr:last-child th,
.cxt-summary-table tbody tr:last-child td{
    border-bottom:0;
}
.cxt-summary-table tbody strong{
    display:inline-block;
    font-size:18px;
}
.cxt-summary-table tbody td:last-child{
    color:var(--cxt-muted);
    line-height:1.55;
}
@media(max-width:720px){
    .cxt-dashboard-primary-flow .cxt-project-shortcuts{
        order:1;
        margin:8px 0 24px;
    }
    .cxt-dashboard-primary-flow .cxt-dashboard-summary-intro{
        order:2;
    }
    .cxt-dashboard-primary-flow .cxt-dashboard-table-panel{
        order:3;
    }
    .cxt-summary-table{
        min-width:0;
    }
    .cxt-summary-table thead{
        display:none;
    }
    .cxt-summary-table,
    .cxt-summary-table tbody,
    .cxt-summary-table tr,
    .cxt-summary-table th,
    .cxt-summary-table td{
        display:block;
        width:100%;
        box-sizing:border-box;
    }
    .cxt-summary-table tr{
        padding:13px 0;
        border-bottom:1px solid var(--cxt-line);
    }
    .cxt-summary-table tbody tr:last-child{
        border-bottom:0;
    }
    .cxt-summary-table tbody th,
    .cxt-summary-table tbody td{
        padding:4px 0;
        border:0;
    }
    .cxt-summary-table tbody td::before{
        display:block;
        margin-bottom:4px;
        color:var(--cxt-muted);
        font-size:11px;
        font-weight:800;
        text-transform:uppercase;
        letter-spacing:.05em;
    }
    .cxt-summary-table tbody tr td:nth-of-type(1)::before{
        content:"Valeur";
    }
    .cxt-summary-table tbody tr td:nth-of-type(2)::before{
        content:"Détail";
    }
}

/* CXT Compte 0.1.22 — sécurité moderne */
.cxt-security-head{margin-bottom:26px}
.cxt-security-grid{
    display:grid;
    grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);
    gap:18px;
    align-items:start;
}
.cxt-security-card{
    min-width:0;
    padding:26px;
    border:1px solid var(--cxt-line);
    border-radius:20px;
    background:#fff;
    box-shadow:0 10px 34px rgba(46,37,30,.05);
}
.cxt-security-card-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin-bottom:24px;
}
.cxt-security-icon{
    display:grid;
    place-items:center;
    width:46px;
    height:46px;
    border-radius:14px;
    background:color-mix(in srgb,var(--cxt-user-accent) 11%,#fff);
    color:var(--cxt-user-accent);
    font-size:20px;
    font-weight:900;
    letter-spacing:-.06em;
}
.cxt-security-email-card.is-verified .cxt-security-icon{
    background:#edf8f0;
    color:var(--cxt-success);
}
.cxt-security-state{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:0 11px;
    border-radius:999px;
    font-size:12px;
    font-weight:850;
}
.cxt-security-state.is-ok{background:#edf8f0;color:var(--cxt-success)}
.cxt-security-state.is-warning{background:#fff6e8;color:#97600f}
.cxt-security-state.is-neutral{background:#f3f0f7;color:var(--cxt-user-accent)}
.cxt-security-eyebrow{
    display:block;
    margin-bottom:7px;
    color:var(--cxt-user-accent);
    font-size:11px;
    font-weight:900;
    letter-spacing:.1em;
}
.cxt-security-card h2{
    margin:0;
    font-size:24px;
    letter-spacing:-.02em;
}
.cxt-security-card-intro,
.cxt-security-email{
    color:var(--cxt-muted);
    line-height:1.6;
}
.cxt-security-email{
    margin:10px 0 18px;
    overflow-wrap:anywhere;
    font-weight:750;
    color:var(--cxt-text);
}
.cxt-security-card-intro{margin:10px 0 22px}
.cxt-security-message{
    display:grid;
    gap:5px;
    margin:18px 0;
    padding:14px 15px;
    border-radius:13px;
    line-height:1.5;
}
.cxt-security-message strong{font-size:14px}
.cxt-security-message span{font-size:13px}
.cxt-security-message.is-success{background:#edf8f0;color:#276c3d;border:1px solid #c9e7d1}
.cxt-security-message.is-warning{background:#fff8ec;color:#765018;border:1px solid #efdfbd}
.cxt-security-email-form{margin-top:16px}
.cxt-password-zone{display:grid;gap:15px}
.cxt-password-input-wrap{
    position:relative;
    display:block;
}
.cxt-password-input-wrap input{
    padding-right:92px!important;
}
.cxt-password-toggle{
    position:absolute;
    top:50%;
    right:7px;
    transform:translateY(-50%);
    min-height:34px;
    padding:0 10px;
    border:0;
    border-radius:8px;
    background:#f4f1f7;
    color:var(--cxt-user-accent);
    cursor:pointer;
    font-size:11px;
    font-weight:850;
}
.cxt-password-toggle:hover{background:#ece6f4}
.cxt-password-meter{
    padding:15px;
    border:1px solid var(--cxt-line);
    border-radius:14px;
    background:#fbfaf9;
}
.cxt-password-meter-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:10px;
    font-size:12px;
    color:var(--cxt-muted);
}
.cxt-password-meter-head strong{color:var(--cxt-text)}
.cxt-password-meter-track{
    height:7px;
    overflow:hidden;
    border-radius:999px;
    background:#e8e2dd;
}
.cxt-password-meter-track span{
    display:block;
    width:0;
    height:100%;
    border-radius:inherit;
    background:var(--cxt-user-accent);
    transition:width .18s ease;
}
.cxt-password-rules{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px 10px;
    margin:13px 0 0;
    padding:0;
    list-style:none;
}
.cxt-password-rules li{
    position:relative;
    padding-left:20px;
    color:var(--cxt-muted);
    font-size:12px;
    line-height:1.4;
}
.cxt-password-rules li::before{
    content:'○';
    position:absolute;
    left:0;
    top:-1px;
    color:#a79f98;
    font-weight:900;
}
.cxt-password-rules li.is-met{
    color:var(--cxt-success);
    font-weight:750;
}
.cxt-password-rules li.is-met::before{content:'✓';color:var(--cxt-success)}
.cxt-password-policy-note,
.cxt-password-meter>small{
    display:block;
    margin:12px 0 0;
    color:var(--cxt-muted);
    font-size:11px;
    line-height:1.5;
}
.cxt-password-match{min-height:17px}
.cxt-password-match.is-match{color:var(--cxt-success)}
.cxt-password-match.is-mismatch{color:var(--cxt-danger)}
.cxt-security-note{
    display:flex;
    gap:10px;
    align-items:flex-start;
    margin-top:18px;
    padding:16px 18px;
    border:1px solid var(--cxt-line);
    border-radius:15px;
    background:rgba(255,255,255,.55);
    color:var(--cxt-muted);
    font-size:13px;
    line-height:1.55;
}
.cxt-security-note strong{flex:0 0 auto;color:var(--cxt-text)}
@media(max-width:980px){
    .cxt-security-grid{grid-template-columns:1fr}
}
@media(max-width:620px){
    .cxt-security-card{padding:20px 16px}
    .cxt-password-rules{grid-template-columns:1fr}
    .cxt-security-note{display:grid}
}


.cxt-personal-data-grid-compact{
    grid-template-columns:repeat(3,minmax(0,1fr));
}
.cxt-request-link-grid{
    margin-top:18px;
    margin-bottom:0;
}
@media(max-width:900px){
    .cxt-personal-data-grid-compact{grid-template-columns:1fr;}
}


/* CXT Compte 0.1.25 — données personnelles simplifiées */
.cxt-personal-data-process{
    display:grid;
    gap:22px;
}
.cxt-personal-data-process-copy h2{
    margin:5px 0 8px;
}
.cxt-personal-data-process-copy p{
    margin:0;
    color:var(--cxt-muted);
    line-height:1.65;
}
.cxt-personal-data-steps{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    list-style:none;
    margin:0;
    padding:0;
}
.cxt-personal-data-steps li{
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:16px;
    border:1px solid var(--cxt-line);
    border-radius:16px;
    background:rgba(255,255,255,.6);
}
.cxt-personal-data-steps li>strong{
    display:grid;
    place-items:center;
    width:30px;
    height:30px;
    flex:0 0 30px;
    border-radius:999px;
    background:var(--cxt-accent,#32146f);
    color:#fff;
    font-size:13px;
}
.cxt-personal-data-steps span{
    display:grid;
    gap:4px;
}
.cxt-personal-data-steps b{
    font-size:14px;
}
.cxt-personal-data-steps small{
    color:var(--cxt-muted);
    line-height:1.5;
}
.cxt-personal-data-legal-note{
    margin:0;
    padding:14px 16px;
    border-radius:14px;
    background:rgba(49,20,111,.05);
    color:var(--cxt-muted);
    line-height:1.6;
}
@media(max-width:860px){
    .cxt-personal-data-steps{
        grid-template-columns:1fr;
    }
}

/* CXT Compte 0.1.38 — adaptation mobile complète de l'espace client
   Desktop inchangé : ces règles ne s'appliquent qu'aux écrans <= 950 px. */
@media (max-width:950px){
    html{scroll-padding-top:118px}
    body.cxt-compte-page{overflow-x:hidden}

    .cxt-account-shell{
        display:block;
        min-width:0;
    }
    .cxt-account-sidebar{
        position:sticky;
        top:0;
        z-index:60;
        height:auto;
        min-height:0;
        display:grid;
        grid-template-columns:auto minmax(0,1fr) auto;
        grid-template-areas:
            "brand user logout"
            "nav nav nav";
        align-items:center;
        gap:8px 10px;
        padding:10px 12px 8px;
        border-right:0;
        border-bottom:1px solid var(--cxt-line);
        background:rgba(255,255,255,.97);
        box-shadow:0 8px 26px rgba(46,37,30,.08);
        -webkit-backdrop-filter:blur(12px);
        backdrop-filter:blur(12px);
    }
    .cxt-account-brand{
        grid-area:brand;
        gap:0;
        padding:0;
        min-width:0;
    }
    .cxt-account-brand>span:last-child{display:none}
    .cxt-account-brand .cxt-logo-mark{
        width:40px;
        height:40px;
        border-radius:12px;
        font-size:13px;
    }
    .cxt-user-mini{
        grid-area:user;
        min-width:0;
        margin:0;
        padding:0;
        gap:9px;
        background:transparent;
    }
    .cxt-user-mini img{
        width:38px;
        height:38px;
        flex:0 0 38px;
        border-width:1px;
    }
    .cxt-user-mini>div{min-width:0}
    .cxt-user-mini strong{
        max-width:none;
        font-size:13px;
        line-height:1.2;
    }
    .cxt-user-mini span{display:none}

    .cxt-account-nav{
        grid-area:nav;
        display:flex;
        gap:7px;
        min-width:0;
        margin:0 -4px;
        padding:2px 4px 4px;
        overflow-x:auto;
        overflow-y:hidden;
        overscroll-behavior-inline:contain;
        scroll-snap-type:x proximity;
        scroll-padding-inline:12px;
        scrollbar-width:none;
        -webkit-overflow-scrolling:touch;
    }
    .cxt-account-nav::-webkit-scrollbar{display:none}
    .cxt-account-nav a{
        flex:0 0 auto;
        min-height:42px;
        padding:6px 10px;
        border:1px solid #eee8e3;
        border-radius:11px;
        background:#fff;
        white-space:nowrap;
        scroll-snap-align:start;
        box-shadow:0 2px 8px rgba(46,37,30,.025);
    }
    .cxt-account-nav a.is-active{
        border-color:color-mix(in srgb,var(--cxt-user-accent) 24%,var(--cxt-line));
        scroll-snap-stop:always;
    }
    .cxt-nav-icon{
        width:27px;
        height:27px;
        flex:0 0 27px;
    }

    .cxt-logout-form{
        grid-area:logout;
        align-self:center;
        margin:0;
        padding:0;
    }
    .cxt-logout-form button{
        width:auto;
        min-height:40px;
        padding:0 12px;
        white-space:nowrap;
        font-size:12px;
    }

    .cxt-account-main{
        width:100%;
        min-width:0;
        margin:0;
        padding:28px clamp(14px,4vw,32px) 54px;
    }
    .cxt-section-head{
        align-items:flex-start;
        gap:16px;
        margin-bottom:20px;
    }
    .cxt-section-head>div{min-width:0}
    .cxt-section-head h1{
        overflow-wrap:anywhere;
        font-size:clamp(32px,6.5vw,46px);
    }
    .cxt-section-head p{font-size:15px}
    .cxt-head-avatar{
        width:72px;
        height:72px;
        flex:0 0 72px;
        border-width:4px;
    }

    .cxt-dashboard-cards,
    .cxt-dashboard-cards.is-without-commissions{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .cxt-project-shortcuts-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .cxt-personal-data-grid,
    .cxt-personal-data-grid-compact{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .cxt-security-grid{grid-template-columns:1fr}

    .cxt-content-panel,
    .cxt-dashboard-card,
    .cxt-account-link-card,
    .cxt-personal-data-card,
    .cxt-security-card{
        min-width:0;
    }
    .cxt-summary-table-wrap{
        max-width:100%;
        -webkit-overflow-scrolling:touch;
    }
    .cxt-account-history-row,
    .cxt-document-row{
        min-width:0;
    }
    .cxt-account-history-row>*,
    .cxt-document-row>*{
        min-width:0;
        overflow-wrap:anywhere;
    }
}

@media (max-width:700px){
    html{scroll-padding-top:112px}

    .cxt-account-main{
        padding:22px 12px 44px;
    }
    .cxt-section-head{
        gap:12px;
        margin-bottom:18px;
    }
    .cxt-section-head h1{
        font-size:clamp(28px,8.2vw,36px);
        line-height:1.04;
    }
    .cxt-section-head p{
        margin-top:8px;
        font-size:14px;
        line-height:1.55;
    }
    .cxt-kicker{margin-bottom:5px}
    .cxt-head-avatar{
        width:58px;
        height:58px;
        flex-basis:58px;
        border-width:3px;
    }

    .cxt-dashboard-cards,
    .cxt-dashboard-cards.is-without-commissions,
    .cxt-account-link-grid,
    .cxt-personal-data-grid,
    .cxt-personal-data-grid-compact,
    .cxt-project-shortcuts-grid,
    .cxt-form-grid{
        grid-template-columns:1fr;
    }
    .cxt-dashboard-card,
    .cxt-content-panel,
    .cxt-account-link-card,
    .cxt-personal-data-card{
        padding:17px 15px;
        border-radius:14px;
    }
    .cxt-dashboard-card>strong{font-size:26px}
    .cxt-content-panel h2{font-size:19px}

    .cxt-project-shortcuts{
        margin:24px 0 16px;
    }
    .cxt-project-shortcuts-head,
    .cxt-panel-head{
        display:block;
        margin-bottom:13px;
    }
    .cxt-project-shortcuts-head h2{font-size:21px}
    .cxt-project-shortcut{border-radius:14px}
    .cxt-project-shortcut-media{aspect-ratio:16/7}
    .cxt-project-shortcut-body{
        min-height:0;
        padding:12px 13px;
    }

    .cxt-profile-top{
        align-items:flex-start;
        gap:14px;
    }
    .cxt-profile-avatar{
        width:78px;
        height:78px;
        flex:0 0 78px;
    }
    .cxt-upload-btn{min-height:44px}
    .cxt-color-field{max-width:none}

    .cxt-form input,
    .cxt-profile-form input[type=text],
    .cxt-profile-form input[type=email],
    .cxt-profile-form textarea{
        min-height:48px;
        font-size:16px;
    }
    .cxt-profile-form textarea{min-height:130px}
    .cxt-main-btn,
    .cxt-main-btn.fit{
        width:100%;
        min-height:48px;
        padding:0 16px;
    }

    .cxt-account-history-row,
    .cxt-document-row{
        align-items:flex-start;
        flex-direction:column;
        gap:9px;
        padding:13px;
    }
    .cxt-account-history-money{
        width:100%;
        text-align:left;
    }

    .cxt-security-card{
        padding:18px 15px;
        border-radius:16px;
    }
    .cxt-security-card-top{
        align-items:flex-start;
        margin-bottom:18px;
    }
    .cxt-security-card h2{font-size:21px}
    .cxt-security-note{padding:14px}
    .cxt-password-input-wrap input{padding-right:86px!important}
    .cxt-password-toggle{right:6px}
    .cxt-password-rules{grid-template-columns:1fr}

    .cxt-empty-state{padding:22px 14px}
    .cxt-personal-data-card{min-height:0}
    .cxt-personal-data-steps{gap:9px}
    .cxt-personal-data-steps li{padding:14px}

    .cxt-auth-shell{
        width:calc(100% - 24px);
        min-height:100dvh;
        gap:22px;
        padding:22px 0 30px;
    }
    .cxt-auth-brand h1{
        margin:14px 0 8px;
        font-size:clamp(36px,12vw,48px);
    }
    .cxt-auth-brand p{
        font-size:15px;
        line-height:1.5;
    }
    .cxt-auth-card{
        padding:21px 16px;
        border-radius:17px;
    }
    .cxt-auth-card h2{font-size:26px}
    .cxt-auth-intro{margin-bottom:20px}
    .cxt-auth-links{gap:10px 16px}
}

@media (max-width:420px){
    html{scroll-padding-top:158px}
    .cxt-account-sidebar{
        grid-template-columns:auto minmax(0,1fr);
        grid-template-areas:
            "brand user"
            "nav nav"
            "logout logout";
        padding:9px 10px 8px;
    }
    .cxt-logout-form button{
        width:100%;
        min-height:36px;
    }
    .cxt-account-nav a{
        min-height:40px;
        padding:5px 9px;
        font-size:12px;
    }
    .cxt-nav-icon{
        width:25px;
        height:25px;
        flex-basis:25px;
    }
    .cxt-account-main{padding-inline:10px}
    .cxt-section-head h1{font-size:28px}
    .cxt-head-avatar{
        width:52px;
        height:52px;
        flex-basis:52px;
    }
    .cxt-profile-top{flex-direction:column}
    .cxt-security-card-top{flex-wrap:wrap}
    .cxt-auth-shell{width:calc(100% - 18px)}
}

/* CXT Compte 0.1.39 — raccourcis Univers CXT plus compacts */
.cxt-project-shortcuts-grid{
    gap:10px;
}
.cxt-project-shortcut{
    border-radius:14px;
}
.cxt-project-shortcut-media{
    aspect-ratio:16/7;
}
.cxt-project-shortcut-body{
    gap:3px;
    min-height:56px;
    padding:9px 11px;
}
.cxt-project-shortcut-body strong{
    font-size:14px;
    line-height:1.18;
}
.cxt-project-shortcut-body>span{
    font-size:10px;
}
.cxt-project-shortcut-body b{
    font-size:13px;
}

@media (max-width:1050px) and (min-width:701px){
    .cxt-project-shortcuts-grid{
        grid-template-columns:repeat(4,minmax(0,1fr));
        gap:9px;
    }
    .cxt-project-shortcut-media{
        aspect-ratio:16/7;
    }
    .cxt-project-shortcut-body{
        min-height:52px;
        padding:8px 9px;
    }
    .cxt-project-shortcut-body strong{
        font-size:12px;
    }
    .cxt-project-shortcut-body>span{
        font-size:9px;
    }
}

@media (max-width:700px){
    .cxt-project-shortcuts{
        margin:20px 0 14px;
    }
    .cxt-project-shortcuts-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:8px;
    }
    .cxt-project-shortcut{
        border-radius:12px;
    }
    .cxt-project-shortcut-media{
        aspect-ratio:16/7;
    }
    .cxt-project-shortcut-body{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:6px;
        min-height:42px;
        padding:7px 8px;
    }
    .cxt-project-shortcut-body strong{
        font-size:12px;
        line-height:1.12;
    }
    .cxt-project-shortcut-body>span{
        flex:0 0 auto;
        font-size:9px;
        white-space:nowrap;
    }
    .cxt-project-shortcut-body b{
        margin-left:1px;
        font-size:11px;
    }
}

@media (max-width:390px){
    .cxt-project-shortcuts-grid{
        gap:7px;
    }
    .cxt-project-shortcut-body{
        min-height:40px;
        padding:6px 7px;
    }
    .cxt-project-shortcut-body strong{
        font-size:11px;
    }
    .cxt-project-shortcut-body>span{
        font-size:8px;
    }
}


/* CXT Compte 0.1.42 — formulaires guidés (commandes + données personnelles) */
.cxt-request-order-form{
    display:grid;
    gap:12px;
    margin-top:18px;
}
.cxt-request-order-form>label{
    font-weight:850;
    color:var(--cxt-text);
}
.cxt-request-order-select{
    width:100%;
    min-height:48px;
    padding:11px 13px;
    border:1px solid var(--cxt-line);
    border-radius:13px;
    background:#fff;
    color:var(--cxt-text);
    font:inherit;
}
.cxt-request-order-help{
    margin:0;
    color:var(--cxt-muted);
    font-size:13px;
    line-height:1.55;
}
.cxt-request-order-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    margin-top:4px;
}
.cxt-request-order-actions button{
    min-height:48px;
    padding:12px 16px;
    border:1px solid var(--cxt-user-accent);
    border-radius:13px;
    background:var(--cxt-user-accent);
    color:#fff;
    font:inherit;
    font-weight:850;
    cursor:pointer;
}
.cxt-request-order-actions button+button{
    background:#fff;
    color:var(--cxt-user-accent);
}
@media(max-width:720px){
    .cxt-request-order-actions{grid-template-columns:1fr;}
}

.cxt-request-order-select[readonly]{
    cursor:default;
}
.cxt-request-link-actions-3{
    grid-template-columns:repeat(3,minmax(0,1fr));
}
.cxt-request-action-link{
    display:grid;
    place-items:center;
    min-height:48px;
    padding:12px 16px;
    border:1px solid var(--cxt-user-accent);
    border-radius:13px;
    background:var(--cxt-user-accent);
    color:#fff;
    font:inherit;
    font-weight:850;
    text-align:center;
    text-decoration:none;
}
.cxt-request-action-link.is-secondary{
    background:#fff;
    color:var(--cxt-user-accent);
}
.cxt-request-action-link.is-disabled{
    border-color:var(--cxt-line);
    background:#f4f0fb;
    color:var(--cxt-muted);
    cursor:not-allowed;
}
.cxt-personal-data-request-panel h2{
    margin-bottom:8px;
}
.cxt-personal-data-request-panel>p{
    margin:0;
    color:var(--cxt-muted);
    line-height:1.65;
}
.cxt-personal-data-request-form{
    margin-top:18px;
}
@media(max-width:860px){
    .cxt-request-link-actions-3{grid-template-columns:1fr;}
}


/* CXT Compte 0.1.48 — avertissement juridique renforcé avant redirection vers la fermeture du compte */
html.cxt-close-warning-open,
body.cxt-close-warning-open{
    overflow:hidden;
}
.cxt-close-warning-modal[hidden]{
    display:none !important;
}
.cxt-close-warning-modal{
    position:fixed;
    inset:0;
    z-index:2147483000;
    display:grid;
    place-items:center;
    padding:24px;
}
.cxt-close-warning-backdrop{
    position:absolute;
    inset:0;
    background:rgba(21,14,18,.64);
    backdrop-filter:blur(3px);
}
.cxt-close-warning-dialog{
    position:relative;
    z-index:1;
    width:min(680px,100%);
    max-height:min(86vh,760px);
    overflow:auto;
    padding:26px;
    border:1px solid #edb4b9;
    border-radius:20px;
    background:#fffafa;
    box-shadow:0 24px 80px rgba(60,12,20,.28);
    color:var(--cxt-text);
}
.cxt-close-warning-icon{
    display:grid;
    place-items:center;
    width:44px;
    height:44px;
    margin-bottom:14px;
    border-radius:50%;
    background:#b42332;
    color:#fff;
    font-size:24px;
    font-weight:950;
}
.cxt-close-warning-kicker{
    display:block;
    margin-bottom:5px;
    color:#b42332;
    font-size:12px;
    font-weight:950;
    letter-spacing:.08em;
}
.cxt-close-warning-copy h2{
    margin:0 0 10px;
    color:#52131b;
    font-size:clamp(24px,3vw,34px);
    line-height:1.08;
}
.cxt-close-warning-copy>p{
    margin:0;
    color:#6f454a;
    line-height:1.65;
}
.cxt-close-warning-copy ul{
    display:grid;
    gap:9px;
    margin:18px 0;
    padding:0 0 0 20px;
    color:#3e2b2e;
    line-height:1.55;
}
.cxt-close-warning-legal{
    padding:13px 14px;
    border:1px solid #e4d8d9;
    border-radius:13px;
    background:#fff;
    font-size:13px;
}
.cxt-close-warning-rights{
    margin-top:10px !important;
    padding:13px 14px;
    border:1px solid #d9c5c8;
    border-radius:13px;
    background:#fff;
    color:#523b3f !important;
    font-size:13px;
}
.cxt-close-warning-ack{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin-top:14px;
    padding:13px 14px;
    border:1px solid #e3b9bd;
    border-radius:13px;
    background:#fff4f5;
    color:#4d3034;
    font-size:13px;
    line-height:1.55;
    cursor:pointer;
}
.cxt-close-warning-ack input{
    width:18px;
    height:18px;
    margin:2px 0 0;
    flex:0 0 18px;
    accent-color:#b42332;
}
.cxt-close-warning-ack span{
    min-width:0;
}
.cxt-close-warning-actions{
    display:grid;
    grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr);
    gap:12px;
    margin-top:22px;
}
.cxt-close-warning-actions button{
    min-height:50px;
    padding:12px 16px;
    border-radius:13px;
    font:inherit;
    font-weight:900;
    cursor:pointer;
}
.cxt-close-warning-cancel{
    border:1px solid #d7c9cb;
    background:#fff;
    color:#4a393c;
}
.cxt-close-warning-confirm{
    border:1px solid #a71928;
    background:#b42332;
    color:#fff;
}
.cxt-close-warning-confirm:disabled{
    opacity:.48;
    cursor:not-allowed;
}
@media(max-width:640px){
    .cxt-close-warning-modal{
        align-items:end;
        padding:12px;
    }
    .cxt-close-warning-dialog{
        max-height:88dvh;
        padding:20px 17px;
        border-radius:18px;
    }
    .cxt-close-warning-actions{
        grid-template-columns:1fr;
    }
}
