/**
 * STOW — Landing page (Full Dark Mode)
 * Styles personnalisés — thème sombre, dense, premium
 */

/* Base */
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter,
    "Helvetica Neue", sans-serif;
  background: #0a0a0a;
  color: #fafafa;
}

/* Accessibilité — lien d’évitement (visible au focus clavier) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0.75rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #f97316 0%, #14b8a6 100%);
  color: #fff;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0.75rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Design system */
.gradient-text {
  background: linear-gradient(90deg, #f97316 0%, #14b8a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-bg {
  background: linear-gradient(135deg, #f97316 0%, #14b8a6 100%);
}

.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #f97316, #14b8a6);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Layout — espacements divisés par 2 (navigation dense) */
.container-page {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .container-page {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 1024px) {
  .container-page {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

.section-padding {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.section-title {
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* Hero */
.hero-pattern {
  background-image:
    radial-gradient(
      ellipse 70% 40% at 50% 0%,
      rgba(249, 115, 22, 0.15) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 50% 30% at 100% 50%,
      rgba(20, 184, 166, 0.1) 0%,
      transparent 50%
    );
}

/* Cartes — glassmorphism, glow diffus au survol */
.card-dark {
  background: rgba(23, 23, 23, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.card-dark:hover {
  transform: translateY(-2px);
  background: rgba(23, 23, 23, 0.8);
  box-shadow:
    0 0 60px rgba(249, 115, 22, 0.08),
    0 0 100px rgba(20, 184, 166, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.card-hover {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 40px rgba(249, 115, 22, 0.06),
    0 0 80px rgba(20, 184, 166, 0.05);
}

/* Buttons — glow orange/teal */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #f97316 0%, #14b8a6 100%);
  color: white;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 1.25rem;
  box-shadow:
    0 0 40px rgba(249, 115, 22, 0.25),
    0 0 60px rgba(20, 184, 166, 0.15);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow:
    0 0 50px rgba(249, 115, 22, 0.3),
    0 0 70px rgba(20, 184, 166, 0.2);
}

.btn-primary:active {
  transform: translateY(0);
}

.link-support {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: color 0.2s ease;
}

.link-support:hover {
  color: #fff;
}

/* Hero wave — reste dark */
.hero-wave {
  position: relative;
}

/* Lueur douce derrière l’icône Hero (orange + teal, 60px) */
.hero-icon {
  box-shadow:
    0 0 60px rgba(249, 115, 22, 0.18),
    0 0 60px rgba(20, 184, 166, 0.14);
}

.hero-wave::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4rem;
  background: #0a0a0a;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: scaleX(1.2);
  transform-origin: bottom center;
}

/* Intro — aéré, typo grande, phrase accroche en gradient */
.intro-hero {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.intro-hero .intro-lead {
  font-size: 1.5rem;
  line-height: 1.5;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .intro-hero .intro-lead {
    font-size: 1.75rem;
  }
}

.intro-hero .intro-punch {
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 600;
  background: linear-gradient(90deg, #f97316 0%, #14b8a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Showcase — Desktop: galerie + float | Mobile: slider horizontal scroll-snap */
.screens-slider.screens-stage {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  padding: 1rem 0 1.5rem;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.screens-slider.screens-stage::-webkit-scrollbar {
  display: none;
}

.screens-slider .phone-slot {
  scroll-snap-align: center;
  scroll-snap-stop: always;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .screens-slider.screens-stage {
    overflow: visible;
    scroll-snap-type: none;
    justify-content: center;
    padding: 1.5rem 0;
    gap: 1rem;
  }
  .screens-slider .phone-slot {
    scroll-snap-align: none;
  }
}

.screens-stage::before {
  content: "";
  position: absolute;
  inset: -1rem -1rem 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 50%,
    rgba(249, 115, 22, 0.08) 0%,
    rgba(20, 184, 166, 0.06) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.phone-frame {
  border-radius: 2.25rem;
  overflow: hidden;
  border: 10px solid #27272a;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

.phone-frame:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 30px 60px -12px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(249, 115, 22, 0.1),
    0 0 60px rgba(20, 184, 166, 0.08);
}

/* Rendu le plus net sur Retina — images haute résolution dans les cadres téléphone */
.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Safari/iOS : netteté optimale au downscale */
  image-rendering: -webkit-optimize-contrast;
  /* GPU : évite le flou d’anti-aliasing pendant les animations */
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Animation flottement Desktop — décalée par téléphone (sur le slot) */
@media (min-width: 768px) {
  .phone-slot.phone-float {
    animation: float 4s ease-in-out infinite;
  }
  .phone-slot.phone-float:nth-child(1) {
    animation-delay: 0s;
  }
  .phone-slot.phone-float:nth-child(2) {
    animation-delay: 0.4s;
  }
  .phone-slot.phone-float:nth-child(3) {
    animation-delay: 0.2s;
  }
  .phone-slot.phone-float:nth-child(4) {
    animation-delay: 0.5s;
  }
  .phone-slot.phone-float:nth-child(5) {
    animation-delay: 0.3s;
  }
  /* Au survol d’un iPhone : le float s’arrête en douceur (pause) pour laisser la place à l’effet de perspective */
  .screens-stage:has(.phone-slot:hover) .phone-slot.phone-float {
    animation-play-state: paused;
  }
}

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

/* Côtés : plus petits, inclinés vers le centre, opacité 80% */
.phone-frame-side {
  opacity: 0.8;
}

@media (min-width: 768px) {
  .phone-frame-side-left {
    transform: perspective(800px) rotateY(8deg) rotateZ(-2deg);
  }
  .phone-frame-side-left:hover {
    transform: perspective(800px) rotateY(4deg) rotateZ(0) translateY(-4px);
    opacity: 1;
    animation: none;
  }
  .phone-frame-side-right {
    transform: perspective(800px) rotateY(-8deg) rotateZ(2deg);
  }
  .phone-frame-side-right:hover {
    transform: perspective(800px) rotateY(-4deg) rotateZ(0) translateY(-4px);
    opacity: 1;
    animation: none;
  }
}

/* Nav sticky — fond noir transparent + backdrop-blur */
.nav-sticky {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04),
    0 4px 24px rgba(0, 0, 0, 0.2);
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

/* Safe area encoche (iPhone, etc.) — n’ajoute que le top */
@media (max-width: 767px) {
  .nav-sticky {
    padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
  }
}
@media (min-width: 768px) {
  .nav-sticky {
    padding-top: calc(1.5rem + env(safe-area-inset-top, 0px));
  }
}

.nav-sticky.scrolled {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom-color: rgba(249, 115, 22, 0.15);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 32px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(249, 115, 22, 0.06);
}

.nav-sticky .nav-logo-text {
  /* Couleur gérée par .gradient-text (même dégradé que les boutons) */
}

.nav-sticky.scrolled .nav-logo-text {
  /* Inchangé : reste en gradient */
}

/* Liens de section : même univers que les boutons (pill + dégradé au survol) */
.nav-sticky .nav-link,
.nav-sticky.scrolled .nav-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition:
    color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

/* Responsive : barre plus compacte sur petit écran */
@media (max-width: 767px) {
  .nav-sticky .nav-link,
  .nav-sticky.scrolled .nav-link {
    padding: 0.375rem 0.75rem;
    font-size: 0.9375rem;
  }
}

.nav-sticky .nav-link:hover,
.nav-sticky.scrolled .nav-link:hover {
  background: linear-gradient(
    135deg,
    rgba(249, 115, 22, 0.25) 0%,
    rgba(20, 184, 166, 0.25) 100%
  );
  color: #fff;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.15);
}

/* Liens desktop — cachés sur mobile, affichés à partir de 768px */
.nav-links {
  display: none;
}
@media (min-width: 768px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
  }
}
@media (min-width: 1024px) {
  .nav-links {
    gap: 0.75rem;
  }
}

/* Bouton burger — visible uniquement sur mobile, tout en CSS */
.nav-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.nav-burger:hover {
  background: rgba(255, 255, 255, 0.1);
}
@media (min-width: 768px) {
  .nav-burger {
    display: none;
  }
}
.nav-burger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-burger[aria-expanded="true"] .nav-burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] .nav-burger-line:nth-child(2) {
  opacity: 0;
}
.nav-burger[aria-expanded="true"] .nav-burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Panneau menu mobile (caché par défaut, visible quand .nav-menu-open sur nav) */
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
@media (min-width: 768px) {
  .nav-menu {
    display: none !important;
  }
}
.nav-sticky.nav-menu-open .nav-menu {
  display: block;
  max-height: 280px;
}
.nav-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.75rem 0 1rem;
}
.nav-menu-link {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  border-radius: 0.5rem;
  margin: 0 0.75rem;
}
.nav-menu-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Fade In Up — révélé au scroll (classe .visible ajoutée par JS) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* Lien footer (Support, Politique) — blanc */
.link-footer {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.link-footer:hover {
  color: #fff;
}
