/* FS — Bloc ACTU (2/4) v1.2.0 */

/* --- Layout Global --- */
.fsab-wrap {
    background: transparent;
    color: #0b1220;
    box-sizing: border-box;
    font-family: inherit;
}
.fsab-wrap * { box-sizing: border-box; }

.fsab-section {
    width: 100%;
    margin: 0 auto;
}

/* --- Header --- */
.fsab-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: .75rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid transparent;
}

.fsab-title {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: 13px;
    margin: 0;
}
@media(min-width: 768px) { .fsab-title { font-size: 14px; letter-spacing: .22em; } }

.fsab-dot {
    display: inline-block;
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--fsab-brand, #71caeb);
    margin-right: .5rem;
}

.fsab-more {
    font-size: 11px;
    font-weight: 700;
    color: rgba(11, 18, 32, .7);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}
.fsab-more:hover { color: var(--fsab-brand, #0b1220); }

.fsab-debug { 
    background: #fff3cd; color: #856404; padding: 10px; border-radius: 4px; font-size: 12px; 
}

/* --- Grid (Tuiles) --- */
.fsab-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media(min-width: 600px) { .fsab-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 900px) { .fsab-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.fsab-tile {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .03);
    background: #fff;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}
.fsab-tile:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0, 0, 0, .08); }

.fsab-media {
    position: relative;
    aspect-ratio: 4/5;
    background: #f4f4f4;
    overflow: hidden;
}

.fsab-badge {
    position: absolute; left: 12px; top: 12px; z-index: 2;
    padding: .25rem .6rem; border-radius: 99px;
    background: rgba(255, 255, 255, .95);
    font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
    color: #0b1220; box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fsab-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform 0.5s ease;
}
.fsab-tile:hover .fsab-img { transform: scale(1.05); }

.fsab-txt {
    padding: 16px; flex-grow: 1; display: flex; flex-direction: column;
}

.fsab-h3 {
    margin: 0; font-size: 14px; line-height: 1.4; font-weight: 700;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* --- Feed (Liste Vignettes) --- */
.fsab-feed {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fsab-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border: 1px solid transparent;
}
.fsab-line:hover {
    background-color: #fff; /* ou #f8f9fa selon votre fond de page */
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transform: translateX(4px);
}

/* Image miniature (Carré arrondi) */
.fsab-line-media {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
    position: relative;
}
.fsab-line-media img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Fallback si pas d'image */
.fsab-line-fallback {
    display: block; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--fsab-brand, #71caeb) 0%, #eee 100%);
    opacity: 0.3;
}

/* Contenu texte */
.fsab-line-content {
    display: flex; flex-direction: column; justify-content: center; padding-top: 2px;
}

/* Date discrète */
.fsab-time-text {
    font-size: 10px; text-transform: uppercase; font-weight: 700;
    color: #888; margin-bottom: 4px; letter-spacing: 0.05em;
}

/* Titre */
.fsab-line-title {
    margin: 0; font-size: 13.5px; line-height: 1.35; font-weight: 600;
    color: #2d3748; transition: color 0.2s;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fsab-line:hover .fsab-line-title { color: var(--fsab-brand, #0b1220); }