/* =============================================
   PROPOSE GROUP - GLOBAL STYLES V2 (SaaS Modern)
   ============================================= */

/* Importation des polices (Garde ça, c'est propre) */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Roboto:wght@400;500;700&display=swap');

/* --- 1. VARIABLES (LA NOUVELLE CHARTE) --- */
:root {
  /* COULEURS MARQUE */
  --primary: #004AAD;       /* Bleu Profond (Structure) */
  --teal: #00C2CB;          /* Teal (Innovation/Success) */
  --secondary: #FF6B35;     /* Orange (Action/Warning) */
  --accent-color: #EF4444;  /* Rouge (Danger) */
  
  /* COULEURS UI */
  --light-gray: #F5F7FA;    /* Fond Application (Bleuté très pâle) */
  --white: #ffffff;
  --dark-text: #1F2937;     /* Gris Anthracite foncé */
  --muted-text: #6B7280;    /* Gris moyen */
  --border-color: #E5E7EB;
  
  --border-radius: 12px;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 25px rgba(0, 74, 173, 0.1);
}

/* --- 2. BASE --- */
body {
  font-family: 'Manrope', 'Roboto', sans-serif; /* Manrope est plus moderne que Montserrat */
  background-color: var(--light-gray);
  color: var(--dark-text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

h1, h2, h3, h4, h5, h6, .dashboard-title, .card-title {
  font-family: 'Manrope', sans-serif;
  color: var(--primary); /* Titres en Bleu */
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

/* --- 3. CARTES (CARDS) --- */
.card {
  background-color: var(--white);
  border: 1px solid var(--border-color); /* Bordure subtile au lieu de shadow forte */
  border-radius: var(--border-radius);
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 1.5rem;
}

/* Card Header : Blanc avec titre bleu (Plus clean que le fond coloré) */
.card-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  color: var(--primary);
  font-weight: 700;
  padding: 1.25rem;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Option : Card Header coloré (si besoin de distinction) */
.card-header.bg-gradient {
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: #fff;
}
.card-header.bg-gradient h6 { color: #fff; margin:0; }

.card-body {
  padding: 1.5rem;
}

/* --- 4. BOUTONS (ACTIONS) --- */
.btn {
  border-radius: 99px; /* Pill shape (plus moderne) */
  padding: 0.6rem 1.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s ease-in-out;
  border: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Bouton Primaire (Bleu) */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #003680);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(0, 74, 173, 0.3);
}

/* Bouton Secondaire (Orange Action) */
.btn-secondary, .btn-warning {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}
.btn-secondary:hover { background: #E85A2A; color: #fff; }

/* Bouton Outline (Bordure) */
.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
}

/* --- 5. FORMULAIRES --- */
.form-control {
  border-radius: 10px;
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  background-color: #fff;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 74, 173, 0.1); /* Halo bleu soft */
}

/* --- 6. TABLEAUX --- */
.table {
  background-color: var(--white);
  color: var(--dark-text);
  border-radius: var(--border-radius);
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}

/* Entête tableau : Bleu léger, texte foncé (Plus lisible) */
.table thead {
  background-color: #F8FAFC; /* Gris très clair */
}
.table thead th {
  color: var(--muted-text);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--border-color);
  padding: 1rem;
}

.table td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #F3F4F6;
  font-weight: 500;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background-color: #F8FAFC; }

/* --- 7. DASHBOARD STATS CARDS --- */
/* Ces cartes avec la barre colorée à gauche */

.stat-card {
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary); /* Bleu par défaut */
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-3px); }

/* Warning = Orange (Pas jaune moche) */
.stat-card.warning {
  border-left-color: var(--secondary);
}
/* Danger = Rouge */
.stat-card.danger {
  border-left-color: var(--accent-color);
}
/* Success = Teal (Pas vert standard) */
.stat-card.success {
  border-left-color: var(--teal);
}

/* Texte des stats */
.stat-card h5 { font-size: 0.8rem; text-transform: uppercase; color: var(--muted-text); font-weight: 700; margin-bottom: 0.5rem; }
.stat-card .number { font-size: 1.8rem; font-weight: 800; color: var(--dark-text); }

/* Icônes dans les stats */
.card-icon {
  font-size: 2rem;
  opacity: 0.2; /* Subtil */
  color: var(--dark-text);
}

/* --- 8. BADGES & NOTIFICATIONS --- */
.badge {
  padding: 0.4em 0.8em;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
}
.badge.bg-warning {
  background-color: rgba(255, 107, 53, 0.1) !important;
  color: var(--secondary) !important; /* Texte Orange sur fond orange pâle */
}
.badge.bg-success {
  background-color: rgba(0, 194, 203, 0.1) !important;
  color: #008f96 !important; /* Texte Teal foncé */
}
.badge.bg-primary {
  background-color: rgba(0, 74, 173, 0.1) !important;
  color: var(--primary) !important;
}

/* --- 9. ACTIVITÉ RÉCENTE --- */
.activity-item {
  border-left: 2px solid #E5E7EB; /* Ligne grise fine */
  padding-left: 20px;
  margin-bottom: 20px;
  position: relative;
}
/* Point sur la ligne */
.activity-item::before {
  content: ''; position: absolute; left: -6px; top: 5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary);
}
.activity-item.warning::before { background: var(--secondary); }
.activity-item.success::before { background: var(--teal); }

.activity-time {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-text);
  margin-bottom: 4px; display: block;
}

/* --- 10. LISTE DE TÂCHES (Checklist) --- */
.list-group-item {
  background: transparent;
  border-bottom: 1px solid #f0f0f0;
  padding: 1rem 0;
}
.form-check-input {
  width: 1.3em; height: 1.3em;
  border-radius: 4px;
  border: 2px solid #D1D5DB;
  margin-right: 12px;
}
.form-check-input:checked {
  background-color: var(--secondary); /* Coche Orange */
  border-color: var(--secondary);
}

/* --- 11. UTILITAIRES --- */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-teal { color: var(--teal) !important; }
.text-muted { color: var(--muted-text) !important; }

.shadow-soft { box-shadow: var(--shadow-soft) !important; }
.rounded-xl { border-radius: var(--border-radius) !important; }