
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    font-size: 16px;
    --blanc-pure : #ffffff;
    --grey : #9B9B9B;
    --noire-riche : #001510;
    --vertdeau : #DDEFF0;
    --vertdeau2 : #B7E2E2;
    --vertdeau5 : #1D6368;
    --redError : #C93D3D;
}

p, label, textarea, span{
    font-family: Mulish, sans-serif;
    font-size: 1rem;
    color: var(--noire-riche);
}

h2{
    font-family: Mulish, sans-serif;
    font-size: 2.1rem;
    color: var(--noire-riche);
}

h4{
    font-family: Mulish, sans-serif;
    font-size: 1.3rem;
}

.mobile-only{
    display: none;
}

input[type=radio],
input[type=checkbox] {
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    -border-radius: 4px;
    min-height: 16px;
    min-width: 16px;
    background: #fff;
    border: 1px solid var(--grey);
}
input[type=radio]:checked,
input[type="checkbox"]:checked {
    color: var(--blanc-pure);
    border: 1px solid var(--grey);
    accent-color: var(--vertdeau5);
    background-image: url('../Icones/checked.svg');
    background-position: center;
}

hr{
    border: 1px solid var(--grey);
    width: 100%;
}

/*style générique*/
.hidden,
.desactived {
    display: none!important;
}

.line{
    display: flex;
}

.column{
    display: flex;
    flex-direction: column;
}

.w100{
    width: 100%;
}

.absolute{
    position: absolute;
}

.relative{
    position: relative;
}

/*Style des input*/
.main-button{
    display: flex;
    padding: 8px 22px;
    justify-content: center;
    align-items: flex-start;
    border-radius: 4px;
    background-color: var(--noire-riche);
    border: none;
    color: var(--blanc-pure);
    font-size: 1.3rem;
    font-family: Mulish, sans-serif;
    cursor: pointer;
}

.third-button{
    font-family: Mulish, sans-serif;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    border: none;
    background-color: transparent;
    color: var(--noire-riche);
}

.input-field{
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}
.input-field select,
.input-field input{
    height: 40px;
    border: 1px solid var(--grey);
    border-radius: 4px;
    padding-left: 12px;
}

.input-field select {
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
    background-image: url('../Icones/menu.svg'), linear-gradient(to bottom, #ffffff 0%,#ffffff 100%);
    background-repeat: no-repeat, no-repeat;
    background-position: right 12px center, center center;
    background-size: 24px, cover;
}

.input-field select:focus,
.input-field input:focus{
    outline: 1px solid var(--noire-riche);
}

.bouton-selection-biens{
    height: 156px;
    width: 156px;
    border-radius: 4px;
    border: 1px solid var(--grey);
    box-sizing: border-box;
    cursor: pointer;
}
.bouton-selection-biens label{
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    height: 100%;
    align-items: center;
    cursor: pointer;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
}
.bouton-selection-biens input{
    display: none;
}
.selected-biens{
    background-color: var(--vertdeau5);
    color: var(--blanc-pure);
    border: none;
}

.selected-biens label,
.selected-biens svg path{
    fill: var(--blanc-pure);
    color: var(--blanc-pure);
}

.selected-choice{
    background-color: var(--vertdeau5);
    color: var(--blanc-pure);
    border: none!important;
    transition: none!important;
}

.selected-choice:hover{
    background-color: var(--vertdeau5)!important;
    color: var(--blanc-pure)!important;
    transition: none!important;
}

.selected-choice input[type=radio],
.selected-choice input[type="checkbox"]{
    border: none!important;
}

.error{
    border-color: var(--redError)!important;
}

.scrollY{
    overflow-y: scroll;
}

/*-------------Style des sections--------------*/
#section-landing{
    height: 100svh;
    overflow: hidden;
}

#section-landing .left-section{
    width: 50%;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    background-color: #f0eeeb;
}

#partieDynamic .left-section > img,
#section-landing .left-section a > img{
    height: 48px;
    width: auto;
    position: absolute;
    top: 5%;
    left: 5%;
}

#section-landing .left-section .content{
    align-items: center;
    width: 70%;
    margin: 75px auto 0 auto;
}

#section-landing .left-section .content h2,
#section-landing .left-section .content p{
    text-align: center;
    margin-top: 8px;
}

#section-landing .left-section .content .fields-container{
    gap: 24px;
    margin-top: 56px;
    width: 80%;
    max-width: 400px;
}

