/* ===== VARIABLES ===== */
:root {
  --bg: #f9fafb;
  --fg: #0f172a;
  --muted: #64748b;
  --card: #ffffff;
  --stroke: #e2e8f0;
  --shadow: 0 16px 50px rgba(2, 6, 23, 0.06);
  --primary: #111827;
  --primary-ink: #fff;
  --accent1: #3b82f6;
  --accent2: #9333ea;
}

/* ===== BASE / RESET ===== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  display: flex;
  flex-direction: column;
  min-height: 100vh;

  /* Important: �vite que le footer fixe cache le contenu */
  padding-bottom: 110px; /* ajuste � la hauteur r�elle du footer */
}

main { flex: 1; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  margin: 0 0 10px;
  line-height: 1.15;
}

p {
  margin: 0 0 12px;
  color: var(--muted);
}

a { color: inherit; text-decoration: none; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: filter 0.15s ease, transform 0.05s ease;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.12);
}

.btn--ghost {
  border-color: var(--fg);
  color: var(--fg);
  background: transparent;
}

.btn--sm {
  padding: 8px 12px;
  font-weight: 700;
}

.btn--accent {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color: #fff;
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.24);
}

/* ===== NAVBAR ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(249, 250, 251, 0.7);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.nav__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 1.1rem;
}

.logo span {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav__links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.burger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
  z-index: 21;
}

.burger span {
  width: 25px;
  height: 3px;
  background: var(--fg);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger.active span { height: 7px; }
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(10px, 10px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

@media (max-width: 560px) {
  .burger { display: flex; }

  .nav__links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(249, 250, 251, 0.95);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    flex-direction: column;
    gap: 0;
    padding: 16px 24px;

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;

    display: none;
  }

  .nav__links.active {
    max-height: 300px;
    display: block;
  }

  .nav__links a {
    display: block;
    padding: 10px;
    width: fit-content;
  }
}

/* ===== FOOTER (unique) ===== */
.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  background: #0f172a;
  color: #f1f5f9;
  border-top: 1px solid #1e293b;
  box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.15);

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  font-size: 0.9rem;

  z-index: 100;

  /* cach� par d�faut */
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.footer.footer--visible {
  transform: translateY(0);
  opacity: 1;
}

.footer p {
  margin: 0;
  color: #cbd5e1;
  font-weight: 500;
}

.footer__links {
  display: flex;
  gap: 16px;
}

.footer__links a {
  color: #93c5fd;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer__links a:hover { color: #fff; }

@media (max-width: 700px) {
  .footer {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 14px;
  }
  .footer__links { justify-content: center; }
}

/* ===== SECTIONS ===== */
.section { padding: 56px 0; }

.section.dark {
  background: #0b1020;
  color: #cfe3ff;
}

.section.dark p { color: #a9c1ff; }

.section__title {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

.section__intro {
  margin-bottom: 18px;
  max-width: 64ch;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 86px 0 40px;
  isolation: isolate;
  overflow-x: hidden;
}

.hero__wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}

.hero__text { min-width: 0; }

.hero__sub {
  font-size: 1.12rem;
  max-width: 62ch;
}

.hero__trust {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero__visual {
  position: relative;
  min-height: 280px;
}

/* ===== VISUAL / MOCKUP ===== */
.blob {
  position: absolute;
  inset: -25% -10% -40% auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 30% 30%, #93c5fd 0%, #6366f1 55%, transparent 65%);
  filter: blur(42px) saturate(120%);
  opacity: 0.22;
  border-radius: 50%;
  transform: translateZ(0);
  pointer-events: none;
}

.mockup {
  position: relative;
  margin-left: auto;
  width: min(480px, 100%);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 16px 50px rgba(2, 6, 23, 0.08);
  overflow: hidden;
  transform: translateZ(0);
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.mockup__bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #fbfdff;
}

.mockup__bar div {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
}

.mockup__content {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.stat {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 10px 12px;
  transition: transform 0.08s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.06);
  border-color: #e2e8f0;
}

.stat__label {
  font-size: 0.9rem;
  color: #64748b;
}

.stat__value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* ===== PILLS ===== */
.pill {
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== GRIDS / CARDS ===== */
.grid { display: grid; gap: 16px; }

.grid--features { grid-template-columns: 1.2fr 1fr 1fr; }
.grid--steps { grid-template-columns: repeat(4, 1fr); }

.card {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 16px;
  box-shadow: 0 16px 50px rgba(2, 6, 23, 0.06);
  transition: transform 0.08s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.08);
  border-color: #dbe4f0;
}

.section.dark .card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

/* ===== LEAD PRODUCT / VIDEO ===== */
.product-spotlight {
  position: relative;
  scroll-margin-top: 72px;
  background:
    radial-gradient(650px 320px at 8% 15%, rgba(59, 130, 246, 0.12), transparent 65%),
    radial-gradient(520px 300px at 92% 90%, rgba(147, 51, 234, 0.11), transparent 68%),
    #f8faff;
}

.product-spotlight__shell {
  padding: 18px;
  border: 1px solid #dbe4ff;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 70px rgba(30, 41, 59, 0.1);
}

.product-spotlight__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 32px;
  align-items: center;
}

.product-spotlight__content {
  padding: 18px 8px 18px 18px;
}

.product-spotlight__eyebrow,
.card__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  color: #4f46e5;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.product-spotlight__lead {
  max-width: 58ch;
  font-size: 1.05rem;
  line-height: 1.65;
}

.trial-offer {
  display: grid;
  gap: 3px;
  margin: 20px 0 0;
  padding: 14px 16px;
  border: 1px solid #c7d2fe;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef2ff, #faf5ff);
  color: #312e81;
}

.trial-offer__label {
  color: #4f46e5;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trial-offer strong {
  font-size: 1.2rem;
  line-height: 1.25;
}

.trial-offer span:last-child {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.45;
}

.product-proof {
  display: grid;
  gap: 10px;
  margin: 22px 0 24px;
  padding: 0;
  list-style: none;
}

.product-proof li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: #334155;
  font-weight: 650;
}

