/* 📄 Fichier : css/components/forms.css */
/* 🎯 Rôle : Styles des formulaires */

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #555;
  margin-bottom: 6px;
}

.required {
  color: #e53935;
}

.form-input {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: #2d2d2d;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: #3a7d44;
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23888' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* Photo upload */
.photo-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.photo-preview {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #e8f5e9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px dashed #a5d6a7;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  font-size: 40px;
}

.photo-actions {
  display: flex;
  gap: 8px;
}

/* URLs multiples */
.url-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  align-items: center;
}

.url-row .form-input {
  flex: 1;
}

.url-remove {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #e53935;
  font-size: 16px;
  flex-shrink: 0;
  transition: background 0.2s;
}

.url-remove:hover {
  background: #ffeaea;
}

/* Erreur */
.form-error {
  font-size: 12px;
  color: #e53935;
  margin-top: 4px;
}

.form-input.error {
  border-color: #e53935;
}
