/* ADH v2 Premium Styling System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0056A6;
    --primary-rgb: 0, 86, 166;
    --secondary: #1B8C3D;
    --secondary-rgb: 27, 140, 61;
    --accent: #F4B41A;
    --accent-rgb: 244, 180, 26;
    
    --bg-light: #F8FAFB;
    --bg-card: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-md: 12px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Animations */
@keyframes pulse-heart {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-pulse-btn {
    animation: pulse-heart 2s infinite ease-in-out;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Top bar style */
.topbar {
    background-color: var(--primary);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.topbar-info {
    display: flex;
    gap: 20px;
}

.topbar-info a {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

.topbar-info a:hover {
    color: var(--accent);
    opacity: 1;
}

.topbar-socials {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-socials a {
    opacity: 0.9;
    font-size: 1rem;
}

.topbar-socials a:hover {
    color: var(--accent);
    transform: translateY(-2px);
    opacity: 1;
}

/* Header style (Sticky) */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 10px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 48px;
    object-fit: contain;
}

.logo-text {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary);
    line-height: 1.1;
}

.logo-text span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--secondary);
}

/* Submenu Dropdown on Hover */
.nav-links li.has-children {
    position: relative;
    padding: 10px 0;
}

.nav-links li.has-children .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-links li.has-children:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links .dropdown-menu li {
    width: 100%;
    display: block;
}

.nav-links .dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    white-space: nowrap;
    width: 100%;
}

.nav-links .dropdown-menu a::after {
    display: none !important;
}

.nav-links .dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary);
    padding-left: 24px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #004485;
    box-shadow: 0 6px 20px rgba(0, 86, 166, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #146c2e;
    box-shadow: 0 6px 20px rgba(27, 140, 61, 0.3);
}

.btn-accent {
    background-color: var(--accent);
    color: #1E293B;
}

.btn-accent:hover {
    background-color: #e0a312;
    box-shadow: 0 6px 20px rgba(244, 180, 26, 0.4);
}

/* Styled Read More Link Buttons */
.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 8px 18px;
    background: rgba(0, 86, 166, 0.07);
    border: 1px solid rgba(0, 86, 166, 0.15);
    border-radius: 30px;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-link:hover {
    background: var(--primary);
    color: #ffffff !important;
    padding-left: 22px;
    padding-right: 22px;
    box-shadow: 0 6px 15px rgba(0, 86, 166, 0.25);
}

.btn-link i {
    transition: transform 0.3s ease;
}

.btn-link:hover i {
    transform: translateX(5px);
}

.lang-switch {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    gap: 5px;
}

.lang-switch a {
    color: var(--text-muted);
}

