/* ============================================
   Fast2 — Page "Qu'est-ce que FAST ?"
   Réassurance, 4 dimensions, itinéraire zigzag
   ============================================ */

/* ── Hero / Réassurance ── */
.fast-hero {
    position: relative;
    padding: calc(var(--header-height) + var(--sp-4xl)) 0 var(--sp-3xl);
    background: var(--c-dark);
    color: var(--c-white);
    overflow: hidden;
    text-align: center;
}

.fast-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.fast-hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 70% 40%, rgba(233, 30, 99, 0.22) 0%, transparent 65%),
        radial-gradient(ellipse 50% 50% at 20% 65%, rgba(27, 58, 158, 0.14) 0%, transparent 65%);
}
.fast-hero__bg::after {
    content: '';
    position: absolute;
    width: 40%;
    height: 50%;
    top: 30%;
    left: 55%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.12) 0%, transparent 60%);
    filter: blur(80px);
}

.fast-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin-inline: auto;
}

.fast-hero__title {
    font-family: var(--ff-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    color: var(--c-white);
    margin-bottom: var(--sp-lg);
}

.fast-hero__lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: var(--lh-relaxed);
    max-width: 580px;
    margin-inline: auto;
}

.fast-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-primary), transparent);
    opacity: 0.2;
}


/* ── 4 Dimensions — grille ── */
.fast-dims {
    padding: var(--sp-4xl) 0;
    background: var(--c-light);
}

