/* ===========================================
   SOFINCO WIDGET v2 — Bandeau fiche produit
   =========================================== */

.sofinco-widget {
  margin: 14px 0 10px;
  background: #fff;
  border: 1px solid #e8edef;
  border-radius: 12px;
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}
.sofinco-widget:hover {
  border-color: #00A5A8;
  box-shadow: 0 4px 16px rgba(0, 165, 168, 0.15), 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Row 1: Logo + pill toggles */
.sofinco-widget__row1 {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sofinco-widget__logo {
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.sofinco-widget__toggles {
  display: inline-flex;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  overflow: hidden;
  background: #fff;
}
.sofinco-widget__toggle {
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 700;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
  line-height: 1.3;
}
.sofinco-widget__toggle--active {
  background: #00A5A8;
  color: #fff;
  border-radius: 50px;
}
.sofinco-widget__toggle:hover:not(.sofinco-widget__toggle--active) {
  background: rgba(0,165,168,0.08);
}

/* Row 2: à partir de XX €/mois */
.sofinco-widget__row2 {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.sofinco-widget__from {
  font-size: 15px;
  color: #555;
}
.sofinco-widget__price {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  font-family: 'Poppins', Arial, sans-serif;
  line-height: 1;
}
.sofinco-widget__per {
  font-size: 15px;
  color: #555;
}

/* Info button (i) — fond blanc forcé */
.sofinco-widget__info {
  background: #fff !important;
  background-color: #fff !important;
  border: 1.5px solid #00A5A8 !important;
  border-radius: 50% !important;
  width: 22px;
  height: 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-left: 4px;
  vertical-align: middle;
  transition: background 0.2s;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
}
.sofinco-widget__info:hover {
  background: rgba(0,165,168,0.1);
}

/* Legal */
.sofinco-widget__legal {
  font-size: 10px;
  color: #b0b0b0;
  margin-top: 4px;
  font-style: italic;
  line-height: 1.3;
}


/* ===========================================
   SOFINCO PANEL — Popup latérale
   =========================================== */

.sofinco-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999999;
  animation: sofincoFadeIn 0.25s ease;
}
.sofinco-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  box-shadow: -4px 0 30px rgba(0,0,0,0.15);
  overflow-y: auto;
  padding: 28px 24px 32px;
  animation: sofincoSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
.sofinco-panel__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}
.sofinco-panel__close:hover {
  background: #e0e0e0;
}

/* Header */
.sofinco-panel__header {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 20px;
}
.sofinco-panel__logo {
  height: 44px;
  object-fit: contain;
  margin-bottom: 16px;
}
.sofinco-panel__title {
  font-size: 16px;
  color: #333;
  font-weight: 600;
  line-height: 1.4;
}
.sofinco-panel__amount {
  font-size: 28px;
  font-weight: 800;
  color: #00A5A8;
  font-family: 'Poppins', Arial, sans-serif;
  margin-top: 4px;
}

/* Pill selector */
.sofinco-panel__selector-label {
  font-size: 14px;
  color: #555;
  text-align: center;
  margin-bottom: 12px;
}
.sofinco-panel__selector {
  display: flex;
  border: 2px solid #00A5A8;
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 24px;
}
.sofinco-panel__pill {
  flex: 1;
  padding: 11px 6px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  color: #00A5A8;
  background: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.sofinco-panel__pill--active {
  background: #00A5A8;
  color: #fff;
  border-radius: 50px;
}
.sofinco-panel__pill:not(.sofinco-panel__pill--active):hover {
  background: rgba(0,165,168,0.08);
}

/* Schedule */
.sofinco-panel__schedule {
  margin-bottom: 16px;
}
.sofinco-sched-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}
.sofinco-sched-row:last-child {
  border-bottom: none;
}
.sofinco-sched-row__left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sofinco-sched-row__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d0d0d0;
  flex-shrink: 0;
}
.sofinco-sched-row__dot--first {
  background: #00A5A8;
}
.sofinco-sched-row__date {
  font-size: 14px;
  color: #333;
}
.sofinco-sched-row__amount {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}
.sofinco-sched-row__right {
  text-align: right;
}
.sofinco-sched-row__fees {
  display: block;
  font-size: 11px;
  color: #999;
  font-weight: 400;
}
.sofinco-sched-remaining {
  text-align: center;
  font-size: 12px;
  color: #999;
  font-style: italic;
  padding: 8px 0;
}

/* Totals */
.sofinco-panel__totals {
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
  margin-bottom: 24px;
}
.sofinco-total-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}
.sofinco-total-row__label {
  color: #555;
  font-weight: 600;
}
.sofinco-total-row__value {
  color: #1a1a1a;
  font-weight: 700;
}
.sofinco-total-row--fees .sofinco-total-row__label {
  color: #00A5A8;
}
.sofinco-total-row--fees .sofinco-total-row__value {
  color: #00A5A8;
}

/* How it works */
.sofinco-panel__howto {
  background: #f8fafa;
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 20px;
}
.sofinco-panel__howto-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 14px;
}
.sofinco-panel__step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #444;
  line-height: 1.4;
}
.sofinco-panel__step:last-child {
  margin-bottom: 0;
}
.sofinco-panel__step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #00A5A8;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Legal */
.sofinco-panel__legal {
  font-size: 10px;
  color: #aaa;
  line-height: 1.5;
}

/* Animations */
@keyframes sofincoFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes sofincoSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 480px) {
  .sofinco-panel {
    width: 100vw;
    padding: 20px 16px 28px;
  }
  .sofinco-panel__amount {
    font-size: 24px;
  }
  .sofinco-panel__pill {
    font-size: 12px;
    padding: 9px 4px;
  }
  .sofinco-widget__price {
    font-size: 20px;
  }
  .sofinco-widget__from,
  .sofinco-widget__per {
    font-size: 13px;
  }
}