.product-proof li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border: 3px solid #eef2ff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  box-shadow: 0 0 0 1px #c7d2fe;
}

.product-video {
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  background: #0b1020;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.22);
}

.product-video__frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #111827;
}

.product-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.product-video__caption {
  margin: 10px 8px 4px;
  color: #cbd5e1;
  font-size: 0.86rem;
  line-height: 1.45;
}

.card--featured {
  border-color: #c7d2fe;
  background: linear-gradient(145deg, #ffffff, #f5f7ff);
  box-shadow: 0 18px 55px rgba(79, 70, 229, 0.12);
}

.card--featured h3 { font-size: 1.25rem; }

.card__eyebrow {
  margin-bottom: 8px;
  font-size: 0.7rem;
}

.card__link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-top: 8px;
  color: #4f46e5;
  font-weight: 800;
}

.card__link:hover { color: #6d28d9; }

/* ===== PROCESS / STEPS ===== */
.dark-gradient {
  background: radial-gradient(800px 400px at 20% -5%, rgba(99, 102, 241, 0.16), transparent 60%), #0b1020;
  color: #cfe3ff;
}

.step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 16px;
  transition: transform 0.1s ease, border-color 0.2s ease, background 0.2s ease;
}

.step:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.step__num {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color: #fff;
  font-weight: 800;
  margin-bottom: 8px;
}

.glass { backdrop-filter: blur(8px); }

/* ===== LOGOS ===== */
.logos {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
  margin-top: 24px;
}

.logos img {
  max-height: 96px;
  max-width: 120px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.logos a {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 800;
  color: #464646;
  transition: color 0.2s ease;
}

.logos a:hover { color: #6c6c6c; }

/* ===== UTILITY ===== */
.gradient {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .hero__wrap { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
}

@media (max-width: 900px) {
  .product-spotlight__layout { grid-template-columns: 1fr; }
  .grid--features { grid-template-columns: repeat(2, 1fr); }
  .card--featured { grid-column: 1 / -1; }
  .grid--steps { grid-template-columns: repeat(2, 1fr); }
  .mockup { width: 100%; }
}

@media (max-width: 560px) {
  .grid--features,
  .grid--steps { grid-template-columns: 1fr; }

  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .product-spotlight__shell { padding: 10px; border-radius: 18px; }
  .product-spotlight__content { padding: 16px 10px 12px; }
  .product-spotlight__layout { gap: 14px; }
  .card--featured { grid-column: auto; }

  .mockup { width: 100%; }
  .logos img { max-height: 96px; }
}

/* ===== CONTACT PAGE ===== */
.contact__container {
  max-width: 600px;
  margin: 0 auto;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__label {
  font-weight: 600;
  color: var(--fg);
  font-size: 0.95rem;
}

.form__input,
.form__textarea {
  padding: 12px 14px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--fg);
  background: var(--card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--accent1);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__submit {
  padding: 14px 20px;
  font-size: 1rem;
}

.contact__info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.contact__info-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 16px 50px rgba(2, 6, 23, 0.06);
}

.contact__info-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--fg);
}

.contact__info-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.contact__info-card a {
  color: var(--accent1);
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact__info-card a:hover { color: var(--accent2); }

@media (max-width: 560px) {
  .contact__info { grid-template-columns: 1fr; }
}