/* Quiz Modal - repris de Slimea, scoped sous .slimea-hp pour éviter tout conflit avec Tailwind */
@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;500;600;700;800;900&family=Red+Hat+Text:wght@400;500;600;700&display=swap');

.slimea-hp {
  --hp-primary: #C6A673;
  --hp-primary-dark: #A8865A;
  --hp-primary-light: #D4BC92;

  --hp-bg: #FFFFFF;
  --hp-bg-cream: #FAF8F5;
  --hp-bg-warm: #F5F2EF;
  --hp-bg-soft: #E4DCD8;

  --hp-text: #1A1A1A;
  --hp-text-secondary: #4A4A4A;
  --hp-muted: #6B6B6B;

  --hp-border: #E5E0DB;
  --hp-border-light: #F0EBE6;

  --hp-success: #2E7D32;
  --hp-white: #FFFFFF;

  --hp-shadow-sm: 0 2px 8px rgba(166, 134, 90, 0.08);
  --hp-shadow-md: 0 4px 20px rgba(166, 134, 90, 0.12);
  --hp-shadow-lg: 0 8px 40px rgba(166, 134, 90, 0.16);
  --hp-shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);

  --hp-max-width: 1200px;
  --hp-radius-sm: 8px;
  --hp-radius-md: 12px;
  --hp-radius-lg: 16px;
  --hp-radius-xl: 24px;
  --hp-radius-full: 9999px;

  --hp-transition: all 0.3s ease;

  font-family: 'Red Hat Text', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--hp-text);
  -webkit-font-smoothing: antialiased;
}

.slimea-hp h1,
.slimea-hp h2,
.slimea-hp h3,
.slimea-hp h4,
.slimea-hp h5,
.slimea-hp h6 {
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
  margin-top: 0;
  margin-bottom: 0;
  color: inherit;
}

.slimea-hp p {
  margin-bottom: 0;
  color: inherit;
}

.slimea-hp ul,
.slimea-hp ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.slimea-hp li {
  margin: 0;
  padding: 0;
}

/* Buttons */
.slimea-hp .hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--hp-radius-full);
  cursor: pointer;
  transition: var(--hp-transition);
  text-decoration: none;
}

.slimea-hp .hp-btn--primary {
  background: var(--hp-primary);
  color: var(--hp-white);
  box-shadow: var(--hp-shadow-md);
}

.slimea-hp .hp-btn--primary:hover {
  background: var(--hp-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--hp-shadow-lg);
}

.slimea-hp .hp-btn--block {
  width: 100%;
}

.slimea-hp .hp-btn--lg {
  padding: 20px 40px;
  font-size: 18px;
}

/* ============================================
   INTAKE MODAL
   ============================================ */
.slimea-hp.intake-modal,
.slimea-hp .intake-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.slimea-hp.intake-modal.active,
.slimea-hp .intake-modal.active {
  display: flex;
}

.slimea-hp .intake-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.slimea-hp .intake-modal__container {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  background: var(--hp-white);
  border-radius: var(--hp-radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: hp-modalSlideIn 0.3s ease;
}

@keyframes hp-modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.slimea-hp .intake-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--hp-border-light);
}

.slimea-hp .intake-modal__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--hp-text);
}

.slimea-hp .intake-modal__logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--hp-primary), var(--hp-primary-dark));
  border-radius: var(--hp-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hp-white);
  font-size: 14px;
  font-weight: 800;
}

.slimea-hp .intake-modal__close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hp-bg-warm);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  color: var(--hp-muted);
  cursor: pointer;
  transition: var(--hp-transition);
}

.slimea-hp .intake-modal__close:hover {
  background: var(--hp-bg-soft);
  color: var(--hp-text);
}

/* Progress Bar */
.slimea-hp .intake-progress {
  padding: 16px 24px;
  background: var(--hp-bg-cream);
}

.slimea-hp .intake-progress__track {
  height: 6px;
  background: var(--hp-border);
  border-radius: 3px;
  overflow: hidden;
}

.slimea-hp .intake-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--hp-primary), var(--hp-primary-dark));
  border-radius: 3px;
  transition: width 0.4s ease;
}

.slimea-hp .intake-progress__text {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--hp-muted);
  text-align: center;
}

/* Steps */
.slimea-hp .intake-steps {
  flex: 1;
  overflow-y: auto;
  padding: 32px 24px;
}

.slimea-hp .intake-step {
  display: none;
  animation: hp-stepFadeIn 0.3s ease;
}

.slimea-hp .intake-step.active {
  display: block;
}

@keyframes hp-stepFadeIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slimea-hp .intake-step__question {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--hp-text);
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.3;
}

.slimea-hp .intake-step__subtitle {
  font-size: 15px;
  color: var(--hp-muted);
  text-align: center;
  margin-bottom: 32px;
}

/* Options */
.slimea-hp .intake-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slimea-hp .intake-options--grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.slimea-hp .intake-option {
  padding: 20px;
  background: var(--hp-white);
  border: 2px solid var(--hp-border);
  border-radius: var(--hp-radius-md);
  cursor: pointer;
  transition: var(--hp-transition);
  text-align: center;
}

.slimea-hp .intake-option:hover {
  border-color: var(--hp-primary-light);
  background: var(--hp-bg-cream);
}

