/* ===== AUTH PAGES ===== */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--night); padding: 24px;
  position: relative; overflow: hidden;
}

/* Grid background — matches hero, consistent language */
.auth-page::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(oklch(30% 0.04 258) 1px, transparent 1px),
    linear-gradient(90deg, oklch(30% 0.04 258) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.3;
  pointer-events: none;
}

/* Cobalt accent top-left */
.auth-page::after {
  content: '';
  position: absolute; bottom: -100px; right: -60px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, var(--cobalt) 0%, transparent 60%);
  opacity: 0.06; pointer-events: none;
}

.auth-card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 44px 40px;
  width: 100%; max-width: 440px;
  box-shadow: 0 24px 80px oklch(17% 0.04 258 / 0.5);
  position: relative; z-index: 1;
  border: 1px solid oklch(92% 0.005 265);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo a {
  font-size: 24px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.4px; font-family: 'Manrope', system-ui, sans-serif;
  display: inline-flex; align-items: baseline; gap: 1px;
}
.auth-logo strong {
  color: var(--cobalt);
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-size: 26px; letter-spacing: -0.5px;
}
.auth-card h1 {
  font-size: 21px; font-weight: 800; text-align: center; margin-bottom: 6px;
  font-family: 'Manrope', system-ui, sans-serif; letter-spacing: -0.3px;
}
.auth-card p.auth-sub { text-align: center; color: var(--mist); font-size: 14px; margin-bottom: 28px; }
.auth-footer { text-align: center; margin-top: 22px; font-size: 13.5px; color: var(--mist); }
.auth-footer a { color: var(--cobalt); font-weight: 700; }
.auth-footer a:hover { text-decoration: underline; }
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 22px 0;
}
.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--cloud); }
.auth-divider span { font-size: 12px; color: var(--mist); font-weight: 600; white-space: nowrap; }

.global-error {
  background: oklch(97% 0.03 22); color: var(--crimson); border-radius: var(--r-sm);
  padding: 11px 14px; font-size: 13.5px; margin-bottom: 16px;
  border: 1px solid oklch(90% 0.07 22); font-weight: 500;
}
.global-success {
  background: oklch(96% 0.04 155); color: oklch(48% 0.17 155); border-radius: var(--r-sm);
  padding: 11px 14px; font-size: 13.5px; margin-bottom: 16px;
  border: 1px solid oklch(86% 0.09 155); font-weight: 500;
}

/* Password toggle */
.password-wrap { position: relative; }
.password-wrap .form-input { padding-right: 44px; }
.password-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  color: var(--mist); cursor: pointer; padding: 8px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); transition: background var(--t), color var(--t);
}
.password-toggle:hover { background: var(--fog); color: var(--ink); }

/* ===== POSTER PAGE ===== */
.poster-page { padding: 36px 0 64px; }
.poster-container { max-width: 720px; margin: 0 auto; padding: 0 20px; }

.poster-page-title {
  font-size: 26px; font-weight: 800; margin-bottom: 8px;
  letter-spacing: -0.4px; font-family: 'Manrope', system-ui, sans-serif;
}
.poster-page-sub { color: var(--mist); margin-bottom: 32px; font-size: 14px; }

/* Step indicator */
.step-indicator { display: flex; align-items: center; margin-bottom: 36px; }
.step-item { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 1; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--cloud);
  font-size: 12.5px; font-weight: 800; color: var(--mist);
  display: flex; align-items: center; justify-content: center;
  background: var(--white); transition: all .25s; z-index: 1; position: relative;
  font-family: 'Manrope', system-ui, sans-serif;
}
.step-item.active .step-num { background: var(--night); border-color: var(--night); color: var(--white); }
.step-item.done  .step-num { background: var(--emerald); border-color: var(--emerald); color: var(--white); }
.step-label {
  font-size: 11px; color: var(--mist); font-weight: 700; text-align: center;
  font-family: 'Manrope', system-ui, sans-serif; letter-spacing: 0.3px;
  text-transform: uppercase;
}
.step-item.active .step-label,
.step-item.done  .step-label { color: var(--ink); }
.step-line { flex: 1; height: 2px; background: var(--cloud); margin-top: -18px; transition: background .25s; }
.step-line.done { background: var(--emerald); }

.step-panel { display: none; }
.step-panel.active { display: block; }

/* Category picker */
.categories-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat-pick-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 8px; border-radius: var(--r); border: 1.5px solid var(--cloud);
  cursor: pointer; background: var(--white); transition: all var(--t); color: var(--ink);
}
.cat-pick-btn:hover { border-color: var(--cobalt); background: var(--cobalt-l); }
.cat-pick-btn.selected { border-color: var(--night); background: var(--fog); box-shadow: inset 0 0 0 1px var(--night); }
.cat-pick-icon { font-size: 24px; }
.cat-pick-name {
  font-size: 11.5px; font-weight: 700; text-align: center;
  font-family: 'Manrope', system-ui, sans-serif; letter-spacing: 0.1px; color: var(--slate);
}

