/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.0.0
*/

/* =====================================================
TOKENS DESIGN SYSTEM
===================================================== */

:root {
    --feat-primary: #2563eb;
    --feat-danger: #e63946;
    --feat-success: #16a34a;
    --feat-bg: #f6f8fb;
    --feat-card: #ffffff;
    --feat-text: #111827;
    --feat-muted: #6b7280;
    --feat-border: #e5e7eb;
}

/* =====================================================
RESET
===================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
    color: var(--feat-text);
    background: var(--feat-bg);
}

/* =====================================================
LAYOUT
===================================================== */

.qs-app{
    display:flex;
    min-height:100vh;
    background:#f5f7fa; /* fond global léger */
}

.qs-main {
    flex: 1;
    width: 100%;
    padding: 40px 30px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadePage 0.4s ease;
    background:#f5f7fa; /* même fond que container */
    
    /* ðŸ”¥ hauteur intelligente */
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    
}

@media (min-width: 1400px) {
    .qs-main {
        max-width: 1300px;
    }
}

.qs-dashboard {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.qs-app {
    min-height: 100vh;
}

.qs-main > * {
    width: 100%;
}

/* =====================================================
SIDEBAR
===================================================== */

.qs-sidebar {
    width: 260px;
    flex-shrink:0;
    background: #0f172a;
    color: #fff;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.qs-logo {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
}

.qs-nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: 0.2s;
}

.qs-nav-item:hover,
.qs-nav-item.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.qs-nav-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--feat-primary);
    opacity: 0;
    transition: 0.2s;
}

.qs-nav-item:hover::before,
.qs-nav-item.active::before {
    opacity: 1;
}

/* badge notif */
.qs-badge {
    background: var(--feat-danger);
    color: #fff;
    font-size: 11px;
    padding: 4px 7px;
    border-radius: 999px;
    position: relative;
    animation: badgePop 0.3s ease;
}

.qs-badge::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 999px;
    background: rgba(230,57,70,0.4);
    animation: pulse 1.5s infinite;
}

/* logout */
.qs-sidebar-bottom {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.qs-logout {
    display: block;
    background: var(--feat-danger);
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.qs-logout:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* =====================================================
HEADER
===================================================== */

.qs-header-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.qs-header-premium h1 {
    font-size: 30px;
    margin: 0;
}

.qs-subtitle {
    color: var(--feat-muted);
    font-size: 14px;
}

.qs-notif {
    position: relative;
    cursor: pointer;
}

.qs-notif-dropdown {
    position: absolute;
    top: 35px;
    right: 0;
    width: 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 15px;
    display: none;
    z-index: 999;
}

.qs-notif-dropdown.open {
    display: block;
}

.qs-notif-dropdown p {
    font-size: 13px;
    color: #666;
}
.qs-notif-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.qs-notif-item.is-unread {
    background: #eef6ff;
    font-weight: 500;
}

.qs-notif-item span {
    font-size: 11px;
    color: #999;
}

/* =====================================================
KPI
===================================================== */

.qs-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.qs-kpi {
    background: var(--feat-card);
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    flex-direction: column;
    gap: 6px;
    animation: fadeUp 0.5s ease forwards;
}

.qs-kpi:hover {
    transform: translateY(-3px);
}

.qs-kpi-label {
    font-size: 13px;
    color: var(--feat-muted);
}

.qs-kpi {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* ðŸ‘‰ important */
    min-height: 90px;
}

.qs-kpi-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.qs-kpi-label {
    font-size: 13px;
    color: var(--feat-muted);
    margin-top: 6px;
}

/* =====================================================
GRID SERVICES
===================================================== */

.qs-grid-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* =====================================================
SERVICE CARD
===================================================== */

.qs-service-card {
    background: var(--feat-card);
    padding: 22px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--feat-text);
    display: flex;
    flex-direction: column;
    min-height: 180px;
    border: 1px solid var(--feat-border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.25s;
}

.qs-service-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.qs-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.qs-card-icon {
    font-size: 24px;
}

.qs-service-card h3 {
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 15px;
}

.qs-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--feat-muted);
}

/* status */
.qs-status {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 999px;
}

