/* ───────── Nav (fixe, page d'accueil) ───────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.nav.scrolled {
  background: #FFF9F0F0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 #5C403310;
  padding: 10px 0;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ───────── Hero ───────── */
.hero {
  position: relative;
  padding: calc(var(--section-pad) + 60px) 0 var(--section-pad);
  overflow: hidden;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

/* Orbs décoratifs */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #D4481245 0%, #D4481218 35%, transparent 65%);
  top: -200px; right: -200px;
  filter: blur(50px);
  animation: orb-drift-1 8s ease-in-out infinite;
}
.hero::after {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #F07A3040 0%, #F07A3015 35%, transparent 65%);
  bottom: -100px; left: -180px;
  filter: blur(50px);
  animation: orb-drift-2 10s ease-in-out infinite;
}
@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.1); }
}
@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, -25px) scale(1.08); }
}

.orb-extra {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, #C1784335 0%, #C1784312 40%, transparent 65%);
  top: 20%; left: 30%;
  filter: blur(55px);
  pointer-events: none;
  z-index: 0;
  animation: orb-drift-3 12s ease-in-out infinite;
}
@keyframes orb-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-25px, 20px) scale(1.06); }
  66% { transform: translate(20px, -30px) scale(0.95); }
}
.orb-extra-2 {
  position: absolute;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, #F07A3030 0%, transparent 60%);
  top: 60%; right: 10%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: orb-drift-1 14s ease-in-out infinite reverse;
}

/* Éléments décoratifs géométriques */
.hero-deco { position: absolute; pointer-events: none; z-index: 1; }
.hero-deco--ring {
  width: 220px; height: 220px;
  border: 2px solid #D4481220;
  border-radius: 50%;
  top: 12%; right: 6%;
  animation: spin-slow 25s linear infinite;
}
.hero-deco--ring2 {
  width: 120px; height: 120px;
  border: 1.5px solid #F07A3018;
  border-radius: 50%;
  bottom: 18%; left: 4%;
  animation: spin-slow 18s linear infinite reverse;
}
.hero-deco--cross {
  width: 24px; height: 24px;
  top: 22%; left: 10%;
  opacity: 0.2;
}
.hero-deco--cross::before,
.hero-deco--cross::after {
  content: '';
  position: absolute;
  background: var(--primary);
  border-radius: 1px;
}
.hero-deco--cross::before { width: 100%; height: 2px; top: 50%; transform: translateY(-50%); }
.hero-deco--cross::after  { width: 2px; height: 100%; left: 50%; transform: translateX(-50%); }
.hero-deco--dots {
  top: 40%; right: 3%;
  display: grid;
  grid-template-columns: repeat(3, 6px);
  gap: 8px;
  opacity: 0.2;
}
.hero-deco--dots span {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--primary);
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* Contenu texte du hero */
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-soft);
  border: 1px solid #D4481218;
  padding: 6px 16px;
  border-radius: 60px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-display);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 440px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* Boutons store */
.store-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #A8998F;
  color: #FFF9F0;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: default;
  pointer-events: none;
  opacity: 0.75;
}
.store-badge svg { flex-shrink: 0; opacity: 0.7; }
.store-badge-text { text-align: left; line-height: 1.25; }
.store-badge-text small { font-size: 0.65rem; opacity: 0.7; display: block; font-weight: 400; }
.store-badge-text strong { font-weight: 600; letter-spacing: 0.01em; }
.store-badge--active {
  cursor: pointer;
  pointer-events: auto;
  opacity: 1;
  background: var(--gradient);
  transition: opacity 0.2s, transform 0.2s;
}
.store-badge--active:hover { opacity: 0.9; transform: translateY(-1px); }

