/* Styles spécifiques à la page d'accueil.
   Le header/nav/footer partagés vivent dans assets/css/base.css */
body {
    background-color: rgb(246, 246, 234);
    color: #333;
}

/* Conteneur principal */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 5px;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Section principale */
.content {
    width: 70%;
    padding: 20px;
    background: white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow-y: auto;
    max-height: 80vh;
}

/* Titres */
h2 {
    color: #023d65;
    text-align: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.textar1 {
    color: #D35400;
    text-align: center;
    font-size: 24px;
    margin-bottom: 15px;
}

/* Texte en arabe */
.textar {
    color: #D35400;
    text-align: justify;
}

/* Sections spécifiques */
.Soutientadapté, .Enseignementadapté, .Boosterreussite, .accésillimités {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.Soutientadapté > *, .Enseignementadapté > *, .Boosterreussite > *, .accésillimités > * {
    flex: 1;
    min-width: 0;
}

/* Images */
img {
    max-width: 250px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

p {
    font-size: 20px;
    text-align: justify;
    line-height: 1.5em;
    margin-bottom: 15px;
    padding: 0 20px 20px;
}

/* Sidebar */
.sidebar {
    width: 25%;
    background-color: rgb(246, 246, 234);
    border-left: 4px solid maroon;
    font-size: 18px;
    text-align: center;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.cta-sidebar {
    display: inline-block;
    background: maroon;
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 16px;
}

.cta-sidebar:hover {
    background: rgb(235, 109, 109);
}

/* Responsiveness */
@media (max-width: 768px) {
    .content {
        width: 90%;
        max-height: none;
    }
    .sidebar {
        width: 90%;
        margin-top: 20px;
    }
    .Soutientadapté, .Enseignementadapté, .Boosterreussite, .accésillimités {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h2, .textar1 {
        font-size: 20px;
    }
    p {
        font-size: 17px;
        padding: 0 10px 15px;
    }
    .content {
        padding: 12px;
    }
}