.status-ok { background: #d1fae5; color: #065f46; }
.status-progress { background: #fef3c7; color: #92400e; }
.status-wait { background: #eef2f7; color: #475569; }

/* =====================================================
SERVICE PAGE
===================================================== */

.qs-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.qs-card {
    background:#fff;
    padding: 25px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.qs-card:hover {
    transform: translateY(-3px);
}

.qs-icon {
    font-size: 26px;
    margin-bottom: 10px;
}

/* =====================================================
BUTTONS
===================================================== */

.qs-btn,
.qs-btn-dark {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s;
}

.qs-btn {
    background: var(--feat-primary);
    color: #fff;
}

.qs-btn-dark {
    background: #111;
    color: #fff;
}

.qs-btn:hover,
.qs-btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* =====================================================
FORM ADMIN (ACF) â€” CLEAN VERSION
===================================================== */

.qs-admin-edit-block {
    margin: 40px auto 0;
    max-width: 640px;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--feat-border);
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    animation: fadeSlide 0.3s ease;
}

/* STRUCTURE */
.qs-admin-edit-block form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* FIELD WRAPPER */
.qs-admin-edit-block .acf-field {
    display: flex;
    flex-direction: column;
	margin-bottom: 20px;
    gap: 6px;
}

/* LABEL */
.qs-admin-edit-block .acf-label {
    margin-bottom: 6px;
}

.qs-admin-edit-block .acf-label label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    line-height: 1.3;
}

/* INPUT / SELECT / TEXTAREA */

.qs-admin-edit-block .acf-input {
    margin-top: 0;
}


/* champs */
.qs-admin-edit-block input,
.qs-admin-edit-block select,
.qs-admin-edit-block textarea {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--feat-border);
    font-size: 14px;
}


/* textarea */
.qs-admin-edit-block textarea {
    height: auto;
    padding: 12px;
}


/* FOCUS */
.qs-admin-edit-block input:focus,
.qs-admin-edit-block select:focus {
    border-color: var(--feat-primary);
    box-shadow: 0 0 0 2px rgba(37,99,235,0.1);
}
.qs-admin-edit-block textarea:focus {
    outline: none;
    border-color: var(--feat-primary);
    box-shadow: 0 0 0 2px rgba(37,99,235,0.1);
}

/* CHECKBOX LIST */
.qs-admin-edit-block .acf-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qs-admin-edit-block .acf-checkbox-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

/* CHECKBOX SIZE */
.qs-admin-edit-block input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* SELECT2 (ACF relation / partenaires) */
.qs-admin-edit-block .select2-container {
    width: 100% !important;
}

.qs-admin-edit-block .select2-selection {
    height: 42px !important;
    border-radius: 10px !important;
    border: 1px solid var(--feat-border) !important;
}

/* BUTTON */
.qs-admin-edit-block input[type="submit"],
.qs-admin-edit-block .acf-button {
    background: #111827;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.qs-admin-edit-block input[type="submit"]:hover,
.qs-admin-edit-block .acf-button:hover {
    background: var(--feat-primary);
    transform: translateY(-2px);
}

/* TITLE */
.qs-admin-edit-block h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* ANIMATION */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qs-admin-edit-block .acf-field + .acf-field {
    margin-top: 4px;
}

/* ===============================
FORM FOOTER (CTA AREA)
=============================== */

.qs-admin-edit-block form {
    gap: 18px; /* un peu plus dâ€™air global */
}

/* zone bouton */
.qs-admin-edit-block .acf-form-submit {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--feat-border);
    display: flex;
    justify-content: flex-start;
}

/* bouton */
.qs-admin-edit-block input[type="submit"] {
    background: #111827;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.qs-admin-edit-block input[type="submit"]:hover {
    background: var(--feat-primary);
    transform: translateY(-2px);
}

/* espace spÃ©cifique avant select partenaires */
.qs-admin-edit-block .acf-field[data-name="partenaires_autorises"] {
    margin-bottom: 10px;
}

/* fix select2 collÃ© */
.qs-admin-edit-block .select2-container {
    margin-bottom: 5px;
}

/* =====================================================
ANIMATIONS
===================================================== */

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadePage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes badgePop {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
    from { transform: scale(1); opacity: 0.7; }
    to { transform: scale(1.8); opacity: 0; }
}

/* =====================================================
RESPONSIVE
===================================================== */

@media (max-width: 1024px) {
    .qs-grid-dashboard,
    .qs-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .qs-app { flex-direction: column; }
    .qs-sidebar { width: 100%; flex-direction: row; overflow-x: auto; }
    .qs-main { padding: 20px; }
    .qs-kpis { grid-template-columns: 1fr; }
    .qs-grid-dashboard,
    .qs-cards { grid-template-columns: 1fr; }
}

.qs-clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.qs-client-card {
    background: #fff;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--feat-border);
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

.qs-client-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.qs-client-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.qs-client-meta {
    font-size: 13px;
    color: var(--feat-muted);
}

/* HEADER LAYOUT */
.qs-header-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

/* LEFT */
.qs-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* AVATAR */
.qs-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--feat-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* RIGHT */
.qs-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* NOTIF */
.qs-notif {
    position: relative;
    font-size: 20px;
    cursor: pointer;
}

.qs-notif .qs-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    font-size: 10px;
    padding: 3px 6px;
}

/* LOGOUT */
.qs-logout {
    background: #111827;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    text-decoration: none;
}

.qs-logout:hover {
    background: var(--feat-primary);
}

.qs-admin-panel {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.qs-admin-edit-block,
.qs-share-block {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

.qs-share-form {
    display:flex;
    gap:10px;
    margin-top:10px;
}

.qs-share-form select {
    padding:8px;
}

.qs-share-form button {
    background:#111;
    color:#fff;
    padding:8px 12px;
    border-radius:6px;
}

.qs-success {
    color:green;
    margin-top:10px;
}

.qs-share-wrapper {
    display:flex;
    flex-direction:column;
    gap:15px;
}

.qs-share-form {
    display:flex;
    gap:10px;
}

.qs-partners-list {
    margin-top:15px;
}

.qs-partner-item {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:8px 10px;
    background:#f5f5f5;
    border-radius:6px;
    margin-bottom:5px;
}

.qs-remove {
    background:none;
    border:none;
    color:red;
    cursor:pointer;
}

.qs-success {
    color:green;
    font-weight:500;
}

/* =====================================================
ADMIN PANEL UX UPGRADE
===================================================== */

.qs-admin-panel {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-top: 40px;
    align-items: start;
}

/* cards homogÃ¨nes */
.qs-admin-edit-block,
.qs-share-block {
    background: var(--feat-card);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--feat-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.25s;
}

/* effet hover lÃ©ger */
.qs-admin-edit-block:hover,
.qs-share-block:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

/* titre sections */
.qs-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* =====================================================
FORM SHARE UX (IMPORTANT)
===================================================== */

.qs-share-block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.qs-share-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* SELECT PREMIUM */
.qs-share-form select {
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--feat-border);
    font-size: 14px;
    transition: 0.2s;
}

.qs-share-form select:focus {
    border-color: var(--feat-primary);
    box-shadow: 0 0 0 2px rgba(37,99,235,0.1);
}

/* BUTTON PREMIUM */
.qs-share-form button {
    height: 42px;
    border-radius: 10px;
    border: none;
    background: #111827;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
}

.qs-share-form button:hover {
    background: var(--feat-primary);
    transform: translateY(-2px);
}

/* =====================================================
PARTENAIRES LIST
===================================================== */

.qs-partners-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qs-partner-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid var(--feat-border);
    font-size: 14px;
}

/* bouton remove propre */
.qs-remove {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.qs-remove:hover {
    transform: scale(1.2);
}

/* =====================================================
VISUAL FIX EDIT BLOCK
===================================================== */

/* centrÃ© propre */
.qs-admin-edit-block {
    margin: 0;
    max-width: 100%;
}

/* suppression effet "floating box moche" */
.qs-admin-edit-block h3 {
    margin-bottom: 15px;
}

/* =====================================================
ALIGNEMENT GLOBAL DASHBOARD
===================================================== */

/* espace entre sections */
.qs-dashboard > * {
    margin-bottom: 25px;
}

/* bloc activitÃ© */
.qs-dashboard h2 {
    margin-top: 40px;
}

/* =====================================================
RESPONSIVE ADMIN PANEL
===================================================== */

@media (max-width: 1024px) {
    .qs-admin-panel {
        grid-template-columns: 1fr;
    }
}

.qs-alert {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 10px;
}

.qs-alert.success {
    background: #ecfdf5;
    color: #065f46;
}

.qs-alert.error {
    background: #fef2f2;
    color: #991b1b;
}

.qs-create-partenaire {
    background:#fff;
    padding:25px;
    border-radius:12px;
    border:1px solid #e5e7eb;
    max-width:600px;
}

.qs-create-partenaire form {
    display:flex;
    flex-direction:column;
    gap:12px;
}

.qs-checkbox-list {
    display:flex;
    flex-direction:column;
    gap:6px;
    max-height:200px;
    overflow:auto;
    padding:10px;
    border:1px solid #eee;
    border-radius:8px;
}

.qs-multiselect {
    width:100%;
    min-height:120px;
    padding:10px;
    border-radius:10px;
    border:1px solid #e5e7eb;
}

/* CARD */
.qs-card {
    background:#fff;
    border-radius:16px;
    padding:25px;
    box-shadow:0 10px 30px rgba(0,0,0,0.05);
    max-width:500px;
}

/* HEADER */
.qs-card-header h3 {
    margin:0;
    font-size:20px;
}

.qs-card-header p {
    margin:5px 0 20px;
    color:#6b7280;
    font-size:14px;
}

/* FORM */
.qs-form-group {
    margin-bottom:18px;
}

.qs-form-group label {
    display:block;
    font-size:13px;
    font-weight:600;
    margin-bottom:6px;
    color:#374151;
}

.qs-form-group input,
.qs-multiselect {
    width:100%;
    padding:10px 12px;
    border-radius:10px;
    border:1px solid #e5e7eb;
    font-size:14px;
}

/* MULTISELECT */
.qs-multiselect {
    min-height:120px;
}

/* TABLE */
.qs-table-wrapper {
    margin-top: 20px;
    overflow-x: auto;
}

.qs-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.qs-table th {
    background: #f7f8fa;
    text-align: left;
    padding: 12px;
    font-size: 13px;
    color: #666;
}

.qs-table td {
    padding: 14px;
    border-top: 1px solid #eee;
}

.qs-table tr:hover {
    background: #fafafa;
}

/* bouton */
.qs-btn-table {
    background: #111;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
}

.qs-btn-table:hover {
    background: #333;
}

.qs-btn-back{
    display:inline-block;
    margin-bottom:20px;
    padding:8px 14px;
    background:#111;
    color:#fff;
    border-radius:6px;
    text-decoration:none;
    font-size:13px;
}

.qs-btn-back:hover{
    background:#333;
}

.qs-badge-role{
    background:#e6f0ff;
    color:#1a4fff;
    font-size:12px;
    padding:4px 8px;
    border-radius:6px;
    margin-left:10px;
}

.qs-info-bar{
    margin-bottom:20px;
    font-size:14px;
    color:#666;
}

.qs-main.full{
    padding-left:40px;
}

.qs-dashboard{
    max-width:1200px;
    margin:auto;
}

.qs-grid-dashboard{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
    gap:20px;
}

.qs-service-card{
    background:#fff;
    padding:20px;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,0.05);
    text-decoration:none;
    transition:0.2s;
}

.qs-service-card:hover{
    transform:translateY(-3px);
}

.qs-dashboard.qs-manager {
    border-top: 4px solid #1e3a8a; /* bleu */
}
/* LAYOUT */
.qs-app {
    display: flex;
    min-height: 100vh;
    background: #f5f7fb;
}

.qs-main {
    flex: 1;
    padding: 40px;
}

.qs-main.full {
    max-width: 1200px;
    margin: auto;
}

/* HEADER */
.qs-header-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.qs-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qs-avatar {
    width: 50px;
    height: 50px;
    background: #111;
    color: #fff;
    border-radius: 50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:600;
}

.qs-subtitle {
    color: #777;
}

/* KPI */
.qs-kpis {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.qs-kpi {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    flex: 1;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.qs-kpi-value {
    font-size: 28px;
    font-weight: bold;
}

.qs-kpi-label {
    font-size: 14px;
    color: #777;
}

/* GRID */
.qs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* CARD */
.qs-card {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.qs-card:hover {
    transform: translateY(-3px);
}

.qs-card-top {
    display:flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.qs-card-icon {
    font-size: 20px;
}

.qs-card-footer {
    display:flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

/* TABLE */
.qs-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.qs-table th, .qs-table td {
    padding: 15px;
    text-align: left;
}

.qs-table tr {
    border-bottom: 1px solid #eee;
}

/* BUTTON */
.qs-btn-table {
    background: #111;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
}

.qs-main.full {
    max-width: 1200px;
    margin: 0 auto;
}

.qs-dashboard {
    width: 100%;
}

.qs-header-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.qs-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qs-header-left h1 {
    margin: 0 0 4px;
    font-size: 30px;
    line-height: 1.1;
}

.qs-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.qs-avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.qs-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin: 0 0 30px;
}

.qs-kpi {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.qs-kpi-value {
    display: block;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.qs-kpi-label {
    color: #6b7280;
    font-size: 13px;
}

.qs-grid-dashboard,
.qs-clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.qs-card-link {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    transition: transform .2s ease, box-shadow .2s ease;
}

.qs-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.08);
}

.qs-card-link h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

.qs-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.qs-card-icon {
    font-size: 22px;
}

.qs-card-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    color: #6b7280;
    font-size: 14px;
}

.qs-status {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 12px;
    font-weight: 600;
}

.qs-info-bar {
    margin: 0 0 22px;
    color: #6b7280;
    font-size: 14px;
}

.qs-btn-back {
    display: inline-block;
    margin-bottom: 18px;
    text-decoration: none;
    color: #111827;
    font-weight: 600;
}

.qs-service-wrapper .qs-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.qs-card-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.qs-card-panel h4 {
    margin-top: 0;
}

.qs-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.qs-modal.active {
    display: block;
}

.qs-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.qs-modal-box {
    position: relative;
    max-width: 700px;
    margin: 60px auto;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    z-index: 2;
}

.qs-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    font-size: 22px;
}

.qs-list {
    padding-left: 20px;
}

/* MODALE */
#qs-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 9999;
}

#qs-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CONTENU */
#qs-modal-content {
    background: #fff;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 30px;
}

/* SCROLL INTERNE */
#qs-modal-content::-webkit-scrollbar {
    width: 6px;
}
#qs-modal-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* ===============================
FIX BOUTON BACK
=============================== */

