/* =========================================================================
   ajouter-lieu.css — Styles locaux pour le formulaire d'ajout
   ========================================================================= */

body.add-place-body {
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.add-place-header {
  position: sticky;
  top: 0;
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(250, 250, 250, 0.85);
}

.btn-close-form {
  color: var(--color-text);
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s;
}

.btn-close-form:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* MAIN CONTAINER */
.add-place-main {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 20px 100px;
  flex: 1;
  width: 100%;
}

.add-title {
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  /* Dark green from DECA */
  margin-bottom: 40px;
}

/* STEPPER */
.stepper {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 20px;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-gray);
  font-weight: 500;
  font-size: 0.95rem;
}

.step.active {
  color: var(--color-text);
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eaeaea;
  color: var(--color-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.step.active .step-num {
  background: var(--color-primary);
  color: white;
}

/* FORM SECTIONS */
.form-step {
  animation: fadeIn 0.4s ease forwards;
}

.step-heading {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 30px;
  color: #1d1d1f;
}

/* FORM INPUTS */
.form-group {
  margin-bottom: 30px;
}

.form-group label,
.form-group .info-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1d1d1f;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d1d1d6;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background: white;
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(45, 122, 45, 0.1);
}

.input-with-icon {
  position: relative;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray);
}

.input-with-icon input {
  padding-left: 44px;
}

/* CATEGORY PILLS (RADIO) */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-radio {
  display: inline-block;
  cursor: pointer;
}

.pill-radio input {
  display: none;
}

.pill-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid #d1d1d6;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  background: white;
  transition: all 0.2s;
}

.pill-radio input:checked+.pill-btn {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.pill-radio:hover .pill-btn {
  border-color: var(--color-gray);
}

/* OWNER INFO BOX */
.info-box {
  padding: 24px;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  margin: 40px 0;
  background: #fafafa;
}

.info-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* BUTTONS */
.btn-next {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  margin-top: 10px;
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 40px;
}

.form-actions button {
  flex: 1;
  padding: 14px;
}

/* FILE DROP AREA */
.input-hint {
  font-size: 0.85rem;
  color: var(--color-gray);
  margin-bottom: 15px;
}

.online-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  width: fit-content;
}
.online-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1d1d1f;
  cursor: pointer;
  flex-shrink: 0;
}
.online-toggle-label {
  font-size: 0.88rem;
  color: var(--color-text-secondary, #555);
  font-weight: 500;
  user-select: none;
}

.file-drop-area {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 28px 20px;
  border: 2px dashed #d1d1d6;
  border-radius: 12px;
  background: #fdfdfd;
  transition: all 0.2s;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

.file-drop-area:hover,
.file-drop-area.dragover {
  border-color: var(--color-primary);
  background: rgba(45, 122, 45, 0.02);
}

.file-msg {
  font-size: 0.95rem;
  color: var(--color-gray);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.file-msg svg {
  opacity: 0.4;
}

.file-input {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  cursor: pointer;
  opacity: 0;
}

/* MULTI-PHOTO GRID */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.photo-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #eee;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-thumb-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--color-primary);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
}

.btn-remove-photo {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: white;
  border: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  line-height: 1;
}

/* SUCCESS MSG */
.success-message {
  text-align: center;
  padding: 60px 20px;
  animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-message svg {
  margin-bottom: 20px;
}

.success-message h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.success-message p {
  color: var(--color-gray);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

