/* SOS Villages d'Enfants Burkina Faso - Custom Styles */

:root {
    --sos-blue: #009fe3;
    --sos-yellow: #ffcc00;
    --sos-dark: #333333;
}

/* Styles pour les offres d'emploi */
.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.job-card {
    border-left: 4px solid var(--sos-blue);
    transition: all 0.3s ease;
}

.job-card:hover {
    border-left-color: var(--sos-yellow);
    transform: translateX(5px);
}

.job-badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.job-deadline {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    color: white;
}

.job-active {
    background: linear-gradient(135deg, #51cf66, #40c057);
    color: white;
}

.job-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

.job-meta i {
    width: 16px;
    text-align: center;
    margin-right: 0.5rem;
}

.offre-detail-sidebar {
    position: sticky;
    top: 2rem;
}

.salary-range {
    font-weight: 600;
    color: var(--sos-blue);
}

/* Styles pour le contenu éditable de la page d'accueil */
.contenu-editable {
    text-align: center;
}

.contenu-editable h1 {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--sos-blue);
    margin-bottom: 1.5rem;
}

.contenu-editable h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--sos-blue);
    margin-bottom: 1.5rem;
    margin-top: 3rem;
}

.contenu-editable h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--sos-dark);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.contenu-editable p.lead {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.contenu-editable p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #666;
}

.contenu-editable ul {
    text-align: left;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.contenu-editable li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 80px; /* Compense la hauteur de la navbar fixe */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    min-height: 100vh;
}

/* Navigation */
.navbar {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s ease;
    z-index: 1030;
}

/* Mega Menu Styles */
.mega-dropdown {
    position: static !important;
}

.mega-dropdown .dropdown-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 85vw;
    max-width: 1400px;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin-top: 0;
    background: white;
    z-index: 1050;
}

/* Forcer l'affichage au survol sans JavaScript */
.mega-dropdown:hover > .dropdown-menu {
    display: block !important;
}