.qs-btn-back{
    display:inline-block;
    margin-bottom:20px;
    padding:10px 16px;
    background:#111827;
    color:#fff !important;
    border-radius:8px;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    transition:0.2s;
}

.qs-btn-back:hover{
    background:#2563eb;
    color:#fff !important;
}

/* ===============================
FIX BOUTON BACK
=============================== */

.qs-btn-back{
    display:inline-block;
    margin-bottom:20px;
    padding:10px 16px;
    background:#111827;
    color:#fff !important;
    border-radius:8px;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    transition:0.2s;
}

.qs-btn-back:hover{
    background:#2563eb;
    color:#fff !important;
}

.qs-logout:visited,
.qs-logout:focus{
    color:#fff !important;
}

/* =====================================================
DESIGN SYSTEM — BUTTONS
===================================================== */

:root{
    --qs-btn-dark-bg: #111827;
    --qs-btn-dark-bg-hover: #2563eb;
    --qs-btn-danger-bg: #e63946;
    --qs-btn-danger-bg-hover: #dc2626;
    --qs-btn-text: #ffffff;
    --qs-btn-radius: 10px;
    --qs-btn-padding-y: 10px;
    --qs-btn-padding-x: 14px;
    --qs-btn-font-size: 14px;
    --qs-btn-font-weight: 600;
    --qs-btn-transition: 0.2s ease;
}

