/* ==========================================================================
   PRISM — Charte graphique inspirée Polytech Angers
   ========================================================================== */

:root {
  --prism-blue:       #1d3f73;
  --prism-blue-dark:  #152e56;
  --prism-blue-light: #e8eef7;
  --prism-bg:         #f4f6f9;
}

body {
  background: var(--prism-bg);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.navbar-prism {
  background: #ffffff;
  border-bottom: 3px solid var(--prism-blue);
  padding-top: .75rem;
  padding-bottom: .75rem;
}
.navbar-prism .brand-logo {
  height: 52px;
  width: auto;
}
.navbar-prism .brand-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: #1a1a1a;
  line-height: 1.1;
}
.navbar-prism .brand-sub {
  font-size: .68rem;
  color: #666;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.navbar-prism .ua-label {
  color: #555;
  font-size: .8rem;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
}

/* --------------------------------------------------------------------------
   Bouton principal → bleu
   -------------------------------------------------------------------------- */
.btn-primary {
  background-color: var(--prism-blue);
  border-color:     var(--prism-blue);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--prism-blue-dark);
  border-color:     var(--prism-blue-dark);
}
.btn-primary:focus-visible {
  box-shadow: 0 0 0 .25rem rgba(29,63,115,.35);
}

/* --------------------------------------------------------------------------
   Chip input
   -------------------------------------------------------------------------- */
.chip-wrapper {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 7px 10px;
  border: 1px solid #dee2e6; border-radius: 8px; background: #fff;
  cursor: text; min-height: 48px; align-items: center;
  transition: border-color .15s, box-shadow .15s;
}
.chip-wrapper:focus-within {
  border-color: #86b7fe;
  box-shadow: 0 0 0 .25rem rgba(29,63,115,.2);
}
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--prism-blue-light); color: var(--prism-blue);
  border-radius: 20px; padding: 3px 10px 3px 12px;
  font-size: .82rem; font-weight: 500; white-space: nowrap;
}
.chip-remove {
  background: none; border: none; padding: 0 0 0 2px;
  cursor: pointer; color: #8898aa; font-size: 1.05rem; line-height: 1;
}
.chip-remove:hover { color: #dc3545; }
.chip-field {
  border: none; outline: none; flex: 1; min-width: 180px;
  font-size: .9rem; padding: 2px 0; background: transparent;
}

/* --------------------------------------------------------------------------
   Autocomplete dropdown
   -------------------------------------------------------------------------- */
.ac-dropdown {
  position: absolute; z-index: 1000; background: #fff;
  border: 1px solid #dee2e6; border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  max-height: 260px; overflow-y: auto; min-width: 320px;
}
.ac-item { padding: 8px 14px; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.ac-item:hover, .ac-item.active { background: var(--prism-blue-light); }
.ac-name  { font-weight: 500; font-size: .88rem; color: #1a1a2e; }
.ac-email { font-size: .78rem; color: #6c757d; }
.ac-badge { margin-left: auto; font-size: .68rem; }
.ac-spinner { padding: 10px 14px; color: #8898aa; font-size: .85rem; }

/* --------------------------------------------------------------------------
   Slot cards
   -------------------------------------------------------------------------- */
.slot-card {
  border-left: 5px solid var(--prism-blue) !important;
  border-radius: 10px !important;
  transition: transform .15s, box-shadow .15s;
}
.slot-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12) !important;
}
.slot-day-num { font-size: 2rem; font-weight: 700; line-height: 1; color: var(--prism-blue); }
.slot-month   { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #8898aa; }
.slot-time    { font-size: 1.35rem; font-weight: 600; color: #1a1a2e; }

/* --------------------------------------------------------------------------
   Historique
   -------------------------------------------------------------------------- */
.history-item {
  cursor: pointer; border-radius: 8px; padding: 8px 12px;
  border: 1px solid #dee2e6; background: #fff;
  transition: background .12s, border-color .12s;
}
.history-item:hover { background: var(--prism-blue-light); border-color: var(--prism-blue); }
.history-emails { font-size: .8rem; color: #444; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-meta   { font-size: .72rem; color: #8898aa; }
