@font-face {
    font-family: "Roboto";
    src: url("../font/Roboto-ExtraLightItalic.eot");
    src: url("../font/Roboto-ExtraLightItalic.eot?#iefix") format("embedded-opentype"), url("../font/Roboto-ExtraLightItalic.woff2") format("woff2"),
        url("../font/Roboto-ExtraLightItalic.woff") format("woff"), url("../font/Roboto-ExtraLightItalic.ttf") format("truetype"),
        url("../font/Roboto-ExtraLightItalic.svg#Roboto-ExtraLightItalic") format("svg");
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../font/Roboto-Black.eot");
    src: url("../font/Roboto-Black.eot?#iefix") format("embedded-opentype"), url("../font/Roboto-Black.woff2") format("woff2"),
        url("../font/Roboto-Black.woff") format("woff"), url("../font/Roboto-Black.ttf") format("truetype"),
        url("../font/Roboto-Black.svg#Roboto-Black") format("svg");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../font/Roboto-ExtraBold.eot");
    src: url("../font/Roboto-ExtraBold.eot?#iefix") format("embedded-opentype"), url("../font/Roboto-ExtraBold.woff2") format("woff2"),
        url("../font/Roboto-ExtraBold.woff") format("woff"), url("../font/Roboto-ExtraBold.ttf") format("truetype"),
        url("../font/Roboto-ExtraBold.svg#Roboto-ExtraBold") format("svg");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../font/Roboto-Thin.eot");
    src: url("../font/Roboto-Thin.eot?#iefix") format("embedded-opentype"), url("../font/Roboto-Thin.woff2") format("woff2"),
        url("../font/Roboto-Thin.woff") format("woff"), url("../font/Roboto-Thin.ttf") format("truetype"),
        url("../font/Roboto-Thin.svg#Roboto-Thin") format("svg");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../font/Roboto-ThinItalic.eot");
    src: url("../font/Roboto-ThinItalic.eot?#iefix") format("embedded-opentype"), url("../font/Roboto-ThinItalic.woff2") format("woff2"),
        url("../font/Roboto-ThinItalic.woff") format("woff"), url("../font/Roboto-ThinItalic.ttf") format("truetype"),
        url("../font/Roboto-ThinItalic.svg#Roboto-ThinItalic") format("svg");
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../font/Roboto-SemiBoldItalic.eot");
    src: url("../font/Roboto-SemiBoldItalic.eot?#iefix") format("embedded-opentype"), url("../font/Roboto-SemiBoldItalic.woff2") format("woff2"),
        url("../font/Roboto-SemiBoldItalic.woff") format("woff"), url("../font/Roboto-SemiBoldItalic.ttf") format("truetype"),
        url("../font/Roboto-SemiBoldItalic.svg#Roboto-SemiBoldItalic") format("svg");
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../font/Roboto-LightItalic.eot");
    src: url("../font/Roboto-LightItalic.eot?#iefix") format("embedded-opentype"), url("../font/Roboto-LightItalic.woff2") format("woff2"),
        url("../font/Roboto-LightItalic.woff") format("woff"), url("../font/Roboto-LightItalic.ttf") format("truetype"),
        url("../font/Roboto-LightItalic.svg#Roboto-LightItalic") format("svg");
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../font/Roboto-BlackItalic.eot");
    src: url("../font/Roboto-BlackItalic.eot?#iefix") format("embedded-opentype"), url("../font/Roboto-BlackItalic.woff2") format("woff2"),
        url("../font/Roboto-BlackItalic.woff") format("woff"), url("../font/Roboto-BlackItalic.ttf") format("truetype"),
        url("../font/Roboto-BlackItalic.svg#Roboto-BlackItalic") format("svg");
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../font/Roboto-ExtraBoldItalic.eot");
    src: url("../font/Roboto-ExtraBoldItalic.eot?#iefix") format("embedded-opentype"), url("../font/Roboto-ExtraBoldItalic.woff2") format("woff2"),
        url("../font/Roboto-ExtraBoldItalic.woff") format("woff"), url("../font/Roboto-ExtraBoldItalic.ttf") format("truetype"),
        url("../font/Roboto-ExtraBoldItalic.svg#Roboto-ExtraBoldItalic") format("svg");
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../font/Roboto-Italic.eot");
    src: url("../font/Roboto-Italic.eot?#iefix") format("embedded-opentype"), url("../font/Roboto-Italic.woff2") format("woff2"),
        url("../font/Roboto-Italic.woff") format("woff"), url("../font/Roboto-Italic.ttf") format("truetype"),
        url("../font/Roboto-Italic.svg#Roboto-Italic") format("svg");
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../font/Roboto-BoldItalic.eot");
    src: url("../font/Roboto-BoldItalic.eot?#iefix") format("embedded-opentype"), url("../font/Roboto-BoldItalic.woff2") format("woff2"),
        url("../font/Roboto-BoldItalic.woff") format("woff"), url("../font/Roboto-BoldItalic.ttf") format("truetype"),
        url("../font/Roboto-BoldItalic.svg#Roboto-BoldItalic") format("svg");
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../font/Roboto-SemiBold.eot");
    src: url("../font/Roboto-SemiBold.eot?#iefix") format("embedded-opentype"), url("../font/Roboto-SemiBold.woff2") format("woff2"),
        url("../font/Roboto-SemiBold.woff") format("woff"), url("../font/Roboto-SemiBold.ttf") format("truetype"),
        url("../font/Roboto-SemiBold.svg#Roboto-SemiBold") format("svg");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../font/Roboto-MediumItalic.eot");
    src: url("../font/Roboto-MediumItalic.eot?#iefix") format("embedded-opentype"), url("../font/Roboto-MediumItalic.woff2") format("woff2"),
        url("../font/Roboto-MediumItalic.woff") format("woff"), url("../font/Roboto-MediumItalic.ttf") format("truetype"),
        url("../font/Roboto-MediumItalic.svg#Roboto-MediumItalic") format("svg");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../font/Roboto-Light.eot");
    src: url("../font/Roboto-Light.eot?#iefix") format("embedded-opentype"), url("../font/Roboto-Light.woff2") format("woff2"),
        url("../font/Roboto-Light.woff") format("woff"), url("../font/Roboto-Light.ttf") format("truetype"),
        url("../font/Roboto-Light.svg#Roboto-Light") format("svg");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../font/Roboto-Regular.eot");
    src: url("../font/Roboto-Regular.eot?#iefix") format("embedded-opentype"), url("../font/Roboto-Regular.woff2") format("woff2"),
        url("../font/Roboto-Regular.woff") format("woff"), url("../font/Roboto-Regular.ttf") format("truetype"),
        url("../font/Roboto-Regular.svg#Roboto-Regular") format("svg");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../font/Roboto-Medium.eot");
    src: url("../font/Roboto-Medium.eot?#iefix") format("embedded-opentype"), url("../font/Roboto-Medium.woff2") format("woff2"),
        url("../font/Roboto-Medium.woff") format("woff"), url("../font/Roboto-Medium.ttf") format("truetype"),
        url("../font/Roboto-Medium.svg#Roboto-Medium") format("svg");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../font/Roboto-ExtraLight.eot");
    src: url("../font/Roboto-ExtraLight.eot?#iefix") format("embedded-opentype"), url("../font/Roboto-ExtraLight.woff2") format("woff2"),
        url("../font/Roboto-ExtraLight.woff") format("woff"), url("../font/Roboto-ExtraLight.ttf") format("truetype"),
        url("../font/Roboto-ExtraLight.svg#Roboto-ExtraLight") format("svg");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../font/Roboto-Bold.eot");
    src: url("../font/Roboto-Bold.eot?#iefix") format("embedded-opentype"), url("../font/Roboto-Bold.woff2") format("woff2"),
        url("../font/Roboto-Bold.woff") format("woff"), url("../font/Roboto-Bold.ttf") format("truetype"),
        url("../font/Roboto-Bold.svg#Roboto-Bold") format("svg");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #e04a2f;
    --primary-color-dark: #c03d27;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
}

