/* =====================================================================
   Portail DPN — thème personnalisé (chargé automatiquement par Homepage)
   Charte : bleu-canard DDEC (#1F4E5F / #2E7D8C), cohérente avec les diagrammes.
   Ajustez les variables ci-dessous pour changer l'ambiance.
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --dpn-accent: #2E7D8C;      /* accent principal  */
  --dpn-deep:   #1F4E5F;      /* bleu foncé        */
  --dpn-bg1:    #0e1a20;      /* fond haut         */
  --dpn-bg2:    #16242e;      /* fond bas          */
  --dpn-card:   rgba(255,255,255,.05);
  --dpn-border: rgba(255,255,255,.09);
}

/* --- Typo + fond dégradé --- */
body, .font-sans {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
}
body {
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(46,125,140,.20), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(31,78,95,.28), transparent 55%),
    linear-gradient(160deg, var(--dpn-bg1), var(--dpn-bg2)) fixed !important;
}

/* --- En-tête / titre --- */
#page_container h1, .text-theme-800, .text-theme-900 { letter-spacing: .01em; }

/* --- Barre d'onglets (zones) --- */
#myTab a, [id^="tab-"] {
  border-radius: 9px !important;
  transition: all .15s ease;
}
#myTab a[aria-selected="true"], .tab-active {
  background: var(--dpn-accent) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(46,125,140,.35);
}

/* --- Titres de groupes --- */
h2.services-group-name, .services-group h2, .flex.selecgroup, h2 {
  text-transform: uppercase;
  font-size: .72rem !important;
  letter-spacing: .12em;
  color: #8fd0dc !important;
}
/* petit trait d'accent sous les titres de groupe */
.services-group > h2::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 4px;
  background: linear-gradient(90deg, var(--dpn-accent), transparent);
  border-radius: 2px;
}

/* --- Cartes de services --- */
.service-card, li.service, .services-group li > div {
  background: var(--dpn-card) !important;
  border: 1px solid var(--dpn-border) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(6px);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.service-card:hover, li.service:hover, .services-group li > div:hover {
  transform: translateY(-2px);
  border-color: var(--dpn-accent) !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
}

/* --- Nom + description des services --- */
.service-title, .service-name { font-weight: 600 !important; }
.service-description { opacity: .75; }

/* --- Widgets d'en-tête (date, greeting, recherche) --- */
#information-widgets .widget, .information-widget-resources {
  background: var(--dpn-card);
  border: 1px solid var(--dpn-border);
  border-radius: 12px;
}

/* --- Scrollbar discrète --- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--dpn-deep); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }
