/* ============================================================
   WIZARD — Formulaire de souscription en ligne
   ============================================================ */

/* ---- Conteneur principal ---- */
.wizard-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

/* ---- Barre de progression ---- */
.wizard-progress {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 0 0 40px;
    position: relative;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 30px;
    right: 30px;
    height: 2px;
    background: #e0e9f0;
    z-index: 0;
}

.wizard-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
    gap: 8px;
}

.wizard-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e9f0;
    color: #aab;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.wizard-step-item.active .wizard-step-number {
    background: #3ab8e0;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(58, 184, 224, 0.2);
}

.wizard-step-item.done .wizard-step-number {
    background: #1a2f4d;
    color: #fff;
}

.wizard-step-label {
    font-size: 11px;
    color: #aab;
    text-align: center;
    font-weight: 500;
    line-height: 1.3;
    transition: color 0.3s;
}

.wizard-step-item.active .wizard-step-label {
    color: #3ab8e0;
    font-weight: 700;
}

.wizard-step-item.done .wizard-step-label {
    color: #1a2f4d;
}

/* ---- Panels (étapes) ---- */
.wizard-panel {
    display: none;
    animation: panelIn 0.3s ease;
}

.wizard-panel.active {
    display: block;
}

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

/* ---- En-tête de panel ---- */
.wizard-panel-header {
    margin-bottom: 32px;
}

.wizard-panel-header h2 {
    color: #1a2f4d;
    font-size: 22px;
    margin: 0 0 8px;
}

.wizard-panel-header p {
    color: #666;
    margin: 0;
    font-size: 15px;
}

/* ---- Sélection du type de véhicule ---- */
#type-vehicule-selection {
    margin-bottom: 36px;
}

.tvc-label-haut {
    font-size: 15px;
    font-weight: 700;
    color: #1a2f4d;
    margin-bottom: 16px;
}

.type-vehicule-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.type-vehicule-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 20px;
    border: 2px solid #d0dce8;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    text-align: center;
}

.type-vehicule-card:hover {
    border-color: #3ab8e0;
    box-shadow: 0 4px 14px rgba(58, 184, 224, 0.18);
}

.type-vehicule-card.selected {
    border-color: #1a2f4d;
    background: #f0f6ff;
    box-shadow: 0 4px 16px rgba(26, 47, 77, 0.15);
}

.tvc-icon {
    font-size: 40px;
    line-height: 1;
}

.tvc-nom {
    font-size: 17px;
    font-weight: 700;
    color: #1a2f4d;
}

.tvc-detail {
    font-size: 13px;
    color: #888;
}

.type-vehicule-card.selected .tvc-detail {
    color: #3ab8e0;
    font-weight: 600;
}

/* Séparateur visuel avant les questions */
#questions-zone {
    border-top: 2px solid #e0e9f0;
    padding-top: 28px;
    margin-top: 4px;
}

@media (max-width: 480px) {
    .type-vehicule-cards {
        grid-template-columns: 1fr;
    }

    .tvc-icon { font-size: 32px; }
    .tvc-nom  { font-size: 16px; }
}

/* ---- Liste de pays (Q14) — au-dessus des boutons ---- */
.pays-liste-box {
    background: #f0f8ff;
    border: 1px solid #b3d9f0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.pays-liste-label {
    font-size: 12px;
    font-weight: 700;
    color: #1a2f4d;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 10px;
}

.pays-liste-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pays-tag {
    display: inline-block;
    background: #fff;
    border: 1px solid #9ecce8;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 13px;
    color: #1a2f4d;
}

/* ---- Bouton retour question précédente ---- */
.question-retour {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eef2f6;
}

.btn-question-retour {
    background: none;
    border: none;
    padding: 4px 0;
    font-family: inherit;
    font-size: 13px;
    color: #aab;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.btn-question-retour:hover {
    color: #1a2f4d;
}

/* ---- Sous-question Q13 — véhicule de location ---- */
.sous-question-area {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #cde;
    animation: panelIn 0.25s ease;
}

.sous-question-loueurs {
    background: #fff8f0;
    border: 1px solid #ffd699;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 18px;
}

.sous-question-loueurs-label {
    font-size: 12px;
    font-weight: 700;
    color: #7a4500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 10px;
}

.sous-question-loueurs-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.loueur-tag {
    display: inline-block;
    background: #fff;
    border: 1px solid #ffb84d;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 13px;
    color: #7a4500;
    font-weight: 500;
}

.sous-question-texte {
    font-size: 16px;
    font-weight: 600;
    color: #1a2f4d;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* ---- Étape 1 : questions d'éligibilité ---- */
.eligibility-question {
    display: none;
}

.eligibility-question.active {
    display: block;
    animation: panelIn 0.3s ease;
}

.question-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e9f0;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(26, 47, 77, 0.07);
}

