/* Babyphone Video — styles front (mu-plugin) */

.bpv-cta-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 600px) {
  .bpv-cta-group {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

#bpv-sticky-top3 {
  display: none;
}

@media (max-width: 768px) {
  body.bpv-has-sticky {
    padding-bottom: 72px;
  }

  #bpv-sticky-top3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    padding: 10px 16px;
    background: #1a365d;
    color: #fff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    line-height: 1.3;
  }

  #bpv-sticky-top3 .bpv-sticky-text {
    flex: 1;
    font-weight: 600;
  }

  #bpv-sticky-top3 .bpv-sticky-btn {
    flex-shrink: 0;
    display: inline-block;
    padding: 10px 14px;
    background: #ff9900;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: 700;
    white-space: nowrap;
  }
}

/* Sélecteur babyphone — wizard 2026 */
.bpv-selector {
  --bpv-navy: #1a365d;
  --bpv-orange: #f97316;
  --bpv-orange-dark: #ea580c;
  --bpv-surface: #ffffff;
  --bpv-muted: #64748b;
  --bpv-border: #e2e8f0;
  --bpv-radius: 12px;
  margin: 0 0 2rem;
}

.bpv-selector-intro {
  margin-bottom: 1.5rem;
}

.bpv-selector-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--bpv-muted);
  margin: 0 0 1rem;
}

.bpv-selector-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bpv-navy);
}

.bpv-selector-trust li::before {
  content: "✓ ";
  color: var(--bpv-orange);
}

.bpv-selector-form {
  background: var(--bpv-surface);
  border: 1px solid var(--bpv-border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 24px rgba(26, 54, 93, 0.06);
}

@media (min-width: 768px) {
  .bpv-selector-form {
    padding: 1.75rem 2rem;
  }
}

.bpv-step {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--bpv-border);
}

.bpv-step:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.bpv-step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.bpv-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bpv-navy);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}

.bpv-step-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.bpv-choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 540px) {
  .bpv-choice-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bpv-choice-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bpv-choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.125rem;
  border: 2px solid var(--bpv-border);
  border-radius: var(--bpv-radius);
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.bpv-choice-card:hover {
  border-color: #cbd5e1;
  background: #fff;
}

.bpv-choice-card.is-selected {
  border-color: var(--bpv-orange);
  background: #fff7ed;
  box-shadow: 0 0 0 1px var(--bpv-orange);
}

.bpv-choice-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.bpv-choice-label {
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
  line-height: 1.3;
}

.bpv-choice-hint {
  font-size: 0.8125rem;
  color: var(--bpv-muted);
  line-height: 1.4;
}

.bpv-choice-card.is-selected .bpv-choice-label {
  color: var(--bpv-navy);
}

.bpv-selector-actions {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bpv-border);
}

.bpv-selector-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: var(--bpv-radius);
  background: linear-gradient(135deg, var(--bpv-orange) 0%, var(--bpv-orange-dark) 100%);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.bpv-selector-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}

.bpv-selector-submit:active:not(:disabled) {
  transform: translateY(0);
}

.bpv-selector-submit:disabled {
  opacity: 0.85;
  cursor: wait;
}

.bpv-selector-submit.is-loading .bpv-submit-icon {
  animation: bpv-spin 0.8s linear infinite;
}

.bpv-submit-icon {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
}

.bpv-selector-submit.is-loading .bpv-submit-icon {
  opacity: 1;
}

@keyframes bpv-spin {
  to {
    transform: rotate(360deg);
  }
}

.bpv-selector-disclaimer {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--bpv-muted);
}

/* Résultats */
.bpv-selector-results {
  margin-top: 2rem;
}

.bpv-results-panel {
  border: 1px solid var(--bpv-border);
  border-radius: 16px;
  padding: 1.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 120px);
  box-shadow: 0 4px 24px rgba(26, 54, 93, 0.08);
}

.bpv-results-header {
  margin-bottom: 1.25rem;
}

.bpv-results-title {
  margin: 0 0 0.35rem;
  font-size: 1.375rem;
  color: var(--bpv-navy);
}

.bpv-results-sub {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--bpv-muted);
}

.bpv-results-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bpv-result-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem;
  border: 1px solid var(--bpv-border);
  border-radius: var(--bpv-radius);
  background: #fff;
}

.bpv-result-card--top {
  border-color: var(--bpv-orange);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.25);
}

.bpv-result-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.5rem;
}

.bpv-result-rank-num {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bpv-navy);
  color: #fff;
  font-weight: 800;
  font-size: 1.125rem;
}

.bpv-result-card--top .bpv-result-rank-num {
  background: var(--bpv-orange);
}

.bpv-result-rank-label {
  margin-top: 0.35rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bpv-muted);
  text-align: center;
  line-height: 1.2;
}

.bpv-result-name {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
  color: #0f172a;
}

.bpv-result-price {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
}

.bpv-result-price span {
  color: var(--bpv-muted);
  font-weight: 500;
}

.bpv-result-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bpv-results-footer {
  margin: 1.25rem 0 0;
  text-align: center;
}

.bpv-results-link {
  font-weight: 600;
  color: var(--bpv-navy) !important;
  text-decoration: none !important;
}

.bpv-results-link:hover {
  color: var(--bpv-orange) !important;
}

.bpv-selector-error {
  color: #b91c1c;
  margin: 0;
}

.bpv-cta-price {
  display: inline-block;
  padding: 10px 14px;
  background: #ff9900;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
}

.bpv-cta-reviews {
  display: inline-block;
  padding: 10px 14px;
  border: 2px solid #232f3e;
  color: #232f3e !important;
  text-decoration: none !important;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
}

@media (max-width: 539px) {
  .bpv-choice-grid--3 {
    grid-template-columns: 1fr;
  }

  .bpv-result-card {
    grid-template-columns: 1fr;
  }

  .bpv-result-rank {
    flex-direction: row;
    gap: 0.5rem;
    min-width: 0;
  }
}
