/* Theme Spekty — couleurs de marque fournies le 9 octobre 2026.
   A ajuster facilement si un vrai fichier logo/charte est fourni. */
:root {
  --bleu-vif: #019ef7;
  --bleu-profond: #0f56e3;
  --marine: #062259;
  --vert: #5fa373; /* assombri depuis #A9D18E pour un meilleur contraste texte */
  --orange: #e46138;
  --jaune: #caa033; /* assombri depuis #FDCE6F pour un meilleur contraste texte */
  --gris-clair: #d9d9d9;
  --gris-fond: #f4f6f9;
  --gris-moyen: #7f7f7f;
  --blanc: #ffffff;
  --ombre: 0 1px 3px rgba(6, 34, 89, 0.08), 0 1px 2px rgba(6, 34, 89, 0.06);
  --rayon: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--gris-fond);
  color: var(--marine);
}

.entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--blanc);
  border-bottom: 1px solid var(--gris-clair);
  position: sticky;
  top: 0;
  z-index: 10;
}

.marque { display: flex; align-items: center; gap: 12px; }

.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--marine);
}
.logo .point { color: var(--bleu-vif); }

.separateur { color: var(--gris-clair); font-size: 20px; }

.module { font-size: 15px; font-weight: 600; color: var(--gris-moyen); }

.compteurs-resume { display: flex; gap: 8px; }
.pastille {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--blanc);
}
.pastille-a-rattacher { background: var(--orange); }
.pastille-a-traiter { background: var(--bleu-vif); }

.contenu { max-width: 1200px; margin: 0 auto; padding: 20px 24px 60px; }

.onglets {
  display: flex;
  gap: 4px;
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 4px;
  box-shadow: var(--ombre);
  margin-bottom: 18px;
  width: fit-content;
}

.onglet {
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gris-moyen);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, color 0.15s;
}
.onglet:hover { background: var(--gris-fond); }
.onglet.actif { background: var(--marine); color: var(--blanc); }
.onglet .nombre {
  font-size: 12px;
  background: rgba(127, 127, 127, 0.15);
  padding: 1px 7px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}
.onglet.actif .nombre { background: rgba(255, 255, 255, 0.2); }

.bandeau-mission {
  background: #eaf4ff;
  border: 1px solid var(--bleu-vif);
  color: var(--marine);
  padding: 10px 16px;
  border-radius: var(--rayon);
  margin-bottom: 16px;
  font-size: 14px;
}
.lien-retour { margin-left: 12px; color: var(--bleu-profond); font-weight: 600; text-decoration: none; }
.lien-retour:hover { text-decoration: underline; }

.liste-conteneur {
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  overflow: hidden;
}

table.liste { width: 100%; border-collapse: collapse; font-size: 14px; }
.liste thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gris-moyen);
  border-bottom: 1px solid var(--gris-clair);
}
.liste tbody tr {
  border-bottom: 1px solid var(--gris-fond);
  cursor: pointer;
  transition: background 0.1s;
}
.liste tbody tr:hover { background: var(--gris-fond); }
.liste tbody td { padding: 12px 16px; vertical-align: top; }

.liste-vide { padding: 40px; text-align: center; color: var(--gris-moyen); }

.badge-statut {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--blanc);
  white-space: nowrap;
}
.badge-a_rattacher { background: var(--orange); }
.badge-a_traiter { background: var(--bleu-vif); }
.badge-informatif { background: var(--jaune); color: var(--marine); }
.badge-traite { background: var(--vert); }

.mention {
  display: inline-block;
  font-size: 11px;
  background: var(--gris-fond);
  border: 1px solid var(--gris-clair);
  color: var(--marine);
  padding: 2px 8px;
  border-radius: 6px;
  margin: 2px 4px 2px 0;
}

.voile {
  position: fixed; inset: 0;
  background: rgba(6, 34, 89, 0.35);
  z-index: 20;
}

.panneau-detail {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(520px, 100vw);
  background: var(--blanc);
  box-shadow: -8px 0 24px rgba(6, 34, 89, 0.15);
  z-index: 21;
  overflow-y: auto;
  padding: 28px;
}

.fermer {
  position: absolute; top: 18px; right: 18px;
  border: none; background: var(--gris-fond);
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 16px; cursor: pointer; color: var(--marine);
}
.fermer:hover { background: var(--gris-clair); }

.detail-titre { font-size: 18px; font-weight: 800; margin: 0 0 4px; padding-right: 40px; }
.detail-sous-titre { color: var(--gris-moyen); font-size: 13px; margin-bottom: 20px; }

.detail-section { margin-bottom: 22px; }
.detail-section h3 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--gris-moyen); margin: 0 0 10px;
}
.champ { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--gris-fond); font-size: 14px; }
.champ .libelle { color: var(--gris-moyen); }
.champ .valeur { font-weight: 600; text-align: right; }

.bouton {
  border: none; border-radius: 8px; padding: 10px 18px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: opacity 0.15s;
}
.bouton:hover { opacity: 0.88; }
.bouton-primaire { background: var(--bleu-vif); color: var(--blanc); }
.bouton-secondaire { background: var(--gris-fond); color: var(--marine); }
.bouton:disabled { opacity: 0.5; cursor: not-allowed; }

.ligne-boutons { display: flex; gap: 10px; margin-top: 8px; }

.zone-recherche { display: flex; gap: 8px; margin-top: 10px; }
.zone-recherche input {
  flex: 1; padding: 8px 10px; border: 1px solid var(--gris-clair);
  border-radius: 8px; font-size: 14px;
}

.resultat-mission {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; border: 1px solid var(--gris-clair); border-radius: 8px;
  margin-top: 8px; font-size: 13px;
}

.lien-aircall { color: var(--bleu-profond); font-size: 13px; text-decoration: none; font-weight: 600; }
.lien-aircall:hover { text-decoration: underline; }

.message-info { font-size: 13px; color: var(--gris-moyen); font-style: italic; }
