/* ============================================================================
   ODOMIA — Leads Modal Styles
   ============================================================================ */

/* Modal Container */
.leads-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem;
  backdrop-filter: blur(4px);
  animation: leads-fadeIn 0.3s ease-out;
}

.leads-modal-hidden {
  display: none !important;
}

.leads-modal-content {
  background: white;
  border-radius: 24px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(42, 102, 138, 0.25);
  animation: leads-slideUp 0.4s ease-out;
}

@keyframes leads-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes leads-slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Steps */
.leads-step {
  padding: 3rem;
}

.leads-header {
  margin-bottom: 2rem;
  text-align: center;
}

.leads-header h2 {
  font-family: 'Lora', serif;
  font-size: 2rem;
  color: #2a668a;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.leads-header p {
  font-size: 0.95rem;
  color: #666;
  font-family: 'Lora', serif;
}

/* Form Groups */
.leads-group {
  margin-bottom: 1.5rem;
}

.leads-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666;
  margin-bottom: 0.5rem;
}

.leads-group input,
.leads-group select {
  width: 100%;
  padding: 0.875rem;
  border: 1.5px solid #e0e6ed;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.leads-group input:focus,
.leads-group select:focus {
  outline: none;
  border-color: #357ea6;
  box-shadow: 0 0 0 4px rgba(53, 126, 166, 0.1);
}

.leads-group small {
  display: block;
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.3rem;
}

/* Row Layout */
.leads-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Checkbox */
.leads-checkbox {
  margin: 2rem 0;
  padding: 1.25rem;
  background: #f8f9fb;
  border-radius: 12px;
  border: 1px solid #e0e6ed;
}

.leads-checkbox input[type="checkbox"] {
  width: auto;
  margin-right: 0.75rem;
  cursor: pointer;
  accent-color: #357ea6;
}

.leads-checkbox label {
  display: inline;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: #333;
  cursor: pointer;
  margin-bottom: 0;
}

/* Buttons */
.leads-btn {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 0.75rem;
}

.leads-btn-primary {
  background: linear-gradient(135deg, #357ea6 0%, #4ca896 100%);
  color: white;
  box-shadow: 0 10px 20px rgba(53, 126, 166, 0.2);
}

.leads-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(53, 126, 166, 0.3);
}

.leads-btn-secondary {
  background: white;
  color: #357ea6;
  border: 2px solid #357ea6;
}

.leads-btn-secondary:hover {
  background: #f8f9fb;
  transform: translateY(-2px);
}

/* Result Step */
.leads-estimation {
  margin: 2rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(53, 126, 166, 0.05) 0%, rgba(76, 168, 150, 0.05) 100%);
  border-radius: 16px;
  border: 1px solid rgba(53, 126, 166, 0.1);
  text-align: center;
}

.leads-estimation-box {
  font-family: 'Lora', serif;
}

.leads-estimation-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666;
  margin-bottom: 1rem;
  font-weight: 600;
}

.leads-estimation-range {
  font-size: 2.5rem;
  color: #357ea6;
  font-weight: 700;
  line-height: 1.4;
}

/* Credibility Section */
.leads-credibility {
  margin: 2rem 0;
}

.leads-credibility h3 {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  color: #2a668a;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.leads-credibility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.leads-credibility-item {
  padding: 1.25rem;
  background: #f8f9fb;
  border-radius: 12px;
  border: 1px solid #e0e6ed;
  text-align: center;
}

.leads-credibility-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.leads-credibility-value {
  font-size: 1.5rem;
  color: #357ea6;
  font-weight: 700;
  font-family: 'Lora', serif;
}

/* Conseiller Section */
.leads-conseiller {
  margin: 2rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(76, 168, 150, 0.05) 0%, rgba(53, 126, 166, 0.05) 100%);
  border-radius: 16px;
  border: 1px solid rgba(76, 168, 150, 0.1);
}

.leads-conseiller h3 {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  color: #2a668a;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.leads-conseiller-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  border: 1px solid #e0e6ed;
}

.leads-conseiller-info {
  flex: 1;
}

.leads-conseiller-name {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  color: #2a668a;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.leads-conseiller-contact a {
  color: #357ea6;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.leads-conseiller-contact a:hover {
  color: #4ca896;
}

.leads-conseiller-commitment {
  font-size: 0.85rem;
  color: #4ca896;
  font-style: italic;
  margin: 0;
}

