.dashboard-view {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.dashboard-scroll-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding-bottom: 140px;
}


/* ---------------------------------------------------- */
/* SECTION SALUTATION & ACCUEIL EN HAUT                */
/* ---------------------------------------------------- */
.home-greeting-card {
  display: flex;
  flex-direction: column;
  padding: 14px 6px 0 6px;
  text-align: left;
}

.greeting-pretitle {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.greeting-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 6px;
}

.greeting-subtitle {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Banniere d acces bloque / suspendu */
.access-blocked-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: rgba(239, 68, 68, 0.08);
  border: 1.5px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-card);
  padding: 16px;
  margin: 10px 4px 0 4px;
}

.access-blocked-icon {
  color: #ef4444;
  display: flex;
  align-items: center;
  margin-top: 1px;
}

.access-blocked-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.access-blocked-title {
  font-size: 14px;
  font-weight: 800;
  color: #dc2626;
}

.access-blocked-text {
  font-size: 12px;
  font-weight: 500;
  color: #7f1d1d;
  line-height: 1.4;
}

/* ---------------------------------------------------- */
/* SPEED DIAL FAB FLOTTANT EN BAS A DROITE (STYLE 1)    */
/* ---------------------------------------------------- */
.speed-dial-backdrop {
  position: fixed;
  top: -120px;
  left: -120px;
  right: -120px;
  bottom: -120px;
  width: calc(100vw + 240px);
  height: calc(100vh + 240px);
  min-width: 100%;
  min-height: 100%;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
  z-index: 85;
}

.speed-dial-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.speed-dial-wrapper {
  position: fixed;
  bottom: 74px;
  bottom: max(74px, calc(env(safe-area-inset-bottom, 0px) * 0.4 + 68px));
  right: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 90;
  pointer-events: none; /* le menu replie, invisible, ne doit pas bloquer les clics derriere lui */
}

.fab-main-trigger {
  width: 54px;
  height: 54px;
  border-radius: 27px;
  background: var(--btn-primary-bg, #0f172a);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3);
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 0.25s ease,
              box-shadow 0.25s ease;
  user-select: none;
  touch-action: manipulation;
  pointer-events: auto;
}

body.dark-mode .fab-main-trigger {
  background: #192339;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.fab-main-trigger:hover {
  transform: scale(1.05);
}

.fab-main-trigger:active {
  transform: scale(0.95);
}

.fab-icon-plus {
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Etat ouvert du FAB : rotation 45deg et accent rouge */
.speed-dial-wrapper.open .fab-main-trigger {
  background: #ef4444;
  border-color: #ef4444;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.speed-dial-wrapper.open .fab-icon-plus {
  transform: rotate(45deg);
}

/* Actions en cascade verticale */
.speed-dial-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 12px;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: visibility 0.25s, 
              opacity 0.25s ease, 
              transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.speed-dial-wrapper.open .speed-dial-actions {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.speed-dial-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.85);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.22s ease,
              visibility 0.22s;
  user-select: none;
  touch-action: manipulation;
}

.speed-dial-wrapper.open .speed-dial-btn {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.speed-dial-wrapper.open .speed-dial-btn.item-memo-vocal {
  transition-delay: 0.10s;
}

.speed-dial-wrapper.open .speed-dial-btn.item-memo-text {
  transition-delay: 0.06s;
}

.speed-dial-wrapper.open .speed-dial-btn.item-meeting {
  transition-delay: 0.02s;
}

.speed-dial-label {
  background: var(--bg-card, #ffffff);
  color: var(--text-primary, #0f172a);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 7px 14px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-card, #e2e8f0);
  white-space: nowrap;
  transition: transform 0.15s ease;
}

body.dark-mode .speed-dial-label {
  background: #192339;
  color: #f8fafc;
  border-color: #27354f;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.speed-dial-btn:hover .speed-dial-label {
  transform: translateX(-3px);
}

.speed-dial-icon-circle {
  width: 48px;
  height: 48px;
  margin-right: 3px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.speed-dial-btn:hover .speed-dial-icon-circle {
  transform: scale(1.08);
}

.speed-dial-btn:active .speed-dial-icon-circle {
  transform: scale(0.94);
}

/* Boutons Post-it (vocal, ecrit) et Reunion : meme style sombre */
.speed-dial-icon-circle.memo,
.speed-dial-icon-circle.meeting {
  background: var(--btn-primary-bg, #0f172a);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.3);
}

body.dark-mode .speed-dial-icon-circle.memo,
body.dark-mode .speed-dial-icon-circle.meeting {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.15);
  color: #38bdf8;
}

/* ---------------------------------------------------- */
/* CHOREGRAPHIE TRANSITION VERS MODE REUNION (AOD)      */
/* ---------------------------------------------------- */

/* 1. Descente lente du Menu et du FAB */
.bottom-nav-bar.transitioning-meeting {
  transform: translateX(-50%) translateY(140px) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.35, 1), opacity 0.5s ease !important;
}

.speed-dial-wrapper.transitioning-meeting .fab-main-trigger {
  transform: translateY(140px) scale(0.8) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.35, 1), opacity 0.5s ease !important;
}

/* 2. Depart successif vers la droite de chaque bouton (chacun son tour apres le menu) */
.speed-dial-wrapper.transitioning-meeting .speed-dial-btn.item-meeting {
  transform: translateX(120vw) scale(0.9) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.35, 1) 0.55s, opacity 0.5s ease 0.55s !important;
}

.speed-dial-wrapper.transitioning-meeting .speed-dial-btn.item-memo {
  transform: translateX(120vw) scale(0.9) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.35, 1) 0.85s, opacity 0.5s ease 0.85s !important;
}

/* 3. Assombrissement progressif et majestueux du fond vers le noir absolu (apres les boutons) */
.speed-dial-backdrop.transitioning-meeting {
  background-color: #000000 !important;
  opacity: 1 !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  transition: background-color 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 1.25s, 
              backdrop-filter 0.9s ease 1.25s,
              -webkit-backdrop-filter 0.9s ease 1.25s !important;
}
