
/* ========================================
   BLOC FINANCEMENT - SINGLE LISTING
======================================== */
.single-auto-listing .financement-preview .mensualite span {
  color: #31353c;
  display: initial !important;
  margin: 0 !important;
}

.single-auto-listing .financement-preview #monthly-amount {
  margin-left: 0 !important;
}

.single-auto-listing .financement-preview {
  padding-left: 0 !important ;
  padding-top: 10px !important;
}

/* ========================================
   BLOC FINANCEMENT (Preview)
======================================== */
.financement-preview {
  padding-right: 24px;
  padding-left: 24px;
  padding-bottom: 10px;
  padding-top: 24px;
  color: #ffffff;
  font-family: "Ubuntu", sans-serif;
  text-align: right;
}

/* .price-financement-wrapper:hover {
  background-color: #26acca;
  cursor: pointer;
}

.price-financement-wrapper:hover .price,
.price-financement-wrapper:hover .financement-preview .mensualite strong,
.price-financement-wrapper:hover .financement-preview .mensualite .apport {
  color: #ffffff;
}

.price-financement-wrapper:hover .popup-trigger svg circle {
  stroke: #ffffff !important;
}
.price-financement-wrapper:hover .popup-trigger svg text {
  fill: #ffffff !important;
} */

.financement-preview .mensualite span {
  display: block;
  margin: 5px 0;
}

.financement-preview .mensualite strong {
  font-size: 18px;
  margin-left: 6px;
  color: #26acca;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0;
  margin-top: 0;
}

.financement-preview .mensualite .duree {
  font-size: 15px;
  color: #ffffff;
  opacity: 0.9;
}

.financement-preview .mensualite .apport {
  font-size: 12px;
  color: #cccccc;
  margin-top: 8px;
  font-style: italic;
}