/* ============================================= */
/* STYLES PAGE D'ACCUEIL                */
/* ============================================= */

body,
html {
    height: 100%;
    margin: 0;
    background-color: #fff; /* Fond blanc par défaut */
}

.landing-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.landing-page .logo img {
    width: 200px;
    margin-bottom: 20px;
}

.landing-container {
    display: flex;
    flex-grow: 1;
    width: 100%;
    margin: 0 auto;
}

.content-left {
    flex-basis: 50%;
    padding: 1rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    max-width: 700px;
    margin-left: auto;
}

.content-right {
    flex-basis: 50%;
    background-image: linear-gradient(to right, white 15%, rgba(255, 255, 255, 0) 60%), url("../img/AET_6004.jpg");
    background-size: cover;
    background-repeat: no-repeat;
}

.intro {
    display: flex;
    align-items: center;
    gap: 15px;
}

.calculator-icon {
    width: 82px;
    height: 101px;
}

.content-left h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
    margin: 0;
}

.subtitle {
    font-size: 1rem;
    color: #555;
    max-width: 500px;
    margin-bottom: 1.5rem;
}

.btn-start {
    align-self: flex-start; /* Le bouton ne prend pas toute la largeur */
    font-size: 1.1rem;
    padding: 18px 35px;
    text-decoration: none;
}
/*lien du devis en ligne dans la page resultat*/
.lienDevis {
    text-decoration: none;
    font-weight: bold;
    color: #b92305;
    text-decoration: underline;
}

/* Section "Comment ça marche ?" */
.how-it-works {
    margin-top: 2rem;
}

.how-it-works h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.how-it-works ol {
    list-style: none;
    padding-left: 0;
    counter-reset: step-counter; /* Initialise notre compteur */
}

.how-it-works li {
    position: relative;
    padding-left: 50px; /* Espace pour le cercle numéroté */
    margin-bottom: 1.2rem;
    font-size: 1rem;
    line-height: 1.5;
}

.how-it-works li::before {
    counter-increment: step-counter; /* Incrémente le compteur à chaque li */
    content: counter(step-counter); /* Affiche la valeur du compteur */
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #fff;
    color: #b92305;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid #b92305;
}

/* Responsive pour les tablettes et mobiles */
@media (max-width: 992px) {
    .content-right {
        display: none; /* On cache l'image sur les écrans plus petits */
    }
    .content-left {
        flex-basis: 100%;
        padding: 2rem;
        text-align: center;
    }
    .intro {
        flex-direction: column;
        align-items: center;
    }
    .btn-start {
        align-self: center; /* On centre le bouton */
    }
    .how-it-works {
        text-align: left;
    }
}

html,
body {
    height: 100%;
    background-color: #fff;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}
* {
    font-family: "Roboto", Arial, sans-serif;
    box-sizing: border-box;
}

.form-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    align-items: center;
    padding: 20px 40px;
    background-color: #fff;
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    margin-right: 20px;
    width: 138px;
    object-fit: cover;
}

.progress-bar-container {
    position: relative;
    width: 100%;
    background-color: #e9ecef;
    border-radius: 8px;
    margin-top: 30px;
    height: 8px;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 8px;
    width: 0;
    transition: width 0.4s ease-out;
}

.progress-text {
    position: absolute;
    bottom: 15px;
    left: 0;
    transform: translateX(-50%);

    background-color: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;

    transition: left 0.4s ease-out;
}

.progress-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--primary-color) transparent transparent transparent;
}

.step {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 0 0 0;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}
@media screen and (max-width: 768px) {
    .step,
    .navigation-buttons {
        padding: 20px !important;
    }
}
#step13.step {
    padding: 0 0 0 0;
}

.step.active {
    display: flex;
}

.chat-bubble {
    width: 100%;
    max-width: 600px;
}