.mega-dropdown .mega-menu h6 {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: #6c757d !important;
    border-bottom: 2px solid var(--sos-blue);
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.mega-dropdown .mega-menu a {
    font-size: 1rem;
    color: #333333 !important;
    transition: all 0.3s ease;
    padding: 6px 0;
    display: block;
}

.mega-dropdown .mega-menu a:hover {
    color: #222222 !important;
    transform: translateX(5px);
}

.mega-dropdown .mega-menu .fas.fa-arrow-right {
    font-size: 0.8rem;
    color: var(--sos-blue) !important;
    transition: transform 0.3s ease;
}

.mega-dropdown .mega-menu a:hover .fas.fa-arrow-right {
    transform: translateX(3px);
    color: var(--sos-blue) !important;
}

/* Container pour centrer le contenu */
.mega-dropdown .mega-menu .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Même largeur pour tous les dropdowns */

/* Responsive mega menu */
@media (max-width: 991px) {
    .mega-dropdown .mega-menu {
        position: relative;
        width: auto;
        margin-left: 0;
        padding: 1rem !important;
    }
    
    .mega-dropdown .mega-menu .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    /* Mobile navigation text sizes */
    .navbar-nav .nav-link {
        font-size: 1.2rem;
        padding: 0.75rem 1rem;
        font-weight: 600;
    }
    
    .mega-dropdown .mega-menu h6 {
        font-size: 1.1rem;
        font-weight: 700;
    }
    
    .mega-dropdown .mega-menu a {
        font-size: 1.1rem;
        padding: 10px 0;
        font-weight: 500;
    }
    
    /* Mobile navbar brand */
    .navbar-brand img {
        height: 50px;
    }
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

/* Primary Colors */
.bg-primary {
    background-color: var(--sos-blue) !important;
}

.btn-primary {
    background-color: var(--sos-blue);
    border-color: var(--sos-blue);
}

.btn-primary:hover {
    background-color: #007bb3;
    border-color: #007bb3;
}

.text-primary {
    color: var(--sos-blue) !important;
}

/* Warning/Yellow Colors */
.bg-warning {
    background-color: var(--sos-yellow) !important;
    color: var(--sos-dark) !important;
}

.btn-warning {
    background-color: var(--sos-yellow);
    border-color: var(--sos-yellow);
    color: var(--sos-dark);
}

.btn-warning:hover {
    background-color: #e6b800;
    border-color: #e6b800;
    color: var(--sos-dark);
}

/* Hero Section */
.hero-section {
    background: url('../images/enfant1.avif') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
    background-color: var(--sos-blue) !important;
    font-size: 0.9rem;
}

footer .footer-logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer .footer-logo-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
   margin-left: 200px;
    border-radius: 8px;
    padding: 5px;
    /* Suppression du filtre qui pouvait rendre le logo invisible */
}

footer .contact-info p {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

footer .footer-links {
    font-size: 0.95rem;

}

footer .footer-links li {
    margin-bottom: 0.5rem;
}

footer .footer-links a {
    transition: color 0.3s ease;
}

footer .footer-links a:hover {
    color: var(--sos-yellow) !important;
}

footer .social-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

footer .social-links a:hover {
    color: var(--sos-yellow) !important;
    transform: translateY(-2px);
}

footer .legal-info {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.4;
}

footer h6 {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

footer .border-white-25 {
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.text-white-75:hover {
    color: var(--sos-yellow) !important;
}

/* Footer bottom menu */
.footer-bottom-menu {
    font-size: 0.9rem;
}

.footer-bottom-menu a {
    transition: color 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    padding-right: 1rem;
}

.footer-bottom-menu a:last-child {
    border-right: none;
}

.footer-bottom-menu a:hover {
    color: var(--sos-yellow) !important;
}

/* Footer logo adjustments */
footer .footer-logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer .footer-logo-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    padding: 5px;
}

/* Footer sections spacing */
footer .row > div {
    padding-right: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom utilities */
.shadow-soft {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.rounded-lg {
    border-radius: 0.5rem;
}

/* Form styling */
.form-control:focus {
    border-color: var(--sos-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 159, 227, 0.25);
}

/* SOS Style enhancements */
.navbar-nav .nav-link {
    font-weight: 600;
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--sos-blue) !important;
    font-weight: 700;
}

/* Navigation brand logo size */
.navbar-brand img {
    height: 55px;
    transition: transform 0.3s ease;
}

/* Mega menu font sizes */
.mega-dropdown .mega-menu h6 {
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: #6c757d !important;
    border-bottom: 2px solid var(--sos-blue);
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-weight: 700;
}

.mega-dropdown .mega-menu a {
    font-size: 1.05rem;
    color: #333333 !important;
    transition: all 0.3s ease;
    padding: 8px 0;
    display: block;
    font-weight: 500;
}

/* Dropdown toggle arrow */
.navbar-nav .nav-link.dropdown-toggle::after {
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

/* Navbar toggler for mobile */
.navbar-toggler {
    padding: 0.5rem 0.75rem;
    font-size: 1.1rem;
}

/* Call-to-action button in navbar */
.navbar-nav .btn {
    font-size: 1rem;
    font-weight: 700;
    padding: 0.6rem 1.5rem;
}

.btn-warning {
    background-color: var(--sos-yellow);
    border-color: var(--sos-yellow);
    color: var(--sos-dark);
    font-weight: 600;
}

.btn-warning:hover {
    background-color: #e6b800;
    border-color: #e6b800;
    color: var(--sos-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.text-primary {
    color: var(--sos-blue) !important;
}

/* Section spacing */
section {
    padding: 3rem 0;
}

/* Page backgrounds and sections */
.page-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    position: relative;
}

.page-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 159, 227, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 204, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 159, 227, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* Alternating section backgrounds - Exclude hero-section */
section:nth-child(even):not(.hero-section) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

section:nth-child(odd):not(.hero-section) {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

/* Subtle pattern overlay - Exclude hero-section */
section:not(.hero-section)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 159, 227, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 204, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

section .container {
    position: relative;
    z-index: 2;
}

/* Special backgrounds for different page types */
.bg-light-pattern {
    background: 
        linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%),
        url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23009fe3' fill-opacity='0.02' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.bg-white-pattern {
    background: 
        linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffcc00' fill-opacity='0.02' fill-rule='evenodd'%3E%3Cpath d='m0 40l40-40h-40v40z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Gradient overlays for hero sections */
.hero-gradient-overlay {
    background: url('../images/enfant1.avif') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Universal hero background - Applies to all hero sections */
[class*="hero"]:not(.hero-section) {
    background: url('../images/enfant1.avif') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* .hero-section.bg-primary - Disabled to avoid conflicts with image background */
/*
.hero-section.bg-primary {
    background: linear-gradient(135deg, var(--sos-blue) 0%, #007bb3 50%, #005a87 100%) !important;
    position: relative;
}

.hero-section.bg-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(255, 204, 0, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}
*/

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Card backgrounds with subtle gradients */
.card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 159, 227, 0.1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 159, 227, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

/* Impact section special background */
.impact-section {
    background: 
        linear-gradient(135deg, #e9ecef 0%, #f8f9fa 50%, #ffffff 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23009fe3' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/svg%3E");
}

/* News section background */
.news-section {
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f5 100%);
    position: relative;
}

/* Team section background */
.team-section {
    background: 
        linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%),
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffcc00' fill-opacity='0.02'%3E%3Cpath d='M0 0h80v80H0z'/%3E%3Cpath d='M20 20h40v40H20z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Footer enhanced gradient */
footer {
    background: linear-gradient(135deg, var(--sos-blue) 0%, #007bb3 50%, #005a87 100%) !important;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 204, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

footer .container {
    position: relative;
    z-index: 2;
}

/* Page Hero Section */
.page-hero {
    background: url('../images/enfant1.avif') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative;
    min-height: 50vh;
}

.page-hero .breadcrumb {
    background: transparent;
    margin-bottom: 0;
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
    content: "›";
}

.min-vh-50 {
    min-height: 50vh;
}

/* Card hover effects */
.card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Typography enhancements */
.display-3, .display-4, .display-5 {
    line-height: 1.2;
}

.lead {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Button enhancements */
.btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* Barre de partage social */
.social-share-bar a:hover {
    background: #f8f9fa !important;
    border-color: var(--sos-blue) !important;
    color: var(--sos-blue) !important;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 159, 227, 0.15);
}

/* Cartes d'images de présentation */
.object-fit-cover {
    object-fit: cover;
    object-position: center;
}

.image-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.image-card img {
    transition: transform 0.5s ease;
}

.image-card:hover img {
    transform: scale(1.05);
}

/* Overlay avec dégradé pour les cartes */
.card-overlay-gradient {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)) !important;
}

/* Amélioration du texte sur les cartes */
.image-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.image-card h5 {
    color: var(--sos-blue) !important;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.image-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.95;
}

/* Cartes d'appel à l'action avec effet pulse */
.cta-card {
    animation: subtle-pulse 3s ease-in-out infinite;
}

.cta-card:hover {
    animation: none;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 159, 227, 0.3);
}

@keyframes subtle-pulse {
    0%, 100% { 
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); 
    }
    50% { 
        box-shadow: 0 12px 30px rgba(0, 159, 227, 0.25); 
    }
}

/* Gradient normal pour toutes les cartes */
.cta-overlay-gradient {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)) !important;
}

/* Textes bleus en gras */
.image-card h5.text-info {
    font-weight: 700 !important;
}

/* Team member cards styles */
.team-member-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.team-member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.team-photo {
    transition: all 0.3s ease;
}

.team-overlay {
    background: rgba(0, 159, 227, 0.8);
    opacity: 0;
    transition: all 0.3s ease;
}

.team-member-card:hover .team-overlay {
    opacity: 1;
}

.team-member-card:hover .team-photo {
    transform: scale(1.1);
}

/* Timeline styles */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--sos-blue), var(--sos-yellow));
}

.timeline-item {
    position: relative;
}

.timeline-year {
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.timeline-year:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
}

/* Report cards styles */
.report-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.report-card .card-header {
    border-bottom: none;
}

.report-card .card-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Donation page specific styles */
.donation-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.donation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.donation-card: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: all 0.6s ease;
    z-index: 1;
}

.donation-card:hover:before {
    left: 100%;
}

.montant-btn {
    transition: all 0.2s ease;
}

.montant-btn:hover {
    transform: scale(1.05);
}

.montant-btn.btn-primary {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    transform: scale(1.05);
}

#donation-form {
    position: relative;
}

