:root {
  --violet: #8A2BE2;
  --violet-dark: #6A1B9A;
  --violet-light: #B388FF;
  --rose: #FF4081;
  --rose-dark: #D81B60;
  --rose-light: #FF79B0;
  --gradient: linear-gradient(135deg, var(--violet), var(--rose));
  --gradient-light: linear-gradient(135deg, var(--violet-light), var(--rose-light));
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background: linear-gradient(135deg, #f9f5ff, #e8e1ff);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #4A148C;
}

.hero {
  padding: 100px 0;
  background: url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center;
  background-size: cover;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  background-size: 200% 200%;
  animation: heroGradient 8s ease-in-out infinite alternate;
  opacity: 0.90;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background: #fff;
  clip-path: polygon(0 60%, 10% 70%, 20% 75%, 30% 78%, 40% 80%, 50% 81%, 60% 80%, 70% 78%, 80% 75%, 90% 70%, 100% 60%, 100% 100%, 0 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.4rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Effet Glass sur les boutons */
.glass-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.glass-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  z-index: -1;
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.glass-btn-primary {
  background: rgba(138, 43, 226, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-btn-primary:hover {
  background: rgba(138, 43, 226, 0.4);
}

.section-title {
  position: relative;
  margin-bottom: 60px;
  text-align: center;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.section-title p {
  color: #666;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
  margin: 20px auto 0;
}

.features {
  padding: 100px 0;
  background: white;
}

.feature-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(138, 43, 226, 0.1);
  height: 100%;
  border: 1px solid transparent;
  background-image: linear-gradient(#fff, #fff), var(--gradient-light);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  margin-bottom: 30px;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(138, 43, 226, 0.2);
}

/* Effet Glass sur les icônes */
.feature-icon {
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px auto 25px;
  color: white;
  font-size: 36px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.feature-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-light);
  opacity: 0.7;
  z-index: -1;
  animation: heroGradient 6s linear infinite;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 20px rgba(138, 43, 226, 0.25);
}

.feature-content {
  padding: 0 25px 30px;
  text-align: center;
}

.feature-content h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: var(--violet-dark);
}

.feature-content p {
  color: #666;
  margin-bottom: 0;
}

.cta {
  padding: 100px 0;
  background: url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center;
  background-size: cover;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  opacity: 0.85;
  z-index: 1;
}

.cta .container {
  position: relative;
  z-index: 2;
}

.cta h2 {
  color: white;
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 40px;
}

.cta .btn {
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.cta .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

footer {
  background: linear-gradient(to right, #4A148C, #880E4F);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 30px;
}

.footer-logo {
  margin-bottom: 25px;
}

.footer-logo img {
  height: 50px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.footer-links h5 {
  color: white;
  margin-bottom: 25px;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 15px;
}

.footer-links h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--rose);
  border-radius: 2px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: rgba(255,255,255,0.7);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-links ul li a:hover {
  color: white;
  padding-left: 5px;
}

.copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  margin-top: 50px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.user-count {
  background: rgba(255,255,255,0.1);
  padding: 10px 20px;
  border-radius: 30px;
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
}

.navbar {
  background: rgba(74, 20, 140, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar-brand {
  color: white !important;
  font-weight: 700;
  font-size: 1.3rem;
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: rotate(10deg);
}

.nav-link {
  color: rgba(255,255,255,0.8) !important;
  transition: all 0.3s ease;
  padding: 8px 20px !important;
  border-radius: 30px;
  margin: 0 5px;
  background: rgba(255,255,255,0.05);
}

.nav-link:hover {
  color: white !important;
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 0;
  animation: float 8s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,0.2);
}

.bubble-1 {
  width: 200px;
  height: 200px;
  top: -100px;
  right: -50px;
}

.bubble-2 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 5%;
  animation-delay: 1.5s;
}

.bubble-3 {
  width: 120px;
  height: 120px;
  top: 40%;
  right: 15%;
  animation-delay: 3s;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.install-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
  transition: all 0.3s ease;
  background: rgba(138, 43, 226, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.install-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(138, 43, 226, 0.5);
  background: rgba(138, 43, 226, 0.3);
}

/* ---- Auth pages ---- */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding: 40px 15px;
  position: relative;
}

.auth-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0.4;
  filter: blur(40px);
  z-index: -1;
}

.auth-box {
  position: relative;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  padding: 30px;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
}

.auth-box .form-control {
  border-radius: 50px;
  padding: 0.6rem 1.2rem;
}

.auth-box .btn-primary {
  border-radius: 50px;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
}

/* Responsive */
@media (max-width: 991px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero p {
    font-size: 1.2rem;
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 60px 0;
  }
  .hero h1 {
    font-size: 2.3rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .section-title h2 {
    font-size: 2rem;
  }
  .install-btn {
    bottom: 70px;
    right: 10px;
    font-size: 0.9rem;
    padding: 10px 20px;
  }
  .bubble {
    display: none;
  }
}