@font-face {
    font-family: 'Mont';
    src: url('../css/fonts/Mont-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Mont-Bold';
    src: url('../css/fonts/Mont-Bold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MeowSript';
    src: url('../css/fonts/MeowScript-Regular.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

.page {
    display: flex;
    flex-direction: column;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #f4f4f4 inset;
    -webkit-text-fill-color: #8a8a8a;
}

.is-invalid {
    border-color: red!important;
}

/* HEADER */

.header {
    background-color: #004f8f;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-header {
    height: 100%;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-header img {
    height: 100%;
    width: auto;
}

/* HERO */

.hero {
    display: flex;
}

.overlay {
    display: flex;
    flex-direction: column;
    padding: 50px;
}

.overlay-title {
    display: flex;
    font-family: 'MeowSript';
    font-size: 65px;
    color: #e95c62;
}

.overlay-text {
    font-family: 'Mont-Bold';
    font-size: 20px;
    color: #004f8f;
}

.overlay-text span {
    font-size: 13px;
}

/* HERO-IMAGE */

.hero-image {
    width: 520px;
    height: auto;
    background-color: #273f52;
}

.hero-image img {
    width: auto;
}

.hero-image-top,
.hero-image-bottom {
    display: none;
}

.modal-invisible-btn {
    position: absolute;
    top: 0px;
    right: 0px;
    background: transparent;
    border: none;
    opacity: 0;
    width: 100px;
    height: 100px;
    cursor: pointer;
}

.modal-rounded {
    border-radius: 30px;
    overflow: hidden;
}

/* HERO-FORM */

.form-services,
.form-housing,
.form-surface,
.form-contact {
    display: none;
}

.hero-form {
    display: flex;
    flex-direction: column;
    padding: 50px;
}

.hero-form {

    .form-progress,
    .form-title,
    .form-zipcode,
    .form-services,
    .form-housing,
    .form-surface,
    .form-contact,
    .form-submit {
        padding-bottom: 20px;
    }
}

.hero-form .input-text {
    font-family: 'Mont';
    font-size: 14px;
    color: #8a8a8a;
    background-color: #f4f4f4;
    border-radius: 5pt;
    padding: 5px 5px 5px 5px;
    border: 2px solid #004f8f;
    outline: none;
}

.input-header {
    display: flex;
    align-items: flex-start;
}

.form-question {
    color: #004f8f;
    font-size: 19px;
    font-family: 'Mont-Bold';
    font-weight: bold;
}

.form-step {
    margin-right: 10px;
}

.form-title {
    color: #e95c62;
    font-size: 28px;
    font-family: 'Mont-Bold';
    font-weight: bold;
    line-height: 100%;
}

.form-title span {
    font-size: 16px !important;
}

.zipcode-input {
    margin-top: 10px;
    margin-left: 35px;
    padding-left: 24px;
    position: relative;
    display: inline-block;
}

.zipcode-input input {
    width: 400px;
}

.zipcode-input .icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.zipcode-error {
    display: none;
    padding: 35px;
}

.zipcode-403 {
    display: none;
    padding: 35px;
}

.zipcode-error p {
    line-height: 100%;
    color: #004f8f;
    font-weight: bold;
    font-size: 17px;
}

.zipcode-error p span {
    font-size: 10px;
}

.services-input {
    margin-top: 10px;
    margin-left: 35px;
    display: flex;
}

.services-input input[type="radio"] {
    display: none;
}

.services-input label {
    cursor: pointer;
}

.services-input input[type="radio"]:checked+label img {
    transform: scale(1.1);
}

#radio-menage:checked+label img {
    content: url('../images/menage_actif.png');
}

#radio-repassage:checked+label img {
    content: url('../images/repassage_actif.png');
}

#radio-menage_repassage:checked+label img {
    content: url('../images/menage_repassage_actif.png');
}

.housing-input {
    margin-top: 10px;
    margin-left: 35px;
    display: flex;
    gap: 30px;
}

.housing-input input[type="radio"] {
    display: none;
}

.housing-input label {
    cursor: pointer;
}

.housing-input label img {
    height: 90%;
    transition: transform 0.2s;
}

.housing-input input[type="radio"]:checked+label img {
    transform: scale(1.1);
}

#radio-appartement:checked+label img {
    content: url('../images/appartement_actif.png');
}

#radio-maison:checked+label img {
    content: url('../images/maison_actif.png');
}

