/* ==========================================================================
   dashboard.css — Tableau de bord / Accueil / Stat cards
   ========================================================================== */

/* Carte "Vous pratiquez un sport au Gabon ?" — contour clignotant
   pour capter l'attention du visiteur non connecté. */
#visitor-become-actor-card.pulse-attract {
  position: relative;
  border-width: 2px !important;
  animation: gsc-border-blink 1.6s ease-in-out infinite !important;
}

@keyframes gsc-border-blink {
  0%, 100% {
    border-color: var(--danger);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }
  50% {
    border-color: var(--navy);
    box-shadow: 0 0 0 7px rgba(239, 68, 68, 0);
  }
}

/* Respecte les preferences d'accessibilite des utilisateurs sensibles au mouvement */
@media (prefers-reduced-motion: reduce) {
  #visitor-become-actor-card.pulse-attract {
    animation: none !important;
    border-color: var(--danger) !important;
  }
}

/* espace-actualites-gfc : même espace que GSC entre le bloc sombre et Dernières actualités */
#view-dashboard .legal-footer + .card{margin-top:28px;}

/* actus-compact : aperçu des actualités plus compact sur l'accueil */
#latest-news-preview{padding:6px 12px 8px;}
.card:has(#latest-news-preview) .card-header{margin-bottom:0;padding-bottom:6px;}
#latest-news-preview .news-card{margin-bottom:8px;}
#latest-news-preview .news-body{padding:10px 14px;}
#latest-news-preview .news-cat{font-size:11px;margin-bottom:2px;}
#latest-news-preview .news-title{font-size:16px;line-height:1.25;margin:0 0 4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
#latest-news-preview .news-excerpt{display:none;}
#latest-news-preview .news-footer{margin-top:4px;font-size:12px;}