/* Base commune */
.qs-btn-base,
.qs-btn-back,
.qs-logout,
.qs-btn-table,
.qs-btn-primary,
.qs-btn,
.qs-btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: var(--qs-btn-padding-y) var(--qs-btn-padding-x);
    border: none;
    border-radius: var(--qs-btn-radius);
    text-decoration: none;
    font-size: var(--qs-btn-font-size);
    font-weight: var(--qs-btn-font-weight);
    line-height: 1;
    cursor: pointer;
    transition: var(--qs-btn-transition);
    color: var(--qs-btn-text) !important;
}

/* Etats globaux */
.qs-btn-base:hover,
.qs-btn-back:hover,
.qs-logout:hover,
.qs-btn-table:hover,
.qs-btn-primary:hover,
.qs-btn:hover,
.qs-btn-dark:hover {
    color: var(--qs-btn-text) !important;
    text-decoration: none;
    transform: translateY(-2px);
}

.qs-btn-base:visited,
.qs-btn-back:visited,
.qs-logout:visited,
.qs-btn-table:visited,
.qs-btn-primary:visited,
.qs-btn:visited,
.qs-btn-dark:visited,
.qs-btn-base:focus,
.qs-btn-back:focus,
.qs-logout:focus,
.qs-btn-table:focus,
.qs-btn-primary:focus,
.qs-btn:focus,
.qs-btn-dark:focus {
    color: var(--qs-btn-text) !important;
    text-decoration: none;
}

