/* ══════════════════════════════════════════
   PAGE VEILLE ÉDUCATIVE
   css/veille.css
══════════════════════════════════════════ */

/* ── HERO ── */
.hero-veille {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
    color: white;
    padding: 80px 5% 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-veille::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-veille-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.hero-veille h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-veille h1 span {
    color: #6ee7b7;
}

.hero-veille p {
    font-size: 15px;
    opacity: 0.75;
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.veille-hero-stats {
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
}

.veille-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.veille-hero-stat strong {
    font-size: 1.8rem;
    font-weight: 700;
    color: #6ee7b7;
    line-height: 1;
}

.veille-hero-stat span {
    font-size: 12px;
    opacity: 0.7;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── LAYOUT ── */
.veille-main {
    background: #f0faf4;
    padding: 50px 5% 70px;
    min-height: 60vh;
}

.veille-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ── FILTRES ── */
.veille-filtres-wrap {
    display: flex;
    justify-content: center;
}

.veille-filtres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    background: white;
    padding: 16px 24px;
    border-radius: 50px;
    box-shadow: 0 2px 20px rgba(6, 78, 59, 0.1);
}

.veille-filtre {
    background: none;
    border: 1.5px solid #d1fae5;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 13.5px;
    font-weight: 500;
    color: #065f46;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.veille-filtre:hover {
    background: #d1fae5;
    border-color: #6ee7b7;
}

.veille-filtre.active {
    background: #065f46;
    color: white;
    border-color: #065f46;
}

/* ── SECTIONS ── */
.veille-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.veille-section-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 4px;
}

.veille-section-emoji {
    font-size: 2.8rem;
    line-height: 1;
    flex-shrink: 0;
}

.veille-section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #064e3b;
    margin-bottom: 4px;
}

.veille-section-header p {
    font-size: 14px;
    color: #6b7280;
}

/* ── GRILLE DE CARTES ── */
.veille-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ── CARTE ── */
.veille-card {
    background: white;
    border-radius: 16px;
    padding: 26px 28px;
    box-shadow: 0 2px 16px rgba(6, 78, 59, 0.07);
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: 1px solid #d1fae5;
    transition: transform 0.2s, box-shadow 0.2s;
}

.veille-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(6, 78, 59, 0.13);
}

.veille-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.veille-card-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.veille-card h3 {
    font-size: 15.5px;
    font-weight: 700;
    color: #064e3b;
    line-height: 1.35;
    margin: 0;
}

.veille-card p {
    font-size: 13.5px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
    flex-grow: 1;
}

/* ── BADGES ── */
.veille-badge {
    display: inline-block;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.badge-mali {
    background: #fef3c7;
    color: #92400e;
}

.badge-afrique {
    background: #ede9fe;
    color: #5b21b6;
}

.badge-monde {
    background: #dbeafe;
    color: #1e40af;
}

.badge-pedagogique {
    background: #dcfce7;
    color: #166534;
}

.badge-anglais {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-maternelle {
    background: #fce7f3;
    color: #9d174d;
}

.badge-primaire {
    background: #ffedd5;
    color: #9a3412;
}

.badge-college {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.badge-programme {
    background: #fef9c3;
    color: #713f12;
    border: 1px solid #fde047;
    font-size: 12px;
}

/* ── Carte Programme par Classe ── */
.veille-card-programme {
    border: 2px solid #d97706;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.veille-card-programme h3 {
    color: #78350f;
}

.veille-card-programme p {
    font-size: 13px;
    color: #57534e;
}

.programme-tableau {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #fde68a;
    font-size: 13px;
}

.prog-ligne {
    display: grid;
    grid-template-columns: 1fr 1.4fr 0.6fr;
    gap: 0;
    padding: 8px 12px;
    border-bottom: 1px solid #fef3c7;
}

.prog-ligne:last-child {
    border-bottom: none;
}

.prog-header {
    background: #92400e;
    color: white;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 7px 12px;
}

.prog-mat {
    background: #fdf4ff;
}

.prog-prim {
    background: #fff7ed;
}

.prog-col {
    background: #f0fdf4;
}

.prog-ligne span {
    display: flex;
    align-items: center;
    color: #374151;
    font-weight: 500;
}

.prog-ligne span:last-child {
    font-size: 11px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Carte mise en avant (programmes officiels) */
.veille-card-featured {
    border: 2px solid #fde047;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
    box-shadow: 0 4px 24px rgba(250, 204, 21, 0.18);
}

.veille-card-featured:hover {
    box-shadow: 0 10px 36px rgba(250, 204, 21, 0.28);
}

.veille-card-featured h3 {
    color: #78350f;
}

.veille-card-featured p {
    color: #57534e;
    font-size: 13px;
}

/* ── TAGS ── */
.veille-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.veille-card-tags span {
    background: #f0faf4;
    border: 1px solid #d1fae5;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 11.5px;
    color: #065f46;
    font-weight: 500;
}

/* ── LIEN CTA ── */
.veille-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #065f46;
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    padding: 10px 0;
    border-top: 1px solid #d1fae5;
    transition: color 0.2s, gap 0.2s;
    margin-top: auto;
}

.veille-card-link:hover {
    color: #047857;
    gap: 12px;
}

.veille-card-link span {
    font-size: 16px;
    transition: transform 0.2s;
}

.veille-card-link:hover span {
    transform: translateX(4px);
}

/* ── NOTE DE BAS ── */
.veille-note {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: white;
    border-radius: 12px;
    padding: 18px 22px;
    border: 1px solid #d1fae5;
    font-size: 13.5px;
    color: #6b7280;
    line-height: 1.6;
}

.veille-note > span {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.veille-note strong {
    color: #065f46;
}

/* ── NAV ACTIVE ── */
.nav-active {
    color: #065f46 !important;
    font-weight: 600;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .veille-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero-veille {
        padding: 60px 5% 40px;
    }
    .veille-main {
        padding: 36px 4% 50px;
    }
    .veille-filtres {
        padding: 14px 16px;
        border-radius: 16px;
    }
    .veille-filtre {
        font-size: 12.5px;
        padding: 7px 14px;
    }
    .veille-section-header {
        gap: 12px;
    }
    .veille-section-emoji {
        font-size: 2rem;
    }
    .veille-section-header h2 {
        font-size: 1.3rem;
    }
    .veille-card {
        padding: 20px 18px;
    }
    .veille-hero-stats {
        gap: 20px;
    }
}
