/* --- Base & Normalized Styles --- */

.home_avis {
    display: flex;
    width: 100%;
    justify-content: center;
}

.home_avis_sized {
    display: flex;
    width: calc(100% - 20px);
    max-width: 1280px;
    align-items: flex-start;
    margin-bottom: 50px;
    justify-content: center;
}

.home_avis_google {
    display: flex;
    width: 250px;
    justify-content: center;
}

.home_avis_google img {
    max-width: 80%;
    height: auto;
}

.home_avis_clients {
    display: flex;
    width: calc(100% - 250px);
    flex-direction: column;
    margin: 20px 0px;
}

.home_avis_clients_list {
    width: 100%;
}

.home_avis_clients_i {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.home_avis_clients_i_sized {
    display: flex;
    width: calc(100% - 20px);
    max-width: 440px;
    background-color: #3FB0E521;
    border-radius: 26px;
    padding: 30px;
    box-sizing: content-box; /* Fixes width calculation with padding */
    align-items: flex-start;
    justify-content: space-between;
}

.home_avis_clients_i_picto {
    display: flex;
    width: 50px;
}

.home_avis_clients_i_picto img {
    display: block; /* Normalized from flex */
    width: 40px;
    height: auto;
}

.home_avis_clients_i_data {
    display: flex;
    width: calc(100% - 60px);
    flex-direction: column;
    justify-content: space-between;
}

.home_avis_clients_i_data_text {
    max-width: 520px;
    color: #242424;
    font: 400 20px/1.4 OS_Regular;
    text-align: left;
}

.home_avis_clients_i_data_who {
    max-width: 520px;
    margin-top: 20px;
    color: #242424;
    font: 400 20px/1.4 OS_Bold;
    text-align: right;
}

.home_avis_clients_position {
    display: flex;
    width: 100%;
    justify-content: center;
    margin: 20px 0;
}

.home_avis_clients_position_i {
    background: #F8CA07;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 5px;
}

.home_avis_clients_position_i.active {
    background: #242424;
}

/* --- Responsive Partition --- */

/* Tablet Devices */
@media (max-width: 768px) {
    .home_avis_sized {
        flex-direction: column; /* Stacks Google logo above reviews */
        align-items: center;
        margin-bottom: 10px;
    }

    .home_avis_google {
        width: auto; /* Allows logo to center naturally */
    }

    .home_avis_clients {
        width: 100%; /* Takes full width when stacked */
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    .home_avis_clients_i_sized {
        padding: 20px; /* Tighter padding on small screens */
    }

    .home_avis_clients_i_data_text,
    .home_avis_clients_i_data_who {
        font-size: 18px; /* Slightly smaller text for narrow screens */
        text-align: center; /* Centers text for better mobile readability */
    }
}