/* Variante sombre */
.qs-btn-back,
.qs-btn-table,
.qs-btn-primary,
.qs-btn-dark,
.qs-logout-header {
    background: var(--qs-btn-dark-bg);
}

.qs-btn-back:hover,
.qs-btn-table:hover,
.qs-btn-primary:hover,
.qs-btn-dark:hover,
.qs-logout-header:hover {
    background: var(--qs-btn-dark-bg-hover);
}

/* Variante danger */
.qs-btn-danger,
.qs-logout-sidebar {
    background: var(--qs-btn-danger-bg);
}

.qs-btn-danger:hover,
.qs-logout-sidebar:hover {
    background: var(--qs-btn-danger-bg-hover);
}

/* Bouton retour */
.qs-btn-back {
    margin-bottom: 20px;
}

.qs-btn-back::before {
    content: "←";
    font-weight: 400;
}

/* Bouton logout générique par défaut = header */
.qs-logout {
    background: var(--qs-btn-dark-bg);
}

.qs-logout:hover {
    background: var(--qs-btn-dark-bg-hover);
}

/* Table */
.qs-btn-table {
    padding: 8px 12px;
    font-size: 13px;
}

/* Bouton primaire formulaire */
.qs-btn-primary {
    width: 100%;
    min-height: 44px;
}

