.sqelm-lx {
    --sqelm-lx-gouttiere: 80px;
    --sqelm-lx-piste: #E2DFD2;
    --sqelm-lx-trace: #3F5B5E;
    --sqelm-lx-epaisseur: 2px;
    --sqelm-lx-repere: #3F5B5E;
    --sqelm-lx-repere-taille: 16px;
    --sqelm-lx-repere-arrondi: 3px;
    --sqelm-lx-fond: #FFFFFF;
    --sqelm-lx-ratio: 2.03;
    --sqelm-lx-arrondi-photo: 20px;
    --sqelm-lx-espace: 144px;
    --sqelm-lx-carte-l: 460px;
    --sqelm-lx-chevauchement: 48px;
    --sqelm-lx-p: 1;
    position: relative;
    width: 100%;
    padding-left: var(--sqelm-lx-gouttiere);
    box-sizing: border-box;
}

/* Line: a light track, and the drawn part on top (full by default, scroll-driven with JS) */
.sqelm-lx__piste {
    position: absolute;
    top: 0;
    bottom: var(--sqelm-lx-espace);
    left: calc(var(--sqelm-lx-gouttiere) / 2 - var(--sqelm-lx-epaisseur) / 2);
    width: var(--sqelm-lx-epaisseur);
    background: var(--sqelm-lx-piste);
}

.sqelm-lx__trace {
    position: absolute;
    inset: 0;
    background: var(--sqelm-lx-trace);
    transform-origin: top;
    transform: scaleY(var(--sqelm-lx-p));
}

.sqelm-lx .sqelm-lx__liste {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Markers sit on the line, in the gutter */
.sqelm-lx__repere,
.sqelm-lx__depart-repere {
    position: absolute;
    left: calc(var(--sqelm-lx-gouttiere) / -2 - var(--sqelm-lx-repere-taille) / 2);
    width: var(--sqelm-lx-repere-taille);
    height: var(--sqelm-lx-repere-taille);
    border-radius: var(--sqelm-lx-repere-arrondi);
    background: var(--sqelm-lx-repere);
    box-shadow: 0 0 0 6px var(--sqelm-lx-fond);
}

.sqelm-lx__repere {
    top: 40px;
}

/* Starting point */
.sqelm-lx .sqelm-lx__depart {
    position: relative;
    margin: 0;
    padding: 0 0 72px;
}

.sqelm-lx__depart-repere {
    --sqelm-lx-repere-taille: 28px;
    top: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1B1B1B;
    color: #FFFFFF;
}

.sqelm-lx .sqelm-lx__depart-texte {
    margin: 0;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.3;
}

/* Place */
.sqelm-lx .sqelm-lx__item {
    position: relative;
    margin: 0 0 calc(var(--sqelm-lx-chevauchement) + var(--sqelm-lx-espace));
    padding: 0;
}

.sqelm-lx .sqelm-lx__item:last-child {
    margin-bottom: calc(var(--sqelm-lx-chevauchement) + var(--sqelm-lx-espace));
}

.sqelm-lx__media {
    position: relative;
    aspect-ratio: var(--sqelm-lx-ratio);
    border-radius: var(--sqelm-lx-arrondi-photo);
    overflow: hidden;
    background: #E4DDD0;
}

.sqelm-lx .sqelm-lx__photo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border-radius: 0;
}

/* Caption card, overlapping the bottom of the photo */
.sqelm-lx__carte {
    position: absolute;
    bottom: calc(var(--sqelm-lx-chevauchement) * -1);
    left: 40px;
    width: min(var(--sqelm-lx-carte-l), calc(100% - 80px));
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 32px;
    border-radius: 16px;
    background: #FFFFFF;
}

.sqelm-lx__item--droite .sqelm-lx__carte {
    left: auto;
    right: 40px;
}

.sqelm-lx-ombre-yes .sqelm-lx__carte {
    box-shadow: 0 20px 48px rgba(27, 27, 27, 0.12);
}

