/* ============================================================
   AVENUE BELMONT — PAGE VENDRE
   ============================================================ */

/* ══════════════════════════════════════════
   HERO — image plein cadre, texte à gauche
══════════════════════════════════════════ */
.ab-vendre-hero {
  position: relative;
  display: flex;
  align-items: center;
  /* #ab-content a un padding-top de 80px (hauteur du header fixe) : sans en
     tenir compte, 83vh laissait toujours une bande de la section suivante
     visible en bas d'écran (ligne de flottaison "coupée"). */
  height: calc(100vh - 80px);
  min-height: 520px;
  padding: 16px;
  background-color: #000;
  overflow: hidden;
}

/* Calque image dédié : permet de zoomer (transform) le fond indépendamment
   du texte, sans jamais risquer de bande vide (contrairement à un
   background-size en pourcentage fixe, qui dépend du ratio de l'écran). */
.ab-vendre-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-img);
  background-size: 120% auto;
  background-position: center;
  background-repeat: no-repeat;
}

.ab-vendre-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.80) 0%,
    rgba(0,0,0,0.50) 35%,
    rgba(0,0,0,0.15) 60%,
    rgba(0,0,0,0) 100%
  );
  pointer-events: none;
}
.ab-vendre-hero__text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 760px;
}
.ab-vendre-hero__text .type-h1 {
  color: #fff !important;
  margin: 0;
  white-space: nowrap;
}
.ab-vendre-hero__subtitle {
  color: #fff !important;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.5;
  max-width: 460px;
  margin: 0;
}

@media (max-width: 768px) {
  /* Hero plein écran : la ligne de flottaison tombe exactement en bas de
     section (même traitement que la page Montres). */
  .ab-vendre-hero { height: 100svh; min-height: 0; }

  .ab-vendre-hero__bg {
    background-image: var(--hero-img-mobile, var(--hero-img));
    background-size: cover;
    background-position: center;   /* à ajuster une fois le rendu vérifié à l'écran */
    transform: scale(1.06);        /* zoom très léger, sans risque de bande vide (cf. page Montres) */
  }

  /* Voile plus marqué sur mobile pour la lisibilité du texte — légèrement
     réduit par rapport au premier réglage (un peu trop sombre à l'écran). */
  .ab-vendre-hero::before {
    background: linear-gradient(
      100deg,
      rgba(0,0,0,0.85) 0%,
      rgba(0,0,0,0.66) 40%,
      rgba(0,0,0,0.38) 65%,
      rgba(0,0,0,0.16) 100%
    );
  }

  /* Texte positionné aux 3/4 de la hauteur du hero (et non plus centré) :
     position absolue + translateY(-50%) pour ancrer précisément le CENTRE
     du bloc de texte à 75% de la hauteur, quelle que soit sa taille réelle. */
  .ab-vendre-hero__text {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    top: 75%;
    transform: translateY(-50%);
    max-width: none;
  }

  /* Le nowrap hérité du desktop faisait sortir le H1 de l'écran sur mobile :
     on autorise le retour à la ligne et on resserre un peu la taille. */
  .ab-vendre-hero__text .type-h1 {
    font-size: clamp(1.9rem, 9.5vw, 2.75rem);
    white-space: normal;
    line-height: 1.1;
  }
  .ab-vendre-hero__subtitle {
    font-size: 1rem;
    max-width: none;
  }
}

.wf-wrap * { box-sizing: border-box; }

.wf-wrap {
  --accent:  #51161F;
  --accent2: #3d0f17;
  --blush:   #f7eef0;
  --ink:     #000000;
  --dim:     #666666;
  --line:    #e0e0e0;
  --bg:      #ffffff;
  --err:     #b91c1c;
  font-family: var(--font-body, 'Hauora', sans-serif);
  color: var(--ink);
  background: var(--bg);
  max-width: 100%;
  margin: 0 auto;
  padding: 48px 0 64px;
}

/* Header */
.wf-head { margin-bottom: 48px; text-align: center; }
.wf-title { margin: 0 0 8px; }
.wf-sub {
  font-family: var(--font-body, 'Hauora', sans-serif);
  font-size: 1rem;
  color: var(--dim);
  letter-spacing: 0.04em;
  margin-top: 8px;
}

/* Progress */
.wf-progress { display: flex; align-items: center; margin-bottom: 44px; }
.wf-dot { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wf-dot-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading, 'Red Rose', serif);
  font-size: 0.9rem; font-weight: 500;
  color: var(--dim);
  background: var(--bg);
  transition: all 0.35s;
}
.wf-dot-label {
  font-family: var(--font-body, 'Hauora', sans-serif);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
  transition: color 0.35s;
}
.wf-dot.active .wf-dot-circle { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(81,22,31,0.28); }
.wf-dot.active .wf-dot-label  { color: var(--ink); font-weight: 600; }
.wf-dot.done .wf-dot-circle   { background: var(--blush); border-color: var(--accent); color: var(--accent); }
.wf-dot.done .wf-dot-label    { color: var(--accent); }
.wf-connector {
  flex: 1; height: 1px;
  background: var(--line);
  margin: 0 8px 26px;
  transition: background 0.35s;
}
.wf-connector.done { background: var(--accent); opacity: 0.35; }

