/* =========================================================
   MI - Contacter un Pro — feuille de style
   ========================================================= */

.mi-wrapper {
    padding-bottom: 40px;
}

.mi-rectangle {
    width: 100%;
    background-color: #eaa927;
    border-radius: 25px;
    box-sizing: border-box;
    position: relative;
    padding: 30px 30px 60px 302px;
    overflow: visible;
}

/* --- Conteneur des deux images superposées -------------- */
.mi-image-container {
    position: absolute;
    left: -15px;
    bottom: 0;
    width: 277px;
    height: 100%;
}

.mi-image {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 277px !important;
    max-width: none !important;
    height: 100%;
    object-fit: contain;
    object-position: bottom left;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.mi-image--active {
    opacity: 1;
}

/* -------------------------------------------------------- */

.mi-text-container {
    color: white;
    font-family: 'Maven Pro', Arial, sans-serif;
}

.mi-main-text {
    font-size: 44px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1;
}

.mi-question {
    font-size: 32px;
    font-weight: normal;
    margin-bottom: 5px;
    line-height: 1;
}

.mi-contact-text {
    font-size: 26px;
    margin-top: 25px;
    margin-bottom: 0;
    line-height: 1.3;
    font-weight: 300;
}

/* Bouton à cheval sur le bord inférieur */
.mi-button-container {
    text-align: center;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.mi-button {
    display: inline-block;
    background-color: black;
    color: white !important;
    padding: 20px 40px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 24px;
    transition: background-color 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.mi-button:hover {
    background-color: #333;
    text-decoration: none;
}

/* --- Responsive ----------------------------------------- */

@media (max-width: 1200px) {
    .mi-main-text    { font-size: 38px; }
    .mi-question     { font-size: 26px; }
    .mi-contact-text { font-size: 20px; }
    .mi-button       { font-size: 20px; padding: 18px 36px; }
}

@media (max-width: 992px) {
    .mi-rectangle         { padding: 25px 20px 60px 250px; }
    .mi-image-container   { width: 230px; }
    .mi-image             { width: 230px !important; }
    .mi-main-text         { font-size: 32px; }
    .mi-question          { font-size: 22px; }
    .mi-contact-text      { font-size: 18px; }
    .mi-button            { font-size: 18px; padding: 15px 30px; }
}

/* En dessous de 768px : image au-dessus, texte en dessous */
@media (max-width: 768px) {
    .mi-wrapper {
        margin-top: 90px;
        margin-left: 20px;
        margin-right: 20px;
    }
    .mi-rectangle {
        padding: 220px 20px 60px 20px;
        text-align: center;
    }
    .mi-image-container {
        width: 240px;
        height: auto;
        left: 50%;
        bottom: auto;
        top: -40px;
        transform: translateX(-50%);
    }
    .mi-image {
        width: 240px !important;
        height: auto;
        left: 0;
        bottom: auto;
        top: -40px;
        object-fit: unset;
        object-position: unset;
    }
    .mi-main-text    { font-size: 38px; }
    .mi-question     { font-size: 24px; }
    .mi-contact-text { font-size: 17px; margin-top: 15px; }
    .mi-button       { font-size: 17px; padding: 14px 24px; }
}

@media (max-width: 480px) {
    .mi-wrapper           { margin-top: 170px; }
    .mi-image-container   { width: 180px; top: -100px; }
    .mi-image             { width: 180px !important; top: -40px; }
    .mi-rectangle         { padding-top: 90px; }
    .mi-main-text         { font-size: 26px; }
    .mi-question          { font-size: 18px; }
    .mi-contact-text      { font-size: 15px; }
    .mi-button            { font-size: 15px; padding: 12px 20px; }
}
