/* ========================================
   SKELETON SCREENS
   ======================================== */

.skeleton {
    background-color: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.05) 20%,
            rgba(255, 255, 255, 0.1) 60%,
            rgba(255, 255, 255, 0));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Structure d'une carte skeleton */
.skeleton-card {
    position: relative;
    border-radius: var(--card-border-radius);
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    height: 380px;
    /* Hauteur approximative d'une carte réelle */
    display: flex;
    flex-direction: column;
}

.skeleton-card .skeleton-img {
    height: 220px;
    /* Hauteur de l'image */
    width: 100%;
}

.skeleton-card .skeleton-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-card .skeleton-title {
    height: 24px;
    width: 80%;
    margin-bottom: 4px;
}

.skeleton-card .skeleton-meta {
    height: 16px;
    width: 60%;
}

.skeleton-card .skeleton-tags {
    margin-top: auto;
    display: flex;
    gap: 8px;
}

.skeleton-card .skeleton-tag {
    height: 24px;
    width: 60px;
    border-radius: 12px;
}