#section-landing .left-section .content .fields-container > .line:first-of-type{
    gap: 16px;
}

#section-landing .left-section .content .fields-container > .line:first-of-type > .input-field:first-of-type{
    width: 40%;
}

#section-landing .left-section .content .fields-container > .line:first-of-type > .input-field:nth-of-type(2){
    width: 60%;
}


#section-landing .right-section{
    width: 50%;
    position: relative;
}

#section-landing .right-section img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#section-landing .right-section .image-cover{
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.62) 100%);
}

#section-landing .right-section .image-cover .content{
    position: absolute;
    left: 40px;
    bottom: 80px;
}
#section-landing .right-section .image-cover .content h2,
#section-landing .right-section .image-cover .content p{
    color: var(--blanc-pure);
}

#partieDynamic{
    height: 100svh;
    background-color: #f0eeeb;
    display: flex;
    position: relative;
}

.transition-container{
    height: 100svh;
    text-align: center;
    font-size: 3rem;
    font-family: Mulish, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -80px;
}

#partieDynamic .left-section{
    width: 70%;
    position: relative;
    background: var(--global-palette8);
}
#partieDynamic .left-section img{
    top: 5%;
}
#partieDynamic .right-section{
    width: 30%;
    background-color: #4c8b8f;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 500px;
}
#partieDynamic .right-section h2{
    margin-top: 48px;
    text-align: center;
    color: white;
}

#partieDynamic .right-section .content {
    width: 100%;
}

#questionsContainer,
#section-type-biens{
    width: calc(100% - 80px);
    display: flex;
    flex-direction: column;
    /* margin-top: 10%; */
    padding-top: 20%;
    /* gap: 16px; */
    margin-left: 80px;
    height: 100%;
    padding-bottom: 15%;
    position: relative;
    justify-content: center;
}

.top-question{
    position: absolute;
    top: 15%;
}

.question .choices-container{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4%;
    padding-right: 80px;
}

.question .choices-container .line{
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10%;
}

#questionsContainer .question{
    height: 100%;
}

#questionsContainer .question .choices-container label{
    min-height: 56px;
    width: 50%;
    border-radius: 4px;
    border: 1px solid var(--grey);
    display: flex;
    align-items: center;
    gap: 32px;
    padding-left: 16px;
    min-width: 400px;
}

#questionsContainer .question .choices-container label:hover{
    background-color: var(--vertdeau);
}

#questionsContainerButtons,
.buttons-container{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: 20px;
    padding-right: 64px;
    gap: 12px;
    position: absolute;
    right: 0;
    bottom: 5%;
}

#buttons-container{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#buttons-container .content,
.buttons-container .content{
    display: flex;
    gap: 24px;
    justify-content: flex-end;
}

#buttons-container .star-checkbox {
    display: none;
}

#buttons-container .star-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 4px;
}

#buttons-container .star-label::before {
    background-image: url("../Icones/star-empty.svg");
    height: 32px;
    width: 32px;
    content: '';
    display: inline-block;
}

#buttons-container .star-checkbox:checked + .star-label::before {
    background-image: url("../Icones/star-filled.svg");
}

.min-width-btn{
    min-width: 140px;
}

#partieFinal{
    margin-top: 136px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    /* height: 100%; */
}

#partieFinal .content{
    height: 50%;
}
#partieFinal > .content > div:first-of-type{
    height: 100%;
}

#partieFinal .radio-container{
    display: flex;
    justify-content: center;
    gap: 10%;
    margin-top: 40px;
}

#partieFinal .privacy-container{
    display: flex;
    gap: 8px;
    align-items: center;
    position: absolute;
    bottom: 120px;
    width: 70%;
    left: 50%;
    transform: translateX(-50%);
}

#partieFinal #avisPro_textArea{
    display: flex;
    justify-content: center;
    margin-top: 24px;
    height: 100%;
}

#partieFinal #avisPro_textArea textarea{
    border-radius: 4px;
    border: 1px solid grey;
    padding: 16px;
    box-sizing: border-box;
    width: 90%;
    resize: none;
    height: 50%;
    min-height: 200px;
}

/*Partie recapitulatif*/
.recapitulatif-container{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.recapitulatif-container #recapitulatif{
    margin-top: 40px;
    width: 100%;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.recapitulatif-container #recapitulatif button{
    background-color: transparent;
    border: none;
    color: var(--blanc-pure);
    font-size: 1rem;
    cursor: pointer;
    height: fit-content;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 4px;
}
.recapitulatif-container #recapitulatif button:hover{
    text-decoration: underline;
}
.recapitulatif-container #recapitulatif h4{
    margin-bottom: 8px;
    color: white;
}

