/* ════════════════════════════════════════════════════════════════
   WK SARL · Modal "Faire une offre"
   ──────────────────────────────────────────────────────────────── */

.offer-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(8, 8, 10, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.offer-overlay.active {
  display: flex;
  opacity: 1;
}

.offer-modal {
  background: linear-gradient(180deg, #1a1a1f 0%, #131317 100%);
  border: 1px solid rgba(212, 160, 23, 0.25);
  border-radius: 18px;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: #f5f5f7;
}
.offer-overlay.active .offer-modal {
  transform: translateY(0) scale(1);
}

.offer-header {
  position: relative;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.offer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a8a8b0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 18px;
  line-height: 1;
}
.offer-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #f5f5f7;
}
.offer-eyebrow {
  font-size: 10px;
  font-weight: 600;
  color: #D4A017;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
}
.offer-title {
  font-size: 18px;
  font-weight: 700;
  color: #f5f5f7;
  letter-spacing: -0.2px;
  line-height: 1.3;
  margin: 0 30px 0 0;
}
.offer-product {
  font-size: 13px;
  color: #a8a8b0;
  margin-top: 4px;
}

.offer-body {
  padding: 20px 24px 4px;
}

.offer-price-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(212, 160, 23, 0.06);
  border: 1px solid rgba(212, 160, 23, 0.15);
  border-radius: 12px;
  margin-bottom: 18px;
}
.offer-price-label {
  font-size: 11px;
  color: #a8a8b0;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}
.offer-price-value {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 17px;
  font-weight: 700;
  color: #D4A017;
}

.offer-input-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #f5f5f7;
  margin-bottom: 8px;
}
.offer-input-hint {
  font-size: 11px;
  color: #6a6a72;
  font-weight: 400;
  margin-left: 6px;
}

.offer-input-wrap {
  position: relative;
  margin-bottom: 14px;
}
.offer-input {
  width: 100%;
  padding: 14px 44px 14px 16px;
  background: #08080a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #f5f5f7;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  transition: border-color 0.15s, box-shadow 0.15s;
  -moz-appearance: textfield;
  appearance: textfield;
}
.offer-input::-webkit-outer-spin-button,
.offer-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.offer-input:focus {
  outline: none;
  border-color: #D4A017;
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}
.offer-input.invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}
.offer-input-currency {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6a6a72;
  font-weight: 600;
  font-size: 16px;
  pointer-events: none;
}

.offer-feedback {
  min-height: 18px;
  font-size: 12px;
  margin-bottom: 14px;
  font-weight: 500;
}
.offer-feedback.ok {
  color: #34d399;
}
.offer-feedback.warn {
  color: #fbbf24;
}
.offer-feedback.error {
  color: #f87171;
}

.offer-range {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #6a6a72;
  margin-bottom: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.3px;
}
.offer-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  outline: none;
  margin-bottom: 18px;
  cursor: pointer;
}
.offer-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #D4A017;
  border: 3px solid #131317;
  cursor: pointer;
  box-shadow: 0 0 0 1px #D4A017, 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.1s;
}
.offer-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.offer-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #D4A017;
  border: 3px solid #131317;
  cursor: pointer;
  box-shadow: 0 0 0 1px #D4A017, 0 4px 8px rgba(0, 0, 0, 0.3);
}

.offer-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.15);
  border-radius: 12px;
  margin-bottom: 18px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  transition: all 0.3s ease;
}
.offer-summary.visible {
  opacity: 1;
  max-height: 80px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.offer-summary-l {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.offer-summary-label {
  font-size: 11px;
  color: #a8a8b0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.offer-summary-pct {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: #34d399;
  font-weight: 600;
}
.offer-summary-amount {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 17px;
  font-weight: 700;
  color: #34d399;
}

.offer-actions {
  padding: 6px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.offer-btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: 0;
  letter-spacing: -0.1px;
}
.offer-btn-primary {
  background: linear-gradient(180deg, #E0B12C 0%, #D4A017 100%);
  color: #0d0d10;
  box-shadow: 0 4px 14px rgba(212, 160, 23, 0.25);
}
.offer-btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #ECC04A 0%, #E0B12C 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 160, 23, 0.35);
}
.offer-btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.4);
}
.offer-btn-ghost {
  background: transparent;
  color: #a8a8b0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.offer-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f5f5f7;
}

