.configurateur-wrapper {
    display: flex;
    background-color: #EFF2F6;
    height: 87vh;
    margin-bottom: 5rem;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.h-100 {
    height: 100%;
}

.step-one-col {
    margin: auto;
}

.step-one__inner {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 64px 110px 120px;
    gap: 10px;
    background: #FFFFFF;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    flex: none;
    order: 0;
    align-self: stretch;
    margin: 4rem 0;

}

.step-one__inner h1 {


    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    font-size: 40px;
    line-height: 120%;

    text-align: center;
    letter-spacing: -0.02em;

    /* Gradient */
    background: linear-gradient(0deg, #183963 0%, #517F8E 97.15%, #EFF2F6 175%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;

    margin: 0;

}

.step-one__inner p {

    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    color: #000000;
    width: 65%;
    text-align: center;
    margin: auto;
    margin-top: 16px;
    margin-bottom: 32px;

}

.configurateur-wrapper .btn-fill {
    display: block;
    text-decoration: none;
    font-family: "Open Sans", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 1.6rem;
    color: #fff;
    background-color: #183963;
    padding: 1.2rem 1.6rem;
    border-radius: 10rem;
    width: 100%;
    transition: all 300ms;
    border: none;
    border: 1px solid #183963;
    height: auto;
}

.wpcf7-spinner {
    display: none !important;
}

.configurateur-wrapper .btn-outline {
    display: block;
    text-decoration: none;
    font-family: "Open Sans", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 1.6rem;
    color: #183963;
    background-color: #EFF2F6;
    padding: 1.2rem 1.6rem;
    border-radius: 10rem;
    width: 100%;
    transition: all 300ms;
    border: none;
    border: 1px solid #EFF2F6;
}

.configurateur__preview {
    --bg-preview: none;
    width: 50%;
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.configurateur__preview-blur {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;

    filter: blur(3px);
    z-index: 0;
}

.configurateur__preview-bg {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-position: center;
    z-index: 1;
    background-repeat: no-repeat;
}

/* les enfants au-dessus */
.configurateur__layers,
.configurateur-view__buttons {
    position: relative;
    z-index: 2;
}

.configurateur__steps {
    width: 50%;
    /* height: 85%; */
    overflow: auto;
    aspect-ratio: 1;
}

.configurateur__steps::-webkit-scrollbar {
    width: 4px;

}

.configurateur__steps::-webkit-scrollbar-track {
    background: transparent;
}

.configurateur__steps::-webkit-scrollbar-thumb {
    background: #183963;
    border-radius: 10px;
}

/* Step intro : pleine largeur */
.configurateur-wrapper.is-intro .configurateur__preview {
    display: none;
}

.configurateur-wrapper.is-intro .configurateur__steps {
    width: 100%;
}

.configurateur__step {
    background-color: #FFF;
    border-radius: 8px;
    padding: 40px;
}

.is-intro .configurateur__step {
    background-color: unset;
}

.configurateur__progress .configurateur__progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.progress-step {
    position: relative;
    flex: 1;
    /* pour que les connecteurs s'étirent */
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 3px;
    width: 100%;
    height: 4px;
    background-color: #EFF2F6;
    z-index: -1;
}

.progress-step:last-child::after {

    width: 60%;

}

.progress-step:last-child {
    flex: unset;
}

.progress-step__label {

    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    text-align: center;

    color: #000000;
    display: block;
    margin-top: 12px;



}

#cfg-magnifier {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid #183963;
    pointer-events: none;
    z-index: 200;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background-repeat: no-repeat;
}

.configurateur__preview.is-magnifier-active {
    cursor: none;
}

.cfg-magnifier-toggle {

    z-index: 100;
    background: #fff;
    border: 1px solid #183963;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #183963;
    transition: all 200ms;
}

.cfg-magnifier-toggle.is-active {
    background: #183963;
    color: #fff;
}

.cfg-magnifier-toggle.is-active svg {
    stroke: white;
}

.progress-step.is-done::after {
    background-color: #183963;
}

.progress-step_nbr {
    display: flex;
    flex-direction: column;
    width: fit-content;
    text-align: center;
    align-items: center;
}

.progress-step__number {

    box-sizing: border-box;

    /* Mise en page automatique */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px;

    background-color: white;

    width: 32px;
    height: 32px;

    border: 3px solid #EFF2F6;
    border-radius: 100%;


}

.progress-step.is-active .progress-step__number,
.progress-step.is-done .progress-step__number {
    border: 3px solid #183963;

}

.progress-step.is-active::after {


    background: linear-gradient(270.12deg, #EFF2F6 5.24%, #517F8E 43.25%, #183963 81.26%), #183963;


}

.configurateur__step h2 {


    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300;
    font-size: 32px;
    line-height: 120%;

    color: #183963;
    margin: 0;
    margin-top: 24px;


}

.option-group__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    cursor: pointer;
}

.configurateur__option-group {
    border-top: 1px solid;
    padding-top: 12px;
    margin-top: 12px;
}

.option-group__toggle {
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.option-group__label {

    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 120%;
    letter-spacing: -0.02em;
    margin: 0;



}

.option-group__choices {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.option-group__choices .choice {

    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px;
    gap: 4px;

    width: 80px;
    height: 79px;
    cursor: pointer;

    background: #F2F2F1;
    border-radius: 4px;



}

.option-group__choices .choice.is-selected {


    background: #EFF2F6;
    border: 1px solid #183963;


}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.option-group__choices .choice img {
    width: 100%;
}

.configurateur__nav {
    display: flex;
    margin-top: 32px;
    justify-content: center;
    gap: 1.6rem;
}

.configurateur__nav button {
    width: fit-content !important;
    height: 36px !important;
    font-size: 14px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.option-group__toggle svg {
    transition: transform 0.2s ease;
}

.option-group__toggle[aria-expanded="false"] svg {
    transform: rotate(180deg);
}


.configurateur__layers {
    position: relative;
    width: 100%;
    height: 100%;
}

.configurateur__layers img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.configurateur__layers.is-mirror {
    transform: scaleX(-1);
}

.configurateur__preview {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.configurateur-view__buttons {
    position: absolute;
    bottom: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    width: 100%;
    z-index: 5;
    align-items: center;
}

.configurateur__view-toggle {

    bottom: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;

    z-index: 100;
}

.configurateur__view-toggle button {
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 140%;
    text-align: center;

    color: #183963;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 7.5px;
    gap: 7.5px;
    height: 45px;
    background: #FFFFFF;
    border-radius: 3px;
    border: none;
    border: 1px solid #183963;

}

.configurateur__view-toggle button.is-active {
    color: #E6EBF0;
    background-color: #183963;
    border: none;
}

.recap__choice-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.recap__choice-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recap__choice-value img {

    padding: 2px;
    gap: 4px;

    width: 24px;
    height: 24px;
    border: 2px #F2F2F1 solid;

    flex: none;
    order: 0;
    flex-grow: 0;


}

.recap__choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.recap__extra-item {

    border-top: 1px solid #183963;
    padding-top: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
}


.recap__choice-label,
.recap__extra-label {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 140%;
    color: #183963;



}

.recap__extra-notice {

    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 140%;

    color: #183963;

    display: flex;
    align-items: center;
    gap: 10px;


}

.cf7-devis h3 {

    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 120%;
    color: #183963;
}

.cf7-devis h4 {

    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;


    color: #000000;


}

.cf7-radio-grid .wpcf7-radio,
.cf7-radio-group .wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 8px;
}

.cf7-radio-grid .wpcf7-radio .wpcf7-list-item,
.cf7-radio-group .wpcf7-radio .wpcf7-list-item {
    width: 47%;
    margin: 0;
}

.cf7-radio-grid .wpcf7-radio .wpcf7-list-item label,
.cf7-radio-group .wpcf7-radio .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 0;
}

.cf7-radio-grid .wpcf7-radio .wpcf7-list-item label span,
.cf7-radio-group .wpcf7-radio .wpcf7-list-item label span {
    display: flex;
    gap: 1rem;
}

.cf7-radio-grid .wpcf7-radio .wpcf7-list-item label input,
.cf7-radio-group .wpcf7-radio .wpcf7-list-item label input,
.cf7-checkbox-group .wpcf7-checkbox .wpcf7-list-item label input {
    width: 0 !important;
    min-width: 0 !important;
    position: absolute;

}

.cf7-radio-grid .wpcf7-radio .wpcf7-list-item label span:before,
.cf7-checkbox-group .wpcf7-checkbox .wpcf7-list-item label span:before,
.cf7-radio-group .wpcf7-radio .wpcf7-list-item label span:before {
    content: "";
    border: 2px solid #183963;
    border-radius: 50%;
    display: block;
    width: 1.6rem;
    height: 1.6rem;
    min-width: 1.6rem;
}

.cf7-radio-group .wpcf7-radio .wpcf7-list-item label input:checked+span:before,
.cf7-checkbox-group .wpcf7-checkbox .wpcf7-list-item label input:checked+span:before,
.cf7-radio-grid .wpcf7-radio .wpcf7-list-item label input:checked+span:before {
    display: block;
    background-color: #183963;
    background-image: url('../../../src/svg/checkmark.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: .9rem;
}




.cf7-radio-grid .wpcf7-radio .wpcf7-list-item label input,
.cf7-checkbox-group .wpcf7-checkbox .wpcf7-list-item label input,
.cf7-radio-group .wpcf7-radio .wpcf7-list-item label input {
    min-width: 16px;
    width: 16px;
    height: 16px;
}

.cf7-radio-grid .wpcf7-radio .wpcf7-list-item label span,
.cf7-radio-group .wpcf7-radio .wpcf7-list-item label span {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    color: #183963;

}

.cf7-devis .rgpd-consent label {
    display: flex;
    gap: 1rem;
    margin-top: 14px;
    align-items: flex-start;
}

.cf7-devis .rgpd-consent input {
    width: 18px !important;
    height: 18px;

}

.cf7-devis .rgpd-consent input+span {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    color: #000000;
}

.cf7-devis .cf7-row p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}


.cf7-devis p label {
    font-size: 1.4rem;
    padding-left: 0px;
}

.cf7-devis .cf7-row p .wpcf7-form-control-wrap {
    position: relative;
    width: 100%;
}

.cf7-devis p .wpcf7-form-control-wrap input {
    width: 100%;

    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    margin-top: 4px;

}


.cf7-devis input {
    /* field */

    box-sizing: border-box;

    /* Mise en page automatique */
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px;
    gap: 4px;

    width: 219px;
    height: 40px;

    background: #FFFFFF;
    border-radius: 100px;

}

.cf7-devis .cf7-checkbox-group .wpcf7-checkbox {
    display: flex;
    gap: 1rem;
}

.cf7-devis .cf7-checkbox-group .wpcf7-checkbox .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cf7-devis .cf7-checkbox-group .wpcf7-checkbox .wpcf7-list-item label input {
    min-width: 16px;
    width: 16px;
    height: 16px;
}

.cf7-devis .cf7-checkbox-group .wpcf7-checkbox .wpcf7-list-item label span {

    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    color: #183963;
    display: flex;
    gap: 10px;
}


.configurateur__recap {
    padding-top: 24px;

}

.configurateur__recap .configurateur__step-title {
    margin-bottom: 24px;
}

.configurateur__recap .option-group__label {
    margin-bottom: 12px;
}

.configurateur__recap .recap__choice-value,
.recap__extra-value {

    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;


    color: #183963;



}

.recap__table {
    width: 100%;
    border-collapse: collapse;
}

.recap__table tr {
    border-bottom: 1px solid #EFF2F6;
}

.recap__table tr:last-child {
    border-bottom: none;
}

.recap__td-label {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #183963;
    padding: 8px 16px 8px 0;
    white-space: nowrap;
    vertical-align: middle;
    width: 40%;
}

.recap__td-value {
    font-size: 14px;
    color: #000;
    padding: 8px 0;
    vertical-align: middle;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recap__td-value img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border: 2px solid #F2F2F1;
    border-radius: 2px;
    flex-shrink: 0;
}

.configurateur__devis {
    padding-top: 24px;
}

.configurateur__devis .cf7-devis h4 {
    /* Label */

    width: 462px;
    height: 20px;

    /* Desktop/Body Desktop/Body bases/Body bases

Paragraphes
*/
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;


    color: #000000;


}


.configurateur__devis .wpcf7-not-valid-tip {
    color: #dc3232;
    font-size: 1rem;
    font-weight: normal;
    display: block;
    margin-top: 2px;
}

.configurateur__option-group.has-error .option-group__choices .choice {
    border: 1px solid red;
}

body:has(.configurateur-wrapper) #back-to-top {
    display: none;
}

@media screen and (max-width:1200px) {

    .cf7-radio-grid .wpcf7-radio .wpcf7-list-item,
    .cf7-radio-group .wpcf7-radio .wpcf7-list-item {
        width: 43%;
    }
}

@media screen and (max-width:992px) {
    body:has(.configurateur-wrapper) #fixed-mail {
        display: none;
    }

    .configurateur-wrapper {
        height: unset;
        padding: 2vh 0;
    }

    .configurateur-wrapper .row.h-100 {
        flex-direction: row;
        width: 100%;
        height: unset;
    }

    .configurateur__preview {
        height: 40vh;
        width: 100%;
        aspect-ratio: unset;
        background-size: contain;
    }

    .configurateur__steps {
        width: 100%;
        padding: 0;
        aspect-ratio: unset;
    }

    .configurateur__step {
        padding: 16px;
    }

    .step-one__inner {
        margin: 0;
        padding: 32px;
    }

    .step-one__inner h1 {

        font-size: 32px;
        line-height: 120%;
    }

    .configurateur__step h2 {
        font-weight: 300;
        font-size: 24px;
        line-height: 120%;
    }

    .configurateur__progress {
        margin-bottom: 1.6rem;
    }

    .configurateur__view-toggle button {
        height: unset;
        padding: 6px;
    }

}

@media screen and (max-width:460px) {
    .progress-step {
        display: none;
    }

    .progress-step.is-active {
        display: block;
    }

    /* cache le connecteur après la step suivante */
    .progress-step.is-next::after {
        display: none;
    }

    /* label condensé */
    .progress-step__label {
        font-size: 12px;
        display: none;
    }

    .cf7-radio-grid .wpcf7-radio .wpcf7-list-item,
    .cf7-radio-group .wpcf7-radio .wpcf7-list-item {
        width: 100%;
    }

    .cf7-devis .cf7-row p {
        flex-direction: column;
    }

    .cf7-devis p label {
        width: 100%;
    }

    .cf7-devis .cf7-checkbox-group .wpcf7-checkbox {
        flex-direction: column;
    }
}

@media screen and (max-width:400px) {
    .recap__table tr {
        display: flex;
        flex-direction: column;
    }
}

/* ─── Preview mobile header (stepper + titre cloné) ──────── */

.configurateur__preview-mobile {
    display: none;
}

@media screen and (max-width: 992px) {

    /* ─── Preview mobile header ───────────────────────────── */

    .js-form-to-recap {
        display: none;
    }


    .configurateur__preview-mobile {
        display: flex;
        width: 100%;
        background: #fff;
        padding: 16px 16px 12px;
        border-radius: 8px 8px 0 0;
        gap: 1rem;
        align-items: center;
    }

    .configurateur__preview-mobile .configurateur__progress {
        margin-bottom: 1rem;
    }

    .configurateur__preview-mobile h2 {
        font-family: 'Open Sans';
        font-weight: 300;
        font-size: 20px;
        line-height: 120%;
        color: #183963;
        margin: 0 0 12px;
    }

    /* Masquer progress + titre dans le step en mobile (remplacés par le clone) */
    .configurateur__step .configurateur__progress,
    .configurateur__step h2.configurateur__step-title {
        display: none;
    }

    /* ─── Nav fixe mobile ─────────────────────────────────── */

    /* Masquer les navs internes aux steps en mobile */
    .configurateur__nav {
        display: none;
    }

    .configurateur__nav-fixed {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        gap: 1.2rem;
        padding: 12px 16px 20px;
        background: #fff;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
        z-index: 500;
    }

    .configurateur__nav-fixed .btn-outline,
    .configurateur__nav-fixed .btn-fill {
        flex: 1;
    }

    /* Compenser la hauteur du nav fixed */
    .configurateur__step {
        padding-bottom: 90px;
    }
}

/* Desktop : nav fixe jamais visible */
@media screen and (min-width: 993px) {
    .configurateur__nav-fixed {
        display: none !important;
    }
}

/* ─── Loader initial ──────────────────────────────────────── */

.configurateur__loader {
    position: fixed;
    inset: 0;
    background: #EFF2F6;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.configurateur__loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #c8d4e3;
    border-top-color: #183963;
    border-radius: 50%;
    animation: cfg-spin 0.7s linear infinite;
}

@keyframes cfg-spin {
    to {
        transform: rotate(360deg);
    }
}