/* ═══════════════════════════════════════════
   HITOKI — pricing.css
   Requiert shared.css chargé avant.
   ═══════════════════════════════════════════ */

/* ── MAIN ── */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 120px 5% 80px;
}

/* ── HERO ── */
.pricing-hero {
  text-align: center;
  margin-bottom: 56px;
  animation: fadeUp 0.6s ease both;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--peach-mid);
  border: 1px solid var(--peach-dark);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 13px; font-weight: 600;
  color: var(--orange-dark);
  margin-bottom: 24px;
}
.hero-badge span {
  width: 7px; height: 7px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

.hero-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--night);
  margin-bottom: 16px;
  line-height: 1.1;
}
.hero-title em {
  font-style: normal;
  color: var(--orange);
}
.hero-sub {
  font-size: 16px; color: var(--muted);
  line-height: 1.7; max-width: 520px;
  margin: 0 auto;
}

/* ── PILLIERS HERO ── */
.hero-pillars {
  display: flex;
  align-items: stretch;   
  justify-content: center;
  gap: 24px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.pillar {
  display: flex; flex-direction: column; align-items: center;
  background: white;
  border-radius: 20px;
  padding: 20px 28px;
  min-width: 260px;
  flex: 1;
  max-width: 420px;
  gap: 4px;
  border: 1.5px solid var(--peach-dark);
  box-shadow: 0 4px 16px rgba(30, 26, 24, 0.06);
  text-align: center;
}
.pillar-icon {
  font-size: 28px;
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.pillar:first-child {
  border-color: var(--amber);
  box-shadow: 0 6px 24px rgba(240, 180, 41, 0.2);
}
.pillar:last-child {
  border-color: var(--green);
  box-shadow: 0 6px 24px rgba(61, 154, 122, 0.2);
}
.pillar:first-child .pillar-icon { background: rgba(240, 180, 41, 0.12); }
.pillar:last-child  .pillar-icon { background: rgba(61, 154, 122, 0.12); }
.pillar:first-child .pillar-name { color: var(--amber-dark); }
.pillar:last-child  .pillar-name { color: var(--green-dark); }

.pillar-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--night);
}
.pillar-meaning {
  font-size: 11px; color: var(--muted);
  font-style: italic; letter-spacing: 0.04em;
}
.pillar-desc {
  font-size: 13px; color: var(--night-soft);
  text-align: center; margin-top: 6px;
  line-height: 1.4;
}

/* Liste checks dans le pilier */
.pillar-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 16px;
  border-top: 1px solid var(--peach-dark);
  padding-top: 16px;
  width: 100%;
  text-align: left;
}
.pillar-list li {
  font-size: 13px; color: var(--night-soft);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}
.pillar-list li::before {
  content: '✓';
  position: absolute; left: 0;
  font-weight: 700;
  font-size: 12px;
}
.pillar:first-child .pillar-list li::before { color: var(--amber-dark); }
.pillar:last-child  .pillar-list li::before { color: var(--green-dark); }

.pillar-sep {
  font-size: 28px; font-weight: 700;
  color: var(--peach-dark);
  align-self: center;
  flex-shrink: 0;
}

/* ── TOGGLE MENSUEL / ANNUEL ── */
.pricing-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.toggle-btn {
  border: 1px solid var(--peach-dark);
  background: white;
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  color: var(--night);
  -webkit-appearance: none;
  appearance: none;
  font-family: 'Inter', sans-serif;
}
.toggle-btn.active {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}
.toggle-badge {
  font-size: 16px; font-weight: 700;
  margin-left: 6px;
  color: var(--orange);
}
.toggle-btn.active .toggle-badge { color: white; }

.pricing-toggle-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
}
.pricing-toggle {
  grid-column: 2;
  justify-self: center;
}

/* ── PRIX ── */
.price-yearly { display: none; }
.pricing-compare.pricing-yearly .price-monthly { display: none; }
.pricing-compare.pricing-yearly .price-yearly  { display: inline; }

.price-sub-inline {
  font-size: 14px; font-weight: 400;
  color: var(--muted);
  margin-left: 10px;
}

/* ── COMPARATIF ── */
.pricing-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
  animation: fadeUp 0.6s ease 0.1s both;
}

/* ── PLAN CARD ── */
.plan-card {
  background: white;
  border: 1px solid var(--peach-dark);
  border-radius: 24px;
  padding: 32px 28px;
  position: relative;
}
.plan-free { opacity: 0.85; }
.plan-pro {
  border: 2px solid var(--orange);
  box-shadow: 0 8px 32px rgba(244, 132, 95, 0.15);
}

.plan-badge-top {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: white;
  font-size: 12px; font-weight: 700;
  padding: 4px 16px;
  border-radius: 99px;
  white-space: nowrap;
}

.plan-header { margin-bottom: 0; min-height: 125px; }

