/* ==========================================================================
   WRAPPING INTERFACE - Main Styles
   ========================================================================== */

/* Base styles */
label {
  font-weight: bold;
}

label.required:before {
  content: "* ";
  color: red;
}

section {
  min-height: 600px;
}

/* ==========================================================================
   Header - Dark Mode
   ========================================================================== */
.dark-header {
  background: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
}

.dark-header a,
.dark-header .h4,
.dark-header .nav-link {
  color: #e2e8f0 !important;
}

.dark-header a:hover,
.dark-header .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.dark-header .nav-link.active {
  background: rgba(250, 250, 250, 0.15) !important;
}

.dark-header .nav-link {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.dark-header .badge {
  background: rgba(59, 130, 246, 0.6) !important;
}

.dark-header.dev-mode {
  background: linear-gradient(135deg, #0a0a0a 0%, #171717 100%);
  border-bottom: 2px solid #3b82f6;
}

.dark-header .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.dark-header .navbar-toggler-icon {
  filter: invert(1);
}

.dark-header .btn-outline-danger {
  color: #f87171;
  border-color: #f87171;
}

.dark-header .btn-outline-danger:hover {
  background: #f87171 !important;
  color: #fff !important;
}

.dark-header .btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
}

/* ==========================================================================
   Logo Branding
   ========================================================================== */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: scale(1.02);
  background: transparent !important;
}

.brand-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: #3b82f6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  transition: all 0.2s ease;
}

.brand-logo:hover .logo-icon {
  background: #60a5fa;
}

.brand-logo .logo-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: #fff;
  text-transform: uppercase;
}

.brand-logo .logo-text-sub {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: #94a3b8;
  margin-top: 0;
  text-transform: uppercase;
}

/* ==========================================================================
   Footer - Compact Style
   ========================================================================== */
.modern-footer {
  background: linear-gradient(135deg, #0a0a0a 0%, #171717 100%);
  color: #e2e8f0;
  padding: 1.25rem 0;
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand .logo-icon {
  width: 28px;
  height: 28px;
  background: #3b82f6;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
}

.footer-brand span {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: #fff;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #64748b;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links a i {
  margin-right: 0.25rem;
  color: #475569;
}

.footer-copyright {
  font-size: 0.7rem;
  color: #475569;
}

/* ==========================================================================
   Sticky Footer Layout
   ========================================================================== */
html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Le contenu principal prend tout l'espace disponible */
section {
  flex: 1 0 auto;
  min-height: auto; /* Supprimer le min-height fixe de 600px */
}

/* Le footer reste en bas */
.modern-footer {
  flex-shrink: 0;
}
