﻿
.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-right: 10px;
    padding-left: 10px;
    margin-right: auto;
    margin-left: auto;
    font-family: system-ui;
}

.heading {
    display: block;
    line-height: 1.2;
    text-align: center;
    margin: 0 0 10px;
    color: #000;
}

    .heading.type2 {
        font-size: 3.25rem;
        font-weight: 300;
    }

    .heading.type3 {
        font-size: 2.5rem;
        font-weight: 300;
    }

.step-bar {
    display: inline-flex;
    width: 110%;
    padding: 10px 0;
    list-style-type: none;
    margin: 0 -5% 30px;
    position: relative;
    overflow: hidden;
    color: #000;
    line-height: 1.2;
}

    .step-bar::after, .step-bar::before {
        content: "";
        width: 100%;
        position: absolute;
        top: 33px;
        height: 4px;
        background: #cfcfcf;
        left: 0
    }

    .step-bar > li {      
        font-size: .875rem;
        text-align: center;
    }
        .step-bar > li > span {
            color: #000;
        }
        .step-bar > li.active {
            color: #fff;
        }
            .step-bar > li.active > * {
                font-weight: 700;
            }

        .step-bar > li::before {
            content: "0";
            font-size: 1.625rem;
            font-weight: 500;
            width: 48px;
            height: 48px;
            line-height: 3rem;
            margin-bottom: 12px;
            text-align: center;
            border-radius: 100%;
            position: relative;
            z-index: 100;
            color: #525b85;
            background: #cfcfcf;
            margin: 0 auto 12px auto;
            display: block
        }

        .step-bar > li.active::before {
            color: #fff;
            font-weight: 800;
            background: #525b85
        }

    .step-bar.step-bar-3 > li {
        width: 33.3333333333%
    }

    .step-bar.step-bar-3::before {
        width: 66.6666666667%;
        margin-left: 16.6666666667%
    }

    .step-bar.step-bar-3::after {
        width: 66.6666666667%;
        margin-left: 16.6666666667%
    }
    .step-bar > li:first-child::before {
        content: "1"
    }
    .step-bar > li:nth-child(2)::before {
        content: "2"
    }
    .step-bar > li:nth-child(3)::before {
        content: "3"
    }
.block-information-light {
    color: #5c5c5c;
    margin-left: 14%
}
.form-container {
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 8px #cfcfcf;
    background: #fff;
    padding: 25px 20px;
    margin: 15px auto;
    width: 70%;
}
    .form-container > form {
        margin-left: 0px;
    }
    .input-group {
        display: block;
        margin-bottom: 32px;
    }
.label-title {
    font-size: 1.625rem;
    display: block;
    color: #000;
    margin-bottom: 32px;
    line-height: normal;
    font-weight: 500;
}
.label-title::after {
    display: block;
    content: "";
    width: 40px;
    height: 3px;
    background: #c62222;
    margin-top: 8px;
}

.select > select {
    font-weight: 700;
    height: 48px;
    width: 90%;
}
.field {
    font-size: 1rem;
    padding: 8px 10px;
}
    .field:focus {
        outline-offset: 2px;
        outline: 2px solid -webkit-focus-ring-color;
    }
    .field.error {
        border: 2px solid #a60e15;
    }
.required.error::after {
    content: "Veuillez renseigner l'information.";
    display: block;
    color: #a60e15;
    font-weight: 700;
    margin: 4px 0 0;
}
.required.age::after {
    content: "Vous devez avoir plus de 18 ans pour réaliser un devis.";
    display: block;
    color: #a60e15;
    font-weight: 700;
    margin: 4px 0 0;
}


