
/* ==========================================================
   Dashboard – Secteurs (Google Workspace style)
   ========================================================== */

.imd-dash-sectorstrip{
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(0,0,0,.06);
}

.imd-dash-sectorstrip__title{
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.imd-dash-sectorstrip__subtitle{
  margin: 0 0 18px 0;
  color: #475569;
  font-size: 14px;
}

/* Container */
.imd-workspace-container{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0 0 0;
}

/* Card (inactive) */
.imd-app-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 92px;
  min-height: 112px;
  padding: 14px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  background: transparent;
  position: relative;
  overflow: hidden;
  text-align: center;
  box-sizing: border-box;
}

.imd-app-icon{
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 14px;
  background: rgba(2,6,23,.04);
}

.imd-app-item img{
  width: 38px;
  height: 38px;
  object-fit: contain;
  transition: transform .25s ease;
  display: block;
}

.imd-app-icon-fallback{
  font-weight: 700;
  color: #0f172a;
  font-size: 16px;
  letter-spacing: .5px;
}

/* Name */
.imd-app-name{
  font-size: 13px;
  color: #475569;
  font-weight: 600;
  transition: color .25s ease, font-size .25s ease;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Details (shown when active) */
.imd-app-details{
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity .25s ease .08s;
  width: 100%;
}

.imd-app-full{
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 10px;
  margin-bottom: 6px;
  text-align: center;
}

.imd-app-desc{
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
  margin: 0 0 12px 0;
}

.imd-app-link{
  font-size: 13px;
  color: #1a73e8;
  text-decoration: none;
  font-weight: 600;
}

.imd-app-link:hover{
  text-decoration: underline;
}

/* Active state */
.imd-app-item.active{
  background: #ffffff;
  width: 200px;
  min-height: 230px;
  box-shadow: 0 10px 28px rgba(2,6,23,.12);
  border-radius: 20px;
  z-index: 5;
  padding-bottom: 18px;
}

.imd-app-item.active img{
  transform: scale(1.08);
}

.imd-app-item.active .imd-app-name{
  color: #0f172a;
  font-weight: 700;
  font-size: 15px;
}

.imd-app-item.active .imd-app-details{
  opacity: 1;
  height: auto;
  overflow: visible;
}

/* Hover on inactive */
.imd-app-item:not(.active):hover{
  background: rgba(255,255,255,.6);
}

/* Responsive: keep items readable */
@media (max-width: 920px){
  .imd-workspace-container{
    justify-content: center;
  }
}

@media (max-width: 520px){
  .imd-app-item.active{
    width: 100%;
    max-width: 360px;
  }
}