.chat-bubble .avatar {
    border-radius: 50%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-weight: bold;
    color: var(--text-color);
    margin-right: 15px;
    flex-shrink: 0;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.chat-bubble .avatar img {
    width: 50px;
    height: 50px;
    background-color: #f0f0f0;
    object-fit: cover;
}

.chat-bubble .message {
    font-weight: 500;
    padding: 0 25px 20px 0;
    line-height: 1.6;
    font-size: 0.95em;
    color: var(--text-color);
    flex-grow: 1;
}
#step13 .chat-bubble .message {
    padding: 0 25px 15px 0;
}
div:not(.step13) .chat-bubble .message span {
    font-weight: 400;
}

.form-group {
    width: 100%;
    max-width: 600px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input[type="text"] {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
    background-color: #fff;
}

.form-group input[type="text"]:focus {
    border-color: var(--primary-color);
}

.form-group input[type="text"]::placeholder {
    color: #999;
}

.form-group-inline {
    display: flex;
    gap: 1rem;
    width: 100%;
    align-items: flex-start;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group.zip-code {
    flex: 1;
}

.input-group.surface {
    flex: 1;
}
@media screen and (max-width: 768px) {
    .input-group {
        width: 100%;
    }
    .input-group.zip-code,
    .input-group.surface {
        flex: 1 1 100%;
        width: 100%;
    }
}

.input-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.input-group label .required,
.input-group label::after {
    content: "";
}

/* Style the asterisk */
.input-group label {
    position: relative;
}

.input-group label:has-text("*")::before {
    color: #dc3545;
}

/* Alternative way to style asterisk */
.required-asterisk {
    color: #dc3545;
    margin-left: 2px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #a5a5a5;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

/* Input with unit styling */
.input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-unit input {
    width: 100%;
    padding: 12px 40px 12px 16px; /* Extra padding on right for unit */
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.input-with-unit .unit {
    position: absolute;
    right: 16px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none; /* Prevents clicking on the unit */
}

.input-group input:focus,
.input-with-unit input:focus {
    outline: none;
    border-color: #007bff;
}

.input-group input::placeholder,
.input-with-unit input::placeholder {
    color: #999;
    font-style: italic;
}
.input-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: text;
    z-index: 1;
}

.input-with-unit input:not(:disabled) + .input-overlay {
    display: none;
}

.input-group .error-message {
    margin-top: 8px;
    font-size: 14px;
    color: #dc3545;
    display: none;
}

/* Style asterisks in labels */
.input-group label {
    color: #333;
}

.input-group label::after {
    content: "";
}

/* Target the asterisk specifically */
.input-group label:contains("*") {
    color: #333;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .form-group-inline {
        flex-direction: column;
        gap: 1rem;
    }
}

.required-asterisk {
    color: #dc3545; /* Red color for required asterisk */
    margin-left: 2px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 600px;
}

.option-card {
    background-color: #f5f5f5;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    position: relative;
}

.option-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.option-card.selected {
    border-color: var(--primary-color);
    background-color: #fdeae3;
}
@media (max-width: 768px) {
    .options-grid,
    #step13 .options-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    #step13 .option-card {
        display: flex !important;
    }

    .option-card {
        flex-direction: row;
        justify-content: flex-start;
        padding: 15px;
        min-height: auto;
        text-align: left;
        width: 100%;
    }

    .option-card .icon {
        display: none;
    }

    .option-card p {
        margin: 0;
        font-weight: 500;
    }
    .option-card::before {
        content: "";
        display: block;
        width: 22px;
        height: 22px;
        border: 2px solid #ddd;
        border-radius: 50%;
        margin-right: 15px;
        flex-shrink: 0;
        background-color: #fff;
    }

    .option-card.selected::after {
        display: none !important;
    }

    .option-card.selected {
        border-color: #b92305;
        background-color: #fef5f3;
    }

    .option-card.selected::before {
        border-color: #b92305;
        background-color: #b92305;
        content: "✓";
        color: white;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    .option-card.selected p {
        color: #b92305;
    }

    
}
/* Add a orange background and white check on selected */
.option-card.option-card.selected:after,
.inline-option-card.selected::after {
    content: url("../img/check.png");
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-card .icon {
    font-size: 3em;
    margin-bottom: 15px;
    color: #666;
}

.option-card.selected .icon {
    color: var(--primary-color);
}

.option-card p {
    margin: 0;
    color: var(--text-color);
    font-size: 1em;
}

.conditional-question {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e1e5e9;
}

.question-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.inline-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.inline-option-card {
    display: flex;
    align-items: center;
    position: relative;
    gap: 0.5rem;
    padding: 12px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 290px;
    justify-content: center;
    color: #000;
}

.inline-option-card:hover {
    border-color: var(--primary-color);
    background-color: #fdeae3;
}

.inline-option-card.selected {
    border-color: var(--primary-color);
    background-color: #fdeae3;
}

.inline-option-card .icon {
    font-size: 18px;
    flex-shrink: 0;
}

.inline-option-card p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
    .inline-options {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .inline-option-card,
    #elevatorQuestion {
        width: 100%;
    }

   
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 0 30px 0;
    background-color: #fff;
    box-sizing: border-box;
    text-align: center;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}

.btn-secondary {
    background-color: #e0e0e0;
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #d0d0d0;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #c03d27;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-message {
    color: var(--primary-color);
    font-size: 0.85em;
    margin-top: 5px;
    display: none;
}
.help-text {
    margin-top: 12px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.help-text strong {
    font-weight: 600;
    color: #333;
}

/* Step 6 */
#step6 .form-group-inline {
    align-items: center;
}
/* Specific padding for proprietaire (shorter unit) */
.step6-proprietaire .input-with-unit input {
    padding-right: 40px; /* Standard padding for € */
}

/* Specific padding for locataire (longer unit) */
.step6-locataire .input-with-unit input {
    padding-right: 70px; /* Extra padding for €/mois */
}

#step6 .input-with-unit .unit {
    right: 16px;
    font-size: 13px;
    white-space: nowrap;
}

/* step 7*/
#step7 .input-with-unit input {
    padding-right: 70px;
}

