@import url('https://fonts.googleapis.com/css2?family=Cabin:wght@400;600;700&display=swap');

* {
    box-sizing: border-box;
}

:root {
    --yellow: #FFD52B;
    --blue: #212E83;
}

body {
    margin: 10px 0;
    font-family: 'Cabin', sans-serif;
}

header {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
}

.header-sides {
    text-align: center;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--blue);
    font-weight: 700;
    max-width: 146px;
}

.logo {
    margin: 0 15px;
}

#step1-header {
    font-weight: 700;
    display: none;
    text-align: center;
}

.step1-header-title {
    font-weight: 200;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.step-resume {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.circle-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: black;
    font-size: 0.5rem;
    min-width: 59px;
    gap: 8px;
}

.circle {
    height: 25px;
    width: 25px;
    border-radius: 50%;
    border: 1px solid rgb(218, 218, 218);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.line {
    height: 1px;
    width: 16px;
    background-color: rgb(218, 218, 218);
    margin-bottom: 16px;
}

.step1 .step-resume,
.step2 .step-resume {
    display: none;
}

.step1 #step1-header {
    display: block;
}

.step1 .header-sides {
    visibility: hidden;
}

main {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
    margin: 5px;
}

.section {
    width: 100%;
    min-height: 310px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    display: none;
}

.title-div {
    font-size: 2.5rem;
    font-weight: 700;
}

.title-div-small {
    font-weight: 700;
}

.btn {
    padding: 12px 20px;
    font-size: 1rem;
    border: none;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
}

.btn-primary {
    color: white;
    background: var(--blue);
}

.btn-secondary {
    color: var(--blue);
    background: white;
}

.title-div-step {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: center;
}


/* step1 */
.step1 .step1-section {
    display: flex;
}

.step1 .section-left {
    background-color: var(--blue);
    color: white;
}

.step1 .section-right {
    background-color: white;
}

.step1-section img {
    max-width: 51px;
    margin-bottom: 6px;
}

/* step2 */
.step2 .step2-section {
    display: flex;
}

.step2-section img {
    max-width: 250px;
    margin-bottom: 6px;
    margin-top: 15px;
}

.step2-section .step-resum {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.step2-section .circle-step {
    flex-direction: row;
    font-size: 0.7rem;
    font-weight: 700;
    align-items: flex-start;
    gap: 10px;
}

.step2-section .circle {
    width: 30px;
    height: 30px;
}

.step-resum-text {
    margin-top: 2px;
    max-width: 200px;
    font-weight: 300;
}

.step2-section .reassu img {
    margin-top: 0;
    width: 40px;
    margin-bottom: 0;
}

.step2-section ul {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    max-width: 323px;
    gap: 30px;
    justify-content: center;
}

.step2-section li {
    display: flex;
    align-items: center;
    min-width: 134px;
}

.step2-section li div {
    font-size: 0.8rem;
    max-width: 88px;
    line-height: 15px;
    margin-left: 5px;
}

.step2-section-right {
    min-height: 164px;
    border-top: 2px solid rgb(230, 230, 230);
    margin-top: 30px;
}

/* step3 */
.step3 .step3-section {
    display: flex;
    justify-content: flex-start;
}

.step-3 .eligibilite {
    background-color: #32CD32;
    color: white;
}

.step3 input {
    padding: 14px;
    min-width: 204px;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* step4 */
.step4 .step4-section {
    display: flex;
    justify-content: flex-start;
}

.step-4 .selection {
    background-color: var(--blue);
    color: white;
}

.cd_step_1_card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 30px;
    width: 250px;
}

.cd_card {
    background-color: #F3F4F6;
    width: 113px;
    height: 152px;
    border-top: 5px solid #F9FAFB;
    border-bottom: 5px solid #F9FAFB;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: black;
    text-align: center;
}

.step4-section-fenetres .cd_card,
.step4-section-portes .cd_card,
.step4-section-voletsbattants .cd_card,
.step4-section-clotures .cd_card {
    height: 168px;
}

.cd_card img {
    margin-top: 10px;
    width: 55px;
}

/* step4 elements */
.step4-fenetres .step4-section-fenetres,
.step4-baiesvitrees .step4-section-baiesvitrees,
.step4-portes .step4-section-portes,
.step4-voletsroulants .step4-section-voletsroulants,
.step4-voletsbattants .step4-section-voletsbattants,
.step4-portesdegarage .step4-section-portesdegarage,
.step4-portails .step4-section-portails,
.step4-clotures .step4-section-clotures,
.step4-otherproduct .step4-section-otherproduct,
.step4-otherproduct .resum-products,
.step4-number .step4-section-number {
    display: flex;
    justify-content: flex-start;
}

.cd_step_number {
    justify-content: center;
    width: 100px;
    height: 100px;
}

.cd_step_number p {
    font-weight: 900;
    font-size: 2.5rem;
    margin: 0;
}

.step4-otherproduct .section {
    min-height: 230px;
}

.resum-products {
    background-color: var(--blue);
    padding: 30px;
    color: white;
}

.resum-products-div {
    border: 3px solid white;
    min-height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.product-line {
    padding: 10px;
    font-weight: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid white;
    padding-bottom: 15px;
    margin-top: 15px;
}

.product-delete {
    padding: 0px 7px 3px 7px;
    border: 1px solid white;
    border-radius: 5px;
    cursor: pointer;
}

.product-title {
    width: 173px;
}

main {
    margin-top: 10px;
}

.step3 .circle.eligibilite {
    background-color: var(--blue);
    color: white;
}

.circle-good{
    background-color: #5aba5a;
    color: white;
}

.product-number{
    color: #FFD602;
}

.step2-sanspose .step2-section-sanspose,
.step2-sanspose .step2-section-right{
    display: flex;
}

.step2-sanspose .step-resume{
    display: none;
}

#header-side-droite button{
    margin-right: 5px;
    font-size:0.8rem;
    padding: 4px 3px;
}

.step2-sanspose section:nth-of-type(1) {
    background-image: url(img/back_step_1_g.png);
    background-size: contain;
}

.step2-section-sanspose ul{
    padding-left: 0;
}

.step2-section-sanspose li{
    padding: 3px;
}

.step2-section-sanspose{
    text-align: center;
    padding-bottom: 30px;
}

.step2-sanspose .step2-section-right{
    margin-top: 0;
}

.sanspose .step-resume{
    display: none;
}

/* step5 */
.step5 .step5-section{
    display: flex;
}

.step5 .circle.date{
    background-color: var(--blue);
    color: white;
}

.step5 .circle.eligibilite,
.step5 .circle.selection {
    background-color: #5aba5a;
    color: white;
}

.step5 #header-side-droite,
.step6 #header-side-droite,
.step7 #header-side-droite,
.step8 #header-side-droite {
visibility:hidden!important;
}

.date-div{
    display: flex;
    flex-direction: column;
    min-width: 66px;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.date-text{
    font-weight: 700;
    text-transform: capitalize;
    font-size: 1.1rem;
}

.date-day{
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.date-time{
    padding: 4px;
    font-size: 0.9rem;
    min-width: 61px;
    cursor: pointer;
    border-radius: 5px;
}

.d-blue{
    background: #212E83;
    color: white;
}

.d-blue:hover{
    background-color: black;
}

.d-grey{
    background: #bce2f5;
}

.d-grey:hover{
    background-color: grey;
}

#nextWeek,
#prevWeek{
    background: none;
    border: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--blue);
    font-size: 0.8rem;
}

/* step6 */

.step6 .step6-section{
    display: flex;
}

.step6 .circle.informations{
    background-color: var(--blue);
    color: white;
}

.step4 .circle.eligibilite,
.step-4 .circle.eligibilite,
.step6 .circle.eligibilite,
.step6 .circle.selection,
.step6 .circle.date,
.step7 .circle.eligibilite,
.step7 .circle.selection,
.step7 .circle.date,
.step7 .circle.informations,
.step7 .circle.confirmation {
    background-color: #5aba5a;
    color: white;
}

.divDateHtml{
    padding: 10px;
    border-top: 2px solid #e6e6e6;
    border-bottom: 2px solid #e6e6e6;
    width: 100%;
}

.step6-section{
    padding: 0 7%;
    padding-top: 20px;
}

.step6 input{
    padding: 14px;
    min-width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
    margin-top: 5px;
    background: #ededed;
    border: none;
}

.inputForm{
    width: 100%;
}

/* step7 */

.step7 .step7-section{
    display: flex;
}

.step7 #header-side-gauche{
    visibility: hidden;
}