.recapitulatif-container #recapitulatif .recap-content{
    padding-left: 16px;
}
.recapitulatif-container #recapitulatif .recap-content hr{
    margin: 12px 0;
}

.recapitulatif-container #recapitulatif .recap-content .ligne{
    display: flex;
    position: relative;
}
.recapitulatif-container #recapitulatif .recap-content .isIncontournable::before{
    content: "";
    height: 20px;
    width: 20px;
    position: absolute;
    left: -30px;
    background-image: url('../Icones/star-filled-recap.svg');
    background-size: cover;
}

.recapitulatif-container #recapitulatif .recap-content .ligne p{
    opacity: 0.5;
    text-wrap : nowrap;
    white-space: nowrap;
}

.recapitulatif-container #recapitulatif .recap-content .opacity-full p{
    opacity: 1;
}

.recapitulatif-container #recapitulatif .recap-content .current p{
    opacity: 1;
}

.recapitulatif-container #recapitulatif .recap-content .ligne > p:first-of-type{
    font-weight: bold;
}

.recapitulatif-container #recapitulatif .recap-content .ligne > div:first-of-type{
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-left: 4px;
    align-items: center;
}

.success-section{
    width: 100%;
    display: flex;
    flex-direction: column;
}

.success-section .top{
    background: var(--vertdeau);
    position: relative;
}

.success-section .top a > img:first-of-type{
    position: absolute;
    top: 40px;
    left: 80px;
    height: 48px;
}

.success-section .top .head{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 10%;
    margin-bottom: 5%;
}

.success-section .bottom{
    height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.success-section .bottom p{
    width: 50%;
    margin-bottom: 40px;
    margin-top: 56px;
    max-width: 560px;
    text-align: justify;
}

.success-section .bottom img:nth-of-type(2){
    width: 60%;
    max-width: 800px;
    position: absolute;
    z-index: -1;
    bottom: 10%;
}

/*CSS tablette*/
@media screen and (max-width: 1200px){
    :root{
        font-size: 14px;
    }

    #section-landing .right-section{
        display: none;
    }

    #section-landing .left-section{
        width: 100%;
    }

    #partieDynamic .right-section{
        display: none;
        min-width: auto;
        width: 100%;
    }

    #recap-btn-container{
        position: absolute;
        bottom: 0;
        background-color: var(--vertdeau);
        width: 100%;
        height: 88px;
        padding-top: 16px;
    }

    #partieDynamic .right-section #recap-btn-container .content {
        display: flex;
        flex-direction: row-reverse;
        gap: 24px;
        justify-content: center;
    }

    .recapitulatif-container #recapitulatif button{
        font-size: 0;
        color: transparent;
    }

    #partieDynamic .left-section{
        width: 100%;
    }
}

