/* ========================================
   Comment ça fonctionne Section Styles
   ======================================== */

.comment_ca_fonctionne_section {
    position: relative;
    padding-top: 110px !important;
    padding-bottom: 110px !important;
    overflow: visible;
    background-image: url('../img/bellonie-img/dotted-svg.svg');
    background-size: 100% auto;
    background-position: center 45%;
    background-repeat: no-repeat;
}

/* Séparateur en haut */
.comment_ca_fonctionne_separator {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    line-height: 0;
    pointer-events: none;
    z-index: 10;
}

.comment_ca_fonctionne_separator--top {
    top: 0;
}

.comment_ca_fonctionne_separator img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Titre de la section */
.section_title_ccf {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #514D40;
    margin-bottom: 80px;
    text-transform: uppercase;
}

/* Container des étapes */
.steps_container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    z-index: 1;
}

/* Chaque étape */
.step_item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

/* Wrapper d'image de main (pas de cercle CSS, le cercle est dans l'image) */
.step_image_wrapper {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
}

.step_image_wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.step_image_wrapper svg {
    width: 100%;
    height: 100%;
}

/* Titre de l'étape */
.step_title {
    font-size: 28px;
    font-weight: 600;
    color: #514D40;
    margin-bottom: 12px;
    line-height: 1.3;
}

/* Description de l'étape */
.step_description {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.6;
    color: #514D40;
    max-width: 250px;
    margin: 0 auto;
}


/* Responsive Styles */
@media (max-width: 1199px) {
    .section_title_ccf {
        font-size: 24px;
        margin-bottom: 60px;
    }
    
    .steps_container {
        gap: 30px;
    }
    
    .step_image_wrapper {
        width: 120px;
        height: 120px;
    }
    
    .step_title {
        font-size: 20px;
    }
    
    .step_description {
        font-size: 15px;
        max-width: 220px;
    }
    
    .step_item:not(:last-child)::after {
        right: -30px;
        width: 60px;
    }
}

@media (max-width: 991px) {
    .steps_container {
        flex-wrap: wrap;
        gap: 50px;
        justify-content: center;
    }
    
    .step_item {
        flex: 0 0 calc(50% - 25px);
        max-width: 300px;
    }
    
    .step_item:not(:last-child)::after {
        display: none;
    }
    
    .section_title_ccf {
        font-size: 22px;
        margin-bottom: 50px;
    }
}

@media (max-width: 767px) {
    .comment_ca_fonctionne_section {
        padding-top: 60px;
        padding-bottom: 60px;
        background-image: none !important;  /* Supprimer l'image de fond sur mobile */
    }
    
    .section_title_ccf {
        font-size: 20px;
        margin-bottom: 40px;
        letter-spacing: 2px;
    }
    
    .steps_container {
        flex-direction: column;
        align-items: center;  /* Centrer les blocs */
        gap: 40px;
    }
    
    .step_item {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;  /* Prendre toute la largeur disponible */
    }
    
    .step_image_wrapper {
        width: 110px;
        height: 110px;
        margin-left: auto;
        margin-right: auto;  /* Centrer l'image */
    }
    
    .step_title {
        font-size: 18px;
    }
    
    .step_description {
        font-size: 14px;
        max-width: 100%;
    }
}

@media (max-width: 575px) {
    .comment_ca_fonctionne_section {
        background-image: none !important;  /* Pas d'image de fond */
    }
    
    .section_title_ccf {
        font-size: 18px;
    }
    
    .step_image_wrapper {
        width: 100px;
        height: 100px;
        margin-left: auto;
        margin-right: auto;  /* Centrer */
    }
    
    .step_title {
        font-size: 16px;
    }
    
    .step_description {
        font-size: 13px;
    }
}

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

.section_title_ccf {
    animation: fadeInUp 0.6s ease-out;
}

.step_item {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.step_item:nth-child(1) {
    animation-delay: 0.2s;
}

.step_item:nth-child(2) {
    animation-delay: 0.4s;
}

.step_item:nth-child(3) {
    animation-delay: 0.6s;
}

.step_item:nth-child(4) {
    animation-delay: 0.8s;
}

/* Effet hover sur les images */
.step_image_wrapper {
    transition: transform 0.3s ease;
}

.step_item:hover .step_image_wrapper {
    transform: scale(1.05);
}