.text-input-lable {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.form-legend {
    font-size: 1rem;
    color: #5c5c5c;
    margin-top: -5px;
    margin-bottom: 8px;
}
.text-input {
    display: flex;
    flex-direction: column;
    margin-bottom:20px;
}
    .text-input > input {
        width: 86%;
        height: 28px;
    }
    .text-input > select {
        font-weight: 700;
        width: 90%;
        height: 48px;
    }
.codePostal {
    display:flex;
    flex-flow:row;
    gap:20px;
}
    .codePostal > div:first-child {
        flex-basis: 30%
    }
    .codePostal > div:last-child {
        flex-basis: 63%
    }
.action-etape {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}
.btn {
    background: #c62222 !important;
    cursor: pointer;
    font-size: .9375rem;
    padding: 12px 28px;
    border-radius: 4px !important;
    position: relative;
    white-space: normal;
}
#IdButtonPrecedent {
    background: white !important;
    color: #c62222 !important;
    border: 1px solid #c62222 !important;
}
.radio-group {
    display: flex;
    gap: 20px;
    margin-left:8px;
}
    .radio-group.row{
        display:flex;
        gap:0;
        flex-direction:column;
    }
    .radio {
        width: 100%;
        display: flex;
        height: 100%;
        max-width: 27%;
        align-items: center;
        flex-direction: row;
    }
    .radio.row{
        max-width:100%
    }
    .radio input[type=radio] {
        margin-right: 10px;
        background: #fff;
        border: 2px solid #5c5c5c;
        z-index: 2;
    }
        .radio.row input[type=radio] {
            border: 1px solid #000;
        }
        .radio input[type=radio]:checked {
            background: #2d871d;
            border: 3px solid #fff;
        }
        .radio > label {
            height: 48px;
            padding: 0 4px 0 40px;
            margin-left:-40px;
            cursor: pointer;
            background: #fff;
            border-radius: 4px;
            border: 2px solid #cfcfcf;
            box-sizing: border-box;
            display: flex;
            align-items: center;
            font-size: .9375rem;
            line-height: 1.1;
            width: 100%;
        }
        .radio.row > label {
            border-radius: 0;
            border: none;
            border-bottom: 1px solid #cfcfcf;
        }
        .radio.row:first-of-type > label {
            border-top: 1px solid #a7a7a7;
        }
        .radio.row:last-of-type > label {
            border-bottom: 1px solid #a7a7a7;
        }

        .radio > label:hover {
            box-shadow: 0 0 8px 0 #a7a7a7;
            z-index: 1;
        }
        .radio.row:hover {
            margin-top: -1px;
        }
        .radio.row > label:hover {
            border-top: 1px solid #fff;
            border-bottom: 1px solid #fff;
            z-index: 1;
        }
    .radio input[type=radio]:focus ~ label {
        outline-offset: 2px;
        outline: 2px solid -webkit-focus-ring-color;
    }
        .radio.row input[type=radio]:focus ~ label {
            outline:none;
        }
    .radio input[type=radio]:checked ~ label {
        background: #e1e7ef;
        border: 2px solid #2e404f;
        font-weight: 700;
    }
        .radio.row input[type=radio]:checked ~ label {
            margin-top: -1px;
            border: none;
        }
.radio-group.error::after {
    content: "Veuillez renseigner l'information.";
    color: #a60e15;
    font-weight: 700;
    margin: 4px 0 0;
}
label.error {
    border-color: #a60e15;
}
.radio.row > label.error {
    border-top: 1px solid #a60e15;
    border-bottom: 1px solid #a60e15;
}
.sous-question {
    border-radius: 8px;
    background: #f0f0f0;
    padding: 20px 20px 30px 20px;
}

.recapitulatif {
    margin: 0px -10px;
}
.recap-bloc {
    border-color: #B0B0B0;
    word-wrap: break-word;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #cfcfcf;
    margin-bottom: 32px;
}
.recap-info-demandeur {
    display: flex;
    flex-direction: column;
    margin-right:40px;
}
    .recap-info-demandeur > div {
        display: flex;
        padding: 10px;
        border-bottom: 1px solid #ccc;
    }
    .recap-info-demandeur > div > span:first-of-type {
        max-width:25%;
        width:100%;
    }

    .recap-info-demandeur > div:last-of-type {
        border:none;
    }
.title-bien {
    padding: 20px;
    display: flex;
    border: 0;
    border-radius: 8px 8px 0 0;
    align-items: center;
    margin: -10px -15px 0px;
    background: #f9f9f9;
    gap: 20px;
}
    .title-bien > span {
        font-size: 1.25rem;
        color: #000;
        line-height: 1.2;
        flex: 1;
    }
.content-bien {
    margin: 0 10px;
    padding: 15px 0;
}
.icon-maison {
    background: #fff;
    padding: 8px;
    border-radius: 50%;
    width: 48px;
    box-sizing: border-box;
    height: 48px;
}

.mention {
    padding: 0px 20px;
    margin: 0px auto;
    width: 70%;
}
    .mention a {
        color: #000;
        text-decoration: underline;
    }
    .mention p a:hover {
        color: #c62222;
    }

fieldset {
    border: none;
}

/* SR = screen reader, classe utilisée pour l'accessibilité
https://www.systeme-de-design.gouv.fr/fondamentaux/css-affichage/ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.display-none{
       display: none;
}

.display-block{
    display: block;
}

.d-flex{
    display:flex;
}
.align-center{
    align-items: center;
}

.checkbox-required.error::after {
    content: "Veuillez accepter le traitement des données afin de valider la demande";
    display: block;
    color: #a60e15;
    font-weight: 700;
    margin: 4px 0 0;
}

#confirmationDialog {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    display:none
}

#box {
    background-color: white;    
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    width: 90%;
    text-align: center;
}

#close-btn {
    margin-top: 1rem;
    padding: 10px;
    padding-left: 30px;
    padding-right: 30px;
    background-color: #0A73B8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.action-dialog{
    display:flex;
    justify-content: flex-end;
    padding-bottom: 10px;
    padding-right: 20px;
}

#dialog-header {
    background-color: #0A73B8;
    color: white;
    padding: 20px;
    padding-top: 15px;
    text-align: left;
    padding-bottom: 15px;
    border-radius: 8px 8px 0 0;
    margin-bottom:1rem;
    font-size: 20px;
    font-weight:bold;
}

#box-content{
    text-align:left;
    padding-left:20px;
    padding-right:20px;
}