/* ==========================================================================
   Línea de tiempo "Votre parcours en 6 étapes"
   Usa las fuentes y colores ya definidos en style.css (literataregular,
   bon_vivant_serif_boldregular, Mulish, --primary-color, --second-color).
   ========================================================================== */

.parcours-timeline {
    --pt-bg: #ebebe8;
    --pt-line-thin: #cfcecb;
    --pt-line-thick: #1a1a1a;
    --pt-dot: #1a1a1a;
    --pt-text: #1a1a1a;
    --pt-text-muted: #6f6f6c;
    --pt-photo-w: 320px;
    --pt-gap: 64px;
    --pt-item-gap: 150px;

    position: relative;
    width: 100%;
    background: var(--pt-bg);
    padding: 110px 24px;
    overflow: hidden;
}

.parcours-timeline__inner {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
}

/* ---------------------------- Encabezado ---------------------------- */

.parcours-timeline__header {
    margin-bottom: 100px;
}

.parcours-timeline__title {
    margin: 0;
    color: var(--pt-text) !important;
    font-size: clamp(32px, 4.2vw, 54px);
    line-height: 1.08;
    text-transform: uppercase;
}

/* ------------------------------- Lista ------------------------------- */

.parcours-timeline__list {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0;
    padding: 0;
}

.parcours-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "photo text";
    align-items: center;
    column-gap: var(--pt-gap);
}

.parcours-item + .parcours-item {
    margin-top: var(--pt-item-gap);
}

.parcours-item:nth-child(even) {
    grid-template-areas: "text photo";
}

/* --------------------------- Bloque de texto --------------------------- */

.item-text {
    grid-area: text;
    position: relative;
    padding-left: 56px;
}

.parcours-item:nth-child(even) .item-text {
    padding-left: 40px;
    padding-right: 0;
}

.item-number {
    display: block;
    font-family: "literataregular", serif;
    font-weight: 400;
    font-size: clamp(40px, 4.5vw, 64px);
    line-height: 1;
    color: var(--pt-text);
    margin-bottom: 6px;
}

.item-title {
    font-family: "Mulish-Bold", sans-serif;
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--pt-text);
    margin: 0 0 10px;
}

.item-desc {
    font-family: "Mulish-Regular", sans-serif;
    font-weight: 300;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--pt-text-muted);
    max-width: 320px;
    margin: 0;
}

/* --------------------------------- Foto --------------------------------- */

.item-photo {
    grid-area: photo;
    max-width: var(--pt-photo-w);
}

.parcours-item:nth-child(odd) .item-photo {
    transform: translateY(-30px);
    justify-self: end;
}

.parcours-item:nth-child(even) .item-photo {
    transform: translateY(40px);
    justify-self: start;
}

.item-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #d8d8d5; /* placeholder mientras cargan/faltan las fotos reales */
}

/* ------------------------------- Puntos ------------------------------- */

.dot-marker {
    position: absolute;
    top: 14px;
    left: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot-marker__core {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pt-dot);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.dot-marker::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--pt-dot);
    opacity: 0;
    transform: scale(0.4);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.dot-marker.is-active::before {
    opacity: 1;
    transform: scale(1);
}

.dot-marker.is-active .dot-marker__core {
    transform: scale(1.15);
}

/* ------------------------- Línea SVG (fina/gruesa) ------------------------- */

.parcours-timeline__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.pt-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pt-line--bg {
    stroke: var(--pt-line-thin);
    stroke-width: 1.5;
}

.pt-line--progress {
    stroke: var(--pt-line-thick);
    stroke-width: 3;
}

/* -------------------- Animación de entrada por grupo -------------------- */

/* Estado por defecto: visible. Si JS/GSAP no carga, el contenido no se oculta. */
.parcours-timeline--js .anim-el {
    opacity: 0;
    transform: translateY(28px);
}

/* ------------------------------ Responsive ------------------------------ */

@media screen and (max-width: 900px) {
    .parcours-timeline {
        --pt-photo-w: 260px;
        --pt-item-gap: 100px;
        padding: 80px 20px;
    }
}

@media screen and (max-width: 767px) {
    .parcours-timeline__header {
        margin-bottom: 64px;
    }

    .parcours-item,
    .parcours-item:nth-child(even) {
        grid-template-columns: 1fr;
        grid-template-areas:
            "photo"
            "text";
        row-gap: 24px;
    }

    .item-text,
    .parcours-item:nth-child(even) .item-text {
        padding-left: 48px;
        padding-right: 0;
    }

    .item-desc {
        max-width: none;
    }

    .parcours-item:nth-child(odd) .item-photo,
    .parcours-item:nth-child(even) .item-photo {
        transform: none;
        justify-self: stretch;
        max-width: 100%;
    }

    .parcours-item + .parcours-item {
        margin-top: 70px;
    }
}
