/* style.css – Interface moderne, responsive, dédiée au rapport MPCE/UCAONG */
:root {
    --primary: #0f3b5c;
    --primary-dark: #082a41;
    --secondary: #d97706;
    --accent: #1e7e6c;
    --gray-bg: #f8fafc;
    --card-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    background-color: #ffffff;
    line-height: 1.5;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HERO */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0a2a3b 0%, #0d3b4f 100%);
    padding: 5rem 0 6rem;
    color: white;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 30%, rgba(255,255,240,0.05) 0%, rgba(0,0,0,0.2) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.highlight {
    color: #facc15;
    border-bottom: 2px solid #facc15;
}
.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}
.hero-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.hero-meta i {
    margin-right: 8px;
    color: #facc15;
}
.wave-separator {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
}
.wave-fill {
    fill: #ffffff;
}

/* Navigation */
.main-nav {
    background: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 24px;
}
.logo {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary);
}
.logo span {
    font-weight: 400;
    color: var(--secondary);
}
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #334155;
    transition: var(--transition);
}
.nav-links a:hover {
    color: var(--secondary);
}
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* sections */
.section {
    padding: 5rem 0;
}
.bg-light {
    background-color: var(--gray-bg);
}
.bg-dark {
    background: #0f172a;
    color: #f1f5f9;
}
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    font-weight: 600;
    background: #fef3c7;
    padding: 0.2rem 1rem;
    border-radius: 30px;
    display: inline-block;
}
.light-tag {
    background: #334155;
    color: #ffedd5;
}
.section-header h2 {
    font-size: 2.2rem;
    margin-top: 1rem;
    font-weight: 700;
}
.divider {
    width: 80px;
    height: 3px;
    background: var(--secondary);
    margin: 1rem auto 0;
}
.light-divider {
    background: #facc15;
}

/* Grids & cartes */
.executive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.exec-card {
    background: white;
    border-radius: 24px;
    padding: 1.8rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid #e2e8f0;
}
.exec-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}
.alert-block {
    background: #fff8e7;
    border-left: 6px solid var(--secondary);
    padding: 1.2rem;
    border-radius: 16px;
    display: flex;
    gap: 1rem;
    align-items: center;
    font-weight: 500;
}
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.stats-preview {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 6px 14px rgba(0,0,0,0.05);
}
.stat-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}
.component-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}
.component-badges span {
    background: #e6f0f5;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.status-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border-left: 6px solid;
}
.status-card.warning { border-left-color: #e67e22; }
.status-card.partial { border-left-color: #f1c40f; }
.status-card.success { border-left-color: #2ecc71; }
.status-card i { font-size: 1.8rem; margin-bottom: 0.7rem; color: #2c3e66; }
.table-wrapper {
    overflow-x: auto;
}
.styled-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.styled-table th, .styled-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.styled-table th {
    background: #f1f5f9;
    font-weight: 600;
}

/* Graphiques et satisfaction */
.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.chart-card {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    text-align: center;
}
.chart-card canvas {
    max-height: 220px;
    width: 100%;
}
.insight-box {
    background: #eef2ff;
    border-radius: 24px;
    padding: 1.5rem;
    margin-top: 1rem;
}
.accordion {
    margin-top: 2rem;
}
.accordion-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
}
.accordion-header i:first-child {
    margin-right: 12px;
    color: var(--secondary);
}
.accordion-content {
    padding: 0 1.5rem 1.2rem 1.5rem;
    display: none;
    border-top: 1px solid #eef2ff;
}
.accordion-item.active .accordion-content {
    display: block;
}
.recommend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.rec-card {
    background: #1e293b;
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.2s;
}
.rec-card .rec-num {
    font-size: 2rem;
    font-weight: 800;
    color: #facc15;
    opacity: 0.6;
    display: block;
    margin-bottom: 0.5rem;
}
.rec-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
}
.rec-card p {
    font-size: 0.9rem;
    color: #cbd5e1;
}
footer {
    background: #0a1a24;
    color: #94a3b8;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.85rem;
}
.footer-note {
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

/* responsive */
@media (max-width: 800px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 1rem;
        box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .two-columns {
        grid-template-columns: 1fr;
    }
    .executive-grid {
        grid-template-columns: 1fr;
    }
}

.fade-up {
    animation: fadeUp 0.6s ease-out;
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}