/* Steps */
.wf-step { display: none; }
.wf-step.active { display: block; animation: wfIn 0.35s cubic-bezier(.4,0,.2,1); }
@keyframes wfIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wf-step-title {
  font-family: var(--font-heading, 'Red Rose', serif);
  font-size: 1.05rem; font-weight: 500;
  color: var(--ink);
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.wf-step-title::before {
  content: '';
  width: 3px; height: 16px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Fields */
.wf-field { margin-bottom: 22px; }
.wf-label {
  display: block;
  font-family: var(--font-body, 'Hauora', sans-serif);
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 8px;
}
.wf-label .req { color: var(--accent); margin-left: 2px; }
.wf-field input[type="text"],
.wf-field input[type="email"],
.wf-field input[type="tel"],
.wf-field select,
.wf-field textarea {
  width: 100%;
  font-family: var(--font-body, 'Hauora', sans-serif);
  font-size: 0.9rem;
  color: var(--ink);
  background: #fafafa;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.wf-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23666' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: #fafafa;
  padding-right: 36px;
}
.wf-field textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.wf-field input[type="text"]:focus,
.wf-field input[type="email"]:focus,
.wf-field input[type="tel"]:focus,
.wf-field select:focus,
.wf-field textarea:focus {
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(81,22,31,0.08);
}
.wf-field.err input,
.wf-field.err select,
.wf-field.err textarea {
  border-color: var(--err);
  box-shadow: 0 0 0 3px rgba(185,28,28,0.08);
}
.wf-err-msg {
  display: none;
  font-family: var(--font-body, 'Hauora', sans-serif);
  font-size: 0.7rem; color: var(--err); margin-top: 5px;
}
.wf-field.err .wf-err-msg { display: block; }
.wf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Slider */
.wf-slider-val {
  font-family: var(--font-heading, 'Red Rose', serif);
  font-size: 1.5rem; font-weight: 500;
  color: var(--accent);
  margin-bottom: 12px;
}
.wf-slider-val small {
  font-size: 0.75rem; color: var(--dim);
  font-family: var(--font-body, 'Hauora', sans-serif);
  font-weight: 400; margin-left: 4px;
}
.wf-range-wrap { position: relative; padding: 8px 0; }
input[type="range"]#wf-prix-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  border-radius: 2px;
  outline: none;
  border: none !important; padding: 0 !important; box-shadow: none !important;
  background: var(--line);
  cursor: pointer; display: block;
}
input[type="range"]#wf-prix-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(81,22,31,0.3);
  border: 2px solid #fff;
  margin-top: -9px;
  transition: transform 0.15s;
}
input[type="range"]#wf-prix-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]#wf-prix-range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
input[type="range"]#wf-prix-range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
input[type="range"]#wf-prix-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); cursor: pointer;
  box-shadow: 0 2px 8px rgba(81,22,31,0.3); border: 2px solid #fff;
}
.wf-range-track {
  position: absolute; top: 50%; left: 0;
  transform: translateY(-50%);
  height: 4px; border-radius: 2px;
  background: var(--accent); pointer-events: none;
}
.wf-slider-labels {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font-family: var(--font-body, 'Hauora', sans-serif);
  font-size: 0.65rem; color: var(--dim);
}

