/* ============================================================
   ADIC — Association des Diabétiques du Congo
   Thème : bleu principal, blanc, touches de rouge
   ============================================================ */

:root {
    --blue-900: #082A66;
    --blue-800: #0A3A8C;
    --blue-700: #0A4DA3;
    --blue-600: #1163C8;
    --blue-100: #E3EEFB;
    --blue-50:  #F2F7FD;
    --red-700:  #B71C1C;
    --red-600:  #C62828;
    --red-50:   #FDEDED;
    --ink:      #14233B;
    --gray-700: #37445A;
    --gray-500: #6B7688;
    --gray-200: #E4E9F0;
    --gray-100: #F4F6F9;
    --white:    #FFFFFF;
    --radius:   14px;
    --shadow:   0 6px 24px rgba(8, 42, 102, .08);
    --shadow-lg:0 14px 40px rgba(8, 42, 102, .16);
    --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-head: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    font-size: 16px;
}

img { max-width: 100%; display: block; }

a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-600); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; color: var(--blue-900); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--blue-900); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 15px;
    padding: 13px 26px;
    border-radius: 40px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-red   { background: var(--red-600); color: #fff; box-shadow: 0 6px 18px rgba(198, 40, 40, .35); }
.btn-red:hover   { background: var(--red-700); color: #fff; }
.btn-white { background: #fff; color: var(--blue-800); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.btn-white:hover { color: var(--blue-900); }
.btn-blue  { background: var(--blue-700); color: #fff; box-shadow: 0 6px 18px rgba(10, 77, 163, .3); }
.btn-blue:hover { background: var(--blue-800); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Barre du haut ---------- */
.topbar { background: var(--blue-900); color: #CFE0F5; font-size: 13.5px; }
.topbar-inner { display: flex; justify-content: flex-end; gap: 22px; padding: 7px 20px; }
.topbar-link { color: #CFE0F5; }
.topbar-link:hover { color: #fff; }

/* ---------- En-tête ---------- */
.site-header {
    background: #fff;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 14px rgba(8, 42, 102, .07);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { display: inline-flex; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 24px; color: var(--blue-800); letter-spacing: .5px; }
.brand-text small { font-size: 12px; color: var(--gray-500); max-width: 240px; }

.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-link {
    padding: 8px 13px; border-radius: 8px;
    font-weight: 500; font-size: 15px; color: var(--ink);
}
.nav-link:hover { background: var(--blue-50); color: var(--blue-700); }
.nav-link.active { color: var(--blue-700); background: var(--blue-50); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
    border: 1.5px solid var(--gray-200); border-radius: 30px;
    padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--gray-700);
}
.lang-switch:hover { border-color: var(--blue-600); color: var(--blue-700); }

.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 42px; height: 42px; border-radius: 8px; padding: 10px 8px;
    flex-direction: column; justify-content: space-between; align-items: stretch;
}
.nav-toggle span { display: block; height: 3px; background: var(--blue-800); border-radius: 3px; }

/* ---------- Héros ---------- */
.hero {
    background-size: cover; background-position: center;
    color: #fff; padding: 110px 0 150px; position: relative;
}
.hero-inner { max-width: 820px; }
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .35);
    padding: 7px 16px; border-radius: 30px;
    font-size: 14px; margin-bottom: 22px;
}
.hero-title {
    font-size: clamp(34px, 5vw, 54px); font-weight: 800;
    color: #fff; margin-bottom: 18px;
    border-left: 6px solid var(--red-600);
    padding-left: 22px;
}
.hero-sub { font-size: 17.5px; max-width: 680px; color: #E4EEFA; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Bandeau chiffres ---------- */
.stats-band { margin-top: -72px; position: relative; z-index: 2; }
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.stat-card {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 26px 20px; text-align: center;
    border-bottom: 4px solid var(--blue-600);
}
.stat-card:nth-child(even) { border-bottom-color: var(--red-600); }
.stat-number {
    display: block; font-family: var(--font-head);
    font-size: 30px; font-weight: 800; color: var(--blue-800);
}
.stat-label { font-size: 14px; color: var(--gray-500); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--gray-100); }
.section-title { font-size: 30px; font-weight: 700; margin-bottom: 22px; }
.section-title::after {
    content: ''; display: block; width: 64px; height: 4px;
    background: var(--red-600); border-radius: 4px; margin-top: 12px;
}
.section-center { text-align: center; }
.section-center::after { margin: 12px auto 0; }
.section-sub { text-align: center; color: var(--gray-500); margin: -8px 0 44px; }

/* ---------- Mission ---------- */
.mission-grid {
    display: grid; grid-template-columns: 1.05fr .95fr;
    gap: 56px; align-items: center;
}
.mission-text p { color: var(--gray-700); font-size: 17px; margin-bottom: 26px; }
.mission-figure {
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid #fff;
    outline: 1px solid var(--gray-200);
}
.mission-figure img { width: 100%; height: 380px; object-fit: cover; }

/* ---------- Services ---------- */
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
    background: #fff; border-radius: var(--radius);
    padding: 30px 26px; box-shadow: var(--shadow);
    border-top: 4px solid var(--blue-600);
    transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:nth-child(3n+2) { border-top-color: var(--red-600); }
.service-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; font-size: 26px;
    background: var(--blue-100); border-radius: 50%;
    margin-bottom: 16px;
}
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { color: var(--gray-500); font-size: 14.5px; }

/* ---------- Actualités ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); display: flex; flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-thumb { height: 170px; background-size: cover; background-position: center; }
.news-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: 12.5px; color: var(--red-600); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.news-body h3 { font-size: 17px; margin: 6px 0 10px; }
.news-body h3 a { color: var(--blue-900); }
.news-body h3 a:hover { color: var(--blue-600); }
.news-body p { color: var(--gray-500); font-size: 14.5px; flex: 1; }
.news-link { margin-top: 14px; font-weight: 600; font-size: 14.5px; }

/* ---------- Bandeau don ---------- */
.cta-band {
    background: linear-gradient(100deg, var(--red-600), var(--red-700));
    color: #fff; padding: 58px 0;
}
.cta-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.cta-inner h2 { color: #fff; font-size: 28px; margin-bottom: 8px; }
.cta-inner p { color: #F8D7D7; max-width: 620px; }

/* ---------- Partenaires ---------- */
.partners-section { padding-top: 60px; }
.partners-list {
    list-style: none; display: flex; flex-wrap: wrap;
    justify-content: center; gap: 12px 22px;
}
.partners-list li {
    background: var(--blue-50); color: var(--blue-800);
    border: 1px solid var(--blue-100);
    padding: 9px 18px; border-radius: 30px;
    font-size: 14px; font-weight: 500;
}

/* ---------- Pages intérieures ---------- */
.page-hero {
    background: linear-gradient(115deg, var(--blue-900), var(--blue-700));
    color: #fff; padding: 64px 0;
}
.page-hero h1 { color: #fff; font-size: 36px; font-weight: 800; margin-bottom: 10px; }
.page-hero p { color: #D8E6F7; font-size: 16.5px; max-width: 720px; }
.page-hero-meta { color: #F8D7D7 !important; font-size: 14px !important; font-weight: 600; }

.prose p { color: var(--gray-700); margin-bottom: 18px; font-size: 16.5px; }
.prose p:first-child::first-letter {
    font-family: var(--font-head); font-size: 46px; font-weight: 700;
    color: var(--blue-700); float: left; line-height: 1;
    padding: 4px 10px 0 0;
}

/* Listes à cocher */
.check-list { list-style: none; }
.check-list li {
    position: relative; padding: 12px 0 12px 42px;
    border-bottom: 1px dashed var(--gray-200);
    font-size: 16.5px; color: var(--gray-700);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
    content: '✓'; position: absolute; left: 0; top: 12px;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--blue-100); color: var(--blue-700);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px;
}
.check-list-red li::before { background: var(--red-50); color: var(--red-600); }

/* Coordinateur */
.coord-card {
    display: flex; gap: 44px; align-items: center;
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 40px;
    max-width: 900px; margin: 0 auto;
    border-left: 6px solid var(--red-600);
}
.coord-photo {
    width: 260px; height: 300px; object-fit: cover; object-position: top;
    border-radius: 12px; box-shadow: var(--shadow);
    border: 5px solid var(--blue-100);
    flex-shrink: 0;
}
.coord-info h3 { font-size: 26px; margin-bottom: 4px; }
.coord-role { color: var(--red-600); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.coord-info p { color: var(--gray-700); }

/* Valeurs */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card {
    background: #fff; border-radius: var(--radius); padding: 28px 22px;
    box-shadow: var(--shadow); text-align: center;
    border-bottom: 4px solid var(--blue-600);
}
.value-card:nth-child(odd) { border-bottom-color: var(--red-600); }
.value-card h3 { font-size: 19px; margin-bottom: 8px; }
.value-card p { color: var(--gray-500); font-size: 14px; }

/* Locaux */
.premises-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 8px;
}
.premises-grid figure {
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-lg); background: #fff;
}
.premises-grid img { width: 100%; height: 320px; object-fit: cover; }
.premises-grid figcaption {
    padding: 14px; text-align: center; font-weight: 600;
    color: var(--blue-800); background: #fff;
}

/* Activités */
.activities-list { display: flex; flex-direction: column; gap: 20px; }
.activity-card {
    display: flex; gap: 22px; align-items: flex-start;
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 28px;
    border-left: 5px solid var(--blue-600);
}
.activity-card:nth-child(even) { border-left-color: var(--red-600); }
.activity-card .service-icon { margin-bottom: 0; flex-shrink: 0; }
.activity-card h3 { font-size: 19px; margin-bottom: 6px; }
.activity-card p { color: var(--gray-500); }
.empty-note { text-align: center; color: var(--gray-500); padding: 30px 0; }

/* Dons */
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.donate-card {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 40px 34px; text-align: center;
}
.donate-card-red {
    background: linear-gradient(140deg, var(--red-600), var(--red-700)); color: #fff;
}
.donate-icon { font-size: 40px; display: block; margin-bottom: 14px; }
.donate-card h2 { font-size: 24px; margin-bottom: 10px; }
.donate-card-red h2 { color: #fff; }
.donate-card p { color: var(--gray-500); margin-bottom: 16px; }
.donate-card-red p { color: #F8D7D7; }
.donate-phone { margin: 8px 0 20px !important; }
.donate-phone a {
    font-family: var(--font-head); font-size: 30px; font-weight: 800;
    color: #fff !important; letter-spacing: 1px;
}

/* Galerie */
.gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.gallery-item {
    position: relative; display: block; border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
}
.gallery-item img {
    width: 100%; height: 250px; object-fit: cover;
    transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 34px 16px 12px;
    background: linear-gradient(transparent, rgba(8, 42, 102, .85));
    color: #fff; font-size: 14.5px; font-weight: 500;
}

/* Visionneuse (lightbox) */
.lightbox {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(5, 15, 35, .93);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 14px; padding: 30px;
}
.lightbox img {
    max-width: 92vw; max-height: 78vh; border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lightbox-caption { color: #D8E6F7; font-size: 15px; text-align: center; }
.lightbox-close {
    position: absolute; top: 22px; right: 26px;
    background: rgba(255, 255, 255, .12); border: none; color: #fff;
    width: 44px; height: 44px; border-radius: 50%;
    font-size: 22px; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .25); }
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255, 255, 255, .12); border: none; color: #fff;
    width: 48px; height: 48px; border-radius: 50%;
    font-size: 22px; cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, .25); }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 18px; }
.contact-card {
    display: flex; gap: 16px; align-items: center;
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 22px;
}
.contact-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; font-size: 24px;
    background: var(--blue-100); border-radius: 50%; flex-shrink: 0;
}
.contact-card h3 { font-size: 16px; margin-bottom: 2px; }
.contact-card p { color: var(--gray-500); font-size: 15px; }

.contact-form-wrap {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 36px;
    border-top: 5px solid var(--blue-600);
}
.contact-form-wrap h2 { font-size: 22px; margin-bottom: 22px; }
.contact-form-wrap label { display: block; margin-bottom: 16px; }
.contact-form-wrap label span {
    display: block; font-weight: 600; font-size: 14px;
    color: var(--gray-700); margin-bottom: 6px;
}
.contact-form-wrap input,
.contact-form-wrap textarea {
    width: 100%; padding: 12px 14px;
    border: 1.5px solid var(--gray-200); border-radius: 10px;
    font-family: inherit; font-size: 15px; color: var(--ink);
    background: var(--gray-100);
    transition: border-color .15s ease, background .15s ease;
}
.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus {
    outline: none; border-color: var(--blue-600); background: #fff;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { margin-top: 12px; font-size: 13px; color: var(--gray-500); }
.form-note { margin-top: 8px; font-size: 14px; color: var(--blue-700); font-weight: 600; }

/* Détail actualité */
.news-detail-figure {
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-lg); margin-bottom: 30px;
}
.news-detail-figure img { width: 100%; max-height: 440px; object-fit: cover; }
.news-back { margin-top: 34px; }

/* 404 */
.notfound-box {
    text-align: center; padding: 30px 0;
}
.notfound-box p { color: var(--gray-500); margin-bottom: 24px; font-size: 17px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--blue-900); color: #C9D9EE; margin-top: 20px; }
.footer-grid {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px; padding: 60px 20px 40px;
}
.footer-title {
    color: #fff; font-size: 17px; margin-bottom: 16px;
    padding-bottom: 10px; position: relative;
}
.footer-title::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 36px; height: 3px; background: var(--red-600); border-radius: 3px;
}
.footer-col p { font-size: 14.5px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #C9D9EE; font-size: 14.5px; }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; }
.footer-contact li { margin-bottom: 10px; font-size: 14.5px; }
.footer-contact a { color: #C9D9EE; }
.footer-contact a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom-inner {
    display: flex; justify-content: space-between; align-items: center;
    gap: 14px; padding: 18px 20px; font-size: 13.5px;
}
.footer-admin-link { color: #7E96BB; }
.footer-admin-link:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .main-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; flex-direction: column; padding: 14px 20px 20px;
        box-shadow: 0 14px 30px rgba(8, 42, 102, .12);
        gap: 2px;
    }
    .main-nav.open { display: flex; }
    .nav-toggle { display: flex; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid, .news-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .mission-grid { grid-template-columns: 1fr; gap: 34px; }
    .coord-card { flex-direction: column; text-align: center; padding: 30px; }
    .coord-photo { width: 220px; height: 260px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 620px) {
    .hero { padding: 80px 0 130px; }
    .stats-grid, .services-grid, .news-grid, .gallery-grid,
    .values-grid, .premises-grid, .donate-grid, .form-row { grid-template-columns: 1fr; }
    .topbar-inner { justify-content: center; gap: 14px; }
    .header-actions .btn-sm { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .section { padding: 60px 0; }
    .section-title { font-size: 26px; }
    .activity-card { flex-direction: column; }
    .mission-figure img { height: 260px; }
}
