/* Styles généraux */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    overflow-x: hidden;
}

/* Header */
header {
    background-color: #003366;
    color: #ffffff;
    padding: 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInDown 1s ease;
}

nav {
    margin-top: 10px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li a {
    color: #ffeb3b;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

nav ul li a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    background-color: #ffeb3b;
    z-index: -1;
    transition: height 0.3s ease;
}

nav ul li a:hover::before {
    height: 100%;
}

nav ul li a:hover {
    color: #003366;
    transform: scale(1.1);
}

/* Section Titre */
#content {
    padding: 40px 20px;
    text-align: center;
    animation: fadeInUp 1s ease;
}

/* Niveaux Section */
.niveau-section h2 {
    font-size: 2.2em;
    color: #003366;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.niveau-section h2::after {
    content: '';
    display: block;
    height: 4px;
    width: 60px;
    background-color: #ffeb3b;
    margin: 10px auto 0;
    border-radius: 2px;
    animation: scaleIn 0.6s ease-out;
}

.niveau-section ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    animation: fadeInUp 1s ease;
}

.niveau-section ul li {
    background: linear-gradient(145deg, #003366, #0059b3);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    color: #ffffff;
}

.niveau-section ul li:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.niveau-section ul li a {
    color: #ffeb3b;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    display: block;
    margin-top: 10px;
    text-align: center;
    transition: color 0.3s;
}

.niveau-section ul li a:hover {
    color: #ffffff;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .niveau-section h2 {
        font-size: 1.8em;
    }
}
