/* ================================================
   HARMONISATION DES SECTIONS - ECHO THEME
   Design fluide avec transitions visuelles élégantes
   ================================================ */

/* ================================================
   1. SYSTÈME DE SECTIONS ALTERNÉES
   ================================================ */

/* Section claire (par défaut) */
.section-light {
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
    position: relative;
}

/* Section avec fond pastel doux */
.section-pastel {
    background: linear-gradient(135deg, 
        rgba(199, 210, 254, 0.15) 0%,   /* Bleu lavande très doux */
        rgba(253, 228, 230, 0.10) 33%,  /* Rose pêche subtil */
        rgba(219, 234, 254, 0.15) 66%,  /* Bleu ciel léger */
        rgba(233, 213, 255, 0.10) 100%); /* Violet pastel */
    position: relative;
}

/* Section avec fond sage/menthe */
.section-sage {
    background: linear-gradient(135deg, 
        rgba(184, 212, 200, 0.08) 0%,   /* Sage très doux */
        rgba(212, 241, 232, 0.06) 100%); /* Menthe subtile */
    position: relative;
}

/* Section accent avec gradient */
.section-accent {
    background: linear-gradient(135deg, 
        #F8FAFB 0%, 
        rgba(167, 243, 208, 0.05) 50%,  /* Vert menthe ultra léger */
        #FFFFFF 100%);
    position: relative;
}

/* Section sombre pour contraste */
.section-dark {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: white;
    position: relative;
}

/* ================================================
   2. TRANSITIONS VISUELLES ENTRE SECTIONS
   ================================================ */

/* Vague douce entre sections */
.section-wave-transition {
    position: relative;
    overflow: visible;
}

.section-wave-transition::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 120px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,40 C240,80 480,0 720,40 C960,80 1200,0 1440,40 L1440,120 L0,120 Z' fill='%23FFFFFF' opacity='1'/%3E%3C/svg%3E") no-repeat;
    background-size: cover;
    z-index: 1;
    pointer-events: none;
}

/* Transition avec dégradé fondu */
.section-gradient-transition {
    position: relative;
}

.section-gradient-transition::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 1) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Séparateur géométrique */
.section-geometric-separator {
    position: relative;
    margin-bottom: -80px;
}

.section-geometric-separator::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(135deg, transparent 49%, var(--gray-50) 50%);
    z-index: 2;
}

/* ================================================
   3. REFONTE SECTIONS SPÉCIFIQUES
   ================================================ */

/* Section Echo Process - Plus de caractère */
.echo-process-section {
    padding: 10rem 0 12rem 0;
    background: linear-gradient(135deg, 
        #FFFFFF 0%, 
        rgba(199, 210, 254, 0.08) 25%,
        rgba(167, 243, 208, 0.06) 75%,
        #FAFBFC 100%);
    position: relative;
    overflow: hidden;
}

.echo-process-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, 
        rgba(139, 92, 246, 0.03) 0%, 
        transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.echo-process-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, 
        rgba(20, 184, 166, 0.03) 0%, 
        transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
}

/* Section Diagnostic Approach - Distinction claire */
.diagnostic-approach-section {
    padding: 10rem 0;
    background: linear-gradient(170deg, 
        rgba(233, 213, 255, 0.08) 0%,   /* Lavande très douce */
        rgba(255, 255, 255, 1) 40%,
        rgba(199, 210, 254, 0.06) 100%); /* Bleu très doux */
    position: relative;
    overflow: hidden;
}

/* Ajout d'un pattern subtil */
.diagnostic-approach-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 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='%238B5CF6' fill-opacity='0.01'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

/* Section Mental Friction - Plus de profondeur */
.mental-friction-section {
    padding: 10rem 0;
    background: linear-gradient(180deg, 
        #FFFFFF 0%, 
        rgba(253, 228, 230, 0.04) 50%,  /* Rose très subtil */
        rgba(255, 255, 255, 1) 100%);
    position: relative;
    overflow: visible;
}

/* Ajout d'une bordure supérieure décorative */
.mental-friction-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(139, 92, 246, 0.2) 50%, 
        transparent 100%);
}

