 body {
      margin: 0;
      font-family: 'Inter', sans-serif;
      background-color: #f8f9fa;
      color: #212529;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }
    header {
      background-color: #0d1b2a;
      color: white;
      padding: 1rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    header h1 {
      margin: 0;
      font-size: 1.5rem;
      font-weight: 600;
    }
    .auth-button {
      color: white;
      background: transparent;
      border: 1px solid white;
      padding: 0.4rem 1rem;
      border-radius: 0.4rem;
      text-decoration: none;
      font-size: 0.9rem;
    }
    .auth-button:hover {
      background-color: white;
      color: #0d1b2a;
    }

    main {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 2rem;
    }
    .card-container {
      display: flex;
      flex-wrap: wrap;
      gap: 2rem;
      justify-content: center;
      margin-top: 2rem;
    }
    .card {
      background: white;
      border-radius: 1rem;
      box-shadow: 0 10px 20px rgba(0,0,0,0.1);
      padding: 2rem;
      width: 300px;
      text-align: center;
      transition: transform 0.3s ease;
      margin-top: 2rem;
    }
    .card:hover {
      transform: translateY(-5px);
    }
    .card h2 {
      font-size: 1.4rem;
      margin-bottom: 1rem;
      color: #0d1b2a;
    }
    .card p {
      font-size: 0.95rem;
      color: #495057;
      margin-bottom: 1.5rem;
    }
    .card a {
      display: inline-block;
      padding: 0.6rem 1.2rem;
      border-radius: 0.5rem;
      background-color: #00b4d8;
      color: white;
      text-decoration: none;
      font-weight: 600;
    }
    .card a:hover {
      background-color: #0096c7;
    }
    .card a.disabled {
      background-color: #ced4da;
      pointer-events: none;
      cursor: default;
    }
    /* Badge tâches sur carte portail */
/* Badge générique */
.notif-badge {
  display:inline-block;
  min-width:1.6em;
  padding:0 .5em;
  font-weight:600;
  font-size:.85rem;
  line-height:1.6em;
  text-align:center;
  border-radius:999px;
  background:#e5e7eb; /* gris par défaut */
  color:#111;
  transition:background-color .2s ease, color .2s ease;
}

/* Variantes mode "urgence" */
.notif-badge--ok    { background:#16a34a; color:#fff; } /* vert (0 tâche) */
.notif-badge--warn  { background:#f59e0b; color:#111; } /* jaune (des tâches mais rien d'urgent) */
.notif-badge--soon  { background:#fb923c; color:#111; } /* orange (J+1 à J+3) */
.notif-badge--alert { background:#dc2626; color:#fff; } /* rouge (en retard ou aujourd'hui) */
/* Le lien qui porte le badge */
.badge-target {
  position: relative;                 /* point d’ancrage du badge */
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

/* Positionnement "coin en surimpression" */
.badge-target .notif-badge {
  position: absolute;
  top: -0.65em;                       /* monte légèrement le badge */
  right: -0.65em;                     /* déborde un peu sur l’extérieur */
  box-shadow: 0 2px 6px rgba(0,0,0,.18); /* un petit relief sympa */
  border: 1px solid rgba(255,255,255,.9);/* cerclage pour détacher du bouton */
  line-height: 1.2;                   /* compense la bordure */
  min-width: 1.4em;                   /* un peu plus compact */
  padding: 0 .45em;
}

/* Optionnel : quand le bouton est plus petit (mobile) */
@media (max-width: 480px) {
  .badge-target .notif-badge {
    top: -0.6em;
    right: -0.4em;
  }
}


    footer {
      text-align: center;
      padding: 1rem;
      font-size: 0.85rem;
      color: #868e96;
    }