/* ============================================================
   Page d'accueil — styles spécifiques
   ============================================================ */

/* Hero home */
.home-hero { margin-top: 51px; }
.home-hero-tag {
  display: inline-block; background: rgba(255,255,255,.15); border-radius: 4px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px;
  padding: 3px 10px; margin-bottom: 14px; color: #bbdefb;
}
.home-hero h1 { font-size: 38px; font-weight: 800; margin: 0 0 12px; line-height: 1.15; color: #fff; }
.home-hero h1 em { font-style: normal; color: #90caf9; }
.home-ops-row { display: flex; flex-wrap: wrap; gap: 8px; }
.home-ops-row .op-btn { min-width: 130px; }

/* Section head */
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: 22px; font-weight: 700; color: #1a237e; margin-bottom: 6px; }
.section-head p  { font-size: 14px; color: #777; margin: 0; }

/* Regions */
.regions-section { padding: 42px 0; background: #fff; border-top: 1px solid #e9ecef; }
.regions-grid { display: flex; flex-direction: column; gap: 32px; }

.region-block {}
.region-name {
  font-size: 15px; font-weight: 700; color: #0d47a1;
  margin: 0 0 12px; padding-bottom: 8px;
  border-bottom: 2px solid #e3f2fd;
  text-transform: uppercase; letter-spacing: .5px;
}

.dep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}

.dep-card {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid #e0e0e0; border-radius: 8px;
  padding: 10px 12px; background: #fff;
  text-decoration: none; color: #333;
  transition: border-color .15s, box-shadow .15s;
  position: relative; overflow: hidden;
}
.dep-card:hover { border-color: #1976d2; box-shadow: 0 2px 8px rgba(25,118,210,.12); text-decoration: none; color: #1976d2; }

.dep-num {
  font-size: 11px; font-weight: 700; color: #fff;
  background: #0d47a1; border-radius: 4px;
  padding: 2px 6px; min-width: 28px; text-align: center; flex-shrink: 0;
}
.dep-card.dep-high .dep-num { background: #1976d2; }
.dep-card.dep-mid  .dep-num { background: #fb8c00; }
.dep-card.dep-low  .dep-num { background: #e53935; }

.dep-info { flex: 1; min-width: 0; }
.dep-name { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dep-meta { display: block; font-size: 11px; color: #888; margin-top: 1px; }

.dep-bar {
  width: 50px; height: 6px; background: #eee; border-radius: 3px;
  flex-shrink: 0; overflow: hidden;
}
.dep-bar-fill { height: 100%; border-radius: 3px; background: #43a047; }
.dep-card.dep-high .dep-bar-fill { background: #1976d2; }
.dep-card.dep-mid  .dep-bar-fill { background: #fb8c00; }
.dep-card.dep-low  .dep-bar-fill { background: #e53935; }

/* Editorial */
.editorial-section { border-top: 1px solid #e9ecef; }

/* ── Responsive ── */
@media (max-width: 767px) {
  .home-hero h1 { font-size: 26px; }
  .dep-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .dep-card { padding: 8px 10px; }
  .dep-bar { display: none; }
  .home-ops-row .op-btn { min-width: calc(50% - 4px); }
}
@media (max-width: 480px) {
  .dep-grid { grid-template-columns: 1fr; }
}
