/* ============================================
   PROCESSUS D'ENTRETIEN - DESIGN MODERNE
   Style homepage avec pictos dynamiques + funnel
   ============================================ */

/* Variables */
:root {
    --primary: #0B3D59;
    --secondary: #C5A059;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border: #e5e7eb;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    padding-top: 80px;
}

/* Hero Section */
.hero-processus {
    background: linear-gradient(135deg, var(--primary) 0%, #1a5a7f 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-processus::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(197, 160, 89, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-processus-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-processus h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-processus .subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    display: block;
}

.hero-stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Container */
.container-processus {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Timeline Section */
.timeline-section {
    background: white;
    padding: 4rem 2rem;
    margin: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

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

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Timeline Steps */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    align-items: flex-start;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

/* Timeline connector */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 60px;
    bottom: 60px;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.step-icon {
    min-width: 80px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), #1a5a7f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s;
}

.timeline-step:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
}

.step-content {
    flex: 1;
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--secondary);
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.timeline-step:hover .step-content {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.step-timing {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.step-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.step-details {
    list-style: none;
    padding: 0;
}

.step-details li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-primary);
}

.step-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
}

/* Funnel Section */
.funnel-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, white 100%);
    padding: 4rem 2rem;
    margin: 3rem 0;
}

.funnel-container {
    max-width: 900px;
    margin: 0 auto;
}

.funnel-chart {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.funnel-stage {
    position: relative;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
}

.funnel-stage:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.funnel-stage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.funnel-stage-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.funnel-stage-percentage {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
}

.funnel-stage-bar {
    width: 100%;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.funnel-stage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    transition: width 1s ease-out;
}

.funnel-stage-details {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Key Metrics */
.metrics-section {
    background: white;
    padding: 4rem 2rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto 0;
}

.metric-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border-top: 4px solid var(--secondary);
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.metric-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    display: block;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Best Practices */
.best-practices-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1a5a7f 100%);
    color: white;
    padding: 4rem 2rem;
    margin: 3rem 0;
}

.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto 0;
}

.practice-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.practice-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.practice-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--secondary);
}

.practice-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.practice-description {
    opacity: 0.9;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: white;
    padding: 4rem 2rem;
    text-align: center;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cta-btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow);
}

.cta-btn-primary:hover {
    background: #1a5a7f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-btn-secondary {
    background: var(--bg-secondary);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.cta-btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-processus h1 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .timeline-container::before {
        left: 40px;
    }

    .step-icon {
        min-width: 60px;
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .timeline-step {
        gap: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .metrics-grid,
    .practices-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

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

.timeline-step,
.funnel-stage,
.metric-card,
.practice-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.timeline-step:nth-child(1) { animation-delay: 0.1s; }
.timeline-step:nth-child(2) { animation-delay: 0.2s; }
.timeline-step:nth-child(3) { animation-delay: 0.3s; }
.timeline-step:nth-child(4) { animation-delay: 0.4s; }
.timeline-step:nth-child(5) { animation-delay: 0.5s; }