/*CSS mobile */
@media screen and (max-width : 768px){
    .mobile-only{
        display: block;
    }

    h2 {
        font-size: 1.5rem;
    }

    .bouton-selection-biens {
        width: 100%;
        margin: 0;
        height: auto;
        height: 64px;
    }

    .bouton-selection-biens label {
        width: 100%;
        flex-direction: row;
        position: relative;
        padding-left: 80px;
    }

    .bouton-selection-biens label svg {
        height: 40px;
        position: absolute;
        left: 8px;
        width: 80px;
    }

    #section-landing .left-section {
        background-color: var(--vertdeau);
    }

    #section-landing .left-section .content {
        width: 90%;
        background-color: var(--blanc-pure);
        padding: 0 32px;
        margin-top: 80px;
        border-radius: 4px;
    }

    #section-landing .left-section .content h2 {
        margin-top: 40px;
    }

    #section-landing .left-section .content:after {
        content: "";
        display: block;
        height: 50vh;
        width: 100vw;
        position: absolute;
        background-color: var(--blanc-pure);
        bottom: -20%;
        z-index: 0;
    }

    #section-landing .left-section .content .fields-container {
        width: 100%;
        z-index: 1;
        margin-top: 40px;
    }

    #section-landing .left-section .content .fields-container > .line:first-of-type {
        flex-direction: column;
    }

    #section-landing .left-section .content .fields-container > .line:first-of-type > .input-field:nth-of-type(2),
    #section-landing .left-section .content .fields-container > .line:first-of-type > .input-field:first-of-type {
        width: 100%;
    }

    #section-landing .left-section a > img {
        left: 50%;
        transform: translateX(-50%);
        top: 5%;
        height: 32px;
        width: auto;
    }

    #section-landing .left-section > img:nth-of-type(2) {
        width: 90px;
        height: auto;
    }

    #partieDynamic .left-section {
        background-color: var(--vertdeau);
    }

    #partieDynamic .left-section > img {
        left: 50%;
        transform: translateX(-50%);
        top: 3%;
        height: 32px;
        width: auto;
    }

    #partieDynamic .left-section > img:nth-of-type(2) {
        width: 90px;
        height: auto;
    }

    #partieDynamic .right-section > img:first-of-type {
        height: 32px;
        width: auto;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 3%;
        height: 32px;
        width: auto;
    }

    #partieDynamic .right-section > .content {
        margin: 0;
        margin-top: 80px;
        width: 90%;
        background-color: var(--blanc-pure);
        left: 50%;
        transform: translateX(-50%);
        height: 70%;
        position: absolute;
        padding: 12px;
        overflow: scroll;
        border-radius: 4px;
    }

    #partieDynamic .right-section h2 {
        margin-top: 24px;
        text-align: center;
    }

    #partieDynamic .right-section #recap-btn-container {
        position: absolute;
        bottom: 22px;
        left: 50%;
        transform: translateX(-50%);
        padding: 0;
        margin: 0;
        display: flex;
        align-items: flex-end;
        height: 95px;
    }

    #partieDynamic .right-section #recap-btn-container .main-button{
        min-width: 140px;
    }

    #partieFinal > .content,
    #questionsContainer {
        padding: 0 32px;
        margin: 0;
        margin-top: 80px;
        width: 90%;
        background-color: var(--blanc-pure);
        left: 50%;
        transform: translateX(-50%);
        height: 70%;
        border-radius: 4px;
        overflow-y: scroll;
    }

    #questionsContainer .top-question{
        position: relative;
        position: sticky;
        padding: 12px;
        background: white;
        z-index: 1;
        margin: 0;
        width: calc(100% + 8px);
    }

    #questionsContainer .question{
        height: 100%;
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    #questionsContainer .question .choices-container label {
        width: 100%;
        margin: 0;
        height: auto;
        min-width: auto;
        padding: 0;
        display: flex;
        justify-content: center;
    }

    #section-type-biens {
        padding: 0;
        margin: 0;
        margin-top: 80px;
        width: 90%;
        background-color: var(--blanc-pure);
        left: 50%;
        transform: translateX(-50%);
        height: 70%;
        border-radius: 4px;
    }

    #section-type-biens .question .choices-container{
        margin-top: 80px;
    }

    .recapitulatif-container #recapitulatif {
        padding: 0;
    }
    .recapitulatif-container #recapitulatif h4 {
        margin-bottom: 16px;
    }

    .recapitulatif-container #recapitulatif .recap-content {
        padding-left: 30px;
    }

    .recapitulatif-container #recapitulatif .recap-content .ligne {
        flex-wrap: wrap;
    }

    .recapitulatif-container #recapitulatif .recap-content .ligne > div:first-of-type {
        padding-left: 8px;
    }

    .recapitulatif-container #recapitulatif .recap-content .ligne p {
        line-height: 25px;
    }

    #section-type-biens .buttons-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%) translateY(95px);
        width: 100%;
        padding: 0;
        margin: 0;
        height: 95px;
    }

    #buttons-container{
        align-items: center;
        margin-top: 8px;
    }

    #questionsContainerButtons{
        width: 90%;
        margin: 0 auto;
        padding: 0;
        position: relative;
        bottom: auto;
    }

    #partieFinal{
        margin-top: 80px;
        height: calc(100% - 80px);
    }

    #partieFinal > .content{
        position: absolute;
        margin: 0!important;
    }

    #partieFinal > .content > div:first-of-type{
        margin-top: 24px;
        height: calc(100% - 24px);
    }

    #partieFinal .radio-container{
        margin-top: 20px;
    }
    #partieFinal #avisPro_textArea{
        height: calc(100% - 24px - 40px - 36px - 24px);
    }

    #partieFinal #avisPro_textArea textarea{
        width: 100%;
        min-height: 120px;
    }

    #partieFinal .privacy-container{
        bottom: 24px;
        width: 80%;
    }

    #partieFinal .buttons-container{
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        padding: 0;
        margin: 0;
        right: auto;
        height: 87px;
        display: flex;
        justify-content: flex-end;
        bottom: 33px;
    }

    .top-question {
        width: 100%;
        margin-top: 12px;
        top: 0;
    }

    .top-question h2 {
        text-align: center;
    }

    .top-question p {
        text-align: center;
    }

    .question .choices-container {
        display: flex;
        flex-direction: column;
        gap: 12px;
        justify-content: center;
        padding: 0;
    }

    #section-type-biens .choices-container {
        margin-top: 80px;
        height: 100%;
        padding: 0 32px;
        overflow: scroll;
        gap: 0;
        justify-content: start;
        box-sizing: border-box;
    }

    .question .choices-container .line {
        flex-direction: column;
        display: block;
    }

    .question .choices-container .line .bouton-selection-biens{
        margin-bottom: 12px;
    }

    .choices-container input[type=radio],
    .choices-container input[type="checkbox"] {
        display: none;
    }

    .toggle-switch {
        position: relative;
        display: flex;
        align-items: center;
        height: 34px;
        padding-right: 60px;
    }

    .toggle-checkbox {
        display: none;
    }

    .toggle-label {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 0;
        width: 48px;
        height: 25px;
        border-radius: 17px;
        background-color: var(--blanc-pure);
        cursor: pointer;
        transition: background-color 0.3s;
        border: 1px solid var(--grey);
    }

    .toggle-label:before {
        content: "";
        position: absolute;
        top: 4px;
        left: 4px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background-color: var(--noire-riche);
        transition: transform 0.3s;
    }

    .toggle-checkbox:checked + .toggle-label {
        background-color: var(--vertdeau5);
    }

    .toggle-checkbox:checked + .toggle-label:before {
        transform: translateX(22px);
        background-color: var(--blanc-pure);
    }

    .transition-container {
        height: auto;
        margin: 0;
    }

    /*style de la progress bar*/
    #progress-bar{
        background-color: var(--vertdeau2);
        margin: 0;
        width: 90%;
        left: 50%;
        transform: translateX(-50%);
        position: absolute;
        height: 8px;
        overflow: hidden;
        margin-top: 80px;
        z-index: 1;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
    }

    #isDone{
        background-color: var(--vertdeau5);
        height: 8px;
        width: 0%;
        transition: width 0.5s;
    }



    /*Responsive de la version mobile de la page success*/
    .success-section .bottom p{
        width: 90%;
        margin-top: 24px;
    }

    .success-section .top a > img:first-of-type{
        display: none;
    }

    .success-section .bottom > img:first-of-type{
        margin-top: 32px;
        height: 40px;
    }

    .success-section .bottom img:nth-of-type(2){
        width: 90%;
        transform: rotate(-12deg);
        bottom: 5%;
    }

    .error-container{
        transform: translateY(-24px);
        position: absolute;
        top: 0;
    }

    .message{
        position: sticky;
        width: 100%;
        bottom: 0;
        background-color: var(--blanc-pure);
        height: 100%;
    }

    .error-message{
        text-align: center!important;
    }
}

@media (min-width: 769px) and (max-height: 870px) {
    #partieDynamic .left-section > img{
        height: 32px;
    }

    .top-question{
        top: 12%;
    }

    h2{
        font-size : 1.8rem;
    }

    #section-landing h2,
    .left-section h2{
        font-size: 2.1rem;
    }

    .question .choices-container{
        gap: 2%;
    }

    #questionsContainer,
    #section-type-biens{
        padding-top: 15%;
    }

    #section-type-biens{
        padding-bottom: 10%;
    }
}


/*Test pour les erreurs*/
.error-container{
    background-color: transparent;
    height: 24px;
    width: 100%;
}


.error-message{
    color: var(--redError);
    text-align: end;
}

.right-section p {
    color: var(--blanc-pure);
}

.cassan-logo {
    position: absolute;
    top: 5%;
    left: 5%;
    height: 48px;
    display: inline-block;
    z-index: 9999;          /* 🔥 clé */
    pointer-events: auto;  /* sécurité */
}

.cassan-logo img {
    height: 100%;
    width: auto;
    display: block;
    pointer-events: none;  /* 🔥 évite le blocage */
}