.dqas-candidature-form {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.dqas-candidature-form .dqas-field {
    margin-bottom: 16px;
}
.dqas-candidature-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}
.dqas-candidature-form input[type="text"],
.dqas-candidature-form input[type="email"],
.dqas-candidature-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
}
.dqas-candidature-form input:focus,
.dqas-candidature-form select:focus {
    outline: none;
    border-color: #1F4E79;
    box-shadow: 0 0 0 2px rgba(31,78,121,.15);
}
.dqas-btn {
    display: inline-block;
    background: #1F4E79;
    color: #fff !important;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}
.dqas-btn:hover {
    background: #163a5c;
}
.dqas-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}
.dqas-alert-success {
    background: #e6f4ea;
    color: #137333;
    border: 1px solid #ceead6;
}
.dqas-alert-error {
    background: #fce8e6;
    color: #c5221f;
    border: 1px solid #f5c6cb;
}

/* ===== CHAT WIDGET ===== */
.dqas-widget-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1F4E79;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(31,78,121,.35);
    z-index: 99999;
    transition: transform .15s;
}
.dqas-widget-btn:hover { transform: scale(1.08); }

.dqas-widget-box {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 340px;
    height: 460px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.dqas-widget-header {
    background: #1F4E79;
    color: #fff;
    padding: 14px 16px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dqas-widget-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}
.dqas-widget-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.dqas-widget-fields {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}
.dqas-widget-fields input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 12px;
}
.dqas-widget-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #f5f6f7;
}
.dqas-wmsg {
    margin-bottom: 8px;
    display: flex;
}
.dqas-wmsg-visitor { justify-content: flex-end; }
.dqas-wmsg-agent { justify-content: flex-start; }
.dqas-wmsg-bubble {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
}
.dqas-wmsg-visitor .dqas-wmsg-bubble {
    background: #1F4E79;
    color: #fff;
    border-bottom-right-radius: 3px;
}
.dqas-wmsg-agent .dqas-wmsg-bubble {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 3px;
}
.dqas-widget-input-row {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    border-top: 1px solid #eee;
}
.dqas-widget-input-row input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 9px 14px;
    font-size: 13px;
}
.dqas-widget-input-row button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #1F4E79;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

/* ===== ESPACE COMMERCIAL ===== */
.dqas-espace { max-width: 720px; margin: 0 auto; }
.dqas-espace h2 { margin-bottom: 20px; color: #1F4E79; }
.dqas-espace-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    border: 1px solid #eee;
}
.dqas-espace-card h3 {
    margin: 0 0 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dqas-badge {
    background: #1F4E79;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}
.dqas-progress-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}
.dqas-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1F4E79, #2e7d32);
    border-radius: 6px;
    transition: width .3s;
}
.dqas-hint { font-size: 13px; color: #888; margin: 0 0 12px; }
.dqas-hint.dqas-ok { color: #2e7d32; font-weight: 600; }
.dqas-modules { list-style: none; padding: 0; margin: 0; }
.dqas-modules li {
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 8px;
}
.dqas-modules li.done { background: #e8f5e9; border-color: #c8e6c9; }
.dqas-modules li.locked { opacity: 0.55; }
.dqas-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 8px;
    background: #e8f5e9;
    color: #2e7d32;
    margin-left: 8px;
}
.dqas-tag.locked { background: #f5f5f5; color: #999; }
.dqas-btn-sm {
    background: #1F4E79;
    color: #fff !important;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 6px;
}
.dqas-add-vendeur {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.dqas-add-vendeur input {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    flex: 1;
    min-width: 100px;
}
.dqas-vendeurs-list { padding-left: 18px; margin: 0; }
.dqas-vendeurs-list li { margin-bottom: 4px; font-size: 14px; }
.dqas-comm-totals {
    display: flex;
    gap: 20px;
    margin-bottom: 14px;
}
.dqas-comm-label { display: block; font-size: 12px; color: #888; }
.dqas-comm-val { font-size: 20px; font-weight: 700; color: #1F4E79; }
.dqas-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dqas-table th, .dqas-table td { padding: 8px; text-align: left; border-bottom: 1px solid #eee; }
.dqas-table th { font-weight: 600; color: #555; }

.dqas-quiz-form { margin-top: 12px; padding: 12px; background: #f8f9fa; border-radius: 8px; }
.dqas-quiz-q { margin-bottom: 12px; }
.dqas-module-content { font-size: 13px; color: #444; margin: 8px 0; }
