/* ========================================== */
/* MODE NUIT - SORTIES */
/* Uniquement les couleurs pour le thème sombre */
/* ========================================== */

/* Body et fond général - UTILISE LES VARIABLES GLOBALES */
:root[data-theme="dark"] body {
  background-image: url('body_photo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: var(--bg-primary);
  color: #ffffff;
}

/* Header */
:root[data-theme="dark"] .sortie-header h1 {
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

:root[data-theme="dark"] .sortie-header p {
  color: #e0e0e0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

:root[data-theme="dark"] .btn-create-sortie:hover {
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Filtres */
:root[data-theme="dark"] .sortie-search-input {
  background: rgba(20, 20, 30, 0.85);
  border: 2px solid rgba(102, 126, 234, 0.3);
  color: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 
              inset 0 1px 2px rgba(102, 126, 234, 0.1);
}

:root[data-theme="dark"] .sortie-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

:root[data-theme="dark"] .sortie-search-input:focus {
  border-color: #667eea;
  background: rgba(20, 20, 30, 0.95);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3),
              0 0 0 4px rgba(102, 126, 234, 0.15),
              inset 0 1px 3px rgba(102, 126, 234, 0.2);
}

:root[data-theme="dark"] .sortie-search-btn {
  background: #e84315;
  color: white;
  box-shadow: none;
  border: none;
}

:root[data-theme="dark"] .sortie-search-btn:hover {
  background: #bf360c;
  box-shadow: none;
}

/* Cartes de sorties */
:root[data-theme="dark"] .sortie-card {
  background: rgba(30, 30, 40, 0.95);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border: 1px solid rgba(102, 126, 234, 0.3);
}

:root[data-theme="dark"] .sortie-card:hover {
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
  border-color: rgba(102, 126, 234, 0.6);
}

:root[data-theme="dark"] .sortie-card h3 {
  color: #a0b0ff;
}

:root[data-theme="dark"] .sortie-info {
  color: #e0e0e0;
}

:root[data-theme="dark"] .sortie-info strong {
  color: #ffffff;
}

:root[data-theme="dark"] .sortie-description {
  color: #d0d0d0;
}

:root[data-theme="dark"] .sortie-stats {
  background: rgba(20, 20, 30, 0.8);
}

:root[data-theme="dark"] .my-sortie {
  border: 2px solid #667eea;
}

/* Modal */
:root[data-theme="dark"] .sortie-modal {
  background-color: rgba(0, 0, 0, 0.85);
}

:root[data-theme="dark"] .sortie-modal-content {
  background-color: rgba(30, 30, 40, 0.98);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  color: #ffffff;
  border: 1px solid rgba(102, 126, 234, 0.4);
}

:root[data-theme="dark"] .sortie-modal-header {
  border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

:root[data-theme="dark"] .sortie-modal-header h2 {
  color: #a0b0ff;
}

:root[data-theme="dark"] .sortie-modal-close {
  color: #b0b0b0;
}

:root[data-theme="dark"] .sortie-modal-close:hover {
  color: #ffffff;
}

/* Formulaire */
:root[data-theme="dark"] .sortie-form-group label {
  color: #ffffff;
}

:root[data-theme="dark"] .sortie-form-group input,
:root[data-theme="dark"] .sortie-form-group textarea,
:root[data-theme="dark"] .sortie-form-group select {
  background: rgba(20, 20, 30, 0.9);
  border: 2px solid rgba(102, 126, 234, 0.4);
  color: #ffffff;
}

:root[data-theme="dark"] .sortie-form-group input::placeholder,
:root[data-theme="dark"] .sortie-form-group textarea::placeholder {
  color: #b0b0b0;
}

:root[data-theme="dark"] .sortie-form-group input:focus,
:root[data-theme="dark"] .sortie-form-group textarea:focus,
:root[data-theme="dark"] .sortie-form-group select:focus {
  border-color: #667eea;
  background: rgba(20, 20, 30, 1);
}

:root[data-theme="dark"] .sortie-btn-submit:hover {
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Messages */
:root[data-theme="dark"] .no-sorties {
  color: #e0e0e0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

:root[data-theme="dark"] .loading {
  color: #a0b0ff;
}

/* Participants */
:root[data-theme="dark"] .participant-item {
  background: rgba(20, 20, 30, 0.8);
}

:root[data-theme="dark"] .participant-name {
  color: #ffffff;
}

/* Modal de confirmation de suppression - Mode nuit */
:root[data-theme="dark"] .sortie-confirm-content p {
  color: #ffffff;
}

:root[data-theme="dark"] .sortie-confirm-warning {
  color: #e0e0e0;
}

:root[data-theme="dark"] .sortie-expand-hint {
  border-top-color: rgba(102, 126, 234, 0.3);
  color: #a0b0ff;
}

:root[data-theme="dark"] .sortie-expand-hint:hover {
  background: rgba(102, 126, 234, 0.1);
}
