/* ═══════════════════════════════════════════════════════════
   SALAÜN WIZARD — SA PRESTIGE DARK THEME
   ═══════════════════════════════════════════════════════════ */

.sw-wizard {
    max-width: 860px;
    margin: 0 auto;
    font-family: 'Outfit', sans-serif;
    color: #f0ebe3;
}

/* ── Progress bar ── */
.sw-progress {
    margin-bottom: 3rem;
}

.sw-progress-bar {
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.sw-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c9a962, #e8d5a3);
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sw-steps {
    display: flex;
    justify-content: space-between;
}

.sw-step {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    opacity: 0.35;
    transition: opacity 0.4s ease;
}

.sw-step-active {
    opacity: 1;
}

.sw-step-done {
    opacity: 0.65;
}

.sw-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.4s ease;
}

.sw-step-active .sw-step-number {
    background: linear-gradient(135deg, #c9a962, #b8944a);
    border-color: #c9a962;
    color: #0d0d0d;
    font-weight: 600;
}

.sw-step-done .sw-step-number {
    background: rgba(201,169,98,0.15);
    border-color: #c9a962;
    color: #c9a962;
}

.sw-step-done .sw-step-number::after {
    content: '✓';
    font-size: 0.85rem;
}

.sw-step-done .sw-step-number {
    font-size: 0;
}

.sw-step-label {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Panels ── */
.sw-panel {
    display: none;
}

.sw-panel-active {
    display: block;
    animation: swFadeIn 0.4s ease;
}

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

/* ── Titles ── */
.sw-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #f0ebe3;
}

.sw-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 500;
    margin: 2.5rem 0 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #c9a962;
}

/* ── Cards (profil + type d'assurance) ── */
.sw-cards {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.sw-cards-2 {
    max-width: 500px;
    margin: 0 auto;
}

.sw-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.sw-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
}

.sw-card:hover {
    border-color: rgba(201,169,98,0.4);
    background: rgba(201,169,98,0.04);
    transform: translateY(-2px);
}

.sw-card-selected {
    border-color: #c9a962 !important;
    background: rgba(201,169,98,0.08) !important;
    box-shadow: 0 0 0 1px #c9a962;
}

.sw-card-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.sw-card-label {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ── Form elements ── */
.sw-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sw-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sw-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.sw-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.sw-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.sw-label {
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(240,235,227,0.7);
    letter-spacing: 0.02em;
}

.sw-required {
    color: #c9a962;
}

.sw-input {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: #f0ebe3;
    padding: 0.75rem 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    border-radius: 0;
    transition: border-color 0.3s ease, background 0.3s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.sw-input:focus {
    border-color: #c9a962;
    background: rgba(201,169,98,0.04);
}

.sw-input::placeholder {
    color: rgba(240,235,227,0.3);
}

.sw-input option {
    background: #1a1a1a;
    color: #f0ebe3;
}

select.sw-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c9a962' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

select.sw-input:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.sw-textarea {
    resize: vertical;
    min-height: 80px;
}

.sw-input-error {
    border-color: #e74c3c !important;
    background: rgba(231,76,60,0.06) !important;
}

.sw-field-error {
    outline: 1px solid #e74c3c;
    outline-offset: 4px;
    border-radius: 2px;
}

/* ── Radio & Checkbox ── */
.sw-radio-group {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.sw-radio,
.sw-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.sw-radio input[type="radio"],
.sw-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sw-radio input[type="radio"] {
    border-radius: 50%;
}

.sw-checkbox input[type="checkbox"] {
    border-radius: 0;
}

.sw-radio input[type="radio"]:checked {
    border-color: #c9a962;
    background: #c9a962;
    box-shadow: inset 0 0 0 3px #0d0d0d;
}

.sw-checkbox input[type="checkbox"]:checked {
    border-color: #c9a962;
    background: #c9a962;
    position: relative;
}

.sw-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0d0d0d;
    font-size: 0.7rem;
    font-weight: 700;
}

.sw-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
}

.sw-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: rgba(240,235,227,0.7);
    line-height: 1.5;
}