.question-counter {
    font-size: 12px;
    color: #3ab8e0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.question-text {
    font-size: 18px;
    font-weight: 600;
    color: #1a2f4d;
    margin-bottom: 24px;
    line-height: 1.45;
}

.question-choices {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-choice {
    padding: 11px 28px;
    border-radius: 50px;
    border: 2px solid #d0dce8;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: #1a2f4d;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-choice:hover {
    border-color: #3ab8e0;
    background: #eaf7fc;
}

/* indicateurs de questions (pastilles) */
.question-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.q-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #e0e9f0;
    transition: background 0.3s;
}

.q-dot.done  { background: #1a2f4d; }
.q-dot.active { background: #3ab8e0; }

/* ---- Message de refus ---- */
.wizard-refusal {
    background: #fff5f5;
    border: 1px solid #ffcdd2;
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
}

.wizard-refusal-icon {
    font-size: 52px;
    margin-bottom: 16px;
}

.wizard-refusal h3 {
    color: #c62828;
    font-size: 22px;
    margin: 0 0 14px;
}

.wizard-refusal p {
    color: #555;
    margin: 0 0 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
}

/* ---- Formulaires (étapes 2-4) ---- */
.wizard-form-section {
    margin-bottom: 36px;
}

.wizard-form-section h3 {
    color: #1a2f4d;
    font-size: 15px;
    font-weight: 700;
    border-bottom: 2px solid #3ab8e0;
    padding-bottom: 8px;
    margin: 0 0 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row.full  { grid-template-columns: 1fr; }
.form-row.third { grid-template-columns: 1fr 1fr 1fr; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #1a2f4d;
}

.form-group label .req {
    color: #e53935;
    margin-left: 2px;
}

.form-group input,
.form-group select {
    padding: 10px 14px;
    border: 1.5px solid #d0dce8;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3ab8e0;
    box-shadow: 0 0 0 3px rgba(58, 184, 224, 0.15);
}

.form-group input[readonly] {
    background: #f5f8fb;
    color: #666;
    cursor: default;
}

.field-note {
    font-size: 11px;
    color: #888;
}

.field-error {
    font-size: 12px;
    color: #e53935;
    display: none;
}

.form-group.has-error .field-error  { display: block; }
.form-group.has-error input,
.form-group.has-error select { border-color: #e53935; }

/* Boutons toggle (VP / VUL) */
.btn-toggle-group {
    display: flex;
    gap: 8px;
}

.btn-toggle {
    padding: 10px 22px;
    border: 1.5px solid #d0dce8;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-toggle:hover { border-color: #3ab8e0; color: #1a2f4d; }
.btn-toggle.active { background: #1a2f4d; border-color: #1a2f4d; color: #fff; }

.hidden-field { display: none; }

/* Alertes inline */
.field-alert {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #856404;
    margin-top: 6px;
    display: none;
}

.field-alert.visible { display: block; }

/* ---- Étape 4 : tarification dynamique ---- */

/* Chargement */
.tarifs-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px;
    color: #1a2f4d;
    font-size: 15px;
}
.tarifs-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #d0e8f5;
    border-top-color: #3ab8e0;
    border-radius: 50%;
    animation: tarifs-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes tarifs-spin { to { transform: rotate(360deg); } }

/* Erreur */
.tarifs-error {
    background: #fff5f5;
    border: 1px solid #ffcdd2;
    border-radius: 10px;
    padding: 18px 20px;
    color: #c0392b;
    font-size: 14px;
}
.tarifs-error p { margin: 0 0 10px; }
.btn-tarifs-retry {
    background: #c0392b;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 16px;
    font-size: 13px;
    cursor: pointer;
}
.btn-tarifs-retry:hover { background: #a93226; }

/* Indisponible (pas d'API) */
.tarifs-unavailable {
    background: #f0f8ff;
    border: 1px solid #bee3f8;
    border-radius: 10px;
    padding: 18px 20px;
    color: #1a2f4d;
    font-size: 14px;
}
.tarifs-unavailable p { margin: 0; }

/* Grille de cartes durée/tarif */
.tarifs-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 4px;
}

.tarif-card {
    background: #fff;
    border: 2px solid #d0e8f5;
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    user-select: none;
}
.tarif-card:hover {
    border-color: #3ab8e0;
    box-shadow: 0 4px 14px rgba(58,184,224,0.18);
    transform: translateY(-2px);
}
.tarif-card.selected {
    border-color: #1a2f4d;
    background: #f0f8ff;
    box-shadow: 0 4px 18px rgba(26,47,77,0.15);
}
.tarif-card .card-duration {
    font-size: 22px;
    font-weight: 800;
    color: #1a2f4d;
    line-height: 1.1;
}
.tarif-card .card-duration-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: block;
}
.tarif-card .card-price {
    font-size: 20px;
    font-weight: 700;
    color: #3ab8e0;
}
.tarif-card.selected .card-price { color: #1a2f4d; }
.tarif-card .card-price-label {
    font-size: 11px;
    color: #aaa;
    margin-top: 2px;
}
.tarif-card .card-check {
    display: none;
    font-size: 18px;
    color: #1a2f4d;
    margin-top: 6px;
}
.tarif-card.selected .card-check { display: block; }

/* ---- Étape 5 : récapitulatif ---- */
.summary-section {
    background: #f5f8fb;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 18px;
}

.summary-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.summary-section-header h3 {
    color: #1a2f4d;
    margin: 0;
    font-size: 15px;
}

.btn-edit {
    font-size: 12px;
    color: #3ab8e0;
    background: none;
    border: 1px solid #3ab8e0;
    padding: 4px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-edit:hover { background: #3ab8e0; color: #fff; }

.summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.summary-table tr + tr td { border-top: 1px solid #e4eaf0; }

.summary-table td {
    padding: 6px 8px;
    vertical-align: top;
}

.summary-table td:first-child {
    width: 46%;
    font-weight: 600;
    color: #1a2f4d;
}

.summary-table td:last-child { color: #444; }

/* Déclarations */
.declaration-box {
    background: #fff;
    border: 1px solid #e0e9f0;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 18px;
}

.declaration-box h3 {
    color: #1a2f4d;
    font-size: 15px;
    margin: 0 0 16px;
}

.declaration-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.declaration-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #eef2f6;
}

.declaration-item:last-child { border-bottom: none; }

.declaration-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 1px;
    cursor: pointer;
    accent-color: #1a2f4d;
}

.declaration-item label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    line-height: 1.5;
}

/* Liste de documents */
.documents-box {
    background: #f9fcfe;
    border: 1px solid #d0e8f5;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.documents-box h3 {
    color: #1a2f4d;
    font-size: 15px;
    margin: 0 0 14px;
}

.documents-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.documents-list li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e0edf6;
    font-size: 14px;
}

.documents-list li:last-child { border-bottom: none; }
.doc-name { font-weight: 600; color: #1a2f4d; min-width: 200px; }
.doc-format { color: #888; font-size: 13px; }

/* ---- Navigation ---- */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e0e9f0;
}

.btn-wizard-prev {
    padding: 11px 28px;
    border-radius: 50px;
    border: 2px solid #d0dce8;
    background: #fff;
    color: #1a2f4d;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-wizard-prev:hover { border-color: #1a2f4d; }

.btn-wizard-next {
    padding: 12px 36px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #1a2f4d 0%, #3ab8e0 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(58, 184, 224, 0.3);
}

.btn-wizard-next:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(58, 184, 224, 0.4);
}

.btn-wizard-next:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.btn-wizard-submit {
    padding: 14px 44px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #1a2f4d 0%, #3ab8e0 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(58, 184, 224, 0.35);
}

.btn-wizard-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(58, 184, 224, 0.45);
}

.btn-wizard-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* ---- Confirmation ---- */
.wizard-confirmation {
    text-align: center;
    padding: 60px 20px;
}

.wizard-confirmation-icon { font-size: 64px; margin-bottom: 24px; }

.wizard-confirmation h2 {
    color: #1a2f4d;
    font-size: 26px;
    margin: 0 0 16px;
}

.wizard-confirmation p {
    color: #555;
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 14px;
    line-height: 1.6;
}

.wizard-confirmation .btn-wizard-next {
    margin-top: 16px;
    display: inline-block;
    text-decoration: none;
}

/* ---- Confirmation + upload documents ---- */
.wizard-confirmation--docs {
    text-align: left;
    padding: 40px 20px;
    max-width: 680px;
    margin: 0 auto;
}

.confirm-header {
    text-align: center;
    margin-bottom: 36px;
}
.confirm-header .wizard-confirmation-icon { font-size: 52px; margin-bottom: 16px; }
.confirm-header h2 { color: #1a2f4d; font-size: 24px; margin: 0 0 10px; }
.confirm-header p  { color: #555; font-size: 15px; max-width: 480px; margin: 0 auto; }

.docs-upload-wrapper {
    background: #f5f8fb;
    border-radius: 14px;
    padding: 28px;
}
.docs-upload-header { margin-bottom: 20px; }
.docs-upload-header h3 { margin: 0 0 4px; color: #1a2f4d; font-size: 17px; }
.docs-upload-subtitle  { margin: 0; color: #888; font-size: 14px; }

/* États de chargement */
.docs-state {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    color: #555;
    font-size: .95rem;
}
.docs-state--error { color: #c0392b; }
.docs-spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2px solid #d0e8f5;
    border-top-color: #3ab8e0;
    border-radius: 50%;
    animation: spin-docs .7s linear infinite;
    flex-shrink: 0;
}
@keyframes spin-docs { to { transform: rotate(360deg); } }
.btn-docs-retry {
    margin-left: 8px;
    background: #c0392b; color: #fff;
    border: none; border-radius: 6px;
    padding: 5px 12px; font-size: 13px; cursor: pointer;
}

/* Liste des documents */
#docs-list { display: flex; flex-direction: column; gap: 10px; }
.docs-empty { color: #888; font-size: 14px; margin: 0; }

.doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #fff;
    border: 2px solid #e0eaf3;
    border-radius: 10px;
    padding: 14px 16px;
    transition: border-color .2s;
}
.doc-item--done    { border-color: #a5d6a7; background: #f1f9f1; }
.doc-item--uploading { border-color: #90caf9; }
.doc-item--error   { border-color: #ef9a9a; background: #fff5f5; }

.doc-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.doc-item-icon {
    font-size: 22px;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
    color: #1a2f4d;
}
.doc-item--done  .doc-item-icon { color: #2e7d32; }
.doc-item--error .doc-item-icon { color: #c0392b; }

.doc-item-label  { font-weight: 600; color: #1a2f4d; font-size: .95rem; }
.doc-item-status { font-size: .8rem; color: #888; margin-top: 2px; }
.doc-item--done  .doc-item-status { color: #2e7d32; }
.doc-item--error .doc-item-status { color: #c0392b; }

.btn-doc-upload {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1a2f4d;
    color: #fff;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .2s;
}
.btn-doc-upload:hover { background: #3ab8e0; }

/* Actions globales */
.docs-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #dde8f0;
}
.docs-skip-link {
    color: #888;
    font-size: .88rem;
    text-decoration: underline;
    cursor: pointer;
}
.docs-skip-link:hover { color: #555; }

@media (max-width: 560px) {
    .doc-item { flex-wrap: wrap; }
    .btn-doc-upload { width: 100%; justify-content: center; margin-top: 4px; }
}

/* ---- Erreur serveur ---- */
.wizard-server-error {
    background: #fff5f5;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    padding: 14px 18px;
    color: #c62828;
    font-size: 14px;
    margin-bottom: 24px;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .form-row       { grid-template-columns: 1fr; }
    .form-row.third { grid-template-columns: 1fr; }

    .wizard-step-label { display: none; }
    .question-card { padding: 20px 16px; }
    .question-text { font-size: 16px; }

    .wizard-nav {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .btn-wizard-prev,
    .btn-wizard-next,
    .btn-wizard-submit {
        width: 100%;
        text-align: center;
    }

    .summary-section,
    .declaration-box,
    .documents-box {
        padding: 16px;
    }

    .doc-name { min-width: unset; }
}

/* ============================================================
   SRA — Référentiel marques / modèles / versions
   ============================================================ */

/* Section filtres */
.sra-filters-section {
    background: #f4f8fb;
    border: 1px solid #d0e3ef;
    border-radius: 10px;
    padding: 20px 24px 16px;
    margin: 0 0 20px;
}

.sra-filters-hint {
    margin: 0 0 16px;
    font-size: 14px;
    color: #4a6680;
    font-weight: 600;
}

.sra-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px 24px;
    margin-bottom: 18px;
}

.sra-filter-group { }

.sra-filter-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a2f4d;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.sra-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sra-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #2c3e50;
    cursor: pointer;
}

.sra-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3ab8e0;
    cursor: pointer;
    flex-shrink: 0;
}

.sra-power-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #c5d8e8;
    border-radius: 6px;
    font-size: 14px;
    color: #2c3e50;
    background: #fff;
    cursor: pointer;
}

/* Compteur de versions */
.sra-version-count {
    font-size: 12px;
    font-weight: 400;
    color: #3ab8e0;
    margin-left: 6px;
}

/* Lien "je ne trouve pas" */
.sra-not-found-hint {
    margin: 8px 0 0;
    font-size: 13px;
}

.sra-not-found-hint a {
    color: #3ab8e0;
    text-decoration: underline;
}

.sra-not-found-hint a:hover { color: #1a2f4d; }

/* Note mode manuel */
#sra-manual-note {
    color: #e57c00;
    font-size: 13px;
}

@media (max-width: 600px) {
    .sra-filters-grid { grid-template-columns: 1fr; }
}
