/* participation.css - Styles pour le système de participation */

/* Conteneur injecté par app.js */
.participation-ui-container {
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #eee;
}

/* Bouton de participation */
.participation-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.participation-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.participation-btn.registered {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Liste des participants */
.participation-list {
  margin-top: 0.8rem;
  font-size: 0.9rem;
}

.participant-name {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  margin: 0.2rem;
  background: #f0f4f8;
  border-radius: 3px;
  color: #555;
  font-weight: 500;
  border: 1px solid #e1e8ed;
}

/* Bouton toggle */
.participants-toggle {
  background: none;
  border: none;
  color: #667eea;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  margin-bottom: 0.5rem;
}

.participants-toggle:hover {
  color: #764ba2;
}

.participants-content {
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* Modal */
.participation-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.participation-modal.open {
  display: flex;
}

.participation-modal-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
}

.participation-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.participation-modal-close:hover {
  color: #333;
}

.participation-modal h3 {
  margin: 0 0 1.5rem 0;
  color: #333;
  font-size: 1.3rem;
}

.participation-form .form-group {
  margin-bottom: 1.2rem;
}

.participation-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #555;
}

.participation-form input {
  width: 100%;
  padding: 0.7rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

.participation-form input:focus {
  outline: none;
  border-color: #667eea;
}

.captcha-question {
  font-weight: bold;
  color: #667eea;
}

.error-message {
  color: #f5576c;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  min-height: 1.2rem;
}

.participation-submit {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.participation-submit:hover {
  opacity: 0.9;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }