.devis-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-family: inherit;
}

/* ========== PROGRESS BAR ========== */
.devis-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}
.devis-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #ddd;
    z-index: 0;
}
.devis-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    font-size: 14px;
    color: #999;
    font-weight: 500;
    transition: color 0.3s;
    flex: 1;
}
.devis-step:first-child,
.devis-step:last-child {
    flex: 0 0 auto;
}
.devis-step .step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eee;
    color: #999;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    border: 2px solid transparent;
    flex-shrink: 0;
}
.devis-step.active .step-num {
    background: #0056b3;
    color: #fff;
    border-color: #0056b3;
}
.devis-step.completed .step-num {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}
.devis-step.active {
    color: #0056b3;
    font-weight: 600;
}
.devis-step.completed {
    color: #28a745;
}

/* ========== STEPS ========== */
.devis-step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}
.devis-step-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.devis-step-content h3 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 24px;
}
.devis-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 15px;
}

/* ========== ERROR BANNER ========== */
.devis-error-banner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #b91c1c;
    font-size: 14px;
    display: none;
}
.devis-error-banner.show {
    display: block;
}

/* ========== TRAJET OPTIONS ========== */
.trajet-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0;
}
.trajet-option {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    cursor: pointer;
}
.trajet-option input {
    display: none;
}
.trajet-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    background: #fff;
}
.trajet-option input:checked + .trajet-card {
    border-color: #0056b3;
    background: #f0f7ff;
    box-shadow: 0 4px 15px rgba(0,86,179,0.15);
}
.trajet-card:hover {
    border-color: #0056b3;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.trajet-icon {
    font-size: 36px;
    line-height: 1;
}
.trajet-label {
    font-weight: 700;
    font-size: 16px;
    color: #333;
}
.trajet-desc {
    font-size: 13px;
    color: #888;
}
.trajet-option-error {
    display: none;
    text-align: center;
    color: #b91c1c;
    font-size: 13px;
    margin-top: 8px;
}
.trajet-option-error.show {
    display: block;
}

/* ========== FIELDS ========== */
.devis-field {
    margin-bottom: 20px;
}
.devis-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
}
.devis-field .optional {
    font-weight: 400;
    color: #999;
    font-size: 13px;
}
.devis-field input,
.devis-field select,
.devis-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #d0d0d0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
    background: #fff;
    box-sizing: border-box;
    font-family: inherit;
}
.devis-field input:focus,
.devis-field select:focus,
.devis-field textarea:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0,86,179,0.1);
}
.devis-field input.error,
.devis-field select.error,
.devis-field textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220,53,69,0.1);
}
.devis-field-error {
    display: none;
    color: #b91c1c;
    font-size: 13px;
    margin-top: 4px;
}
.devis-field-error.show {
    display: block;
}
.devis-row {
    display: flex;
    gap: 20px;
}
.devis-row .devis-field {
    flex: 1;
}
.section-title {
    font-size: 18px;
    color: #0056b3;
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8f0fe;
}

/* ========== BUTTONS ========== */
.devis-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.devis-btn {
    padding: 14px 35px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}
.devis-btn-next,
.devis-btn-submit {
    background: #0056b3;
    color: #fff;
    margin-left: auto;
}
.devis-btn-next:hover,
.devis-btn-submit:hover {
    background: #004494;
    transform: translateY(-1px);
}
.devis-btn-prev {
    background: #f0f0f0;
    color: #666;
}
.devis-btn-prev:hover {
    background: #e0e0e0;
}
.devis-help-btn-inline {
    padding: 14px 20px;
    border: 2px solid #0056b3;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    background: #fff;
    color: #0056b3;
    white-space: nowrap;
}
.devis-help-btn-inline:hover {
    background: #f0f7ff;
}

/* ========== TRAJET FIELDS TOGGLE ========== */
.trajet-fields {
    display: none;
}
.trajet-fields.active {
    display: block;
}

/* ========== RECAP ========== */
.devis-recap {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
}
.recap-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.recap-item:last-child {
    border-bottom: none;
}
.recap-label {
    font-weight: 600;
    min-width: 160px;
    color: #555;
    font-size: 14px;
}
.recap-value {
    color: #333;
    font-size: 14px;
    flex: 1;
}

/* ========== SUCCESS ========== */
.devis-success {
    text-align: center;
    padding: 60px 20px;
}
.devis-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #28a745;
    color: #fff;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.devis-success h3 {
    margin-bottom: 10px;
}
.devis-success p {
    color: #666;
}
.devis-error-message {
    text-align: center;
    color: #b91c1c;
    font-size: 14px;
    margin-top: 15px;
    display: none;
}
.devis-error-message.show {
    display: block;
}

/* ========== HELP POPUP ========== */
.devis-help-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}
.devis-help-overlay.show {
    display: block;
}
.devis-help-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    padding: 40px 35px 30px;
    z-index: 10000;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
}
.devis-help-popup.show {
    display: block;
}
.devis-help-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    font-family: inherit;
}
.devis-help-close:hover {
    color: #333;
}
.devis-help-title {
    font-size: 22px;
    margin-bottom: 12px;
    color: #0056b3;
}
.devis-help-text {
    color: #666;
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.5;
}
.devis-help-contact p {
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
}
.devis-help-contact span {
    margin-right: 10px;
    font-size: 18px;
}
.devis-help-close-btn {
    margin-top: 25px;
    padding: 12px 30px;
    background: #0056b3;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}
.devis-help-close-btn:hover {
    background: #004494;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .trajet-options {
        flex-direction: column;
        align-items: center;
    }
    .trajet-option {
        max-width: 100%;
        width: 100%;
    }
    .devis-row {
        flex-direction: column;
        gap: 0;
    }
    .devis-progress {
        font-size: 12px;
    }
    .devis-step .step-num {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .devis-progress::before {
        top: 16px;
        left: 16px;
        right: 16px;
    }
}