.lang-switch a.active {
    color: var(--primary);
    font-weight: 700;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Hero Slider Section */
.hero-section {
    position: relative;
    height: calc(100vh - 120px);
    min-height: 550px;
    background-color: #000000;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    transform: scale(1.1);
    transition: transform 6s ease;
}

.slide.active .slide-bg {
    transform: scale(1);
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: #ffffff;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s ease;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.slide-subtitle {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 15px;
    font-weight: 700;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.slide-desc {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 400;
}

.slide-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Slider Controls */
.slider-arrows {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 10;
    display: flex;
    gap: 15px;
}

.slider-arrow {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-dot.active {
    background: var(--accent);
    width: 30px;
    border-radius: 6px;
}

/* Section Common Layouts */
section {
    padding: 90px 20px;
}

.section-bg-white {
    background-color: #ffffff;
}

.section-bg-gray {
    background-color: #f1f5f9;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary);
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: inline-block;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-title-left {
    text-align: left;
}

.section-title-left::after {
    left: 0;
    transform: none;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-top: 15px;
}

/* About / Welcome Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

/* 3 compteurs -> 3 par ligne */
.about-stats:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr) !important;
}

/* 4 compteurs -> 2 par ligne (2x2) */
.about-stats:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(2, 1fr) !important;
}

/* 5 compteurs -> 2 sur la 1ère ligne, puis 3 sur la 2ème ligne */
.about-stats:has(> :nth-child(5):last-child) {
    grid-template-columns: repeat(6, 1fr) !important;
}
.about-stats:has(> :nth-child(5):last-child) > :nth-child(-n+2) {
    grid-column: span 3;
}
.about-stats:has(> :nth-child(5):last-child) > :nth-child(n+3) {
    grid-column: span 2;
}

/* 6 compteurs -> 3 par ligne (3x2) */
.about-stats:has(> :nth-child(6):last-child) {
    grid-template-columns: repeat(3, 1fr) !important;
}

.stat-item {
    background: #ffffff;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-top: 4px solid var(--secondary);
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 150px;
    height: 150px;
    background: radial-gradient(var(--accent) 20%, transparent 20%);
    background-size: 15px 15px;
    z-index: -1;
}

/* Missions Grid */
.missions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Smart Grid Auto-Balancing: adapt column count based on total items */
@media (min-width: 993px) {
    /* 6 cartes (comme vos 6 missions) -> 2 lignes parfaites de 3 (3 + 3) */
    .missions-grid:has(> :nth-child(6):last-child),
    .projects-grid:has(> :nth-child(6):last-child),
    .news-grid:has(> :nth-child(6):last-child),
    [class*="-grid"]:has(> :nth-child(6):last-child) {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* 4 cartes -> 1 ligne de 4 */
    .missions-grid:has(> :nth-child(4):last-child),
    .projects-grid:has(> :nth-child(4):last-child),
    .news-grid:has(> :nth-child(4):last-child),
    .cards-grid:has(> :nth-child(4):last-child),
    [class*="-grid"]:has(> :nth-child(4):last-child) {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    /* 2 cartes -> 1 ligne de 2 */
    .missions-grid:has(> :nth-child(2):last-child),
    .projects-grid:has(> :nth-child(2):last-child),
    .news-grid:has(> :nth-child(2):last-child),
    [class*="-grid"]:has(> :nth-child(2):last-child) {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .missions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .missions-grid {
        grid-template-columns: 1fr;
    }
}

.mission-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border-top: 4px solid transparent;
}

.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--secondary);
}

.mission-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 25px;
}

.mission-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
}

.mission-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.project-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.project-card:hover, .news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1) !important;
}

.project-card:hover img, .news-card:hover img {
    transform: scale(1.06);
}

.project-img-wrapper {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.08);
}

.project-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.project-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
}