.sqelm-lx .sqelm-lx__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 16px;
    margin: 0;
}

.sqelm-lx .sqelm-lx__categorie {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #55524A;
}

.sqelm-lx__icone {
    display: inline-flex;
    width: 20px;
    height: 20px;
    color: currentColor;
}

.sqelm-lx__icone svg,
.sqelm-lx .sqelm-lx__icone-img {
    width: 100%;
    height: 100%;
}

/* Filled icons take the category text colour */
.sqelm-lx__icone svg {
    fill: currentColor;
}

.sqelm-lx .sqelm-lx__temps {
    font-size: 15px;
    font-weight: 500;
    color: #1B1B1B;
}

.sqelm-lx .sqelm-lx__nom {
    margin: 0;
    font-size: 34px;
    font-weight: 300;
    line-height: 1.1;
    color: #1B1B1B;
}

.sqelm-lx .sqelm-lx__sous-titre {
    margin: -4px 0 0;
    font-size: 16px;
    line-height: 1.4;
    color: #55524A;
}

.sqelm-lx .sqelm-lx__texte {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
    color: #3A3A35;
}

/* "En savoir plus": text link, not a button */
.sqelm-lx a.sqelm-lx__lien {
    align-self: flex-start;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 0;
    color: #1B1B1B;
    font-size: 16px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.sqelm-lx a.sqelm-lx__lien:hover {
    color: #6E6B45;
}

.sqelm-lx a.sqelm-lx__lien:focus-visible {
    outline: 2px solid #1B1B1B;
    outline-offset: 3px;
    border-radius: 2px;
}

.sqelm-lx__fleche {
    display: inline-block;
    transition: transform 0.2s ease;
}

.sqelm-lx a.sqelm-lx__lien:hover .sqelm-lx__fleche {
    transform: translateX(3px);
}

.sqelm-lx__sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.sqelm-lx__aide {
    padding: 24px;
    border: 1px dashed #C4C4C4;
    text-align: center;
    font-size: 14px;
    color: #666666;
}

/* Phone: the card sits under the photo, slightly overlapping it */
@media (max-width: 1024px) {
    .sqelm-lx {
        --sqelm-lx-ratio: 1.6;
    }
}

@media (max-width: 767px) {
    /* Fallbacks; the widget's responsive controls override them */
    .sqelm-lx {
        --sqelm-lx-gouttiere: 36px;
        --sqelm-lx-ratio: 1.33;
        --sqelm-lx-espace: 64px;
    }
    .sqelm-lx .sqelm-lx__item,
    .sqelm-lx .sqelm-lx__item:last-child {
        margin-bottom: var(--sqelm-lx-espace);
    }
    .sqelm-lx__carte,
    .sqelm-lx__item--droite .sqelm-lx__carte {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        width: auto;
        margin: -32px 12px 0;
    }
    .sqelm-lx__repere {
        top: 24px;
    }
    .sqelm-lx .sqelm-lx__nom {
        font-size: 28px;
    }
}

/* Scroll reveal: only when the script runs and the visitor accepts motion */
@media (prefers-reduced-motion: no-preference) {
    .sqelm-lx.is-anim .sqelm-lx__item {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
    }
    .sqelm-lx.is-anim .sqelm-lx__repere {
        transform: scale(0);
        transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s;
    }
    .sqelm-lx.is-anim .sqelm-lx__photo {
        transform: scale(1.06);
        transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
    }
    .sqelm-lx.is-anim .sqelm-lx__item.is-visible {
        opacity: 1;
        transform: none;
    }
    .sqelm-lx.is-anim .sqelm-lx__item.is-visible .sqelm-lx__repere,
    .sqelm-lx.is-anim .sqelm-lx__item.is-visible .sqelm-lx__photo {
        transform: none;
    }
}

/* 1.9.0 lesson: never let Elementor's entrance-animation class hide this widget without settings */
.elementor-widget-sqelm-lieux.elementor-invisible:not([data-settings]) {
    visibility: visible;
}