/* Petits boutons */
.qs-btn-sm {
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 8px;
}

/* =====================================================
🔥 GLOBAL BUTTON SYSTEM — CLEAN FINAL OVERRIDE
===================================================== */

:root{
    --qs-btn-bg: #111827;           /* bleu marine */
    --qs-btn-bg-hover: #2563eb;     /* bleu */
    --qs-btn-text: #ffffff;
}

/* ===============================
BASE UNIFIÉE
=============================== */

.qs-btn,
.qs-btn-dark,
.qs-btn-primary,
.qs-btn-table,
.qs-btn-back,
.qs-logout,
.qs-share-form button,
.qs-admin-edit-block input[type="submit"],
.qs-admin-edit-block .acf-button {
    
    background: var(--qs-btn-bg) !important;
    color: var(--qs-btn-text) !important;

    border: none;
    border-radius: 10px;

    font-weight: 600;
    font-size: 14px;

    padding: 10px 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    cursor: pointer;

    transition: all 0.2s ease;
}

/* ===============================
HOVER GLOBAL
=============================== */

.qs-btn:hover,
.qs-btn-dark:hover,
.qs-btn-primary:hover,
.qs-btn-table:hover,
.qs-btn-back:hover,
.qs-logout:hover,
.qs-share-form button:hover,
.qs-admin-edit-block input[type="submit"]:hover,
.qs-admin-edit-block .acf-button:hover {

    background: var(--qs-btn-bg-hover) !important;
    color: #fff !important;

    transform: translateY(-2px);
}

/* ===============================
FOCUS / VISITED FIX
=============================== */

.qs-btn:focus,
.qs-btn:visited,
.qs-btn-back:focus,
.qs-btn-back:visited,
.qs-logout:focus,
.qs-logout:visited {
    color: #fff !important;
    text-decoration: none;
}

/* ===============================
LOGOUT SPÉCIFIQUE
=============================== */

.qs-logout {
    width: 100%;
    text-align: center;
}

/* ===============================
TABLE BUTTON SIZE
=============================== */

.qs-btn-table {
    padding: 6px 10px;
    font-size: 12px;
}

/* ===============================
BACK BUTTON ICON
=============================== */

.qs-btn-back::before {
    content: "←";
    margin-right: 6px;
}

/* ===============================
DISABLE OLD COLORS
=============================== */

.qs-btn-danger,
.qs-logout-sidebar {
    background: var(--qs-btn-bg) !important;
}

.qs-btn:active,
.qs-btn-primary:active {
    transform: scale(0.97);
}

/* MASQUE anciens champs ACF */
.acf-field[data-name^="lien_depot_recouvrement"],
.acf-field[data-name^="lien_docs_recouvrement"]{
    display:none !important;
}

.qs-services-actions{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:15px;
}

.qs-service-row{
    display:flex;
    gap:10px;
    margin-bottom:10px;
}

/* =========================
SERVICES BUILDER
========================= */

.qs-services-builder {
    margin-top: 20px;
}

.qs-service-row {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    position: relative;
}

/* header */
.qs-service-row select {
    width: 100%;
    margin-bottom: 10px;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px;
}

/* inputs */
.qs-service-row input {
    width: 100%;
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* bouton supprimer */
.qs-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: 0.2s;
}

.qs-remove:hover {
    background: #ff4d4d;
    color: white;
}

/* actions */
.qs-services-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.qs-btn {
    background: #eee;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.qs-btn-primary {
    background: #0b1c2c;
    color: white;
    flex: 1;
}

/* micro boutons */
.qs-mini-btn {
    display: inline-block;
    margin-top: 8px;
    margin-right: 6px;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    background: #f1f5f9;
}

.qs-service-header{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:10px;
    font-size:14px;
}

.qs-service-icon{
    font-size:16px;
}

/* ===============================
   WRAPPER GLOBAL
=============================== */
.mentions-legales {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1F2937;
    line-height: 1.7;
}

/* ===============================
   TITRES
=============================== */
.mentions-legales h2 {
    font-size: 26px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #2563EB; /* bleu Feat */
    border-left: 4px solid #2563EB;
    padding-left: 12px;
}

.mentions-legales h3 {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #1E40AF;
}

/* ===============================
   TEXTE
=============================== */
.mentions-legales p {
    margin-bottom: 15px;
    color: #374151;
}

