/* ====================================
   CHIPO PROCESSUS - TIMELINE
   ==================================== */

.chipo-process-section {
    width: 100%;
    padding: 80px 5%;
    background: #f8f9fa;
}

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

/* ====================================
   HEADER
   ==================================== */

.chipo-process-header {
    text-align: center;
    margin-bottom: 60px;
}

.chipo-process-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.chipo-process-subtitle {
    font-size: 20px;
    color: #5a5a5a;
    max-width: 600px;
    margin: 0 auto;
}

/* ====================================
   TIMELINE
   ==================================== */

.chipo-process-timeline {
    position: relative;
    padding: 40px 0;
}

/* Ligne centrale */
.chipo-process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #51a4b4, #6ec3d4);
    transform: translateX(-50%);
}

/* ====================================
   ÉTAPES
   ==================================== */

.chipo-step {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

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

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

/* Étape gauche */
.chipo-step-left {
    grid-template-areas: "card number";
}

.chipo-step-left .chipo-step-card {
    grid-area: card;
    text-align: right;
}

.chipo-step-left .chipo-step-number {
    grid-area: number;
}

/* Étape droite */
.chipo-step-right {
    grid-template-areas: "number card";
}

.chipo-step-right .chipo-step-card {
    grid-area: card;
    text-align: left;
}

.chipo-step-right .chipo-step-number {
    grid-area: number;
}

/* ====================================
   NUMÉRO D'ÉTAPE
   ==================================== */

.chipo-step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(81, 164, 180, 0.3);
    margin: 0 auto;
    z-index: 10;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ====================================
   CARTE ÉTAPE
   ==================================== */

.chipo-step-card {
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.chipo-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* Flèche vers le numéro */
.chipo-step-left .chipo-step-card::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid #ffffff;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
}

.chipo-step-right .chipo-step-card::after {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-right: 20px solid #ffffff;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
}

/* ====================================
   IMAGE
   ==================================== */

.chipo-step-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #51a4b4;
    box-shadow: 0 5px 20px rgba(81, 164, 180, 0.2);
}

.chipo-step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.chipo-step-card:hover .chipo-step-image img {
    transform: scale(1.1);
}

/* ====================================
   CONTENU
   ==================================== */

.chipo-step-content {
    text-align: center;
}

.chipo-step-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.chipo-step-description {
    font-size: 16px;
    line-height: 1.6;
    color: #5a5a5a;
    margin: 0;
}

/* ====================================
   RESPONSIVE - TABLET
   ==================================== */

@media (max-width: 1024px) {
    .chipo-process-timeline::before {
        left: 40px;
    }
    
    .chipo-step {
        grid-template-columns: 80px 1fr;
        gap: 30px;
        grid-template-areas: "number card" !important;
    }
    
    .chipo-step-card {
        text-align: left !important;
    }
    
    .chipo-step-left .chipo-step-card::after,
    .chipo-step-right .chipo-step-card::after {
        display: none;
    }
    
    .chipo-step-number {
        margin: 0;
    }
}

/* ====================================
   RESPONSIVE - MOBILE
   ==================================== */

@media (max-width: 768px) {
    .chipo-process-section {
        padding: 60px 20px;
    }
    
    .chipo-process-title {
        font-size: 32px;
    }
    
    .chipo-process-subtitle {
        font-size: 16px;
    }
    
    .chipo-process-timeline::before {
        left: 30px;
    }
    
    .chipo-step {
        grid-template-columns: 60px 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .chipo-step-number {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .chipo-step-card {
        padding: 20px;
    }
    
    .chipo-step-image {
        width: 80px;
        height: 80px;
    }
    
    .chipo-step-title {
        font-size: 20px;
    }
    
    .chipo-step-description {
        font-size: 14px;
    }
}

/* ====================================
   ACCESSIBILITÉ
   ==================================== */

@media (prefers-reduced-motion: reduce) {
    .chipo-step,
    .chipo-step-number {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
