/* CSS Variables & Reset */
:root {
    --primary-blue: #5bcefa;
    --primary-pink: #f5a9b8;
    --charcoal: #2b2b2b;
    --danger-red: #d9534f;
    --bg-light: #f7f9fa;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 2rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--charcoal);
}

.btn-primary:hover { background-color: #4abde9; }

.btn-outline {
    background-color: transparent;
    border-color: var(--charcoal);
    color: var(--charcoal);
}

.btn-outline:hover { background-color: var(--charcoal); color: var(--white); }

.btn-danger {
    background-color: var(--danger-red);
    color: var(--white);
}

.btn-danger:hover { background-color: #c9302c; }

.btn-dark {
    background-color: var(--charcoal);
    color: var(--white);
}

.btn-text {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
}

/* Header & Navbar */
/* --- Core Structural Navbar Framework --- */
.navbar {
    background-color: var(--white, #ffffff);
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Fluid Logo Rendering Box */
.logo-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0.5rem 0;
}

.logo-img {
    max-height: 55px; /* Safely bounds scaling properties within header constraints */
    width: auto;
    object-fit: contain;
    display: block;
}

/* Desktop Link Layout */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--charcoal, #2b2b2b);
    font-family: var(--font-heading), sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-blue, #5bcefa);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Visibility Control Flags */
.mobile-only-action { display: none; }
.desktop-only-action { display: block; }

/* Hamburger Icon Core Styling Layout */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2500;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--charcoal, #2b2b2b);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- Responsive Layout Breakpoint --- */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .desktop-only-action {
        display: none;
    }

    .mobile-only-action {
        display: block;
        width: 100%;
        margin-top: 1rem;
    }

    .mobile-only-action .btn {
        display: block;
        text-align: center;
        width: 100%;
    }

    /* Transform standard desktop menu container into a slide-out drawer card */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Keeps container completely hidden off-canvas natively */
        width: 280px;
        height: 100vh;
        background-color: var(--white, #ffffff);
        box-shadow: -4px 0 25px rgba(0, 0, 0, 0.08);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 6.5rem 2rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 2200;
    }

    /* Visual trigger state class when interaction runs */
    .nav-links.drawer-open {
        right: 0;
    }

    /* Transform your 3 custom internal spans into an 'X' close graphic */
    .menu-toggle.is-active span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(91,206,250,0.1) 0%, rgba(245,169,184,0.1) 100%);
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-content { flex: 1; }
.hero-content p { font-size: 1.1rem; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; }

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.visual-placeholder, .phone-placeholder {
    width: 100%;
    height: 350px;
    background-color: var(--charcoal);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    text-align: center;
    padding: 2rem;
}

.visual-placeholder{
	
	background:url('images/ritac_home_hero.jpg');
	background-size:cover;
	background-position:fixed;
	background-repeat:no-repeat;
	
}

.phone-placeholder{
	
	background:url('images/nkul_vbg_app_graphic.jpg');
	background-size:cover;
	background-position:fixed;
	background-repeat:no-repeat;
	
}


/* Support Bar */
.support-bar {
    background-color: var(--charcoal);
    color: var(--white);
    padding: 3rem 0;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.support-card p { margin-bottom: 1rem; font-size: 0.95rem; opacity: 0.9; }

/* About Section */
.about { padding: 5rem 0; }
.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-quote { flex: 1; }
.about-quote blockquote {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-style: italic;
    border-left: 5px solid var(--primary-pink);
    padding-left: 1.5rem;
}

.about-stats {
    flex: 1;
    display: flex;
    gap: 2rem;
}

.stat-item h4 {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

/* App Section */
.app-section { padding: 5rem 0; background-color: var(--bg-light); }
.app-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.app-visual { flex: 1; }
.app-content { flex: 1; }

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

/* Partners */
.network-partners { padding: 5rem 0; text-align: center; }
.section-subtitle { margin-bottom: 3rem; }
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.partner-logo {
    padding: 1rem 2rem;
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 5px;
    font-weight: 600;
    color: #666;
}

/* Footer */
.footer { background-color: var(--charcoal); color: var(--white); padding: 4rem 0 2rem; }
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--white); text-decoration: none; opacity: 0.8; transition: opacity 0.3s; }
.footer-col a:hover { opacity: 1; color: var(--primary-pink); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; font-size: 0.9rem; opacity: 0.7; }

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container, .about-container, .app-container {
        flex-direction: column;
        text-align: center;
    }
    .about-quote blockquote { border-left: none; border-top: 5px solid var(--primary-pink); padding-top: 1.5rem; padding-left: 0; }
    .hero-buttons, .about-stats, .app-buttons { justify-content: center; }
}


