/* ==========================================================
   ECONIMBA — Feuille de style principale
   Modifiez les couleurs dans :root ci-dessous
   ========================================================== */

:root {
    --primary: #0a1628;       /* Bleu marine foncé (couleur principale) */
    --primary-light: #1a3a5c;
    --secondary: #1a6b3a;     /* Vert ECONIMBA */
    --secondary-light: #1a8a4a;
    --accent: #4ade80;        /* Vert clair (accents) */
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #f9fafb;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 4px 12px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 30px rgba(0,0,0,.1);
    --radius: 12px;
}

/* ============ RESET & BASE ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; line-height: 1.2; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

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

/* ============ TOP BAR ============ */
.topbar {
    background: var(--secondary);
    color: #fff;
    font-size: 12px;
    padding: 6px 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-contact { display: flex; gap: 15px; }

/* ============ HEADER ============ */
.header {
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    gap: 20px;
}
.logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.logo-circle {
    width: 45px; height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), #0d4a28);
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid rgba(74,222,128,.5);
}
.logo-text strong { font-size: 20px; font-family: 'Playfair Display', serif; }
.logo-text span { display: block; color: var(--accent); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; }

/* Navigation */
.nav-list { display: flex; gap: 5px; align-items: center; }
.nav-list a {
    color: rgba(255,255,255,.8);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all .2s;
    display: block;
}
.nav-list a:hover, .nav-list a.active { color: var(--accent); background: rgba(255,255,255,.1); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
    position: absolute;
    top: 100%; left: 0;
    min-width: 220px;
    background: var(--primary);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all .2s;
    z-index: 200;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
    padding: 10px 16px;
    color: rgba(255,255,255,.75);
    border-radius: 0;
}
.dropdown a:hover { background: var(--secondary); color: #fff; }

.btn-membre {
    background: var(--secondary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: background .2s;
}
.btn-membre:hover { background: var(--secondary-light); }

.menu-toggle { display: none; color: #fff; font-size: 24px; padding: 5px 10px; }

/* ============ HERO ============ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0d2545 50%, #1a3a20 100%);
    color: #fff;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: var(--accent);
    border-radius: 50%;
    opacity: .08;
    filter: blur(80px);
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -100px;
    width: 350px; height: 350px;
    background: #3b82f6;
    border-radius: 50%;
    opacity: .1;
    filter: blur(80px);
}
.hero-content { position: relative; max-width: 800px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(74,222,128,.15);
    border: 1px solid rgba(74,222,128,.3);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 4rem); margin-bottom: 20px; font-weight: 700; }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,.75); margin-bottom: 30px; max-width: 650px; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: all .2s;
    cursor: pointer;
}
.btn-primary { background: var(--secondary); color: #fff; }
.btn-primary:hover { background: var(--secondary-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* Stats bar */
.stats-bar {
    background: rgba(0,0,0,.3);
    backdrop-filter: blur(10px);
    padding: 25px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,.1);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.stat-value { font-size: 28px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 13px; color: rgba(255,255,255,.6); }

/* ============ SECTIONS ============ */
.section { padding: 70px 0; }
.section-white { background: #fff; }
.section-dark { background: var(--primary); color: #fff; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-badge {
    display: inline-block;
    background: rgba(26,107,58,.1);
    color: var(--secondary);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
}
.section-dark .section-badge { background: rgba(74,222,128,.15); color: var(--accent); }
.section h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--primary); margin-bottom: 12px; }
.section-dark h2 { color: #fff; }
.section-subtitle { color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* ============ GRILLES & CARTES ============ */
.grid { display: grid; gap: 25px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 36px; margin-bottom: 12px; }
.card h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 10px; }
.card p { color: var(--text-light); font-size: 14px; }
.card-link {
    display: inline-flex; align-items: center; gap: 5px;
    color: var(--secondary);
    font-weight: 600;
    margin-top: 12px;
    font-size: 14px;
}
.card-link:hover { gap: 10px; }

/* Cartes domaines (compact) */
.domain-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all .2s;
    cursor: pointer;
}
.domain-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.domain-card .icon { font-size: 36px; margin-bottom: 10px; }
.domain-card .label { font-weight: 600; color: var(--primary); font-size: 14px; }

/* Cartes actualités */
.article-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform .2s, box-shadow .2s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-card .bar { height: 6px; background: linear-gradient(90deg, var(--secondary), var(--accent)); }
.article-card-content { padding: 22px; }
.article-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 12px; color: var(--text-light); }
.tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--secondary);
    color: #fff;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.article-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--primary); line-height: 1.35; }
.article-card p { font-size: 14px; color: var(--text-light); margin-bottom: 15px; }

