/* French Language Learning Portal */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #002395;
    --secondary: #ED2939;
    --accent: #002395;
    --light: #f8f9fa;
    --dark: #1a1a1a;
    --text: #333;
    --text-light: #666;
    --white: #fff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --gold: #cebb4e;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.8;
    min-height: 100vh;
}

.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, #003399 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    font-family: 'Georgia', serif;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
}

.nav-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 18px 16px;
    display: block;
    font-size: 0.95rem;
    font-family: 'Arial', sans-serif;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-bottom-color: var(--gold);
}

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #003399 100%);
    padding: 80px 20px;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="50" fill="rgba(255,255,255,0.03)">Fr</text></svg>');
    background-size: 100px;
}

.hero h1 { font-size: 2.8rem; margin-bottom: 15px; position: relative; }
.hero p { font-size: 1.2rem; opacity: 0.95; max-width: 700px; margin: 0 auto; position: relative; font-family: 'Arial', sans-serif; }

.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }

.tests-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; }

.test-card {
    background: var(--white);
    border-radius: 8px;
    padding: 28px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border-top: 4px solid var(--primary);
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid #e2e8f0;
}

.test-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); border-top-color: var(--secondary); }
.test-card h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.15rem; }
.test-card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 15px; font-family: 'Arial', sans-serif; }
.tag { display: inline-block; background: #e8f4fd; color: var(--primary); padding: 5px 14px; border-radius: 20px; font-size: 0.8rem; font-family: 'Arial', sans-serif; }

.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 25px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.content h1 { font-size: 2.2rem; color: var(--primary); margin-bottom: 20px; line-height: 1.3; border-bottom: 3px solid var(--gold); padding-bottom: 15px; }
.content h2 { font-size: 1.6rem; color: var(--primary); margin: 2rem 0 1rem; }
.content h3 { font-size: 1.3rem; color: #003399; margin: 1.5rem 0 0.8rem; }
.content p { font-size: 1.05rem; margin-bottom: 1.2rem; text-align: justify; }
.content img { max-width: 100%; height: auto; border-radius: 6px; margin: 1.5rem 0; display: block; border: 1px solid #e2e8f0; }
.content a { color: var(--secondary); text-decoration: underline; }
.content ul, .content ol { margin: 1rem 0 1.5rem 1.5rem; }
.content li { margin-bottom: 0.6rem; }

.related-content { background: #fef9e7; padding: 25px; border-radius: 6px; margin-top: 2.5rem; border-left: 4px solid var(--gold); }
.related-content h3 { color: var(--primary); margin-bottom: 1rem; font-size: 1.1rem; }
.related-content ul { list-style: none; margin: 0; }
.related-content li { margin-bottom: 8px; }
.related-content a { color: var(--secondary); text-decoration: none; }
.related-content a:hover { text-decoration: underline; }

.test-wrapper { max-width: 800px; margin: 0 auto; padding: 40px 20px; }

.test-question { background: var(--white); padding: 25px; border-radius: 8px; margin-bottom: 20px; box-shadow: var(--shadow); border-left: 4px solid var(--primary); }
.test-question h3 { color: var(--primary); margin-bottom: 18px; font-size: 1.1rem; font-family: 'Arial', sans-serif; }

.option {
    display: block;
    padding: 14px 18px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Arial', sans-serif;
    font-size: 0.95rem;
}

.option:hover { border-color: var(--secondary); background: #fff5f5; }
.option.correct { background: #d4edda !important; border-color: #28a745 !important; }
.option.incorrect { background: #f8d7da !important; border-color: #dc3545 !important; }

.btn { display: inline-block; background: var(--primary); color: #fff; padding: 14px 28px; border-radius: 6px; text-decoration: none; font-size: 1rem; font-family: 'Arial', sans-serif; margin-top: 20px; }
.btn:hover { background: #003399; }

.score-display { background: linear-gradient(135deg, var(--primary), #003399); color: white; padding: 18px 28px; border-radius: 8px; margin: 25px 0; font-size: 1.1rem; text-align: center; font-family: 'Arial', sans-serif; }

footer { background: var(--dark); color: rgba(255,255,255,0.8); padding: 40px 20px; text-align: center; margin-top: 50px; font-family: 'Arial', sans-serif; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; }

.breadcrumb { padding: 15px 20px; background: #edf2f7; font-family: 'Arial', sans-serif; font-size: 0.9rem; }
.breadcrumb a { color: var(--secondary); }

.articles-list { display: grid; gap: 20px; }
.article-card { background: var(--white); border-radius: 8px; padding: 28px; box-shadow: var(--shadow); border-left: 4px solid var(--primary); transition: all 0.3s; }
.article-card:hover { border-left-color: var(--secondary); }
.article-card h2 { font-size: 1.3rem; margin-bottom: 12px; }
.article-card h2 a { color: var(--primary); text-decoration: none; }
.article-card h2 a:hover { color: var(--secondary); }
.article-card p { color: var(--text-light); font-family: 'Arial', sans-serif; }
.article-meta { display: flex; gap: 15px; font-size: 0.85rem; color: #a0aec0; margin-top: 12px; font-family: 'Arial', sans-serif; }

.about-section { background: var(--white); padding: 40px; border-radius: 8px; box-shadow: var(--shadow); margin-bottom: 30px; }
.about-section h2 { color: var(--primary); margin-bottom: 1rem; font-size: 1.5rem; }
.about-section p { margin-bottom: 1rem; font-family: 'Arial', sans-serif; }

.category-tabs { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.category-tab { background: var(--white); border: 2px solid var(--primary); color: var(--primary); padding: 10px 22px; border-radius: 25px; cursor: pointer; font-size: 0.95rem; font-family: 'Arial', sans-serif; }
.category-tab:hover, .category-tab.active { background: var(--primary); color: #fff; }

@media (max-width: 768px) {
    .nav-container { flex-direction: column; text-align: center; }
    .nav-links { justify-content: center; width: 100%; }
    .nav-links a { padding: 12px 10px; font-size: 0.85rem; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .tests-grid { grid-template-columns: 1fr; }
    .content h1 { font-size: 1.6rem; }
}
