/**
 * Theme Name: IMABE Core Theme
 * Theme URI: https://imabe-drc.org
 * Description: Theme intégré au plugin IMABE Core
 * Version: 2.0
 * Author: IMABE
 * Text Domain: imabe-core
 */

/* ================================
   Variables CSS
   ================================ */
:root {
    --imabe-gold: #b89646;
    --imabe-gold-dark: #a0843e;
    --imabe-gold-light: #d4b56a;
    --imabe-gray-bg: #f1f1f1;
    --imabe-gray-border: #e9e9e9;
    --imabe-dark: #333333;
    --imabe-darker: #222222;
    --imabe-text: #555555;
    --imabe-text-light: #777777;
    --imabe-white: #ffffff;
}

/* ================================
   Base Styles
   ================================ */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--imabe-text);
    line-height: 1.6;
    background-color: var(--imabe-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--imabe-dark);
    margin-bottom: 1rem;
}

a {
    color: var(--imabe-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--imabe-gold-dark);
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

/* ================================
   Top Bar
   ================================ */
.imabe-top-bar {
    background-color: var(--imabe-darker);
    color: var(--imabe-white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-info {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.top-bar-info span {
    margin-right: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    overflow-wrap: anywhere;
}

.top-bar-info i {
    color: var(--imabe-gold);
    margin-right: 5px;
}

.top-bar-social a {
    color: var(--imabe-white);
    margin-left: 15px;
    transition: color 0.3s ease;
}

.top-bar-social a:hover {
    color: var(--imabe-gold);
}

.top-bar-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.top-bar-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.top-lang-link {
    color: var(--imabe-white);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.02em;
}

.top-lang-link:hover,
.top-lang-link.active {
    color: var(--imabe-gold);
}

.top-lang-sep {
    color: rgba(255, 255, 255, 0.45);
}

.top-bar-auth {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-auth-link {
    color: var(--imabe-white);
    font-weight: 600;
    white-space: nowrap;
}

.top-auth-link:hover {
    color: var(--imabe-gold);
}

.top-auth-sep {
    color: rgba(255, 255, 255, 0.45);
}

/* ================================
   Header & Navigation
   ================================ */
.imabe-header {
    background-color: var(--imabe-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.imabe-header .navbar {
    padding: 15px 0;
}

.imabe-header .container {
    display: flex;
    align-items: center;
}

.navbar-brand {
    flex-shrink: 0;
    margin-right: 12px;
    padding-top: 0;
    padding-bottom: 0;
}

.imabe-brand-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.imabe-logo {
    max-height: 60px;
    min-height: 34px;
    width: auto;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.imabe-brand-name {
    font-size: 1.1rem;
    width: auto;
    line-height: 1;
}

.imabe-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--imabe-gold);
}

.navbar-nav .nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--imabe-dark) !important;
    padding: 10px 11px !important;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    color: var(--imabe-gold) !important;
}

.navbar-nav .dropdown-toggle {
    cursor: pointer;
}

.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    margin-top: 10px;
}

.navbar-nav .dropdown-item {
    color: var(--imabe-dark);
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.navbar-nav .dropdown-item:hover {
    background-color: var(--imabe-gold);
    color: var(--imabe-white);
}

.navbar-nav .nav-item {
    min-width: 0;
}

.navbar-nav .btn-imabe-gold {
    white-space: nowrap;
    padding: 9px 14px;
}

.imabe-lang-switcher .imabe-lang-link {
    padding: 10px 6px !important;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.imabe-lang-switcher .imabe-lang-link.active {
    color: var(--imabe-gold) !important;
}

/* Sous-menus toujours accessibles sur desktop (hover + clavier) */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover > .dropdown-menu,
    .navbar-nav .dropdown:focus-within > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

@media (min-width: 1400px) {
    .navbar-expand-xxl .navbar-nav {
        flex-wrap: wrap;
        justify-content: flex-end;
        row-gap: 2px;
    }
}

/* Sous-menus lisibles en mobile dans le menu collapse */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        border: 0;
        box-shadow: none;
        margin-top: 0;
        padding-left: 12px;
    }
}

/* ================================
   Buttons
   ================================ */
.btn-imabe-gold {
    background-color: var(--imabe-gold);
    color: var(--imabe-white);
    border: 2px solid var(--imabe-gold);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-imabe-gold:hover {
    background-color: var(--imabe-gold-dark);
    border-color: var(--imabe-gold-dark);
    color: var(--imabe-white);
}

.btn-outline-gold {
    background-color: transparent;
    color: var(--imabe-gold);
    border: 2px solid var(--imabe-gold);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 0;
    transition: all 0.3s ease;
}

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

.btn-imabe-outline {
    background-color: transparent;
    color: var(--imabe-gold);
    border: 2px solid var(--imabe-gold);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 0;
    transition: all 0.3s ease;
}

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

/* ================================
   Hero Section
   ================================ */
.imabe-hero {
    background: linear-gradient(135deg, rgba(184, 150, 70, 0.9) 0%, rgba(34, 34, 34, 0.9) 100%),
                url('../assets/images/hero-nature.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    width: 100%;
}

.hero-title {
    color: var(--imabe-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
}

.min-vh-80 {
    min-height: 80vh;
}

#heroCarousel .imabe-carousel-caption {
    left: 8%;
    right: 8%;
    bottom: 1.25rem;
    max-height: 70%;
    overflow: auto;
}

#heroCarousel .imabe-carousel-caption h5,
#heroCarousel .imabe-carousel-caption p {
    color: #fff;
}

/* ================================
   Sections
   ================================ */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--imabe-gold);
}

.section-subtitle {
    color: var(--imabe-text-light);
    font-size: 1.1rem;
}

/* ================================
   Mission Section
   ================================ */
.imabe-mission {
    background-color: var(--imabe-gray-bg);
}

/* ================================
   Axes Stratégiques
   ================================ */
.imabe-axes {
    padding: 80px 0;
}

.axe-card {
    background-color: var(--imabe-white);
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid var(--imabe-gold);
}

.axe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.axe-icon {
    width: 80px;
    height: 80px;
    background-color: var(--imabe-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.axe-icon i {
    font-size: 32px;
    color: var(--imabe-white);
}

.axe-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.axe-description {
    color: var(--imabe-text-light);
    margin-bottom: 0;
}

/* ================================
   Statistics Section
   ================================ */
.imabe-stats {
    background: linear-gradient(135deg, var(--imabe-darker) 0%, var(--imabe-dark) 100%);
    padding: 80px 0;
}

.stat-item {
    padding: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background-color: var(--imabe-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.stat-icon i {
    font-size: 24px;
    color: var(--imabe-white);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--imabe-gold);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--imabe-white);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================================
   Projects Section
   ================================ */
.imabe-projects {
    padding: 80px 0;
}

.project-card {
    background-color: var(--imabe-white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.project-thumbnail {
    overflow: hidden;
}

.project-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-thumbnail img {
    transform: scale(1.05);
}

.project-content {
    padding: 25px;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.project-title a {
    color: var(--imabe-dark);
}

.project-title a:hover {
    color: var(--imabe-gold);
}

.project-excerpt {
    color: var(--imabe-text-light);
    margin-bottom: 15px;
}

.project-link {
    color: var(--imabe-gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.project-link:hover {
    gap: 10px;
}

.project-link i {
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(5px);
}

/* ================================
   News Section
   ================================ */
.imabe-news {
    padding: 80px 0;
}

.news-card {
    background-color: var(--imabe-white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-thumbnail {
    position: relative;
    overflow: hidden;
}

.news-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-thumbnail img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--imabe-gold);
    color: var(--imabe-white);
    padding: 10px 15px;
    text-align: center;
    min-width: 60px;
}

.news-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.news-content {
    padding: 25px;
}

.news-title {
    font-size: 1.125rem;
    margin-bottom: 10px;
}

.news-title a {
    color: var(--imabe-dark);
}

.news-title a:hover {
    color: var(--imabe-gold);
}

.news-excerpt {
    color: var(--imabe-text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.news-link {
    color: var(--imabe-gold);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ================================
   CTA Section
   ================================ */
.imabe-cta-section {
    background: linear-gradient(135deg, var(--imabe-gold) 0%, var(--imabe-gold-dark) 100%);
    color: var(--imabe-white);
}

.cta-title {
    color: var(--imabe-white);
}

.cta-text {
    font-size: 1.2rem;
    opacity: 0.95;
}

.cta-buttons .btn-outline-light {
    border-color: var(--imabe-white);
    color: var(--imabe-white);
}

.cta-buttons .btn-outline-light:hover {
    background-color: var(--imabe-white);
    color: var(--imabe-gold);
}

/* ================================
   Login Form
   ================================ */
.imabe-login-wrap {
    max-width: 560px;
    margin: 0 auto;
}

.imabe-login-card {
    background-color: var(--imabe-white);
    border: 1px solid var(--imabe-gray-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 28px;
}

.imabe-login-card h2 {
    margin-bottom: 10px;
}

.imabe-login-subtitle {
    color: var(--imabe-text-light);
    margin-bottom: 18px;
}

.imabe-login-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.imabe-login-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ================================
   Page Header
   ================================ */
.page-header {
    background: linear-gradient(135deg, rgba(34, 34, 34, 0.95) 0%, rgba(51, 51, 51, 0.95) 100%),
                url('../assets/images/hero-nature.jpg');
    background-size: cover;
    background-position: center;
    color: var(--imabe-white);
}

.page-title {
    color: var(--imabe-white);
    margin-bottom: 15px;
}

.breadcrumb-wrapper {
    margin-top: 10px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--imabe-gold);
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ================================
   Footer
   ================================ */
.imabe-footer {
    background-color: var(--imabe-darker);
    color: var(--imabe-white);
}

.footer-widgets {
    padding: 60px 0 40px;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-logo {
    max-height: 50px;
    width: auto;
    margin-bottom: 20px;
}

.footer-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--imabe-gold);
    margin-bottom: 15px;
    display: block;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-title {
    color: var(--imabe-gold);
    font-size: 1.125rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--imabe-gold);
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--imabe-gold);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--imabe-gold);
    margin-top: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--imabe-white);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--imabe-gold);
    color: var(--imabe-white);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--imabe-gold);
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 1199.98px) {
    .imabe-hero,
    .page-header {
        background-attachment: scroll;
    }

    .min-vh-80 {
        min-height: auto;
    }
}

@media (max-width: 991.98px) {
    .imabe-top-bar .row {
        row-gap: 8px;
    }

    .top-bar-info {
        justify-content: flex-end;
    }

    .top-bar-info span {
        margin-right: 0;
    }

    .top-bar-end {
        width: 100%;
        justify-content: flex-end;
        gap: 12px;
    }

    .top-bar-lang {
        border-left: 0;
        padding-left: 0;
    }

    .imabe-header .navbar {
        padding: 10px 0;
    }

    .imabe-logo {
        max-height: 52px;
    }

    .imabe-brand-name {
        font-size: 1rem;
    }

    .navbar-collapse {
        background-color: var(--imabe-white);
        border: 1px solid var(--imabe-gray-border);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        margin-top: 10px;
        padding: 10px 14px;
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar-nav .nav-link {
        padding: 12px 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        white-space: normal;
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: 0;
    }

    .navbar-nav .dropdown-toggle::after {
        float: right;
        margin-top: 10px;
    }

    .navbar-nav .dropdown-menu {
        background-color: #fafafa;
        padding: 6px 0;
        margin-bottom: 8px;
        display: none;
    }

    .navbar-nav .dropdown-menu.show {
        display: block;
    }

    .navbar-nav .dropdown.show > .dropdown-toggle {
        color: var(--imabe-gold) !important;
    }

    .navbar-nav .dropdown-item {
        white-space: normal;
        line-height: 1.35;
    }

    .navbar-nav .btn-imabe-gold {
        display: block;
        width: 100%;
        margin-top: 10px;
        text-align: center;
    }

    .imabe-lang-switcher {
        justify-content: flex-start;
        padding-top: 8px;
    }

    .imabe-hero {
        min-height: 66vh;
        padding: 54px 0;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .axe-card,
    .project-content,
    .news-content {
        padding: 20px;
    }

    .project-thumbnail img {
        height: 220px;
    }

    .news-thumbnail img {
        height: 200px;
    }

    .stat-number {
        font-size: 2.35rem;
    }

    .page-header {
        padding: 44px 0 !important;
        margin-bottom: 30px !important;
    }

    .page-title {
        font-size: 2rem;
    }

    .widget {
        padding: 20px;
    }

    .footer-widgets {
        padding: 44px 0 26px;
    }

    .footer-bottom .row {
        row-gap: 10px;
    }

    .copyright {
        text-align: left;
    }

    .footer-legal {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px 16px;
        margin-top: 10px;
    }
}

@media (max-width: 767.98px) {
    .imabe-top-bar {
        text-align: right;
        font-size: 13px;
    }

    .top-bar-info {
        justify-content: flex-end;
        margin-bottom: 8px;
    }

    .top-bar-social {
        text-align: right !important;
    }

    .top-bar-social a {
        margin: 0 8px;
    }

    .top-bar-end {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .imabe-logo {
        max-height: 44px;
    }

    #heroCarousel .imabe-carousel-caption {
        display: block !important;
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 10px 12px !important;
        max-height: 74%;
    }

    #heroCarousel .imabe-carousel-caption h5 {
        font-size: 1rem;
        line-height: 1.25;
        margin-bottom: 8px;
    }

    #heroCarousel .imabe-carousel-caption p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        width: 12%;
    }

    .imabe-brand-name {
        font-size: 0.95rem;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 0.98rem;
    }

    .hero-cta {
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .imabe-login-card {
        padding: 20px;
    }

    .imabe-login-actions .btn {
        width: 100%;
    }

    .section-title {
        font-size: 1.55rem;
    }

    .section-title::after {
        width: 48px;
    }

    .axe-card {
        padding: 22px 16px;
    }

    .axe-title {
        font-size: 1.25rem;
    }

    .stat-item {
        padding: 14px 8px;
    }

    .stat-number {
        font-size: 1.95rem;
    }

    .stat-label {
        font-size: 0.88rem;
        letter-spacing: 0.4px;
    }

    .project-thumbnail img {
        height: 200px;
    }

    .news-thumbnail img {
        height: 180px;
    }

    .imabe-stats .col-lg-3 {
        margin-bottom: 20px;
    }

    .imabe-stats .col-lg-3:last-child {
        margin-bottom: 0;
    }

    #stats,
    #axes,
    #projects,
    #team,
    #rapports,
    #partners,
    #contact,
    #about,
    #mission,
    #work,
    #historique,
    #gouvernance,
    #one-health,
    #testimonials,
    #transparence,
    #methodologie,
    #gestion-risques,
    #evaluation-impact,
    #donnees-impact {
        padding: 56px 0 !important;
    }

    .page-header {
        padding: 34px 0 !important;
        margin-bottom: 24px !important;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .entry-content,
    .imabe-page-content,
    .imabe-single-post {
        overflow-wrap: anywhere;
    }

    .entry-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .footer-widgets {
        padding: 36px 0 18px;
    }

    .footer-title {
        margin-bottom: 14px;
    }

    .footer-social {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }

    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .cta-buttons .btn:last-child {
        margin-bottom: 0;
    }

    .cta-buttons .btn-lg {
        margin-right: 0 !important;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        margin-right: 8px;
    }

    .imabe-brand-wrap {
        gap: 6px;
    }

    .hero-title {
        font-size: 1.48rem;
    }

    .hero-subtitle {
        font-size: 0.94rem;
    }

    #stats,
    #axes,
    #projects,
    #team,
    #rapports,
    #partners,
    #contact,
    #about,
    #mission,
    #work,
    #historique,
    #gouvernance,
    #one-health,
    #testimonials,
    #transparence,
    #methodologie,
    #gestion-risques,
    #evaluation-impact,
    #donnees-impact {
        padding: 44px 0 !important;
    }

    .project-thumbnail img {
        height: 184px;
    }

    .news-thumbnail img {
        height: 168px;
    }

}

/* ================================
   Widget Styles
   ================================ */
.widget {
    background-color: var(--imabe-white);
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 0;
}

.widget-title {
    color: var(--imabe-dark);
    font-size: 1.125rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--imabe-gold);
}

.recent-post-item {
    align-items: flex-start;
}

.recent-post-item h5 {
    font-size: 0.95rem;
    line-height: 1.4;
}

.recent-post-item a {
    color: var(--imabe-dark);
}

.recent-post-item a:hover {
    color: var(--imabe-gold);
}

/* ================================
   Accessibility
   ================================ */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ================================
   Print Styles
   ================================ */
@media print {
    .imabe-top-bar,
    .imabe-header,
    .imabe-footer,
    .hero-cta,
    .cta-buttons {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
    }
}
