/* Styles spécifiques pour la page Comment ça marche */
html, body.how-it-works-page {
    overflow-y: auto !important;
    position: static !important;
    height: auto !important;
    background: linear-gradient(to bottom, #FAFAFA, #F5F5F5);
}

/* Fix du logo */
.logo a {
    color: var(--primary-black);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -1px;
}

/* Ajustement du header */
.how-it-works-page .navbar {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 2rem;
}

/* Container principal */
.process-container {
    max-width: 1000px;
    margin: 140px auto 80px;
    padding: 0 2rem;
}

/* En-tête de la page */
.process-header {
    text-align: center;
    margin-bottom: 6rem;
    padding: 0 1rem;
}

.process-header h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-black);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(45deg, var(--primary-black), #444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.process-header p {
    font-size: 1.3rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Timeline des étapes */
.timeline {
    position: relative;
    padding: 2rem 0;
    margin: 0 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% - 100px);
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.1),
        rgba(0,0,0,0.15),
        rgba(0,0,0,0.1));
    top: 50px;
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: 6rem;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
}

.step:nth-child(odd) {
    flex-direction: row-reverse;
}

.step-content {
    flex: 1;
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.06);
    max-width: 450px;
    position: relative;
    transition: all 0.3s ease;
}

.step:nth-child(odd) .step-content {
    margin-right: 4rem;
    padding-right: 4rem;
}

.step:nth-child(even) .step-content {
    margin-left: 4rem;
    text-align: right;
    padding-left: 4rem;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--primary-black);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.6rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.step:nth-child(odd) .step-number {
    right: -35px;
}

.step:nth-child(even) .step-number {
    left: -35px;
}

.step:hover .step-number {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.step-time {
    position: absolute;
    top: -30px;
    background: #E8F5E9;
    color: #2E7D32;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(46, 125, 50, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-time::before {
    content: '⏱';
}

.step:nth-child(odd) .step-time {
    right: 2.5rem;
}

.step:nth-child(even) .step-time {
    left: 2.5rem;
}

.step h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary-black);
    font-weight: 700;
}

.step p {
    color: #555;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Total time banner */
.total-time-banner {
    background: linear-gradient(135deg, var(--primary-black), #2C2C2C);
    color: white;
    padding: 3rem;
    border-radius: 25px;
    text-align: center;
    margin: 6rem auto 3rem;
    max-width: 700px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(30px);
    opacity: 0;
}

.total-time-banner h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.total-time-banner p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

.time-highlight {
    color: #4CAF50;
    font-weight: 700;
    padding: 0 0.5rem;
    position: relative;
    display: inline-block;
}

.time-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: rgba(76, 175, 80, 0.2);
    z-index: -1;
    border-radius: 4px;
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin-top: 3rem;
    padding: 4rem;
    background: white;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta-section p {
    color: #555;
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .cta-button {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 1024px) {
    .process-container {
        margin: 120px auto 60px;
    }

    .process-header h1 {
        font-size: 2.8rem;
    }

    .step-content {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .process-container {
        margin: 100px auto 40px;
        padding: 0 1rem;
    }

    .timeline::before {
        left: 30px;
    }

    .step {
        flex-direction: column !important;
        margin-left: 0;
        margin-bottom: 4rem;
        padding-left: 80px;
    }

    .step-content {
        margin: 0 !important;
        text-align: left !important;
        width: 100%;
        max-width: none;
        padding: 2.5rem !important;
    }

    .step-number {
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .step:hover .step-number {
        transform: translateY(-50%) scale(1.1);
    }

    .step-time {
        position: relative;
        top: 0;
        margin-bottom: 1.5rem;
        display: inline-flex;
        font-size: 0.9rem;
    }

    .step-time::before {
        content: '⏱';
        font-size: 1rem;
    }

    .step:nth-child(odd) .step-time,
    .step:nth-child(even) .step-time {
        left: 0;
        right: auto;
    }

    .step h2 {
        font-size: 1.4rem;
    }

    .step p {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .total-time-banner {
        margin: 3rem 1rem;
        padding: 2rem;
    }

    .total-time-banner h2 {
        font-size: 1.6rem;
    }

    .total-time-banner p {
        font-size: 1.1rem;
    }

    .cta-section {
        margin: 2rem 1rem;
        padding: 2rem;
    }
}

/* Styles pour le menu actif */
.nav-link.active {
    font-weight: 500;
}

.nav-link.active::after {
    width: 100%;
}

/* Animation des étapes */
.step {
    animation: fadeInUp 0.6s ease forwards;
    animation-play-state: paused;
}

.step[data-step="1"] { animation-delay: 0.2s; }
.step[data-step="2"] { animation-delay: 0.4s; }
.step[data-step="3"] { animation-delay: 0.6s; }
.step[data-step="4"] { animation-delay: 0.8s; }

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

/* Media Queries */
@media (max-width: 768px) {
    .process-container {
        margin: 100px auto 40px;
        padding: 0 1rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .step {
        padding: 1.5rem;
    }

    .step h2 {
        font-size: 1.3rem;
    }
} 