/* ===============================
   LIENS
=============================== */
.mentions-legales a {
    color: #2563EB;
    text-decoration: none;
    font-weight: 500;
}

.mentions-legales a:hover {
    text-decoration: underline;
}

/* ===============================
   LISTES
=============================== */
.mentions-legales ul {
    margin: 20px 0;
    padding-left: 20px;
}

.mentions-legales li {
    margin-bottom: 10px;
    position: relative;
}

/* petite puce custom */
.mentions-legales li::marker {
    color: #2563EB;
}

/* ===============================
   BLOCS IMPORTANTS
=============================== */
.mentions-legales strong,
.mentions-legales b {
    color: #111827;
    font-weight: 600;
}

/* ===============================
   ENCARTS (type RGPD / infos)
=============================== */
.mentions-legales .highlight {
    background: #EFF6FF;
    border-left: 4px solid #2563EB;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
}

/* ===============================
   HR (séparateurs)
=============================== */
.mentions-legales hr {
    border: none;
    border-top: 1px solid #E5E7EB;
    margin: 40px 0;
}

/* ===============================
   RESPONSIVE
=============================== */
@media (max-width: 768px) {

    .mentions-legales {
        padding: 20px;
        margin: 30px 15px;
    }

    .mentions-legales h2 {
        font-size: 22px;
    }

    .mentions-legales h3 {
        font-size: 18px;
    }
}

.feat-footer-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.feat-footer-text {
    max-width: 320px;
    font-size: 14px;
    line-height: 1.8;
    color: #A7B0C0;
}
@media (max-width: 768px) {

    .feat-footer-logo-img {
        width: 220px;
    }

    .feat-footer-brand-inner {
        align-items: center;
        text-align: center;
    }

    .feat-footer-text {
        max-width: 100%;
    }
}
.feat-footer-logo-img {
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.qs-message-form {
    margin-top: 20px;
}

.qs-message-form textarea,
.qs-message-form input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.qs-success {
    background: #DCFCE7;
    color: #166534;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.qs-thread {
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-bottom:20px;
}

.qs-message {
    padding:12px;
    border-radius:10px;
    max-width:80%;
}

.qs-message.client {
    background:#eef2ff;
    align-self:flex-start;
}

.qs-message.manager {
    background:#1e3a8a;
    color:#fff;
    align-self:flex-end;
}

.qs-message-header {
    font-size:12px;
    opacity:0.7;
    display:flex;
    justify-content:space-between;
}

/* LAYOUT GLOBAL */
.qs-service-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: start;
}

/* COLONNE GAUCHE */
.qs-service-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* COLONNE DROITE */
.qs-service-main {
    display: flex;
    flex-direction: column;
}

/* CHAT PANEL */
.qs-chat-panel {
    display: flex;
    flex-direction: column;
    height: 600px;
}