.surface-input {
    margin-top: 10px;
    margin-left: 60px;
    display: flex;
}

.surface-input input[type="radio"] {
    display: none;
}

.surface-input label {
    cursor: pointer;
}

.surface-input label img {
    width: 170px;
    transition: transform 0.2s;
    margin-right: 20px;
}

.surface-input input[type="radio"]:checked+label img {
    transform: scale(1.1);
}

#radio-surface_1:checked+label img {
    content: url('../images/superficie_1_actif.png');
}

#radio-surface_2:checked+label img {
    content: url('../images/superficie_2_actif.png');
}

#radio-surface_3:checked+label img {
    content: url('../images/superficie_3_actif.png');
}

#radio-surface_4:checked+label img {
    content: url('../images/superficie_4_actif.png');
}

.contact-input {
    margin-top: 10px;
    margin-left: 60px;
}

.input-checkbox {
    display: flex;
    gap: 30px;
}

.input-checkbox label {
    font-family: 'Mont';
    font-size: 14px;
    color: #004f8f;
}

.input-text-group {
    display: flex;
    margin-top: 10px;
}

.input-text-group input {
    width: 170px;
    height: 35px;
    margin-right: 20px;
    text-align: center;
}

.form-submit {
    margin-top: 10px;
    margin-left: 60px;
    font-family: 'Mont-Bold';
    font-size: 18px;
    font-weight: bold;
}

.form-submit button {
    color: white;
    background-color: #004f8f;
    border-radius: 5pt;
    padding: 10px 10px 10px 10px;
    border: 2px solid #004f8f;
}

.form-submit button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.legal-notices a{
    text-decoration: none;
    color: #004f8f;
    font-size: 10px;
}

.legal-notices-text {
    display: inline-block;
    color: #878787;
    font-size: 13px;
}

.legal-notices-text span {
    font-size: 10px;
}

.legal-notices-text a {
    text-decoration: none;
    color: #004f8f;
}

/* MENTIONS */

.pre-hero {
    background-color: #eb584e;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.pre-hero h3 {
    font-size: 19px;
    font-family: 'nexaregular';
}

.pre-hero h3 strong {
    font-family: 'nexabold';
}

.pre-hero h3 sup {
    font-size: .5em;
}

/* FOOTER */

.footer {
    background-color: #f4f4f4;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.partners {
    padding: 10px;
}

.partners img {
    width: 100%;
}

.footer-text {
    display: flex;
    flex-direction: column;
    color: #878787;
    font-size: 11px;
    font-family: 'Mont';
    padding: 10px;
}

.footer-text p:first-child {
    font-family: 'Mont-Bold';
}

.footer-link {
    color: #878787;
}

.footer-link:hover {
    color: #004f8f;
}

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

    .input-text-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .surface-input {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .hero-form {
        padding: 25px;
    }

}

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

    .hero {
        display: flex;
        flex-direction: column;
    }

    .hero-image {
        display: none;
    }

    .hero-image-bottom,
    .hero-image-top {
        display: flex;
        background-color: #273f52;
        justify-content: center;
    }

    .hero-image-top img {
        width: 100%;
    }

    .hero-image-bottom img {
        width: 100%;
    }

    .zipcode-input input {
        width: 350px;
    }

    .hero-form {
        padding: 10px;
    }
}

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

    .overlay-title {
        font-size: 45px;
    }

    .overlay-text {
        font-size: 15px;
    }

    .overlay-text span {
        font-size: 8px;
    }

    .hero-form {
        padding: 5px;
    }

    .form-question {
        font-size: 15px;
    }

    .zipcode-input input {
        width: 245px;
    }

    .zipcode-input {
        padding-left: 0px;
    }

    .services-input,
    .housing-input,
    .surface-input,
    .contact-input,
    .input-text-group {
        margin-left: 0px;
        align-items: center;
    }

    .services-input label img,
    .housing-input label img {
        width: 70px;
    }

    .services-input,
    .housing-input {
        justify-content: center;

    }

    .form-check {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 25%;
        padding-left: 0px;
    }

    .surface-input label img,
    .input-text-group input {
        margin-right: 0px;
        width: 140px;
    }

    .input-checkbox {
        justify-content: center;
        gap: 0px;
    }

    .form-submit {
        margin-left: 0px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

}