/* public/css/gdd-styles.css */

/* ===== VARIABLES CSS ===== */
:root {
    /* Couleurs principales */
    --primary-blue: #009edb;      /* Bleu ONU */
    --primary-dark: #1976d2;      /* Bleu foncé */
    --primary-light: #4fc3f7;     /* Bleu clair */

    /* Couleurs secondaires */
    --secondary-green: #28a745;    /* Vert développement durable */
    --secondary-orange: #fd7e14;   /* Orange énergie */
    --secondary-purple: #6f42c1;   /* Violet innovation */
    --secondary-teal: #20c997;     /* Turquoise eau */

    /* Couleurs neutres */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --darker-gray: #495057;
    --black: #212529;

    /* Couleurs d'état */
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-green), var(--secondary-teal));
    --gradient-warm: linear-gradient(135deg, var(--secondary-orange), #ffb347);

    /* Ombres */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== STYLES DE BASE ===== */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
}

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

.display-1, .display-2, .display-3, .display-4 {
    font-weight: 700;
}

.text-primary-custom {
    color: var(--primary-blue) !important;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BOUTONS PERSONNALISÉS ===== */
.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline-primary-custom {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 50px;
    transition: var(--transition-normal);
}

.btn-outline-primary-custom:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.btn-secondary-custom {
    background: var(--gradient-secondary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: var(--transition-normal);
}

.btn-secondary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* ===== HEADER ET NAVIGATION ===== */
.contact-bar {
    background: var(--primary-dark);
    color: white;
    padding: 8px 0;
    font-size: 0.875rem;
}

.contact-bar a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-bar a:hover {
    color: var(--primary-light);
}

.main-header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.main-logo {
   /* font-size: 3rem;*/
    font-weight: 800;
    color: var(--primary-blue);
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}
.main-logo span{
    font-size: 1.4rem;
}
.main-logo:hover {
    color: var(--primary-dark);
}

.partner-badge {
    /*background: var(--gradient-primary);
    color: white;*/
    /*padding: 6px 16px;*/
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition-normal);
    text-decoration: none;
    display: inline-block;
    margin: 2px;
}

.partner-badge:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: var(--shadow-md);
}
/*

.navbar-custom {
    background: var(--gradient-primary);
    padding: 0;
}

.navbar-custom .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 16px 20px !important;
    transition: var(--transition-fast);
    position: relative;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    background: rgba(255,255,255,0.15);
    color: white !important;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: white;
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 80%;
}
*/
/* Navigation styles */
.navbar-custom {
    background: var(--gradient-primary);
    padding: 0;
    box-shadow: var(--shadow-md);
}

.navbar-custom .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 16px 18px !important;
    transition: var(--transition-fast);
    position: relative;
    border-radius: 0;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    background: rgba(255,255,255,0.15);
    color: white !important;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: white;
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 80%;
}
/* Styles pour les sous-menus */
.navbar-custom .dropdown-menu {
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 10px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    background: white;
    min-width: 220px;
}

.navbar-custom .dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #495057;
    border: none;
}

.navbar-custom .dropdown-item:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateX(5px);
}

.navbar-custom .dropdown-item.active {
    background: var(--primary-light);
    color: white;
    font-weight: 600;
}

.navbar-custom .dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

/* Animation des dropdowns */
.navbar-custom .dropdown-menu {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: block;
    visibility: hidden;
}

.navbar-custom .dropdown:hover .dropdown-menu,
.navbar-custom .dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Flèche dropdown */
.navbar-custom .dropdown-toggle::after {
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.navbar-custom .dropdown:hover .dropdown-toggle::after,
.navbar-custom .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Responsive pour les sous-menus */
@media (max-width: 991.98px) {
    .navbar-custom .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background: rgba(255,255,255,0.1);
        border: none;
        box-shadow: none;
        padding-left: 1rem;
        opacity: 1;
        transform: none;
        visibility: visible;
    }

    .navbar-custom .dropdown-item {
        color: rgba(255,255,255,0.9);
        padding: 0.5rem 1rem;
    }

    .navbar-custom .dropdown-item:hover {
        background: rgba(255,255,255,0.1);
        color: white;
        transform: none;
    }
}

/* Support du hover sur desktop */
@media (min-width: 992px) {
    .navbar-custom .dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }
}
/* Partner badges in header */
.partner-badge {
    /* background: var(--gradient-primary);
     color: white;*/
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 0.75rem;

    font-weight: 600;
    transition: var(--transition-normal);
    text-decoration: none;
    display: inline-block;
    margin: 2px;
}
.partner-badge img{
    border-radius: 5%;
}

.partner-badge:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: var(--shadow-md);
}

/* ONG Profile Page Styles */
.ong-profile-header {
/*    background: var(--gradient-primary);*/
   /* color: white;*/
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.ong-cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.ong-profile-content {
    position: relative;
    z-index: 2;
}

.ong-logo {
    width: 100%;
    height: 150px;
    object-fit: contain;
    background: white;
    padding: 1rem;
    border-radius: 12px;
  /*  box-shadow: var(--shadow-md);*/
    margin-bottom: 1.5rem;
}

.ong-stats {
    background: white;
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.content-tabs {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    margin-top: -2rem;
    position: relative;
    z-index: 3;
}

.nav-tabs {
    border: none;
    padding: 1rem 1rem 0;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 10px 10px 0 0;
    margin-right: 0.5rem;
}

.nav-tabs .nav-link.active {
    background: var(--primary-blue);
    color: white;
}

.tab-content {
    padding: 2rem;
}

.activity-card, .project-card, .news-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    /*   padding: 1.5rem;*/
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
}

.activity-card:hover, .project-card:hover, .news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-custom {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: var(--transition-normal);
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.contact-form {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
}

.form-control {
    border-radius: 10px;
    border: 1px solid #e0e6ed;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 158, 219, 0.25);
}
/* ===== HERO SECTIONS ===== */
.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    color: white;
    text-align: center;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.page-header {
    background: black;
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center/cover no-repeat;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb-item.active{
    color: white !important;
}
/* ===== CARTES ET COMPOSANTS ===== */
.card-custom {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    overflow: hidden;
    background: white;
}

.card-custom:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-custom .card-header {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 2rem;
    text-align: center;
}

.card-custom .card-body {
    padding: 2rem;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: white;
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-md);
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border-top: 4px solid var(--primary-blue);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.stat-label {
    color: var(--dark-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

/* ===== SECTIONS SPÉCIALES ===== */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--dark-gray);
   /* margin-bottom: 3rem;*/
}

.bg-light-custom {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.bg-primary-gradient {
    background: var(--gradient-primary);
    color: white;
}

.bg-secondary-gradient {
    background: var(--gradient-secondary);
    color: white;
}

/* ===== COMPOSANTS SPÉCIFIQUES ===== */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding: 0 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--primary-blue);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.timeline-item:nth-child(odd)::before {
    right: -12px;
}

.timeline-item:nth-child(even)::before {
    left: -12px;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

/* ===== PROGRESS BARS ===== */
.progress-custom {
    height: 8px;
    border-radius: 10px;
    background: var(--medium-gray);
    overflow: hidden;
}

.progress-bar-custom {
    background: var(--gradient-primary);
    transition: width 1.5s ease;
}

/* ===== BADGES ET TAGS ===== */
.badge-custom {
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary-custom {
    background: var(--gradient-primary);
    color: white;
}

.badge-secondary-custom {
    background: var(--gradient-secondary);
    color: white;
}

.badge-success-custom {
    background: var(--success);
    color: white;
}

.badge-warning-custom {
    background: var(--warning);
    color: var(--black);
}

/* ===== FOOTER ===== */
.main-footer {
    background: var(--primary-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-section h5 {
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition-fast);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.7);
}

.social-links a {
    display: inline-block;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    color: white;
    text-align: center;
    line-height: 45px;
    border-radius: 50%;
    margin: 0 5px;
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    color: white;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .main-logo {
        font-size: 2.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

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

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 4rem;
    }

    .timeline-item::before {
        left: 20px !important;
    }
}

@media (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 60px 0;
    }

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

    .card-custom .card-header,
    .card-custom .card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

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

    .timeline-item {
        padding-left: 3rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item::before {
        left: 10px !important;
    }
}

/* ===== UTILS ===== */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.box-shadow-sm {
    box-shadow: var(--shadow-sm);
}

.box-shadow-md {
    box-shadow: var(--shadow-md);
}

.box-shadow-lg {
    box-shadow: var(--shadow-lg);
}

.border-radius-custom {
    border-radius: 12px;
}

.border-radius-pill {
    border-radius: 50px;
}

.cursor-pointer {
    cursor: pointer;
}

.transition-all {
    transition: all var(--transition-normal);
}


/* MODIFICATIONS pour les ODD - À ajouter/remplacer dans gdd-styles.css */

/* Container du slider avec scroll horizontal */
.odd-slider-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 -15px;
    padding: 0 60px; /* Espace pour les boutons de navigation */
}

.odd-slider-container {
    display: flex;
    gap: 1rem; /* Réduit de 2rem à 1rem */
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;

    /* Masquer la scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.odd-slider-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

/* Design des cartes ODD - DIMENSIONS RÉDUITES DE MOITIÉ */
.odd-card {
    min-width: 150px; /* Réduit de 300px à 150px */
    max-width: 150px;
    height: 140px; /* Réduit de 280px à 140px */
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    border-radius: 8px; /* Réduit de 12px à 8px */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Réduit */
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.odd-card:hover {
    transform: translateY(-5px) scale(1.02); /* Réduit de -10px à -5px */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15); /* Réduit */
}

.card-body {
    padding: 1rem; /* Réduit de 2rem à 1rem */
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 2;
}

.odd-icon {
    width: 40px; /* Réduit de 80px à 40px */
    height: 40px; /* Réduit de 80px à 40px */
   /* background: rgba(255, 255, 255, 0.2);*/
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem; /* Réduit de 2rem à 1rem */
    margin: 0 auto 0.75rem; /* Réduit de 1.5rem à 0.75rem */
/*    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3); !* Réduit *!*/
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.odd-card:hover .odd-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 18px rgba(255, 255, 255, 0.4); /* Réduit */
}

.odd-title {
    font-size: 0.8rem; /* Réduit de 1.2rem à 0.8rem */
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem; /* Réduit de 1rem à 0.5rem */
    line-height: 1.3;
}

.odd-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4; /* Réduit de 1.6 à 1.4 */
    flex-grow: 1;
    font-size: 0.6rem; /* Réduit de 0.9rem à 0.6rem */
}

.odd-number {
    position: absolute;
    top: 8px; /* Réduit de 15px à 8px */
    left: 8px; /* Réduit de 15px à 8px */
    width: 20px; /* Réduit de 40px à 20px */
    height: 20px; /* Réduit de 40px à 20px */
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.6rem; /* Réduit de 1.2rem à 0.6rem */
    z-index: 3;
}

/* Logo ODD en arrière-plan - RÉDUIT */
.odd-logo {
    position: absolute;
    bottom: -10px; /* Réduit de -20px à -10px */
    right: -10px; /* Réduit de -20px à -10px */
    width: 60px; /* Réduit de 120px à 60px */
    height: 60px; /* Réduit de 120px à 60px */
/*    opacity: 0.15;*/
    z-index: 1;
    transition: all 0.3s ease;
}

.odd-card:hover .odd-logo {
  /*  opacity: 0.25;*/
    transform: rotate(5deg) scale(1.1);
}

/* Cache les icônes FontAwesome et utilise les images ODD - AJUSTÉ */
.odd-icon i {
    display: none;
}

.odd-icon img {
    width: 30px; /* Réduit de 60px à 30px */
    height: 30px; /* Réduit de 60px à 30px */
    object-fit: contain;
    border-radius: 4px; /* Réduit de 8px à 4px */
}

/* Contrôles du slider - POSITIONNÉS ABSOLUMENT */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem; /* Réduit de 2rem à 1.5rem */
    gap: 1rem;
    position: relative;
}

.slider-btn {
    width: 40px; /* Réduit de 50px à 40px */
    height: 40px; /* Réduit de 50px à 40px */
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1rem; /* Réduit de 1.2rem à 1rem */
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1); /* Maintient le centrage vertical */
    box-shadow: var(--shadow-lg);
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%);
}

/* Positionnement des boutons */
#prevBtn {
    left: 10px;
}

