/* =============================================
   Section Déroulement — Ferme des 7 Fontaines
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap');

.section-deroulement {
    font-family: 'Ubuntu', sans-serif;
    max-width: 1064px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* --- Liste --- */
.deroulement-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

/* --- Piste grise (fond de la barre) --- */
.deroulement-track {
    position: absolute;
    left: 29px;
    top: 60px;
    bottom: 30px;
    width: 3px;
    background: rgba(41, 104, 45, 0.15);
    border-radius: 3px;
    z-index: 0;
    transform: translateX(-50%);
}

/* --- Barre de progression (remplie au scroll) --- */
.deroulement-progress {
    position: absolute;
    left: 29px;
    top: 60px;
    width: 3px;
    height: 0;
    background: #132417;
    border-radius: 3px;
    z-index: 1;
    transform: translateX(-50%);
    transition: height 0.1s linear;
}

/* --- Ligne du step --- */
.deroulement-item {
    display: flex;
    align-items: center;
    gap: 49px;
    position: relative;
    z-index: 2;
}

/* --- Badge numéroté --- */
.step-badge {
    width: 60px;
    min-width: 60px;
    height: 60px;
    background: #29682D;
    border-radius: 50%;
    border: 0.8px solid #F3B94B;
    border-bottom-width: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #FAFAFA;
    flex-shrink: 0;
}

/* --- Card (état par défaut = inactif / blanc) --- */
.step-card {
    flex: 1;
    background: #ffffff;
    outline: 3px solid #29682D;
    border-radius: 36px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    min-width: 0;
    transition: background 0.4s ease;
}

/* --- Contenu --- */
.step-card__content {
    flex: 1;
    padding: 24px 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

/* --- Titre (par défaut = vert sur fond blanc) --- */
.step-card__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.36;
    margin: 0;
    color: #29682D;
    transition: color 0.4s ease;
}

/* --- Séparateur (trait or pur CSS, pas de fichier externe) --- */
.step-card__separator {
    width: 100%;
    max-width: 671px;
    height: 1px;
    background: #F3B94B;
    border: 0;
    margin: 0;
    display: block;
}

/* En état actif (fond vert), le trait passe en blanc translucide */
.deroulement-item.is-active .step-card__separator {
    background: rgba(250, 250, 250, 0.4);
}

/* --- Description (par défaut = vert sombre sur fond blanc) --- */
.step-card__desc {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.26;
    max-width: 671px;
    color: #132417;
    transition: color 0.4s ease;
}

.step-card__desc p {
    margin: 0 0 8px;
}
.step-card__desc p:last-child {
    margin-bottom: 0;
}
.step-card__desc ul,
.step-card__desc ol {
    margin: 4px 0 0 20px;
    padding: 0;
}
.step-card__desc li {
    margin-bottom: 4px;
}

/* --- Image --- */
.step-card__img {
    width: 214px;
    min-width: 214px;
    object-fit: cover;
    border-radius: 0 36px 36px 0;
    display: block;
}

/* =============================================
   ÉTAT ACTIF — la card a été "atteinte" par la barre de progression
   ============================================= */
.deroulement-item.is-active .step-card {
    background: #29682D;
}

.deroulement-item.is-active .step-card__title {
    color: #FAFAFA;
}

.deroulement-item.is-active .step-card__desc {
    color: #FAFAFA;
}

/* =============================================
   Responsive — tablette
   ============================================= */
@media (max-width: 900px) {
    .step-card__img {
        width: 160px;
        min-width: 160px;
    }

    .step-card__content {
        padding: 20px 24px;
    }

    .step-card__title {
        font-size: 19px;
    }

    .deroulement-item {
        gap: 24px;
    }
}

/* =============================================
   Responsive — mobile
   ============================================= */
@media (max-width: 600px) {
    .deroulement-track,
    .deroulement-progress {
        display: none;
    }

    .deroulement-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .step-card {
        flex-direction: column;
        border-radius: 24px;
        width: 100%;
    }

    .step-card__img {
        width: 100%;
        min-width: unset;
        height: 200px;
        border-radius: 0 0 24px 24px;
    }

    .step-card__content {
        padding: 20px 20px;
    }

    .step-card__title {
        font-size: 18px;
    }

    .step-card__desc {
        font-size: 15px;
    }
}