main p, main li {
    width: clamp(250px, 600px, 100%);
    text-align: justify;
}

li {
    margin: auto;
    font: var(--p);
}

.cta:hover {
    color: white;
}

section {
    text-align: justify;
}

.formule {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

section h2{
    text-align: center;
}

.img-container {
    border-radius: 10px;
    width: 300px;
    height: 300px;
    overflow: hidden;
    flex-shrink: 0;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Responsive Styles */

/* Tablet and smaller screens */
@media (max-width: 800px) {
    .formule {
        flex-direction: column; /* Stacks image and text vertically */
        gap: 15px; /* Reduce the gap between elements */
    }

    .img-container {
        width: 100%; /* Make the image container take full width */
        height: auto; /* Let height adjust automatically to maintain aspect ratio */
        max-width: 400px; /* Set a max-width so the image doesn’t become too large */
        margin: 0 auto; /* Center the image */
    }

    .formule-text {
        padding: 0 20px; /* Add padding to the sides for better readability */
    }
}

/* Very Small Screens (Mobile Portrait) */
@media (max-width: 480px) {
    ul {
        padding: 10px;
    }
    li {
        padding: 10px;
    }
    .formule {
        flex-direction: column; /* Ensure vertical stacking on mobile */
        gap: 10px; /* Further reduce the gap between elements */
    }

    .img-container {
        width: 100%; /* Image takes the full width of the screen */
        max-width: 100%; /* No restriction on width on very small screens */
        height: auto; /* Maintain aspect ratio */
    }

    .formule-text {
        padding: 0 10px; /* Reduce padding for very small screens */
    }
}