/* Image fixe sur toute la page */
.page-body > .section-content.home.active {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.section-content.home .background-image {
  position: fixed;
  inset: 0;
  background-image: var(--xfor-hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

.section-content.home .background-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      color-mix(in srgb, var(--color-text-strong) 88%, transparent),
      color-mix(in srgb, var(--color-primary) 58%, transparent));
  z-index: -1;
}
.section-content.home .sidebar-content .topbar.scrolled {
  opacity: 1;
  background: linear-gradient(120deg, var(--color-text-strong), var(--color-primary-hover));
  backdrop-filter: none;
}

/* Hero */
.section-content.home .hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 8% 90px;
  color: white;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  width: auto;
  margin: 0;
}

.section-content.home .hero-content {
  max-width: 780px;
}

.section-content.home h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  margin: 0 0 24px;
  letter-spacing: -2px;
}

.section-content.home .hero p {
  font-size: 21px;
  line-height: 1.6;
  color: var(--color-border-soft);
}

/* Sections */
.section-content.home section:not(.hero) {
  margin: 50px auto;
  padding: 60px;
  width: min(1180px, calc(100% - 32px));
  background: var(--color-surface);
  border-radius: 28px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.section-content.home section h2 {
  margin: 0 0 16px;
  color: var(--color-text-strong);
  font-size: 38px;
}

.section-content.home section p {
  font-size: 18px;
  line-height: 1.7;
}

.section-content.home .steps,
.section-content.home .demo-grid,
.section-content.home .security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.section-content.home .card {
  background: white;
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.section-content.home .demo-grid .card {
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.section-content.home .demo-grid .card:hover,
.section-content.home .demo-grid .card:focus-visible {
  background: color-mix(in srgb, var(--color-surface) 90%, transparent);
  border-color: color-mix(in srgb, var(--color-primary) 28%, transparent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.section-content.home .demo-grid .card:active {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.section-content.home .number {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--color-selection);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  margin-bottom: 16px;
}

.section-content.home .card h3 {
  color: var(--color-text-strong);
  margin: 0 0 10px;
}

.section-content.home #methode .steps .home-step-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-content.home #methode .steps .home-step-label {
  min-width: 0;
}

.section-content.home #methode .steps .home-step-title .number {
  flex: 0 0 42px;
  margin-bottom: 0;
}

.section-content.home .cta {
  text-align: center;
  color: white;
  background: linear-gradient(135deg,
      color-mix(in srgb, var(--color-primary) 92%, transparent),
      color-mix(in srgb, var(--color-text-strong) 92%, transparent));
}

.section-content.home .cta h2 {
  color: white;
}

.section-content.home .cta p {
  color: var(--color-selection);
}

.section-content.home .footer {
  margin-top: 80px;
  background: color-mix(in srgb, var(--color-text-strong) 95%, transparent);
  color: var(--color-border);
  backdrop-filter: blur(10px);
}

.section-content.home .footer-grid {
  max-width: 1200px;
  margin: auto;
  padding: 60px 30px;

  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
}

.section-content.home .footer h3,
.section-content.home .footer h4 {
  color: white;
}

.section-content.home .footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.section-content.home .footer li {
  margin-bottom: 12px;
}

.section-content.home .footer a {
  color: var(--color-border);
  text-decoration: none;
}

.section-content.home .footer a:hover {
  color: white;
}

.section-content.home .footer-bottom {
  border-top: 1px solid color-mix(in srgb, var(--color-surface) 10%, transparent);
  padding: 25px;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-subtle);
}

.section-content.home .footer-bottom p {
  margin: 8px 0;
}

@media(max-width:768px) {
  .section-content.home .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-content.home .background-image::after {
    background: color-mix(in srgb, var(--color-text-strong) 92%, transparent);
  }

  .section-content.home .background-image {
    background-position: center;
    filter: blur(2px);
    transform: scale(1.05);
  }


  .section-content.home .sidebar-content .home-demos-button {
    display: none;
  }



  .section-content.home .hero {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-content.home .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .section-content.home .hero .nav-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .section-content.home .hero .nav-actions .btn {
    width: min(100%, 320px);
    min-height: 48px;
    padding: 12px 16px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }

  .section-content.home h1 {
    font-size: clamp(30px, 9vw, 42px);
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .section-content.home section:not(.hero) {
    width: calc(100% - 24px);
    max-width: 100%;
    padding: 24px 16px;
    margin: 20px 12px;
  }

  .section-content.home section h2 {
    font-size: 28px;
  }

  .section-content.home section p {
    font-size: 15px;
  }

  .section-content.home .steps,
  .section-content.home .demo-grid,
  .section-content.home .security-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
  }

  .section-content.home .card {
    display: block;
    max-width: 100%;
    overflow: hidden;
    padding: 16px;
    border-radius: 14px;
  }

  .section-content.home .card h3 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .section-content.home .card p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
  }

  .section-content.home .number {
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
    font-size: 14px;
  }

  .section-content.home #methode .steps .home-step-title .number {
    flex: 0 0 32px;
    margin-bottom: 0;
  }

}

@media(max-width:760px) {
  .section-content.home .hero {
    padding-top: 190px;
    padding-bottom: 70px;
  }
}
@media (max-width: 767px) {
  .section-content.home .hero {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
  }
  .section-content.home { overscroll-behavior: none; }
}
