/* ===================================
   UX PREMIUM - ANIMATIONS & INTERACTIONS
   =================================== */

/* Barre de progression en haut */
.progress-bar-container {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 1001;
}

.progress-bar-fill {
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Amélioration des hover effects sur toutes les cartes */
.benefit-card,
.use-case-card,
.benchmark-card,
.eco-card,
.regulatory-card,
.mechanism-card,
.fondamental-card,
.glossary-item,
.faq-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover,
.use-case-card:hover,
.benchmark-card:hover,
.eco-card:hover,
.regulatory-card:hover,
.mechanism-card:hover,
.fondamental-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.3);
}

/* Effet glow sur les icônes au hover */
.benefit-card:hover .benefit-icon,
.use-case-card:hover .use-case-icon,
.mechanism-card:hover .mechanism-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

/* Amélioration des bordures au hover */
.benefit-card:hover,
.use-case-card:hover {
    border-color: #3b82f6;
    background: rgba(30, 41, 59, 0.95);
}

/* Animation des badges */
.reg-badge,
.badge {
    transition: all 0.3s ease;
}

.regulatory-card:hover .reg-badge {
    transform: scale(1.1);
}

/* Effet sur les boutons */
button,
.ai-send-btn,
.scroll-to-top {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover,
.ai-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

/* Amélioration glossaire hover */
.glossary-item:hover {
    transform: translateX(5px);
    border-left-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

/* FAQ hover effect */
.faq-item:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: #3b82f6;
}

/* Effet sur les liens de navigation */
.nav-links-pro a {
    position: relative;
}

.nav-links-pro a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links-pro a:hover::after {
    width: 100%;
}

/* Amélioration des dropdowns */
.nav-dropdown-menu a {
    transition: all 0.3s ease;
}

.nav-dropdown-menu a:hover {
    transform: translateX(5px);
}

/* Effet parallax léger sur les sections */
section {
    transition: transform 0.3s ease;
}

/* Amélioration des cartes de comparaison */
.comparison-item {
    transition: all 0.3s ease;
}

.comparison-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.3);
}

/* Effet sur les images */
img {
    transition: transform 0.3s ease;
}

.flow-image:hover {
    transform: scale(1.02);
}

/* Animation des icônes */
i {
    transition: all 0.3s ease;
}

.benefit-icon i:hover,
.use-case-icon i:hover {
    transform: rotate(360deg);
}

/* Effet sur les tableaux */
.comparison-row {
    transition: all 0.3s ease;
}

.comparison-row:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: scale(1.01);
}

/* Amélioration scroll to top */
.scroll-to-top {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-to-top:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.6);
}

/* Effet sur les benchmarks */
.benchmark-header {
    transition: all 0.3s ease;
}

.benchmark-card:hover .benchmark-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.2));
}

/* Amélioration des stats */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
}

/* Effet sur les timelines */
.timeline-item {
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
    background: rgba(59, 130, 246, 0.05);
}

/* Animation des progress bars */
.progress-bar {
    transition: width 0.3s ease;
}

/* Effet sur les tags */
.tag {
    transition: all 0.3s ease;
}

.tag:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px -5px rgba(59, 130, 246, 0.4);
}

/* Amélioration des encadrés */
.key-argument,
.key-distinction {
    transition: all 0.3s ease;
}

.key-argument:hover,
.key-distinction:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.3);
}

/* Effet sur les icônes de distinction */
.argument-icon,
.distinction-icon {
    transition: all 0.3s ease;
}

.key-argument:hover .argument-icon,
.key-distinction:hover .distinction-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Animation des listes */
.detail-item,
.analogy-item {
    transition: all 0.3s ease;
}

.detail-item:hover,
.analogy-item:hover {
    transform: translateX(5px);
    background: rgba(59, 130, 246, 0.1);
}

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

/* Amélioration des sections alternées */
.section-alternate {
    transition: background 0.3s ease;
}

/* Effet sur les headers de section */
.section-title {
    transition: all 0.3s ease;
}

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

/* Animation du logo */
.nav-logo {
    transition: all 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
    cursor: pointer;
}

/* Effet sur le status badge */
.status-badge {
    transition: all 0.3s ease;
}

.status-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px -5px rgba(16, 185, 129, 0.4);
}

/* Animation des dropdown menus */
.nav-dropdown-menu {
    animation: slideDown 0.3s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effet de pulsation sur les éléments importants */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
    }
}

.highlight-pulse {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Responsive - Désactiver certaines animations sur mobile */
@media (max-width: 768px) {

    .benefit-card:hover,
    .use-case-card:hover,
    .benchmark-card:hover {
        transform: translateY(-4px) scale(1.01);
    }

    section:hover .section-title {
        transform: none;
    }
}

/* Performance optimization */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* GPU acceleration for animations */
.benefit-card,
.use-case-card,
.benchmark-card,
.scroll-to-top {
    will-change: transform;
}