/*========================================
  Variables globales
========================================*/
:root {
  --bg-main: #0d1b2a;
  --gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --card-bg: rgba(255,255,255,0.05);
  --accent: #4facfe;
  --accent-dark: #00bcd4;
  --text-light: #f0f8ff;
  --muted: #a0a0b8;
  --radius: 16px;
  --transition: 0.3s ease;
  --safe-top: env(safe-area-inset-top);
}

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}
html, body {
  height: 100%;
  background: var(--bg-main);
  color: var(--text-light);
  overflow-x: hidden;
  position: relative;
  padding-top: var(--safe-top);
}

/* Bulles */
#bubble-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.bubble {
  position: absolute;
  bottom: -100px;
  background: var(--accent);
  opacity: 0.4;
  border-radius: 50%;
  animation: rise 8s infinite ease-in;
}
@keyframes rise {
  to {
    transform: translateY(-120vh) scale(0.3);
    opacity: 0;
  }
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--card-bg);
  backdrop-filter: blur(6px);
  padding: 0.6rem 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
header .logo {
  width: 2.4rem;
  height: 2.4rem;
  margin-right: 0.5rem;
  border-radius: 0.4rem;
}
header h1 {
  font-family: 'Luckiest Guy', cursive;
  font-size: clamp(1.5rem, 6vw, 2.4rem);
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 4px rgba(79,172,254,0.4);
  line-height: 1;
}

/* Hero */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem 3rem;
  text-align: center;
  z-index: 1;
}
.hero {
  animation: float 4s ease-in-out infinite alternate;
}
@keyframes float {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}
.hero h2 {
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero p {
  max-width: 600px;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  border: none;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  padding: 0.8rem 2rem;
}
.btn-primary {
  background: var(--gradient);
  color: var(--bg-main);
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.7);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--bg-main);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 3rem 1rem;
  width: 100%;
  max-width: 960px;
}
.feature-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}
.feature-card h3 {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Footer */
footer {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 1rem;
}

/* Responsive */
@media(max-width:480px) {
  .hero h2 { font-size: 2rem; }
}