.financement-preview .popup-trigger {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: #26acca;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* ========================================
   POPUP OVERLAY
======================================== */
.popup-financement-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.90);
  backdrop-filter: blur(5px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
  transition: opacity 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========================================
   POPUP BOX
======================================== */
.popup-financement-box {
  background: #31353c;
  color: #ffffff;
  width: 100%;
  max-width: 650px;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.4s ease;
  overflow-y: auto;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ========================================
   POPUP HEADER
======================================== */
.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  background: linear-gradient(135deg, #26acca 0%, #1d8ba6 100%);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.popup-header h3 {
  color: #ffffff !important;
  margin: 0;
  font-size: 20px;
  font-weight: 600 !important;
  display: flex;
  align-items: center;
}

.popup-header .close-popup {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.popup-header .close-popup:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

/* ========================================
   POPUP CONTENT (SCROLLABLE)
======================================== */
.popup-content {
  padding: 25px;
  overflow-y: auto;
  flex-grow: 1;
  scrollbar-width: thin;
  scrollbar-color: #26acca #31353c;
}

.popup-content::-webkit-scrollbar {
  width: 8px;
}

.popup-content::-webkit-scrollbar-track {
  background: #2a2e35;
  border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb {
  background: #26acca;
  border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
  background: #1d8ba6;
}

/* ========================================
   SECTION CARDS
======================================== */
.section-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(38, 172, 202, 0.2);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.section-card h4 {
  color: #26acca;
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========================================
   DÉTAILS FINANCEMENT
======================================== */
.popup-financement-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popup-financement-details li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

.popup-financement-details li:last-child {
  border-bottom: none;
}

.popup-financement-details .label {
  color: #ffffff;
  opacity: 0.8;
}

.popup-financement-details .value {
  color: #26acca;
  font-weight: 600;
  font-size: 15px;
}

.popup-financement-details li.highlight .value {
  font-size: 20px;
}

/* ========================================
   WARNING CARD
======================================== */
.warning-card {
  background: rgba(255, 170, 170, 0.08);
  border-color: rgba(255, 170, 170, 0.3);
  display: flex;
  gap: 15px;
}

.warning-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.warning-card p {
  color: #ffaaaa;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}

/* ========================================
   MENTIONS LÉGALES
======================================== */
.mentions-card {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.1);
}

.mentions-content {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 10px;
}

.mentions-content p {
  margin: 0 0 12px 0;
}

.mentions-content p:last-child {
  margin-bottom: 0;
}

/* ========================================
   POPUP FOOTER
======================================== */
.popup-footer {
  padding: 20px 25px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  flex-shrink: 0;
}

.btn-close-popup {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, #26acca 0%, #1d8ba6 100%);
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(38, 172, 202, 0.3);
}

.btn-close-popup:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(38, 172, 202, 0.4);
  background: linear-gradient(135deg, #1d8ba6 0%, #26acca 100%);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
  .popup-financement-box {
    max-height: 90vh;
    margin: 10px;
  }

  .popup-header h3 {
    font-size: 18px;
  }

  .popup-content {
    padding: 20px;
  }

  .financement-preview .mensualite strong {
    font-size: 28px;
  }
}

.popup-header h3 > svg,
.popup-header h3 > .addtoany_share_save_container,
.popup-header h3 > .sharedaddy {
	display: none !important;
}

.primary-text {
  font-size: 16px;
}
.value {
  font-size: 18px;
  font-weight: bold;
}
.legal-warning {
  font-size: 13px; /* au-dessus de 8pt */
}

/* ========================================
   BOUTON WIDGET PERSONNALISATION
======================================== */
.financement-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.btn-widget-personalize {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  color: #24a7c4;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}


.btn-widget-personalize:active {
  transform: translateY(0);
}

/* Animation quand les données sont mises à jour */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

#financement-display.updated {
  animation: pulse 0.6s ease;
  border-color: #26acca;
  box-shadow: 0 0 20px rgba(38, 172, 202, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .financement-actions {
    gap: 8px;
  }
  
  .btn-widget-personalize {
    font-size: 14px;
  }
}

.financement-ligne {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  margin-top: 10px;
}

.financement-ligne .montant {
  font-size: 18px;
  font-weight: bold;
  color: #26acca;
}

.icone-popup svg {
  cursor: pointer;
  transition: 0.3s;
}

.icone-popup:hover svg {
  fill: #1d8ba6;
}

.apport-note {
  text-align: center;
  font-size: 13px;
  color: #cccccc;
  margin-top: 4px;
  font-style: italic;
}

/* Avertissement crédit sticky - Style moderne surlignage bleu */
body .stellantis-credit-warning {
    position: sticky !important;
    bottom: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    background: transparent !important;
    border: none !important;
    padding: 20px 20px !important;
    text-align: center !important;
    z-index: 9999 !important;
    margin: 0 !important;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

body .stellantis-credit-warning p {
    margin: 0 !important;
    padding: 8px 16px !important;
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 16px !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    letter-spacing: 0.3px !important;
    background: linear-gradient(135deg, rgba(38, 172, 202, 0.85) 0%, rgba(38, 172, 202, 0.75) 100%) !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 12px rgba(38, 172, 202, 0.3) !important;
    display: inline-block !important;
    max-width: 900px !important;
}

/* Responsive */
@media (max-width: 768px) {
    body .stellantis-credit-warning {
        padding: 16px 12px !important;
    }
    
    body .stellantis-credit-warning p {
        font-size: 14px !important;
        padding: 6px 12px !important;
        max-width: 100% !important;
    }
}

/* Effet hover subtil */
body .stellantis-credit-warning p:hover {
    background: linear-gradient(135deg, rgba(38, 172, 202, 0.95) 0%, rgba(38, 172, 202, 0.85) 100%) !important;
    box-shadow: 0 4px 16px rgba(38, 172, 202, 0.4) !important;
    transition: all 0.3s ease;
}

/* Message légal crédit - Version fiche véhicule */
.financement-credit-warning-inline {
    text-align: right;
    margin: 8px 0;
    padding: 0;
    display: block;
}

.financement-credit-warning-inline p {
    margin: 0;
    padding: 0;
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    color: #000000;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.2px;
    text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
    .financement-credit-warning-inline p {
        font-size: 10px;
    }
}