/* ═══════════════════════════════════════════════════════════════════════
 * LZ Étapes — Timeline horizontale avec icônes + numéros + connecteurs
 * Couleurs : #152738 (marine) / #808186 (gris)
 * ═══════════════════════════════════════════════════════════════════════ */

.lz-etp {
    position: relative;
    width: 100%;
    padding: 80px 0;
    background: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.lz-etp *,
.lz-etp *::before,
.lz-etp *::after {
    box-sizing: border-box;
}

.lz-etp__inner {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ─── EN-TÊTE ─────────────────────────────────────────────────────────── */
.lz-etp__header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.lz-etp__kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #808186;
    margin-bottom: 18px;
}

.lz-etp__kicker::before,
.lz-etp__kicker::after {
    content: '';
    width: 34px;
    height: 1px;
    background: #808186;
    display: inline-block;
}

.lz-etp__title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #152738;
    margin: 0 0 18px;
}

.lz-etp__title-accent {
    color: #808186;
    font-style: italic;
    font-weight: 700;
    position: relative;
}

.lz-etp__title-accent::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.05em;
    height: 2px;
    background: currentColor;
    opacity: 0.4;
}

.lz-etp__subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: #506069;
    margin: 0;
}

/* ─── STEPS GRID (Timeline horizontale) ───────────────────────────────── */
.lz-etp__steps {
    display: grid;
    grid-template-columns: repeat(var(--lz-step-count, 4), 1fr);
    gap: 0;
    align-items: flex-start;
}

.lz-etp__step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    text-align: center;
}

/* ─── ICÔNE CIRCULAIRE (avec anneau extérieur) ────────────────────────── */
.lz-etp__icon-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(21, 39, 56, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    z-index: 2;
    transition: transform 0.3s ease, background 0.3s ease;
}

.lz-etp__step:hover .lz-etp__icon-wrap {
    transform: scale(1.05);
}

.lz-etp__icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #152738;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 22px -6px rgba(21, 39, 56, 0.4);
    transition: box-shadow 0.3s ease;
}

.lz-etp__step:hover .lz-etp__icon-circle {
    box-shadow: 0 12px 28px -6px rgba(21, 39, 56, 0.55);
}

.lz-etp__icon-circle i,
.lz-etp__icon-circle svg {
    width: 1em;
    height: 1em;
    font-size: 1.5rem;
    color: inherit;
    fill: currentColor;
}

/* ─── NUMÉRO DISCRET (badge en haut-droite de l'icône) ────────────────── */
.lz-etp__number {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    color: #152738;
    border: 2px solid #152738;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 4px 12px -4px rgba(21, 39, 56, 0.3);
    z-index: 3;
}

.lz-etp--no-numbers .lz-etp__number {
    display: none;
}

/* ─── CONTENU TEXTE ───────────────────────────────────────────────────── */
.lz-etp__step-content {
    max-width: 280px;
}

.lz-etp__step-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #152738;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.lz-etp__step-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #506069;
    margin: 0;
}

/* ─── CONNECTEUR ENTRE ÉTAPES ─────────────────────────────────────────── */
.lz-etp__connector {
    position: absolute;
    top: 48px; /* centré sur l'icône (96px / 2 = 48px) */
    right: -50%;
    left: 50%;
    height: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
}

.lz-etp__connector::before {
    content: '';
    position: absolute;
    left: 60px; /* après le bord droit de l'anneau (~48px + petit gap) */
    right: 60px; /* avant le bord gauche de l'anneau suivant */
    height: 2px;
    background: #c8d3dc;
}

/* Ligne pointillée */
.lz-etp--connector-dashed .lz-etp__connector::before {
    background: none;
    border-top: 2px dashed #c8d3dc;
    height: 0;
}

/* Flèche au bout */
.lz-etp__connector-arrow {
    position: absolute;
    right: 52px;
    color: #c8d3dc;
    background: inherit;
    padding-left: 4px;
}

/* ─── ANIMATIONS au scroll ────────────────────────────────────────────── */
.lz-etp--animated .lz-etp__step {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.lz-etp--animated.is-revealed .lz-etp__step {
    opacity: 1;
    transform: none;
}

/* Stagger : chaque étape s'anime 150ms après la précédente */
.lz-etp--animated.is-revealed .lz-etp__step[data-step-idx="0"] { transition-delay: 0ms; }
.lz-etp--animated.is-revealed .lz-etp__step[data-step-idx="1"] { transition-delay: 150ms; }
.lz-etp--animated.is-revealed .lz-etp__step[data-step-idx="2"] { transition-delay: 300ms; }
.lz-etp--animated.is-revealed .lz-etp__step[data-step-idx="3"] { transition-delay: 450ms; }
.lz-etp--animated.is-revealed .lz-etp__step[data-step-idx="4"] { transition-delay: 600ms; }
.lz-etp--animated.is-revealed .lz-etp__step[data-step-idx="5"] { transition-delay: 750ms; }
.lz-etp--animated.is-revealed .lz-etp__step[data-step-idx="6"] { transition-delay: 900ms; }
.lz-etp--animated.is-revealed .lz-etp__step[data-step-idx="7"] { transition-delay: 1050ms; }

/* Fallback CSS : si JS ne tourne pas, animation se déclenche après délai */
.lz-etp--animated .lz-etp__step {
    animation: lz-etp-fallback 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

.lz-etp--animated.is-revealed .lz-etp__step {
    animation: none;
}

@keyframes lz-etp-fallback {
    to { opacity: 1; transform: none; }
}

/* ─── RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .lz-etp {
        padding: 60px 0;
    }
    .lz-etp__inner {
        padding: 0 30px;
    }
    .lz-etp__step {
        padding: 0 12px;
    }
    .lz-etp__connector::before {
        left: 40px;
        right: 40px;
    }
    .lz-etp__connector-arrow {
        right: 32px;
    }
}

@media (max-width: 860px) {
    /* Passage en grille 2 colonnes sur tablette */
    .lz-etp__steps {
        grid-template-columns: 1fr 1fr;
        gap: 50px 20px;
    }
    .lz-etp__connector {
        display: none;
    }
}

@media (max-width: 600px) {
    .lz-etp {
        padding: 50px 0;
    }
    .lz-etp__inner {
        padding: 0 20px;
    }
    .lz-etp__header {
        margin-bottom: 40px;
    }
    /* Passage en colonne unique sur mobile */
    .lz-etp__steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .lz-etp__step {
        padding: 0;
    }
    .lz-etp__icon-wrap {
        width: 80px;
        height: 80px;
        margin-bottom: 16px;
    }
    .lz-etp__icon-circle {
        width: 60px;
        height: 60px;
    }
    .lz-etp__icon-circle i,
    .lz-etp__icon-circle svg {
        font-size: 1.3rem;
    }
    .lz-etp__number {
        width: 28px;
        height: 28px;
        font-size: 0.78rem;
    }
    .lz-etp__step-content {
        max-width: 100%;
    }
    .lz-etp__step-title {
        font-size: 1.05rem;
    }
    .lz-etp__step-desc {
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lz-etp__step,
    .lz-etp__icon-wrap,
    .lz-etp__icon-circle {
        transition: none !important;
        animation: none !important;
    }
}

/* ─── SÉCURITÉ : mode éditeur Elementor toujours visible ──────────────── */
body.elementor-editor-active .lz-etp--animated .lz-etp__step {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}
