/* HERO SECTION PROCESS */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px 40px;  /* Réduit le padding bottom de 60px à 40px */
    text-align: center;
}

.hero h1 {
    font-size: 60px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero h1 .highlight {
    color: #00D9FF;
}

.hero p {
    font-size: 20px;
    color: #A0AEC0;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* WHY PROCESS SECTION */
.why-process {
    max-width: 1200px;
    margin: 60px auto;  /* Réduit de 80px à 60px */
    padding: 0 40px;
}


.why-content {
    text-align: center;
}

.why-content h2 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 16px;
    color: #FFFFFF;
}

.why-subtitle {
    font-size: 18px;
    color: #A0AEC0;
    max-width: 700px;
    margin: 0 auto 40px;  /* Réduit de 60px à 40px */
    line-height: 1.6;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 0;  /* Enlève le margin-top de 40px */
}

.why-item {
    background: #1A2332;
    padding: 40px 24px;
    border-radius: 12px;
    border: 2px solid rgba(0, 217, 255, 0.2);
    transition: all 0.3s;
}

.why-item:hover {
    transform: translateY(-8px);
    border-color: #00D9FF;
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.2);
}

.why-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.why-item h4 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #00D9FF;
}

.why-item p {
    color: #A0AEC0;
    font-size: 16px;
}

/* TIMELINE SECTION */
.timeline-section {
    max-width: 1000px;
    margin: 200px auto 20px auto;
    padding: 0 40px;
    position: relative;
}

/* Timeline vertical line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, transparent, #00D9FF, transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

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

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

/* Timeline number circle */
.timeline-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: #0A1628;
    border: 3px solid #00D9FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    color: #00D9FF;
    z-index: 2;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

/* Timeline meta (duration) */
.timeline-meta {
    margin-bottom: 12px;
}

.timeline-duration {
    display: inline-block;
    font-size: 13px;
    color: #00D9FF;
    background: rgba(0, 217, 255, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
}

/* Timeline content card */
.timeline-content {
    width: 45%;
    background: #1A2332;
    padding: 32px;
    border-radius: 16px;
    border-left: 4px solid #00D9FF;
    transition: all 0.3s;
    position: relative;
}

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

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

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.2);
    border-left-color: #00D9FF;
}

.timeline-icon {
    font-size: 40px;
    margin-bottom: 16px;
    display: inline-block;
}

.timeline-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #FFFFFF;
}

.timeline-content p {
    color: #A0AEC0;
    font-size: 16px;
    line-height: 1.6;
}

/* Timeline tip */
.timeline-tip {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(0, 217, 255, 0.08);
    border-left: 3px solid #00D9FF;
    font-size: 14px;
    color: #A0AEC0;
    border-radius: 4px;
    line-height: 1.5;
}

.timeline-tip strong {
    color: #00D9FF;
}

/* CTA SECTION */
.cta-section {
    text-align: center;
    max-width: 900px;
    margin: 40px auto 80px;  /* Réduit de 100px à 80px */
    padding: 60px 40px;
    background: linear-gradient(135deg, #0A1628, #1A2332);
    border-radius: 16px;
}

.cta-section h2 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    color: #A0AEC0;
    margin-bottom: 32px;
}

/* RESPONSIVE TIMELINE */
/* =========================================
   RESPONSIVE : TÉLÉPHONE
========================================= */
@media (max-width: 768px) {
    /* 1. SECTIONS GLOBALES (Marges réduites) */
    .hero {
        padding: 80px 20px 40px;
    }
    .hero h1 { font-size: 40px; }
    .hero p { font-size: 18px; }

    .why-process {
        margin: 40px auto;
        padding: 0 auto;
    }
    .why-content h2 { font-size: 32px; }

    /* 2. TIMELINE (Ligne du temps) */
    .timeline-section {
        margin: 80px auto 40px auto; /* On supprime l'énorme trou de 200px */
        padding: 0 20px;
    }

    /* On colle la ligne complètement à gauche */
    .timeline-line {
        left: 20px; 
    }

    /* On réduit la taille des bulles numérotées pour gagner de la place */
    .timeline-number {
        width: 44px;
        height: 44px;
        font-size: 18px;
        left: 20px; /* Aligné avec la ligne */
    }

    /* On réduit l'espace vide entre chaque étape */
    .timeline-item {
        margin-bottom: 40px; 
    }

    /* On force TOUTES les cartes à droite de la ligne et on les rétrécit */
    .timeline-content {
        width: calc(100% - 64px) !important; /* Largeur totale moins la place du numéro */
        margin-left: 64px !important; /* Pousse la carte vers la droite */
        margin-right: 0 !important;
        padding: 24px 20px; /* Marges internes plus petites */
    }

    /* Sécurité pour forcer les étapes paires à rester à droite aussi */
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 64px !important;
    }

    .timeline-content h3 { font-size: 20px; }
    .timeline-content p { font-size: 15px; }
    .timeline-icon { font-size: 32px; margin-bottom: 12px; }

    /* 3. APPEL À L'ACTION (CTA) */
    .cta-section {
        margin: 40px 20px; /* Décolle des bords de l'écran */
        padding: 40px 20px;
    }
    .cta-section h2 {
        font-size: 30px;
        line-height: 1.3;
    }
    .cta-section p { font-size: 16px; }
    
    .cta-section .btn-primary {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
}