/* === Global === */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #f5f8fa;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e6eff8, #00b4d8);
    z-index: -1;
    overflow: hidden;
}

/* bulles animées */
.bubbles {
    position: absolute;
    bottom: -100px;
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.bubbles span {
    position: relative;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 10px;
    border-radius: 50%;
    animation: rise 12s linear infinite;
    animation-duration: calc(120s / var(--i));
}

/* Boutons style “app mobile” */
header .btn {
  min-width: 130px;
  display: flex;
  justify-content: center;
}

@keyframes rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100vh) scale(1.3);
        opacity: 0;
    }
}

a {
  text-decoration: none;
  color: inherit;
}

.container, .container-fluid {
  max-width: 1200px;
}

/* --- Cartes (cards) --- */
.card {
  border-radius: 1rem;
  overflow: hidden;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.card-header {
  border-bottom: none;
  font-weight: 600;
}


.card-body{
  background-color: #ece3da;
}
/* 1. Changement de la couleur de fond du card-body au survol */
.card-body:hover {
    background-color: #eeb161; /* Couleur de fond légèrement grise (exemple) */
    cursor: pointer; /* Indique à l'utilisateur que l'élément est cliquable */
    transition: background-color 0.3s ease; /* Ajoute une transition douce */
}

/* 2. Changement de la couleur du titre (h6) au survol */
.card-body:hover h6 {
    color: #fafafa; /* Couleur de texte plus foncée (exemple) */
    transition: color 0.3s ease;
}

/* --- Boutons uniformes --- */
.btn {
  border-radius: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

.btn-success {
  background-color: #28a745;
  border-color: #28a745;
}

.btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
}

.btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
}

/* --- Formulaires --- */
.form-control, .form-select {
  border-radius: 0.75rem;
  border-color: #ced4da;
}

.form-control:focus, .form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
  border-color: #007bff;
}

/* --- Boutons d’action dans les tables --- */
.btn-outline-primary, .btn-outline-danger {
  border-radius: 0.5rem;
  padding: 0.3rem 0.5rem;
}

/* --- Alertes / messages --- */
.alert {
  border-radius: 0.75rem;
}

.topbar {
  position: fixed;
  top: 0;
  left: 250px;
  right: 0;
  height: 60px;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  z-index: 1030;
  transition: all 0.3s ease;
}


/* === Contenu === */
main {
    flex: 1;
    padding: 20px;
    transition: margin-left 0.3s ease-in-out;
    margin-left: 0;
}

@media (min-width: 992px) {
    .sidebar.active + main {
        margin-left: 250px;
    }
}

#calendar {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.fc .fc-toolbar-title { color: #0d6efd; font-weight:600; }




