:root{
  /* =========================
     Mitel (palette)
     ========================= */
  --mitel-dark:  #15325f;  /* Dark Blue */
  --mitel-mid:   #0073d0;  /* Mid Blue */
  --mitel-light: #00a1e0;  /* Light Blue */
  --mitel-gray:  #58595b;

  /* =========================
     UI tokens (gardent le style d’avant)
     ========================= */
  --bg: #f6f8ff;

  --panel:  rgba(255,255,255,.72);
  --panel2: rgba(255,255,255,.90);

  --text:  rgba(21,50,95,.95);      /* teinté Mitel dark */
  --muted: rgba(88,89,91,.82);      /* Mitel gray */
  --line:  rgba(21,50,95,.12);

  --accent:  var(--mitel-mid);
  --accent2: var(--mitel-light);

  --good: #16a34a;

  --r: 18px;
  --shadow: 0 18px 50px rgba(21,50,95,.12);
}

*{ box-sizing: border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: Arial, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* =========================
   Animated wave background (comme avant, en Mitel)
   ========================= */
.bg-waves{
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(0,115,208,.18), transparent 60%),
    radial-gradient(900px 450px at 80% 20%, rgba(0,161,224,.16), transparent 55%),
    radial-gradient(1200px 700px at 55% 90%, rgba(21,50,95,.10), transparent 60%),
    linear-gradient(to bottom, #f7f9ff, #f3f6ff);
}

/* IMPORTANT : ne pas supprimer ces propriétés, sinon “fond coupé” */
.wave{
  position:absolute;
  left:-20%;
  width:140%;
  height: 260px;
  bottom: -60px;
  border-radius: 999px;
  filter: blur(22px);
  opacity: .55;
  transform: translate3d(0,0,0);
  animation: drift 12s ease-in-out infinite;
  background: linear-gradient(90deg, rgba(0,115,208,.20), rgba(0,161,224,.16), rgba(21,50,95,.12));
}
.wave.w1{ bottom:-90px; height:320px; animation-duration: 14s; opacity:.38; }
.wave.w2{ bottom:-120px; height:280px; animation-duration: 18s; opacity:.30; }
.wave.w3{ bottom:-150px; height:240px; animation-duration: 22s; opacity:.24; }

@keyframes drift{
  0%   { transform: translateX(-2%) translateY(0) rotate(-1deg); }
  50%  { transform: translateX(2%) translateY(-14px) rotate(1deg); }
  100% { transform: translateX(-2%) translateY(0) rotate(-1deg); }
}

/* =========================
   Top bar (structure d’avant)
   ========================= */
.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(246,248,255,.70);
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
  min-width: 240px;
}

.logo {
    width: 48px;
    height: 48px;
    display: grid;
    font-weight: 800;
    color: white;
    border-radius: 14px;
    place-items: center;
  /*background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 30px rgba(0,115,208,.18);*/
}

/* si tu mets un logo image dans .logo */
/*.logo img{
  display:block;
  max-height: 24px;
  width:auto;
}*/
.limited-height {
    max-height: 40px;
    width: auto;
}

.brandText .title{
  font-weight: 900;
  letter-spacing: .2px;
  font-size: 16px;
  color: rgba(21,50,95,.95);
}
.brandText .subtitle{
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
}

.searchBox{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.searchBox input{
  width: min(520px, 60vw);
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.85);
  outline: none;
  box-shadow: 0 10px 30px rgba(21,50,95,.06);
}
.searchBox input:focus{
  border-color: rgba(0,115,208,.32);
  box-shadow: 0 14px 40px rgba(0,115,208,.12);
}

/* =========================
   Buttons (rendu “pro” + Mitel)
   - Appeler / Email deviennent propres aussi
   ========================= */
.btn{
  border: 1px solid rgba(0,115,208,.28);
  background: linear-gradient(135deg, rgba(0,115,208,.96), rgba(0,161,224,.92));
  color: white;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0,115,208,.16);
  text-decoration: none;
  display:inline-flex;
  align-items:center;
  gap: 8px;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0px); }