/* --- Qui Sommes-Nous Specific Styles --- */

/* Utility Classes */
.text-center { text-align: center; }
.section-padding { padding: 5rem 0; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--charcoal); color: var(--white); }
.text-white { color: var(--white); }
.subtitle-max { max-width: 800px; margin: 0 auto 1.5rem auto; font-size: 1.1rem; }

/* Active Nav State */
.nav-links a.active { color: var(--primary-pink); border-bottom: 2px solid var(--primary-pink); }

/* Page Hero */
.page-hero {
    background: linear-gradient(rgba(43,43,43,0.9), rgba(43,43,43,0.9)), url('images/central_african_human_rights_banner.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 6rem 0;
}
.page-hero h1 { font-size: 3rem; color: var(--primary-blue); }
.page-hero .hero-subtitle { font-size: 1.25rem; max-width: 800px; margin: 0 auto; opacity: 0.9; }

/* Identity Section */
.identity-content { max-width: 800px; margin: 0 auto; text-align: center; }
.identity-content h2 { color: var(--primary-pink); margin-bottom: 1.5rem; }
.identity-content p { font-size: 1.15rem; margin-bottom: 1rem; }

/* Vision & Mission Grid */
.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}
.vm-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 5px solid var(--primary-blue);
    transition: transform 0.3s;
}
.vm-card:nth-child(2) { border-top-color: var(--primary-pink); }
.vm-card:hover { transform: translateY(-5px); }
.vm-icon { font-size: 3rem; margin-bottom: 1rem; }
.vm-card p { margin-bottom: 1rem; color: #555; }

/* Principles Grid */
.principles-section h2 { margin-bottom: 1rem; }
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.principle-card {
    background: var(--white);
    border: 1px solid #eee;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--charcoal);
    transition: all 0.3s ease;
}
.principle-card:hover {
    border-left-color: var(--primary-blue);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.principle-card h4 { color: var(--charcoal); margin-bottom: 0.5rem; }
.principle-card p { font-size: 0.95rem; color: #666; }

/* Target Audience */
.target-audience h2 { color: var(--primary-blue); margin-bottom: 1.5rem; }

/* --- Nos Actions Specific Styles --- */

.bg-action {
    background: linear-gradient(rgba(43,43,43,0.85), rgba(43,43,43,0.85)), url('images/ritac_nos_actions.jpg');
    background-size: cover;
    background-position: center;
}

/* Actions Grid */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.action-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-blue);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.action-card:nth-child(even) {
    border-top-color: var(--primary-pink);
}

.action-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.action-card h4 {
    color: var(--charcoal);
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.action-card p {
    font-size: 0.95rem;
    color: #555;
}

/* Highlight Card for Emergency Fund */
.highlight-card {
    border-top: 4px solid var(--danger-red);
    background-color: #fff8f8;
}

.highlight-card h4 {
    color: var(--danger-red);
}

/* Nkul VBG Spotlight Section */
.nkul-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.nkul-text {
    flex: 1;
}

.nkul-visual {
    flex: 1;
}

.app-3d-placeholder {
    width: 100%;
    height: 400px;
    background-color: rgba(255,255,255,0.1);
    border: 2px dashed rgba(255,255,255,0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
	background:url('images/nkul_vbg_app_graphic.jpg');
	background-size:cover;
	background-position:fixed;
	background-repeat:no-repeat;	
}

.white-list li::before {
    color: var(--primary-blue);
}

@media (max-width: 992px) {
    .nkul-container {
        flex-direction: column;
    }
}

/* --- Notre Réseau Specific Styles --- */

.bg-network {
    background: linear-gradient(rgba(43,43,43,0.85), rgba(43,43,43,0.85)), url('images/central_africa_network_map.jpg');
    background-size: cover;
    background-position: center;
}

/* Country Grid */
.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.country-card {
    background: var(--white);
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.country-header {
    background-color: var(--charcoal);
    color: var(--white);
    padding: 1rem 1.5rem;
}

.country-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.member-list {
    list-style: none;
    padding: 1.5rem;
    margin: 0;
}

.member-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.member-list li::before {
    content: "•";
    color: var(--primary-pink);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Partners Section */
.logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.partner-box {
    background-color: var(--white);
    padding: 1.5rem 2rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-weight: 600;
    color: #444;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.partner-box:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.highlight-partner {
    background-color: var(--primary-blue);
    color: var(--charcoal);
    border: none;
}

.highlight-partner:hover {
    background-color: var(--primary-pink);
    color: var(--white);
}

/* --- Resources Page Specific Styles --- */

.bg-resources {
    background: linear-gradient(rgba(43,43,43,0.85), rgba(43,43,43,0.85)), url('images/ressources_banner.jpg');
    background-size: cover;
    background-position: center;
}

/* Filter Controls Layout */
.filter-wrapper {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#resource-search {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-body);
}

#resource-search:focus {
    border-color: var(--primary-blue);
    outline: none;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    background-color: var(--bg-light);
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--charcoal);
    color: var(--white);
    border-color: var(--charcoal);
}

/* Resources Cards Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.resource-card {
    background-color: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.category-badge {
    align-self: flex-start;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.badge-blue { background-color: rgba(91,206,250,0.15); color: #2280a3; }
.badge-pink { background-color: rgba(245,169,184,0.15); color: #be6b7b; }
.badge-charcoal { background-color: rgba(43,43,43,0.1); color: var(--charcoal); }

.resource-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--charcoal);
}

.resource-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    font-size: 0.85rem;
}

.file-info {
    color: #888;
}

.download-link {
    color: var(--primary-blue);
    font-weight: bold;
    text-decoration: none;
}

.download-link:hover {
    color: var(--primary-pink);
}

/* --- Contact Portal Formatting --- */

.contact-grid {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 4rem;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Security Alert Row */
.security-alert-box {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Side Information Column */
.contact-info-panel h1 {
    color: var(--charcoal);
    font-size: 2.5rem;
}

.panel-intro {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

.info-block {
    margin-bottom: 2rem;
}

.info-block h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--charcoal);
}

.social-list {
    list-style: none;
}

.social-list li {
    margin-bottom: 0.5rem;
}

.social-list a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.security-tip {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-left: 4px solid var(--primary-pink);
    border-radius: 0 6px 6px 0;
}

.security-tip p {
    font-size: 0.9rem;
    color: #444;
}

/* Form Window Setup */
.contact-form-module {
    background-color: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    overflow: hidden;
}

.form-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    background-color: var(--bg-light);
}

.tab-btn {
    flex: 1;
    padding: 1.25rem;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
    text-align: center;
}

.tab-btn:hover {
    background-color: rgba(0,0,0,0.02);
}

.tab-btn.active {
    background-color: var(--white);
    color: var(--charcoal);
    border-bottom: 3px solid var(--primary-blue);
}

.tab-btn.trigger-alert.active {
    border-bottom-color: var(--danger-red);
    color: var(--danger-red);
}

/* Form Fields Styling */
.interactive-form {
    padding: 2.5rem;
}

.form-hidden {
    display: none !important;
}

.emergency-header-note {
    background-color: #fdf2f2;
    border-left: 4px solid var(--danger-red);
    padding: 1rem;
    border-radius: 0 4px 4px 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #9b1c1c;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.optional-tag {
    font-weight: 400;
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.form-checkbox input {
    margin-top: 0.25rem;
}

.form-checkbox label {
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
}

.btn-danger-solid {
    background-color: var(--danger-red);
    color: var(--white);
    border: none;
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-danger-solid:hover {
    background-color: #b92c28;
}