/* =====================================================================
   JM RADIO — actus.css : page « Actus » (flux franceinfo)
   ===================================================================== */
.ac-tabs { display: flex; gap: 8px; margin: 0 0 20px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; scroll-margin-top: 12px; }
.ac-tabs::-webkit-scrollbar { display: none; }
.ac-tabs button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); color: #CBD5E1; font: inherit; font-size: 0.84rem; font-weight: 700; cursor: pointer; transition: all 0.2s ease; }
.ac-tabs button i { font-size: 0.8rem; color: #94A3B8; transition: color 0.2s ease; }
.ac-tabs button:hover { color: #fff; border-color: rgba(231, 37, 53, 0.45); }
.ac-tabs button.active { color: #fff; background: #E72535; border-color: #E72535; box-shadow: 0 6px 18px rgba(231, 37, 53, 0.35); }
.ac-tabs button.active i { color: #fff; }

.ac-feature { cursor: pointer; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit; background: var(--jm-panel, rgba(12, 16, 27, .78)); border: 1px solid rgba(255, 255, 255, 0.07); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); margin-bottom: 18px; transition: border-color 0.2s ease, transform 0.2s ease; }
.ac-feature:hover { border-color: rgba(231, 37, 53, 0.45); transform: translateY(-2px); }
.ac-feature-img { position: relative; min-height: 260px; background: #0B0F19; overflow: hidden; }
.ac-feature-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.ac-feature:hover .ac-feature-img img, .ac-card:hover .ac-card-img img { transform: scale(1.04); }
.ac-feature-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px; min-width: 0; }
.ac-feature-body h2 { margin: 0; font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 900; line-height: 1.25; color: #fff; }
.ac-feature-body p { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--text-secondary, #94A3B8); }
.ac-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ac-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; color: #fff; background: #E72535; }
.ac-when { display: inline-flex; align-items: center; gap: 5px; font-size: 0.76rem; font-weight: 600; color: #94A3B8; }
.ac-read { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 800; color: var(--gold, #FBBF24); }
.ac-read i { font-size: 0.75rem; transition: transform 0.2s ease; }
.ac-feature:hover .ac-read i { transform: translateX(4px); }

.ac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.ac-card { cursor: pointer; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; background: var(--jm-panel, rgba(12, 16, 27, .78)); border: 1px solid rgba(255, 255, 255, 0.07); transition: border-color 0.2s ease, transform 0.2s ease; }
.ac-card:hover { border-color: rgba(231, 37, 53, 0.45); transform: translateY(-3px); }
.ac-card-img { position: relative; aspect-ratio: 16 / 9; background: #0B0F19; overflow: hidden; }
.ac-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
img.is-logo { object-fit: contain !important; padding: 18%; background: #0B0F19; }
.ac-card-body { display: flex; flex-direction: column; gap: 6px; padding: 13px 15px 16px; min-width: 0; }
.ac-card-body h3 { margin: 0; font-size: 0.98rem; font-weight: 800; line-height: 1.3; color: #F1F5F9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ac-card-body p { margin: 0; font-size: 0.82rem; line-height: 1.5; color: #94A3B8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Chargement */
.ac-skel { pointer-events: none; }
.ac-skel .ac-feature-img, .ac-skel .ac-card-img, .ac-skel i { background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 75%); background-size: 200% 100%; animation: acShimmer 1.3s linear infinite; }
.ac-skel i { display: block; height: 14px; border-radius: 7px; }
.ac-skel i:nth-child(1) { width: 35%; } .ac-skel i:nth-child(2) { width: 90%; height: 20px; } .ac-skel i:nth-child(3) { width: 70%; }
@keyframes acShimmer { to { background-position: -200% 0; } }

.ac-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 46px 20px; text-align: center; border-radius: 20px; background: var(--jm-panel, rgba(12, 16, 27, .78)); border: 1px dashed rgba(255, 255, 255, 0.12); color: #94A3B8; }
.ac-empty > i { font-size: 1.8rem; color: #E72535; margin-bottom: 4px; }
.ac-empty b { color: #fff; font-size: 1rem; }
.ac-retry { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 0; background: #E72535; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.ac-retry:hover { filter: brightness(1.1); }

.ac-source { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; font-size: 0.78rem; color: #64748B; }
.ac-source i { color: #F97316; }

@media (max-width: 860px) {
    .ac-feature { grid-template-columns: 1fr; }
    .ac-feature-img { min-height: 0; aspect-ratio: 16 / 9; }
    .ac-feature-body { padding: 16px 16px 18px; }
    .ac-feature-body p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 560px) {
    .ac-grid { grid-template-columns: 1fr; gap: 12px; }
    .ac-card { flex-direction: row; }
    .ac-card-img { width: 38%; flex-shrink: 0; aspect-ratio: auto; min-height: 104px; }
    .ac-card-body { padding: 10px 12px; }
    .ac-card-body h3 { font-size: 0.88rem; }
    .ac-card-body p { display: none; }
}

.ac-feature:focus-visible, .ac-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