/* Toggles */
.wf-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.wf-toggle { position: relative; }
.wf-toggle input[type="radio"],
.wf-toggle input[type="checkbox"] {
  position: absolute; opacity: 0; width: 0; height: 0;
  border: none; box-shadow: none; padding: 0; background: none;
}
.wf-toggle-lbl {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-body, 'Hauora', sans-serif);
  font-size: 0.78rem; font-weight: 500; color: var(--ink);
  padding: 8px 14px;
  border: 1.5px solid var(--line); border-radius: 6px;
  cursor: pointer; transition: all 0.2s;
  background: #fafafa; white-space: nowrap;
}
.wf-toggle-lbl::before {
  content: '';
  width: 14px; height: 14px;
  border: 1.5px solid var(--line); border-radius: 3px;
  flex-shrink: 0; transition: all 0.2s; background: var(--bg);
}
.wf-toggle input:checked + .wf-toggle-lbl { border-color: var(--accent); background: var(--blush); color: var(--accent); }
.wf-toggle input:checked + .wf-toggle-lbl::before {
  background: var(--accent); border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath fill='white' stroke='white' stroke-width='0.5' d='M1 4l3 3 5-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* Checkboxes RGPD */
.wf-check-wrap {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 14px; cursor: pointer;
}
.wf-check-wrap input[type="checkbox"] {
  position: relative; opacity: 1;
  width: 18px; height: 18px; min-width: 18px;
  border: 1.5px solid var(--line); border-radius: 3px;
  appearance: none; -webkit-appearance: none;
  background: #fafafa; cursor: pointer;
  margin-top: 2px; padding: 0; box-shadow: none;
  transition: all 0.2s; flex-shrink: 0;
}
.wf-check-wrap input[type="checkbox"]:checked {
  background: var(--accent); border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath fill='white' stroke='white' stroke-width='0.5' d='M1 4l3 3 5-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.wf-check-text {
  font-family: var(--font-body, 'Hauora', sans-serif);
  font-size: 0.78rem; color: var(--ink); line-height: 1.55;
}
.wf-check-text .req { color: var(--accent); }
.wf-check-err {
  display: none;
  font-family: var(--font-body, 'Hauora', sans-serif);
  font-size: 0.7rem; color: var(--err);
  margin-top: -8px; margin-bottom: 12px;
}
.wf-check-err.show { display: block; }

/* Upload */
.wf-upload {
  position: relative;
  border: 2px dashed var(--line); border-radius: 8px;
  padding: 28px 20px; text-align: center;
  cursor: pointer; transition: all 0.25s; background: #fafafa;
}
.wf-upload:hover, .wf-upload.over { border-color: var(--accent); background: var(--blush); }
.wf-upload input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
  width: 100%; height: 100%; border: none; padding: 0; background: none; box-shadow: none;
}
.wf-upload-icon { font-size: 1.6rem; margin-bottom: 8px; display: block; }
.wf-upload-text { font-family: var(--font-body, 'Hauora', sans-serif); font-size: 0.8rem; color: var(--dim); line-height: 1.6; }
.wf-upload-text strong { color: var(--ink); font-weight: 600; }
.wf-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wf-thumb {
  width: 68px; height: 68px; position: relative;
  border-radius: 6px; overflow: hidden; border: 1.5px solid var(--line);
}
.wf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wf-thumb-del {
  position: absolute; top: 3px; right: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: #fff;
  border: none; font-size: 0.65rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.wf-photo-err { display: none; font-family: var(--font-body, 'Hauora', sans-serif); font-size: 0.7rem; color: var(--err); margin-top: 6px; }
.wf-photo-err.show { display: block; }

/* Alert */
.wf-alert {
  display: none;
  font-family: var(--font-body, 'Hauora', sans-serif); font-size: 0.78rem;
  color: var(--err); padding: 12px 16px;
  border-left: 3px solid var(--err);
  background: #fef2f2; border-radius: 0 6px 6px 0; margin-bottom: 24px;
}
.wf-alert.show { display: block; }

/* Actions */
.wf-actions {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-top: 36px; gap: 12px;
}
.wf-btn {
  font-family: var(--font-heading, 'Red Rose', serif);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 13px 32px; border-radius: 3px; border: none;
  cursor: pointer; transition: all 0.25s; line-height: 1;
}
.wf-btn-primary { background: var(--accent); color: #fff; }
.wf-btn-primary:hover { background: var(--accent2); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(81,22,31,0.25); }
.wf-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.wf-btn-back {
  font-family: var(--font-heading, 'Red Rose', serif);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--dim); background: none;
  border: 1.5px solid var(--line); border-radius: 3px;
  padding: 13px 24px; cursor: pointer; transition: all 0.2s; line-height: 1;
}
.wf-btn-back:hover { border-color: #000; color: #000; background: #f5f5f5; }

/* Success */
.wf-success { display: none; text-align: center; padding: 64px 0; animation: wfIn 0.5s ease; }
.wf-success.show { display: block; }
.wf-success-title {
  font-family: var(--font-heading, 'Red Rose', serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 20px;
  line-height: 1.2;
}
.wf-success-title span { color: var(--accent); font-weight: 300; font-style: italic; }
.wf-success-text {
  font-family: var(--font-body, 'Hauora', sans-serif);
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.85;
}
.wf-success-text strong { font-weight: 700; }
.wf-success-divider {
  width: 40px; height: 2px;
  background: var(--accent);
  margin: 20px auto;
  border-radius: 2px;
}

/* Spinner */
.wf-spin {
  display: inline-block; width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  border-radius: 50%; animation: wfSpin 0.7s linear infinite;
  vertical-align: middle; margin-right: 6px;
}
@keyframes wfSpin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 540px) {
  .wf-wrap { padding: 32px 0 48px; }
  .wf-row { grid-template-columns: 1fr; gap: 0; }
  .wf-connector { margin: 0 4px 26px; }
  .wf-dot-label { font-size: 0.58rem; }
  .wf-toggles { gap: 6px; }
  .wf-toggle-lbl { font-size: 0.72rem; padding: 7px 10px; }
  .wf-actions { flex-direction: column-reverse; }
  .wf-btn, .wf-btn-back { width: 100%; text-align: center; }
  .wf-success-title { font-size: 1.5rem; }
}