.sw-checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.sw-checkbox-label input[type="checkbox"]:checked {
    border-color: #c9a962;
    background: #c9a962;
}

/* ── Conditional blocks ── */
.sw-conditional-block {
    padding: 1.2rem;
    margin: 0.5rem 0 1rem;
    background: rgba(255,255,255,0.02);
    border-left: 2px solid rgba(201,169,98,0.3);
}

/* ── Sinistres ── */
.sw-sinistre-block {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.sw-sinistre-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #c9a962;
}

/* ── Bonus display ── */
#sw-bonus-row {
    background: rgba(201,169,98,0.06);
    border: 1px solid rgba(201,169,98,0.2);
    padding: 1.2rem 1.5rem;
    margin: 1rem 0;
    text-align: center;
}

#sw-bonus-row strong {
    color: #c9a962;
    font-size: 1.3rem;
}

/* ── Navigation ── */
.sw-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.sw-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.9rem 2rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.sw-btn-next {
    background: linear-gradient(135deg, #c9a962, #b8944a);
    color: #0d0d0d;
    padding: 0.9rem 2.5rem;
}

.sw-btn-next:hover {
    background: linear-gradient(135deg, #d4b46e, #c9a962);
    transform: translateY(-1px);
}

.sw-btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.sw-btn-back {
    background: transparent;
    color: rgba(240,235,227,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.9rem 2rem;
}

.sw-btn-back:hover {
    color: #f0ebe3;
    border-color: rgba(255,255,255,0.25);
}

.sw-btn-primary {
    background: linear-gradient(135deg, #c9a962, #b8944a);
    color: #0d0d0d;
    padding: 0.9rem 2.5rem;
    text-decoration: none;
    display: inline-block;
}

.sw-btn-primary:hover {
    background: linear-gradient(135deg, #d4b46e, #c9a962);
}

/* ── Error ── */
.sw-error {
    background: rgba(231,76,60,0.1);
    border: 1px solid rgba(231,76,60,0.3);
    color: #e74c3c;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    animation: swFadeIn 0.3s ease;
}

/* ── Success ── */
.sw-success {
    text-align: center;
    padding: 4rem 2rem;
}

.sw-success-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.sw-success-text {
    font-size: 1.05rem;
    color: rgba(240,235,227,0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.sw-success-ref {
    font-size: 0.85rem;
    color: rgba(240,235,227,0.5);
}

.sw-success-ref strong {
    color: #c9a962;
}

/* ── Refus ── */
.sw-refus {
    text-align: center;
    padding: 4rem 2rem;
}

.sw-refus-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.sw-refus-text {
    color: rgba(240,235,227,0.7);
    margin-bottom: 0.5rem;
}

.sw-refus-info {
    color: rgba(240,235,227,0.5);
    margin-bottom: 2rem;
}

.sw-refus-info strong {
    color: #c9a962;
}

/* ── Manual vehicle toggle ── */
#sw-toggle-manual {
    background: none;
    border: none;
    color: #c9a962;
    cursor: pointer;
    font-size: 0.82rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 0.3rem 0;
    font-family: 'Outfit', sans-serif;
}

#sw-toggle-manual:hover {
    color: #e8d5a3;
}

#sw-manual-vehicle {
    gap: 1rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .sw-wizard {
        padding: 0 0.5rem;
    }

    .sw-title {
        font-size: 1.5rem;
    }

    .sw-row-2,
    .sw-row-3 {
        grid-template-columns: 1fr;
    }

    .sw-cards {
        flex-direction: column;
    }

    .sw-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sw-card {
        padding: 1.5rem 1rem;
    }

    .sw-step-label {
        display: none;
    }

    .sw-steps {
        justify-content: center;
        gap: 1.5rem;
    }

    .sw-nav {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .sw-btn {
        width: 100%;
        text-align: center;
    }

    .sw-checkbox-group {
        flex-direction: column;
    }
}

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