/* Photo upload */
.photos-upload-area { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-upload-slot {
  width: 108px; height: 88px; border-radius: var(--r-sm);
  border: 2px dashed var(--cloud); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  cursor: pointer; background: var(--fog);
  transition: border-color var(--t), background var(--t);
  position: relative; overflow: hidden; flex-shrink: 0;
}
.photo-upload-slot:hover { border-color: var(--cobalt); background: var(--cobalt-l); }
.photo-upload-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-upload-slot .photo-remove {
  position: absolute; top: 4px; right: 4px; background: oklch(17% 0.04 258 / 0.75);
  color: var(--white); border: none; width: 20px; height: 20px;
  border-radius: 50%; font-size: 11px; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.photo-upload-slot .add-icon { font-size: 22px; color: var(--cloud); }
.photo-upload-slot span { font-size: 10.5px; color: var(--mist); font-weight: 600; }

/* État radio */
.etat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.etat-btn {
  padding: 10px 8px; border-radius: var(--r-sm); border: 1.5px solid var(--cloud);
  font-size: 13px; font-weight: 700; cursor: pointer; background: var(--white);
  transition: all var(--t); text-align: center; color: var(--slate);
  font-family: 'Manrope', system-ui, sans-serif;
}
.etat-btn:hover { border-color: var(--cobalt); color: var(--cobalt); }
.etat-btn.selected { border-color: var(--night); background: var(--fog); color: var(--night); box-shadow: inset 0 0 0 1px var(--night); }

/* Urgent toggle */
.urgent-toggle {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--fog); border-radius: var(--r-sm); cursor: pointer;
  border: 1.5px solid var(--cloud); transition: border-color var(--t);
}
.urgent-toggle:hover { border-color: var(--cobalt); }
.urgent-toggle input { accent-color: var(--cobalt); width: 17px; height: 17px; }
.urgent-toggle-label { flex: 1; }
.urgent-toggle-label strong { display: block; font-size: 13.5px; font-family: 'Manrope', system-ui, sans-serif; font-weight: 700; }
.urgent-toggle-label span { font-size: 12.5px; color: var(--mist); }

/* Steps nav */
.steps-nav {
  display: flex; justify-content: space-between; margin-top: 32px;
  padding-top: 22px; border-top: 1px solid var(--cloud);
}

/* ===== PROFILE PAGE ===== */
.profile-page { padding: 36px 0 64px; }
.profile-layout { display: grid; grid-template-columns: 252px 1fr; gap: 24px; align-items: start; }
.profile-sidebar-card {
  background: var(--white); border-radius: var(--r);
  padding: 26px; border: 1.5px solid var(--cloud);
  box-shadow: var(--sh-xs); text-align: center;
  position: sticky; top: 80px;
}
.avatar-xl {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--night); color: var(--white);
  font-size: 26px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-family: 'Manrope', system-ui, sans-serif;
  box-shadow: 0 0 0 4px oklch(17% 0.04 258 / 0.08);
}
.profile-name {
  font-size: 19px; font-weight: 800; margin-bottom: 4px;
  font-family: 'Manrope', system-ui, sans-serif; letter-spacing: -0.2px;
}
.profile-since { font-size: 12.5px; color: var(--mist); font-weight: 500; }
.profile-nav { margin-top: 22px; }
.profile-nav-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 13px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  border: none; background: none; color: var(--mist);
  transition: background var(--t), color var(--t); text-align: left;
  font-family: 'Manrope', system-ui, sans-serif;
}
.profile-nav-btn:hover { background: var(--fog); color: var(--ink); }
.profile-nav-btn.active { background: var(--night); color: var(--white); }

.profile-card {
  background: var(--white); border-radius: var(--r);
  padding: 28px; border: 1.5px solid var(--cloud);
  box-shadow: var(--sh-xs);
}
.profile-card h2 {
  font-size: 17px; font-weight: 800; margin-bottom: 24px;
  padding-bottom: 16px; border-bottom: 1px solid var(--cloud);
  font-family: 'Manrope', system-ui, sans-serif; letter-spacing: -0.2px;
}

/* My ads list */
.my-annonce-item {
  display: flex; gap: 14px; padding: 14px 16px;
  background: var(--white); border-radius: var(--r-sm); margin-bottom: 10px;
  border: 1.5px solid var(--cloud); align-items: center;
  transition: border-color var(--t), box-shadow var(--t);
}
.my-annonce-item:hover { border-color: var(--cobalt); box-shadow: var(--sh-xs); }
.my-annonce-img {
  width: 88px; height: 68px; border-radius: var(--r-sm); object-fit: cover;
  flex-shrink: 0; background: var(--fog); overflow: hidden;
}
.my-annonce-img img { width: 100%; height: 100%; object-fit: cover; }
.my-annonce-body { flex: 1; min-width: 0; }
.my-annonce-titre {
  font-size: 14.5px; font-weight: 700; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  font-family: 'Manrope', system-ui, sans-serif; color: var(--ink);
}
.my-annonce-prix { font-size: 15.5px; font-weight: 700; color: var(--ink); font-family: 'Playfair Display', Georgia, serif; letter-spacing: -0.3px; }
.my-annonce-meta { font-size: 12px; color: var(--mist); font-weight: 500; margin-top: 2px; }
.my-annonce-actions { display: flex; gap: 8px; flex-shrink: 0; }

@media (max-width: 768px) {
  .poster-container { padding: 0 14px; }
  .categories-picker { grid-template-columns: repeat(2, 1fr); }
  .etat-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar-card { position: static; }
}
