.devis-step-container {
    min-width: 814px;
    position: relative;
    text-align: center;
    font-family: "Montserrat", Sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.devis-step {
    width: 100%;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.devis-title {
    font-size: 50px;
    color: #ffffff;
}

.devis-subtitle {
    display: block;
    font-size: 22px;
    color: #FFFFFF;
    font-weight: 500;
    margin-bottom: 40px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================
   Cartes icônes
========================= */

.devis-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.devis-card {
    width: 260px;
    height: 160px;
    padding: 8px;
    cursor: pointer;
    position: relative;
    transition: none;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
    box-sizing: border-box;
    border: none;
}

.devis-card:hover {
    transform: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
}

.devis-card-inner-wrapper {
    height: 100%;
    border-radius: 18px;
    background: #f6f6f6;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 16px;
    box-sizing: border-box;
    transition: none;
    text-align: center;
}

.devis-card:hover .devis-card-inner-wrapper {
    border: 2px solid #2295ea;
}

/* Pas de contour permanent sur selected */
.devis-card.selected .devis-card-inner-wrapper {
    border: 2px solid #2295ea;
    box-shadow: none;
}

.devis-card-icon {
    width: 100%;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    flex: 0 0 auto;
}

.devis-card-icon img {
    width: 75px;
    height: 68px;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

.devis-card span {
    position: static;
    display: block;
    width: 100%;
    margin: 0;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.2;
    color: #1f6fb2;
    text-align: center;
    padding: 0;
    max-width: none;
}

#step-profile .devis-profile-cards {
    width: 100%;
    justify-content: center;
}

#step-profile .devis-card,
#step-habitation .devis-card {
    width: 260px;
    height: 160px;
}

/* =========================
   Progression
========================= */

.devis-options-center {
    display: flex;
    justify-content: center;
    width: 100%;
}

.devis-progress-container {
    width: 55%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.devis-progress-bar {
    height: 100%;
    width: 12%;
    background: linear-gradient(90deg, #38bdf8 0%, #7dd3fc 60%, #ffffff 100%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 99px;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6), 0 0 20px rgba(56, 189, 248, 0.2);
}

.devis-progress-block {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
    margin-bottom: 30px;
    position: relative;
    width: 780px;
}

.devis-progress-title {
    font-size: 12px;
    font-weight: 500;
    color: #1070AA;
}

.devis-arrow-img {
    width: 45px;
    height: 152px;
    position: absolute;
    right: 0px;
    top: -51px;
}

/* =========================
   Questions dynamiques
========================= */

.devis-options-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    width: 80%;
    justify-content: center;
    align-items: stretch;
    margin: 0 auto;
}

.devis-check-box {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.devis-check-box-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 20px;
    border: 1px solid #1070AA;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    transition: none !important;
    background-color: #fff;
    color: #1070aa;
    user-select: none;
    width: 35%;
    min-height: 72px;
    text-align: start;
}

.devis-check-box-label:hover {
    background: linear-gradient(to top, #fdfdfe, #dfe9f1);
}

.devis-check-box-text {
    display: block;
    width: 100%;
    color: inherit;
}

.devis-check-box:checked + .devis-check-box-text {
    color: #ffffff;
}

.devis-check-box-label:has(.devis-check-box:checked) {
    background: #1070AA;
    border-color: #1070AA;
    color: #ffffff;
}

/* =========================
   Boutons
========================= */

.devis-back-step {
    margin-top: 60px;
    padding: 10px 60px;
    font-family: Montserrat;
    font-size: 18px;
    border: none;
    border-radius: 12px;
    background-color: #011f34;
    box-shadow: none;
    font-weight:300;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.devis-next-step {
    margin-top: 60px;
    padding: 10px 60px;
    font-size: 18px;
    border: none;
    border-radius: 12px;
    background-color: #1070AA;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}


#devis-habitation-back-btn {
    margin-top: 40px;
}

/* =========================
   Inputs
========================= */

.devis-input-text {
    padding: 15px !important;
    font-size: 18px !important;
    border: 1px solid #1070AA !important;
    border-radius: 10px !important;
    width: 100% !important;
    background-color: #fff !important;
}

.devis-phone-input-text {
    padding: 15px !important;
    font-size: 18px !important;
    border: none !important;
    width: 90% !important;
    border-left: #1070AA 1px solid !important;
    border-radius: 0 !important;
}

.devis-phone-input-container {
    display: flex;
    align-items: center;
    border: 1px solid #1070AA;
    border-radius: 10px;
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
    overflow: hidden;
    background-color: #fff;
}

.devis-flag-container {
    display: flex;
    align-items: center;
    padding-right: 15px;
    width: 10% !important;
    height: 100% !important;
}

.devis-flag-container img {
    width: 100%;
    height: auto;
}

.devis-input-text:focus,
.devis-input-text:not(:placeholder-shown),
.devis-phone-input-text:focus,
.devis-phone-input-text:not(:placeholder-shown) {
    outline: none !important;
    box-shadow: none !important;
}

.last-form-field {
    width: 70%;
}

.devis-field {
    width: 70%;
}

.devis-input-error {
    border-color: #e00000 !important;
    box-shadow: 0 0 0 2px rgba(224, 0, 0, 0.15) !important;
}

.devis-field-error {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #e00000;
    min-height: 18px;
}

.devis-global-error {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #e00000;
    text-align: center;
}

/* =========================
   Civilité
========================= */

.civilite-block {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.civilite-option input[type="radio"] {
    display: none;
}

.civilite-option span {
    display: inline-block;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: 0.2s ease;
}

.civilite-option input[type="radio"]:checked + span {
    background: #1070AA;
    border-color: #1070AA;
    color: #fff;
}

.devis-double-question-block {
    width: 100%;
    margin-bottom: 30px;
}

.devis-double-question-block .devis-subtitle {
    margin-bottom: 20px;
}

/* =========================
   Responsive tablette
========================= */

@media (max-width: 1079px) and (min-width: 769px) {
    .devis-step-container {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .devis-cards {
        align-items: center;
        padding-bottom: 20px;
    }

    .devis-arrow-img {
        display: none !important;
    }

    .last-form-field {
        width: 100%;
    }
}

/* =========================
   Responsive mobile
========================= */

@media (max-width: 768px) {
    .devis-arrow-img {
        display: none !important;
    }

    .devis-step-container {
        min-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .devis-title {
        font-size: 5.9vw !important;
        line-height: 1.2;
    }

    .devis-subtitle {
        font-size: 3.2vw !important;
        margin-bottom: 25px !important;
    }

    .devis-progress-container {
        width: 80% !important;
    }

    .devis-progress-block {
        width: 100% !important;
        flex-direction: column;
        gap: 8px !important;
        margin-bottom: 20px;
    }

    .devis-cards {
        align-items: center;
        padding-bottom: 20px;
        width: 100%;
        gap: 14px;
    }

    .devis-card {
        width: calc(50% - 10px) !important;
        height: 145px !important;
        max-width: 280px !important;
        padding: 7px !important;
    }

    .devis-card-inner-wrapper {
        height: 100% !important;
        border-radius: 16px !important;
        padding: 16px 12px !important;
        gap: 10px !important;
    }

    .devis-card-icon {
        min-height: 40px !important;
    }

    .devis-card-icon img {
        width: 30px !important;
        height: 30px !important;
        margin: 0 auto !important;
    }

    .devis-card span {
        font-size: 15px !important;
        max-width: 100% !important;
    }

    .devis-options-container {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .devis-check-box-label {
        width: 100% !important;
        font-size: 16px !important;
        text-align: center !important;
        padding: 12px !important;
    }

    .devis-input-text {
        width: 100% !important;
        font-size: 18px !important;
    }

    .devis-phone-input-container {
        width: 100% !important;
        padding: 0 10px !important;
        justify-content: flex-start !important;
    }

    .devis-phone-input-text {
        width: 100% !important;
        font-size: 18px !important;
        padding-left: 12px !important;
    }

    .devis-flag-container {
        width: 45px !important;
        padding-right: 10px !important;
    }

    .devis-next-step,
    .devis-back-step {
        width: 100% !important;
        padding: 14px !important;
        margin-left: 0 !important;
        margin-top: 20px !important;
        font-size: 18px !important;
    }

    .devis-step {
        width: 100% !important;
        min-height: auto !important;
    }

    .last-form-field,
    .devis-field {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .devis-card {
        width: 100% !important;
        max-width: 320px !important;
        height: 135px !important;
    }

    .devis-card-inner-wrapper {
        padding: 14px 10px !important;
    }

    .devis-card-icon {
        min-height: 36px !important;
    }

    .devis-card-icon img {
        width: 28px !important;
        height: 28px !important;
        margin: 0 auto !important;
    }

    .devis-card span {
        font-size: 14px !important;
        line-height: 1.2 !important;
    }

    .devis-check-box-label {
        font-size: 14px !important;
        padding: 10px 12px !important;
        line-height: 1.2 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        white-space: normal !important;
    }

    .devis-options-container {
        gap: 10px !important;
    }
}