/* Formulaire.css */

.ContenuFormulaire {
  max-width: 900px;
  margin: 2rem auto;
  padding: 3rem 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.ContenuFormulaire h1 {
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Formulaire article */
#article-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-group label {
  font-weight: 600;
  color: #2b2b2b;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group label::before {
  content: '📝';
  font-size: 1.2rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--font-familly2);
  transition: all 0.3s ease;
  background: white;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

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

/* Upload de fichiers */
.form-group input[type="file"] {
  padding: 0.75rem;
  border: 2px dashed #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 107, 53, 0.05);
}

.form-group input[type="file"]:hover {
  border-color: #ff6b35;
  background: rgba(255, 107, 53, 0.1);
}

/* Logos et images */
.logos,
.tags {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.logos label::before {
  content: '🖼️';
}

.tags label::before {
  content: '🏷️';
}



/* Select2 styling */
.select2-container--default .select2-selection--multiple {
  border: 2px solid #e0e0e0 !important;
  border-radius: 10px !important;
  padding: 0.5rem !important;
  min-height: 50px !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: #ff6b35 !important;
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%) !important;
  border: none !important;
  color: white !important;
  border-radius: 20px !important;
  padding: 0.4rem 0.8rem !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: white !important;
  margin-right: 0.5rem !important;
}

/* Bouton submit */
#article-form button[type="submit"] {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  margin-top: 1rem;
}

#article-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Messages d'erreur */
.errorlist {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.errorlist li {
  color: #e74c3c;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  background: rgba(231, 76, 60, 0.1);
  border-left: 3px solid #e74c3c;
  border-radius: 4px;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .ContenuFormulaire {
    padding: 2rem 1rem;
  }

  #article-form {
    gap: 1.5rem;
  }

  #IdTinyContent {
    min-height: 300px;
  }
}