/* === STYLE GLOBAL LYCEE LEONARD DE VINCI === */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, sans-serif;
  background: radial-gradient(circle at top left, #f7f4ef, #e8e3d9);
  color: #2b2b2b;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 1rem;
  width: 100%;
}

/* === NAVBAR === */
.navbar {
  background: linear-gradient(90deg, #1a2638, #23344d, #2f4f7f);
  color: white;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  border-bottom: 3px solid #c5a45f;
}
.navbar-brand, .nav-link {
  color: #f8f8f8 !important;
  font-weight: 500;
  transition: opacity 0.3s ease, transform 0.2s ease;
}
.navbar-brand:hover, .nav-link:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* === ONGLET (NAV TABS) === */
.nav-tabs {
  border-bottom: 2px solid #c5a45f;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #2b3d5b, #23344d);
  border-radius: 0.5rem 0.5rem 0 0;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.15);
}
.nav-tabs .nav-link {
  color: #f8f4e6;
  border: none;
  border-radius: 0.5rem 0.5rem 0 0;
  padding: 0.6rem 1.2rem;
  background-color: transparent;
  transition: all 0.3s ease;
  font-weight: 500;
}
.nav-tabs .nav-link:hover {
  background-color: rgba(197,164,95,0.15);
  color: #f9d66e;
}
.nav-tabs .nav-link.active {
  background-color: #c5a45f;
  color: #1e293b !important;
  font-weight: 600;
  box-shadow: 0 -3px 6px rgba(0,0,0,0.3);
  position: relative;
}

/* === EFFET DE LUEUR LÉONARD === */
.nav-tabs .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #b79448, #e5c77d, #b79448);
  background-size: 200% auto;
  animation: goldFlow 3s linear infinite;
}

@keyframes goldFlow {
  0% { background-position: 0% center; }
  100% { background-position: 100% center; }
}

/* === CONTENU D’ONGLET === */
.tab-content {
  border: 1px solid #d3c4a0;
  border-radius: 0 0 0.5rem 0.5rem;
  background: #fffdfa;
  padding: 1.2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  animation: fadeIn 0.8s ease;
}

/* === ANIMATION APPARITION === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}



/* === TABLES, BOUTONS, FORMULAIRES === */
.table {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background-color: white;
  font-size: 0.95rem;
}
.table thead {
  background-color: #f0e7d2;
  color: #2b2b2b;
  font-weight: 600;
}
.table-hover tbody tr:hover {
  background-color: #f9f5ea;
  transition: background-color 0.2s ease;
}

.btn {
  border-radius: 8px;
  font-weight: 500;
  transition: transform 0.15s ease, background-color 0.25s ease;
}
.btn:hover {
  transform: scale(1.05);
}
.btn-outline-success {
  border-color: #4caf50;
  color: #4caf50;
}
.btn-outline-success:hover {
  background-color: #4caf50;
  color: white;
}
.btn-outline-danger {
  border-color: #dc2626;
  color: #dc2626;
}
.btn-outline-danger:hover {
  background-color: #dc2626;
  color: white;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-tabs .nav-link {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
  .container {
    padding: 0.75rem;
  }
  .navbar-brand {
    font-size: 1rem;
  }
}