/* admin.css — Styles spécifiques à la page admin */

.admin-body {
  background-color: #f0f4f6;
}

.admin-badge {
  background-color: #f5b32a;
  color: #0b6e8f;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.4rem;
  text-transform: uppercase;
}

.btn-logout {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-logout:hover {
  background-color: rgba(255,255,255,0.15);
}

.hidden {
  display: none !important;
}

/* ----- SECTION / CARTE ----- */
.admin-section {
  padding: 3rem 1.25rem;
  max-width: 860px;
  margin: 0 auto;
}

.admin-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.admin-card__title {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  color: #0b6e8f;
  margin-bottom: 0.25rem;
}

.admin-card__subtitle {
  color: #888;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* ----- CHAMPS DE FORMULAIRE ----- */
.fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field--checks {
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 1.5rem;
  align-items: center;
  padding-top: 0.5rem;
}

.field__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
}

.field__input {
  padding: 0.6rem 0.8rem;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  width: 100%;
}

.field__input:focus {
  outline: none;
  border-color: #0b6e8f;
  box-shadow: 0 0 0 3px rgba(11,110,143,0.1);
}

textarea.field__input {
  resize: vertical;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  cursor: pointer;
}

/* ----- BOUTONS ----- */
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-primary {
  background-color: #0b6e8f;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: #095d79;
}

.btn-secondary {
  background-color: transparent;
  color: #666;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-edit {
  background-color: #f5b32a;
  color: #0b6e8f;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-edit:hover {
  background-color: #ffc947;
}

/* ----- MESSAGES ----- */
.form-error {
  color: #c0392b;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.form-success {
  color: #27ae60;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ----- LISTE COMMERCES ADMIN ----- */
.admin-biz-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 1rem;
}

.admin-biz-row:last-child {
  border-bottom: none;
}

.admin-biz-row--inactive {
  opacity: 0.5;
}

.admin-biz-row__info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-biz-row__info strong {
  font-family: 'Sora', sans-serif;
  color: #0b6e8f;
}

.admin-biz-row__info span {
  font-size: 0.85rem;
  color: #666;
}

.admin-subsection-title {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  color: #e67e22;
  margin-bottom: 0.75rem;
}

.admin-divider {
  border: none;
  border-top: 2px solid #f0f0f0;
  margin: 1.5rem 0;
}

.admin-biz-row--pending {
  border-left: 3px solid #e67e22;
  padding-left: 0.75rem;
}

.admin-biz-row__actions {
  display: flex;
  gap: 0.5rem;
}

.btn-approve {
  background-color: #27ae60;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-approve:hover {
  background-color: #219a52;
}

.badge-views {
  font-size: 0.8rem;
  color: #888;
}

.badge-inactive {
  background-color: #eee;
  color: #999;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* ----- MESSAGE DE SUCCÈS (formulaire d'inscription) ----- */
.register-success {
  text-align: center;
  padding: 2rem 1rem;
}

.register-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: #27ae60;
  color: #fff;
  border-radius: 50%;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.register-success h2 {
  font-family: 'Sora', sans-serif;
  color: #0b6e8f;
  margin-bottom: 0.5rem;
}

.register-success p {
  color: #555;
  max-width: 400px;
  margin: 0 auto;
}

.register-note {
  font-size: 0.82rem;
  color: #999;
  margin-top: 1.25rem;
  line-height: 1.5;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 600px) {
  .fields-grid {
    grid-template-columns: 1fr;
  }
  .field--full {
    grid-column: 1;
  }
}
