/**
 * Styles principaux - KIM ONLUS CÔTE D'IVOIRE
 * Association humanitarian
 */

/* ===========================================
   VARIABLES CSS
   =========================================== */
:root {
    --primary-color: #1a4b8c;
    --primary-dark: #0d3a6e;
    --primary-light: #2c7be5;
    --secondary-color: #2c7be5;
    --accent-color: #f4a261;
    --accent-hover: #e76f51;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    
    --text-color: #333333;
    --text-light: #6c757d;
    --text-muted: #adb5bd;
    
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --border-radius: 8px;
    --border-radius-lg: 16px;
}

/* ===========================================
   RESET ET STYLES DE BASE
   =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* ===========================================
   EN-TÊTE DU SITE
   =========================================== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Barre supérieure */
.header-top {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.contact-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-info a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-info a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.social-links a {
    color: var(--white);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Header actions container */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.header-actions .btn-donate {
    font-size: 13px;
    padding: 8px 16px;
}

@media (max-width: 576px) {
    .header-actions {
        justify-content: center;
        margin-top: 10px;
    }
}

/* Navigation principale */
.main-navbar {
    padding: 10px 0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 45px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 10px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Hide hamburger on desktop */
.navbar-toggler {
    display: none;
}

/* Menu de navigation desktop */
.navbar-collapse {
    flex-grow: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    padding: 10px 15px !important;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-color) !important;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(26, 75, 140, 0.05);
}

.nav-item.active > .nav-link {
    color: var(--primary-color) !important;
    background: rgba(26, 75, 140, 0.1);
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 4px;
}

/* Hide mobile elements on desktop */
.mobile-menu-close {
    display: none;
}

/* Sous-menu */
.dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 10px 0;
    background: var(--white);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    z-index: 1000;
}

.nav-item.dropdown:hover > .dropdown-menu,
.nav-item.has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.dropdown-menu li {
    position: relative;
}

.dropdown-menu .nav-link {
    padding: 10px 20px !important;
    font-size: 14px;
}

.dropdown-menu .nav-link:hover {
    background: var(--bg-light);
    padding-left: 25px !important;
}

/* Sous-menu niveau 2 */
.submenu-level-2 {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 200px;
    padding: 10px 0;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all var(--transition-normal);
}

.dropdown-menu li:hover .submenu-level-2 {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Bouton de don */
.donate-btn-container {
    margin-left: 20px;
}

.btn-donate {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--white);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-donate:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-color));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.4);
}

.btn-donate i {
    transition: transform var(--transition-fast);
}

.btn-donate:hover i {
    transform: scale(1.2);
}

/* ===========================================
   CONTENU PRINCIPAL
   =========================================== */
.site-main {
    min-height: calc(100vh - 300px);
}

/* ===========================================
   BANNIÈRE HÉRO
   =========================================== */
.hero-section {
    position: relative;
    height: 600px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(to top, var(--primary-dark) 0%, var(--primary-color) 50%, transparent 100%);
    max-width: 1400px;
    margin: 0 auto;
}

.hero-bg {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    max-width: 1400px;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 110%;
    background: linear-gradient(to top, rgba(26, 75, 140, 0.9) 0%, rgba(26, 75, 140, 0.5) 50%, transparent 100%);
    max-width: 1400px;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px 80px;
    width: 100%;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    color: var(--white);
}

.hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.8;
    color: var(--white);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all var(--transition-normal);
}

