/* =============================================================================
   actualites.css — Football UY1
   Page actualités riche : buteurs, remplacements, compositions, cartons
   ============================================================================= */

/* ── Page ─────────────────────────────────────────────────────────────────── */
.actu-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.actu-hero {
  background: rgba(10,10,35,0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
.actu-hero::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #ff9900, #ffd740, #ff9900);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

.actu-hero-inner { padding: 1.75rem 1.5rem 1.25rem; text-align: center; }

.actu-hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,153,0,0.12); border: 1px solid rgba(255,153,0,0.25);
  color: #ffd740; border-radius: 20px;
  padding: 0.3rem 0.9rem; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}
.actu-hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700; color: #fff; margin-bottom: 0.5rem; line-height: 1.1;
}
.actu-hero-accent { color: #ffd740; }
.actu-hero-sub { font-size: 0.9rem; color: rgba(255,255,255,0.45); margin-bottom: 0.85rem; }
.actu-hero-meta {
  font-size: 0.72rem; color: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}
.actu-hero-meta i { color: rgba(255,153,0,0.5); }

/* Stats bar */
.actu-stats-bar {
  display: flex; justify-content: center; align-items: center;
  gap: 0; border-top: 1px solid rgba(255,255,255,0.06);
  padding: 0.85rem 1.5rem; flex-wrap: wrap;
}
.actu-stat { text-align: center; flex: 1; min-width: 70px; }
.actu-stat-num {
  display: block; font-family: 'Oswald', sans-serif;
  font-size: 1.6rem; font-weight: 700; color: #fff; line-height: 1;
}
.actu-stat-lbl {
  font-size: 0.72rem; color: rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center; gap: 0.3rem;
  margin-top: 0.25rem;
}
.actu-stat-sep { width: 1px; height: 40px; background: rgba(255,255,255,0.07); margin: 0 0.75rem; }
.actu-red    { color: #ff4d4d !important; }
.actu-orange { color: #ff9900 !important; }
.actu-green  { color: #34d399 !important; }

/* Dot live pulsant */
.actu-live-dot {
  display: inline-block; width: 8px; height: 8px;
  background: #ff4d4d; border-radius: 50%;
  animation: livePulse 1.5s ease infinite;
  flex-shrink: 0;
}
@keyframes livePulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.7)} }

/* ── Filtres ──────────────────────────────────────────────────────────────── */
.actu-filters {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.actu-filter-btn {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 1rem; border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.45); font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.actu-filter-btn:hover { background: rgba(255,153,0,0.1); color: #ffd740; border-color: rgba(255,153,0,0.3); }
.actu-filter-btn.active {
  background: rgba(255,153,0,0.15); border-color: rgba(255,153,0,0.4);
  color: #ffd740; box-shadow: 0 2px 12px rgba(255,153,0,0.15);
}

/* ── Feed ─────────────────────────────────────────────────────────────────── */
.actu-feed { display: flex; flex-direction: column; gap: 1.25rem; }

/* ── Loading ──────────────────────────────────────────────────────────────── */
.actu-loading {
  display: flex; align-items: center; justify-content: center; gap: 0.85rem;
  padding: 3rem; color: rgba(255,255,255,0.3); font-size: 0.9rem;
}
.actu-loading-spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid rgba(255,153,0,0.15);
  border-top-color: #ff9900;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty ────────────────────────────────────────────────────────────────── */
.actu-empty {
  text-align: center; padding: 3rem 1rem;
  background: rgba(10,10,35,0.5);
  border: 1px dashed rgba(255,153,0,0.2); border-radius: 14px;
}
.actu-empty-icon { font-size: 2.5rem; color: rgba(255,153,0,0.3); margin-bottom: 0.75rem; }
.actu-empty h3 { font-family: 'Oswald', sans-serif; color: rgba(255,255,255,0.5); font-size: 1.2rem; }
.actu-empty p  { color: rgba(255,255,255,0.25); font-size: 0.85rem; }

/* ── CARTE MATCH ──────────────────────────────────────────────────────────── */
.actu-card {
  background: rgba(10,10,35,0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: cardIn 0.35s ease;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.actu-card:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(0,0,0,0.45); }
@keyframes cardIn { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }

/* Barre couleur haut de carte */
.actu-card-bar { height: 3px; }
.actu-card-bar.bar-live      { background: linear-gradient(90deg,#ff4d4d,#ff9900); animation: shimmer 2s linear infinite; background-size:200%; }
.actu-card-bar.bar-programme { background: linear-gradient(90deg,#ff9900,#ffd740); }
.actu-card-bar.bar-termine   { background: linear-gradient(90deg,#34d399,#059669); }

/* ── En-tête carte ────────────────────────────────────────────────────────── */
.actu-card-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem 1.25rem 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.actu-card-left { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
.actu-card-filiere {
  font-size: 0.72rem; font-weight: 800; padding: 0.2rem 0.6rem;
  border-radius: 12px; letter-spacing: 0.05em;
  background: rgba(139,92,246,0.15); color: #a78bfa;
  border: 1px solid rgba(139,92,246,0.25);
}
.actu-card-date { font-size: 0.75rem; color: rgba(255,255,255,0.3); }

/* Badges statut */
.actu-badge-live {
  display: flex; align-items: center; gap: 0.4rem;
  background: rgba(255,77,77,0.15); border: 1px solid rgba(255,77,77,0.3);
  color: #ff7070; border-radius: 20px; padding: 0.25rem 0.75rem;
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
}
.actu-badge-programme {
  background: rgba(255,153,0,0.12); border: 1px solid rgba(255,153,0,0.25);
  color: #ffd740; border-radius: 20px; padding: 0.25rem 0.75rem;
  font-size: 0.72rem; font-weight: 700;
}
.actu-badge-termine {
  background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.25);
  color: #34d399; border-radius: 20px; padding: 0.25rem 0.75rem;
  font-size: 0.72rem; font-weight: 700;
}

/* ── Corps match : deux équipes + score ───────────────────────────────────── */
.actu-match-body { padding: 1.25rem 1.25rem 1rem; }

.actu-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 1rem;
  margin-bottom: 1rem;
}

.actu-team { text-align: center; }
.actu-team-logo {
  width: 68px; height: 68px; border-radius: 50%;
  margin: 0 auto 0.55rem;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Oswald', sans-serif; font-size: 1.4rem; font-weight: 700;
  color: #fff; position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  border: 2px solid rgba(255,255,255,0.15);
  overflow: hidden;
}
.actu-team-logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.actu-team-name {
  font-family: 'Oswald', sans-serif; font-size: 0.92rem; font-weight: 700;
  color: rgba(255,255,255,0.9); line-height: 1.2; word-break: break-word;
}
.actu-team-extra { font-size: 0.7rem; color: rgba(255,255,255,0.3); margin-top: 0.2rem; }

/* Score / VS */
.actu-score-center { text-align: center; flex-shrink: 0; }
.actu-score {
  font-family: 'Oswald', sans-serif; font-size: 2.6rem; font-weight: 700;
  color: #ffd740; line-height: 1; letter-spacing: 0.02em;
}
.actu-score-sep { color: rgba(255,255,255,0.15); margin: 0 0.2rem; }
.actu-vs {
  font-family: 'Oswald', sans-serif; font-size: 1.4rem; font-weight: 400;
  color: rgba(255,255,255,0.2);
}
.actu-temps {
  font-size: 0.72rem; color: rgba(255,255,255,0.35); margin-top: 0.25rem;
  display: flex; align-items: center; justify-content: center; gap: 0.3rem;
}
.actu-temps i { color: #ff4d4d; font-size: 0.6rem; }
.actu-countdown {
  font-family: 'Oswald', sans-serif; font-size: 0.85rem; color: #ffd740;
  margin-top: 0.3rem; letter-spacing: 0.04em;
}

/* ── Stade / Arbitre ─────────────────────────────────────────────────────── */
.actu-match-meta {
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center;
  padding: 0 1.25rem 0.85rem;
  font-size: 0.74rem; color: rgba(255,255,255,0.3);
}
.actu-match-meta span { display: flex; align-items: center; gap: 0.3rem; }
.actu-match-meta i { color: rgba(255,153,0,0.5); font-size: 0.65rem; }

/* ── SECTION GÉNÉRIQUE ────────────────────────────────────────────────────── */
.actu-section {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 0.9rem 1.25rem;
}
.actu-section-title {
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.25);
  margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.45rem;
}
.actu-section-title i { font-size: 0.65rem; }
.actu-section-title.color-gold  i { color: #ffd740; }
.actu-section-title.color-red   i { color: #f87171; }
.actu-section-title.color-blue  i { color: #60a5fa; }
.actu-section-title.color-green i { color: #34d399; }
.actu-section-title.color-purple i { color: #a78bfa; }

/* ── TABLEAU EVENTS (buts + cartons) ─────────────────────────────────────── */
.actu-events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.actu-events-col { display: flex; flex-direction: column; gap: 0.35rem; }
.actu-events-col.dom { border-right: 1px solid rgba(255,255,255,0.05); padding-right: 0.75rem; }
.actu-events-col.ext { padding-left: 0.25rem; }

.actu-event-item {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.78rem; color: rgba(255,255,255,0.7);
  padding: 0.3rem 0.5rem; border-radius: 6px;
  background: rgba(255,255,255,0.02);
  transition: background 0.15s;
}
.actu-event-item:hover { background: rgba(255,255,255,0.05); }
.actu-event-item.but   { border-left: 2px solid rgba(52,211,153,0.4); }
.actu-event-item.csc   { border-left: 2px solid rgba(251,146,60,0.5); }
.actu-event-item.card  { border-left: 2px solid rgba(252,211,77,0.4); }
.actu-event-item.card.rouge { border-left-color: rgba(248,113,113,0.5); }

.actu-event-icon { font-size: 0.75rem; flex-shrink: 0; width: 16px; text-align: center; }
.actu-event-name { flex: 1; font-weight: 600; line-height: 1.2; }
.actu-event-min  {
  font-family: 'Oswald', sans-serif; font-size: 0.75rem; font-weight: 700;
  color: #ff9900; flex-shrink: 0;
}
.actu-event-tag {
  font-size: 0.6rem; font-weight: 700; padding: 0.1rem 0.4rem;
  border-radius: 4px; background: rgba(251,146,60,0.15);
  color: #fb923c; flex-shrink: 0;
}
.actu-event-tag.penalty { background: rgba(96,165,250,0.15); color: #60a5fa; }
.actu-event-reason {
  font-size: 0.67rem; color: rgba(255,255,255,0.3); margin-left: 0.3rem;
  font-style: italic;
}

/* Couleurs carton */
.actu-card-yellow { color: #fcd34d !important; }
.actu-card-red    { color: #f87171 !important; }

/* ── REMPLACEMENTS ────────────────────────────────────────────────────────── */
.actu-rempl-list { display: flex; flex-direction: column; gap: 0.4rem; }
.actu-rempl-item {
  display: flex; align-items: center; gap: 0.55rem;
  background: rgba(96,165,250,0.05); border: 1px solid rgba(96,165,250,0.12);
  border-radius: 8px; padding: 0.45rem 0.75rem;
  font-size: 0.78rem; transition: background 0.15s;
}
.actu-rempl-item:hover { background: rgba(96,165,250,0.1); }
.actu-rempl-icon {
  width: 24px; height: 24px; border-radius: 6px;
  background: rgba(96,165,250,0.15); color: #93c5fd;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; flex-shrink: 0;
}
.actu-rempl-names { flex: 1; display: flex; flex-direction: column; gap: 0.1rem; }
.actu-rempl-out   { color: rgba(255,255,255,0.4); font-size: 0.72rem; }
.actu-rempl-out span { text-decoration: line-through; }
.actu-rempl-in    { color: rgba(255,255,255,0.85); font-weight: 600; }
.actu-rempl-arrow { color: rgba(96,165,250,0.5); font-size: 0.65rem; }
.actu-rempl-min   {
  font-family: 'Oswald', sans-serif; font-size: 0.75rem; font-weight: 700;
  color: #ff9900; flex-shrink: 0;
}
.actu-rempl-equipe {
  font-size: 0.62rem; color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05); padding: 0.1rem 0.4rem;
  border-radius: 4px; flex-shrink: 0;
}

/* ── COMPOSITIONS ────────────────────────────────────────────────────────── */
.actu-compos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.actu-compo-col-head {
  font-family: 'Oswald', sans-serif; font-size: 0.78rem; font-weight: 700;
  color: rgba(255,255,255,0.5); margin-bottom: 0.5rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 0.4rem;
}
.actu-compo-col-head::before {
  content: ''; display: block; width: 8px; height: 8px; border-radius: 50%;
}
.actu-compo-col-head.dom::before { background: #4488ff; }
.actu-compo-col-head.ext::before { background: #ff4444; }

.actu-joueurs-list { display: flex; flex-direction: column; gap: 0.28rem; }
.actu-joueur {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.76rem; color: rgba(255,255,255,0.65);
  padding: 0.22rem 0.3rem; border-radius: 5px;
  transition: background 0.1s;
}
.actu-joueur:hover { background: rgba(255,255,255,0.04); }
.actu-joueur-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,153,0,0.12); border: 1px solid rgba(255,153,0,0.2);
  color: #ffd740; font-family: 'Oswald', sans-serif;
  font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.actu-joueur-name  { flex: 1; font-weight: 600; }
.actu-joueur-poste { font-size: 0.65rem; color: rgba(255,255,255,0.22); }
.actu-joueur-cap   {
  font-size: 0.55rem; font-weight: 800; padding: 0.1rem 0.3rem;
  background: #ff6b00; color: #fff; border-radius: 3px;
}
.actu-joueur-evts  { display: flex; gap: 2px; margin-left: 2px; }
.actu-j-but  { font-size: 0.62rem; }
.actu-j-jau  { display: inline-block; width: 6px; height: 9px; background: #fcd34d; border-radius: 1px; }
.actu-j-rou  { display: inline-block; width: 6px; height: 9px; background: #f87171; border-radius: 1px; }

/* Remplaçants dans compo */
.actu-rempl-bench-lbl {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.18); margin: 0.5rem 0 0.3rem;
  display: flex; align-items: center; gap: 0.3rem;
}
.actu-joueur.bench { opacity: 0.55; }
.actu-joueur.bench .actu-joueur-num {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.35);
}

/* ── LIENS / CTA ─────────────────────────────────────────────────────────── */
.actu-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.actu-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.42rem 0.9rem; border-radius: 8px;
  font-size: 0.78rem; font-weight: 700; text-decoration: none;
  transition: all 0.2s; cursor: pointer;
}
.actu-link-live  { background: rgba(255,77,77,0.15);  color: #ff7070; border: 1px solid rgba(255,77,77,0.3); }
.actu-link-disc  { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.25); }
.actu-link-prono { background: rgba(255,153,0,0.12);  color: #ffd740; border: 1px solid rgba(255,153,0,0.25); }
.actu-link-compo { background: rgba(52,211,153,0.1);  color: #34d399; border: 1px solid rgba(52,211,153,0.2); }
.actu-link:hover { transform: translateY(-1px); filter: brightness(1.15); }

/* ── Label jour ──────────────────────────────────────────────────────────── */
.actu-day-label {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 1.5rem 0 0.75rem;
  font-family: 'Oswald', sans-serif; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
}
.actu-day-label::before, .actu-day-label::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(255,255,255,0.07);
}
.actu-day-label:first-child { margin-top: 0; }

/* ── Refresh indicator ───────────────────────────────────────────────────── */
.actu-refresh-bar {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 100;
  background: rgba(10,10,35,0.9); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,153,0,0.25); border-radius: 10px;
  padding: 0.55rem 1rem;
  font-size: 0.72rem; color: rgba(255,255,255,0.45);
  display: flex; align-items: center; gap: 0.5rem;
  opacity: 0; transition: opacity 0.3s;
}
.actu-refresh-bar.show { opacity: 1; }
.actu-refresh-bar i { color: #ff9900; }

/* ── Section vide (pas de données) ──────────────────────────────────────── */
.actu-none {
  font-size: 0.75rem; color: rgba(255,255,255,0.2);
  font-style: italic; padding: 0.25rem 0;
}

/* ── Résumé résultat (match terminé avec vainqueur) ──────────────────────── */
.actu-result-banner {
  margin: 0 1.25rem 0.85rem;
  border-radius: 10px; padding: 0.65rem 1rem;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: 'Oswald', sans-serif; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.actu-result-banner.victoire-dom { background: rgba(68,136,255,0.12); color: #93c5fd; border: 1px solid rgba(68,136,255,0.2); }
.actu-result-banner.victoire-ext { background: rgba(248,113,113,0.1); color: #fca5a5; border: 1px solid rgba(248,113,113,0.2); }
.actu-result-banner.nul          { background: rgba(255,153,0,0.1);   color: #ffd740; border: 1px solid rgba(255,153,0,0.2); }
.actu-result-banner i            { font-size: 0.8rem; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .actu-page { padding: 1rem 0.75rem 2.5rem; }
  .actu-hero-inner { padding: 1.25rem 1rem 1rem; }
  .actu-team-logo { width: 52px; height: 52px; font-size: 1.1rem; }
  .actu-score { font-size: 2rem; }
  .actu-team-name { font-size: 0.82rem; }
  .actu-compos-grid { grid-template-columns: 1fr; gap: 0.65rem; }
  .actu-events-grid { grid-template-columns: 1fr; }
  .actu-events-col.dom { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); padding-right: 0; padding-bottom: 0.5rem; margin-bottom: 0.25rem; }
  .actu-events-col.ext { padding-left: 0; }
  .actu-card-head { padding: 0.65rem 1rem 0.5rem; }
  .actu-match-body { padding: 1rem 1rem 0.75rem; }
  .actu-links { padding: 0.65rem 1rem; }
  .actu-stats-bar { padding: 0.65rem 1rem; }
  .actu-stat-num { font-size: 1.2rem; }
  .actu-section { padding: 0.75rem 1rem; }
}
