/* Animations magnifiques pour la page À propos */

/* Animation du header de page */
.page-header {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0) scale(1);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.page-header:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 35px rgba(40, 167, 69, 0.3);
}

/* Animation du titre principal */
.page-header h1 {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(0);
    position: relative;
    z-index: 2;
}

.page-header:hover h1 {
    transform: translateX(-10px) scale(1.05);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Animation de l'icône info-circle */
.page-header h1 .fas.fa-info-circle {
    transition: all 0.4s ease;
    display: inline-block;
}

.page-header:hover h1 .fas.fa-info-circle {
    transform: rotate(-10deg) scale(1.2) translateY(-3px);
    color: #ffc107;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: rotate(-10deg) scale(1.2) translateY(-3px); }
    50% { transform: rotate(-10deg) scale(1.3) translateY(-3px); }
}

/* Animation du paragraphe lead */
.page-header .lead {
    transition: all 0.4s ease;
    transform: translateX(0);
    position: relative;
    z-index: 2;
}

.page-header:hover .lead {
    transform: translateX(-5px);
    color: #f8f9fa;
}

/* Animation des badges */
.page-header .badge {
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.page-header:hover .badge {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Animation de l'icône feuille */
.page-header .fas.fa-leaf {
    transition: all 0.5s ease;
}

.page-header:hover .fas.fa-leaf {
    transform: rotate(5deg) scale(1.1);
    animation: sway 3s ease-in-out infinite;
}

@keyframes sway {
    0%, 100% { transform: rotate(5deg) scale(1.1); }
    25% { transform: rotate(10deg) scale(1.1); }
    75% { transform: rotate(0deg) scale(1.1); }
}

/* Animation de la section mission */
.mission-section {
    transition: all 0.4s ease;
}

.mission-section:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Animation du titre mission */
.mission-section h2 {
    transition: all 0.3s ease;
}

.mission-section:hover h2 {
    transform: translateX(5px);
}

.mission-section:hover h2 .fas.fa-bullseye {
    transform: rotate(15deg) scale(1.2);
    color: #28a745;
    animation: target 2s ease-in-out infinite;
}

@keyframes target {
    0%, 100% { transform: rotate(15deg) scale(1.2); }
    50% { transform: rotate(15deg) scale(1.3); }
}

/* Animation des éléments de mission */
.mission-section .d-flex {
    transition: all 0.3s ease;
    transform: translateX(0);
}

.mission-section:hover .d-flex {
    transform: translateX(3px);
}

.mission-section:hover .fas.fa-check-circle {
    transform: scale(1.2) rotate(5deg);
    color: #28a745;
    animation: check 1.5s ease-in-out infinite;
}

@keyframes check {
    0%, 100% { transform: scale(1.2) rotate(5deg); }
    50% { transform: scale(1.3) rotate(10deg); }
}

/* Animation de la carte objectifs */
.mission-section .card {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0) scale(1);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.mission-section .card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.mission-section .card:hover .card-title {
    transform: translateX(5px);
}

.mission-section .card:hover .card-title .fas.fa-chart-line {
    transform: rotate(-10deg) scale(1.2);
    color: #28a745;
    animation: grow 2s ease-in-out infinite;
}

@keyframes grow {
    0%, 100% { transform: rotate(-10deg) scale(1.2); }
    50% { transform: rotate(-10deg) scale(1.3); }
}

/* Animation des progress bars */
.mission-section .progress {
    transition: all 0.3s ease;
    height: 8px;
    border-radius: 4px;
}

.mission-section .progress-bar {
    transition: all 0.5s ease;
}

.mission-section .card:hover .progress-bar {
    transform: scaleY(1.2);
    border-radius: 4px;
}

.mission-section .card:hover .progress-bar.bg-success {
    background: linear-gradient(90deg, #28a745, #20c997) !important;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.mission-section .card:hover .progress-bar.bg-info {
    background: linear-gradient(90deg, #17a2b8, #138496) !important;
    box-shadow: 0 0 10px rgba(23, 162, 184, 0.5);
}

.mission-section .card:hover .progress-bar.bg-warning {
    background: linear-gradient(90deg, #ffc107, #e0a800) !important;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.mission-section .card:hover .progress-bar.bg-danger {
    background: linear-gradient(90deg, #dc3545, #c82333) !important;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

/* Animation de la section valeurs */
.values-section {
    transition: all 0.4s ease;
}

.values-section:hover h2 {
    transform: translateX(5px);
}

.values-section:hover h2 .fas.fa-star {
    transform: rotate(15deg) scale(1.3);
    color: #ffc107;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: rotate(15deg) scale(1.3); }
    25% { transform: rotate(20deg) scale(1.4); }
    75% { transform: rotate(10deg) scale(1.4); }
}

/* Animation des cartes de valeurs */
.values-section .card {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0) scale(1);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.values-section .card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.values-section .card:hover .card-title {
    transform: translateY(-3px);
    color: #28a745;
}

.values-section .card:hover .card-text {
    transform: translateY(-2px);
}

/* Animation des icônes de valeurs */
.values-section .card .fas {
    transition: all 0.4s ease;
}

.values-section .card:hover .fas.fa-check-circle {
    transform: scale(1.3) rotate(5deg);
    color: #28a745;
    animation: validate 1.5s ease-in-out infinite;
}

.values-section .card:hover .fas.fa-graduation-cap {
    transform: scale(1.3) rotate(-5deg);
    color: #007bff;
    animation: learn 2s ease-in-out infinite;
}

@keyframes learn {
    0%, 100% { transform: scale(1.3) rotate(-5deg); }
    50% { transform: scale(1.4) rotate(-10deg); }
}

.values-section .card:hover .fas.fa-balance-scale {
    transform: scale(1.3) rotate(10deg);
    color: #6f42c1;
    animation: balance 2s ease-in-out infinite;
}

@keyframes balance {
    0%, 100% { transform: scale(1.3) rotate(10deg); }
    50% { transform: scale(1.3) rotate(-10deg); }
}

.values-section .card:hover .fas.fa-heart {
    transform: scale(1.3);
    color: #dc3545;
    animation: heartbeat 1s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1.3); }
    25% { transform: scale(1.4); }
    50% { transform: scale(1.3); }
    75% { transform: scale(1.35); }
}

/* Animation de la section équipe */
.team-section {
    transition: all 0.4s ease;
}

.team-section:hover h2 {
    transform: translateX(5px);
}

.team-section:hover h2 .fas.fa-users {
    transform: rotate(10deg) scale(1.2);
    color: #007bff;
    animation: team 2s ease-in-out infinite;
}

@keyframes team {
    0%, 100% { transform: rotate(10deg) scale(1.2); }
    50% { transform: rotate(15deg) scale(1.3); }
}

/* Animation des cartes d'équipe */
.team-section .team-card {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0) scale(1);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.team-section .team-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(0, 123, 255, 0.3);
}

.team-section .team-card:hover .card-title {
    transform: translateY(-3px);
    color: #007bff;
}

.team-section .team-card:hover .card-text {
    transform: translateY(-2px);
}

/* Animation des photos d'équipe */
.team-section .team-card img {
    transition: all 0.4s ease;
    border: 3px solid transparent;
}

.team-section .team-card:hover img {
    transform: scale(1.1) rotate(2deg);
    border-color: rgba(0, 123, 255, 0.3);
    box-shadow: 0 8px 16px rgba(0, 123, 255, 0.3);
}

/* Animation des badges de compétences */
.team-section .badge {
    transition: all 0.3s ease;
}

.team-section .team-card:hover .badge {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Animation des boutons de contact */
.team-section .btn-outline-success {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border-radius: 50px;
}

.team-section .team-card:hover .btn-outline-success {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    border-color: #28a745;
}

.team-section .btn-outline-success::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.team-section .btn-outline-success:hover::before {
    width: 300px;
    height: 300px;
}

/* Animation de la section public */
.audience-section {
    transition: all 0.4s ease;
}

.audience-section:hover h2 {
    transform: translateX(5px);
}

.audience-section:hover h2 .fas.fa-bullhorn {
    transform: rotate(-10deg) scale(1.2);
    color: #17a2b8;
    animation: announce 2s ease-in-out infinite;
}

@keyframes announce {
    0%, 100% { transform: rotate(-10deg) scale(1.2); }
    50% { transform: rotate(-15deg) scale(1.3); }
}

/* Animation des cartes de public */
.audience-section .card {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0) scale(1);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.audience-section .card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.audience-section .card:hover .card-title {
    transform: translateY(-3px);
}

.audience-section .card:hover .card-text {
    transform: translateY(-2px);
}

/* Animation des icônes de public */
.audience-section .card .fas {
    transition: all 0.4s ease;
}

.audience-section .card:hover .fas.fa-map-marker-alt {
    transform: scale(1.3) rotate(5deg);
    color: #28a745;
    animation: location 2s ease-in-out infinite;
}

@keyframes location {
    0%, 100% { transform: scale(1.3) rotate(5deg); }
    50% { transform: scale(1.4) rotate(10deg); }
}

.audience-section .card:hover .fas.fa-globe-africa {
    transform: scale(1.3) rotate(-5deg);
    color: #17a2b8;
    animation: rotate 3s ease-in-out infinite;
}

@keyframes rotate {
    0% { transform: scale(1.3) rotate(-5deg); }
    100% { transform: scale(1.3) rotate(355deg); }
}

.audience-section .card:hover .fas.fa-globe {
    transform: scale(1.3) rotate(5deg);
    color: #ffc107;
    animation: spin 4s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: scale(1.3) rotate(5deg); }
    100% { transform: scale(1.3) rotate(365deg); }
}

/* Animation des listes */
.audience-section .card:hover .fa-check {
    transform: scale(1.2) rotate(5deg);
    animation: checkmark 1s ease-in-out infinite;
}

@keyframes checkmark {
    0%, 100% { transform: scale(1.2) rotate(5deg); }
    50% { transform: scale(1.3) rotate(10deg); }
}

/* Animation de la section statistiques */
.stats-section {
    transition: all 0.4s ease;
}

.stats-section:hover h2 {
    transform: translateX(5px);
}

.stats-section:hover h2 .fas.fa-chart-bar {
    transform: rotate(-5deg) scale(1.2);
    color: #007bff;
    animation: chart 2s ease-in-out infinite;
}

@keyframes chart {
    0%, 100% { transform: rotate(-5deg) scale(1.2); }
    50% { transform: rotate(-10deg) scale(1.3); }
}

/* Animation des items de statistiques */
.stats-section .stat-item {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0) scale(1);
    padding: 20px;
    border-radius: 15px;
    position: relative;
}

.stats-section .stat-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.stats-section .stat-item:hover h3 {
    transform: translateY(-3px);
}

.stats-section .stat-item:hover p {
    transform: translateY(-2px);
}

/* Animation des icônes de statistiques */
.stats-section .stat-item .fas {
    transition: all 0.4s ease;
}

.stats-section .stat-item:hover .fas.fa-newspaper {
    transform: scale(1.3) rotate(5deg);
    color: #28a745;
    animation: paper 2s ease-in-out infinite;
}

@keyframes paper {
    0%, 100% { transform: scale(1.3) rotate(5deg); }
    50% { transform: scale(1.4) rotate(10deg); }
}

.stats-section .stat-item:hover .fas.fa-users {
    transform: scale(1.3) rotate(-5deg);
    color: #17a2b8;
    animation: people 2.5s ease-in-out infinite;
}

@keyframes people {
    0%, 100% { transform: scale(1.3) rotate(-5deg); }
    50% { transform: scale(1.4) rotate(-10deg); }
}

.stats-section .stat-item:hover .fas.fa-handshake {
    transform: scale(1.3) rotate(10deg);
    color: #ffc107;
    animation: shake 2s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: scale(1.3) rotate(10deg); }
    25% { transform: scale(1.3) rotate(15deg); }
    75% { transform: scale(1.3) rotate(5deg); }
}

.stats-section .stat-item:hover .fas.fa-project-diagram {
    transform: scale(1.3) rotate(-10deg);
    color: #dc3545;
    animation: project 3s ease-in-out infinite;
}

@keyframes project {
    0%, 100% { transform: scale(1.3) rotate(-10deg); }
    50% { transform: scale(1.4) rotate(-15deg); }
}

/* Animation de la section partenaires */
.partners-section {
    transition: all 0.4s ease;
}

.partners-section:hover h2 {
    transform: translateX(5px);
}

.partners-section:hover h2 .fas.fa-handshake {
    transform: rotate(-5deg) scale(1.2);
    color: #28a745;
    animation: partner 2s ease-in-out infinite;
}

@keyframes partner {
    0%, 100% { transform: rotate(-5deg) scale(1.2); }
    50% { transform: rotate(-10deg) scale(1.3); }
}

/* Animation des cartes de partenaires */
.partners-section .card {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0) scale(1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.partners-section .card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.partners-section .card:hover .fas {
    transform: scale(1.3) rotate(5deg);
}

.partners-section .card:hover .fas.fa-un {
    color: #007bff;
    animation: un 2s ease-in-out infinite;
}

@keyframes un {
    0%, 100% { transform: scale(1.3) rotate(5deg); }
    50% { transform: scale(1.4) rotate(10deg); }
}

.partners-section .card:hover .fas.fa-globe-africa {
    color: #28a745;
    animation: africa 3s ease-in-out infinite;
}

.partners-section .card:hover .fas.fa-leaf {
    color: #ffc107;
    animation: leaf 2.5s ease-in-out infinite;
}

.partners-section .card:hover .fas.fa-university {
    color: #17a2b8;
    animation: university 2s ease-in-out infinite;
}

.partners-section .card:hover .fas.fa-building {
    color: #dc3545;
    animation: building 3s ease-in-out infinite;
}

.partners-section .card:hover .fas.fa-users {
    color: #6c757d;
    animation: users 2.5s ease-in-out infinite;
}

/* Animation de la section CTA */
.cta-section {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(0) scale(1);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 20px;
    margin: 20px 0;
}

.cta-section:hover {
    transform: translateX(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(40, 167, 69, 0.3);
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
}

.cta-section:hover h3 {
    transform: translateX(-10px) scale(1.05);
}

.cta-section:hover h3 .fas.fa-hands-helping {
    transform: rotate(-10deg) scale(1.3);
    color: #ffc107;
    animation: help 2s ease-in-out infinite;
}

@keyframes help {
    0%, 100% { transform: rotate(-10deg) scale(1.3); }
    50% { transform: rotate(-15deg) scale(1.4); }
}

.cta-section:hover .lead {
    transform: translateX(-5px);
}

.cta-section:hover .d-flex {
    transform: translateX(-8px);
}

/* Animation d'entrée progressive */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header,
.mission-section,
.values-section .card,
.team-section .team-card,
.audience-section .card,
.stats-section .stat-item,
.partners-section .card,
.cta-section {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

/* Délai d'animation pour chaque élément */
.page-header { animation-delay: 0.1s; }
.mission-section { animation-delay: 0.2s; }
.values-section .card:nth-child(1) { animation-delay: 0.3s; }
.values-section .card:nth-child(2) { animation-delay: 0.4s; }
.values-section .card:nth-child(3) { animation-delay: 0.5s; }
.values-section .card:nth-child(4) { animation-delay: 0.6s; }
.team-section .team-card:nth-child(1) { animation-delay: 0.7s; }
.team-section .team-card:nth-child(2) { animation-delay: 0.8s; }
.team-section .team-card:nth-child(3) { animation-delay: 0.9s; }
.team-section .team-card:nth-child(4) { animation-delay: 1.0s; }
.audience-section .card:nth-child(1) { animation-delay: 1.1s; }
.audience-section .card:nth-child(2) { animation-delay: 1.2s; }
.audience-section .card:nth-child(3) { animation-delay: 1.3s; }
.stats-section .stat-item:nth-child(1) { animation-delay: 1.4s; }
.stats-section .stat-item:nth-child(2) { animation-delay: 1.5s; }
.stats-section .stat-item:nth-child(3) { animation-delay: 1.6s; }
.stats-section .stat-item:nth-child(4) { animation-delay: 1.7s; }
.partners-section .card:nth-child(1) { animation-delay: 1.8s; }
.partners-section .card:nth-child(2) { animation-delay: 1.9s; }
.partners-section .card:nth-child(3) { animation-delay: 2.0s; }
.partners-section .card:nth-child(4) { animation-delay: 2.1s; }
.partners-section .card:nth-child(5) { animation-delay: 2.2s; }
.partners-section .card:nth-child(6) { animation-delay: 2.3s; }
.cta-section { animation-delay: 2.4s; }

/* Effet de brillance animé */
.mission-section .card,
.values-section .card,
.team-section .team-card,
.audience-section .card,
.stats-section .stat-item,
.partners-section .card {
    position: relative;
    overflow: hidden;
}

.mission-section .card::before,
.values-section .card::before,
.team-section .team-card::before,
.audience-section .card::before,
.stats-section .stat-item::before,
.partners-section .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
    transform: skewX(-15deg);
}

.mission-section .card:hover::before,
.values-section .card:hover::before,
.team-section .team-card:hover::before,
.audience-section .card:hover::before,
.stats-section .stat-item:hover::before,
.partners-section .card:hover::before {
    left: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header:hover {
        transform: translateY(-3px) scale(1.005);
    }
    
    .mission-section .card:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    .values-section .card:hover {
        transform: translateY(-8px) scale(1.02);
    }
    
    .team-section .team-card:hover {
        transform: translateY(-8px) scale(1.02);
    }
    
    .audience-section .card:hover {
        transform: translateY(-8px) scale(1.01);
    }
    
    .stats-section .stat-item:hover {
        transform: translateY(-5px) scale(1.02);
    }
    
    .partners-section .card:hover {
        transform: translateY(-5px) scale(1.02);
    }
    
    .cta-section:hover {
        transform: translateX(-5px) scale(1.01);
    }
}

@media (max-width: 576px) {
    .page-header:hover {
        transform: translateY(-2px) scale(1);
    }
    
    .mission-section .card:hover {
        transform: translateY(-3px) scale(1);
    }
    
    .values-section .card:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    .team-section .team-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    .audience-section .card:hover {
        transform: translateY(-5px) scale(1);
    }
    
    .stats-section .stat-item:hover {
        transform: translateY(-3px) scale(1.01);
    }
    
    .partners-section .card:hover {
        transform: translateY(-3px) scale(1.01);
    }
    
    .cta-section:hover {
        transform: translateX(-3px) scale(1);
    }
}