.offer-success {
  text-align: center;
  padding: 36px 24px;
}
.offer-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  display: grid;
  place-items: center;
  color: #34d399;
}
.offer-success-icon svg {
  width: 30px;
  height: 30px;
}
.offer-success-title {
  font-size: 19px;
  font-weight: 700;
  color: #f5f5f7;
  margin-bottom: 8px;
}
.offer-success-text {
  font-size: 13px;
  color: #a8a8b0;
  line-height: 1.5;
  margin-bottom: 4px;
}
.offer-success-amount {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 24px;
  font-weight: 700;
  color: #D4A017;
  margin: 12px 0 18px;
  letter-spacing: -0.5px;
}
.offer-success-note {
  font-size: 11px;
  color: #6a6a72;
  margin-top: 10px;
}

.offer-footer-trust {
  text-align: center;
  font-size: 10px;
  color: #6a6a72;
  padding: 0 24px 16px;
  letter-spacing: 0.3px;
}

/* ════════════════════════════════════════════════════════════════
   Bouton "Faire une offre" — identité distincte (cuivré / champagne)
   Hiérarchie volontaire :
     · "Ajouter au panier" = OR plein  (CTA principal)
     · "Faire une offre"   = CUIVRÉ profond sur fond sombre (CTA négociation, premium, distinct)
     · "Acheter maintenant"= outline OR (CTA secondaire express)
   ──────────────────────────────────────────────────────────────── */
.btn-offer {
  flex: 1;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  /* Fond sombre champagne avec léger gradient pour la profondeur */
  background:
    linear-gradient(180deg, rgba(212, 160, 23, 0.16) 0%, rgba(212, 160, 23, 0.06) 100%),
    linear-gradient(180deg, #1f1a12 0%, #15110a 100%);
  /* Texte cuivré clair pour contraste premium */
  color: #E8C170;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  /* Bordure or-cuivre très fine, signature visuelle */
  border: 1px solid rgba(212, 160, 23, 0.45);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.1px;
  /* Triple ombrage : profondeur + halo doré subtil + highlight haut */
  box-shadow:
    0 1px 0 rgba(255, 220, 150, 0.06) inset,
    0 0 0 0 rgba(212, 160, 23, 0),
    0 2px 6px rgba(0, 0, 0, 0.25);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.15s ease,
    box-shadow 0.25s ease;
}

.btn-offer:hover,
.btn-offer:focus-visible {
  background:
    linear-gradient(180deg, rgba(232, 193, 112, 0.22) 0%, rgba(212, 160, 23, 0.10) 100%),
    linear-gradient(180deg, #2a2418 0%, #1c1710 100%);
  color: #F5D88A;
  border-color: rgba(232, 193, 112, 0.65);
  /* Halo doré qui apparaît au hover, signe la qualité sans agresser */
  box-shadow:
    0 1px 0 rgba(255, 220, 150, 0.10) inset,
    0 0 0 3px rgba(212, 160, 23, 0.10),
    0 4px 14px rgba(212, 160, 23, 0.18);
  transform: translateY(-1px);
  outline: none;
}

.btn-offer:active {
  transform: translateY(0);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.20) inset,
    0 0 0 2px rgba(212, 160, 23, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.30);
}

.btn-offer svg {
  width: 18px;
  height: 18px;
  /* L'icône suit la couleur du texte sans l'écraser */
  opacity: 0.85;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.btn-offer:hover svg {
  opacity: 1;
  transform: rotate(-6deg);
}

/* Mobile : la zone CTA passe en colonne, "Faire une offre" en pleine largeur */
@media (max-width: 600px) {
  .lp-cta-group {
    flex-direction: column !important;
  }
  .lp-cta-group .btn-offer,
  .lp-cta-group .btn {
    width: 100%;
    flex: none !important;
  }
  .offer-modal {
    max-width: 100%;
    border-radius: 14px;
  }
  .offer-header { padding: 18px 18px 14px; }
  .offer-body { padding: 16px 18px 4px; }
  .offer-actions { padding: 6px 18px 18px; }
  .offer-input { font-size: 17px; }
}