/* Section CTA Banner - Plus d'impact */
.cta-banner {
    position: relative;
    padding: 10rem 0;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.04) 0%,
        rgba(236, 72, 153, 0.03) 50%,
        rgba(20, 184, 166, 0.04) 100%);
    overflow: hidden;
    border-top: 1px solid rgba(139, 92, 246, 0.08);
}

/* Pattern de fond animé pour le CTA */
.cta-banner::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    right: -100%;
    bottom: -100%;
    background: radial-gradient(circle at 20% 50%, 
        rgba(139, 92, 246, 0.05) 0%, 
        transparent 50%),
        radial-gradient(circle at 80% 80%, 
        rgba(236, 72, 153, 0.05) 0%, 
        transparent 50%);
    animation: rotateGradient 30s linear infinite;
}

/* ================================================
   4. ÉLÉMENTS DE LIAISON
   ================================================ */

/* Diviseur avec point central */
.section-divider {
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.section-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(148, 163, 184, 0.2) 50%, 
        transparent 100%);
}

.section-divider-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

/* Transition floue entre sections */
.section-blur-transition {
    position: relative;
    margin-bottom: -60px;
}

.section-blur-transition::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 1) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
}

/* ================================================
   5. ANIMATIONS
   ================================================ */

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

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

/* ================================================
   6. AJUSTEMENTS POUR LA COHÉRENCE
   ================================================ */

/* Espacement uniforme des sections */
.main-content > section {
    position: relative;
    z-index: 1;
}

/* Assurer que les conteneurs restent lisibles */
.main-content .container {
    position: relative;
    z-index: 2;
}

/* Transition douce au scroll */
.main-content section {
    transition: background-color 0.5s ease;
}

/* Hover effect subtil sur les sections interactives */
.main-content section:hover {
    background-size: 110% 110%;
}

/* ================================================
   7. CLASSES UTILITAIRES
   ================================================ */

/* Pour sections avec besoin de plus d'espace */
.section-spacious {
    padding: 12rem 0;
}

/* Pour sections compactes */
.section-compact {
    padding: 6rem 0;
}

/* Section avec ombre intérieure */
.section-inner-shadow {
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.03),
                inset 0 -1px 0 rgba(0, 0, 0, 0.03);
}

/* ================================================
   7.5. STYLE SPÉCIFIQUE SECTION RESEARCH-DATA
   ================================================ */

/* Section Research Data - Distinction visuelle améliorée */
.research-data {
    position: relative;
    padding: 10rem 0;
    background: linear-gradient(180deg, 
        #F0FDF9 0%,           /* Menthe très claire mais visible */
        #E6F7FF 50%,          /* Bleu ciel clair */
        #F5F0FF 100%);        /* Lavande claire */
    overflow: hidden;
    border-top: 2px solid rgba(167, 243, 208, 0.2);
}

/* Pattern décoratif unique pour cette section */
.research-data::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(167, 243, 208, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(199, 229, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(229, 217, 255, 0.03) 0%, transparent 50%);
    opacity: 0.6;
    animation: floatPattern 30s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatPattern {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-10px, -10px) scale(1.05);
    }
}

/* Amélioration des éléments internes */
.research-data .section-title {
    color: var(--green-modern);
    position: relative;
    z-index: 2;
}

.research-data .section-subtitle {
    color: var(--text-secondary);
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.research-data .research-description {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(167, 243, 208, 0.15);
    box-shadow: 0 8px 32px rgba(167, 243, 208, 0.08);
}

/* ================================================
   8. RESPONSIVE
   ================================================ */

@media (max-width: 768px) {
    .echo-process-section,
    .diagnostic-approach-section,
    .mental-friction-section,
    .cta-banner {
        padding: 6rem 0;
    }
    
    .section-spacious {
        padding: 8rem 0;
    }
    
    .section-compact {
        padding: 4rem 0;
    }
    
    .section-wave-transition::after {
        height: 60px;
    }
    
    .section-divider {
        height: 80px;
    }
}
