/* ============================================
   LOGISTICIEN, Design Enhancements
   Chargé après styles.css sur toutes les pages log.
   ============================================ */

/* --- Gradient Header Gold Amélioré --- */
.gradient-header-gold {
  background: linear-gradient(155deg, #8B6914 0%, #a07d1c 25%, #d4a500 55%, #e8c240 100%) !important;
  box-shadow: 0 4px 24px rgba(212, 165, 0, 0.18);
}

/* --- Bottom nav active color (centralisé) --- */
.bottom-nav .nav-item.active {
  color: #d4a500;
}

/* --- Cartes : hover effects --- */
.stat-card,
.mission-card,
.menu-item,
.task-urgent,
.inv-item,
.insp-card,
.equip-card,
.notif-item,
.checklist,
.detail-card,
.profile-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover,
.mission-card:hover,
.menu-item:hover,
.inv-item:hover,
.insp-card:hover,
.equip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212, 165, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* --- Boutons : hover amélioré --- */
.btn {
  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 165, 0, 0.3);
}

.btn-outline:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.action-btn {
  transition: all 0.25s ease;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* --- Form inputs : focus amélioré --- */
.form-input {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-input:focus {
  border-color: #d4a500 !important;
  box-shadow: 0 0 0 3px rgba(212, 165, 0, 0.1);
}

/* --- Section titles : barre décorative dorée --- */
.section-title {
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: linear-gradient(180deg, #d4a500, #e8c240);
  border-radius: 2px;
}

/* --- Badges : polish --- */
.badge {
  transition: transform 0.2s ease;
}

/* --- Tabs améliorés --- */
.tab.active {
  box-shadow: 0 2px 8px rgba(212, 165, 0, 0.15);
}

/* --- Search bar focus --- */
.search-bar input:focus,
.search-bar select:focus {
  box-shadow: 0 0 0 3px rgba(212, 165, 0, 0.08);
}

/* --- App header polish --- */
.app-header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* --- Header back button hover --- */
.header-back {
  transition: all 0.2s ease;
}

.header-back:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* --- Alert / notification items --- */
.alert-item,
.notif-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.alert-item:hover,
.notif-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* --- FAB button hover --- */
.fab {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fab:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 8px 28px rgba(212, 165, 0, 0.35) !important;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
  min-height: 844px;
  display: flex;
  flex-direction: column;
  background: var(--gray-50);
}

.login-header {
  background: linear-gradient(155deg, #8B6914 0%, #a07d1c 30%, #d4a500 65%, #e8c240 100%);
  color: var(--white);
  padding: 0 0 var(--spacing-2xl);
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-header::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.login-logo-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: scaleIn 0.5s var(--ease-spring) 0.2s both;
}

.login-greeting {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px;
  animation: fadeInUp 0.5s var(--ease-out) 0.3s both;
}

.login-subgreeting {
  font-size: var(--text-sm);
  opacity: 0.8;
  margin: 0;
  animation: fadeInUp 0.5s var(--ease-out) 0.35s both;
}

.login-body {
  flex: 1;
  padding: var(--spacing-xl) var(--spacing-lg);
}

.login-form {
  animation: fadeInUp 0.5s var(--ease-out) 0.4s both;
}

.form-input-wrap {
  position: relative;
  margin-bottom: var(--spacing-md);
}

.form-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
}

.form-input-wrap .form-input {
  padding-left: 44px;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: 4px;
}

.password-toggle:hover {
  color: var(--gray-600);
}

.forgot-link {
  display: block;
  text-align: center;
  font-size: var(--text-sm);
  color: #d4a500;
  text-decoration: none;
  margin-top: var(--spacing-md);
  font-weight: 500;
}

.forgot-link:hover {
  text-decoration: underline;
}

.login-bottom {
  text-align: center;
  padding: var(--spacing-lg) 0;
  animation: fadeInUp 0.5s var(--ease-out) 0.5s both;
}

.login-bottom p {
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin: 0;
}

/* --- Gradient back button (rond translucide) --- */
.gradient-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: background 0.2s ease;
}

.gradient-back-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ============================================
   SETTINGS PAGE
   ============================================ */
.settings-group {
  animation: fadeInUp 0.5s var(--ease-out) both;
}

.settings-group:nth-child(1) { animation-delay: 0.1s; }
.settings-group:nth-child(2) { animation-delay: 0.2s; }
.settings-group:nth-child(3) { animation-delay: 0.3s; }
.settings-group:nth-child(4) { animation-delay: 0.4s; }

.settings-group-title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.settings-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.settings-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: 14px var(--spacing-md);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  cursor: pointer;
}

.settings-item:hover {
  background: var(--gray-50);
}

.settings-item + .settings-item {
  border-top: 1px solid var(--gray-100);
}

.settings-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.settings-icon.gold { background: #fef3c7; }
.settings-icon.blue { background: var(--blue-50); }
.settings-icon.green { background: var(--success-light); }
.settings-icon.red { background: var(--error-light); }
.settings-icon.gray { background: var(--gray-100); }
.settings-icon.orange { background: #fff7ed; }

.settings-label {
  flex: 1;
  font-weight: 500;
  color: var(--gray-800);
  font-size: var(--text-base);
}

.settings-detail {
  font-size: var(--text-sm);
  color: var(--gray-400);
  margin-right: 4px;
}

.settings-chevron {
  color: var(--gray-300);
}

.logout-label {
  color: var(--error);
}

.version-info {
  text-align: center;
  padding: var(--spacing-lg);
  font-size: var(--text-sm);
  color: var(--gray-400);
  animation: fadeInUp 0.5s var(--ease-out) 0.5s both;
}

/* ============================================
   FAQ / AIDE PAGE
   ============================================ */
.faq-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}

.faq-question-text {
  flex: 1;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--gray-800);
}

.faq-chevron {
  color: var(--gray-400);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer-content {
  padding: 0 var(--spacing-md) var(--spacing-md);
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.6;
}

.help-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  border: none;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.help-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.help-btn-email {
  background: #fef3c7;
  color: #92400e;
}

.help-btn-phone {
  background: #ecfdf5;
  color: #065f46;
}

/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-avatar-ring {
  width: 108px;
  height: 108px;
  border-radius: var(--radius-full);
  background: linear-gradient(145deg, #e8c240, #d4a500);
  padding: 4px;
  margin: 0 auto var(--spacing-md);
  animation: scaleIn 0.5s var(--ease-spring) 0.2s both;
  box-shadow: 0 0 24px rgba(212, 165, 0, 0.3), 0 0 48px rgba(184, 134, 11, 0.15);
}

.profile-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(145deg, #d4a500 0%, #b8860b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  border: 3px solid var(--white);
}

.member-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.9);
  margin-top: var(--spacing-sm);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #fef3c7;
  color: #92400e;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
}

.stats-card-wrapper {
  margin: -28px var(--spacing-md) var(--spacing-md);
  position: relative;
  z-index: 10;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--gray-200);
}
