/* ============================================
    BASE STYLES & RESET
    ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', Times, serif;
}

html {
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    background: #ffffff;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.2rem;
    color: #111827;
    min-height: 100vh;
    padding-top: 80px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
    CSS VARIABLES (ROOT)
    ============================================ */
:root {
    --primary-color: #021a7f;
    --primary-dark: #060a44;
    --primary-light: #4f62c4;
    --secondary-color: #059669;
    --secondary-dark: #047857;
    --secondary-light: #34d399;
    --accent-color: #d97706;
    --accent-dark: #b45309;
    --accent-light: #fbbf24;
    --dark-color: #111827;
    --dark-muted: #374151;
    --light-color: #f9fafb;
    --light-muted: #f3f4f6;
    --text-color: #374151;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --success-color: #059669;
    --error-color: #dc2626;
    --warning-color: #d97706;
    --info-color: #2563eb;
}

/* ============================================
    LOADING SCREEN - REFONTE MODERNE
    ============================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 10%, #0a1a3a, #030712);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease;
    backdrop-filter: blur(0px);
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Logo animé avec halo */
.loading-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 1.8rem;
    position: relative;
    animation: floatLogo 2s ease-in-out infinite;
}

.loading-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
    animation: rippleGlow 2s infinite;
}

/* Texte principal */
.loading-text {
    background: linear-gradient(135deg, #ffffff, #a5f3c3);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards 0.2s;
}

/* Sous‑texte */
.loading-subtext {
    color: rgba(165, 243, 195, 0.8);
    font-size: 0.85rem;
    margin-top: 1rem;
    text-align: center;
    max-width: 280px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0.3px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards 0.4s;
}

/* Spinner original remplacé par un cercle pulsant moderne */
.loading-spinner {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    position: relative;
    background: transparent;
    border: none;
    animation: none;
}

.loading-spinner::before,
.loading-spinner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
}

.loading-spinner::before {
    border-top-color: #4ade80;
    border-right-color: #22d3ee;
    animation: spinModern 1.2s linear infinite;
}

.loading-spinner::after {
    border-bottom-color: #22d3ee;
    border-left-color: #4ade80;
    animation: spinModern 0.8s linear reverse infinite;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
}

/* Barre de progression stylisée */
.loading-progress {
    width: 220px;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1.2rem;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.3);
}

.loading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4ade80, #22d3ee, #4ade80);
    background-size: 200% auto;
    border-radius: 4px;
    transition: width 0.3s ease;
    animation: shimmer 1.8s linear infinite;
}

/* Animations */
@keyframes spinModern {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rippleGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(74, 222, 128, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

@keyframes floatLogo {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Version responsive */
@media (max-width: 768px) {
    .loading-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
    }
    
    .loading-text {
        font-size: 1.4rem;
    }
    
    .loading-subtext {
        font-size: 0.75rem;
        max-width: 240px;
    }
    
    .loading-spinner {
        width: 50px;
        height: 50px;
    }
    
    .loading-progress {
        width: 180px;
    }
}

/* Évite le scroll pendant le chargement */
body.loading {
    overflow: hidden;
}

body.loading > *:not(.loading-screen) {
    opacity: 0;
    transition: opacity 0.2s;
}

/* ============================================
    HEADER & NAVIGATION
    ============================================ */
.article-header {
    background: #ffffff;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo dans header - CORRIGÉ */
.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    z-index: 1001;
}

.header-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Navigation principale */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--light-muted);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.nav-separator {
    color: var(--border-color);
    font-size: 0.75rem;
}

/* Menu mobile */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: transform 0.3s;
}

.mobile-menu-btn.active {
    transform: rotate(90deg);
}

/* ============================================
    MAIN CONTENT
    ============================================ */
.article-main {
    padding: 2rem 0 4rem;
    min-height: calc(100vh - 300px);
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.article-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
    ARTICLE STYLES
    ============================================ */
.article-header-content {
    margin-bottom: 3rem;
}

.article-title, .contact-title, .projects-title, .gallery-title, .blog-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 1.5rem 0;
    color: var(--primary-color);
}