.step4 .circle.eligibilite,
.step-4 .circle.eligibilite {
    background-color: #5aba5a;
    color: white;
}

.step6 .circle.eligibilite,
.step6 .circle.selection,
.step6 .circle.date {
    background-color: #5aba5a;
    color: white;
}

.step6-section{
    align-items: flex-start;
}

/* stepstop */

.stepStop .stepStop-section{
    display: flex;
}

#error-postal,
#error-name,
#error-prenom,
#error-mail,
#error-phone{
	color: red;
    margin-top: 0;
    font-size: 0.8rem;
    margin-bottom: 20px;
	display:none;
}

.stepStop .step-resume{
    display: none;
}

@media (min-width: 900px) {
    .step1 main {
        flex-direction: row;
        margin-top: 30px;
    }

    .step1 section {
        width: 50%;
    }

    .step1 .section {
        min-height: 560px;
        gap: 15px;
    }

    .step1-section img {
        max-width: 124px;
    }

    .step1 #step1-header {
        font-size: 1.4rem;
    }

    .btn-primary:hover {
        background-color: #273153;
    }
	
	.step2 .btn-primary:hover {
        background-color: #FFD602;
		color:black;
    }

    .btn-secondary:hover {
        background-color: #d7d7d7;
    }

    .step1-section-right {
        background-image: url(img/back_step_1_g.png);
        background-size: contain;
    }

    .step1-section-left {
        right: 0;
        background-image: url(img/back_step_1_d.png);
        background-size: contain;
    }

    .step1-header-title {
        font-size: 1rem;
    }

    .title-div-small {
        font-size: 1.1rem;
    }

    .header {
        width: 90%;
    }

    .step2-section-left {
        flex-direction: row;
    }

    .step2-minidiv {
        width: 50%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 50px;
        margin-top: 20px;
    }

    .step2-section img {
        max-width: 80%;
    }

    .step2-section .circle-step {
        font-size: 0.9rem;
    }

    .step-resum-text {
        max-width: 470px;
    }

    .step2-section .title-div-step,
    .step3-section .title-div-step,
    .step4-section .title-div-step {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }

    .step2-section-right {
        margin-top: 0;
        min-height: 115px;
        border-top: none;
    }

    .step2-section ul {
        flex-wrap: nowrap;
    }

    section:nth-of-type(2) {
        background: #f8f8f8;
    }

    body {
        margin: 0;
    }

    .step1 header {
        box-shadow: none;
    }

    header {
        padding-top: 10px;
        padding-bottom: 10px;
        box-shadow: rgba(0, 0, 0, 0.042) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
    }

    .line {
        width: 90px;
    }

    header .circle-step {
        min-width: 106px;
        font-size: 0.7rem;
    }

    .header-sides {
        font-size: 1rem;
    }

    .step2-section li div {
        font-size: 0.9rem;
    }

    .cd_card {
        width: 200px;
        height: 191px;
        cursor: pointer;
    }

    .cd_card img {
        width: 90px;
        margin-top: 10px;
    }

    .cd_step_1_card {
        width: 860px;
    }

    .cd_card:hover,
    .step4-section-otherproduct .btn:hover {
        box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    }

    .product-delete:hover{
        background-color: white;
        color:var(--blue);
    }

    .step4-section-fenetres .cd_card,
    .step4-section-portes .cd_card,
    .step4-section-voletsbattants .cd_card,
    .step4-section-clotures .cd_card {
        height: 205px;
    }

    .step4-otherproduct main{
        flex-direction: row;
    }

    .step4-otherproduct section{
        width: 50%;
    }

    .step4-otherproduct .section{
        min-height: calc(100vh - 160px);
    }

    .resum-products{
        padding: 60px;
    }

    .resum-products-div{
        padding: 40px;
    }

    #header-side-droite button{
        margin-right: 0;
        font-size:inherit;
        padding: 12px 20px;
    }

    .step2-section-sanspose{
        text-align: inherit;
    }
    
    .step2-section-sanspose li{
        padding: 7px;
        font-size: 1.1rem;
    }
    
    .step2-section-sanspose ul{
        padding-left: 0;
    }

    .date-div{
        min-width: 90px;
    }
    
    .divDateHtml,
    .inputForm {
        max-width: 837px;
    }

    .step6-section{
        align-items: center;
    }
}