/* ============================================
   VEILLEUSE — One-page website
   Thème ambré / chaleureux
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-deep: #0a0a0f;
  --bg-primary: #12121a;
  --bg-secondary: #1a1a26;
  --accent: #ffb74d;
  --accent-dim: #e09530;
  --warm: #ff8a65;
  --warm-dim: rgba(255, 138, 101, 0.15);
  --accent-light: #ffcc80;
  --warm-light: #ffab91;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b80;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg-hover: rgba(255, 255, 255, 0.07);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--glass-border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-blob-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--accent), var(--warm));
  animation: glowPulse 3s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(255, 183, 77, 0.3);
}

.nav-blob-icon.small {
  width: 20px;
  height: 20px;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 183, 77, 0.3); transform: scale(1); }
  50% { box-shadow: 0 0 20px rgba(255, 183, 77, 0.5); transform: scale(1.05); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  background: linear-gradient(135deg, var(--accent-dim), var(--warm));
  padding: 7px 18px !important;
  border-radius: 100px;
  color: white !important;
  font-weight: 600 !important;
  font-size: 0.84rem !important;
  transition: opacity 0.3s ease, transform 0.3s ease !important;
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 183, 77, 0.1) 0%, rgba(255, 138, 101, 0.04) 40%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Blob (veilleuse = lueur douce qui respire) --- */
.blob-container {
  width: 240px;
  height: 240px;
  position: relative;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blob-shape {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 45% 45%, #ffcc80, #e09530, #ff8a65);
  border-radius: 50%;
  animation: veilleuseBreathe 4s ease-in-out infinite;
  filter: drop-shadow(0 0 50px rgba(255, 183, 77, 0.4));
}

@keyframes veilleuseBreathe {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 50px rgba(255, 183, 77, 0.4));
    border-radius: 50%;
  }
  25% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 70px rgba(255, 183, 77, 0.55));
    border-radius: 48% 52% 50% 50%;
  }
  50% {
    transform: scale(0.96);
    filter: drop-shadow(0 0 40px rgba(255, 183, 77, 0.3));
    border-radius: 50% 48% 52% 48%;
  }
  75% {
    transform: scale(1.04);
    filter: drop-shadow(0 0 65px rgba(255, 183, 77, 0.5));
    border-radius: 52% 50% 48% 52%;
  }
}

.blob-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255, 183, 77, 0.15);
  animation: pulseRing 4s ease-out infinite;
}

.blob-pulse-ring.ring-2 {
  animation-delay: 2s;
}

@keyframes pulseRing {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

.blob-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -10px;
  margin-left: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffcc80, #ff8a65);
  opacity: 0;
  pointer-events: none;
  filter: blur(0.5px);
  box-shadow: 0 0 12px rgba(255, 183, 77, 0.4);
}

/* Title */
.hero-title {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.title-gradient {
  background: linear-gradient(135deg, var(--accent-light), var(--warm-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.tagline-highlight {
  color: var(--text-primary);
  font-weight: 600;
}

/* CTA */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-dim), var(--warm));
  color: white;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 1.05rem;
  box-shadow: 0 8px 32px rgba(255, 183, 77, 0.25), 0 2px 8px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before { opacity: 1; }

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 183, 77, 0.35), 0 4px 12px rgba(0,0,0,0.3);
}

.btn-disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.btn-large {
  padding: 20px 48px;
  font-size: 1.15rem;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.hero-meta {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* --- Section shared --- */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--accent-light), var(--warm-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

/* --- Download --- */
.download {
  padding: 4rem 0;
}

.download-card {
  position: relative;
  text-align: center;
  padding: 5rem 3rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.download-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255, 183, 77, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.download-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  position: relative;
}

.download-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  position: relative;
}

.download-card .btn { position: relative; }

.download-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  position: relative;
  flex-wrap: wrap;
}

.download-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Support / Wishlist --- */
.support {
  padding: 2rem 0 4rem;
}

.support-card {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.support-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), var(--warm), transparent);
}

.support-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.support-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.support-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.btn-support {
  background: linear-gradient(135deg, rgba(255, 183, 77, 0.12), rgba(255, 138, 101, 0.12));
  border: 1px solid rgba(255, 183, 77, 0.2);
  color: var(--text-primary);
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 0.95rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-support:hover {
  background: linear-gradient(135deg, rgba(255, 183, 77, 0.22), rgba(255, 138, 101, 0.22));
  border-color: rgba(255, 183, 77, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 183, 77, 0.15);
}

.btn-support .btn-icon {
  width: 18px;
  height: 18px;
}

/* --- Footer --- */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
}

.footer-name {
  background: linear-gradient(135deg, var(--accent-light), var(--warm-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-credit {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-credit strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.footer-credit a {
  transition: color 0.3s ease;
}

.footer-credit a:hover,
.footer-credit a:hover strong {
  color: var(--accent);
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .nav-links a:not(.nav-cta) { display: none; }

  .hero { padding: 6rem 1.5rem 3rem; }

  .blob-container {
    width: 160px;
    height: 160px;
    margin-bottom: 1.5rem;
  }

  .blob-pulse-ring {
    width: 180px;
    height: 180px;
  }

  .section-inner { padding: 0 1.25rem; }

  .download-card { padding: 3rem 1.5rem; }

  .btn-large {
    padding: 16px 32px;
    font-size: 1rem;
  }

  .support-card { padding: 2.5rem 1.5rem; }
}

/* --- Visibility for GSAP --- */
.hero-content > *,
.download-card > *,
.support-card > * {
  will-change: transform, opacity;
}
