/* style.css */

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f6f8;
    color: #333;
    line-height: 1.6;
}

/* Header fixe */
header {
    background-color: rgb(191, 255, 191);
    color: #2e5e2e; /* vert plus foncé pour bon contraste */
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 22px;
}

nav a {
    color: #2e5e2e;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Contenu principal */
main {
    padding: 40px 20px;
}

/* Grille pour les thèmes */
.tableau {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 30px auto;
}

.tableau a {
    display: block;
    background-color: #fff;
    text-align: center;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid rgb(191, 255, 191);
    color: #2e5e2e;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tableau a:hover {
    background-color: rgb(191, 255, 191);
    color: #2e5e2e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(191, 255, 191, 0.6);
}

/* Responsive menu pour petits écrans */
@media(max-width: 600px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    nav {
        margin-top: 10px;
    }
    nav a {
        margin-left: 0;
        margin-right: 10px;
    }
}
