/* ===================================
   CHRYSALIDE - GESTION LOCATIVE STYLES
   =================================== */

/* ===================================
   1. PROCESS TIMELINE SECTION
   =================================== */

/* Section principale */
.process-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.process-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Titre de section */
.process-header {
    text-align: center;
    margin-bottom: 50px;
}

.process-title {
    font-size: 30px;
    font-weight: 400;
    color: #2c3e50;
    margin-bottom: 15px;
}

.process-subtitle {
    font-size: 18px;
    color: black;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

/* Ligne centrale */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #3498db 0%, #2ecc71 100%);
}

/* Étapes */
.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.timeline-content {
    width: 45%;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Flèche */
.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 15px 15px 0;
    border-color: transparent white transparent transparent;
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 15px;
    border-color: transparent transparent transparent white;
}

/* Point central - masqué */
.timeline-point {
    display: none;
}

/* Contenu */
.timeline-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.timeline-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.timeline-description {
    font-size: 16px;
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.timeline-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #5a6c7d;
}

.timeline-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2ecc71;
    font-weight: bold;
}

/* Animation au scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.3s; }
.timeline-item:nth-child(3) { animation-delay: 0.5s; }
.timeline-item:nth-child(4) { animation-delay: 0.7s; }

/* ===================================
   2. SERVICES SECTION
   =================================== */

.services {
    background: #fff;
    padding: 60px 0;
}

.services .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.services h2 {
    text-align: center;
    font-size: 25px;
    font-weight: 400;
    margin-bottom: 50px;
    color: #2c3e50;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-item h3 {
    color: black;
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.service-item p {
    color: #666;
    line-height: 1.6;
}

/* ===================================
   3. TESTIMONIALS SECTION
   =================================== */

.testimonials {
    padding: 80px 0;
    background: #f8f9fa;
}

.testimonials .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonials h2 {
    text-align: center;
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #2c3e50;
}

.testimonials-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: black;
    margin-bottom: 50px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.testimonial-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: bold;
    color: #2c3e50;
}

/* ===================================
   4. RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    /* Process Timeline Mobile */
    .timeline::before {
        left: 40px;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        margin-left: 60px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-bottom: 20px;
    }

    .timeline-content::after {
        display: none;
    }

    .timeline-point {
        left: 40px;
        transform: translate(-50%, -50%);
    }

    .timeline-item:hover .timeline-point {
        transform: translate(-50%, -50%) scale(1.1);
    }

    .process-title {
        font-size: 28px;
    }

    .timeline-icon {
        font-size: 36px;
    }

    /* Services Mobile */
    .services-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Testimonials Mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials h2 {
        font-size: 24px;
    }
    
    .testimonials-subtitle {
        font-size: 1em;
        padding: 0 20px;
    }
}