html,
body {
    margin: 0;
    padding: 0;
}

#custom_content_lp .responsive-height>img {
    position: absolute;
}

#custom_content_lp #tabs {
    position: absolute;
    top: 15px;
    left: 30px;
    width: 50%;
}

#custom_content_lp #tabs {
    justify-content: start;
}


#tabs h2 {
    margin-bottom: 0px;
    margin-top: 15px;
    /* color: white; */
}

#tabs label {
    font-family: "Mazda" !important;
    font-size: 0.85rem;
    letter-spacing: 2px;
    /* color: white; */
}

#tabs input {
    height: 1.25rem;
    margin: 5px 0 0;
    display: block;
    width: 80%;
    padding: 0.275rem 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#form-container {
    width: 75%;
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    padding: 10px;
}

#form-container form {
    padding: 1rem 2rem;
    font: "Mazda" !important;
}

#form-container h2 {
	font-size: 21px;
    font-weight: 700;
    letter-spacing: 5px;
    line-height: 1.4;
    margin-bottom: 30px!important;
    text-align: center;
    text-transform: uppercase;
}
.two-columns input {
	border: #CCC 1px solid;
    padding: 5px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
}
.two-columns label, .required {
	font-weight: 500;
    display: flex;
    margin: 8px 0;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-start;
}

#form-container > label {
	font-weight: 700;
}

#form-container ul.ui-tabs-nav {
    width: 100%;
    color: #AA032A;
    background-color: rgba(255, 255, 255, .75);
    padding: 5px 10px;
    border-radius: 3px;
}

#form-container div {
    margin-bottom: .25rem;
}

#form-container #btn-container {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bloc-custom .form #btn-container button {
	font-family: 'Mazda', sans-serif;
    width: 100%;
    color: white;
    margin: 15px 0 5px;
    border: 1px solid #ab092c;
    background-color: #ab092c;
    letter-spacing: 3px;
    padding: 0.7rem 6.5rem;
    font-size: 1rem;
    border-radius: 0.125rem;
    cursor: pointer;
}

.bloc2 {
    background: #F2F2F2 !important;
    /* background: tan!important; */
}

.bloc2 h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.bloc2 .steps {
    display: flex;
    justify-content: space-between;
    padding: 20px 0 60px;
}

.bloc2 .steps div {
    flex: 1;
    margin: 0 30px;
    padding: 5px;
    text-align: center;
}

.bloc2 .steps p {
    font-size: 16px;
    margin: 20px 0;
}

.bloc2 .steps b {
    font-weight: bold;
}

.bloc4 .txt-seo {
    padding: 20px 0;
}

.responsive-height {
    position: relative;
    height: 72vh;
    /* Default for large screens */
}

.responsive-height .text-over {
    position: absolute;
    right: 200px;
    top: 32px;
}

.responsive-height .text-over .date {
    font-size: 1.25rem;
}

.responsive-height .text-over .title {
    font-size: 2.25rem;
    font-weight: bolder;
}
.number {
    background-color: #000;
    color: #FFF;
    margin: 20px auto !important;
    display: block;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.6em;
}
.number_light {
	border : solid 2px #d8dadd;
	background-color: transparent;
    color: #000;
    margin: 20px auto !important;
    display: block;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.6em;
}
strong {
	font-weight: 700!important;
}
.ti_ccm {
	text-transform: uppercase;
	color: #ab092c;
    font-size: 1.5em;
}

/* Medium screens (e.g., tablets) */
@media (max-width: 1400px) {
    .responsive-height {
        height: 48vh;
    }
}

.custom-checkboxes-horizontal {
    margin: 0 !important;
    margin-bottom: 15px !important;
}

.custom-checkbox-row {
    display: flex;
    gap: 30px;
    /* spacing between checkbox+label pairs */
    flex-wrap: wrap;
    margin-bottom: .5rem !important;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 0 !important;
}

.custom-checkbox label {
    cursor: pointer;
}

/* Shared base style */
.custom-checkbox input[type="checkbox"],
.custom-checkbox input[type="radio"] {
    appearance: none;
    width: 1.5rem !important;
    height: 1.5rem !important;
    border: 2px solid #ccc;
    background-color: #fff;
    margin-right: 8px !important;
    cursor: pointer;
    position: relative;
}

/* Make radio buttons circular */
.custom-checkbox input[type="radio"] {
    border-radius: 50% !important;
}

/* Keep checkboxes with rounded square look */
.custom-checkbox input[type="checkbox"] {
    border-radius: 4px;
}

/* Common checked state */
.custom-checkbox input[type="checkbox"]:checked {
    background-color: black !important;
    border-color: black !important;
}

/* Checkmark for checkbox only */
.custom-checkbox input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 5px;
    height: 10px;
    border: solid aliceblue;
    border-width: 0 2px 2px 0;
    top: 3px;
    left: 9px;
    transform: rotate(45deg);
    display: none;
}

/* Show checkmark only when checkbox is checked */
.custom-checkbox input[type="checkbox"]:checked::before {
    display: block;
}

