/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

/* Header styling */
header {
    background-color: #4CAF50;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    margin-bottom: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Main content styling */
main {
    flex: 1;
    padding: 20px;
}

.intro {
    text-align: center;
    margin-bottom: 40px;
}

.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.feature {
    background-color: #fff;
    padding: 20px;
    margin: 10px;
    width: 45%;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 5px;
}

.feature h3 {
    margin-bottom: 10px;
}

.feature a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #4CAF50;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.feature a:hover {
    background-color: #45a049;
}

/* Login form styling */
.login-form {
    max-width: 400px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 5px;
}

.login-form h2 {
    margin-bottom: 20px;
    text-align: center;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
}

.login-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-form button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login-form button:hover {
    background-color: #45a049;
}

/* Resources and Activities styling */
.resource-list, .activity-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.resource-item, .activity-item {
    background-color: #fff;
    padding: 20px;
    margin: 10px;
    width: 45%;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 5px;
}

.resource-item h3, .activity-item h3 {
    margin-bottom: 10px;
}

.resource-item a, .activity-item a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #2196F3;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.resource-item a:hover, .activity-item a:hover {
    background-color: #0b7dda;
}

/* Footer styling */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 15px 0;
}

/* Responsivité */
@media (max-width: 768px) {
    .features, .resource-list, .activity-list {
        flex-direction: column;
        align-items: center;
    }

    .feature, .resource-item, .activity-item {
        width: 90%;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    .feature h3, .resource-item h3, .activity-item h3 {
        font-size: 1.2em;
    }

    .login-form {
        padding: 20px;
    }
} 