/* =====================================================
   Emie Slider – style.css  (frontend + éditeur)
===================================================== */

/* Wrapper principal */
.emie-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Track défilant */
.emie-slider-track {
    display: flex;
    will-change: transform;
    transition: transform 0.5s ease;
}

/* ── Carte ── */
.emie-card {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
    transition: transform .25s ease, box-shadow .25s ease;
    cursor: pointer;
}

.emie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

/* Thumbnail */
.emie-card__thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* Corps de la carte */
.emie-card__body {
    padding: 14px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Titre */
.emie-card__title {
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

/* Extrait */
.emie-card__excerpt {
    margin: 0;
    font-size: .875rem;
    line-height: 1.6;
    color: #555;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* ── Boutons nav ── */
.emie-slider-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.emie-nav-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s;
    line-height: 1;
}

.emie-nav-btn:hover {
    background: #222;
    border-color: #222;
    color: #fff;
}

.emie-slider-empty {
    padding: 20px;
    text-align: center;
    color: #888;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .emie-card {
        min-width: 80% !important;
        max-width: 80% !important;
    }
}

@media (max-width: 480px) {
    .emie-card {
        min-width: 90% !important;
        max-width: 90% !important;
    }
}
