/* =============================================
   TPM ARTICLES SLIDER v2
   1 article par slide - fidèle à la maquette
   ============================================= */

.tpmas-slider {
    position: relative;
    width: 100%;
}

/* Track */
.tpmas-track {
    position: relative;
    width: 100%;
}

.tpmas-slide {
    display: none;
    width: 100%;
    animation: tpmasFade 0.45s ease;
}

.tpmas-slide.tpmas-active {
    display: block;
}

@keyframes tpmasFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* =============================================
   IMAGE - grande, arrondie, pleine largeur
   ============================================= */
.tpmas-img-wrap {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.tpmas-img-link {
    display: block;
    width: 100%;
    aspect-ratio: 21 / 9;
    overflow: hidden;
}

.tpmas-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.tpmas-img-link:hover img {
    transform: scale(1.03);
}

.tpmas-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #94a3b8;
    aspect-ratio: 16 / 9;
}

/* =============================================
   FLÈCHES SUR L'IMAGE (gauche / droite)
   ============================================= */
.tpmas-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    padding: 0;
}

.tpmas-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    color: #C8102E;
}

.tpmas-arrow-left {
    left: 14px;
}

.tpmas-arrow-right {
    right: 14px;
}

/* =============================================
   CONTENU TEXTE SOUS L'IMAGE
   ============================================= */
.tpmas-body {
    padding: 24px 8px 8px;
}

/* Badge date - rectangle rouge */
.tpmas-date-badge {
    display: inline-block;
    background: #e91e63;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    letter-spacing: 0.2px;
}

/* Titre */
.tpmas-title {
    font-size: 17px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.tpmas-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tpmas-title a:hover {
    color: #C8102E;
}

/* Extrait */
.tpmas-excerpt {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.65;
    margin: 0 0 20px 0;
}

/* Lire la suite */
.tpmas-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #e91e63;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
}

.tpmas-read-more:hover {
    color: #c2185b;
    gap: 12px;
}

/* =============================================
   DOTS - centrés en bas
   ============================================= */
.tpmas-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    padding-bottom: 4px;
}

.tpmas-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #e0e0e0;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.tpmas-dot:hover {
    background: #bdbdbd;
}

.tpmas-dot-active {
    background: #e91e63;
}

/* =============================================
   EMPTY
   ============================================= */
.tpmas-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 14px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .tpmas-title {
        font-size: 19px;
    }

    .tpmas-excerpt {
        font-size: 14px;
    }

    .tpmas-arrow {
        width: 36px;
        height: 36px;
    }

    .tpmas-arrow-left {
        left: 10px;
    }

    .tpmas-arrow-right {
        right: 10px;
    }

    .tpmas-body {
        padding: 20px 4px 4px;
    }
}

@media (max-width: 480px) {
    .tpmas-title {
        font-size: 17px;
    }

    .tpmas-excerpt {
        font-size: 13px;
    }

    .tpmas-date-badge {
        font-size: 12px;
        padding: 5px 12px;
    }

    .tpmas-dots {
        margin-top: 18px;
    }
}
