body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    color: #222;
}
header {
    background: #3b3b3b;
    color: #fff;
    padding: 20px 0 10px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
header h1 {
    font-size: 2.2em;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}
nav {
    margin-bottom: 5px;
}
nav a {
    color: #ffd700;
    margin: 0 18px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.2s;
}
nav a:hover {
    text-decoration: underline;
    color: #fffbe0;
}
main {
    max-width: 950px;
    margin: 30px auto 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px #0001;
}
section {
    margin-bottom: 55px;
}
section h2 {
    font-size: 2.1em;
    color: #1a3a7f;
    margin-bottom: 12px;
    border-bottom: 2px solid #e0e7ef;
    padding-bottom: 6px;
}
section img {
    max-width: 100%;
    border-radius: 10px;
    margin: 18px 0 20px 0;
    box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}
.groupes-flex {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    flex-wrap: wrap;
}
.groupes-flex > div {
    flex: 1 1 200px;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 18px 12px 10px 12px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    margin-bottom: 10px;
}
.groupes-flex img {
    margin-bottom: 10px;
    background: #fff;
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.apprentissage {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.apprentissage div {
    flex: 1 1 200px;
    background: #f1f7fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    margin-bottom: 10px;
}
.apprentissage h3 {
    color: #2a7d46;
    margin-top: 0;
}
footer {
    text-align: center;
    padding: 15px;
    background: #3b3b3b;
    color: #fff;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    font-size: 1em;
    letter-spacing: 1px;
}
#quiz-container {
    background: #f1f7fa;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
#quiz-answers button {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 12px;
    background: #ffd700;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}
#quiz-answers button:hover {
    background: #ffe066;
}
#quiz-result {
    text-align: center;
    font-size: 1.1em;
    color: #2a7d46;
}
@media (max-width: 800px) {
    main {
        padding: 15px 2vw 30px 2vw;
    }
    .groupes-flex, .apprentissage {
        flex-direction: column;
        gap: 18px;
    }
}
.carte-lien {
    display: inline-block;
    background: #f1f7fa;
    color: #1a3a7f;
    padding: 22px 36px;
    border-radius: 14px;
    font-size: 1.18em;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 10px #0001;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    margin: 8px 0;
}
.carte-lien:hover {
    background: #1a3a7f;
    color: #fff;
    box-shadow: 0 4px 18px #0002;
}

/* --- Styles modernes pour la page Apprendre --- */

h2, h3, h4 {
    color: #1a3a7f;
    margin-top: 32px;
    margin-bottom: 12px;
}
h3 {
    font-size: 1.4em;
    margin-top: 28px;
}
h4 {
    font-size: 1.1em;
    color: #2b4d8c;
}

ul, ol {
    margin-left: 24px;
    margin-bottom: 18px;
}

.table-alphabet, .table-pronoms, .table-conjug {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 28px 0;
    background: #f8fbff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px #0001;
}
.table-alphabet th, .table-pronoms th, .table-conjug th {
    background: #e0e7ef;
    color: #1a3a7f;
    font-weight: bold;
    padding: 10px 6px;
    border-bottom: 2px solid #c7d3e6;
}
.table-alphabet td, .table-pronoms td, .table-conjug td {
    padding: 8px 6px;
    border-bottom: 1px solid #e6eaf2;
    text-align: center;
}
.table-alphabet tr:last-child td, .table-pronoms tr:last-child td, .table-conjug tr:last-child td {
    border-bottom: none;
}

.dialogue {
    background: #f1f7fa;
    border-left: 4px solid #1a7f37;
    margin: 18px 0 18px 0;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 1.08em;
}
.dialogue p {
    margin: 6px 0;
    padding-left: 18px;
    position: relative;
}
.dialogue p:before {
    content: '💬';
    position: absolute;
    left: 0;
}

.exercice {
    background: #fffbe6;
    border-left: 4px solid #d4a017;
    margin: 18px 0 18px 0;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 1.08em;
}

.sommaire-flottant {
    position: sticky;
    top: 20px;
    background: #f8fbff;
    border: 1px solid #e0e7ef;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px #0001;
}
.sommaire-flottant ul {
    margin: 0 0 0 10px;
}
.sommaire-flottant a {
    color: #1a3a7f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.sommaire-flottant a:hover {
    color: #d4a017;
    text-decoration: underline;
}

@media (max-width: 700px) {
    main {
        padding: 6px;
    }
    .sommaire-flottant {
        padding: 10px 6px;
        font-size: 0.98em;
    }
    .table-alphabet, .table-pronoms, .table-conjug {
        font-size: 0.98em;
    }
}

/* --- Fin styles modernes Apprendre --- */ 