/* ================================================
   TRANSITIONS ET ÉLÉMENTS VISUELS CUSTOM
   Amélioration de l'harmonie visuelle
   ================================================ */

/* ================================================
   1. SECTION DE TRANSITION "C'EST QUOI ECHO?"
   ================================================ */

.transition-text-overlay {
    position: relative;
    padding: 4rem 0;
    margin: -2rem 0;
    z-index: 10;
    overflow: hidden;
    background: transparent;
}

.transition-text-overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, 
        rgba(139, 92, 246, 0.03) 0%,
        rgba(236, 72, 153, 0.02) 30%,
        transparent 70%);
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.transition-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    padding: 0 2rem;
    
    /* Gradient animé */
    background: linear-gradient(90deg, 
        var(--primary) 0%, 
        var(--secondary) 33%,
        var(--accent) 66%,
        var(--primary) 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 6s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Lignes décoratives */
.transition-title::before,
.transition-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(139, 92, 246, 0.3) 100%);
}

.transition-title::before {
    right: calc(100% + 2rem);
}

.transition-title::after {
    left: calc(100% + 2rem);
    background: linear-gradient(90deg, 
        rgba(139, 92, 246, 0.3) 0%, 
        transparent 100%);
}

/* ================================================
   2. AMÉLIORATION DES SECTIONS SPÉCIFIQUES
   ================================================ */

/* Timeline de diagnostic - Amélioration visuelle */
.diagnostic-approach-section .timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 5rem;
}

.diagnostic-approach-section .timeline-item::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 80px;
    bottom: -5rem;
    width: 2px;
    background: linear-gradient(180deg, 
        rgba(139, 92, 246, 0.3) 0%, 
        transparent 100%);
}

.diagnostic-approach-section .timeline-item:last-child::before {
    display: none;
}

/* Amélioration des icônes de timeline */
.diagnostic-approach-section .timeline-item__icon {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.1) 0%, 
        rgba(236, 72, 153, 0.1) 100%);
    border: 2px solid rgba(139, 92, 246, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.diagnostic-approach-section .timeline-item__icon svg {
    color: var(--primary);
}

.diagnostic-approach-section .timeline-item:hover .timeline-item__icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: transparent;
    transform: translateX(-50%) scale(1.15) rotate(5deg);
}

.diagnostic-approach-section .timeline-item:hover .timeline-item__icon svg {
    color: white;
}

/* ================================================
   3. SECTION ECHO PROCESS - AMÉLIORATION
   ================================================ */

.echo-process__visual {
    position: relative;
    margin-top: 4rem;
    padding: 3rem 0;
}

/* Amélioration du flow visuel */
.echo-visual-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
}

/* Ligne de connexion animée */
.echo-visual-flow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(139, 92, 246, 0.2) 20%,
        rgba(236, 72, 153, 0.2) 50%,
        rgba(20, 184, 166, 0.2) 80%,
        transparent 100%);
    z-index: 0;
    animation: flowLine 3s ease infinite;
}

@keyframes flowLine {
    0%, 100% {
        opacity: 0.3;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 0.6;
        transform: scaleX(1);
    }
}

.echo-visual-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.1);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.echo-visual-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

.echo-visual-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.1) 0%, 
        rgba(236, 72, 153, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    transition: all 0.3s ease;
}

.echo-visual-item:hover .echo-visual-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    transform: rotate(5deg);
}

.echo-visual-item:hover .echo-visual-icon svg {
    color: white;
}

.echo-flow-arrow {
    color: rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
    animation: arrowPulse 2s ease infinite;
}

@keyframes arrowPulse {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

/* ================================================
   4. SECTION FRICTION - AMÉLIORATION DES POST-ITS
   ================================================ */

.mental-friction-section {
    position: relative;
}

/* Ajout d'un fond pattern subtil */
.mental-friction-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23E5E7EB' stroke-width='0.5' opacity='0.3'%3E%3Cpath d='M0 50h100M50 0v100'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

/* Post-its avec ombres améliorées */
.friction-item {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.85) 100%);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 10px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* ================================================
   5. CTA BANNER - PLUS D'IMPACT
   ================================================ */

.cta-banner {
    position: relative;
    overflow: hidden;
}

/* Particules flottantes animées */
.cta-banner::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(20, 184, 166, 0.05) 0%, transparent 50%);
    animation: floatParticles 20s ease infinite;
    pointer-events: none;
}

@keyframes floatParticles {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-20px, -20px) scale(1.1);
    }
    66% {
        transform: translate(20px, -10px) scale(0.9);
    }
}

.cta-banner__content {
    position: relative;
    z-index: 3;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

/* Bouton CTA avec effet premium */
.btn--cta-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 
        0 4px 20px rgba(139, 92, 246, 0.3),
        0 2px 8px rgba(236, 72, 153, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--cta-banner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease;
}

.btn--cta-banner:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* ================================================
   6. RESPONSIVE AMÉLIORATIONS
   ================================================ */

@media (max-width: 768px) {
    .transition-title {
        font-size: 1.3rem;
    }
    
    .transition-title::before,
    .transition-title::after {
        width: 50px;
    }
    
    .echo-visual-flow {
        flex-direction: column;
    }
    
    .echo-visual-flow::before {
        width: 2px;
        height: 80%;
        top: 10%;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(180deg, 
            transparent 0%, 
            rgba(139, 92, 246, 0.2) 20%,
            rgba(236, 72, 153, 0.2) 50%,
            rgba(20, 184, 166, 0.2) 80%,
            transparent 100%);
    }
    
    .echo-flow-arrow {
        transform: rotate(90deg);
    }
    
    @keyframes arrowPulse {
        0%, 100% {
            transform: rotate(90deg) translateX(0);
        }
        50% {
            transform: rotate(90deg) translateX(5px);
        }
    }
    
    .diagnostic-approach-section .timeline-item {
        padding-left: 60px;
    }
    
    .diagnostic-approach-section .timeline-item__icon {
        left: 20px;
    }
    
    .diagnostic-approach-section .timeline-item::before {
        left: 20px;
    }
}
