/* ============================================
   ORGANISATION CADEAU COLLECTIF - Organise-Moi
   ============================================ */

/* ============================================
   FORMULAIRES
   ============================================ */

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
  font-size: 0.875rem;
}

.form-group input[type="date"],
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #1f2937;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.create-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.create-actions .button {
  flex: 1;
}

/* ============================================
   EN-TÊTE DE L'ÉVÉNEMENT
   ============================================ */

.event-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.event-info h2 {
  margin: 0 0 0.5rem 0;
  color: #1f2937;
  font-size: 1.5rem;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.event-date {
  color: #64748b;
  font-size: 0.875rem;
}

.event-description {
  color: #64748b;
  font-size: 0.875rem;
  font-style: italic;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  margin-bottom: 2.5rem;
}

.section:last-child {
  margin-bottom: 0;
}

.section h3 {
  margin: 0 0 1rem 0;
  color: #1f2937;
  font-size: 1.25rem;
  font-weight: 600;
}

/* ============================================
   GROUPES D'INPUT
   ============================================ */

.input-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.input-group input {
  flex: 1;
}

.input-group button {
  white-space: nowrap;
}

/* ============================================
   LISTES
   ============================================ */

.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background-color: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: background-color 0.2s, border-color 0.2s;
}

.list-item:hover {
  background-color: #f3f4f6;
  border-color: #cbd5e1;
}

.list-item-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.list-item-text {
  flex: 1;
  color: #1f2937;
  word-break: break-word;
}

.list-item-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Bouton supprimer */
.list-item-delete {
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s;
  border-radius: 4px;
}

.list-item-delete:hover {
  opacity: 1;
  background-color: rgba(220, 38, 38, 0.1);
}

/* ============================================
   PARTICIPANTS
   ============================================ */

.participant-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.participant-name {
  font-weight: 500;
  color: #1f2937;
}

/* ============================================
   IDÉES DE CADEAUX
   ============================================ */

.idea-form {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.form-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.idea-title-input {
  flex: 1;
}

.idea-price-input {
  width: 120px;
  flex-shrink: 0;
}

.ideas-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.idea-item {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background-color: #ffffff;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.idea-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.idea-item.reserved {
  border-color: #10b981;
  background-color: #f0fdf4;
}

.idea-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  gap: 1rem;
}

.idea-title {
  font-weight: 600;
  color: #1f2937;
  font-size: 1.125rem;
  flex: 1;
}

.idea-price {
  color: #059669;
  font-weight: 600;
  white-space: nowrap;
  font-size: 1rem;
}

.idea-comment {
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.idea-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

.idea-reserved {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #059669;
  font-size: 0.875rem;
  font-weight: 500;
}

.idea-reserved-icon {
  font-size: 1rem;
}

.idea-reserve-button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  background-color: #2563eb;
  color: #ffffff;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.idea-reserve-button:hover {
  background-color: #1d4ed8;
}

.idea-reserve-button:disabled {
  background-color: #94a3b8;
  cursor: not-allowed;
}

.idea-actions {
  display: flex;
  gap: 0.5rem;
}

/* ============================================
   MESSAGES ET NOTIFICATIONS
   ============================================ */

.message {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.message-success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.message-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

/* ============================================
   INFO BOX (partage / import-export)
   ============================================ */

.info-box {
  margin: 1rem 0 2rem 0;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background-color: #f9fafb;
}

.info-box__title {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

.info-box__text {
  margin: 0 0 0.5rem 0;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.4;
}

.info-box__list {
  margin: 0.5rem 0 0 1.25rem;
  color: #1f2937;
  font-size: 0.875rem;
}

.info-box__list li {
  margin: 0.25rem 0;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: #9ca3af;
  font-size: 0.875rem;
}

.empty-state-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .create-actions {
    flex-direction: column;
  }

  .create-actions .button {
    width: 100%;
  }

  .event-header {
    margin-bottom: 1.5rem;
  }

  .event-actions {
    flex-direction: column;
  }

  .event-actions button {
    width: 100%;
  }

  .form-row {
    flex-direction: column;
  }

  .idea-price-input {
    width: 100%;
  }

  .idea-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .idea-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .idea-reserve-button {
    width: 100%;
  }

  .idea-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .input-group {
    flex-direction: column;
  }

  .input-group button {
    width: 100%;
  }

  .list-item {
    flex-direction: column;
    align-items: stretch;
  }

  .list-item-content {
    flex-direction: column;
    align-items: stretch;
  }

  .list-item-actions {
    justify-content: flex-end;
    margin-top: 0.5rem;
  }
}
