/* dash-hover.css — Effets de survol du dashboard en CSS pur (SEC-04 CSP Lot 4.3).
   Remplace les onmouseover/onmouseout inline (qui violaient script-src-attr) par des
   classes :hover. Zéro JavaScript. Les valeurs reproduisent EXACTEMENT les effets inline
   d'origine ; le style de base (inline) de chaque élément est conservé, le :hover ne fait
   que le surcharger au survol et revient à l'état normal en sortie. */

/* "Lift" : ombre + léger soulèvement (10× — cartes cliquables). */
.hov-lift { transition: box-shadow .15s ease, transform .15s ease; }
.hov-lift:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); }

/* Ombre seule (3×). */
.hov-shadow { transition: box-shadow .15s ease; }
.hov-shadow:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }

/* Fond gris clair au survol, transparent au repos (8× — éléments de liste/menu). */
.hov-bg { transition: background-color .12s ease; }
.hov-bg:hover { background: #f8fafc; }

/* Fond gris un peu plus marqué (5×). */
.hov-bg-2 { transition: background-color .12s ease; }
.hov-bg-2:hover { background: #f3f4f6; }

/* Fond blanc au survol, transparent au repos (4× — base 'none' → '#fff'). */
.hov-bg-white { transition: background-color .12s ease; }
.hov-bg-white:hover { background: #fff; }

/* ── Cas spécifiques (base inline conservée, :hover surcharge au survol) ── */
/* base #fff → #f8fafc (3× boutons listes) */
.hov-bg-soft { transition: background-color .12s ease; }
.hov-bg-soft:hover { background: #f8fafc; }
/* base #fef9c3 → #fef08a (badge jaune) */
.hov-yellow { transition: background-color .12s ease; }
.hov-yellow:hover { background: #fef08a; }
/* base rgba blanc faible → plus marqué (bouton sombre) */
.hov-glass { transition: background-color .12s ease, border-color .12s ease; }
.hov-glass:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.30); }
/* base #999 → #475569 (lien texte) */
.hov-text { transition: color .12s ease; }
.hov-text:hover { color: #475569; }
/* base #fff → #fef2f2 (action danger douce) */
.hov-bg-red { transition: background-color .12s ease; }
.hov-bg-red:hover { background: #fef2f2; }
/* base blanc/#e5e7eb → #f9fafb/#6366f1 (carte sélectionnable indigo) */
.hov-indigo { transition: background-color .12s ease, border-color .12s ease; }
.hov-indigo:hover { background: #f9fafb; border-color: #6366f1; }
/* base #e2e8f0/#94a3b8 → #06b6d4 (puce cyan) */
.hov-cyan { transition: border-color .12s ease, color .12s ease; }
.hov-cyan:hover { border-color: #06b6d4; color: #06b6d4; }
/* base #fff/#e2e8f0 → #f8fafc/#cbd5e1 (bouton bordé) */
.hov-bg-border { transition: background-color .12s ease, border-color .12s ease; }
.hov-bg-border:hover { background: #f8fafc; border-color: #cbd5e1; }

/* ── Focus des champs (SEC-04 CSP Lot 4.5) — bordure colorée au focus, retour
   à la couleur de base inline au blur (le :focus ne fait que surcharger). ── */
.foc-indigo:focus { border-color: #667eea; }   /* base #e2e8f0 */
.foc-violet:focus { border-color: #6366f1; }   /* base #d1d5db */
.foc-teal:focus   { border-color: #0d9488; }   /* base #e5e7eb */
