/* ── Base ─────────────────────────────────────── */
body {
  padding-top: 40px;
  padding-bottom: 40px;
  background: linear-gradient(135deg, #e8f0fe 0%, #f5f7fa 50%, #e3edf7 100%);
  background-attachment: fixed;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

#inputConsumption {
  margin-bottom: 10px;
}

/* ── Cards ────────────────────────────────────── */
.card-waterfront {
  background: #fff;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .08), 0 1.5px 6px rgba(0, 0, 0, .04);
  padding: 2rem 2rem 1.5rem;
  transition: box-shadow .25s ease;
}
.card-waterfront:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, .12), 0 2px 8px rgba(0, 0, 0, .06);
}

/* ── Titre ────────────────────────────────────── */
.page-title {
  font-weight: 700;
  letter-spacing: -.02em;
  color: #1a3055;
}
.page-title .bi-droplet-fill {
  filter: drop-shadow(0 2px 4px rgba(13, 110, 253, .35));
}

/* ── Inputs ───────────────────────────────────── */
.form-control {
  border: 1.5px solid #d0d7e2;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:not(.input-group .form-control) {
  border-radius: .6rem;
}
.form-control:focus {
  border-color: #7aafff;
  box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .15);
}
.input-group-text {
  background: #eaf1fb;
  border: 1.5px solid #d0d7e2;
  color: #4a6fa5;
  font-weight: 600;
  font-size: .85rem;
}

/* ── Boutons d'action ─────────────────────────── */
.btn-action-group .btn {
  border-radius: .75rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-action-group .btn:active {
  transform: scale(.95);
}
.btn-action-group .btn-light {
  background: #f0f4fa;
  border: 1.5px solid #d0d7e2;
  color: #4a6fa5;
}
.btn-action-group .btn-light:hover {
  background: #e1e9f5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.btn-action-group .btn-primary {
  box-shadow: 0 4px 14px rgba(13, 110, 253, .3);
}
.btn-action-group .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(13, 110, 253, .4);
}

/* ── Bouton déconnexion ───────────────────────── */
.btn-logout {
  border-radius: .6rem;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, .85);
  border: 1.5px solid #d0d7e2;
  font-size: .8rem;
  transition: background .2s, box-shadow .2s;
}
.btn-logout:hover {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}

/* ── Séparateur ───────────────────────────────── */
.divider-waterfront {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c0d0e4, transparent);
}

/* ── Tableau ──────────────────────────────────── */
.table-waterfront {
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}
.table-waterfront table {
  margin-bottom: 0;
}
.table-waterfront thead th {
  background: #eaf1fb;
  color: #3a5a8c;
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 2px solid #d0d7e2;
  padding: .65rem .75rem;
}
.table-waterfront tbody td {
  vertical-align: middle;
  padding: .6rem .75rem;
  font-size: .9rem;
  color: #3b4a5a;
}
.table-waterfront tbody tr {
  transition: background .15s ease;
}
.table-waterfront tbody tr:hover {
  background: #f4f8fe !important;
}

/* ── Alertes ──────────────────────────────────── */
.alert {
  border-radius: .75rem;
  border: none;
  font-size: .9rem;
}
.alert-success {
  background: #e6f7ee;
  color: #1a6b3c;
}
.alert-danger {
  background: #fdeaea;
  color: #943030;
}

/* ── Login card ───────────────────────────────── */
.card-login {
  background: #fff;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .10), 0 2px 8px rgba(0, 0, 0, .05);
  padding: 2.5rem 2rem 2rem;
}

/* ── Animations ───────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp .4s ease-out both;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 576px) {
  .card-waterfront,
  .card-login {
    padding: 1.5rem 1.25rem 1.25rem;
    border-radius: .85rem;
  }
}