#nextBtn {
    right: 10px;
}

.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 0.4rem; /* Réduit de 0.5rem à 0.4rem */
    margin: 0 1rem;
}

.indicator {
    width: 8px; /* Réduit de 10px à 8px */
    height: 8px; /* Réduit de 10px à 8px */
    background: rgba(0, 158, 219, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.indicator.active {
    background: var(--primary-blue);
    transform: scale(1.2);
}

.auto-play-toggle {
    background: rgba(0, 158, 219, 0.1);
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 6px 12px; /* Réduit de 0.5rem 1rem */
    border-radius: 20px; /* Réduit de 25px */
    cursor: pointer;
    transition: all var(--transition-normal);
    font-weight: 600;
    margin-left: 1rem;
    font-size: 0.8rem; /* Ajouté pour réduire la taille */
}

.auto-play-toggle.active {
    background: var(--primary-blue);
    color: white;
}

.progress-bar {
    height: 3px; /* Réduit de 4px à 3px */
    background: rgba(0, 158, 219, 0.2);
    border-radius: 2px;
    margin-top: 0.8rem; /* Réduit de 1rem */
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-blue);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 2px;
}

/* Responsive - DIMENSIONS AJUSTÉES */
@media (max-width: 991.98px) {
    .odd-card {
        min-width: 130px; /* Réduit de 280px à 130px */
        max-width: 130px;
        height: 120px; /* Réduit de 260px à 120px */
    }

    .card-body {
        padding: 0.8rem; /* Réduit de 1.5rem à 0.8rem */
    }

    .odd-slider-wrapper {
        padding: 0 50px; /* Réduit l'espace pour les boutons */
    }
}

@media (max-width: 767.98px) {
    .odd-card {
        min-width: 120px; /* Réduit de 250px à 120px */
        max-width: 120px;
        height: 110px; /* Réduit de 240px à 110px */
    }

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

    .slider-controls {
        flex-wrap: wrap;
    }

    .auto-play-toggle {
        margin-left: 0;
        margin-top: 1rem;
    }

    .odd-slider-wrapper {
        padding: 0 40px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .odd-card {
        min-width: 110px; /* Réduit de 220px à 110px */
        max-width: 110px;
        height: 100px; /* Réduit de 220px à 100px */
    }

    .card-body {
        padding: 0.6rem; /* Réduit de 1rem à 0.6rem */
    }

    .odd-icon {
        width: 30px; /* Réduit de 60px à 30px */
        height: 30px; /* Réduit de 60px à 30px */
        font-size: 0.8rem; /* Réduit de 1.5rem à 0.8rem */
        margin-bottom: 0.5rem;
    }

    .odd-icon img {
        width: 20px;
        height: 20px;
    }

    .section-padding {
        padding: 60px 0;
    }

    .odd-slider-wrapper {
        padding: 0 35px;
    }

    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    #prevBtn {
        left: 5px;
    }

    #nextBtn {
        right: 5px;
    }
}

/* Animation d'entrée - CONSERVÉE */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px); /* Réduit de 100px à 50px */
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.odd-card {
    animation: slideInFromRight 0.6s ease forwards;
}