.custom-checkbox input[type="radio"]::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 10px;
    height: 10px;
    background-color: black;
    border-radius: 50%;
    display: none;
}

.custom-checkbox input[type="radio"]:checked::after {
    display: block;
}

.txt-seo #legal-text {
    padding: 0 1rem;
}

.smaller {
    font-size: 11px;
    text-align: justify;
}
.grey {
	color: #a8a8a8;
}

.two-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
	margin-bottom: 20px;
}

.two-columns > div {
    flex: 1 1 calc(50% - 20px);
    box-sizing: border-box;
}

.two-columns ul {
    color: #AA032A;
    padding: 2px 0;
}

#captcha {
    display: flex;
    justify-content: flex-end;
    /* Aligns the child to the right */
}



.bloc-custom {
    position: relative;
    display: block;
    min-height: 700px;
}

.bloc-custom .form-container {
    box-sizing: border-box;
    display: flex;
    width: 440px;
    background-color: #FFF;
    padding: 30px 30px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: flex-start;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 0px 25px 5px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

.bloc-custom .form {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.bloc-custom .form>div {
    margin-bottom: 15px;
}

.bloc-custom .visuel {
    box-sizing: border-box;
    float: right;
    display: flex;
    padding: 70px 0px 30px 500px;
    width: 100%;
    height: 700px;
    background-image: url(/img/front/header_campagne_202508_desktop.jpg);
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: right top;
    flex-direction: column;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
	gap: 10px;
}
.bloc-custom .sur-titre {
    color: #000;
    font-size: 2.2em;
    margin-bottom: 16px;
	font-weight: 500;
}
.bloc-custom .titre {
    color: #000;
	background-color: #FFF;
	padding: 12px;
    font-size: 3.2em;
    margin: 0;
	font-weight: 500;
}

.bloc-custom .date {
    color: #000;
    font-size: 1.2em;
}

.bloc-custom .texte {
    color: #000;
    font-size: 1.2rem;
	text-align: center;
    line-height: 110%;
}



#offre span.date {
    color: white;
    font-size: 1.5em;
    filter: drop-shadow(1px 4px 25px rgba(0, 0, 0, 1));
    padding-left: 20px;
}
#offre h1.titre {
    color: white;
    background-color: transparent;
    filter: drop-shadow(1px 4px 25px rgba(0, 0, 0, .75));
    padding: 0px;
}
#offre h1.titre .amount {
    font-size: 3.5em;
}
#offre h1.titre .month {
    font-size: .7em;
}
#offre div.texte-loyer {
    color: white;
    font-size: 1em;
    float: right;
    filter: drop-shadow(1px 4px 25px rgba(0, 0, 0, .75));
    background-color: rgba(121,90,61,.6);
    padding: 4px;
    text-align: right;
}

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

    /* on empile en colonne inversée pour que .visuel passe au-dessus de .form */
    .bloc-custom .bloc-custom {
        flex-direction: column-reverse;
        align-items: stretch;
        /* étire les enfants sur toute la largeur */
    }

    .bloc-custom .form {
        position: relative !important;
        top: 0;
        left: 0;
        padding: 0 !important;
    }

    /* désactive le positionnement absolute et full-width pour les deux blocs */
    .bloc-custom .form,
    .bloc-custom .visuel {
        position: relative !important;
        width: 100% !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
    }

    /* la couche interne du form prend aussi ses 100 % */
    .bloc-custom .form-container {
        width: 100% !important;
        max-width: none;
        padding: 3rem 2rem;
        /* optionnel : réduire le padding sur mobile */
        box-shadow: none;
        /* si vous voulez alléger l’affichage */
    }

    /* ajustements esthétiques pour .visuel */
    .bloc-custom .visuel {
        box-sizing: border-box;
		background-image: url(/img/front/header_campagne_202508_mobile.jpg);
		background-color: #68a9c1;
		min-height: 510px;
		background-size: 100% auto;
		background-position: bottom center;
		padding: 30px 10px;
		text-align: center;
		height: auto !important;
    }

    .bloc-custom .sur-titre {
        color: #000;
        font-size: 1.4em;
        margin: 0;
    }

    .bloc-custom .titre {
        color: #000;
        font-size: 1.8em;
        margin: 0;
    }

    .bloc-custom .date {
        color: #000;
        font-size: 0.9em;
    }

    .bloc-custom .texte {
        color: #000;
        font-size: 0.9em;
    }

    .two-columns {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 1rem;
    }

    .two-columns>div {
        flex: 1 1 calc(50% - 15px);
        box-sizing: border-box;
    }

    .two-columns label {
        display: block;
    }

    .two-columns input {
        width: 100%;
    }

    .bloc2 .steps {
        flex-direction: column;
    }

    .visuel {
        height: auto;
    }
    #offre {
        display: flex;
        flex-direction: column;
        margin-top: 4.6em !important;
    }
    #offre span.date {
        text-align: left;
        font-size: 1em;
    }
    #offre div.texte-loyer {
        float: none;
        margin-top: 5px;
        font-size: .8em;
        width: fit-content;
        margin-left: auto;
        padding: 2px;
    }
}
