/* ================================================================
   FORMULAIRE DE PERSONNALISATION
   ================================================================ */

.le-personalization-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.le-personalization-overlay.is-visible {
  opacity: 1;
}

.le-personalization-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.le-personalization-overlay.is-visible .le-personalization-modal {
  transform: scale(1) translateY(0);
}

.le-personalization-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  transition: color 0.2s ease;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.le-personalization-close:hover {
  color: #0f172a;
}

.le-personalization-header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid #e2e8f0;
}

.le-personalization-header h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
}

.le-personalization-header p {
  margin: 0;
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
}

.le-personalization-form {
  padding: 24px 32px 32px;
}

.le-children-list {
  margin-bottom: 24px;
}

.le-child-item {
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 2px solid #e2e8f0;
}

.le-child-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.le-child-item h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.le-remove-child {
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.le-remove-child:hover {
  background: #fee2e2;
}

.le-form-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.le-form-field {
  display: flex;
  flex-direction: column;
}

.le-form-field label {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
}

.le-form-field input {
  padding: 10px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s ease;
  background: #fff;
}

.le-form-field input:focus {
  outline: none;
  border-color: #3b82f6;
}

.le-add-child-btn {
  width: 100%;
  padding: 12px;
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  color: #475569;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 24px;
}

.le-add-child-btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

.le-personalization-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.le-btn-group {
  display: flex;
  gap: 12px;
}

.le-btn {
  flex: 1;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.le-btn-primary {
  background: #3b82f6;
  color: #fff;
}

.le-btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.le-btn-secondary {
  background: #f1f5f9;
  color: #475569;
}

.le-btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.le-btn-never {
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  padding: 8px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: color 0.2s ease;
}

.le-btn-never:hover {
  color: #475569;
  text-decoration: underline;
}

/* Toast notifications */
.le-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #10b981;
  color: #fff;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  font-size: 15px;
  max-width: 400px;
  z-index: 100000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.le-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.le-toast-success {
  background: #10b981;
}

/* Responsive */
@media (max-width: 640px) {
  .le-personalization-modal {
    max-height: 95vh;
  }

  .le-personalization-header {
    padding: 24px 20px 16px;
  }

  .le-personalization-header h2 {
    font-size: 20px;
  }

  .le-personalization-form {
    padding: 16px 20px 24px;
  }

  .le-form-row {
    grid-template-columns: 1fr;
  }

  .le-personalization-footer {
    flex-direction: column;
  }

  .le-btn-group {
    flex-direction: column;
  }

  .le-toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
}
