/* {
    border: red solid 1px;
} */

section {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: left;
    padding: 2rem;
}

h2 {
    padding: 0.5rem;
}

.red {
    color: #a33838;
}

/* Approche Section */
#approche {
    min-height: 100vh;
    display: flex;
    flex-direction: column
}
.approche-wrapper {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-around;
    padding: 2rem;
}

.approche-item {
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 1rem;
    margin: 1rem;
    border: 2px solid #a33838;
}

.approche-item p {
    text-align: center;
}

.approche-item:hover {
    background-color: #f2f2f2;
    transform: translateY(-2px);
    transition: transform 0.3s ease-in-out, color 0.3 ease-in-out ;
}


.approche-item .fa-solid {
    font-size: 3rem;
    padding: 3rem;
    margin: 1rem;
    color: #f2f2f2;
    background-color: #a33838;
    border-radius: 50%;
}

ul {
    margin-left: 1.5rem;
    list-style-type: disc;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    font-size: 1rem;
}

/* Niveaux Section */
.niveaux-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 2rem;
    padding: 2rem 0;
}

.niveaux-item1, .niveaux-item2 {
    width: 100%;
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    padding: 2rem;
}

.niveaux-item1 {
    background-color: #f2f2f2;
    border: 2px solid #a33838;
    flex-direction: row;
}
.niveaux-item2 {
    background-color: #cccccc;
    border: 2px solid #a33838;
    flex-direction: row-reverse;
}
.niveaux-item1 img, .niveaux-item2 img {
    width: 50%;
    height: auto;
    object-fit: contain;
}

.niveaux-text {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.niveaux-text h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.cta-button1 {
    margin: 3rem auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .approche-wrapper {
        flex-direction: column;
        height: auto;
    }
    .approche-item {
        width: 100%;
        padding: 1rem;
        margin: 1rem 0;
    }
    .niveaux-item1, .niveaux-item2 {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .niveaux-item1 img, .niveaux-item2 img, .niveaux-text {
        width: 100%;
    }
}

@media (max-width: 768px) {
    section {
        width: 90%;
        padding: 1rem;
    }
    
    .approche-item .fa-solid {
        font-size: 2rem;
        padding: 2rem;
    }
    .cta-button1 {
        width: 100%;
        margin: 2rem auto;
    }
}