/* ---------- RESET ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #ffffff;
    color: #111111;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- HEADER ---------- */
.header {
    border-bottom: 1px solid #111;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo a {
    color: #111;
}

.nav a {
    margin-left: 24px;
    font-size: 0.95rem;
    color: #111;
    transition: opacity 0.2s;
}

.nav a:hover {
    opacity: 0.55;
}

/* ---------- PRÉSENTATION ---------- */
.presentation {
    padding: 60px 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.presentation h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.presentation p {
    max-width: 640px;
    margin: 0 auto;
    color: #444;
    font-size: 1.05rem;
}

/* ---------- SECTION PAYS ---------- */
.pays-section {
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.grille-pays {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.carte-pays {
    border: 1px solid #111;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}

.carte-pays:hover {
    background: #111;
    color: #fff;
}

.drapeau {
    font-size: 2.4rem;
    line-height: 1;
}

.nom-pays {
    font-weight: 600;
    font-size: 1rem;
}

/* ---------- LISTE DES ÉPREUVES (page pays) ---------- */
.liste-section {
    padding: 40px 20px;
}

.liste-epreuves {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.carte-epreuve {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border: 1px solid #111;
    background: #fff;
    transition: background 0.2s;
}

.carte-epreuve:hover {
    background: #fafafa;
}

.info-epreuve {
    flex: 1;
}

.matiere {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #111;
    padding: 2px 8px;
    margin-bottom: 8px;
}

.titre-epreuve {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #111;
}

.meta-epreuve {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    gap: 16px;
}

.bouton-telecharger {
    display: inline-block;
    padding: 12px 24px;
    background: #111;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #111;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.bouton-telecharger:hover {
    background: #fff;
    color: #111;
}

.message-vide {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    border: 1px dashed #ccc;
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- FOOTER ---------- */
.footer {
    border-top: 1px solid #111;
    padding: 30px 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #555;
    margin-top: 60px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        gap: 12px;
    }
    .nav a {
        margin: 0 10px;
    }
    .presentation h2 {
        font-size: 1.5rem;
    }
    .carte-epreuve {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .bouton-telecharger {
        width: 100%;
        text-align: center;
    }
}
.cours-section {
    text-align: center;
    border-width: 0.5px;
    border-color: #444;
    background-color: #074f70;
    border-radius: 8px;
    justify-content: center;
}
.cours {
    font-size: 18px;
    color: white;
    font-weight: 600;
}