/* Step 13 - Custom form */
/* Form styling for step 13 */
.form-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 16px;
}

#step13 .form-group,
#step13 .form-group-inline {
    margin-bottom: 15px;
}
#step13 .input-group {
    flex: 1;
}
#step13 .civilite {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 10px;
}
#step13 .option-card {
    background: transparent;
    min-height: auto;
    line-height: normal;
    display: block;
    border: 1px solid #a5a5a5;
    border-radius: 6px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    -ms-border-radius: 6px;
    -o-border-radius: 6px;
}
#step13 .option-card.option-card.selected::after {
    content: none;
}

#step13 .option-card.option-card.selected {
    background-color: #fdeae3;
    border-color: var(--primary-color);
}
#step13 .option-card .icon {
    display: none;
}
#step13 .options-grid {
    grid-template-columns: repeat(3, 1fr);
}

#step13 .message span {
    display: block;
    font-size: 12px;
    color: #b92305;
    font-weight: 400;
    margin-top: 5px;
}
/* Radio buttons */
.radio-group {
    display: flex;
    gap: 2rem;
    margin-bottom: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

/* Checkbox */
.checkbox-option {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 24px;
    border: 1px solid #a5a5a5;
    border-radius: 6px;
    background: #f5f5f5;
    padding: 12px 16px;
    margin-bottom: -10px !important;
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #a5a5a5;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Email and tel inputs */
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
    background-color: #fff;
}

.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus {
    border-color: var(--primary-color);
}

.form-group input[type="email"]::placeholder,
.form-group input[type="tel"]::placeholder {
    color: #999;
}

/* Loader */
/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-screen.show {
    display: flex;
}

.loading-screen.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.loading-content {
    text-align: center;
    max-width: 400px;
    padding: 40px 20px;
}

/* Custom loader adapted to your brand colors */
.loader {
    width: 60px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(farthest-side, var(--primary-color) 94%, #0000) top/10px 10px no-repeat,
        conic-gradient(#0000 30%, var(--primary-color));
    -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 10px), #000 0);
    mask: radial-gradient(farthest-side, #0000 calc(100% - 10px), #000 0);
    animation: l13 1s infinite linear;
    margin: 0 auto 30px auto;
}

@keyframes l13 {
    100% {
        transform: rotate(1turn);
    }
}

.loading-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

/* Basic icon styling - can be replaced with actual SVG or font icons */
.option-card .icon {
    max-height: 72px;
}
.icon {
    display: block;
    width: 64px;
    height: 64px;
    background-color: #000;
    transition: background-color 0.2s ease-in-out;

    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.icon-stairs,
.icon-elevator,
.icon-services-yes,
.icon-internet-yes,
.icon-ground-floor,
.icon-no-elevator,
.icon-services-no,
.icon-internet-no {
    width: 35px;
    height: 30px;
}
.icon-key {
    -webkit-mask-image: url("../img/key.svg");
    mask-image: url("../img/key.svg");
}
.icon-calendar {
    -webkit-mask-image: url("../img/calendar.svg");
    mask-image: url("../img/calendar.svg");
}
.icon-house {
    -webkit-mask-image: url("../img/house.svg");
    mask-image: url("../img/house.svg");
}
.icon-apartment {
    -webkit-mask-image: url("../img/apartment.svg");
    mask-image: url("../img/apartment.svg");
}
.icon-garden {
    -webkit-mask-image: url("../img/garden.svg");
    mask-image: url("../img/garden.svg");
}
.icon-pool {
    -webkit-mask-image: url("../img/pool.svg");
    mask-image: url("../img/pool.svg");
}
.icon-balcony {
    -webkit-mask-image: url("../img/balcony.svg");
    mask-image: url("../img/balcony.svg");
}
.icon-terrace {
    -webkit-mask-image: url("../img/terrace.svg");
    mask-image: url("../img/terrace.svg");
}
.icon-estimate {
    -webkit-mask-image: url("../img/nope.svg");
    mask-image: url("../img/nope.svg");
}
.icon-stairs,
.icon-elevator,
.icon-services-yes,
.icon-internet-yes {
    -webkit-mask-image: url("../img/oui.svg");
    mask-image: url("../img/oui.svg");
}
.icon-ground-floor,
.icon-no-elevator,
.icon-services-no,
.icon-internet-no {
    -webkit-mask-image: url("../img/non.svg");
    mask-image: url("../img/non.svg");
}
.icon-bathroom {
    -webkit-mask-image: url("../img/bathroom.svg");
    mask-image: url("../img/bathroom.svg");
}
.icon-exterior {
    -webkit-mask-image: url("../img/exterior.svg");
    mask-image: url("../img/exterior.svg");
}
.icon-doors {
    -webkit-mask-image: url("../img/doors.svg");
    mask-image: url("../img/doors.svg");
}
.icon-stairlift {
    -webkit-mask-image: url("../img/stairlift.svg");
    mask-image: url("../img/stairlift.svg");
}
.icon-gym {
    -webkit-mask-image: url("../img/gym.svg");
    mask-image: url("../img/gym.svg");
}
.icon-swimming {
    -webkit-mask-image: url("../img/swimming.svg");
    mask-image: url("../img/swimming.svg");
}

.option-card.selected .icon,
.inline-option-card.selected .icon {
    background-color: #b92305;
}

/* ============================================= */
/* STYLES PAGE DE RÉSULTATS             */
/* ============================================= */
.results-page {
    min-height: 100vh;
}

.landing-header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.results-page .landing-header #progressBar {
    width: 100%;
}
.results-page .landing-header .progress-text {
    left: 100%;
    background: transparent;
}
.results-page .landing-header .progress-text::after {
    content: url("../img/end.png");
    position: static;
    border: none;
    height: 30px;
    display: block;
}

.results-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.results-container h1 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: #000000;
}

.results-card {
    background-color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

.results-card .card-icon img {
    height: 54px;
    margin-bottom: 1rem;
}

.results-card p {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.final-cost {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
}
.final-cost:after {
    content: "";
    display: block;
    text-align: center;
    margin: 25px auto;
    width: 90px;
    height: 2px;
    background-color: #a5a5a5;
}
.final-cost #finalCost {
    font-size: 3.5rem;
}

.compare-link {
    display: block;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-decoration: underline;
    font-weight: 500;
}

.card-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.card-buttons .btn-secondary {
    background-color: #fff;
    border: 1px solid #ddd;
    color: var(--text-color);
}
.card-buttons .btn-secondary:hover {
    background-color: #f5f5f5;
}

/* --- Synthèse --- */
.synthesis-section {
    margin-top: 3rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
}

.synthesis-section h2 {
    font-size: 1.5rem;
    margin: 0;
}

.synthesis-section .synthesis-intro {
    color: #1e1e1e;
    margin: 1.5rem 0 2rem 0;
}

.synthesis-details h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    margin-top: 1.5rem;
    margin-bottom: 0;
    padding-bottom: 0.5rem;
}

.synthesis-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.synthesis-line {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    align-items: baseline;
}
.synthesis-line div {
    max-width: 80%;
}
.synthesis-line div span {
    font-weight: bold;
}

.synthesis-line span:last-child {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pencil-icon {
    width: 14px;
    height: 14px;
}

.synthesis-total {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--text-color);
}

.synthesis-total .total-label {
    font-size: 1.2rem;
    font-weight: 700;
}

.synthesis-total .total-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
}

.synthesis-line.services-line {
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.synthesis-line.bold {
    font-weight: 600;
}
.results-container .btn-primary {
    text-decoration: none;
}
/* Style for the inline editing input */
.results-container .inline-edit-input {
    width: 80px;
    padding: 4px 8px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid #007bff;
    border-radius: 4px;
    text-align: right;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

.results-container .value-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-container .btn-validate {
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background-color: var(--primary-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.results-container .btn-validate:hover {
    background-color: var(--primary-color-dark);
}

.results-container .btn-validate:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.results-page footer {
    background: #f2f2f2;
}
.results-page .results-description {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}
.results-page .description-intro {
    font-size: 1rem;
}
.results-page .description-prestations {
    font-size: 1.1rem;
}
.results-page .description-prestations span {
    font-weight: 600;
}

/* ============================================= */
/* STYLES POUR LES INFOBULLES (TOOLTIPS)        */
/* ============================================= */

.info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    margin-left: 8px;
    background-color: #000000;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    font-weight: normal;
    font-style: italic;
    cursor: help;
    position: relative;
}

.info-icon .tooltip-text {
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    color: #000;
    padding: 10px 15px;
    border-radius: 4px;
    border: 2px solid #d9d9d9;
    width: 280px;
    text-align: left;
    font-size: 0.85rem;
    font-style: normal;
    font-weight: inherit !important;
    line-height: 1.5;
    z-index: 10;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
}

.info-icon .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.info-icon:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.synthesis-line > span:first-child {
    display: flex;
    align-items: center;
}

#rgpd {
    display: none;
    max-width: 600px;
    margin: 20px auto;
    font-size: 0.7em;
    color: grey;
}
/* ============================================= */
/* STYLES POUR LA POPUP DE REPRISE              */
/* ============================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none; /* Masqué par défaut */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    padding: 2rem 2.5rem;
    border-radius: 8px;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-content p {
    font-size: 1.1rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
#restartBtn {
    background: #fff;
    border: 1px solid #d43a06;
    border-radius: 7px;
    color: #d43a06;
    font-weight: 700;
}
#resumeBtn {
}
#resultCardIcon {
    visibility: hidden;
}

/* ======================================================= */
/* STYLES POUR L'AUTOCOMPLÉTION DU CODE POSTAL          */
/* ======================================================= */

.input-group.zip-code {
    position: relative; /* Nécessaire pour positionner la liste des résultats */
}

#zipCodeResults {
    display: none; /* Masqué par défaut */
    position: absolute;
    top: 75%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
}

#zipCodeResults ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#zipCodeResults li {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 0.9rem;
}

#zipCodeResults li:hover {
    background-color: #f5f5f5;
}

.selected-city-display {
    font-size: 0.9rem;
    color: #b92305;
    font-weight: 500;
    margin-top: 8px;
    height: 1em; /* Réserve l'espace pour éviter les sauts de page */
}

/* Responsive design */
@media (max-width: 768px) {
    .synthesis-section {
    padding: 0px;
}

   
}