.fast-dims__heading {
    font-family: var(--ff-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: var(--fw-bold);
    color: var(--c-dark);
    text-align: center;
    margin-bottom: var(--sp-3xl);
}

/* ── Puzzle F.A.S.T. — 4 pièces jigsaw ── */
.fast-puzzle {
    position: relative;
    max-width: 740px;
    margin: 0 auto;
    aspect-ratio: 740 / 520;
}

/* SVG defs caché */
.fast-puzzle__defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Pièce — couvre tout le conteneur, clippée à sa forme */
.fast-puzzle__piece {
    position: absolute;
    inset: 0;
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.fast-puzzle__piece--tl {
    clip-path: url(#jig-tl);
    background: rgba(233, 30, 99, 0.07);
    z-index: 4;
}
.fast-puzzle__piece--tr {
    clip-path: url(#jig-tr);
    background: rgba(27, 58, 158, 0.07);
    z-index: 3;
}
.fast-puzzle__piece--bl {
    clip-path: url(#jig-bl);
    background: rgba(245, 166, 35, 0.07);
    z-index: 2;
}
.fast-puzzle__piece--br {
    clip-path: url(#jig-br);
    background: rgba(16, 185, 129, 0.07);
    z-index: 1;
}

/* Contenu texte — positionné dans le quadrant visible */
.fast-puzzle__content {
    position: absolute;
    display: flex;
    flex-direction: column;
}
.fast-puzzle__content--tl {
    top: 8%;
    left: 6%;
    width: 40%;
    height: 40%;
}
.fast-puzzle__content--tr {
    top: 8%;
    right: 6%;
    width: 40%;
    height: 40%;
    text-align: right;
    align-items: flex-end;
}
.fast-puzzle__content--bl {
    bottom: 8%;
    left: 6%;
    width: 40%;
    height: 40%;
    justify-content: flex-end;
}
.fast-puzzle__content--br {
    bottom: 8%;
    right: 6%;
    width: 40%;
    height: 40%;
    justify-content: flex-end;
    text-align: right;
    align-items: flex-end;
}

/* Lettre */
.fast-puzzle__letter {
    display: block;
    font-family: var(--ff-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--fw-bold);
    line-height: 1;
    margin-bottom: var(--sp-xs);
}
.fast-puzzle__letter--pink  { color: var(--c-primary); }
.fast-puzzle__letter--blue  { color: var(--c-secondary); }
.fast-puzzle__letter--amber { color: var(--c-tertiary); }
.fast-puzzle__letter--green { color: var(--c-success); }

.fast-puzzle__title {
    font-family: var(--ff-display);
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    font-weight: var(--fw-semibold);
    color: var(--c-dark);
    margin-bottom: var(--sp-2xs);
    line-height: var(--lh-tight);
}

.fast-puzzle__text {
    font-size: clamp(0.75rem, 1.1vw, 0.85rem);
    color: var(--c-text);
    line-height: var(--lh-relaxed);
}

/* ── Animation : état initial (pièces écartées) ── */
.fast-puzzle__piece--tl { transform: translate(-90px, -70px) rotate(-6deg); }
.fast-puzzle__piece--tr { transform: translate(90px, -70px) rotate(6deg); }
.fast-puzzle__piece--bl { transform: translate(-90px, 70px) rotate(6deg); }
.fast-puzzle__piece--br { transform: translate(90px, 70px) rotate(-6deg); }

/* ── Animation : état assemblé ── */
.fast-puzzle.is-visible .fast-puzzle__piece--tl { transform: translate(0, 0); transition-delay: 0.1s; }
.fast-puzzle.is-visible .fast-puzzle__piece--tr { transform: translate(0, 0); transition-delay: 0.25s; }
.fast-puzzle.is-visible .fast-puzzle__piece--bl { transform: translate(0, 0); transition-delay: 0.4s; }
.fast-puzzle.is-visible .fast-puzzle__piece--br { transform: translate(0, 0); transition-delay: 0.55s; }


/* ── Itinéraire — Zigzag timeline ── */
.fast-journey {
    padding: var(--sp-4xl) 0;
    background: var(--c-white);
}

.fast-journey__heading {
    font-family: var(--ff-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: var(--fw-bold);
    color: var(--c-dark);
    text-align: center;
    margin-bottom: var(--sp-4xl);
}

.fast-journey__timeline {
    position: relative;
    max-width: 860px;
    margin-inline: auto;
    padding: 0 var(--sp-lg);
}

/* Ligne verticale centrale */
.fast-journey__line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(233, 30, 99, 0.2) 5%,
        rgba(233, 30, 99, 0.2) 95%,
        transparent
    );
    transform: translateX(-50%);
}

/* ── Bande Assistance continue ── */
.fast-journey__assist-band {
    position: absolute;
    left: 0;
    right: 0;
    /* Positionnée sur les étapes 3-6 environ */
    top: 38%;
    bottom: 8%;
    background: linear-gradient(
        180deg,
        rgba(27, 58, 158, 0.03) 0%,
        rgba(27, 58, 158, 0.06) 50%,
        rgba(27, 58, 158, 0.03) 100%
    );
    border-left: 2px solid rgba(27, 58, 158, 0.12);
    border-right: 2px solid rgba(27, 58, 158, 0.12);
    border-radius: var(--radius-lg);
    pointer-events: none;
    z-index: 0;
}
.fast-journey__assist-label {
    position: absolute;
    top: var(--sp-sm);
    right: var(--sp-md);
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs, 0.7rem);
    color: var(--c-secondary);
    letter-spacing: var(--ls-wide);
    opacity: 0.6;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ── Step générique ── */
.fast-journey__step {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--sp-3xl);
    z-index: 1;
}
.fast-journey__step:last-of-type {
    margin-bottom: 0;
}

/* Dot numéroté sur la ligne centrale */
.fast-journey__dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 0 0 4px var(--c-white), 0 0 0 6px rgba(233, 30, 99, 0.2);
}
.fast-journey__dot span {
    font-family: var(--ff-mono);
    font-size: var(--fs-small);
    font-weight: var(--fw-bold);
    color: var(--c-white);
    line-height: 1;
}

/* Contenu de step */
.fast-journey__content {
    width: calc(50% - 40px);
    padding: var(--sp-lg);
    background: var(--c-light);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(13, 13, 26, 0.06);
}

/* Step gauche : contenu à gauche, dot au centre */
.fast-journey__step--left {
    justify-content: flex-start;
}
.fast-journey__step--left .fast-journey__content {
    margin-right: auto;
    text-align: right;
}

/* Step droite : contenu à droite, dot au centre */
.fast-journey__step--right {
    justify-content: flex-end;
}
.fast-journey__step--right .fast-journey__content {
    margin-left: auto;
    text-align: left;
}

/* Step 4 — Assistance : pleine largeur, style distinct */
.fast-journey__step--full {
    justify-content: center;
}
.fast-journey__content--assist {
    width: calc(100% - 80px);
    max-width: 600px;
    margin-inline: auto;
    text-align: center;
    background: rgba(27, 58, 158, 0.06);
    border-color: rgba(27, 58, 158, 0.15);
}
.fast-journey__dot--assist {
    background: var(--c-secondary);
    box-shadow: 0 0 0 4px var(--c-white), 0 0 0 6px rgba(27, 58, 158, 0.2);
}

.fast-journey__step-title {
    font-family: var(--ff-display);
    font-size: var(--fs-h4);
    font-weight: var(--fw-semibold);
    color: var(--c-dark);
    margin-bottom: var(--sp-xs);
}

.fast-journey__step-text {
    font-size: var(--fs-small);
    color: var(--c-text);
    line-height: var(--lh-relaxed);
}


/* ── Destination ── */
.fast-journey__destination {
    max-width: 560px;
    margin: var(--sp-4xl) auto 0;
    text-align: center;
    padding: var(--sp-xl) var(--sp-lg);
    background: var(--c-dark);
    color: var(--c-white);
    border-radius: var(--radius-lg);
    position: relative;
}
.fast-journey__destination::before {
    content: '';
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 24px;
    background: var(--c-primary);
}
.fast-journey__destination p {
    font-family: var(--ff-display);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-tight);
    margin: 0;
}


/* ── CTA ── */
.fast-cta {
    padding: var(--sp-4xl) 0;
    background: var(--c-surface);
}

.fast-cta__inner {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
}

.fast-cta__text {
    font-family: var(--ff-display);
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: var(--fw-semibold);
    color: var(--c-dark);
    line-height: var(--lh-tight);
    margin-bottom: var(--sp-xl);
}

.fast-cta .btn {
    min-width: 280px;
}


/* ── Responsive ── */
@media (max-width: 767px) {
    .fast-hero {
        padding: calc(var(--header-height) + var(--sp-2xl)) 0 var(--sp-2xl);
    }

    /* Puzzle : passage en grille classique sur mobile */
    .fast-puzzle {
        position: static;
        aspect-ratio: auto;
        max-width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--sp-lg);
    }
    .fast-puzzle__piece,
    .fast-puzzle__piece--tl,
    .fast-puzzle__piece--tr,
    .fast-puzzle__piece--bl,
    .fast-puzzle__piece--br {
        position: static;
        clip-path: none;
        background: var(--c-white);
        border-radius: var(--radius-lg);
        border: 1px solid rgba(13, 13, 26, 0.06);
        box-shadow: 0 2px 12px rgba(13, 13, 26, 0.04);
        transform: none;
    }
    .fast-puzzle__content {
        position: static;
        width: auto;
        height: auto;
        padding: var(--sp-xl) var(--sp-lg);
        text-align: left !important;
        align-items: flex-start !important;
    }
    .fast-puzzle__defs {
        display: none;
    }
    .fast-puzzle.is-visible .fast-puzzle__piece--tl,
    .fast-puzzle.is-visible .fast-puzzle__piece--tr,
    .fast-puzzle.is-visible .fast-puzzle__piece--bl,
    .fast-puzzle.is-visible .fast-puzzle__piece--br {
        transform: none;
    }

    /* Timeline : passage en linéaire (tous à gauche) */
    .fast-journey__line {
        left: 20px;
    }

    .fast-journey__step {
        flex-direction: row;
        align-items: flex-start;
    }

    .fast-journey__dot {
        position: relative;
        left: 0;
        transform: none;
        flex-shrink: 0;
    }

    .fast-journey__content {
        width: auto;
        flex: 1;
        margin-left: var(--sp-md);
        text-align: left !important;
    }

    .fast-journey__step--left,
    .fast-journey__step--right,
    .fast-journey__step--full {
        justify-content: flex-start;
    }

    .fast-journey__step--left .fast-journey__content,
    .fast-journey__step--right .fast-journey__content {
        margin-right: 0;
        margin-left: var(--sp-md);
    }

    .fast-journey__content--assist {
        width: auto;
        max-width: none;
    }

    .fast-journey__assist-band {
        left: 10px;
        right: auto;
        width: 22px;
        border-right: 2px solid rgba(27, 58, 158, 0.12);
        border-radius: var(--radius-sm);
    }
    .fast-journey__assist-label {
        display: none;
    }

    .fast-journey__destination {
        margin-top: var(--sp-3xl);
    }

    .fast-cta .btn {
        width: 100%;
        max-width: 320px;
    }
}

/* Tablette : puzzle plus petit */
@media (min-width: 768px) and (max-width: 1023px) {
    .fast-puzzle {
        max-width: 560px;
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .fast-puzzle__piece { transition: none; }
    .fast-puzzle__piece--tl,
    .fast-puzzle__piece--tr,
    .fast-puzzle__piece--bl,
    .fast-puzzle__piece--br { transform: none; }
}