.slimea-hp .intake-option.selected {
  border-color: var(--hp-primary);
  background: var(--hp-bg-cream);
  box-shadow: 0 0 0 4px rgba(198, 166, 115, 0.15);
}

.slimea-hp .intake-option__value {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--hp-text);
  margin-bottom: 4px;
}

.slimea-hp .intake-option__label {
  font-size: 14px;
  color: var(--hp-muted);
}

.slimea-hp .intake-option__icon {
  font-size: 32px;
  margin-bottom: 8px;
}

/* Inputs */
.slimea-hp .intake-inputs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.slimea-hp .intake-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slimea-hp .intake-input-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--hp-text);
}

.slimea-hp .intake-input {
  padding: 16px 20px;
  font-family: inherit;
  font-size: 16px;
  border: 2px solid var(--hp-border);
  border-radius: var(--hp-radius-md);
  background: var(--hp-white);
  color: var(--hp-text);
  transition: var(--hp-transition);
}

.slimea-hp .intake-input:focus {
  outline: none;
  border-color: var(--hp-primary);
  box-shadow: 0 0 0 4px rgba(198, 166, 115, 0.15);
}

.slimea-hp .intake-input::placeholder {
  color: var(--hp-muted);
}

.slimea-hp .intake-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* BMI */
.slimea-hp .intake-bmi {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--hp-bg-cream);
  border-radius: var(--hp-radius-md);
  text-align: center;
}

.slimea-hp .intake-bmi__label {
  font-size: 13px;
  color: var(--hp-muted);
  margin-bottom: 4px;
}

.slimea-hp .intake-bmi__value {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--hp-primary);
}

.slimea-hp .intake-bmi__category {
  font-size: 14px;
  color: var(--hp-text-secondary);
  margin-top: 4px;
}

/* Checkbox */
.slimea-hp .intake-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.slimea-hp .intake-checkbox input {
  width: 20px;
  height: 20px;
  accent-color: var(--hp-primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.slimea-hp .intake-checkbox span {
  font-size: 14px;
  color: var(--hp-text-secondary);
  line-height: 1.5;
}

.slimea-hp .intake-checkbox a {
  color: var(--hp-primary);
  text-decoration: underline;
}

/* Error */
.slimea-hp .intake-error {
  display: none;
  padding: 12px 16px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--hp-radius-sm);
  color: #DC2626;
  font-size: 14px;
  text-align: center;
  margin-bottom: 16px;
}

.slimea-hp .intake-error.visible {
  display: block;
}

/* Navigation */
.slimea-hp .intake-nav {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--hp-border-light);
  background: var(--hp-white);
}

.slimea-hp .intake-nav__back {
  flex: 0 0 auto;
  padding: 16px 24px;
  background: var(--hp-white);
  border: 2px solid var(--hp-border);
  border-radius: var(--hp-radius-full);
  font-family: 'Red Hat Display', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--hp-text-secondary);
  cursor: pointer;
  transition: var(--hp-transition);
}

.slimea-hp .intake-nav__back:hover {
  border-color: var(--hp-text);
  color: var(--hp-text);
}

.slimea-hp .intake-nav__back:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.slimea-hp .intake-nav__next {
  flex: 1;
  padding: 16px 32px;
  background: var(--hp-primary);
  border: none;
  border-radius: var(--hp-radius-full);
  font-family: 'Red Hat Display', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--hp-white);
  cursor: pointer;
  transition: var(--hp-transition);
  box-shadow: var(--hp-shadow-md);
}

.slimea-hp .intake-nav__next:hover {
  background: var(--hp-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--hp-shadow-lg);
}

.slimea-hp .intake-nav__next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Results */
.slimea-hp .intake-result {
  text-align: center;
  padding: 20px 0;
}

.slimea-hp .intake-result__icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--hp-primary-light), var(--hp-primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 40px;
}

.slimea-hp .intake-result__title {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--hp-text);
  margin-bottom: 16px;
}

.slimea-hp .intake-result__summary {
  font-size: 16px;
  color: var(--hp-text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.slimea-hp .intake-result__recommendation {
  padding: 20px;
  background: var(--hp-bg-cream);
  border-radius: var(--hp-radius-lg);
  margin-bottom: 24px;
}

.slimea-hp .intake-result__recommendation-label {
  font-size: 13px;
  color: var(--hp-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.slimea-hp .intake-result__recommendation-pack {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--hp-primary-dark);
}

.slimea-hp .intake-result__trust {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--hp-border-light);
}

.slimea-hp .intake-result__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--hp-muted);
}

.slimea-hp .intake-result__trust-icon {
  font-size: 18px;
}

/* Mobile */
@media (max-width: 640px) {
  .slimea-hp.intake-modal,
  .slimea-hp .intake-modal {
    padding: 0;
  }

  .slimea-hp .intake-modal__container {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .slimea-hp .intake-step__question {
    font-size: 20px;
  }

  .slimea-hp .intake-options--grid {
    grid-template-columns: 1fr;
  }

  .slimea-hp .intake-input-row {
    grid-template-columns: 1fr;
  }

  .slimea-hp .intake-nav {
    flex-direction: column-reverse;
  }

  .slimea-hp .intake-nav__back {
    width: 100%;
  }
}

body.modal-open {
  overflow: hidden;
}
