/* Fitora Landing - Theme officiel */

:root {
  --bg-primary: #0b1220;
  --bg-secondary: #151c2c;
  --bg-card: #1a2336;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-energy: #ff6b4a;
  --success: #22c55e;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #243044;
  --radius: 10px;
  --font: "Inter", system-ui, sans-serif;
  --transition: 0.2s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 107, 74, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(59, 130, 246, 0.08), transparent);
}

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.25;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 520px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

.accent-text {
  color: var(--accent);
}

.accent-energy {
  color: var(--accent-energy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-energy) 0%, #e85a3a 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 107, 74, 0.35);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #ff7d5e 0%, var(--accent-energy) 100%);
  box-shadow: 0 6px 20px rgba(255, 107, 74, 0.45);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.email-form {
  width: 100%;
  max-width: 460px;
}

.email-form__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 540px) {
  .email-form__row--inline {
    flex-direction: row;
  }
  .email-form__row--inline .email-form__input {
    flex: 1;
  }
}

.email-form__input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: var(--font);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.email-form__input::placeholder {
  color: var(--text-muted);
}

.email-form__input:focus {
  border-color: var(--accent-energy);
  box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.15);
}

.email-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  cursor: pointer;
}

.email-form__consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--accent-energy);
  cursor: pointer;
  flex-shrink: 0;
}

.email-form__consent span {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.email-form__reassurance {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

.email-form--left .email-form__reassurance {
  text-align: left;
}

.toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 3.5s forwards;
  pointer-events: auto;
}

.toast--success { border-color: var(--success); color: var(--success); }
.toast--error { border-color: #ef4444; color: #ef4444; }
.toast--info { border-color: var(--accent); color: var(--accent); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 0;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo__img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.logo__text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo__text span {
  color: var(--accent-energy);
}

.header__cta {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.hero {
  padding: 100px 0 60px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

.hero__badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 107, 74, 0.12);
  border: 1px solid rgba(255, 107, 74, 0.35);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--accent-energy);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 480px;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 260px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 107, 74, 0.25);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 8px 32px rgba(255, 107, 74, 0.1);
}

@media (min-width: 768px) {
  .phone-mockup { width: 280px; }
}

.phone-mockup__screen {
  background: var(--bg-secondary);
  border-radius: 14px;
  overflow: hidden;
}

.phone-mockup__content {
  padding: 20px 16px;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.app-header__greeting { font-size: 0.75rem; color: var(--text-muted); }
.app-header__name { font-size: 1rem; font-weight: 600; }

.app-streak {
  padding: 4px 10px;
  background: rgba(34, 197, 94, 0.12);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--success);
  font-weight: 600;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
}

.app-card--highlight {
  border-color: rgba(255, 107, 74, 0.45);
  background: rgba(255, 107, 74, 0.08);
}

.app-card__label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.app-card__title { font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; }
.app-card__meta { font-size: 0.75rem; color: var(--text-secondary); }

.app-progress { margin-top: 16px; }
.app-progress__bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-bottom: 6px; }
.app-progress__fill { height: 100%; width: 72%; background: linear-gradient(90deg, var(--accent), var(--accent-energy)); border-radius: 2px; }
.app-progress__text { font-size: 0.75rem; color: var(--text-muted); }

.app-chat { margin-top: 10px; }
.app-chat__bubble {
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.section { padding: 60px 0; }
.section--alt { background: var(--bg-secondary); }
.section--locked { display: none; }

.problem-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .problem-grid { grid-template-columns: repeat(3, 1fr); } }

.problem-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.problem-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 74, 0.1);
  border: 1px solid rgba(255, 107, 74, 0.2);
  border-radius: var(--radius);
  margin-bottom: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-energy);
}

.problem-card__title { font-size: 1rem; margin-bottom: 6px; }
.problem-card__text { font-size: 0.875rem; color: var(--text-secondary); }

.features-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 640px) {
  .features-list {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-item {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .feature-item:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .feature-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-item__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  line-height: 1.3;
}

.feature-item__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  padding-left: 17px;
}

.steps { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 700px; margin: 0 auto; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step { text-align: center; }
.step__number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-weight: 700;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 50%;
}

.step__title { font-size: 1rem; margin-bottom: 6px; }
.step__text { font-size: 0.875rem; color: var(--text-secondary); }

.social-proof { text-align: center; }
.counter {
  display: inline-block;
  padding: 32px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.counter__number {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.counter__label { margin-top: 6px; font-size: 0.9375rem; color: var(--text-secondary); }

.testimonials-placeholder {
  margin-top: 32px;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.faq-list { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item__question {
  padding: 16px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item__question::-webkit-details-marker { display: none; }
.faq-item__question::after { content: "+"; font-size: 1.25rem; font-weight: 400; color: var(--text-muted); flex-shrink: 0; }
.faq-item[open] .faq-item__question::after { content: "-"; }
.faq-item__answer { padding: 0 20px 16px; font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

.final-cta { text-align: center; padding: 60px 0; }
.contact-box {
  max-width: 520px;
  margin: 0 auto;
  padding: 36px 28px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-box .section-title { margin-bottom: 10px; }
.contact-box__text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.contact-box__email {
  display: inline-block;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.contact-box__email:hover {
  text-decoration: underline;
}

.final-cta__box {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 24px;
  background: var(--bg-card);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.final-cta__title { font-size: clamp(1.25rem, 3vw, 1.75rem); margin-bottom: 8px; }
.final-cta__subtitle { color: var(--text-secondary); margin-bottom: 24px; font-size: 0.9375rem; }
.final-cta .email-form { margin: 0 auto; }

.footer {
  padding: 40px 0 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.footer__grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr auto; align-items: start; } }
.footer__brand p { margin-top: 8px; font-size: 0.875rem; color: var(--text-muted); max-width: 260px; }
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a { color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; }
.footer__links a:hover { color: var(--accent); }
.footer__social { display: flex; gap: 12px; margin-top: 16px; }
.footer__social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
}

.footer__social a:hover { color: var(--accent); border-color: var(--accent); }
.footer__social svg { width: 16px; height: 16px; }
.footer__bottom { padding-top: 20px; border-top: 1px solid var(--border); text-align: center; font-size: 0.8125rem; color: var(--text-muted); }

.fade-in { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.privacy-page { padding: 100px 0 60px; min-height: 100vh; }
.privacy-content { max-width: 640px; margin: 0 auto; }
.privacy-content h1 { font-size: 1.75rem; margin-bottom: 8px; }
.privacy-content .updated { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 32px; }
.privacy-content h2 { font-size: 1.125rem; margin: 28px 0 10px; }
.privacy-content p, .privacy-content li { color: var(--text-secondary); font-size: 0.9375rem; margin-bottom: 10px; }
.privacy-content ul { padding-left: 20px; margin-bottom: 14px; }
.privacy-content a { color: var(--accent); }
.back-link { display: inline-block; color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; margin-bottom: 24px; }
.back-link:hover { color: var(--accent); }

.btn-loading { position: relative; color: transparent !important; }
.btn-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