/* Mockup téléphone 3D */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  perspective: 800px;
  perspective-origin: 50% 40%;
}
.phone-wrapper {
  position: relative;
  transform-style: preserve-3d;
  animation: phone-float-3d 3.5s ease-in-out infinite;
}
@keyframes phone-float-3d {
  0%, 100% { transform: rotateY(-22deg) rotateX(5deg) rotateZ(1deg) translateY(0); }
  50%       { transform: rotateY(-22deg) rotateX(5deg) rotateZ(1deg) translateY(-18px); }
}
.phone-mockup {
  width: 260px; height: 520px;
  background: linear-gradient(135deg, #2A201C, #1A1210 40%, #0D0A08);
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    -30px 40px 100px #5C403340,
    -12px 20px 50px #D4481225,
    0 0 0 1px #3A2E28,
    inset 0 1px 0 #3A2E2840,
    inset 0 0 0 2px #2A201C;
  transform-style: preserve-3d;
  position: relative;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px; left: 12px; right: 12px; bottom: 12px;
  border-radius: 26px;
  background: linear-gradient(
    115deg,
    transparent 0%, transparent 40%,
    #ffffff08 42%, #ffffff15 44%, #ffffff08 46%,
    transparent 48%, transparent 100%
  );
  z-index: 10;
  pointer-events: none;
}
.phone-shadow {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-60%) rotateX(85deg);
  width: 220px; height: 80px;
  background: radial-gradient(ellipse, #5C403340 0%, #D4481218 30%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  z-index: -1;
  animation: shadow-float 3.5s ease-in-out infinite;
}
@keyframes shadow-float {
  0%, 100% { opacity: 0.8; transform: translateX(-60%) rotateX(85deg) scale(1); }
  50%       { opacity: 0.5; transform: translateX(-60%) rotateX(85deg) scale(0.9); }
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 24px;
  background: #1A1210;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--bg);
  border-radius: 26px;
  overflow: hidden;
  position: relative;
}
.phone-status-bar { height: 24px; background: #D44812; }
.phone-video {
  width: 100%; height: 100%;
  object-fit: cover;
  background: #D44812;
}

@media (prefers-reduced-motion: reduce) {
  .phone-video { display: none; }
  .phone-screen {
    background-image: url("/assets/img/video-preview.png");
    background-size: cover;
    background-position: center;
  }
}

/* ───────── Section label / titre ───────── */
.section-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-headline);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* ───────── Features ───────── */
.features {
  padding: var(--section-pad) 0;
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 0% 50%, #D4481212 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 100% 30%, #F07A3010 0%, transparent 55%);
}
.features::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%; max-width: 500px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #D4481230, #F07A3030, transparent);
}
.features-header { text-align: center; margin-bottom: 3.5rem; }
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.feature-card {
  background: linear-gradient(145deg, #FFFBF5 0%, var(--bg-card) 100%);
  border: 1px solid #D4481210;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(4px);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px #D4481215, 0 4px 12px #5C403308;
  border-color: #D4481220;
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.feature-card p {
  color: var(--text-light);
  font-size: var(--size-small);
  line-height: 1.65;
}

/* ───────── CTA ───────── */
.cta {
  padding: var(--section-pad) 0;
  position: relative;
  background: radial-gradient(ellipse 60% 60% at 50% 100%, #D4481210 0%, transparent 60%);
}
.cta-box {
  background: var(--gradient);
  border-radius: 24px;
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, #ffffff15 0%, transparent 70%);
  top: -100px; right: -80px;
  border-radius: 50%;
  pointer-events: none;
}
.cta-box::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  background: radial-gradient(circle, #ffffff10 0%, transparent 70%);
  bottom: -60px; left: -40px;
  border-radius: 50%;
  pointer-events: none;
}
.cta-box h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-headline);
  margin-bottom: 0.75rem;
  position: relative;
  letter-spacing: -0.02em;
}
.cta-box p {
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  font-size: var(--size-small);
}
.cta-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #D44812;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
}
.cta-badge:hover { opacity: 0.9; transform: translateY(-1px); }
.cta-badge svg { flex-shrink: 0; }

/* ───────── Footer (accueil) ───────── */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid #5C403310;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}
.footer-logo img { width: 28px; height: 28px; border-radius: 6px; }
.footer-logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-light);
  max-width: 260px;
  line-height: 1.5;
}
.footer-stores {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-store-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gradient-soft);
  border: 1px solid #D4481218;
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.footer-store-link:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}
.footer-store-link svg { flex-shrink: 0; }
.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-size: 0.78rem;
  color: var(--text-light);
  border-bottom: 1px solid #5C403320;
  transition: color 0.2s, border-color 0.2s;
}
.footer-nav a:hover { color: var(--primary); border-color: var(--primary); }
.footer-copy { font-size: 0.75rem; color: var(--text-light); opacity: 0.7; }