.project-status.en_cours { background-color: #3b82f6; }
.project-status.termine { background-color: #10b981; }
.project-status.a_venir { background-color: #f59e0b; }

.project-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.project-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.project-footer {
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-link {
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-link:hover {
    color: var(--primary);
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-img-wrapper {
    height: 200px;
    overflow: hidden;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.news-card:hover .news-img-wrapper img {
    transform: scale(1.08);
}

.news-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
}

.news-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.news-more {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-more:hover {
    color: var(--secondary);
}

/* Partners Marquee/Slider */
.partners-section {
    background: #ffffff;
    padding: 60px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.partners-carousel {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
    padding: 10px 0;
}

.partners-track {
    display: inline-flex;
    align-items: center;
    gap: 50px;
    animation: marquee 25s linear infinite;
}

.partners-track img {
    height: 80px;
    object-fit: contain;
    filter: grayscale(0);
    opacity: 1;
    transition: var(--transition-smooth);
}

.partners-track img:hover {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Call to Action (Donation banner) */
.cta-banner {
    position: relative;
    padding: 100px 20px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
    text-align: center;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 86, 166, 0.9) 0%, rgba(27, 140, 61, 0.8) 100%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.15rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

/* Contact form & map section */
.contact-section-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.contact-form-wrapper {
    padding: 50px;
}

.contact-info-wrapper {
    background: var(--primary);
    color: #ffffff;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 86, 166, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-info-list {
    list-style: none;
    margin-top: 30px;
}

.contact-info-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.contact-info-list i {
    font-size: 1.3rem;
    color: var(--accent);
}

.map-container {
    width: 100%;
    height: 250px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 30px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer Section */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 20px 30px 20px;
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #1e293b;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-logo-link span {
    color: var(--secondary);
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--secondary);
    margin-top: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
}

/* Page Headers for Inner Pages */
.page-header {
    background-color: #0f172a;
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.breadcrumbs a:hover {
    color: #ffffff;
}

/* Alerts / Toast Messages */
.alert {
    padding: 16px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    font-weight: 600;
}

.alert-success {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.alert-danger {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

/* Donation Page details */
.donation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.donation-info-card {
    background: #ffffff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.donation-payment-method {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 25px;
}

.donation-payment-method h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.donation-payment-method h3 i {
    color: var(--accent);
}

.donation-payment-method p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.donation-payment-method strong {
    color: var(--text-main);
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination-wrapper nav {
    display: inline-flex;
    gap: 5px;
}

/* Responsive Grid adjustments */
@media (max-width: 992px) {
    .about-grid,
    .contact-section-grid,
    .donation-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        gap: 15px;
        border-top: 1px solid #f1f5f9;
    }
    
    .nav-links.mobile-active {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }
    
    .slide-title {
        font-size: 2.2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}


/* Option Noir/Blanc pour les partenaires */
.partners-grayscale .partners-track img {
    filter: grayscale(1);
    opacity: 0.6;
}

.partners-grayscale .partners-track img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Custom Error Pages (400, 401, 403, 404, 500) */
.error-page-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(0, 86, 166, 0.04) 0%, rgba(27, 140, 61, 0.04) 100%);
}

.error-card {
    background: #ffffff;
    max-width: 620px;
    width: 100%;
    padding: 50px 40px;
    border-radius: var(--radius-lg, 16px);
    box-shadow: 0 20px 40px -15px rgba(0, 56, 110, 0.12);
    border: 1px solid #e2e8f0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.error-badge-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

.error-code-badge {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary, #0056A6) 0%, var(--secondary, #1B8C3D) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.error-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: -8px;
    right: -15px;
    color: var(--accent, #F4B41A);
    font-size: 1.4rem;
    border: 3px solid #ffffff;
}

.error-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main, #1e293b);
    margin-bottom: 15px;
}

.error-description {
    font-size: 1.05rem;
    color: var(--text-muted, #64748b);
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.error-footer-links {
    font-size: 0.9rem;
    color: var(--text-muted, #94a3b8);
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.error-footer-links a {
    color: var(--primary, #0056A6);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth, all 0.3s ease);
}

.error-footer-links a:hover {
    text-decoration: underline;
    color: var(--primary-hover, #004485);
}

@media (max-width: 576px) {
    .error-card {
        padding: 35px 20px;
    }
    .error-code-badge {
        font-size: 4rem;
    }
    .error-title {
        font-size: 1.4rem;
    }
    .error-actions {
        flex-direction: column;
    }
    .error-actions .btn {
        width: 100%;
    }
}

/* CKEditor 5 Media & Image Responsiveness */
figure.image {
    margin: 1.5rem 0;
    text-align: center;
}
figure.image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-sm, 0 4px 6px -1px rgba(0, 0, 0, 0.05));
    display: inline-block;
}
figure.image figcaption {
    font-size: 0.85rem;
    color: var(--text-muted, #64748b);
    margin-top: 6px;
    font-style: italic;
}
figure.image.image-style-side {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    max-width: 45%;
}
figure.image.image-style-align-left {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
    max-width: 45%;
}
figure.media {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 1.5rem 0;
    border-radius: 12px;
    background: #000;
    box-shadow: var(--shadow-md, 0 10px 15px -3px rgba(0, 0, 0, 0.08));
}
figure.media iframe,
figure.media video,
figure.media object,
figure.media embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}



/* Quand il y a 6 témoignages -> 2 lignes de 3 parfaites (3 + 3 = 6) */
.testimonials-grid:has(> :nth-child(6):last-child) {
    grid-template-columns: repeat(3, 1fr) !important;
}

