/* ============================================================
   AVENUE BELMONT — PAGE CONSIGNATION
   (Le formulaire .wf-* est stylé par pages/vendre.css, chargé en parallèle)
   ============================================================ */

/* Espace autour de la section garantie sur cette page */
.ab-consignation .ab-garantie {
  margin-block: clamp(2.5rem, 6vw, 5rem);
}

/* ── En-tête ── */
.ab-consignation-head {
  text-align: center;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(1rem, 3vw, 2rem);
}
.ab-consignation-head__title {
  font-family: var(--font-heading, 'Red Rose', serif);
  font-size: clamp(1.6rem, 5vw, 3.25rem);
  font-weight: 600;
  color: #000;
  margin: 0 0 0.4rem;
  line-height: 1.1;
  white-space: nowrap;
}
.ab-consignation-head__subtitle {
  font-family: var(--font-heading, 'Red Rose', serif);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 500;
  color: #51161F;
  margin: 0;
  line-height: 1.2;
}

/* ══════════════════════════════════════════
   ACCORDÉON — COMMENT ÇA FONCTIONNE
══════════════════════════════════════════ */
.cof-section {
  --noir: #1A1A1A;
  --gris-texte: #4A4A4A;
  --gris-ligne: #D6D1CC;
  --blanc: #FFFFFF;
  width: 100%;
  padding: 80px 0;
  font-family: var(--font-body, 'Hauora', sans-serif);
  overflow-x: hidden;
}
.cof-section h2 {
  font-family: var(--font-heading, 'Red Rose', serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--noir);
  text-align: left;
  margin-bottom: 60px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}
.cof-accordion { list-style: none; margin: 0; padding: 0; }
.cof-step { border-bottom: 1px solid var(--gris-ligne); }
.cof-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 4px;
  cursor: pointer;
  user-select: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  outline: none;
}
.cof-header:focus-visible, .cof-header:focus, .cof-header:active {
  outline: none; border: none; box-shadow: none;
}
.cof-num {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading, 'Red Rose', serif);
  font-size: 1.3rem; font-weight: 700;
  border: 1.5px solid var(--noir);
  color: var(--noir);
  background: var(--blanc);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.cof-step.active .cof-num {
  background: #290B0B;
  color: var(--blanc);
  border-color: #290B0B;
}
.cof-title {
  flex: 1;
  font-family: var(--font-heading, 'Red Rose', serif);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--noir);
  line-height: 1.3;
}
.cof-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}
.cof-step.active .cof-body { opacity: 1; }
.cof-body-inner { padding: 0 4px 32px 80px; }
.cof-body p {
  font-family: var(--font-body, 'Hauora', sans-serif);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.75;
  color: var(--gris-texte);
  max-width: 100%;
  overflow-wrap: break-word;
}
@media (max-width: 600px) {
  .cof-section { padding: 40px 0; }
  .cof-section h2 { font-size: 24px; white-space: normal; margin-bottom: 32px; }
  .cof-header { gap: 12px; padding: 18px 0; }
  .cof-num { width: 36px; height: 36px; min-width: 36px; font-size: 0.95rem; }
  .cof-title { font-size: 16px; word-break: break-word; min-width: 0; }
  .cof-body-inner { padding: 0 0 18px 48px; }
  .cof-body p { font-size: 0.875rem; line-height: 1.6; overflow-wrap: break-word; }
}

/* ══════════════════════════════════════════
   WIDGET — ESTIMEZ VOTRE RETOUR NET
══════════════════════════════════════════ */
.cw-widget {
  --bg: #290b0b;
  --silver: #C7C7C7;
  --white: #F5EFE6;
  --muted: #F5EFE6;
  --border: rgba(199, 199, 199, 0.18);
  background: var(--bg);
  color: var(--white);
  width: 100%;
  display: flex;
  align-items: stretch;
  font-family: var(--font-body, 'Hauora', sans-serif);
}
.cw-widget *, .cw-widget *::before, .cw-widget *::after { box-sizing: border-box; }
.cw-left {
  flex: 1;
  padding: 80px 60px;
  display: flex;
  align-items: center;
  position: relative;
}
.cw-left::after {
  content: '';
  position: absolute;
  right: 0; top: 18%; bottom: 18%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--silver) 40%, var(--silver) 60%, transparent);
}
.cw-title {
  font-family: var(--font-heading, 'Red Rose', serif) !important;
  font-weight: 600 !important;
  font-size: clamp(28px, 3.2vw, 50px) !important;
  line-height: 1.18 !important;
  color: var(--white) !important;
}
.cw-title em { font-style: normal; color: var(--white); }
.cw-right {
  flex: 1;
  padding: 70px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cw-label {
  display: block;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.cw-input-wrap {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  transition: border-color .3s;
}
.cw-input-wrap:focus-within { border-color: var(--silver); }
.cw-currency {
  font-family: var(--font-heading, 'Red Rose', serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--silver);
  padding-right: 8px;
  user-select: none;
  line-height: 1;
}
.cw-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-heading, 'Red Rose', serif);
  font-size: 32px;
  font-weight: 300;
  color: var(--white);
  padding: 6px 0 10px;
  width: 100%;
  letter-spacing: 1px;
  -moz-appearance: textfield;
}
.cw-input::-webkit-outer-spin-button,
.cw-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cw-input::placeholder { color: rgba(245,239,230,0.13); }
.cw-slider-wrap { margin-bottom: 36px; }
.cw-track { position: relative; height: 1px; background: var(--border); margin: 14px 0 8px; }
.cw-fill { position: absolute; height: 1px; background: var(--silver); top: 0; left: 0; }
.cw-thumb {
  position: absolute;
  width: 9px; height: 9px;
  background: var(--silver);
  border-radius: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: transform .15s;
}
.cw-range {
  position: absolute;
  width: 100%; height: 28px;
  top: 50%; left: 0;
  transform: translateY(-50%);
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.cw-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
}
.cw-results {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
.cw-results.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cw-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.cw-row-label { font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); }
.cw-row-val { font-family: var(--font-heading, 'Red Rose', serif); font-size: 17px; font-weight: 300; color: var(--white); }
.cw-row.cw-highlight { border-bottom: none; padding: 16px 0 0; }
.cw-row.cw-highlight .cw-row-label { color: var(--white); font-weight: 400; letter-spacing: 3px; }
.cw-row.cw-highlight .cw-row-val { font-size: 26px; color: var(--silver); }

@media (max-width: 1024px) {
  .cw-left  { padding: 60px 40px; }
  .cw-right { padding: 60px 40px; }
}
@media (max-width: 768px) {
  .cw-widget { flex-direction: column; }
  .cw-left { padding: 48px 28px 36px; justify-content: flex-start; }
  .cw-left::after {
    right: auto; top: auto;
    left: 10%; right: 10%; bottom: 0;
    width: auto; height: 1px;
    background: linear-gradient(90deg, transparent, var(--silver) 40%, var(--silver) 60%, transparent);
  }
  .cw-title { font-size: clamp(26px, 7vw, 36px); }
  .cw-right { padding: 36px 28px 52px; }
  .cw-input { font-size: 28px; }
  .cw-currency { font-size: 20px; }
  .cw-row.cw-highlight .cw-row-val { font-size: 22px; }
}
@media (max-width: 390px) {
  .cw-left  { padding: 40px 20px 28px; }
  .cw-right { padding: 28px 20px 44px; }
  .cw-title { font-size: 24px; }
  .cw-input { font-size: 24px; }
  .cw-row.cw-highlight .cw-row-val { font-size: 20px; }
}