/* ───────── Réseaux sociaux (hero) ───────── */
.hero-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-social-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.hero-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 6px 10px;
  border-radius: 60px;
  border: 1px solid #D4481218;
  background: var(--gradient-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    transform    0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background   0.25s ease,
    box-shadow   0.25s ease,
    border-color 0.25s ease,
    color        0.25s ease;
}
.hero-social-link:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 20px #D4481228;
}

/* ───────── Réseaux sociaux (footer) ───────── */
.footer-social {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #D4481218;
  background: var(--gradient-soft);
  color: var(--primary);
  transition:
    transform   0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background  0.25s ease,
    box-shadow  0.25s ease,
    border-color 0.25s ease,
    color       0.25s ease;
}
.footer-social-link:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-4px) scale(1.12);
  box-shadow: 0 10px 24px #D4481228;
}

/* ───────── Responsive ───────── */

/* Petits téléphones */
@media (max-width: 380px) {
  :root { --size-display: 1.6rem; --size-headline: 1.15rem; --section-pad: 3rem; }
  .nav-logo { font-size: 1.1rem; }
  .nav-logo img { width: 30px; height: 30px; }
  .btn-primary { font-size: 0.75rem; padding: 10px 18px; gap: 5px; }
  .btn-primary svg { width: 14px; height: 14px; }
  .phone-mockup { width: 200px; height: 400px; border-radius: 28px; padding: 8px; }
  .phone-notch { width: 70px; height: 18px; top: 8px; border-radius: 0 0 12px 12px; }
  .phone-screen { border-radius: 20px; }
  .store-badge { padding: 10px 16px; font-size: 0.75rem; }
  .store-badge svg { width: 18px; height: 18px; }
  .cta-box { padding: 2rem 1.25rem; }
  .cta-badge { padding: 10px 16px; font-size: 0.75rem; }
}

/* Mobile */
@media (max-width: 640px) {
  .btn-primary { font-size: 0.72rem; padding: 9px 14px; gap: 5px; }
  .btn-primary svg { width: 13px; height: 13px; }
  .nav-logo { font-size: 1.15rem; gap: 6px; }
  .nav-logo img { width: 32px; height: 32px; }
  .hero { padding: calc(var(--section-pad) + 50px) 0 var(--section-pad); }
  .hero .container { gap: 2rem; }
  .hero-sub { font-size: 0.95rem; max-width: 100%; }
  .store-badges { flex-direction: column; align-items: center; }
  .store-badge { width: 100%; max-width: 260px; justify-content: center; }
  .phone-wrapper { animation-name: phone-float-3d-mobile; }
  .hero-visual { perspective: 1000px; }
  .phone-mockup { width: 220px; height: 440px; border-radius: 30px; padding: 10px; }
  .phone-notch { width: 80px; height: 20px; top: 10px; border-radius: 0 0 14px 14px; }
  .phone-screen { border-radius: 22px; }
  .features-grid { gap: 1rem; }
  .feature-card { padding: 1.5rem 1.25rem; }
  .cta-badges { flex-direction: column; align-items: center; }
  .cta-badge { width: 100%; max-width: 260px; justify-content: center; }
  .cta-box { border-radius: 18px; }
  .hero::before { width: 350px; height: 350px; }
  .hero::after { width: 300px; height: 300px; }
  .orb-extra { width: 250px; height: 250px; }
  .orb-extra-2 { width: 180px; height: 180px; }
  .hero-deco--ring { width: 120px; height: 120px; }
  .hero-deco--ring2 { width: 70px; height: 70px; }
}

@keyframes phone-float-3d-mobile {
  0%, 100% { transform: rotateY(-14deg) rotateX(4deg) translateY(0); }
  50%       { transform: rotateY(-14deg) rotateX(4deg) translateY(-12px); }
}

/* Tablette */
@media (min-width: 641px) and (max-width: 899px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .phone-mockup { width: 240px; height: 480px; }
}

/* Desktop */
@media (min-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  .hero-content { text-align: left; }
  .hero-sub { margin: 0 0 2rem; }
  .store-badges { justify-content: flex-start; }
  .features-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-social { justify-content: flex-start; }
}
