/* ── Bottom nav — mobile uniquement (<768px) ─────────────────────────────── */
.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: #fff;
    border-top: 1px solid var(--gray-200);
    z-index: 200;
    box-shadow: 0 -1px 0 var(--gray-100), 0 -4px 12px rgba(30,10,2,.05);
    padding: 0 4px;
  }
}

/* Items — liens de navigation */
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  color: var(--gray-400);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  transition: color var(--transition);
  min-width: 0;
}

.bottom-nav-item i {
  font-size: 22px;
  line-height: 1;
}

.bottom-nav-item.active,
.bottom-nav-item[aria-current="page"] {
  color: var(--brand-primary);
}

.bottom-nav-item:hover {
  color: var(--gray-700);
}

/* Icône SVG (rétrocompatibilité) */
.bottom-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 20px;
  flex-shrink: 0;
}

.bottom-nav-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
}

.bottom-nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ── Bouton action central ("+") ──────────────────────────────────────────── */
.bottom-nav-action {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: none;
  cursor: pointer;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 2px 12px rgba(251,118,44,.35);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  margin: 0 4px;
}

.bottom-nav-action:hover {
  background: var(--brand-primary-hover);
  box-shadow: 0 4px 16px rgba(251,118,44,.45);
}

/* État actif — rotation de l'icône "+" → "×" */
.quick-actions-wrapper.is-active .bottom-nav-action {
  background: var(--gray-700);
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(30,10,2,.2);
}

/* ── Action sheet (overlay + panel) ──────────────────────────────────────── */

/* Masquée sur desktop/tablet */
.quick-actions-sheet {
  display: none;
}

@media (max-width: 768px) {
  .quick-actions-sheet {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 300;
    pointer-events: none;
  }

  .quick-actions-sheet.is-open {
    pointer-events: auto;
  }
}

/* Backdrop semi-transparent */
.quick-actions-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30,10,2,.45);
  backdrop-filter: blur(1px);
  opacity: 0;
  transition: opacity 220ms ease;
  cursor: pointer;
}

.quick-actions-sheet.is-open .quick-actions-backdrop {
  opacity: 1;
}

/* Panel blanc qui remonte du bas */
.quick-actions-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 10px 16px calc(20px + var(--bottom-nav-height));
  transform: translateY(100%);
  transition: transform 280ms cubic-bezier(.32,.72,0,1);
  box-shadow: 0 -8px 32px rgba(30,10,2,.1);
}

.quick-actions-sheet.is-open .quick-actions-panel {
  transform: translateY(0);
}

/* Poignée de drag */
.quick-actions-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--gray-200);
  margin: 0 auto 16px;
}

/* Titre de section */
.quick-actions-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gray-400);
  margin-bottom: 4px;
  padding: 0 4px;
}

/* Items d'action */
.quick-actions-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--r-lg);
  color: var(--gray-700);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.quick-actions-item:hover {
  background: var(--gray-50);
  color: var(--gray-900);
}

.quick-actions-item-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