#donation-form .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 159, 227, 0.25);
}

#donation-form .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* Mobile money specific styles */
.bg-warning.bg-opacity-10 {
    background-color: rgba(255, 204, 0, 0.1) !important;
}

.text-warning {
    color: #ffcc00 !important;
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Animation for impact cards */
@media (min-width: 768px) {
    .impact-animation .col-md-6:nth-child(1),
    .impact-animation .col-lg-3:nth-child(1) {
        animation: slideInLeft 0.8s ease-out;
    }
    
    .impact-animation .col-md-6:nth-child(2),
    .impact-animation .col-lg-3:nth-child(2) {
        animation: slideInLeft 0.8s ease-out 0.2s both;
    }
    
    .impact-animation .col-md-6:nth-child(3),
    .impact-animation .col-lg-3:nth-child(3) {
        animation: slideInRight 0.8s ease-out 0.4s both;
    }
    
    .impact-animation .col-md-6:nth-child(4),
    .impact-animation .col-lg-3:nth-child(4) {
        animation: slideInRight 0.8s ease-out 0.6s both;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Parrainage page specific styles */
.parrainage-card {
    transition: all 0.4s ease;
    border-radius: 20px;
    overflow: hidden;
}

.parrainage-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 123, 227, 0.3) !important;
}

.parrainage-step {
    transition: all 0.3s ease;
    border-radius: 15px;
    position: relative;
}

.parrainage-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.parrainage-step:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sos-blue), var(--sos-yellow));
    border-radius: 15px 15px 0 0;
}

/* Formulaire de parrainage */
#parrainage-form .form-control:focus,
#parrainage-form .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 159, 227, 0.25);
}