.plan-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px; font-weight: 600;
  color: var(--night); margin-bottom: 8px;
}
.plan-name strong { color: var(--orange); }

.plan-price {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 42px; font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--night);
  line-height: 1;
  margin-bottom: 6px;
}
.plan-price > span {
  font-size: 16px; font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 4px;
}
.plan-price .price-monthly,
.plan-price .price-yearly {
  font-size: inherit; font-weight: inherit;
  color: inherit; letter-spacing: inherit;
}
.plan-price .price-monthly > span,
.plan-price .price-yearly > span {
  font-size: 16px; font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 4px;
}

.plan-desc { font-size: 13px; color: var(--muted); }

.plan-trial {
  display: inline-block;
  background: var(--peach-mid);
  border: 1px solid var(--peach-dark);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px; font-weight: 600;
  color: var(--orange-dark);
  margin-top: 8px;
  margin-bottom: 22px;
}

/* ── FEATURES ── */
.plan-features {
  list-style: none;
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 32px;
}
.plan-features li { font-size: 14px; line-height: 1.5; }
.feature-yes { color: var(--night-soft); }
.feature-yes::first-letter { color: var(--green); }
.feature-no { color: var(--muted); text-decoration: line-through; }

/* ── CTA ── */
.plan-cta-primary {
  width: 100%;
  padding: 16px;
  border: none; border-radius: 12px;
  background: var(--orange);
  color: white;
  font-size: 15px; font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.plan-cta-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.plan-cta-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.plan-cta-note { text-align: center; font-size: 12px; color: var(--muted); }

.plan-cta-secondary {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 2px solid var(--peach-dark);
  background: none;
  color: var(--muted);
  font-size: 14px; font-weight: 600;
  text-align: center;
}

/* Toggle mobile dans la card : caché sur desktop */
.plan-toggle { display: none; }

/* ── REASSURANCE ── */
.pricing-reassurance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 56px;
  animation: fadeUp 0.6s ease 0.2s both;
}
.reassurance-item {
  background: white;
  border: 1px solid var(--peach-dark);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
}
.reassurance-icon { font-size: 24px; margin-bottom: 8px; }
.reassurance-text { font-size: 13px; color: var(--night-soft); line-height: 1.5; }

/* ── FAQ ── */
.pricing-faq { animation: fadeUp 0.6s ease 0.3s both; }

.faq-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 24px; font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--night);
  margin-bottom: 24px;
}
.faq-item { border-bottom: 1px solid var(--peach-dark); }
.faq-question {
  width: 100%;
  background: none; border: none;
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 600;
  color: var(--night);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  text-align: left;
  gap: 16px;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--orange); }
.faq-arrow { font-size: 16px; color: var(--muted); flex-shrink: 0; transition: color 0.2s; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  font-size: 14px; color: var(--muted);
  line-height: 1.7;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer.open { max-height: 200px; padding-bottom: 20px; }

/* ── POPUP TRIAL ── */
.trial-popup-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(30, 26, 24, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeInOverlay 0.3s ease both;
}
.trial-popup {
  background: white; border-radius: 28px;
  padding: 40px 36px; max-width: 400px; width: 100%;
  text-align: center;
  animation: popUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.trial-popup-emoji  { font-size: 52px; margin-bottom: 16px; }
.trial-popup-title  {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 24px; font-weight: 700; color: var(--night);
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.trial-popup-text   { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.trial-popup-count  {
  font-size: 13px; font-weight: 600; color: var(--orange);
  background: var(--peach-bg); border-radius: 99px; padding: 8px 20px; display: inline-block;
}

/* ── EMAIL VERIFY NOTICE ── */
.email-verify-notice {
  background: var(--peach-mid);
  border: 1px solid var(--peach-dark);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--night-soft);
  line-height: 1.6;
}
.email-verify-notice p { margin-bottom: 12px; }
.btn-resend {
  width: 100%;
  padding: 12px;
  border: none; border-radius: 10px;
  background: var(--orange);
  color: white;
  font-size: 14px; font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}
.btn-resend:hover { background: var(--orange-dark); }

/* ── ANIMATIONS LOCALES ── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}
@keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }
@keyframes popUp {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  body { display: block; }

  .hero-pillars {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .pillar {
    min-width: 0;
    max-width: none;
    width: 100%;
    border-radius: 20px;
  }

  .pillar-sep {
    text-align: center;
    padding: 12px 0;
  }

  .pricing-reassurance { grid-template-columns: repeat(2, 1fr); }

  .pricing-compare {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin: 0 -5%;
    margin-left: 0;
    padding-left: 12%;
    padding-right: 5%;
    padding-bottom: 24px;
    padding-top: 20px;
    -webkit-overflow-scrolling: touch;
  }

  .plan-badge-top { top: -12px; }

  .plan-pro  { order: 1; }
  .plan-free { order: 2; }

  .plan-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .plan-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    margin-top: 8px;
  }

  .pricing-toggle-wrapper { display: none; }
}