/* THREAD SCROLLABLE */
.qs-thread {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

/* FORM FIXE EN BAS */
.qs-message-form {
    margin-top: 15px;
}

/* RESPONSIVE */
@media(max-width: 900px){
    .qs-service-layout {
        grid-template-columns: 1fr;
    }

    .qs-chat-panel {
        height: auto;
    }
}
.qs-thread {
    max-height: 450px;
}

.qs-inbox {
    display: grid;
    grid-template-columns: 300px 1fr;
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

/* LISTE CLIENTS */
.qs-inbox-list {
    background: #0f172a;
    color: white;
    overflow-y: auto;
}

.qs-inbox-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-decoration: none;
    color: white;
}

.qs-inbox-item:hover {
    background: rgba(255,255,255,0.05);
}

/* CONTENT */
.qs-inbox-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* THREAD */
.qs-thread {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

/* BADGE */
.qs-badge {
    background: #ef4444;
    color: white;
    font-size: 11px;
    padding: 4px 7px;
    border-radius: 999px;
}

.qs-btn-danger {
    background: #dc2626;
    color: #fff;
    border-radius: 6px;
    padding: 8px 12px;
    border: none;
    cursor: pointer;
}

.qs-btn-danger:hover {
    background: #b91c1c;
}

/* débloquer scroll page */
html,
body{
overflow-y:auto !important;
height:auto !important;
}

/* ne pas figer le wrapper */
.qs-app,
.qs-main,
.qs-dashboard{
height:auto !important;
overflow:visible !important;
min-height:auto !important;
}


/* chat */
.qs-chat-panel{
display:flex;
flex-direction:column;
gap:20px;
height:auto !important;
}

/* fil discussion scrollable propre */
.qs-thread{

max-height:420px;
overflow-y:auto;

padding-right:8px;

display:flex;
flex-direction:column;
gap:14px;
}

/* formulaire toujours visible */
.qs-message-form{
margin-top:auto;
position:sticky;
bottom:0;
background:#fff;
padding-top:12px;
}

.qs-notif-item{
display:block;
text-decoration:none;
color:inherit;
background:#fff;
padding:16px;
border-radius:12px;
transition:.2s;
}

.qs-notif-item:hover{
transform:translateY(-2px);
box-shadow:0 4px 12px rgba(0,0,0,.08);
}

.qs-kpi-value a{
text-decoration:none;
color:inherit;
display:block;
}

.qs-kpi:hover{
transform:translateY(-2px);
cursor:pointer;
}

.qs-notif-item.is-unread{
border-left:4px solid #1e3a8a;
background:#eef4ff;
font-weight:600;
}

.qs-notif-item.is-read{
opacity:.65;
}

.qs-tabs{
    display:flex;
    gap:10px;
    margin:30px 0 20px;
    flex-wrap:wrap;
}

.qs-tab{
    padding:12px 18px;
    border-radius:999px;
    background:#f3f4f6;
    color:#1f2937;
    text-decoration:none;
    font-weight:600;
}

.qs-tab.active{
    background:#1e3a8a;
    color:#fff;
}

.qs-tab-content{
    background:#fff;
    border-radius:18px;
    padding:28px;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.qs-card{
    background:#fff;
    border-radius:18px;
    padding:24px;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
    margin-bottom:24px;
}

.qs-card-header{
    display:flex;
    gap:16px;
    align-items:center;
    margin-bottom:15px;
}

.qs-card-icon{
    width:56px;
    height:56px;
    border-radius:14px;
    background:#EEF2FF;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
}

.qs-card-description{
    color:#6b7280;
    margin:15px 0;
}

.qs-card-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.qs-btn-secondary{
    padding:10px 18px;
    border-radius:10px;
    background:#F3F4F6;
    text-decoration:none;
    color:#111827;
    font-weight:600;
}

.qs-badge{
    display:inline-block;
    margin-top:6px;
    padding:5px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
}

.qs-success{
    background:#DCFCE7;
    color:#166534;
}

.qs-warning{
    background:#FEF3C7;
    color:#92400E;
}

.qs-danger{
    background:#FEE2E2;
    color:#991B1B;
}

.qs-info{
    background:#DBEAFE;
    color:#1D4ED8;
}

.qs-documents-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:20px;
    margin-top:22px;
}

@media(max-width:900px){
    .qs-documents-grid{
        grid-template-columns:1fr;
    }
}

.qs-progress{

    height:14px;

    background:#E8E3D7;

    border-radius:30px;

    overflow:hidden;

    margin:20px 0 8px;

}

.qs-progress-bar{

    height:100%;

    background:linear-gradient(90deg,#6F8A4A,#90B45A);

    transition:.4s;

}

.qs-progress-label{

    font-size:14px;

    font-weight:600;

    color:#6B4025;

}

.qs-workflow-list{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top:20px;
}

.qs-workflow-step{
    display:flex;
    align-items:center;
    gap:12px;
    background:#fff;
    border-radius:14px;
    padding:16px 18px;
    box-shadow:0 8px 24px rgba(0,0,0,.05);
    font-weight:600;
}

.qs-workflow-step.is-done{
    border-left:5px solid #6F8A4A;
}

.qs-workflow-step.is-pending{
    opacity:.55;
}

.qs-workflow-check{
    width:28px;
    height:28px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#EEF2FF;
}

.qs-client-progress{

margin:30px 0;

}

/* =====================================
   BOUTONS SECONDAIRES DES CARTES
===================================== */

.qs-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.qs-card-actions .qs-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    min-height: 40px;

    padding: 10px 16px;

    background: #0B6EDC;
    color: #FFFFFF !important;

    border: 1px solid #0B6EDC;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;

    text-decoration: none !important;

    cursor: pointer;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.qs-card-actions .qs-btn-secondary:hover {
    background: #095AB5;
    color: #FFFFFF !important;
    border-color: #095AB5;

    transform: translateY(-1px);

    box-shadow: 0 6px 16px rgba(11, 110, 220, .20);
}

.qs-card-actions .qs-btn-secondary:focus-visible {
    outline: 3px solid rgba(11, 110, 220, .30);
    outline-offset: 3px;
}

.qs-card-actions {
    justify-content: center;
}

.qs-card-actions a:empty {
    display: none !important;
}

.qs-btn-secondary:empty,
.qs-card-actions a:empty {
    display: none !important;
}
