/* ==========================================
   COMPONENTS - TELEPILOTE SAS v2.0
   Modal, Lead Magnet, Social Proof, Témoignages
   ========================================== */

/* ===== MODAL ===== */
.tp-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20000;
  align-items: center;
  justify-content: center;
}
.tp-modal.open {
  display: flex;
}
.tp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 29, 58, 0.7);
  backdrop-filter: blur(4px);
}
.tp-modal-content {
  position: relative;
  background: var(--tp-white);
  border-radius: var(--tp-radius-lg);
  box-shadow: 0 24px 48px rgba(0,0,0,0.2);
  max-width: 480px;
  width: 90%;
  animation: tpModalIn 0.3s ease;
}
@keyframes tpModalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.tp-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--tp-gray-100);
  font-size: 20px;
  color: var(--tp-gray-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--tp-transition);
}
.tp-modal-close:hover {
  background: var(--tp-gray-200);
  color: var(--tp-navy);
}
.tp-modal-body {
  padding: 40px 32px 32px;
}
.tp-modal-body h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--tp-navy);
  margin-bottom: 8px;
}
.tp-modal-body > p {
  font-size: 14px;
  color: var(--tp-gray-500);
  margin-bottom: 24px;
}
.tp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tp-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--tp-font);
  font-size: 14px;
  border: 1px solid var(--tp-gray-200);
  border-radius: var(--tp-radius);
  background: var(--tp-gray-50);
  color: var(--tp-gray-800);
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.tp-input:focus {
  outline: none;
  border-color: var(--tp-orange);
  box-shadow: 0 0 0 3px rgba(245,130,13,0.1);
  background: var(--tp-white);
}
.tp-input::placeholder { color: var(--tp-gray-400); }
.tp-form-legal {
  font-size: 12px;
  color: var(--tp-gray-400);
  text-align: center;
  margin-top: 12px;
}
.tp-form-legal a { color: var(--tp-orange); }
.tp-lead-success {
  text-align: center;
  padding: 24px 0;
}
.tp-lead-success p:first-child {
  font-size: 18px;
  font-weight: 700;
  color: var(--tp-green);
  margin-bottom: 8px;
}

/* ===== SOCIAL PROOF NOTIFICATIONS ===== */
.tp-social-proof {
  position: fixed;
  bottom: 80px;
  left: 20px;
  z-index: 800;
  background: var(--tp-white);
  border-radius: var(--tp-radius-lg);
  box-shadow: var(--tp-shadow-lg);
  border: 1px solid var(--tp-gray-200);
  padding: 14px 18px;
  max-width: 340px;
  font-size: 13px;
  color: var(--tp-gray-600);
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.tp-social-proof.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.tp-social-proof strong { color: var(--tp-navy); }
.tp-sp-close {
  position: absolute;
  top: 4px;
  right: 8px;
  background: none;
  border: none;
  font-size: 16px;
  color: var(--tp-gray-400);
  cursor: pointer;
  padding: 4px;
}
.tp-sp-close:hover { color: var(--tp-gray-600); }
.tp-sp-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tp-orange), var(--tp-orange-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--tp-white);
  font-size: 16px;
}
@media (max-width: 768px) {
  .tp-social-proof {
    bottom: 80px;
    left: 10px;
    right: 10px;
    max-width: none;
  }
}

/* ===== TEMOIGNAGES ===== */
.tp-temoignages { margin-top: 48px; }
.tp-temoignages h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--tp-navy);
  margin-bottom: 24px;
}
.tp-temoignages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.tp-temoignage-card {
  background: var(--tp-gray-50);
  border: 1px solid var(--tp-gray-200);
  border-radius: var(--tp-radius-lg);
  padding: 24px;
}
.tp-temoignage-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}
.tp-temoignage-text {
  font-size: 14px;
  font-style: italic;
  color: var(--tp-gray-600);
  line-height: 1.6;
  margin-bottom: 16px;
}
.tp-temoignage-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tp-temoignage-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.tp-temoignage-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tp-orange), var(--tp-orange-hover));
  color: var(--tp-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}
.tp-temoignage-author strong {
  display: block;
  font-size: 14px;
  color: var(--tp-navy);
}
.tp-temoignage-author span {
  font-size: 12px;
  color: var(--tp-gray-500);
}
