@import url("./variables.css");

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

.container {
  width: min(92%, var(--container-width));
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.navbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar > a {
  display: inline-flex;
  text-decoration: none;
}

.logo {
  width: 70%;
  max-width: 150px;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
}

.nav-links a.btn-primary {
  color: white;
}

.hero {
  position: relative;
  background: var(--color-primary);
  padding: 156px 0 0;
}

.hero-wave {
  margin-top: 60px;
  line-height: 0;
  overflow: hidden;
  border-bottom: none;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 90px;
  /* overflow: visible; */
}

.hero-grid,
.cards-grid,
.footer-grid {
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: 1fr;
}

.hero-image {
  position: absolute;
  right: 5%;
  top: 0;
  bottom: 0;
  width: 50%;
  display: flex;
  align-items: flex-end;
  z-index: 99;
  pointer-events: none;
}

.hero-image img {
  width: 100%;
  max-height: calc(100% + 40px);
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
}

@media (max-width: 768px) {
  .hero-image {
    display: none;
  }
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.15;
  color: white;
  margin-bottom: 18px;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 650px;
  font-size: 1.05rem;
}

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

.hero-features {
  display: flex;
  align-items: flex-start;

  flex-wrap: wrap;
  gap: 0;
  margin-top: 32px;
  /* border: 2px solid red; */
}

.hero-feature-item {
  display: flex;
  flex-direction: column;
  /* align-items: flex-start; */
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  color: white;
  font-size: 0.82rem;
  max-width: 190px;
  /* border: 2px solid blue; */
}

.hero-feature-item:first-child {
  padding-left: 0;
}

.hero-feature-icon {
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  border-radius: 100%;
  /* border-radius: 10px; */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.hero-feature-icon i {
  font-size: 1.2rem;
  color: white;
}

.hero-feature-item strong {
  font-size: 0.9rem;
  color: white;
}

.hero-feature-item span {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.3;
  text-align: center;
}

.feature-sep {
  width: 1px;
  /* height: 90px; */
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.card,
.cta-box {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card {
  background: white;
  border: 1px solid var(--color-border);
  padding: 24px;
}

.brand-strip {
  background: linear-gradient(to bottom, #ff5722 0%, #ff5722 100%);
  padding: 64px 0;
}

.brand-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 40px;
  flex-wrap: wrap;
}

.brand-strip-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  height: 48px;
  filter: brightness(0) invert(1);
}

.brand-strip-left p {
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
}

.brand-strip-right {
  display: flex;
  align-items: center;
  gap: 16px;
  color: white;
}

.brand-strip-right i {
  font-size: 2.2rem;
}

.brand-strip-right strong {
  display: block;
  font-size: 1.1rem;
}

.brand-strip-right p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-weight: bold;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: white;
}

.btn-secondary {
  background: var(--color-primary);
  color: white;
}

.cards-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card h3 {
  color: var(--color-primary);
  margin-bottom: 12px;
}

.alt-section {
  background: var(--color-bg-soft);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px; /* 1px c’est trop serré visuellement */
}

.screenshot-grid img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease-in-out;
}

.screenshot-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.video-wrapper {
  display: flex;
  justify-content: center;
}

.video-wrapper video {
  width: 100%;
  max-width: 860px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  display: block;
}

/* Carousel */
.carousel-wrapper {
  margin-top: 48px;
}

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

.carousel-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  /* background-color: red; */
  justify-content: center;
}

.carousel-slide img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: block;
}

.carousel-caption {
  font-size: 0.95rem;
  color: var(--color-text-light);
  font-weight: 500;
  text-align: center;
}

.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--transition),
    transform var(--transition);
  box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
  background: var(--color-accent-hover);
  transform: scale(1.08);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  transition:
    background var(--transition),
    transform var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background: var(--color-accent);
  transform: scale(1.3);
}

@media (max-width: 600px) {
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
}

.cta-box {
  background: var(--color-primary);
  color: white;
  padding: 40px;
}

.site-footer {
  background: var(--color-primary);
  color: white;
  padding: 40px 0;
}

.footer-grid {
  grid-template-columns: 2fr 1fr 1fr;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

@media (max-width: 1024px) {
  .cards-grid,
  .screenshot-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
}
