@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* Réinitialisation de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background-color: #f8fafc;
    color: #1e293b;
}

.container {
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 0 10px;
}

/* Header - Barre de navigation */
.navbar {
    background: #fff;
    color: #333;
    padding: 1rem 0;
    border-bottom: 1px solid #e6e6e6;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
}

.navbar .nav-links li {
    margin-left: 20px;
}

.navbar .nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    background: #337ab7;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-secondary {
    background: #6c757d;
}

.nav-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-user-info span {
    font-weight: bold;
    color: #333;
}

.nav-user-buttons {
    display: flex;
    gap: 10px;
}

.btn-quiz {
    background: linear-gradient(140deg, #b19cd9, #77a1d3);
    /* Dégradé adouci de violet et bleu */
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    /* Bouton bien arrondi */
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
}

.btn-quiz:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Section Hero */
.hero {
    text-align: center;
    padding: 30px 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero .tagline {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 10px;
}

/* Boîtes de fonctionnalités */
.features .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
}

.feature-box {
    flex: 1;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.feature-box h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* Pied de page */
footer {
    text-align: center;
    padding: 20px 0;
    background: #333;
    color: #fff;
    margin-top: 40px;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin-bottom: 10px;
}

.footer-links li {
    margin: 5px 15px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        align-items: center;
    }

    .navbar .nav-links {
        margin-top: 10px;
        padding-left: 0;
        /* Supprimer le décalage */
    }

    .navbar .nav-links li {
        margin-left: 0;
    }

    .navbar .btn {
        margin-top: 10px;
    }

    .features .container {
        flex-direction: column;
    }

    .feature-box {
        margin-bottom: 20px;
    }

    .nav-user-info {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
    }
}