* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --header-h: 70px;
    --noir: #000;
    --blanc: #fff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fff;
    color: #000;
    line-height: 1.6;
    padding-top: var(--header-h); /* compense le header fixe */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ================= HEADER FIXE ================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: #fff;
    border-bottom: 2px solid #000;
    z-index: 50;
    transition: box-shadow 0.2s, background 0.2s;
}
.header.scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.header-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #000;
    text-decoration: none;
    flex-shrink: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav a {
    color: #000;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.2s;
    position: relative;
}
.nav a:hover { opacity: 0.6; }

/* Bouton spécial Annales & Cours */
.nav-btn {
    background: #000;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600 !important;
    transition: all 0.2s;
}
.nav-btn:hover {
    background: #fff;
    color: #000 !important;
    opacity: 1 !important;
    box-shadow: inset 0 0 0 2px #000;
}

/* Burger mobile */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.burger span {
    width: 24px;
    height: 2px;
    background: #000;
    transition: 0.3s;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= PRÉSENTATION ================= */
.presentation {
    padding: 3rem 0 2rem;
    text-align: center;
}
.presentation h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}
.presentation p {
    max-width: 700px;
    margin: 0 auto;
    color: #444;
    font-size: 16px;
}

/* ================= BOUTON ANNALES ================= */
.cours-section {
    text-align: center;
    padding: 1.5rem 0 2.5rem;
}
.btn-cours {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid #000;
    transition: all 0.2s;
}
.btn-cours:hover {
    background: #fff;
    color: #000;
    box-shadow: 6px 6px 0 #000;
    transform: translate(-2px, -2px);
}

/* ================= PAYS ================= */
.pays-section {
    padding: 2rem 0 4rem;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.grille-pays {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.carte-pays {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 1.2rem 1rem;
    background: #fff;
    border: 2px solid #000;
    border-radius: 10px;
    text-decoration: none;
    color: #000;
    font-weight: 600;
    transition: all 0.2s;
}
.carte-pays:hover {
    box-shadow: 5px 5px 0 #000;
    transform: translate(-2px, -2px);
}
.drapeau { font-size: 2rem; }
.nom-pays { font-size: 14px; }

/* ================= FOOTER ================= */
.footer {
    background: #000;
    color: #fff;
    text-align: left;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 2.5rem;
    padding: 3rem 1.5rem 2rem;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.footer-desc {
    font-size: 14px;
    color: #bbb;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-contact svg { flex-shrink: 0; }

/* Réseaux sociaux */
.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 1.2rem;
}
.footer-socials a {
    width: 38px;
    height: 38px;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.2s;
}
.footer-socials a:hover {
    background: #fff;
    color: #000;
}

/* Bas du footer */
.footer-bottom {
    border-top: 1px solid #333;
    padding: 1.2rem 0;
    text-align: center;
    font-size: 13px;
    color: #888;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 780px) {
    .burger { display: flex; }

    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 2px solid #000;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem;
        transform: translateY(-150%);
        transition: transform 0.3s;
    }
    .nav.open { transform: translateY(0); }

    .nav a {
        padding: 12px 8px;
        border-bottom: 1px solid #eee;
    }
    .nav-btn {
        text-align: center;
        margin-top: 8px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}