/* Cleaned stylesheet for concours gabon site */
:root {
    --primary-color: #1b5e20;
    --secondary-color: #388e3c;
    --accent-color: #ffd700;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    will-change: transform;
    transition: transform 280ms cubic-bezier(.2,.7,.2,1), box-shadow 280ms;
}
.header-hidden { transform: translateY(-110%); box-shadow: none !important; }
.header-visible { transform: translateY(0); }

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(90deg, var(--primary-color) 70%, var(--secondary-color) 100%);
    color: var(--white);
}

.logo {
    height: 90px;
    width: auto;
    max-width: 160px;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    object-fit: contain;
}

.language-switch button {
    background: none;
    border: 1.5px solid var(--white);
    color: var(--white);
    padding: 0.5rem 1.1rem;
    margin-left: 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.language-switch button.active { background-color: var(--white); color: var(--primary-color); border-color: var(--accent-color); }

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1.1rem 0 0.7rem 0;
    margin: 0;
    gap: 1.2rem;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: background 0.2s, color 0.2s;
}
nav ul li a:hover, nav ul li a.active { color: var(--primary-color); background: var(--accent-color); }

/* Hero */
#hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../backgrond.jpg');
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.hero-content {
    padding: 3rem 2rem;
    background: rgba(0,0,0,0.45);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.15);
    max-width: 800px;
    margin: 0 1rem;
}
.hero-badge { display: inline-flex; gap: 0.6rem; align-items: center; background: linear-gradient(90deg, rgba(255,215,0,0.95), rgba(56,142,60,0.08)); color: #123214; padding: 0.45rem 0.9rem; border-radius: 999px; font-weight: 800; font-size: 1.05rem; box-shadow: 0 8px 28px rgba(27,94,32,0.12); margin-bottom: 0.9rem; letter-spacing: 0.02em; transform: translateY(-2px); animation: badgePop 520ms cubic-bezier(.2,.9,.2,1) both; }
@keyframes badgePop { from { opacity: 0; transform: scale(.96) translateY(6px); } to { opacity: 1; transform: scale(1) translateY(-2px); } }

/* Stats */
.stats-section { width: 100%; display: flex; justify-content: center; padding: 1.1rem 0.75rem; margin-top: 1.4rem; }
.stats-container { display: flex; gap: 1rem; max-width: 980px; width: 100%; justify-content: space-between; }
.stat-card { flex: 1 1 30%; background: linear-gradient(180deg, #fff, #fbfffb); border-radius: 12px; padding: 1rem 1.2rem; text-align: center; box-shadow: 0 6px 22px rgba(27,94,32,0.06); transform: translateY(0); transition: transform 320ms ease, box-shadow 320ms ease; }
.stat-card:hover { transform: translateY(-8px); box-shadow: 0 18px 48px rgba(27,94,32,0.12); }
.stat-number { font-weight: 800; font-size: 2.1rem; color: var(--primary-color); letter-spacing: 0.01em; }
.stat-label { margin-top: 0.45rem; color: #2f4038; font-weight: 700; }

/* CTA */
.cta-button { display: inline-block; padding: 1rem 2.2rem; background-color: var(--accent-color); color: var(--text-color); text-decoration: none; border-radius: 6px; margin-top: 2rem; font-weight: 600; font-size: 1.1rem; box-shadow: 0 1px 4px rgba(0,0,0,0.08); transition: transform 0.3s, background 0.2s; }
.cta-button:hover { transform: translateY(-3px) scale(1.04); background: #ffe066; }

/* News */
.news-section { padding: 2.5rem 0.5rem; background-color: var(--light-bg); border-radius: 8px; width: 100%; margin: 2.5rem auto; box-shadow: 0 2px 8px rgba(27,94,32,0.04); }
.news-grid { display: flex; gap: 1.5rem; margin: 1.2rem auto 0 auto; overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; padding: 0 1.5rem; align-items: center; max-width: 1100px; }
.news-grid::-webkit-scrollbar { display: none; }
.news-card { flex: 0 0 320px; max-width: 340px; min-width: 260px; background-color: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 3px 12px rgba(27,94,32,0.09); cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; min-height: 370px; scroll-snap-align: center; }
.news-card:hover { transform: translateY(-7px) scale(1.02); box-shadow: 0 8px 24px rgba(27,94,32,0.13); }
.news-card img { width: 100%; height: 200px; object-fit: cover; border-bottom: 1px solid #eee; }
.news-content { padding: 1.5rem 1.2rem 1.2rem 1.2rem; flex: 1; display: flex; flex-direction: column; justify-content: flex-start; }

/* Articles */
.news-article { max-width: 800px; margin: 2.5rem auto 2rem auto; background: var(--white); border-radius: 14px; box-shadow: 0 3px 16px rgba(27,94,32,0.09); padding: 2.2rem 1.5rem 2.5rem 1.5rem; position: relative; }
.back-button { display: inline-block; background: var(--primary-color); color: var(--white); border: none; border-radius: 5px; padding: 0.6rem 1.3rem; font-size: 1rem; font-weight: 500; margin-bottom: 1.5rem; cursor: pointer; transition: background 0.2s; box-shadow: 0 1px 4px rgba(27,94,32,0.08); }
.back-button:hover { background: var(--secondary-color); }
.article-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.article-image { width: 100%; max-width: 420px; height: 260px; object-fit: cover; border-radius: 12px; box-shadow: 0 1px 8px rgba(27,94,32,0.13); margin-bottom: 1rem; }
.article-meta { font-size: 1rem; color: var(--secondary-color); font-weight: 500; }
.article-content { margin-top: 1.2rem; }
.article-content h1 { font-size: 1.7rem; color: var(--primary-color); margin-bottom: 1.1rem; font-weight: 700; }
.article-content h2 { font-size: 1.2rem; color: var(--secondary-color); margin: 1.2rem 0 0.7rem 0; font-weight: 600; }
.article-content p, .article-content ul { font-size: 1.08rem; color: var(--text-color); margin-bottom: 1.1rem; }
.article-content ul { padding-left: 1.5em; }
.article-content ul li { margin-bottom: 0.7rem; list-style: disc inside; }

@media print {
    body *:not(.news-article):not(.news-article *), .back-button, .language-switch, nav, header, footer { display: none !important; }
    .news-article { box-shadow: none !important; background: #fff !important; margin: 0 !important; padding: 0 !important; max-width: 100% !important; }
    .article-image { max-width: 100% !important; height: auto !important; margin-bottom: 1rem !important; }
    .article-content h1, .article-content h2 { color: #222 !important; }
}

/* Eligibility & structure */
.eligibility-section, .structure-section { background: var(--light-bg); margin: 3rem 0; padding: 2.5rem 1.5rem; border-radius: 12px; box-shadow: 0 2px 8px rgba(27,94,32,0.07); max-width: 900px; margin-left: auto; margin-right: auto; }
.eligibility-section h2, .structure-section h2 { text-align: center; color: var(--primary-color); margin-bottom: 1.5rem; font-size: 2rem; font-weight: 700; }
.eligibility-content, .structure-content { display: flex; justify-content: center; gap: 2rem; }
.eligibility-content > div, .structure-content > div { flex: 1; min-width: 220px; }
.eligibility-content ul, .structure-content ul { background: var(--white); border-radius: 8px; box-shadow: 0 1px 4px rgba(27,94,32,0.06); padding: 1.5rem 1.2rem; font-size: 1.08rem; color: var(--text-color); list-style: none; margin: 0; }
.eligibility-content ul li, .structure-content ul li { margin-bottom: 1.1rem; padding-left: 1.8em; position: relative; }
.eligibility-content ul li:before, .structure-content ul li:before { content: '\2713'; color: var(--secondary-color); font-weight: bold; position: absolute; left: 0; top: 0.1em; font-size: 1.1em; }

/* Footer */
footer { background: linear-gradient(90deg, var(--primary-color) 70%, var(--secondary-color) 100%); color: var(--white); padding: 3rem 2rem 1rem; border-radius: 18px 18px 0 0; margin-top: 3rem; box-shadow: 0 -2px 8px rgba(27,94,32,0.07); }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2.2rem; margin-bottom: 2rem; }
.footer-section .footer-contact-inner { display: flex; align-items: center; gap: 1rem; }
.flag-figure svg { display: block; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.contact-lines p { margin: 0; color: #f2f7f2; font-weight: 600; }
.contact-email { font-size: 0.98rem; }
.contact-tel { font-size: 0.95rem; opacity: 0.95; }
footer .footer-section { color: #fff; }

/* Announcement */
.announcement-bar { background: linear-gradient(90deg, rgba(27,94,32,0.96), rgba(56,142,60,0.92)); color: #fff; padding: 0.55rem 0.8rem; box-shadow: 0 6px 20px rgba(27,94,32,0.12); }
.announcement-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.announcement-text { font-weight: 700; font-size: 1.02rem; }
.announcement-cta { background: #fff; color: var(--primary-color); padding: 0.55rem 0.9rem; border-radius: 8px; font-weight: 800; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.announcement-cta:hover { transform: translateY(-2px); }

/* Menu toggle */
.menu-toggle { display: none; position: absolute; right: 1rem; top: 1.25rem; width: 44px; height: 36px; background: transparent; border: none; cursor: pointer; z-index: 120; }
.menu-toggle .bar { display: block; width: 26px; height: 3px; background: var(--white); margin: 5px auto; transition: transform 0.2s ease, opacity 0.2s ease; }

/* Animations and small helpers */
@keyframes slideUpFade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseShadow { 0% { box-shadow: 0 0 0 rgba(27,94,32,0); } 50% { box-shadow: 0 10px 36px rgba(27,94,32,0.06); } 100% { box-shadow: 0 0 0 rgba(27,94,32,0); } }

.mission-section.in-view h2::after { width: 36%; }
.mission-section .mission-content > div { opacity: 0; transform: translateY(12px); transition: box-shadow 240ms ease, transform 280ms ease; }
.mission-section.in-view .mission-content > div { animation: slideUpFade 680ms cubic-bezier(.2,.8,.2,1) forwards; }
.mission-section.in-view .mission-content > div:nth-child(1) { animation-delay: 0ms; }
.mission-section.in-view .mission-content > div:nth-child(2) { animation-delay: 100ms; }
.mission-section.in-view .mission-content > div:nth-child(3) { animation-delay: 200ms; }
.mission-content > div:hover { transform: translateY(-8px) scale(1.01); box-shadow: 0 14px 36px rgba(27,94,32,0.10); }
.mission-section.in-view { animation: pulseShadow 2100ms ease 1; }

/* Responsive tweaks */
@media (max-width: 900px) {
    .mission-section { padding: 1.6rem 1rem; }
    .mission-section h2 { font-size: 1.6rem; padding-left: 1.2rem; }
    .mission-content > div { padding: 1.1rem; font-size: 1rem; }
    .mission-content p::first-letter { font-size: 1.8rem; }
    .mission-content { flex-direction: column; }
    .publications-section { padding: 1.2rem 0.5rem; }
    .publications-content { flex-direction: column; gap: 1.2rem; }
    .news-section, .eligibility-section, .structure-section { padding: 1.2rem 0.5rem; }
    .news-grid { gap: 1.2rem; }
}

@media (max-width: 768px) {
    .header-top { flex-direction: column; text-align: center; padding: 1rem 0.5rem; }
    .header-top > * { margin: 0.5rem 0; }
    nav ul { flex-direction: column; align-items: center; gap: 0.5rem; }
    nav ul li { margin: 0.5rem 0; }
    #hero { min-height: 38vh; border-radius: 0 0 10px 10px; }
    .news-card img { height: 140px; }
    .footer-content { grid-template-columns: 1fr; gap: 1.2rem; }
    footer { border-radius: 12px 12px 0 0; }
    .menu-toggle { display: block; }
    nav { display: none; }
    nav.open { display: block; }
}

@media (max-width: 720px) { .stats-container { flex-direction: column; gap: 0.9rem; } .stat-card { width: 100%; } }
@media (max-width: 480px) { .hero-content { padding: 1.6rem 1rem; } .hero-content h2 { font-size: 1.2rem; } .cta-button { padding: 0.9rem 1.6rem; font-size: 1rem; } .logo { height: 70px; } .flag-figure svg { width: 56px; height: 38px; } }

*** End Patch