/* Actions */
.leads-actions {
  margin-top: 2rem;
}

.leads-actions .leads-btn {
  margin-bottom: 0.75rem;
}

.leads-actions .leads-btn:last-child {
  margin-bottom: 0;
}

/* Loading */
.leads-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  text-align: center;
}

.leads-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(53, 126, 166, 0.1);
  border-top-color: #357ea6;
  border-radius: 50%;
  animation: leads-spin 1s linear infinite;
  margin-bottom: 1.5rem;
}

@keyframes leads-spin {
  to { transform: rotate(360deg); }
}

.leads-loading p {
  color: #666;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .leads-modal-content {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 16px;
  }

  .leads-step {
    padding: 2rem 1.5rem;
  }

  .leads-header h2 {
    font-size: 1.5rem;
  }

  .leads-row {
    grid-template-columns: 1fr;
  }

  .leads-credibility-grid {
    grid-template-columns: 1fr;
  }

  .leads-conseiller-card {
    flex-direction: column;
    text-align: center;
  }

  .leads-estimation-range {
    font-size: 2rem;
  }
}

/* ============================================================================
   OVERLAY QUALIFICATION (Option C — résultat flouté + overlay)
   ============================================================================ */

/* Flou sur le contenu résultat */
.leads-result-blurred {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
  transition: filter 0.5s ease;
}

/* Overlay positionné en absolu sur le résultat */
.leads-qual-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(3px);
  transition: opacity 0.4s ease;
}

.leads-qual-overlay-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.leads-qual-overlay-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(42, 102, 138, 0.2);
  animation: leads-slideUp 0.35s ease-out;
}

.leads-qual-overlay-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.leads-qual-overlay-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.leads-qual-overlay-header h3 {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  color: #2a668a;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.leads-qual-overlay-header p {
  font-size: 0.9rem;
  color: #777;
  margin: 0;
}

/* Questions dans l'overlay — même style que hedonic */
.leads-qual-question {
  margin-bottom: 1.25rem;
}

.leads-qual-question p {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin: 0 0 0.4rem;
}

.leads-qual-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.leads-qual-btn {
  padding: 0.4rem 0.85rem;
  border: 1.5px solid #357ea6;
  border-radius: 20px;
  background: white;
  color: #357ea6;
  font-size: 0.8rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.leads-qual-btn:hover {
  background: linear-gradient(135deg, #357ea6 0%, #4ca896 100%);
  border-color: transparent;
  color: white;
}

.leads-qual-btn.active {
  background: linear-gradient(135deg, #357ea6 0%, #4ca896 100%);
  border-color: transparent;
  color: white;
  font-weight: 600;
}

/* Bouton passer */
.leads-qual-skip {
  display: block;
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.6rem;
  background: none;
  border: none;
  color: #aaa;
  font-size: 0.82rem;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  text-align: center;
  transition: color 0.2s ease;
}

.leads-qual-skip:hover {
  color: #357ea6;
}

/* ============================================================================
   SECTION HEDONIC — Boutons pilules (même design que qualification)
   ============================================================================ */

.leads-hedonic-intro {
  font-size: 0.85rem;
  color: #777;
  margin: 0.75rem 0 1.25rem;
  text-align: center;
}

.leads-hedo-group {
  margin-bottom: 1.1rem;
}

.leads-hedo-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin: 0 0 0.4rem;
}

.leads-hedo-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.leads-hedo-btn {
  padding: 0.4rem 0.85rem;
  border: 1.5px solid #c8d0da;
  border-radius: 20px;
  background: white;
  color: #444;
  font-size: 0.8rem;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.leads-hedo-btn:hover {
  border-color: #357ea6;
  color: #357ea6;
}

.leads-hedo-btn.active {
  background: linear-gradient(135deg, #357ea6 0%, #4ca896 100%);
  border-color: transparent;
  color: white;
  font-weight: 600;
}

/* ============================================================================
   BOUTON AFFINER L'ESTIMATION
   ============================================================================ */

.leads-hedonic-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 1rem;
  background: linear-gradient(135deg, #357ea6 0%, #4ca896 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(53, 126, 166, 0.2);
  transition: all 0.3s ease;
}

.leads-hedonic-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(53, 126, 166, 0.3);
}

.leads-hedonic-toggle-icon {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.leads-hedonic-toggle-label {
  flex: 1;
  text-align: center;
}

/* ============================================================================
   FIN
   ============================================================================ */