.btn-outline-light {
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* ===========================================
   SECTION VIDÉO EN L
   =========================================== */
.video-l-section {
    padding: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.video-l-container {
    position: relative;
    min-height: 500px;
}

/* Texte en L (gauche et bas) */
.video-l-text {
    width: 60%;
    padding: 80px 60px;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.video-l-title {
    font-size: 42px;
    color: var(--white);
    margin-bottom: 30px;
    line-height: 1.2;
}

.video-l-description {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.95;
    max-width: 600px;
}

/* Vidéo dans le creux de la L */
.video-l-video {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 60px;
    z-index: 1;
}

.video-wrapper {
    width: 100%;
    height: 100%;
    max-width: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border-radius: 16px;
    overflow: hidden;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
    aspect-ratio: 16/9;
}

@media (max-width: 1200px) {
    .video-l-text {
        width: 55%;
        padding: 60px 40px;
    }
    
    .video-l-video {
        width: 50%;
        padding: 30px 40px;
    }
}

@media (max-width: 992px) {
    .video-l-section {
        padding: 60px 0;
    }
    
    .video-l-container {
        flex-direction: column;
    }
    
    .video-l-text {
        width: 100%;
        padding: 40px 20px;
        text-align: center;
    }
    
    .video-l-title {
        font-size: 32px;
    }
    
    .video-l-description {
        max-width: 100%;
    }
    
    .video-l-video {
        position: relative;
        width: 100%;
        padding: 20px;
        justify-content: center;
    }
    
    .video-wrapper {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16/9;
    }
    
    .video-wrapper iframe {
        width: 100%;
        height: 100%;
    }
}

/* ===========================================
   SECTION VIDÉO EN L
   =========================================== */

/* ===========================================
   PAGE HERO SECTION (pour les pages intérieures)
   =========================================== */
.page-hero-section {
    position: relative;
    height: 400px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(to top, var(--primary-dark) 0%, var(--primary-color) 50%, transparent 100%);
}

.page-hero-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.page-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 110%;
    background: linear-gradient(to top, rgba(26, 75, 140, 0.9) 0%, transparent 100%);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px 60px;
    width: 100%;
}

.page-hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-hero-content p {
    font-size: 20px;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

@media (max-width: 992px) {
    .page-hero-section {
        height: 350px;
    }
    
    .page-hero-content h1 {
        font-size: 36px;
    }
    
    .page-hero-content p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-hero-section {
        height: 300px;
    }
    
    .page-hero-content h1 {
        font-size: 28px;
    }
    
    .page-hero-content p {
        font-size: 16px;
    }
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 50px;
    font-size: 18px;
}

.section-header {
    margin-bottom: 50px;
}

.section-label {
    display: inline-block;
    background: rgba(26, 75, 140, 0.1);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* Section avec fond alternatif */
.section-light {
    background: var(--bg-light);
    position: relative;
    z-index: 1;
}

.section-dark {
    background: var(--bg-dark);
    color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--white);
}

/* ===========================================
   CARTES DE SERVICES
   =========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 75, 140, 0.1);
    border-radius: 50%;
    font-size: 36px;
    color: var(--primary-color);
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: rotateY(180deg);
}

.service-title {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-description {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.service-link:hover {
    gap: 15px;
    color: var(--accent-color);
}

/* ===========================================
   CARTES D'ARTICLES
   =========================================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.article-content {
    padding: 25px;
}

.article-date {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-title {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-title a {
    color: var(--text-color);
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.article-author {
    font-size: 13px;
    color: var(--text-light);
}

.article-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-muted);
}

.article-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===========================================
   STATISTIQUES
   =========================================== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 60px 0;
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===========================================
   GALERIE PHOTO
   =========================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 75, 140, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 32px;
}

/* ===========================================
   FORMULAIRES
   =========================================== */
.form-control {
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 15px;
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 75, 140, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.form-select {
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 15px;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 14px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all var(--transition-normal);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===========================================
   PIED DE PAGE
   =========================================== */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.8);
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-title {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.footer-description {
    line-height: 1.8;
}

.footer-links {
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact {
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 3px;
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
}

.footer-contact a:hover {
    color: var(--white);
}

/* Newsletter */
.newsletter-box {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: var(--border-radius);
}

.newsletter-box h5 {
    color: var(--white);
    margin-bottom: 15px;
}

.newsletter-form .input-group {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.newsletter-form input {
    border: none;
    padding: 12px 15px;
}

.newsletter-form button {
    background: var(--primary-color);
    border: none;
    padding: 12px 18px;
    color: var(--white);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

/* Barre inférieure */
.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
    font-size: 14px;
}

.copyright {
    color: rgba(255,255,255,0.6);
}

.footer-legal {
    display: flex;
    justify-content: flex-end;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255,255,255,0.6);
}

.footer-legal a:hover {
    color: var(--white);
}

/* ===========================================
   BOUTON RETOUR EN HAUT
   =========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

/* ===========================================
   ALERTES ET MESSAGES
   =========================================== */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ===========================================
   BOUTONS
   =========================================== */
.btn {
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.btn-lg {
    padding: 16px 35px;
    font-size: 18px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    position: relative;
    z-index: 1;
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

/* ===========================================
   PAGINATION
   =========================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-link {
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--primary-color);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===========================================
   LOADING SPINNER
   =========================================== */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 42px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        display: none;
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
    }
    
    .submenu-level-2 {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
    }
    
    .donate-btn-container {
        margin: 20px 0 0;
        width: 100%;
    }
    
    .donate-btn-container .btn-donate {
        width: 100%;
        justify-content: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom .row {
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    /* Header top responsive - keep visible on mobile */
    .header-top {
        display: block;
        padding: 8px 0;
    }
    
    .header-top .container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .header-top .row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
    
    .header-top .col-md-6 {
        width: 100%;
        flex: 0 0 100%;
    }
    
    .header-top .col-md-6.text-md-end {
        text-align: center !important;
    }
    
    .contact-info {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 12px;
    }
    
    .contact-info a {
        padding: 4px 8px;
    }
    
    .contact-info a i {
        margin-right: 4px;
    }
    
    .header-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .social-links {
        display: flex;
        justify-content: center;
        gap: 10px;
    }
    
    .social-links a {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .header-actions .btn-donate {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .brand-name {
        font-size: 18px;
    }
    
    .brand-subtitle {
        font-size: 10px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }
}
