/* Touba Ca Kanam - Styles CSS */

:root {
    --primary-color: #0d5a1f;
    --secondary-color: #1a8c3e;
    --accent-color: #f39c12;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --gold-color: #d4af37;
    --animation-duration: 0.8s;
    --animation-delay: 0.1s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Animations modernes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Classes d'animation */
.animate-on-scroll {
    opacity: 0;
    transition: all var(--animation-duration) ease-out;
}

.animate-on-scroll.animated {
    opacity: 1 !important;
}

/* Assurer la visibilité du contenu critique même sans animation */
.bg-gradient-primary .animate-on-scroll {
    opacity: 1;
    animation: fadeInUp var(--animation-duration) ease-out;
}

/* Améliorer la lisibilité du texte sur fond gradient */
.bg-gradient-primary h2,
.bg-gradient-primary h3,
.bg-gradient-primary p,
.bg-gradient-primary .lead {
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.bg-gradient-primary .btn-light {
    background: #ffffff;
    color: var(--primary-color);
    border: none;
    font-weight: 600;
}

.bg-gradient-primary .btn-light:hover {
    background: #f8f9fa;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.fade-in-up {
    animation: fadeInUp var(--animation-duration) ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft var(--animation-duration) ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight var(--animation-duration) ease-out forwards;
}

.fade-in {
    animation: fadeIn var(--animation-duration) ease-out forwards;
}

.scale-in {
    animation: scaleIn var(--animation-duration) ease-out forwards;
}

.slide-in-down {
    animation: slideInDown var(--animation-duration) ease-out forwards;
}

/* Délais d'animation */
.delay-1 { animation-delay: calc(var(--animation-delay) * 1); }
.delay-2 { animation-delay: calc(var(--animation-delay) * 2); }
.delay-3 { animation-delay: calc(var(--animation-delay) * 3); }
.delay-4 { animation-delay: calc(var(--animation-delay) * 4); }
.delay-5 { animation-delay: calc(var(--animation-delay) * 5); }
.delay-6 { animation-delay: calc(var(--animation-delay) * 6); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.arabic-text {
    font-family: 'Amiri', serif;
    font-size: 1.2em;
}

/* ===== BARRE SUPERIEURE ===== */
.topbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-size: 0.82rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.topbar-left a,
.topbar-right a {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.topbar-left a:hover,
.topbar-right a:hover {
    color: var(--gold-color);
}

.topbar-welcome {
    color: rgba(255,255,255,0.92);
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-welcome strong {
    color: var(--gold-color);
}

/* ===== NAVBAR PRINCIPALE ===== */
.navbar-main {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 0.6rem 0;
    transition: all 0.3s ease;
    border-bottom: 3px solid var(--primary-color);
}

.navbar-main.scrolled {
    padding: 0.4rem 0;
    box-shadow: 0 4px 25px rgba(0,0,0,0.12);
}

/* Logo */
.navbar-brand-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar-logo {
    height: 48px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.navbar-brand-custom:hover .navbar-logo {
    transform: scale(1.05);
}

.navbar-logo-placeholder {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.navbar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.3px;
}

.brand-tagline {
    font-size: 0.68rem;
    font-weight: 400;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Liens de navigation */
.nav-link-custom {
    color: #444;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.55rem 0.85rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: var(--primary-color);
    background: rgba(13, 90, 31, 0.07);
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
    width: 60%;
}

/* Boutons d'action */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.btn-connexion {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
    background: transparent;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-connexion:hover {
    background: var(--primary-color);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 90, 31, 0.3);
}

.btn-inscription {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 2px solid transparent;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-inscription:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 90, 31, 0.4);
}

.btn-compte {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
    background: transparent;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-compte:hover {
    background: rgba(13, 90, 31, 0.07);
    transform: translateY(-2px);
}

.btn-don {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff !important;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border: 2px solid transparent;
    padding: 7px 18px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    animation: pulse-don 2.5s ease-in-out infinite;
}

.btn-don:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #fff !important;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.5);
    animation: none;
}

@keyframes pulse-don {
    0%, 100% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.4); }
    50%       { box-shadow: 0 0 0 6px rgba(243, 156, 18, 0); }
}

/* Dropdown compte */
.dropdown-menu-custom {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 0.5rem;
    min-width: 210px;
    margin-top: 8px !important;
}

.dropdown-menu-custom .dropdown-item {
    border-radius: 8px;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    color: #444;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.dropdown-menu-custom .dropdown-item i {
    width: 16px;
    color: var(--primary-color);
}

.dropdown-menu-custom .dropdown-item:hover {
    background: rgba(13, 90, 31, 0.08);
    color: var(--primary-color);
}

.dropdown-menu-custom .dropdown-item.text-danger i {
    color: #dc3545;
}

/* Hamburger personnalisé */
.navbar-toggler-custom {
    background: none;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 5px;
    transition: all 0.3s ease;
}

.navbar-toggler-custom span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggler-custom:hover {
    background: rgba(13, 90, 31, 0.08);
}

/* Hero Section */
.hero-section {
    min-height: 600px;
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0,0,0,0.3) 100%);
    animation: fadeIn 1s ease-in;
}

.hero-content h1 {
    animation: fadeInUp 1s ease-out;
}

.hero-content .lead {
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-content .btn {
    animation: fadeInUp 1s ease-out backwards;
}

.hero-content .btn:nth-child(1) {
    animation-delay: 0.6s;
}

.hero-content .btn:nth-child(2) {
    animation-delay: 0.7s;
}

.hero-content .btn:nth-child(3) {
    animation-delay: 0.8s;
}

/* Vidéo de fond pour le hero */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

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

.hero-section .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-section .btn {
    padding: 12px 30px;
    font-size: 1rem;
    margin: 0 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.card:hover::before {
    left: 100%;
}

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

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

/* Stats Section */
.stats-section {
    background: #0d5a1f;
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.stat-item {
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.1);
}

.stat-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    transition: all 0.3s ease;
    display: inline-block;
}

.stat-item:hover i {
    animation: pulse 1s ease-in-out infinite;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 1 !important; /* Toujours visible */
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-title p.lead {
    color: #6c757d;
    font-size: 1.1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Section sur fond clair */
.bg-light .section-title h2 {
    color: var(--dark-color);
}

.bg-light .section-title p {
    color: #6c757d;
}

/* Membership Cards */
.membership-card {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.membership-card.bronze::before {
    background: linear-gradient(90deg, #cd7f32, #a0522d);
}

.membership-card.argent::before {
    background: linear-gradient(90deg, #c0c0c0, #a8a8a8);
}

.membership-card.or::before {
    background: linear-gradient(90deg, #ffd700, #ffed4e);
}

.membership-card.platine::before {
    background: linear-gradient(90deg, #e5e4e2, #bcc6cc);
}

/* Statistics Section - voir Stats Section ci-dessus */

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Project Card */
.project-card {
    position: relative;
}

.progress-bar-custom {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

.project-status {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-en-cours {
    background-color: #28a745;
    color: #fff;
}

.status-planifie {
    background-color: #ffc107;
    color: #333;
}

.status-termine {
    background-color: #6c757d;
    color: #fff;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 90, 31, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-overlay .content {
    color: #fff;
    text-align: center;
    padding: 20px;
}

/* Forms */
.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 90, 31, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    border-radius: 10px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border: none;
    color: #fff;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e67e22, #f39c12);
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

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

.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

.timeline-item::after {
    content: '';
    display: table;
    clear: both;
}

.timeline-content {
    width: 45%;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
    float: left;
}

.timeline-item:nth-child(even) .timeline-content {
    float: right;
}

/* Dashboard */
.dashboard-card {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-left: 4px solid var(--primary-color);
}

.dashboard-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-stat .icon {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.7;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 1rem 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    font-size: 1.2rem;
}

/* Section Title */
.section-title {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 1rem auto;
    border-radius: 2px;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Footer */
footer {
    margin-top: auto;
}

footer a:hover {
    color: var(--accent-color) !important;
}

.social-links a:hover {
    transform: translateY(-3px);
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 60px;
        float: none !important;
    }

    /* Topbar mobile */
    .topbar-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 4px;
    }

    .topbar-left, .topbar-right {
        gap: 0.8rem;
        font-size: 0.78rem;
    }

    /* Navbar mobile */
    .navbar-toggler-custom {
        display: flex;
    }

    .navbar-brand-custom {
        gap: 8px;
    }

    .navbar-logo, .navbar-logo-placeholder {
        height: 38px;
        width: 38px;
    }

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

    .brand-tagline {
        display: none;
    }

    .navbar-collapse {
        background: #fff;
        border-top: 2px solid rgba(13,90,31,0.1);
        padding: 1rem 0;
        margin-top: 0.5rem;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }

    .navbar-nav {
        flex-direction: column;
        padding: 0 0.5rem;
    }

    .nav-link-custom {
        display: block;
        padding: 0.65rem 1rem;
        border-radius: 8px;
    }

    .navbar-actions {
        flex-direction: column;
        align-items: stretch;
        padding: 0 0.5rem;
        gap: 0.4rem;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(13,90,31,0.1);
        padding-top: 0.75rem;
    }

    .btn-connexion,
    .btn-inscription,
    .btn-compte,
    .btn-don {
        justify-content: center;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Utility Classes */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    z-index: 1;
}

.bg-gradient-primary * {
    position: relative;
    z-index: 2;
}

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

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

/* Loading Spinner */
.spinner-custom {
    border: 3px solid rgba(13, 90, 31, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animations supplémentaires pour professionnalisme */
.btn-lg {
    position: relative;
    overflow: hidden;
}

.btn-lg::after {
    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;
}

.btn-lg:hover::after {
    width: 300px;
    height: 300px;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Section spacing et animations */
section {
    position: relative;
    overflow: hidden;
}

/* Amélioration des images */
img {
    transition: all 0.3s ease;
}

/* Navbar avec animation au scroll */
.navbar.scrolled {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Bounce animation subtile pour les icônes */
@keyframes bounce-subtle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.stat-item i:hover {
    animation: bounce-subtle 0.6s ease-in-out;
}

/* Gradient text pour les titres */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Skeleton loader pour les images */
.skeleton-loader {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Amélioration du carrousel de partenaires */
.partners-carousel {
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.partner-logo {
    filter: none;
    opacity: 1;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: none;
    opacity: 1;
    transform: scale(1.08);
}

/* Card body animation */
.card-body {
    position: relative;
    z-index: 2;
    background: transparent;
}

.card-title {
    color: var(--dark-color);
    font-weight: 600;
}

/* Cartes colorées : texte toujours blanc */
.card.text-white .card-body,
.card.text-white .card-body * {
    color: #ffffff !important;
}

.card-text {
    color: #6c757d !important;
}

/* Amélioration des badges */
.badge {
    font-weight: 500;
    padding: 0.5em 1em;
    transition: all 0.3s ease;
}

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