diff --git a/css/style.css b/css/style.css index f25a965..e411664 100644 --- a/css/style.css +++ b/css/style.css @@ -5250,10 +5250,11 @@ button.inscr-gestion-list-remis:hover{ white-space: nowrap; } -.phub-badge-danger { background: #fde2e1; color: #b3261e; } -.phub-badge-warn { background: #fdecc8; color: #9a6700; } -.phub-badge-info { background: #dceafd; color: #1f5fb3; } -.phub-badge-soft { background: #eceff3; color: #4a5568; } +/* MSIN-4452 — pastilles alignées sur la bande flash (peach / navy), sans ton alerte agressif */ +.phub-badge-danger { background: #f8e4df; color: #8f3d32; } +.phub-badge-warn { background: #fdeede; color: #8a5a2b; border: 1px solid #f3d6b8; } +.phub-badge-info { background: #e8f0fa; color: #1f3b63; } +.phub-badge-soft { background: #f3f1ee; color: #5a6570; } /* --- Grille de tuiles par epreuve --- */ .promoteur-hub-epreuves-grid { diff --git a/php/inc_fx_promoteur_hub.php b/php/inc_fx_promoteur_hub.php index 7a912aa..a122776 100644 --- a/php/inc_fx_promoteur_hub.php +++ b/php/inc_fx_promoteur_hub.php @@ -1267,28 +1267,28 @@ function fxPromoteurHubRenderFlash($arrStats, $strLangue = 'fr') $html .= ''; // .promoteur-hub-flash - // ---- Badges d'alerte ---- + // ---- Badges d'alerte (MSIN-4452 : texte seul, sans icône) ---- $arrBadges = array(); if (intval($arrFlash['nb_completes']) > 0) { - $arrBadges[] = array('cls' => 'phub-badge-danger', 'icon' => 'fa-ban', + $arrBadges[] = array('cls' => 'phub-badge-danger', 'txt' => intval($arrFlash['nb_completes']) . ' ' . fxPromoteurHubTexte('promoteur_hub_badge_completes', 0)); } if (intval($arrFlash['nb_presque']) > 0) { - $arrBadges[] = array('cls' => 'phub-badge-warn', 'icon' => 'fa-exclamation-triangle', + $arrBadges[] = array('cls' => 'phub-badge-warn', 'txt' => intval($arrFlash['nb_presque']) . ' ' . fxPromoteurHubTexte('promoteur_hub_badge_presque', 0)); } if (intval($arrFlash['total_attente']) > 0) { - $arrBadges[] = array('cls' => 'phub-badge-info', 'icon' => 'fa-hourglass-half', + $arrBadges[] = array('cls' => 'phub-badge-info', 'txt' => intval($arrFlash['total_attente']) . ' ' . fxPromoteurHubTexte('promoteur_hub_badge_attente', 0)); } if ($arrFlash['prochaine_date_limite'] !== '') { - $arrBadges[] = array('cls' => 'phub-badge-soft', 'icon' => 'fa-clock-o', + $arrBadges[] = array('cls' => 'phub-badge-soft', 'txt' => fxPromoteurHubTexte('promoteur_hub_badge_limite', 0) . ' ' . fxShowDate($arrFlash['prochaine_date_limite'], $strLangue, 1)); } if (!empty($arrBadges)) { $html .= '