:root {
  --bg1: #0b0614;
  --bg2: #140a24;
  --violet: #7c3aed;
  --fuchsia: #ec4899;
  --indigo: #6366f1;
  --white: #fff;
  --muted: #cbd5e1;
  --ring: rgba(255, 255, 255, 0.1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Arial;
  line-height: 1.4;
  background: linear-gradient(#0b0614, #140a24 40%, #0b0614);
  color: #fff;
}
html,
body {
  overscroll-behavior: none;
} /* Chrome/Edge/Firefox */
a {
  color: inherit;
  text-decoration: none;
}
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.container.flush {
  padding-left: 0;
  padding-right: 0;
} /* Ajout pour la vidéo full-width */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 16px;
  font-weight: 600;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease);
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: #8b5cf6;
}
.btn-primary:hover {
  background: #7c3aed;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--ring);
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  color: #e5e7eb;
}
.grid {
  display: grid;
  gap: 24px;
}
.card {
  border: 1px solid var(--ring);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  border-radius: 20px;
}
.card .content {
  padding: 24px;
}
/* Espace minimal quand le details est fermé */
#faq details .content {
  padding-top: 16px;
  padding-bottom: 16px;
}

/* Réduction de l'espace entre summary et contenu */
#faq details summary.content {
  padding-bottom: 16px;
}

/* Quand le details est OUVERT → padding bas augmenté */
#faq details[open] .content.muted {
  padding-bottom: 24px; /* espace confortable sous le texte */
  padding-top: 8px; /* petit espace au-dessus du texte */
}
.title-xl {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  margin: 16px 0;
}
.title-lg {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 800;
}
.muted {
  color: #cbd5e1;
}
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 32px;
  min-height: 92vh;
}
.glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mask-image: radial-gradient(60% 40% at 50% 0%, #000 20%, transparent 60%);
}
.glare::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -120px;
  width: 960px;
  height: 520px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(217, 70, 239, 0.3),
    rgba(139, 92, 246, 0.3),
    rgba(99, 102, 241, 0.3)
  );
  filter: blur(40px);
  animation: glow 8s ease-in-out infinite;
}
@keyframes glow {
  0%,
  100% {
    opacity: 0.75;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
  }
}
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(217, 70, 239, 0.6);
  box-shadow: 0 0 10px 2px rgba(217, 70, 239, 0.35);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}
.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.phones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 620px;
  margin: 0 auto;
}
.phone {
  position: relative;
  aspect-ratio: 9/19.5;
  border-radius: 32px;
  background: #111;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--ring);
}
.phone .notch {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 96px;
  height: 24px;
  background: rgba(0, 0, 0, 0.6);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}
.screen {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  height: 100%;
  background: linear-gradient(135deg, #312e81, #4c1d95, #000);
}
.screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ring-iris {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background: conic-gradient(
    from 180deg,
    rgba(217, 70, 239, 0.1),
    transparent 40%,
    rgba(99, 102, 241, 0.1)
  );
  filter: blur(4px);
  animation: spin 14s linear infinite;
  pointer-events: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.pack-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.section {
  padding: 36px 0;
}
.cta {
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(217, 70, 239, 0.3),
    rgba(139, 92, 246, 0.2),
    rgba(99, 102, 241, 0.3)
  );
  z-index: -1;
}
/* Video block */
.video-card {
  position: relative;
  border: 1px solid var(--ring);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
}
.video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  border-radius: 24px;
}
.poster-bg {
  display: none;
}

.video-overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px;
  transition: opacity 0.2s var(--ease);
}
.video-overlay .pill {
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  backdrop-filter: blur(6px);
  padding: 8px 14px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.video-overlay.hidden {
}
.caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #d1d5db;
  font-size: 12px;
  padding: 10px 16px;
}
.exit-btn {
  display: none; /* visible seulement en plein écran */
}

/* Quand .video-wrap est en plein écran → afficher le bouton */
.video-wrap:fullscreen .exit-btn {
  display: inline-flex;
}
.video-wrap:-webkit-full-screen .exit-btn {
  display: inline-flex;
} /* Safari */

/* Cache le bouton Lire en grand en plein écran */
.video-wrap:fullscreen #btn-lightbox {
  display: none;
}
.video-wrap:-webkit-full-screen #btn-lightbox {
  display: none;
} /* Safari */

/* Desktop only: lève le texte sans casser le mobile */
@media (min-width: 1100px) {
  .hero-grid > :first-child {
    transform: translateY(-12vh);
  }
  /* Optionnel : compense un peu les phones à droite si besoin */
  .phones {
    margin-top: 1vh;
  }
}

/* CTA sous la vidéo */
.cta-under-video {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 16px auto 0;
}

/* Option: sur mobile, stack vertical avec full width */
@media (max-width: 540px) {
  .cta-under-video {
    justify-content: center;
  }
  .cta-under-video .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Bouton avec icône */
.btn-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
}

.btn-with-icon .btn-icon {
  height: 24px;
  width: 24px;
  object-fit: contain;
  background: none;
  border: none;
  display: block;
}

/* Section examples : cards with stable height */
#examples-grid .card {
  min-height: 210px;
  display: flex;
}

#examples-grid .card .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
