/* ============ RESET ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Urbanist', sans-serif;
  background-color: #fdfdfd;
  color: #1a1a1a;
  overflow-x: hidden;
}

/* ============ PAGE SELL ============ */

.sell-page {
  max-width: 550px;
  margin: 3rem auto;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.sell-page h1 {
  text-align: center;
  color: #7f0000;
  font-size: 1.8rem;
  margin-bottom: 1.8rem;
  font-weight: 800;
}

/* FORM GLOBAL */
.sell-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sell-form input[type="text"],
.sell-form input[type="number"],
.sell-form input[type="file"],
.sell-form textarea,
.sell-form select {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 1rem;
  background: #fff;
}

.sell-form textarea {
  resize: vertical;
}

/* Focus */
.sell-form select:focus,
.sell-form input:focus,
.sell-form textarea:focus {
  border-color: #7f0000;
  box-shadow: 0 0 0 3px rgba(127,0,0,0.15);
  outline: none;
}

/* ============ IMAGES ============ */

.image-upload label {
  font-weight: 700;
  margin-bottom: 4px;
  display: inline-block;
}

.image-upload input[type="file"] {
  border: 2px dashed #ccc;
  background: #fafafa;
  cursor: pointer;
  transition: 0.3s;
}

.image-upload input[type="file"]:hover {
  border-color: #7f0000;
  background: #fff8f8;
}

/* PREVIEW */
.preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.preview-container img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ============ GENRE ============ */

.genre-options {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.genres {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.genre-pill {
  border-radius: 999px;
  cursor: pointer;
}

.genre-pill input[type="radio"] {
  display: none;
}

.genre-pill span {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #ccc;
  font-weight: 600;
  color: #444;
  background: #fff;
  transition: 0.2s;
}

.genre-pill:hover span {
  background: #fce6e6;
  border-color: #e5b3b3;
}

.genre-pill input[type="radio"]:checked + span {
  background: #7f0000;
  color: #fff;
  border-color: #7f0000;
}

/* ============ CHAMPS CONDITIONNELS ============ */

.conditional-field {
  display: none;
  animation: fadeField .25s ease;
}

.conditional-field label {
  font-weight: 600;
  margin-bottom: .25rem;
  display: block;
}

@keyframes fadeField {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ COULEURS ============ */

.color-options {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.colors {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.colors label {
  cursor: pointer;
}

.colors input[type="radio"] {
  display: none;
}

.color-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: 0 0 3px rgba(0,0,0,.2);
  transition: .2s;
  display: inline-block;
}

.colors input[type="radio"]:checked + .color-dot {
  outline: 2px solid #7f0000;
  outline-offset: 3px;
  transform: scale(1.15);
}

/* ============ LIVRAISON ============ */
.delivery-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: .95rem;
}

/* ============ BOUTON ============ */

.submit-btn {
  background: #7f0000;
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s;
}

.submit-btn:hover {
  background: #a00000;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 820px) {
  .sell-page {
    max-width: 92%;
    padding: 1.5rem;
    margin-top: 2rem;
  }

  .sell-page h1 {
    font-size: 1.5rem;
    margin-bottom: 1.4rem;
  }

  .preview-container img {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .sell-page {
    padding: 1.2rem;
  }

  .color-dot {
    width: 22px;
    height: 22px;
  }

  .submit-btn {
    font-size: .95rem;
    padding: .9rem;
  }
}

#ban-reason-input {
  font-family: inherit;
  resize: none;
}


.ai-btn {
  margin-top: 10px;
  background: #7f0000;
  color: white;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
 