/* ============ PUBLICATIONS ============ */
.pub-item {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    padding: 20px;
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
    transition: background .2s;
    gap: 15px;
    flex-wrap: wrap;
}
.pub-item:hover { background: rgba(255,255,255,.1); }
.pub-item-left { display: flex; align-items: center; gap: 15px; flex: 1; min-width: 280px; }
.pub-icon {
    width: 45px; height: 45px;
    border-radius: 10px;
    background: rgba(26,107,58,.3);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.pub-title { color: #fff; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.pub-meta { color: rgba(255,255,255,.5); font-size: 13px; }
.pub-download {
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
    display: inline-flex; align-items: center; gap: 5px;
}

/* ============ PAGE BANNER (sous-pages) ============ */
.page-banner {
    background: linear-gradient(135deg, var(--primary), #1a3a20);
    color: #fff;
    padding: 60px 0;
}
.breadcrumb { color: var(--accent); font-size: 13px; margin-bottom: 8px; }
.page-banner h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 10px; }
.page-banner p { color: rgba(255,255,255,.7); max-width: 700px; }

/* Sous-navigation */
.subnav {
    background: #fff;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    position: sticky;
    top: 70px;
    z-index: 50;
}
.subnav-inner { display: flex; gap: 0; min-width: max-content; }
.subnav a {
    padding: 16px 24px;
    border-bottom: 2px solid transparent;
    color: var(--text-light);
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    transition: all .2s;
}
.subnav a:hover { color: var(--primary); }
.subnav a.active { border-color: var(--secondary); color: var(--secondary); }

/* ============ FORMULAIRES ============ */
.form-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(26,107,58,.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--secondary);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: background .2s;
}
.form-submit:hover { background: var(--secondary-light); }

/* Message flash */
.flash {
    padding: 14px 0;
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
}
.flash-success { background: #d1fae5; color: #065f46; }
.flash-error   { background: #fee2e2; color: #991b1b; }

/* ============ CONTACT BOX ============ */
.contact-info {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
    display: flex; align-items: flex-start; gap: 14px;
}
.contact-info-icon {
    width: 45px; height: 45px;
    border-radius: 10px;
    background: rgba(26,107,58,.1);
    color: var(--secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.contact-info-label { font-size: 12px; color: var(--text-light); }
.contact-info-value { font-weight: 600; color: var(--primary); }

/* ============ NEWSLETTER ============ */
.newsletter {
    background: linear-gradient(135deg, var(--secondary), #0d4a28);
    color: #fff;
    padding: 50px 0;
}
.newsletter-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 30px; flex-wrap: wrap;
}
.newsletter h3 { font-size: 1.7rem; margin-bottom: 4px; }
.newsletter p { color: rgba(255,255,255,.85); font-size: 14px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 14px;
    min-width: 280px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.6); }
.newsletter-form button {
    background: #fff;
    color: var(--secondary);
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

/* ============ FOOTER ============ */
.footer { background: #060e1a; color: #fff; padding: 60px 0 25px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 40px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.footer-logo strong { font-size: 18px; }
.footer-about { color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.7; margin-bottom: 18px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.social-links a:hover { background: var(--secondary); }

.footer h4 {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-links li, .footer-contact li { color: rgba(255,255,255,.6); font-size: 14px; padding: 5px 0; }
.footer-links li a:hover { color: var(--accent); }
.footer-contact a { color: var(--accent); }
.footer-hours {
    margin-top: 18px;
    padding: 12px;
    background: rgba(255,255,255,.05);
    border-radius: 8px;
    font-size: 13px;
    color: rgba(255,255,255,.75);
}
.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    color: rgba(255,255,255,.4);
    font-size: 13px;
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: #fff; }

/* ============ DIVERS ============ */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.hide-mobile { display: inline; }

/* Timeline */
.timeline { position: relative; padding-left: 30px; border-left: 3px solid var(--secondary); }
.timeline-item { position: relative; padding-bottom: 30px; padding-left: 25px; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px; top: 5px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--secondary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--secondary);
}
.timeline-year { font-weight: 700; color: var(--secondary); font-size: 1.3rem; margin-bottom: 4px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary); border-top: 1px solid rgba(255,255,255,.1); }
    .nav.open { display: block; }
    .nav-list { flex-direction: column; padding: 10px 0; gap: 0; }
    .nav-list > li { width: 100%; border-bottom: 1px solid rgba(255,255,255,.05); }
    .nav-list a { padding: 12px 20px; border-radius: 0; }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; background: rgba(0,0,0,.2); box-shadow: none; border: none; padding: 0; }
    .dropdown a { padding: 10px 40px; font-size: 13px; }
    .menu-toggle { display: block; }
    .btn-membre { display: none; }
    .grid-4, .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hide-mobile { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .newsletter-inner { flex-direction: column; text-align: center; }
    .newsletter-form { width: 100%; flex-direction: column; }
    .newsletter-form input { min-width: 0; width: 100%; }
}
@media (max-width: 480px) {
    .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .logo-text span { display: none; }
}
