/* === Tableau de bord === */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.dash-box {
    background: #ece3da;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    color: #003366;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.dash-box i {
    font-size: 2.5rem;
    color: #0059b3;
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.dash-box h5 {
    font-weight: 600;
    margin-top: 5px;
}

.dash-box p {
    font-size: 0.9rem;
    color: #666;
}

.dash-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #0059b3 0%, #007bff 100%);
    color: white;
}

.dash-box:hover i {
    color: white;
    transform: scale(1.2);
}

.dash-box:hover p {
    color: #e6e6e6;
}

/* === Animation d'apparition === */
@keyframes fadeZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(15px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Appliquer l'animation aux box */
.dash-box {
    opacity: 0;
    animation: fadeZoomIn 0.6s ease forwards;
}

/* Délai progressif pour effet en cascade */
.dash-box:nth-child(1) { animation-delay: 0.1s; }
.dash-box:nth-child(2) { animation-delay: 0.2s; }
.dash-box:nth-child(3) { animation-delay: 0.3s; }
.dash-box:nth-child(4) { animation-delay: 0.4s; }
.dash-box:nth-child(5) { animation-delay: 0.5s; }
.dash-box:nth-child(6) { animation-delay: 0.6s; }
.dash-box:nth-child(7) { animation-delay: 0.7s; }
.dash-box:nth-child(8) { animation-delay: 0.8s; }

@media (max-width: 768px) {
  .dash-box {
    animation-duration: 0.8s;
    transform-origin: center bottom;
  }
}


@media (max-width: 992px) {
  .sidebar {
    left: -250px;
  }

  .sidebar.active {
    left: 0;
  }

  .topbar {
    left: 0;
  }
}

.content {
  margin-left: 250px;
  transition: all 0.3s ease;
}

@media (max-width: 992px) {
  .content {
    margin-left: 0;
  }
}

/* ----- Forms ----- */
.form-label {
  font-weight: 500;
}
.card {
  border-radius: 12px;
}
.btn {
  border-radius: 8px;
}


#btn-dashboard-fixed {
    position: fixed;
    bottom: 25px;
    right: 25px;

    padding: 12px 20px;
    background: #0d6efd;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;

    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    z-index: 9999;

    transition: 0.25s;
}

#btn-dashboard-fixed:hover {
    background: #0a58ca;
    transform: translateY(-3px);
}