#parrainage-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 227, 0.4);
}

/* Animation des éléments au scroll */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpSmooth 0.8s ease-out forwards;
}

@keyframes fadeInUpSmooth {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accordéon FAQ */
.accordion-button:not(.collapsed) {
    background-color: var(--sos-blue);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 159, 227, 0.25);
}

.accordion-item {
    border-radius: 10px !important;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

/* Témoignages */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
}

/* Badge animations */
.badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive adjustments for parrainage */
@media (max-width: 768px) {
    .parrainage-card {
        margin-bottom: 2rem;
    }
    
    .display-3 {
        font-size: 2.5rem !important;
    }
}

/* Form validation styles */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Parrainage famille specific styles */
.parrainage-famille-card {
    transition: all 0.4s ease;
    border-radius: 20px;
    overflow: hidden;
}

.parrainage-famille-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(40, 167, 69, 0.3) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

/* Comparaison cards */
.border-success {
    border: 2px solid #28a745 !important;
}

.card.border-success {
    position: relative;
}

.card.border-success::before {
    content: 'RECOMMANDÉ';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #28a745;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
}

/* Success theme variations */
.text-success {
    color: #28a745 !important;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* Accordéon famille styles */
.accordion-button:not(.collapsed).bg-success {
    background-color: #28a745 !important;
    color: white !important;
}

/* Animation pour les témoignages famille */
.testimonial-famille {
    transition: all 0.3s ease;
}

.testimonial-famille:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

/* Impact cards pour famille */
.impact-famille .col-md-6,
.impact-famille .col-lg-3 {
    animation: fadeInScale 0.8s ease-out;
}

.impact-famille .col-md-6:nth-child(2),
.impact-famille .col-lg-3:nth-child(2) {
    animation-delay: 0.2s;
}

.impact-famille .col-md-6:nth-child(3),
.impact-famille .col-lg-3:nth-child(3) {
    animation-delay: 0.4s;
}

.impact-famille .col-md-6:nth-child(4),
.impact-famille .col-lg-3:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Formulaire parrainage famille */
#parrainage-famille-form .form-control:focus,
#parrainage-famille-form .form-select:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

#parrainage-famille-form .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* Radio buttons famille styling */
.form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

/* Responsive pour parrainage famille */
@media (max-width: 768px) {
    .parrainage-famille-card {
        margin-bottom: 2rem;
    }
    
    .display-3 {
        font-size: 2.5rem !important;
    }
    
    .card.border-success::before {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
}

/* Parrainage village specific styles */
.parrainage-village-card {
    transition: all 0.4s ease;
    border-radius: 20px;
    overflow: hidden;
}

.parrainage-village-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 193, 7, 0.3) !important;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

/* Village cards styles */
.village-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    position: relative;
}

.village-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.village-feature {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.village-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Premium badge pour village */
.premium-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.premium-badge .badge {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Warning theme variations */
.text-warning {
    color: #ffc107 !important;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

/* Border warning pour comparaison */
.border-warning {
    border: 3px solid #ffc107 !important;
}

/* Village comparison cards */
.card.border-warning {
    position: relative;
}

/* Accordéon village styles */
.accordion-button:not(.collapsed).bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

/* Village stats animation */
.village-stats {
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Background warning opacity */
.bg-warning.bg-opacity-10 {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

/* Formulaire parrainage village */
#parrainage-village-form .form-control:focus,
#parrainage-village-form .form-select:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

#parrainage-village-form .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

/* Radio buttons village styling */
.form-check-input:checked[name="village"],
.form-check-input:checked[name="typeParrainVillage"] {
    background-color: #ffc107;
    border-color: #ffc107;
}

.form-check-input:focus[name="village"],
.form-check-input:focus[name="typeParrainVillage"] {
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

/* Village comparison layout */
.village-comparison {
    position: relative;
}

.village-comparison::before {
    content: 'VS';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 3px solid #ffc107;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #ffc107;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive village styles */
@media (max-width: 768px) {
    .parrainage-village-card {
        margin-bottom: 2rem;
    }
    
    .premium-badge {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .premium-badge .badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.7rem;
    }
    
    .village-comparison::before {
        display: none;
    }
}

/* Animation pour les statistiques village */
.village-stat {
    animation: slideInUp 0.8s ease-out;
}

.village-stat:nth-child(2) {
    animation-delay: 0.2s;
}

.village-stat:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects pour village cards */
.village-card .bg-warning,
.village-card .bg-success,
.village-card .bg-info {
    transition: all 0.3s ease;
}

.village-card:hover .bg-warning {
    transform: scale(1.1);
}

.village-card:hover .bg-success {
    transform: scale(1.1);
}

.village-card:hover .bg-info {
    transform: scale(1.1);
}