/* Correction pour le gradient de titre */
.article-title {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 2rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.meta-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.author-info, .date-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-label, .date-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.author-name, .date {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.meta-right {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-share span {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.social-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    transition: transform 0.2s;
}

.social-icon:hover {
    transform: translateY(-2px);
}

.social-icon.facebook { background: #1877f2; }
.social-icon.twitter { background: #1da1f2; }
.social-icon.linkedin { background: #0a66c2; }
.social-icon.whatsapp { background: #25d366; }
.social-icon.youtube { background: #fa0909; }
.social-icon.instagram { background: #e4405f; }

.btn-share, .btn-bookmark {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    background: white;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-share:hover, .btn-bookmark:hover {
    background: var(--light-muted);
    color: var(--primary-color);
}

/* ============================================
    SPONSOR BANNER
    ============================================ */
.sponsor-banner {
    background: linear-gradient(135deg, #e8f5e9, #e8f5e9);
    border: 1px solid #c8e6c9;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.sponsor-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.sponsor-link {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.2s;
    margin-top: 0.5rem;
}

.sponsor-link:hover {
    background: var(--primary-dark);
}

.sponsor-label {
    position: absolute;
    bottom: 0.75rem;
    right: 1rem;
}

.sponsor-label span {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* ============================================
    ARTICLE BODY
    ============================================ */
.article-body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    font-size: 1.0625rem;
}

.article-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--primary-color);
    padding-top: 1rem;
}

.article-body h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.article-body p {
    margin: 1rem 0;
    text-align: justify;
}

.article-body strong {
    font-weight: 600;
    color: var(--primary-color);
}

.article-body em {
    font-style: italic;
    color: var(--dark-muted);
}

.trading-types {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.trading-types li {
    padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.trading-types li:last-child {
    border-bottom: none;
}

.trading-types strong {
    color: var(--primary-color);
}

.trading-types i {
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

.article-image {
    margin: 2rem 0;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.article-image figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-style: italic;
}

/* ============================================
    SKILLS GRID
    ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.skill-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: transform 0.2s;
}

.skill-item:hover {
    transform: translateY(-2px);
}

.skill-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.skill-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--primary-color);
}

.skill-content p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

/* ============================================
    ADDITIONAL SECTION
    ============================================ */
.additional-section {
    background: #f0f9ff;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
}

.additional-section h3 {
    color: var(--primary-color);
    margin-top: 0;
}

/* ============================================
    CONCLUSION BOX
    ============================================ */
.conclusion-box {
    background: linear-gradient(135deg, #e8f5e9, #e8f5e9);
    border: 1px solid #c8e6c9;
    border-radius: 0.75rem;
    padding: 2rem;
    margin: 2.5rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.conclusion-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary-color);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.conclusion-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: var(--primary-color);
}

.conclusion-content p {
    margin: 0;
    color: var(--text-color);
}

/* ============================================
    CONTACT PAGE STYLES
    ============================================ */
.contact-header {
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.contact-info, .contact-form {
    background: var(--light-muted);
    padding: 2rem;
    border-radius: 0.75rem;
}

.contact-form {
    background: white;
    border: 1px solid var(--border-color);
}

.contact-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary-color);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Boutons */
.btn-submit, .btn-newsletter {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover, .btn-newsletter:hover {
    background: var(--primary-dark);
}

/* ============================================
    TEAM STYLES
    ============================================ */
.team-contact {
    margin-top: 3rem;
}

.team-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.team-contact-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

.team-contact-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary-light);
}

.team-contact-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.team-social a {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--light-muted);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}

.team-social a:hover {
    background: var(--primary-color);
    color: white;
}

/* Team Section spécifique */
.team-section {
    margin: 4rem 0;
    padding: 3rem 0;
    background: #f8fafc;
    border-radius: 1rem;
}

.team-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
    BLOG STYLES
    ============================================ */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.blog-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.blog-categories, .project-categories {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.blog-category, .category-btn, .gallery-tab {
    padding: 0.5rem 1.5rem;
    background: var(--light-muted);
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.blog-category:hover, .blog-category.active,
.category-btn:hover, .category-btn.active,
.gallery-tab:hover, .gallery-tab.active {
    background: var(--primary-color);
    color: white;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.blog-post {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.blog-post-content {
    padding: 2rem;
}

.blog-post-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.blog-post-category {
    display: inline-block;
    background: var(--light-muted);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-post-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-post-title a {
    color: var(--dark-color);
    text-decoration: none;
}

.blog-post-title a:hover {
    color: var(--primary-color);
}

.blog-post-excerpt {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.blog-post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar-small {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-info {
    font-size: 0.875rem;
    color: var(--text-light);
}

.blog-post-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.blog-post-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover {
    background: var(--light-muted);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
    GALLERY STYLES
    ============================================ */
.gallery-header {
    margin-bottom: 3rem;
}

.gallery-tabs {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-media {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
    opacity: 0.8;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-caption {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

.gallery-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(37, 99, 235, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.video-category {
    background: rgba(220, 38, 38, 0.9);
}







/* ============================================
    GALLERY IMPROVEMENTS
    ============================================ */

/* Container pour le texte avec limitation de hauteur */
.gallery-text-container {
    max-height: 150px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;
    margin-bottom: 0.5rem;
}

.gallery-text-container.expanded {
    max-height: 1000px;
}

/* Gradient pour indiquer qu'il y a plus de texte */
.gallery-text-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.gallery-text-container.expanded .gallery-text-gradient {
    opacity: 0;
}

/* Bouton "Read More" */
.gallery-read-more {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    margin-top: 0.5rem;
}

.gallery-read-more:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.gallery-read-more i {
    font-size: 0.625rem;
    transition: transform 0.3s ease;
}

.gallery-text-container.expanded + .gallery-read-more i {
    transform: rotate(180deg);
}

/* Animation pour l'apparition du texte */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-text-container.expanded .gallery-caption {
    animation: fadeInUp 0.5s ease forwards;
}

/* Counter pour les paragraphes */
.paragraph-counter {
    position: absolute;
    top: -25px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Badge pour texte long */
.long-text-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(37, 99, 235, 0.9);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 2;
}

/* Amélioration de l'overlay */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 80%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Scrollbar personnalisée pour l'overlay */
.gallery-overlay::-webkit-scrollbar {
    width: 6px;
}

.gallery-overlay::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.gallery-overlay::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.gallery-overlay::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Tooltip pour les titres tronqués */
.gallery-caption-tooltip {
    position: relative;
    cursor: help;
}

.gallery-caption-tooltip:hover::after {
    content: attr(data-full-text);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 0.5rem;
}

/* Animation de pulse pour attirer l'attention */
@keyframes gentlePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.gallery-item:hover .gallery-media {
    animation: gentlePulse 2s infinite;
}

/* Responsive pour l'overlay */
@media (max-width: 768px) {
    .gallery-overlay {
        padding: 1rem 0.75rem 0.75rem;
        max-height: 70%;
    }
    
    .gallery-text-container {
        max-height: 100px;
    }
    
    .gallery-read-more {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
}


/* Animation pour les images chargées */
.gallery-media.loaded {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Styles pour le lightbox amélioré */
.lightbox-media-container {
    position: relative;
    max-width: 90%;
    max-height: 70vh;
    margin: 0 auto;
}

.lightbox-media {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.lightbox-media-info {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.media-type-badge {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(5px);
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 1rem;
    padding: 0 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.lightbox-category {
    display: inline-block;
    background: rgba(37, 99, 235, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    backdrop-filter: blur(5px);
}

.lightbox-category.video-category {
    background: rgba(220, 38, 38, 0.9);
}

.lightbox-text-container {
    max-height: 100px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;
    margin-bottom: 1rem;
    text-align: left;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.lightbox-text-container.expanded {
    max-height: 300px;
    overflow-y: auto;
}

.lightbox-caption-text {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.lightbox-text-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.9));
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.lightbox-text-container.expanded .lightbox-text-gradient {
    opacity: 0;
}

.lightbox-read-more {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    margin-top: 0.5rem;
}

.lightbox-read-more:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Notification styles */
.custom-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #059669;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 9999;
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

.custom-notification.error {
    background: #dc2626;
}

.custom-notification.warning {
    background: #d97706;
}

.custom-notification.info {
    background: #2563eb;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: auto;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0.25rem;
}

.notification-close:hover {
    opacity: 1;
}



/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 1rem;
    padding: 0 2rem;
}


/* ============================================
   LIGHTBOX ZOOM STYLES
   ============================================ */

.lightbox-zoom-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1002;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.zoom-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.zoom-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.zoom-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: none;
}

.zoom-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: zoom-in;
    transition: cursor 0.3s ease;
}

.zoom-wrapper.zoomed {
    cursor: grab;
}

.zoom-wrapper.zoomed:active {
    cursor: grabbing;
}

.lightbox-media.zoomable {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

/* Zoom notification */
.zoom-notification {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 1002;
    animation: fadeInOut 2s ease;
    backdrop-filter: blur(10px);
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
    20%, 80% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Zoom instructions */
.zoom-instructions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 12px;
    text-align: center;
    z-index: 1001;
    backdrop-filter: blur(10px);
    display: none;
}

.zoom-instructions.show {
    display: block;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Touch device optimizations */
@media (max-width: 768px) {
    .lightbox-zoom-controls {
        top: 10px;
        right: 10px;
        flex-direction: column;
        gap: 5px;
    }
    
    .zoom-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .zoom-notification {
        bottom: 60px;
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Keyboard shortcuts hint */
.zoom-shortcuts {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    z-index: 1001;
    backdrop-filter: blur(10px);
    display: none;
}

.zoom-shortcuts.show {
    display: block;
}

.zoom-shortcuts kbd {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    margin: 0 2px;
    font-family: monospace;
}






/* ============================================
    COMPACT NEWS MARQUEE STYLES
    ============================================ */

.news-oursfera {
    position: relative;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.35rem 0.75rem;
    margin: 0.75rem 0;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(2, 26, 127, 0.15);
    border-left: 3px solid var(--accent-color);
    font-size: 0.8125rem;
    line-height: 1.2;
    min-height: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.news-oursfera:hover {
    box-shadow: 0 4px 8px rgba(2, 26, 127, 0.2);
    transform: translateY(-1px);
}

.news-oursfera::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    animation: progressBar 30s linear infinite;
}

.news-oursfera span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(2px);
    white-space: nowrap;
    flex-shrink: 0;
}

.news-oursfera marquee {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    padding: 0.15rem 0;
    scrollamount: 2;
    transition: scrollamount 0.3s ease;
}

.news-oursfera:hover marquee {
    scrollamount: 3;
}

.news-oursfera marquee::before {
    margin-right: 0.375rem;
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Animation pour la barre de progression */
@keyframes progressBar {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* Badges compacts pour les types de nouvelles */
.news-badge {
    display: inline-block;
    padding: 0.1rem 0.3rem;
    border-radius: 2px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-right: 0.375rem;
    vertical-align: middle;
    line-height: 1;
    border: none;
}

.news-badge.breaking {
    background: linear-gradient(90deg, #dc2626, #ef4444);
    color: white;
}

.news-badge.update {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: white;
}

.news-badge.event {
    background: linear-gradient(90deg, #d97706, #f59e0b);
    color: white;
}

.news-badge.achievement {
    background: linear-gradient(90deg, #059669, #10b981);
    color: white;
}

.news-badge.research {
    background: linear-gradient(90deg, #7c3aed, #8b5cf6);
    color: white;
}

.news-badge.partnership {
    background: linear-gradient(90deg, #db2777, #ec4899);
    color: white;
}

/* Animation slide-in discrète */
.slide-in {
    animation: slideInFromTop 0.4s ease-out;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effet de brillance subtil */
.news-oursfera::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transform: rotate(30deg);
    animation: shine 6s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        left: -50%;
    }
    100% {
        left: 150%;
    }
}

/* Version mini pour certains écrans */
.news-mini {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.news-mini span {
    display: none;
}

.news-mini marquee::before {
    font-size: 0.7rem;
}

/* Responsive */
@media (max-width: 768px) {
    .news-oursfera {
        padding: 0.25rem 0.5rem;
        margin: 0.5rem 0;
        font-size: 0.75rem;
        gap: 0.375rem;
        min-height: 1.75rem;
    }
    
    .news-oursfera span {
        padding: 0.1rem 0.375rem;
        font-size: 0.65rem;
        letter-spacing: 0.3px;
    }
    
    .news-oursfera marquee {
        font-size: 0.75rem;
        scrollamount: 1.5;
    }
    
    .news-oursfera:hover marquee {
        scrollamount: 2.5;
    }
    
    .news-badge {
        font-size: 0.55rem;
        padding: 0.05rem 0.25rem;
        margin-right: 0.25rem;
    }
}

@media (max-width: 480px) {
    .news-oursfera {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.375rem;
    }
    
    .news-oursfera span {
        align-self: stretch;
        text-align: center;
        padding: 0.2rem;
    }
    
    .news-oursfera marquee {
        width: 100%;
        padding-left: 0;
    }
}






/* ============================================
    PROJECTS STYLES
    ============================================ */
.project-card-full {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.project-header {
    padding: 1.5rem;
    background: var(--light-muted);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-status {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-completed {
    background: #dbeafe;
    color: #1e40af;
}

.status-upcoming {
    background: #fef3c7;
    color: #92400e;
}

.project-body {
    padding: 2rem;
}

.project-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-meta {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--light-muted);
    border-radius: 0.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.meta-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.meta-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.project-objectives {
    margin: 2rem 0;
}

.objective-list {
    list-style: none;
    padding: 0;
}

.objective-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.objective-list li:last-child {
    border-bottom: none;
}

.objective-icon {
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.project-team {
    margin: 2rem 0;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.team-member {
    text-align: center;
}

.member-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 0.5rem;
    border: 2px solid var(--primary-light);
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-cta {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.btn-project {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-project:hover {
    background: var(--primary-dark);
}

.projects-impact {
    margin: 4rem 0;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.impact-stat {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.impact-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ============================================
    SIDEBAR
    ============================================ */
.article-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-section {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 1rem;
}

/* Author Card */
.author-card {
    padding: 1.5rem;
}

.author-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.author-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: var(--primary-color);
}

.author-title {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
    margin: 0 0 0.5rem;
}

.author-bio {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.4;
    margin: 0;
}

.author-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Categories */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 0.5rem;
}

.categories-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.categories-list a:hover {
    background: var(--light-muted);
    color: var(--primary-color);
}

.categories-list i {
    width: 1.25rem;
    text-align: center;
}

.categories-list li:not(a) {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    color: var(--text-color);
}

/* Newsletter */
.newsletter-content p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.newsletter-form input {
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-newsletter {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.625rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.btn-newsletter:hover {
    background: var(--primary-dark);
}

.newsletter-note {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
    margin: 0;
}

/* Related Articles */
.related-articles {
    padding: 1.5rem;
}

.title-related{
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 1rem;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    display: flex;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-image {
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content h3,
.related-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.related-content h3 a,
.related-content h4 a {
    color: var(--dark-color);
    text-decoration: none;
}

.related-content h3 a:hover,
.related-content h4 a:hover {
    color: var(--primary-color);
}

.related-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-light);
}


/* ============================================
    PARTENAIRES - DÉFILEMENT AUTO INFINI (simple)
    ============================================ */
.partners-section {
    margin: 3rem 0 2rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border-radius: 1.5rem;
    text-align: center;
    overflow-x: clip; /* évite tout débordement horizontal */
}

.partners-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.partners-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Wrapper : masque le débordement */
.partners-carousel-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    overflow-x: hidden;
    border-radius: 1rem;
}

/* Piste animée */
.partners-track {
    display: flex;
    width: max-content;
    gap: 2rem;
    padding: 0.5rem 0;
    animation: defilementAuto 24s linear infinite;
    will-change: transform;
}

/* Pause au survol */
.partners-carousel-wrapper:hover .partners-track {
    animation-play-state: paused;
}

/* Cartes logos */
.partner-logo-card {
    flex: 0 0 auto;
    width: 140px;
    text-align: center;
    background: white;
    padding: 1rem 0.5rem;
    border-radius: 1rem;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.partner-logo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 25px rgba(2, 26, 127, 0.15);
    background: white;
}

.partner-logo-card img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    margin-bottom: 0.6rem;
    filter: grayscale(15%);
    transition: all 0.3s;
}

.partner-logo-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.partner-logo-card h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-muted);
    margin: 0;
}

/* Animation : défilement de la moitié de la largeur */
@keyframes defilementAuto {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .partners-section {
        margin: 2rem 0;
        padding: 1.5rem 0;
    }
    .partners-title {
        font-size: 1.5rem;
    }
    .partner-logo-card {
        width: 120px;
        padding: 0.75rem 0.4rem;
    }
    .partner-logo-card img {
        width: 60px;
        height: 60px;
    }
    .partner-logo-card h4 {
        font-size: 0.75rem;
    }
    .partners-track {
        gap: 1.2rem;
    }
}

@media (max-width: 480px) {
    .partner-logo-card {
        width: 105px;
    }
    .partner-logo-card img {
        width: 50px;
        height: 50px;
    }
    .partners-track {
        gap: 0.8rem;
    }
}


/* ============================================
    FOOTER
    ============================================ */
footer {
    background: #2C3E50;
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Logo dans footer - CORRIGÉ */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-about {
    opacity: 0.8;
    line-height: 1.6;
    color: #ddd;
    margin-top: 1rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    display: block;
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    margin-bottom: 1rem;
}

.footer-contact p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
}

.footer-contact a {
    color: white;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.social-icons a:hover {
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.875rem;
}

/* ============================================
    ARTICLE FOOTER
    ============================================ */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.tags-label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.875rem;
}

.tag {
    display: inline-block;
    background: var(--light-muted);
    color: var(--text-color);
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
}

.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-like,
.btn-dislike {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    background: white;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-like:hover {
    background: #f0fdf4;
    border-color: #86efac;
    color: var(--secondary-color);
}

.btn-dislike:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

.btn-like.active {
    background: #f0fdf4;
    border-color: #86efac;
    color: var(--secondary-color);
}

.btn-dislike.active {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* ============================================
    BACK TO TOP BUTTON
    ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 99;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(10px);
}

.back-to-top.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================
    NOTIFICATION SYSTEM
    ============================================ */
.custom-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--success-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 9999;
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

.custom-notification.error {
    background: var(--error-color);
}

.custom-notification.warning {
    background: var(--warning-color);
}

.custom-notification.info {
    background: var(--info-color);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: auto;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0.25rem;
}

.notification-close:hover {
    opacity: 1;
}




/* ============================================
    PARTNERSHIP PAGE STYLES
    ============================================ */
.partnership-form {
    background: var(--light-muted);
    padding: 2rem;
    border-radius: 0.75rem;
    margin: 2rem 0;
}

.partnership-form h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* ============================================
    LEADERSHIP PAGE STYLES
    ============================================ */
.leadership-header {
    margin-bottom: 3rem;
}

.team-profile {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    margin: 2rem 0;
}

.team-profile-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.team-profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--primary-light);
}

.team-profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-profile-details {
    flex: 1;
}

.team-profile-details h3 {
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
}

.team-profile-role {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-profile-bio {
    line-height: 1.6;
    color: var(--text-color);
}

/* ============================================
    ARTICLE PAGE IMPROVEMENTS
    ============================================ */
.lead-paragraph {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    line-height: 1.6;
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 3px solid var(--secondary-color);
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.tags-label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.875rem;
}

.tag {
    display: inline-block;
    background: var(--light-muted);
    color: var(--text-color);
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
}

.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-like,
.btn-dislike {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    background: white;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-like:hover {
    background: #f0fdf4;
    border-color: #86efac;
    color: var(--secondary-color);
}

.btn-dislike:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

.btn-like.active {
    background: #f0fdf4;
    border-color: #86efac;
    color: var(--secondary-color);
}

.btn-dislike.active {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* ============================================
    QUOTE BOX STYLES
    ============================================ */
.quote-box {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-left: 5px solid #22d3ee;
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 0 10px 10px 0;
}

.quote-box p {
    font-size: 1.2rem;
    font-style: italic;
    color: #1e40af;
    margin: 0;
    line-height: 1.6;
}

.quote-author {
    text-align: right;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* ============================================
    IMPACT STATS GRID
    ============================================ */
.impact-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.impact-stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.impact-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.impact-stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.4;
}




.blog-featured {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 3rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

.blog-featured h1 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.blog-featured p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.featured-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.category-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.blog-post-preview {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.blog-post-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.preview-content {
    padding: 1.5rem;
}

.preview-content h3 {
    margin-top: 0;
    color: var(--primary-color);
    line-height: 1.4;
}

.preview-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preview-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.875rem;
}

.preview-category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.read-time {
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.article-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
}

.article-summary h4 {
    margin-top: 0;
    color: var(--primary-color);
}

.load-more-btn {
    display: block;
    width: 200px;
    margin: 2rem auto;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.no-posts {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-style: italic;
}

.search-container {
    margin: 2rem 0;
}

.search-box {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

.search-box button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.article-preview-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-featured {
        padding: 2rem 1rem;
    }
    
    .blog-featured h1 {
        font-size: 2rem;
    }
}




/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 15px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0;
}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

/* Featured Projects */
.featured-projects {
    margin: 4rem 0;
}

.projects-slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
    margin: 2rem 0;
}

.project-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-slide.active {
    opacity: 1;
}

.project-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    padding: 2rem;
}

.project-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.btn-project {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.btn-project:hover {
    background: var(--primary-dark);
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

.slider-controls button {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-controls button:hover {
    background: var(--primary-dark);
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
}

.dot.active {
    background: var(--primary-color);
}

/* Testimonials */
.testimonials-section {
    margin: 4rem 0;
    padding: 3rem;
    background: #f1f5f9;
    border-radius: 15px;
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.testimonial-content {
    position: relative;
    padding: 2rem;
}

.testimonial-content i:first-child {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 2rem;
    color: var(--primary-light);
}

.testimonial-content i:last-child {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 2rem;
    color: var(--primary-light);
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* Action Cards */
.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.action-card {
    padding: 2rem;
    border-radius: 15px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.action-card:hover {
    transform: translateY(-10px);
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
    z-index: 1;
}

.action-card > * {
    position: relative;
    z-index: 2;
}

.donate-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.volunteer-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.partner-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.action-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.action-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.btn-action {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: white;
    color: #000;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 1rem;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.btn-action:hover {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-section {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .projects-slider {
        height: 300px;
    }
    
    .action-cards {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 1rem;
    }
}




/* ============================================
    RESPONSIVE DESIGN
    ============================================ */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 992px) {
    .article-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-sidebar {
        position: static;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
    MOBILE : BOTTOM NAVIGATION (Android style)
    ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    body {
        padding-top: 50px;
        padding-bottom: 80px;
    }
    
    
    .mobile-menu-btn {
        display: none !important;
    }
    
    .main-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        display: flex !important;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 0.5rem 0.25rem;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        gap: 0;
        top: auto !important;
        transform: none;
        animation: none;
        border-radius: 0;
    }
    
    /* Style des liens dans la bottom nav */
    .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
        text-align: center;
        border-bottom: none;
        flex: 1;
        min-width: 0;
        transition: color 0.2s, background 0.2s;
        background: transparent;
        border-radius: 0.5rem;
    }
    
    /* Supprime la barre active sous le lien */
    .nav-link.active::after {
        display: none;
    }
    
    /* Ajout des icônes Font Awesome en fonction du texte du lien */
    .nav-link:first-child::before {
        content: "\f015";  /* Home */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
        display: block;
    }
    .nav-link:nth-child(3)::before {  /* About */
        content: "\f007";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
        display: block;
    }
    .nav-link:nth-child(5)::before {  /* Blog */
        content: "\f781";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
        display: block;
    }
    .nav-link:nth-child(7)::before {  /* Gallery */
        content: "\f302";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
        display: block;
    }
    .nav-link:nth-child(9)::before {  /* Projects */
        content: "\f0ae";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
        display: block;
    }
    .nav-link:nth-child(11)::before { /* Contact */
        content: "\f095";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
        display: block;
    }
    
    /* Séparateurs invisibles (plus nécessaires) */
    .nav-separator {
        display: none;
    }
    
    /* --- Contenu (inchangé) --- */
    .article-title, .contact-title, .projects-title, .gallery-title, .blog-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .meta-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .social-share {
        order: -1;
        margin-bottom: 1rem;
        justify-content: center;
        width: 100%;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .team-members {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-stats {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    /* Back to top mobile (décalé pour ne pas chevaucher la bottom nav) */
    .back-to-top {
        bottom: 5rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    /* Lightbox mobile */
    .lightbox-nav {
        font-size: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .lightbox-prev {
        left: 1rem;
    }
    
    .lightbox-next {
        right: 1rem;
    }
    
    /* Blog mobile */
    .blog-post-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .blog-post-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    /* Notification mobile */
    .custom-notification {
        left: 1rem;
        right: 1rem;
        max-width: none;
        top: 80px;
    }
}

/* Ajustements pour très petits écrans (576px) */
@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    body {
        padding-bottom: 75px;
    }
    
    /* Réduction légère de la bottom nav */
    .main-nav {
        padding: 0.4rem 0.2rem;
    }
    
    .nav-link {
        font-size: 0.65rem;
        padding: 0.4rem 0.2rem;
    }
    
    .nav-link::before {
        font-size: 1rem !important;
    }
    
    /* Garde les mêmes réglages de contenu */
    .article-title, .contact-title, .projects-title, .gallery-title, .blog-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .meta-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .social-share {
        order: -1;
        margin-bottom: 1rem;
        justify-content: center;
        width: 100%;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .team-members {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 4.5rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .lightbox-nav {
        font-size: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .lightbox-prev {
        left: 1rem;
    }
    
    .lightbox-next {
        right: 1rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .blog-post-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .custom-notification {
        left: 1rem;
        right: 1rem;
        max-width: none;
        top: 80px;
    }
}

/* Écrans très étroits (≤456px) */
@media (max-width: 456px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .article-title, .contact-title, .projects-title, .gallery-title, .blog-title {
        font-size: 1.75rem;
    }
    
    .contact-info, .contact-form {
        padding: 1.5rem;
    }
    
    .sponsor-banner {
        padding: 1.25rem;
    }
    
    .btn-submit, .btn-newsletter {
        padding: 0.75rem 1rem;
    }
    
    .team-members {
        grid-template-columns: 1fr;
    }
}

/* Cas extrême (≤256px) */
@media (max-width: 256px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .article-title, .contact-title, .projects-title, .gallery-title, .blog-title {
        font-size: 1.75rem;
    }
    
    .contact-info, .contact-form {
        padding: 1.5rem;
    }
    
    .sponsor-banner {
        padding: 1.25rem;
    }
    
    .btn-submit, .btn-newsletter {
        padding: 0.75rem 1rem;
    }
    
    .team-members {
        grid-template-columns: 1fr;
    }
}

/* ============================================
    ACCESSIBILITY
    ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles pour accessibilité */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================
    PRINT STYLES
    ============================================ */
@media print {
    .article-header,
    .article-sidebar,
    .mobile-menu-btn,
    .social-share,
    .btn-share,
    .btn-bookmark,
    .sponsor-banner,
    footer,
    .back-to-top,
    .loading-screen {
        display: none !important;
    }
    
    .article-main {
        padding: 0;
    }
    
    .article-content {
        max-width: 100%;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
    }
}