.btnGhost{
  background: rgba(255,255,255,.75);
  color: rgba(21,50,95,.90);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(21,50,95,.06);
}
.btnGhost:hover{
  border-color: rgba(0,115,208,.20);
}

/* =========================
   Layout / Cards
   ========================= */
.container{
  max-width: 980px;
  margin: 22px auto 34px;
  padding: 0 16px;
}

.card{
  background: var(--panel);
  border: 1px solid rgba(21,50,95,.10);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 18px;
}

.footer{
  margin-top: 12px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.hint{ margin-top: 14px; }
.chip{
  background: rgba(21,50,95,.06);
  border: 1px solid rgba(21,50,95,.08);
  padding: 4px 8px;
  border-radius: 999px;
  margin: 0 4px;
}

/* =========================
   Grids / Responsive
   ========================= */
.grid{
  display:grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
}
@media (max-width: 860px){
  .topbar{ grid-template-columns: 1fr; }
  .searchBox{ justify-content: flex-start; }
  .grid{ grid-template-columns: 1fr; }
}

/* =========================
   Person header / Avatar
   ========================= */
.personHead{
  display:flex;
  gap: 14px;
  align-items:center;
}

.avatar{
  width: 72px;
  height: 72px;
  border-radius: 60px;
  overflow:hidden;
  flex: 0 0 auto;
  background: linear-gradient(135deg, rgba(0,115,208,.16), rgba(0,161,224,.12));
  border: 1px solid rgba(21,50,95,.10);
  box-shadow: 0 14px 35px rgba(21,50,95,.10);
  display:block;
  font-weight: 900;
  color: rgba(21,50,95,.85);
}
.avatar img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* fallback initials centering (si pas d’image) */
.avatar:not(:has(img)){
  display:grid;
  place-items:center;
}

.h1{
  font-size: 22px;
  font-weight: 950;
  letter-spacing: .2px;
}

.meta{
  margin-top: 4px;
  color: var(--muted);
  font-size: 13.5px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

/* badges en Mitel */
.badge{
  display:inline-flex;
  gap: 6px;
  align-items:center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,115,208,.10);
  border: 1px solid rgba(0,115,208,.18);
}
.badge.good{
  background: rgba(0,161,224,.10);
  border-color: rgba(0,161,224,.18);
}

/* =========================
   Sections / key-values
   ========================= */
.sectionTitle{
  font-weight: 900;
  margin: 12px 0 10px;
  letter-spacing: .2px;
}

.kv{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(21,50,95,.10);
}

.k{ color: var(--muted); font-size: 13px; }
.v{ font-weight: 700; }

/* =========================
   Lists
   ========================= */
.list{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.item{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(21,50,95,.10);
  cursor: pointer;
  text-decoration:none;
  color: inherit;
}
.item:hover{ border-color: rgba(0,115,208,.22); }

.item .who{ display:flex; flex-direction: column; }
.item .who .name{ font-weight: 900; }
.item .who .small{ color: var(--muted); font-size: 13px; margin-top: 2px; }
.item .go{ color: rgba(0,115,208,.92); font-weight: 900; }

/* =========================
   Empty states
   ========================= */
.empty{
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.65);
  border: 1px dashed rgba(21,50,95,.20);
  color: rgba(21,50,95,.75);
}

.smallMuted{ color: var(--muted); font-size: 13px; }

/* liens */
a{ color: rgba(0,115,208,.92); }
a:hover{ color: rgba(0,161,224,.95); }

/* Les boutons ne doivent JAMAIS hériter du style des liens */
a.btn,
a.btn:hover,
a.btn:active,
a.btn:focus,
a.btnGhost,
a.btnGhost:hover,
a.btnGhost:active,
a.btnGhost:focus{
  color: white;
  text-decoration: none;
}

a.btnGhost,
a.btnGhost:hover{
  color: rgba(21,50,95,.90);
}


