/* ----INDEX MAIN---- */

main {
    flex: 1; /* prend tout l'espace dispo avant le footer */
}

/* --SECTION 1-- */

.your-data-box {
    display: flex;
    flex-direction: row-reverse; /* desktop */
    border-radius: 2rem;
    overflow: hidden;
    color: white;
    max-width: 1000px;
    margin: 160px auto 6rem auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-side2 {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.text-side2 h2 {
    font-size: 2rem;
    font-weight: 700;
}

.text-side2 .highlight {
    color: #bbb;
}

.text-side2 p {
    color: #f18536;
    font-size: 1.1rem;
    line-height: 1.5;
}

.text-side2 p em {
    font-style: italic;
    font-weight: 500;
}

.image-side2 {
    flex: 1;
}

.image-side2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    overflow: none;
}

/* --SECTION 2-- */

.benefits {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.benefit-box {
    flex: 1;
    padding: 1rem;
    color: white;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-box:last-child {
    border-right: none;
}

.benefit-box img {
    height: 80px;
    margin-bottom: 1rem;
}

.benefit-box h3 {
    font-size: 1.4rem;
    text-transform: uppercase;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 1rem;
}

.benefit-box p {
    color: #f18536;
    font-size: 1rem;
    line-height: 1.5;
}

/* --SECTION 3-- */

.audit-offer-box {
    display: flex;
    flex-direction: row; /* desktop */
    border-radius: 2rem;
    overflow: hidden;
    color: white;
    max-width: 1000px;
    margin: 120px auto 2rem auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-side {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.text-side h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: right;
    margin-left: auto; /* pousse le paragraphe vers la droite */
}

.text-side .highlight {
    color: #bbb;
}

.text-side p {
    color: #f18536;
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: right;
    margin-left: auto; /* pousse le paragraphe vers la droite */
}

.text-side p em {
    font-style: italic;
    font-weight: 500;
}

.cta-button {
    margin-top: 3rem;
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3rem;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    transition: background 0.2s ease;
}

.cta-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.image-side {
    flex: 1;
}

.image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    overflow: none;
}


/* -----MEDIA----- */

/* ---MAIN--- */
/* --SECTION 1-- */
/* ✅ Responsive — inversion de la direction */

@media (max-width: 768px) {
    .your-data-box {
        flex-direction: column;
        margin: 100px 10px 20px 10px;
    }

    .text-side2 {
        padding: 1.5rem;
        text-align: center;
    }

    .image-side2 img {
        display: none !important;
    }
}

/* --SECTION 2-- */
/* ✅ Responsive : pile verticale sur smartphone */
@media (max-width: 768px) {
    .benefits {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    .benefit-box {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        max-width: 90%;
    }

    .benefit-box:last-child {
        border-bottom: none;
    }
}

/* --SECTION 3-- */
/* ✅ Responsive — inversion de la direction */

@media (max-width: 768px) {
    .header {
        height: 60px;
    }
    .audit-offer-box {
        flex-direction: column;
        margin: 100px 10px 20px 10px;
    }

    .text-side {
        padding: 1.5rem;
        text-align: center;
    }

    .cta-button {
        width: 100%;
    }

    .image-side img {
        display: none !important;
    }
}