/* ==========================================================================
   HAITILIBRE QUIZ - CSS FINAL (Structure Compacte)
   ========================================================================== */

:root {
    --hl-blue: #003399;   /* Bleu HaitiLibre */
    --hl-red: #d21034;    /* Rouge HaitiLibre */
    --hl-light: #f4f7f6;
    --hl-dark: #212529;
    --hl-gray: #6c757d;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--hl-light);
    color: var(--hl-dark);
}

/* 1. HEADER & NAVIGATION */
.header-banner img {
    max-height: 180px;
    object-fit: cover;
    border-bottom: 5px solid var(--hl-red);
}

.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar-nav .nav-link {
    color: #444 !important;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
    color: var(--hl-red) !important;
}

/* 2. MOSAÏQUE DES SECTIONS (DESIGN COMPACT) */
.section-card {
    border-radius: 12px;
    border: none;
    background: #fff;
    transition: transform 0.2s ease;
}

.section-card:hover {
    transform: translateY(-5px);
}

.section-image-container {
    height: 110px; /* Hauteur réduite validée */
    background-size: cover;
    background-position: center;
    position: relative;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    background-color: var(--hl-blue); /* Fallback */
}

.section-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Filtre lisibilité */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.section-title {
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

/* 3. LISTE DES QUIZ */
.card-body {
    padding: 0.75rem 1rem;
}

.quiz-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.quiz-list li:last-child {
    border-bottom: none;
}

.quiz-list a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

.quiz-list li:hover a {
    color: var(--hl-red);
}

/* 4. BADGES (Niveau & New) */
.badge-new {
    background-color: var(--hl-red);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 2px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(210,16,52,0.2);
}

.badge-niveau {
    background-color: #f8f9fa;
    color: var(--hl-gray);
    border: 1px solid #ddd;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
    min-width: 25px;
    text-align: center;
}

/* 5. ESPACE PUBLICITAIRE */
.ad-space {
    background: #eee;
    border: 2px dashed #ccc;
    color: #999;
    text-align: center;
    font-weight: bold;
    border-radius: 8px;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* 6. RESPONSIVE */
@media (max-width: 768px) {
    .section-image-container {
        height: 100px;
    }
    .section-title {
        font-size: 1rem;
    }
}