/* Couleurs officielles des ODD */
.odd-1 { background: linear-gradient(135deg, #E5243B, #c91e35); }
.odd-2 { background: linear-gradient(135deg, #DDA63A, #c79432); }
.odd-3 { background: linear-gradient(135deg, #4C9F38, #438f32); }
.odd-4 { background: linear-gradient(135deg, #C5192D, #b01628); }
.odd-5 { background: linear-gradient(135deg, #FF3A21, #e6331d); }
.odd-6 { background: linear-gradient(135deg, #26BDE2, #21a9cb); }
.odd-7 { background: linear-gradient(135deg, #FCC30B, #e3b00a); }
.odd-8 { background: linear-gradient(135deg, #A21942, #91163b); }
.odd-9 { background: linear-gradient(135deg, #FD6925, #e45f21); }
.odd-10 { background: linear-gradient(135deg, #DD1367, #c7115c); }
.odd-11 { background: linear-gradient(135deg, #FD9D24, #e48d20); }
.odd-12 { background: linear-gradient(135deg, #BF8B2E, #ab7d29); }
.odd-13 { background: linear-gradient(135deg, #3F7E44, #38713d); }
.odd-14 { background: linear-gradient(135deg, #0A97D9, #0987c3); }
.odd-15 { background: linear-gradient(135deg, #56C02B, #4dad26); }
.odd-16 { background: linear-gradient(135deg, #00689D, #005e8d); }
.odd-17 { background: linear-gradient(135deg, #19486A, #16415f); }


.language-selector {
    position: relative;
}

.language-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.language-btn:hover,
.language-btn:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    box-shadow: none;
}

.language-btn.show {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-btn::after {
    margin-left: 0.5rem;
    font-size: 0.75rem;
}

.current-lang {
    font-weight: 600;
    font-size: 0.875rem;
}

.language-menu {
    background: #fff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    min-width: 160px;
    margin-top: 0.5rem;
    z-index: 5000;
}

.language-option {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #333 !important;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    border: none;

}

.language-option:hover {
    background: #f8f9fa;
    color: #007bff;
}

.language-option.active {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    font-weight: 500;
}

.flag-icon {
    border-radius: 2px;
    object-fit: cover;
    height: 15px;
}

.separator {
    width: 1px;
    height: 25px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 0.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 991.98px) {
    .separator {
        display: none;
    }

    .language-selector {
        order: -1;
        margin-bottom: 0.5rem;
    }

    .social-links {
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    .d-flex.align-items-center.justify-content-lg-end {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .language-selector {
        margin-bottom: 1rem;
        order: 0;
    }

    .social-links {
        margin-top: 0;
    }
}

/* NOUVEAU DESIGN CALENDRIER INTERNATIONAL - Style ONU */
.un-calendar {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: white;
    border-radius: 12px;
    /*box-shadow: var(--shadow-lg);*/
    overflow: hidden;
    border: 1px solid #e1e5e9;
}

.un-container {
    position: relative;
}

.un-header {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    padding: 16px 20px;
    /*   text-align: center;*/
    position: relative;
    border-radius: 12px 12px 0 0;
}

.un-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.3px;
}

/* Barre de progression ONU */
.un-progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.un-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4299e1, #63b3ed);
    width: 0%;
    transition: width 0.3s ease;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Container des événements */
.un-list {
    height: 600px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.un-scroll-content {
    animation: smoothScrollUp 25s linear infinite;
    animation-play-state: running;
    padding: 10px;
}

.un-scroll-content:hover {
    animation-play-state: paused;
}

@keyframes smoothScrollUp {
    0% { transform: translateY(0); }
    25% { transform: translateY(-105px); }
    50% { transform: translateY(-210px); }
    75% { transform: translateY(-315px); }
    100% { transform: translateY(-420px); }
}

/* Cartes d'événements style ONU */
.un-item {
    display: flex;
    background: #f8f9fb;
    margin: 0;
    padding: 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    /*  max-height: 150px;*/
    align-items: center;
    margin-top: 10px;
    border: 1px groove #c7c6c6;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.un-item:hover {
    background: #f7fafc;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.un-item.featured {
    border-left: 4px solid #4299e1;
    background: linear-gradient(90deg, #ebf8ff 0%, #f7fafc 100%);
}

/* Image des événements */
.un-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 16px;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

/* Contenu des événements */
.un-content {
    flex: 1;
    min-width: 0;
}

.un-item-title {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.un-item-title a {
    color: #2d3748;
    text-decoration: none;
    display: block;
}

.un-item-title a:hover {
    color: #4299e1;
}

.un-desc {
    font-size: 0.8rem;
    color: #718096;
    line-height: 1.4;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

}

/* Métadonnées */
.un-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: #a0aec0;
}

.un-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.un-meta-item i {
    font-size: 0.7rem;
}

/* Organisation/Source */
.un-org {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.un-org img {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.un-org-name {
    font-size: 0.75rem;
    color: #4a5568;
    font-weight: 500;
}

/* Indicateur de scroll */
.scroll-indicator {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60px;
    background: rgba(66, 153, 225, 0.2);
    border-radius: 2px;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: #4299e1;
    border-radius: 2px;
    animation: scrollIndicator 25s linear infinite;
}

@keyframes scrollIndicator {
    0% { transform: translateY(0); }
    100% { transform: translateY(40px); }
}

/* Badge statut */
.status-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-live {
    background: #fed7d7;
    color: #c53030;
}

.status-upcoming {
    background: #fef5e7;
    color: #d69e2e;
}

.status-archive {
    background: #e6fffa;
    color: #319795;
}

/* Responsive */
@media (max-width: 768px) {
    .un-item {
        padding: 16px;
        height: auto;
        min-height: 105px;
    }

    .un-img {
        width: 50px;
        height: 50px;
        margin-right: 12px;
    }

    .un-item-title {
        font-size: 0.9rem;
    }

    .un-desc {
        font-size: 0.75rem;
    }

    .un-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    /* Bouton Voir Plus */
    .un-btn-voir-plus {
        background: rgba(255, 255, 255, 0.15);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 6px 12px;
        border-radius: 12px;
        text-decoration: none;
        font-size: 0.8rem;
        font-weight: 500;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .un-btn-voir-plus:hover {
        background: rgba(255, 255, 255, 0.25);
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border-color: rgba(255, 255, 255, 0.5);
    }

    .un-btn-voir-plus i {
        font-size: 0.7rem;
    }
}

/* Bouton Voir Plus */
.btn-voir-plus {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-voir-plus:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-voir-plus i {
    font-size: 0.7rem;
}


/* SECTION ACTUALITÉS - AMÉLIORATION POUR INDEX */

/* News Cards - Design modernisé */
.news-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    overflow: hidden;
    border: 1px solid rgba(0, 158, 219, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 158, 219, 0.15);
    border-color: var(--primary-blue);
}

/* News Image modernisée - Avec vraies images */
.news-image {
    height: 160px;
    position: relative;
    overflow: hidden;
    background: var(--medium-gray);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

/* Superposition avec gradient pour le texte */
.news-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 158, 219, 0.1) 0%,
        rgba(79, 195, 247, 0.15) 100%
    );
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 1;
}

.news-card:hover .news-image::before {
    opacity: 1;
}

/* Icône de catégorie en overlay */
.news-image-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    background: rgba(0, 158, 219, 0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 2;
    backdrop-filter: blur(10px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-normal);
}

.news-card:hover .news-image-icon {
    transform: scale(1.1);
    background: rgba(0, 158, 219, 1);
}

/* Fallback pour les images manquantes */
.news-image-fallback {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.news-image-fallback i {
    font-size: 3rem;
    color: white;
    opacity: 0.8;
}

/* Corps de la carte */
.news-card .card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Header avec badge et date */
.news-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.badge-primary-custom {
    background: var(--gradient-primary);
    color: white;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 158, 219, 0.3);
}

.news-date {
    font-size: 0.8rem;
    color: var(--dark-gray);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-date i {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Titre modernisé */
.news-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--black);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: start;
   /* min-height: 56px; !* Pour alignement uniforme *!*/
}

/* Extrait amélioré */
.news-excerpt {
    font-size: 1rem;
    color: var(--darker-gray);
    line-height: 1.5;
    /*    margin-bottom: 16px;*/
    /* flex-grow: 1;*/
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: start;
}

/* Bouton d'action modernisé */
.news-action-btn {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 2px 8px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-normal);
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.news-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left var(--transition-normal);
    z-index: 1;
}

.news-action-btn:hover::before {
    left: 0;
}

.news-action-btn:hover {
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 158, 219, 0.3);
}

.news-action-btn span,
.news-action-btn i {
    position: relative;
    z-index: 2;
}

.news-action-btn i {
    font-size: 0.75rem;
    transition: transform var(--transition-normal);
}

.news-action-btn:hover i {
    transform: translateX(3px);
}

/* Header de section amélioré */
.news-section-header {
    position: relative;
    margin-bottom: 50px;
}

.section-title-with-line::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Bouton "Voir toutes les actualités" modernisé */
.btn-voir-toutes {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(0, 158, 219, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-voir-toutes::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    transition: left var(--transition-normal);
}

.btn-voir-toutes:hover::before {
    left: 0;
}

.btn-voir-toutes:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 158, 219, 0.4);
}

.btn-voir-toutes span,
.btn-voir-toutes i {
    position: relative;
    z-index: 2;
}

/* Badge "Nouveau" */
.news-new-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ff4757;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Responsive amélioré */
@media (max-width: 768px) {
    .news-card .card-body {
        padding: 16px;
    }

    .news-card h5 {
        font-size: 1rem;
        min-height: auto;
    }

    .news-image {
        height: 140px;
    }

    .news-meta-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 10px;
    }

    .btn-voir-toutes {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .news-excerpt {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
}

/* Animation d'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    animation: fadeInUp 0.6s ease forwards;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }




/* CONTAINER PRINCIPAL */
.gdd-impact-stats-section {
    max-width: 800px;
    width: 100%;
}

/* TITRE DE SECTION */
.gdd-section-header {
    text-align: center;
    margin-bottom: 30px;
}

.gdd-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.gdd-section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.gdd-section-subtitle {
    font-size: 1rem;
    color: var(--dark-gray);
    margin: 0;
    font-weight: 400;
}

/* GRID DES STATISTIQUES */
.gdd-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 25px;
}

/* CARTES STATISTIQUES */
.gdd-stat-card {
    background: white;
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    /*  box-shadow: var(--shadow-md);*/
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 158, 219, 0.1);
}

.gdd-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.gdd-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.gdd-stat-card:hover::before {
    transform: scaleX(1);
}

/* ICÔNES */
.gdd-stat-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 10px;
    box-shadow: 0 6px 20px rgba(0, 158, 219, 0.3);
    transition: all var(--transition-normal);
    position: relative;
}

.gdd-stat-icon::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-blue));
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.gdd-stat-card:hover .gdd-stat-icon {
    transform: scale(1.1) rotateY(180deg);
}

.gdd-stat-card:hover .gdd-stat-icon::before {
    opacity: 0.3;
}

/* COULEURS SPÉCIFIQUES PAR ICÔNE */
.gdd-stat-card:nth-child(1) .gdd-stat-icon {
    background: linear-gradient(135deg, #009edb, #4fc3f7);
}

.gdd-stat-card:nth-child(2) .gdd-stat-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.gdd-stat-card:nth-child(3) .gdd-stat-icon {
    background: linear-gradient(135deg, #fd7e14, #ffb347);
}

.gdd-stat-card:nth-child(4) .gdd-stat-icon {
    background: linear-gradient(135deg, #6f42c1, #a855f7);
}

/* NUMÉROS ANIMÉS */
.gdd-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 5px;
    display: block;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 158, 219, 0.1);
}

.gdd-stat-number.counting {
    animation: gdd-countUp 2s ease-out forwards;
}

@keyframes gdd-countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* LABELS */
.gdd-stat-label {
    font-size: 0.75rem;
    color: var(--darker-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    line-height: 1.2;
}

/* DESCRIPTIONS */
.gdd-stat-description {
    font-size: 0.65rem;
    color: var(--dark-gray);
    line-height: 1.3;
    margin-top: 5px;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* EFFET DE PULSATION */
.gdd-stat-icon {
    animation: gdd-pulse 3s infinite;
}

@keyframes gdd-pulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(0, 158, 219, 0.3);
    }
    50% {
        box-shadow: 0 8px 35px rgba(0, 158, 219, 0.5);
    }
}

/* EFFETS DE PARTICULES */
.gdd-stat-card::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gdd-stat-card:hover::after {
    opacity: 0.3;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .gdd-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gdd-stat-card {
        padding: 12px 8px;
    }

    .gdd-stat-number {
        font-size: 1.5rem;
    }

    .gdd-stat-label {
        font-size: 0.7rem;
    }

    .gdd-stat-description {
        font-size: 0.6rem;
    }
}

@media (max-width: 768px) {
    .gdd-section-title {
        font-size: 1.5rem;
    }

    .gdd-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gdd-stat-card {
        padding: 10px 6px;
    }

    .gdd-stat-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .gdd-stat-number {
        font-size: 1.3rem;
    }

    .gdd-stat-label {
        font-size: 0.65rem;
    }

    .gdd-stat-description {
        font-size: 0.55rem;
    }
}

@media (max-width: 480px) {
    .gdd-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .gdd-stat-card {
        padding: 8px 4px;
    }

    .gdd-stat-number {
        font-size: 1.2rem;
    }

    .gdd-section-title {
        font-size: 1.3rem;
    }

    .gdd-stat-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

/* ANIMATION D'APPARITION PROGRESSIVE */
.gdd-stat-card {
    opacity: 0;
    transform: translateY(50px);
    animation: gdd-fadeInUp 0.6s ease forwards;
}

.gdd-stat-card:nth-child(1) { animation-delay: 0.1s; }
.gdd-stat-card:nth-child(2) { animation-delay: 0.2s; }
.gdd-stat-card:nth-child(3) { animation-delay: 0.3s; }
.gdd-stat-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes gdd-fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* SECTION PROJETS - DESIGN ULTRA LIGHT */
.gdd-projects-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #fdfdfd 0%, #f8f9fa 100%);
}

/* HEADER MINIMALISTE */
.gdd-projects-header {
    text-align: center;
    margin-bottom: 40px;
}

.gdd-projects-title {
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--primary-blue);
    margin-bottom: 8px;
    position: relative;
    letter-spacing: -0.5px;
}

.gdd-projects-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: var(--primary-blue);
}

.gdd-projects-subtitle {
    font-size: 0.95rem;
    color: var(--dark-gray);
    font-weight: 300;
    margin: 0;
    opacity: 0.8;
}

/* GRID ULTRA LIGHT */
.gdd-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 35px;
}

/* CARTES PROJETS MINIMALISTES */
.gdd-project-card {
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(0, 158, 219, 0.08);
    transition: all var(--transition-normal);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gdd-project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 158, 219, 0.12);
    border-color: rgba(0, 158, 219, 0.2);
}

/* IMAGE MINIMALISTE */
.gdd-project-image {
    height: 180px;
    position: relative;
    overflow: hidden;
    background: var(--light-gray);
}

.gdd-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
    filter: brightness(0.95);
}

.gdd-project-card:hover .gdd-project-image img {
    transform: scale(1.02);
    filter: brightness(1);
}

/* OVERLAY SUBTIL */
.gdd-project-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
}

.gdd-project-status {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-blue);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 158, 219, 0.1);
}

.gdd-project-category {
    background: rgba(0, 158, 219, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* CONTENU ULTRA CLEAN */
.gdd-project-content {
    padding: 20px;
}

.gdd-project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.gdd-project-location {
    font-size: 0.75rem;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

.gdd-project-location i {
    font-size: 0.7rem;
    opacity: 0.7;
}

.gdd-project-budget {
    font-size: 0.75rem;
    color: var(--secondary-green);
    font-weight: 600;
}

/* TITRE PROJET */
.gdd-project-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
    margin: 0 0 10px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* DESCRIPTION LIGHT */
.gdd-project-description {
    font-size: 0.85rem;
    color: var(--darker-gray);
    line-height: 1.5;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* PROGRESS BAR MINIMALISTE */
.gdd-project-progress {
    margin-bottom: 12px;
}

.gdd-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--dark-gray);
    margin-bottom: 4px;
}

.gdd-progress-bar {
    height: 3px;
    background: var(--medium-gray);
    border-radius: 2px;
    overflow: hidden;
}

.gdd-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 1s ease;
}

/* ACTIONS MINIMALISTES */
.gdd-project-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gdd-project-link {
    background: none;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 6px;
}

.gdd-project-link:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-1px);
}

.gdd-project-link i {
    font-size: 0.7rem;
    transition: transform var(--transition-normal);
}

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

.gdd-project-participants {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--dark-gray);
}

.gdd-participants-count {
    background: var(--light-gray);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

/* BOUTON VOIR PLUS ULTRA LIGHT */
.gdd-projects-cta {
    text-align: center;
    margin-top: 40px;
}

.gdd-btn-voir-projets {
    background: none;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.gdd-btn-voir-projets::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left var(--transition-normal);
    z-index: 1;
}

.gdd-btn-voir-projets:hover::before {
    left: 0;
}

.gdd-btn-voir-projets:hover {
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 158, 219, 0.2);
}

.gdd-btn-voir-projets span,
.gdd-btn-voir-projets i {
    position: relative;
    z-index: 2;
}

/* FALLBACK IMAGE */
.gdd-project-image-fallback {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gdd-project-image-fallback i {
    font-size: 2rem;
    color: white;
    opacity: 0.7;
}

/* RESPONSIVE ULTRA OPTIMISÉ */
@media (max-width: 768px) {
    .gdd-projects-title {
        font-size: 1.8rem;
    }

    .gdd-projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gdd-project-card {
        margin: 0 auto;
        max-width: 400px;
    }

    .gdd-project-content {
        padding: 16px;
    }

    .gdd-project-image {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .gdd-projects-section {
        padding: 40px 0;
    }

    .gdd-project-content {
        padding: 14px;
    }

    .gdd-project-title {
        font-size: 1rem;
    }

    .gdd-project-description {
        font-size: 0.8rem;
    }
}

/* ANIMATIONS SUBTILES */
.gdd-project-card {
    opacity: 0;
    transform: translateY(20px);
    animation: gdd-projectFadeIn 0.6s ease forwards;
}

.gdd-project-card:nth-child(1) { animation-delay: 0.1s; }
.gdd-project-card:nth-child(2) { animation-delay: 0.2s; }
.gdd-project-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes gdd-projectFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Media et Impact - Design épuré et light */
.section-padding {
    padding: 80px 0;
}

.bg-light-custom {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}



/* ===== SECTION VIDÉOS ===== */
.videos-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 1.5rem;
}

/* Vidéo principale */
.main-video-container {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.main-video-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 1rem 1.25rem;
    background: white;
}

.video-title {
    font-weight: 600;
    color: #009EDB;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.video-description {
    color: #6c757d;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Miniatures vidéos */
.video-thumbnails {
    height: 100%;
    max-height: 400px;
    overflow-y: auto;
}

.thumbnails-title {
    color: #009EDB;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-thumbnail {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.video-thumbnail:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.video-thumbnail.active {
    border-color: #009EDB;
    background: #f0f8ff;
}

.thumbnail-image {
    position: relative;
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
}

.thumbnail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.thumbnail-info {
    padding: 0.5rem 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.thumbnail-info h6 {
    margin: 0 0 0.25rem 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.thumbnail-info p {
    margin: 0;
    font-size: 0.7rem;
    color: #6c757d;
}

/* Scrollbar personnalisée pour les miniatures */
.video-thumbnails::-webkit-scrollbar {
    width: 4px;
}

.video-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.video-thumbnails::-webkit-scrollbar-thumb {
    background: #009EDB;
    border-radius: 2px;
}



/* Suppression des styles lightbox personnalisé - Remplacé par Fancybox */

/* ===== RÉSEAUX SOCIAUX ===== */
.social-media-container {
    height: 100%;
}

.social-widget {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.social-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

.widget-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
    font-size: 1.1rem;
}

.social-icon.facebook { background: #1877f2; }
.social-icon.tiktok { background: #000000; }
.social-icon.instagram { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.social-icon.twitter { background: #1da1f2; }

.widget-info {
    flex: 1;
}

.widget-info h6 {
    font-weight: 600;
    margin: 0;
    color: #333;
}

.btn-follow {
    background: #009EDB;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-follow:hover {
    background: #007bb5;
    color: white;
    transform: scale(1.05);
}

.widget-content {
    padding: 1.25rem;
}

/* TikTok Preview */
.tiktok-preview {
    text-align: center;
}

.video-thumbnail-social {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.video-thumbnail-social img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.video-caption {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.75rem;
}

.video-stats, .tweet-stats {
    display: flex;
    justify-content: space-around;
    color: #6c757d;
    font-size: 0.875rem;
}

/* Instagram Grid */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 1rem;
}

.insta-post {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.insta-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.insta-post:hover img {
    transform: scale(1.1);
}

/* Tweet Preview */
.tweet-preview p {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .section-padding {
        padding: 60px 0;
    }

    .videos-container {
        margin-bottom: 2rem;
    }

    .main-video-container {
        margin-bottom: 1.5rem;
    }

    .video-thumbnails {
        max-height: none;
        overflow-y: visible;
    }

    .video-thumbnail {
        margin-bottom: 0.75rem;
    }

    .photo-slider {
        height: 250px;
    }

    .project-stats {
        padding: 1rem 0;
    }

    .social-widget {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .gallery-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .gallery-controls {
        justify-content: center;
    }

    .video-info {
        padding: 0.75rem 1rem;
    }

    .video-title {
        font-size: 0.9rem;
    }

    .video-description {
        font-size: 0.8rem;
    }

    .photo-slider {
        min-height: 320px;
    }

    .photo-item {
        height: 140px;
    }

    .photo-slide {
        padding: 0.75rem;
    }

    .photo-slide .mb-3 {
        margin-bottom: 0.75rem !important;
    }

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

    .widget-header {
        padding: 0.875rem 1rem;
    }

    .widget-content {
        padding: 1rem;
    }

    .thumbnail-info h6 {
        font-size: 0.75rem;
    }

    .thumbnail-info p {
        font-size: 0.65rem;
    }

    .photo-info h6 {
        font-size: 0.8rem;
    }

    .photo-info p {
        font-size: 0.7rem;
    }

    .zoom-icon {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .videos-container {
        padding: 1rem;
    }

    .photo-slider {
        min-height: 280px;
    }

    .photo-item {
        height: 120px;
        margin-bottom: 0.5rem;
    }

    .photo-slide .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .photo-info h6 {
        font-size: 0.75rem;
    }

    .photo-info p {
        font-size: 0.65rem;
    }

    .zoom-icon {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }
}

/* Amélioration pour très petits écrans */
@media (max-width: 480px) {
    .photo-slide .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0.5rem;
    }

    .photo-item {
        height: 160px;
    }

    .photo-slider {
        min-height: 200px;
    }
}




/* ===== GALERIE PHOTO - SECTION COMPLÈTE CORRIGÉE ===== */

/* Container principal de la galerie */
.photo-gallery-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Header de la galerie */
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

/* Contrôles de galerie - Design cohérent */
.gallery-controls {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.gallery-control-btn {
    width: 40px !important;
    height: 40px !important;
    background: var(--primary-blue) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 158, 219, 0.3) !important;
}

.gallery-control-btn:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px) scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(0, 158, 219, 0.4) !important;
    color: white !important;
}

.gallery-control-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 158, 219, 0.2) !important;
}

.gallery-control-btn i {
    font-size: 14px !important;
    font-weight: bold !important;
}

/* Compteur de galerie */
.gallery-counter {
    background: rgba(0, 158, 219, 0.1) !important;
    color: var(--primary-blue) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: 2px solid rgba(0, 158, 219, 0.2) !important;
    min-width: 60px;
    text-align: center;
}

/* Slider wrapper */
.photo-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.photo-slider {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 400px;
}

/* Slides de photos */
.photo-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    animation: slideIn 0.6s ease-in-out;
}

.photo-slide.active {
    display: block;
    opacity: 1;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Items photo individuels */
.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: #f8f9fa;
    height: 250px;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Images dans les items */
.photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-image {
    transform: scale(1.05);
}

/* Overlay sur les photos */
.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px 15px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}

/* Info dans l'overlay */
.photo-info h6 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
}

.photo-info p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
}

/* Icône de zoom */
.zoom-icon {
    background: rgba(255,255,255,0.2);
    padding: 8px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-icon i {
    font-size: 14px;
}



/* ===== RESPONSIVE POUR GALERIE ===== */
@media (max-width: 768px) {
    .gallery-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .gallery-controls {
        justify-content: center;
    }

    .gallery-control-btn {
        width: 35px !important;
        height: 35px !important;
    }

    .gallery-control-btn i {
        font-size: 12px !important;
    }

    .photo-item {
        height: 200px;
    }

    .photo-slider {
        min-height: 300px;
    }


}

@media (max-width: 576px) {
    .photo-gallery-container {
        padding: 1rem;
    }

    .photo-item {
        height: 180px;
    }

    .gallery-control-btn {
        width: 32px !important;
        height: 32px !important;
    }

    .gallery-control-btn i {
        font-size: 10px !important;
    }

    .gallery-counter {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }

    .zoom-icon {
        width: 30px;
        height: 30px;
        padding: 6px;
    }

    .zoom-icon i {
        font-size: 12px;
    }

    .photo-info h6 {
        font-size: 12px;
    }

    .photo-info p {
        font-size: 10px;
    }
}

/* ===== ANIMATIONS ET TRANSITIONS ===== */
.photo-item {
    animation: fadeInUp 0.6s ease forwards;
}

.photo-item:nth-child(1) { animation-delay: 0.1s; }
.photo-item:nth-child(2) { animation-delay: 0.2s; }
.photo-item:nth-child(3) { animation-delay: 0.3s; }
.photo-item:nth-child(4) { animation-delay: 0.4s; }
.photo-item:nth-child(5) { animation-delay: 0.5s; }
.photo-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== STYLES POUR LES VRAIES IMAGES ===== */
.photo-image[src*="storage"] {
    /* Styles spécifiques pour les vraies images */
    filter: brightness(1.05) contrast(1.02);
}

.photo-image[src*="unsplash"] {
    /* Styles pour les images de fallback */
    filter: brightness(0.95) saturate(1.1);
}

/* Indicateur de chargement */
.photo-item.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 158, 219, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-blue);
    animation: spin 1s ease-in-out infinite;
    z-index: 10;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}


/* ===== GALERIE PHOTO - STYLES EXISTANTS ADAPTÉS ===== */
.photo-gallery-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.gallery-controls {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.gallery-control-btn {
    width: 40px !important;
    height: 40px !important;
    background: var(--primary-blue) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 158, 219, 0.3) !important;
}

.gallery-control-btn:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px) scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(0, 158, 219, 0.4) !important;
    color: white !important;
}

.gallery-counter {
    background: rgba(0, 158, 219, 0.1) !important;
    color: var(--primary-blue) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: 2px solid rgba(0, 158, 219, 0.2) !important;
    min-width: 60px;
    text-align: center;
}

.photo-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.photo-slider {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 400px;
}

.photo-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    animation: slideIn 0.6s ease-in-out;
}

.photo-slide.active {
    display: block;
    opacity: 1;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: #f8f9fa;
    height: 250px;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-image {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px 15px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}

.photo-info h6 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
}

.photo-info p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
}

.zoom-icon {
    background: rgba(255,255,255,0.2);
    padding: 8px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-icon i {
    font-size: 14px;
}

/* ===== GLIGHTBOX PERSONNALISATION ===== */



/* Responsive */
@media (max-width: 768px) {
    .gallery-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .gallery-controls {
        justify-content: center;
    }

    .photo-item {
        height: 200px;
    }

    .glightbox-clean .gslide-description {
        padding: 15px !important;
        font-size: 13px !important;
        max-width: 95% !important;
    }
}

@media (max-width: 576px) {
    .photo-item {
        height: 180px;
    }

    .zoom-icon {
        width: 30px;
        height: 30px;
        padding: 6px;
    }

    .zoom-icon i {
        font-size: 12px;
    }
}

/* Animations */
.photo-item {
    animation: fadeInUp 0.6s ease forwards;
}

.photo-item:nth-child(1) { animation-delay: 0.1s; }
.photo-item:nth-child(2) { animation-delay: 0.2s; }
.photo-item:nth-child(3) { animation-delay: 0.3s; }
.photo-item:nth-child(4) { animation-delay: 0.4s; }
.photo-item:nth-child(5) { animation-delay: 0.5s; }
.photo-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MODAL GALLERY - STYLES AVEC PRÉFIXES ===== */

/* Modal Container */
.mg-image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 99999 !important;
    overflow: hidden;
}

/* Debug - pour vérifier que le modal s'affiche */
.mg-image-modal.mg-show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    animation: mgModalFadeIn 0.3s ease;
}

/* Ajout d'un indicateur visuel temporaire */
.mg-image-modal.mg-show::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: -1;
}

@keyframes mgModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Contenu du modal */
.mg-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Image dans le modal */
.mg-modal-image {
    max-width: 90vw;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    animation: mgModalZoomIn 0.3s ease;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.1);
    display: block;
    margin: 0 auto;
}

@keyframes mgModalZoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Description du modal */
.mg-modal-description {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 20px 25px;
    margin-top: 20px;
    color: white !important;
    text-align: center;
    max-width: 600px;
    animation: mgModalSlideUp 0.4s ease 0.1s both;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

@keyframes mgModalSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mg-modal-title {
    color: #009edb;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.mg-modal-location {
    color: #ffc107;
    font-weight: 500;
    margin-top: 8px;
}

/* Bouton fermer */
.mg-modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #333 !important;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 100000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mg-modal-close:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Boutons navigation */
.mg-modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 158, 219, 0.9) !important;
    border: 2px solid rgba(0, 158, 219, 1);
    border-radius: 50%;
    color: white !important;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 100000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mg-modal-prev {
    left: 30px;
}

.mg-modal-next {
    right: 30px;
}

.mg-modal-nav:hover {
    background: rgba(0, 158, 219, 1) !important;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.mg-modal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Compteur d'images */
.mg-modal-counter {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9) !important;
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 100000 !important;
}

/* Amélioration pour les images de la galerie existante */
.mg-gallery-image {
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.mg-gallery-image:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.photo-overlay {
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .mg-modal-content {
        max-width: 95vw;
        max-height: 90vh;
    }

    .mg-modal-image {
        max-height: 75vh;
    }

    .mg-modal-nav {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .mg-modal-prev {
        left: 15px;
    }

    .mg-modal-next {
        right: 15px;
    }

    .mg-modal-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: 15px;
        right: 15px;
    }

    .mg-modal-description {
        max-width: 90vw;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .mg-modal-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .mg-modal-prev {
        left: 10px;
    }

    .mg-modal-next {
        right: 10px;
    }

    .mg-modal-close {
        width: 36px;
        height: 36px;
        font-size: 18px;
        top: 10px;
        right: 10px;
    }

    .mg-modal-counter {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Animation d'entrée pour les boutons */
.mg-modal-nav, .mg-modal-close, .mg-modal-counter {
    animation: mgModalButtonFadeIn 0.5s ease 0.2s both;
}

@keyframes mgModalButtonFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mg-modal-prev {
    animation: mgModalButtonFadeIn 0.5s ease 0.2s both;
}

.mg-modal-next {
    animation: mgModalButtonFadeIn 0.5s ease 0.3s both;
}

.mg-modal-close {
    animation: mgModalButtonFadeIn 0.5s ease 0.4s both;
}


/*
HEADER LOGO*/



/* ===== STYLES HEADER ONG - TOUS LOGOS VISIBLES ===== */

/* Container principal des partenaires */
.ong-partners-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    width: 100%;
}

.partners-label {
    flex-shrink: 0;
}

.partners-logos-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* ===== DESKTOP ET TABLETTE (≥ 768px) ===== */
.partners-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.partner-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 3px 6px;
   /* background: rgba(0, 158, 219, 0.05);*/
    border: 1px solid rgba(0, 158, 219, 0.1);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.partner-badge:hover {
    background: rgba(0, 158, 219, 0.1);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 158, 219, 0.2);
}

.partner-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.partner-badge:hover .partner-logo {
    transform: scale(1.05);
}

.partner-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--darker-gray);
    transition: color 0.3s ease;
}

.partner-badge:hover .partner-name {
    color: var(--primary-blue);
}

/* ===== MOBILE (< 768px) ===== */
.partners-mobile-grid {
    width: 100%;
    margin-top: 1rem;
}

.partner-badge-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    background: white;
    border: 1px solid rgba(0, 158, 219, 0.15);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 70px;
    text-align: center;
}

.partner-badge-mobile:hover {
    border-color: var(--primary-blue);
    background: rgba(0, 158, 219, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 158, 219, 0.15);
}

.mobile-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.partner-badge-mobile:hover .mobile-logo {
    transform: scale(1.1);
}

.mobile-name {
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--darker-gray);
    line-height: 1.1;
    transition: color 0.3s ease;
    text-align: center;
    word-break: break-word;
}

.partner-badge-mobile:hover .mobile-name {
    color: var(--primary-blue);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Extra Large (≥ 1200px) - Tous logos + noms */
@media (min-width: 1200px) {
    .partner-logo {
        height: 45px;
    }

    .partner-name {
        font-size: 1rem;
    }

    .partners-row {
        gap: 0.75rem;
    }
}

/* Large (992px - 1199px) - Tous logos, noms cachés sauf hover */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .partner-logo {
        height: 42px;
    }

    .partners-row {
        gap: 0.5rem;
    }

    .partner-badge {
        padding: 6px 8px;
    }
}

/* Medium (768px - 991px) - 5 logos, pas de noms */
@media (min-width: 768px) and (max-width: 991.98px) {
    .partner-logo {
        height: 38px;
    }

    .partners-row {
        gap: 0.4rem;
    }

    .partner-badge {
        padding: 4px 6px;
    }

    .partner-name {
        display: none !important;
    }

    .ong-partners-container {
        justify-content: center;
    }

    .partners-logos-container {
        justify-content: center;
    }
}

/* Small et Mobile (< 768px) - Grille 3x2 */
@media (max-width: 767.98px) {
    .main-header .py-3 {
        padding-top: 1rem !important;
        padding-bottom: 0.5rem !important;
    }

    .main-logo img {
        height: 60px !important;
        max-height: 70px !important;
    }

    .ong-partners-container {
        justify-content: center;
        margin-top: 1rem;
    }

    .partners-mobile-grid .row {
        margin: 0;
    }

    .partners-mobile-grid .col-4 {
        padding: 2px;
    }

    .mobile-logo {
        height: 25px;
    }

    .mobile-name {
        font-size: 0.55rem;
    }

    .partner-badge-mobile {
        min-height: 60px;
        padding: 6px 2px;
    }
}

/* Très petits écrans (< 400px) */
@media (max-width: 399.98px) {
    .main-logo img {
        height: 50px !important;
        max-height: 60px !important;
    }

    .mobile-logo {
        height: 40px;
    }

    .mobile-name {
        font-size: 0.8rem;
    }

    .partner-badge-mobile {
        min-height: 55px;
        padding: 4px 1px;
    }
}

/* ===== ANIMATIONS ===== */
.partner-badge,
.partner-badge-mobile {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.partner-badge:nth-child(1),
.partner-badge-mobile:nth-child(1) { animation-delay: 0.1s; }
.partner-badge:nth-child(2),
.partner-badge-mobile:nth-child(2) { animation-delay: 0.15s; }
.partner-badge:nth-child(3),
.partner-badge-mobile:nth-child(3) { animation-delay: 0.2s; }
.partner-badge:nth-child(4),
.partner-badge-mobile:nth-child(4) { animation-delay: 0.25s; }
.partner-badge:nth-child(5),
.partner-badge-mobile:nth-child(5) { animation-delay: 0.3s; }
.partner-badge:nth-child(6),
.partner-badge-mobile:nth-child(6) { animation-delay: 0.35s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== EFFET DE LUEUR AU HOVER ===== */
.partner-badge::before,
.partner-badge-mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.partner-badge {
    position: relative;
    overflow: hidden;
}

.partner-badge-mobile {
    position: relative;
    overflow: hidden;
}

.partner-badge:hover::before,
.partner-badge-mobile:hover::before {
    left: 100%;
}

/* ===== AMÉLIORATION ACCESSIBILITÉ ===== */
.partner-badge:focus,
.partner-badge-mobile:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* ===== LOADING STATE ===== */
.partner-logo,
.mobile-logo {
    transition: opacity 0.3s ease;
}

.partner-logo[src=""],
.mobile-logo[src=""] {
    opacity: 0.5;
    background: #f8f9fa;
}

/* ===== BORDER BOTTOM HEADER ===== */
.main-header {
    border-bottom: 1px solid rgba(0, 158, 219, 0.1);
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

     /* Styles de base pour les badges partenaires */
/* .partner-badge {
  !*   padding: 4px 8px;*!
     border-radius: 8px;
     transition: all 0.3s ease;
     text-decoration: none;
     display: inline-block;
     margin: 2px;
     background: rgba(0, 158, 219, 0.05);
     border: 1px solid rgba(0, 158, 219, 0.1);
 }*/

.partner-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 158, 219, 0.2);
    background: rgba(0, 158, 219, 0.1);
}

.partner-badge img {
    border-radius: 4px;
    transition: all 0.3s ease;
}

.partner-badge:hover img {
    transform: scale(1.05);
}

/* ===== STYLES MOBILE SPÉCIAUX ===== */

/* Grand logo principal mobile */
.partner-badge-main {
    background: linear-gradient(135deg, rgba(0, 158, 219, 0.1), rgba(79, 195, 247, 0.15));
    border: 2px solid rgba(0, 158, 219, 0.2);
    border-radius: 12px;
    padding: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
}

.partner-badge-main:hover {
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 158, 219, 0.25);
}

.mobile-main-logo {
    height: 60px !important;
    width: auto;
    margin-bottom: 8px;
}

.mobile-partner-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-top: 5px;
    line-height: 1.2;
}

/* Petits logos mobile en grille */
.partner-badge-mobile {
    background: white;
    border: 1px solid rgba(0, 158, 219, 0.15);
    border-radius: 8px;
    padding: 8px;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.partner-badge-mobile:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 158, 219, 0.15);
}

.mobile-partner-logo {
    height: 35px !important;
    width: auto;
    margin-bottom: 4px;
}

.mobile-partner-text {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--darker-gray);
    line-height: 1.1;
    margin-top: 2px;
}

.partner-badge-mobile:hover .mobile-partner-text {
    color: var(--primary-blue);
}

/* Bouton voir plus mobile */
.mobile-voir-plus {
    padding: 4px 12px;
    font-size: 0.7rem;
    border-radius: 15px;
    font-weight: 500;
}

.mobile-voir-plus:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 158, 219, 0.2);
}

/* Grid des partenaires mobile */
.mobile-partners-grid {
    width: 100%;
}

.mobile-partners-grid .row {
    margin: 0;
}

/* Modal Partenaires */
.partner-modal-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partner-modal-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 158, 219, 0.15);
}

.partner-modal-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.partner-modal-card h6 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.partner-modal-item:hover .partner-modal-card h6 {
    color: var(--primary-blue);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Large (Desktop) */
@media (min-width: 992px) {
    .partner-badge img {
        height: 50px !important;
    }
}

/* Medium (Tablette Large) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .partner-badge img {
        height: 45px !important;
    }

    .main-header .gap-2 {
        gap: 0.4rem !important;
    }

    .partner-badge {
        padding: 1px 2px;
        margin: 1px;
    }
}

/* Mobile uniquement - styles spéciaux */
@media (max-width: 767.98px) {
    .main-header .py-3 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .main-logo img {
        height: 70px !important;
        max-height: 80px !important;
    }

    /* Animation d'apparition pour mobile */
    .mobile-main-partner {
        animation: slideInFromLeft 0.6s ease;
    }

    .mobile-partners-grid {
        animation: slideInFromRight 0.6s ease;
    }

    .partner-badge-mobile:nth-child(1) { animation-delay: 0.1s; }
    .partner-badge-mobile:nth-child(2) { animation-delay: 0.2s; }
    .partner-badge-mobile:nth-child(3) { animation-delay: 0.3s; }
    .partner-badge-mobile:nth-child(4) { animation-delay: 0.4s; }
}

/* Très petits écrans */
@media (max-width: 400px) {
    .main-logo img {
        height: 60px !important;
        max-height: 70px !important;
    }

    .mobile-main-logo {
        height: 50px !important;
    }

    .mobile-partner-logo {
        height: 30px !important;
    }

    .partner-badge-mobile {
        min-height: 60px;
        padding: 6px;
    }

    .mobile-partner-text {
        font-size: 0.6rem;
    }

    .mobile-partner-name {
        font-size: 0.7rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.partner-badge-mobile {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.partner-badge-mobile:nth-child(1) { animation-delay: 0.1s; }
.partner-badge-mobile:nth-child(2) { animation-delay: 0.2s; }
.partner-badge-mobile:nth-child(3) { animation-delay: 0.3s; }
.partner-badge-mobile:nth-child(4) { animation-delay: 0.4s; }

/* ===== AMÉLIORATIONS UX ===== */
.main-header {
    border-bottom: 1px solid rgba(0, 158, 219, 0.1);
}

/* Effet de lueur au survol */
.partner-badge-main:hover {
    box-shadow: 0 0 20px rgba(0, 158, 219, 0.3);
}

/* Indicateur de scroll sur mobile pour le modal */
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
    width: 4px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 2px;
}

/* Loading state pour les images */
.mobile-main-logo,
.mobile-partner-logo,
.partner-modal-logo {
    transition: opacity 0.3s ease;
}

.mobile-main-logo[src=""],
.mobile-partner-logo[src=""],
.partner-modal-logo[src=""] {
    opacity: 0.5;
    background: #f8f9fa;
}

     /* Styles de base pour les badges partenaires */
 .partner-badge {
  /*   padding: 4px 8px;*/
     border-radius: 8px;
     transition: all 0.3s ease;
     text-decoration: none;
     display: inline-block;
     margin: 0.5px;
    /* background: rgba(0, 158, 219, 0.05);*/
     border: 1px solid rgba(0, 158, 219, 0.1);
 }

.partner-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 158, 219, 0.2);
    background: rgba(0, 158, 219, 0.1);
}

.partner-badge img {
    border-radius: 4px;
    transition: all 0.3s ease;
}

.partner-badge:hover img {
    transform: scale(1.05);
}

/* Modal Partenaires */
.partner-modal-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.partner-modal-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 158, 219, 0.15);
}

.partner-modal-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.partner-modal-card h6 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.partner-modal-item:hover .partner-modal-card h6 {
    color: var(--primary-blue);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Extra Large (Desktop) - Affiche tout */
@media (min-width: 1200px) {
    .partner-badge img {
        height: 45px !important;
    }
}

/* Large (Desktop) - Cache Prelude et Fecopa */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .partner-badge img {
        height: 50px !important;
    }

    .main-header .gap-2 {
        gap: 0.5rem !important;
    }
}

/* Medium (Tablette Large) - Cache ACDA en plus */
@media (min-width: 768px) and (max-width: 991.98px) {
    .partner-badge img {
        height: 45px !important;
    }

    .main-header .gap-2 {
        gap: 0.4rem !important;
    }

    .partner-badge {
        padding: 3px 6px;
        margin: 1px;
    }
}

/* Small (Tablette) - Ne garde que Stay in Africa, ECOSOC, Believe in the World */
@media (min-width: 576px) and (max-width: 767.98px) {
    .partner-badge img {
        height: 42px !important;
    }

    .main-header .gap-2 {
        gap: 0.3rem !important;
    }

    .partner-badge {
        padding: 2px 4px;
        margin: 1px;
    }

    .text-muted {
        font-size: 0.75rem !important;
    }
}

/* Extra Small (Mobile) - Ne garde que Stay in Africa et ECOSOC + bouton + */
@media (max-width: 575.98px) {
    .main-header .py-3 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .main-logo img {
        height: 60px !important;
        max-height: 70px !important;
    }

    .partner-badge img {
        height: 35px !important;
    }

    .partner-badge {
      /*  padding: 2px 4px;*/
        margin: 1px;
    }

    .main-header .gap-2 {
        gap: 0.25rem !important;
    }

    .btn-outline-primary {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        border-radius: 6px;
    }

    .btn-outline-primary i {
        font-size: 0.7rem;
    }
}

/* Très petits écrans */
@media (max-width: 400px) {
    .main-logo img {
        height: 50px !important;
        max-height: 60px !important;
    }

    .partner-badge img {
        height: 30px !important;
    }

    .main-header .col-8,
    .main-header .col-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.partner-badge {
    animation: slideInFromTop 0.6s ease forwards;
}

.partner-badge:nth-child(1) { animation-delay: 0.1s; }
.partner-badge:nth-child(2) { animation-delay: 0.2s; }
.partner-badge:nth-child(3) { animation-delay: 0.3s; }
.partner-badge:nth-child(4) { animation-delay: 0.4s; }
.partner-badge:nth-child(5) { animation-delay: 0.5s; }

/* ===== AMÉLIORATIONS UX ===== */
.main-header {
    border-bottom: 1px solid rgba(0, 158, 219, 0.1);
}

.partner-badge {
    position: relative;
    overflow: hidden;
}

.partner-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.partner-badge:hover::before {
    left: 100%;
}

/* Tooltip pour mobile */
@media (max-width: 575.98px) {
    .btn-outline-primary[title]:hover::after {
        content: attr(title);
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0,0,0,0.8);
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 0.7rem;
        white-space: nowrap;
        z-index: 1000;
    }
}


.logo-horizontal {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.gdd-front {
    font-size: 1.8rem;
    font-weight: 700;
    color: #007bff;
    letter-spacing: 3px;
    white-space: nowrap;
}

.text-front {
    font-size: 1rem;
    font-weight: 600 !important;
    color: #2c3e50;
    letter-spacing: 1px;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .logo-horizontal {
        flex-direction: column;
        align-items: center;
        gap: 5px;
        text-align: center;
    }
    .gdd-front {
        font-size: 1.5rem;
    }
    .text-front {
        font-size: 0.85rem;
    }
}

.partner-logo-container {
    margin-bottom: 15px;
}
.partner-badge:hover .partner-name {
    color: #007bff;
}

.partner-badge-mobile {
    /*background: rgba(0, 158, 219, 0.05);*/
    border: 1px solid rgba(0, 158, 219, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.partner-badge-mobile:hover {
    background: rgba(0, 158, 219, 0.1);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    text-decoration: none;
}

.mobile-logo {
    transition: transform 0.3s ease;
}

.partner-badge-mobile:hover .mobile-logo {
    transform: scale(1.1);
}

.mobile-name {
    color: var(--darker-gray);
    transition: color 0.3s ease;
}

.partner-badge-mobile:hover .mobile-name {
    color: var(--primary-blue);
}

/* CARTES ÉVÉNEMENTS - DESIGN LIGHT */
.gdd-event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.gdd-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* IMAGE DE L'ÉVÉNEMENT */
.gdd-event-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.gdd-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gdd-event-card:hover .gdd-event-image img {
    transform: scale(1.05);
}

.gdd-event-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.gdd-event-type {
    background: rgba(0, 158, 219, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.gdd-event-featured {
    background: rgba(255, 165, 0, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* CONTENU DE L'ÉVÉNEMENT */
.gdd-event-content {
    padding: 20px;
    flex: 1;
    display: flex;
    position: relative;
}

/* BADGE DE DATE */
.gdd-event-date-badge {
    width: 60px;
    height: 60px;
    background: var(--secondary-orange);
    color: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 158, 219, 0.3);
}

.gdd-date-day {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.gdd-date-month {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.9;
}

/* CONTENU PRINCIPAL */
.gdd-event-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gdd-event-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

/* MÉTADONNÉES */
.gdd-event-meta {
    margin-bottom: 12px;
}

.gdd-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-light);
}

.gdd-meta-item i {
    width: 14px;
    color: #7b7a7a;
    font-size: 12px;
}

/* DESCRIPTION */
.gdd-event-description {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 12px;
}

/* DÉTAILS SUPPLÉMENTAIRES */
.gdd-event-details {
    margin-bottom: 16px;
}

.gdd-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 12px;
    color: var(--text-light);
}

.gdd-detail-item i {
    width: 12px;
    color: var(--primary-blue);
}

/* ACTIONS */
.gdd-event-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.gdd-event-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.gdd-event-btn.primary {
    background: var(--primary-blue);
    color: white;
}

.gdd-event-btn.primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
}

.gdd-event-btn.secondary {
    background: none;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
}

.gdd-event-btn.secondary:hover {
    background: var(--primary-blue);
    color: white;
}

.gdd-event-badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gdd-event-badge.warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.gdd-event-badge.danger {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
}

.gdd-event-countdown {
    background: rgba(0, 158, 219, 0.1);
    color: var(--primary-blue);
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

/* BOUTON VOIR TOUS */
.gdd-btn-voir-evenements {
    background: none;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.gdd-btn-voir-evenements:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 158, 219, 0.3);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .gdd-event-content {
        padding: 16px;
    }

    .gdd-event-date-badge {
        width: 50px;
        height: 50px;
        margin-right: 12px;
    }

    .gdd-date-day {
        font-size: 16px;
    }

    .gdd-event-title {
        font-size: 15px;
    }

    .gdd-event-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

.bg-section-blue-light{
    background: linear-gradient(135deg, #fdfdfd 0%, #b2d0ef 100%);
}
.bg-section-blue-light2{
    background: linear-gradient(135deg,#f8f9fa 0%,  #fdfdfd  100%);
}
/* Boutons de partage */
.social-share-buttons .btn {
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.btn-facebook {
    background: #1877f2;
    color: white;
}

.btn-facebook:hover {
    background: #166fe5;
    color: white;
    transform: translateY(-1px);
}

.btn-twitter {
    background: #1da1f2;
    color: white;
}

.btn-twitter:hover {
    background: #0d95e8;
    color: white;
    transform: translateY(-1px);
}

.btn-linkedin {
    background: #0077b5;
    color: white;
}

.btn-linkedin:hover {
    background: #005885;
    color: white;
    transform: translateY(-1px);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #20ba5a;
    color: white;
    transform: translateY(-1px);
}

.btn-email {
    background: #6c757d;
    color: white;
}

.btn-email:hover {
    background: #5a6268;
    color: white;
    transform: translateY(-1px);
}

.btn-copy {
    background: #17a2b8;
    color: white;
}

.btn-copy:hover {
    background: #138496;
    color: white;
    transform: translateY(-1px);
}

.btn-copy.copied {
    background: #28a745;
}

/* Responsive */
@media (max-width: 576px) {
    .social-share-buttons {
        justify-content: center;
    }

    .social-share-buttons .btn {
        flex: 1;
        min-width: 100px;
        margin-bottom: 0.5rem;
    }
}

.project-sharing{
    background: #f0eeee4f;
    padding: 5px;
}





/* ===== DIAGNOSTIC ET CORRECTIONS CSS POUR POSITION FIXED ===== */

/* PROBLÈME 1: Transform sur le body ou html qui casse position fixed */
html, body {
    transform: none !important;
    will-change: auto !important;
    perspective: none !important;
    transform-style: flat !important;
}

/* PROBLÈME 2: Overflow hidden sur des containers parents */
html {
    overflow-x: auto !important;
}

body {
    overflow-x: auto !important;
    position: static !important; /* Forcer position static sur body */
}

/* PROBLÈME 3: Bootstrap ou autres frameworks qui écrasent position fixed */
.container,
.container-fluid,
.row,
.col,
.col-*,
main,
section,
.main-content {
    transform: none !important;
    will-change: auto !important;
    position: static !important;
    contain: none !important;
}

/* PROBLÈME 4: AOS (Animate On Scroll) peut casser position fixed */
[data-aos] {
    transform: none !important;
    will-change: auto !important;
}

.aos-animate {
    transform: none !important;
}

/* PROBLÈME 5: Corrections spécifiques pour votre thème */
.main-header,
.navbar,
.navbar-custom,
footer,
.main-footer {
    transform: none !important;
    will-change: auto !important;
    contain: none !important;
}

/* ===== CORRECTION POUR TOUS LES ÉLÉMENTS FIXED ===== */

/* Classe utilitaire pour forcer position fixed */
.force-fixed {
    position: fixed !important;
    z-index: 999999 !important;
    transform: translateZ(0) !important;
    will-change: transform !important;
    backface-visibility: hidden !important;
}



/* ===== CORRECTION SPÉCIFIQUE MODALS ===== */
.modal,
.modal-dialog,
.modal-content,
.mg-image-modal {
    position: fixed !important;
    transform: translate3d(0, 0, 0) !important;
    will-change: transform !important;
    backface-visibility: hidden !important;
    contain: none !important;
    z-index: 999999 !important;
}

/* Correction pour votre modal gallery personnalisé */
.mg-image-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.95) !important;
    z-index: 999999 !important;
    display: none;
}

.mg-image-modal.mg-show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}


/* ===== CORRECTIONS POUR LES ANIMATIONS QUI CASSENT POSITION FIXED ===== */

/* Désactiver les animations sur les parents qui peuvent casser fixed */
.fade-in,
.slide-in-left,
.slide-in-right,
.scale-in {
    transform: none !important;
    will-change: auto !important;
}

.fade-in.visible,
.slide-in-left.visible,
.slide-in-right.visible,
.scale-in.visible {
    transform: none !important;
}

/* ===== CORRECTIONS BOOTSTRAP SPÉCIFIQUES ===== */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    transform: none !important;
    contain: none !important;
}

/* ===== TEST DE VISIBILITÉ POUR DEBUG ===== */
.debug-fixed {
    position: fixed !important;
    top: 50px !important;
    right: 50px !important;
    width: 100px !important;
    height: 100px !important;
    background: red !important;
    z-index: 999999 !important;
    display: block !important;
    content: "TEST" !important;
}

/* ===== RÉPARATION DU VIEWPORT MOBILE ===== */

/* ===== DESIGN PREMIUM WHATSAPP BUTTON ===== */

.whatsapp-float {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    width: 65px !important;
    height: 65px !important;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    color: white !important;
    border-radius: 50% !important;
    font-size: 28px !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate3d(0, 0, 0) !important;
    will-change: transform !important;
    backface-visibility: hidden !important;

    /* Design amélioré */
    box-shadow:
        0 8px 25px rgba(37, 211, 102, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;

    border: 3px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;

    /* Animation de base */
    animation: whatsapp-float 3s ease-in-out infinite !important;
}

/* Animation flottante subtile */
@keyframes whatsapp-float {
    0%, 100% {
        transform: translate3d(0, 0, 0) !important;
    }
    50% {
        transform: translate3d(0, -8px, 0) !important;
    }
}

/* Effet de pulsation avec onde */
.whatsapp-float::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: whatsapp-pulse-wave 2.5s ease-in-out infinite;
    z-index: -1;
}

@keyframes whatsapp-pulse-wave {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

/* Effet de particules (optionnel) */
.whatsapp-float::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: whatsapp-sparkle 2s ease-in-out infinite;
}

@keyframes whatsapp-sparkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Hover avec effet premium */
.whatsapp-float:hover {
    background: linear-gradient(135deg, #128C7E 0%, #0F6B5C 100%) !important;
    color: white !important;
    text-decoration: none !important;
    transform: translate3d(0, -5px, 0) scale(1.1) !important;

    box-shadow:
        0 15px 35px rgba(37, 211, 102, 0.6),
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;

    border-color: rgba(255, 255, 255, 0.4) !important;
    animation: none !important; /* Stop l'animation flottante au hover */
}

/* Icône WhatsApp avec effet */
.whatsapp-float i {
    color: white !important;
    pointer-events: none !important;
    font-size: 30px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    position: relative;
    z-index: 2;
}

.whatsapp-float:hover i {
    transform: scale(1.1) rotate(5deg) !important;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4) !important;
}

/* Tooltip premium avec animation */
.whatsapp-tooltip {
    position: absolute !important;
    right: 75px !important;
    bottom: 50% !important;
    transform: translateY(50%) translateX(10px) !important;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    color: white !important;
    padding: 12px 18px !important;
    border-radius: 25px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    z-index: 1000000 !important;

    /* Design premium */
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
}

/* Flèche du tooltip */
.whatsapp-tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -8px;
    border: 8px solid transparent;
    border-left-color: #2c3e50;
    filter: drop-shadow(2px 0 4px rgba(0, 0, 0, 0.2));
}

/* Animation du tooltip au hover */
@media (min-width: 769px) {
    .whatsapp-float:hover .whatsapp-tooltip {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(50%) translateX(0) !important;
    }
}

/* Badge de notification (optionnel) */
.whatsapp-float .notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: notification-pulse 2s ease-in-out infinite;
}

@keyframes notification-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Responsive design premium */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 85px !important;
        right: 20px !important;
        width: 58px !important;
        height: 58px !important;
        font-size: 26px !important;
    }

    .whatsapp-float i {
        font-size: 28px !important;
    }

    .whatsapp-tooltip {
        display: none !important;
    }

    /* Animation plus subtile sur mobile */
    @keyframes whatsapp-float {
        0%, 100% {
            transform: translate3d(0, 0, 0) !important;
        }
        50% {
            transform: translate3d(0, -4px, 0) !important;
        }
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 90px !important;
        right: 15px !important;
        width: 52px !important;
        height: 52px !important;
        font-size: 24px !important;
    }

    .whatsapp-float i {
        font-size: 26px !important;
    }
}

/* Effet de clic avec ondulation */
.whatsapp-float:active {
    transform: translate3d(0, 0, 0) scale(0.95) !important;
    transition: transform 0.1s ease !important;
}

/* Mode sombre (optionnel) */
@media (prefers-color-scheme: dark) {
    .whatsapp-tooltip {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
    }
}

/* Animation d'entrée au chargement */
.whatsapp-float {
    animation: whatsapp-entrance 1s ease-out 0.5s both, whatsapp-float 3s ease-in-out 1.5s infinite !important;
}

@keyframes whatsapp-entrance {
    0% {
        opacity: 0;
        transform: translate3d(100px, 0, 0) scale(0.5) rotate(180deg) !important;
    }
    50% {
        opacity: 0.8;
        transform: translate3d(-10px, 0, 0) scale(1.1) rotate(-10deg) !important;
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg) !important;
    }
}

/* Effet de survol global amélioré */
.whatsapp-float:hover::before {
    animation: whatsapp-pulse-wave-hover 1s ease-in-out infinite;
}

@keyframes whatsapp-pulse-wave-hover {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.2;
    }
}

/* Accessibilité améliorée */
.whatsapp-float:focus {
    outline: 3px solid rgba(37, 211, 102, 0.6) !important;
    outline-offset: 4px !important;
}

/* Performance optimisée */
.whatsapp-float,
.whatsapp-float::before,
.whatsapp-float::after {
    will-change: transform, opacity !important;
    backface-visibility: hidden !important;
    perspective: 1000px !important;
}
