@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

* {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-bg {
  background: linear-gradient(to bottom, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(147, 197, 253, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

.hero-bg::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(251, 191, 36, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: pulse 5s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.card-hover:hover::before {
  left: 100%;
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(102, 126, 234, 0.25),
    0 0 0 1px rgba(102, 126, 234, 0.1);
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-delay-1 {
  animation-delay: 0.15s;
}

.fade-in-delay-2 {
  animation-delay: 0.3s;
}

.fade-in-delay-3 {
  animation-delay: 0.45s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.floating {
  animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-8px) rotate(1deg);
  }
  50% {
    transform: translateY(-15px) rotate(-1deg);
  }
  75% {
    transform: translateY(-8px) rotate(1deg);
  }
}

/* Styles améliorés pour les badges */
.badge-animate {
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(124, 58, 237, 0);
  }
}

/* Navigation sticky améliorée */
nav {
  transition: all 0.3s ease;
}

nav.scrolled {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

/* Boutons améliorés */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::after {
  width: 300px;
  height: 300px;
}

.btn-primary:active {
  transform: scale(0.95);
}

/* Section avec parallax effect */
.parallax-section {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Amélioration des statistiques */
.stat-number {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: countUp 2s ease-out forwards;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Icônes avec effet glassmorphism */
.glass-icon {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Scroll indicator */
.scroll-indicator {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Styles pour le calendrier de planification */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: #e5e7eb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
}

.calendar-day {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  background-color: white;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.calendar-day.text-center {
  background-color: #f9fafb;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.calendar-day.available {
  background-color: white;
  color: #374151;
  cursor: pointer;
}

.calendar-day.available:hover {
  background-color: #f3f4f6;
  color: #1f2937;
}

.calendar-day.unavailable {
  background-color: #fef2f2;
  color: #dc2626;
  cursor: not-allowed;
}

.calendar-day.selected {
  background-color: #7c3aed;
  color: white;
  font-weight: 600;
}

.calendar-day.past {
  background-color: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
}

/* Styles pour les créneaux horaires */
.time-slot-button {
  transition: all 0.2s ease;
}

.time-slot-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.time-slot-button.selected {
  background-color: #7c3aed !important;
  color: white !important;
  border-color: #7c3aed !important;
}

/* Messages d'alerte personnalisés */
.alert-enter {
  animation: alertSlideIn 0.3s ease-out;
}

@keyframes alertSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.alert-exit {
  animation: alertSlideOut 0.3s ease-in;
}

@keyframes alertSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Animation de chargement */
.loading-spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #7c3aed;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive calendar */
@media (max-width: 768px) {
  .calendar-day {
    height: 2rem;
    font-size: 0.75rem;
  }

  .calendar-day.text-center {
    font-size: 0.625rem;
  }
}

/* Nouvelles animations pour la page d'accueil améliorée */
@keyframes animate-float {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }
  33% {
    transform: translateY(-20px) translateX(10px);
  }
  66% {
    transform: translateY(10px) translateX(-10px);
  }
}

@keyframes animate-float-delayed {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) scale(1);
  }
  33% {
    transform: translateY(15px) translateX(-15px) scale(1.05);
  }
  66% {
    transform: translateY(-15px) translateX(15px) scale(0.95);
  }
}

@keyframes animate-float-slow {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) translateX(20px) rotate(180deg);
  }
}

.animate-float {
  animation: animate-float 8s ease-in-out infinite;
}

.animate-float-delayed {
  animation: animate-float-delayed 10s ease-in-out infinite;
}

.animate-float-slow {
  animation: animate-float-slow 12s ease-in-out infinite;
}

/* Animation de gradient */
@keyframes animate-gradient-x {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.animate-gradient-x {
  background-size: 200% auto;
  animation: animate-gradient-x 3s ease infinite;
}

/* Animation de rotation lente */
@keyframes animate-spin-slow {
  from {
    transform: rotate(0deg) scale(1.5);
  }
  to {
    transform: rotate(360deg) scale(1.5);
  }
}

.animate-spin-slow {
  animation: animate-spin-slow 20s linear infinite;
}

/* Animation de ping lent */
@keyframes animate-ping-slow {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  75%,
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.animate-ping-slow {
  animation: animate-ping-slow 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Animation pour le scroll indicator */
@keyframes animate-scroll {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(100%);
  }
}

.animate-scroll {
  animation: animate-scroll 2s ease-in-out infinite;
}

/* Effet de glow pour les boutons */
.glow-button {
  position: relative;
  overflow: hidden;
}

.glow-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.glow-button:hover::before {
  width: 300px;
  height: 300px;
}

.glow-button:hover {
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.6), 0 0 60px rgba(251, 191, 36, 0.4);
}

/* Effet glass moderne */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Animation pulse lent */
.pulse-slow {
  animation: pulse-slow 4s ease-in-out infinite;
}

@keyframes pulse-slow {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Slide in animations */
.slide-in-right {
  opacity: 0;
  animation: slideInRight 1s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  opacity: 0;
  animation: slideInLeft 0.8s ease-out forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animations pour les sections */
.section-fade-in {
  opacity: 0;
  animation: sectionFadeIn 1s ease-out forwards;
}

@keyframes sectionFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover effect pour les cartes de service */
.service-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 30px 60px -15px rgba(59, 130, 246, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

/* Pricing card effects */
.pricing-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.25);
}

/* Border animation */
@keyframes border-dance {
  0%,
  100% {
    border-color: rgba(59, 130, 246, 0.5);
  }
  50% {
    border-color: rgba(168, 85, 247, 0.5);
  }
}

.border-animate {
  animation: border-dance 3s ease-in-out infinite;
}

/* Responsive improvements */
@media (max-width: 1024px) {
  .hero-bg::before,
  .hero-bg::after {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .hero-bg::before,
  .hero-bg::after {
    width: 200px;
    height: 200px;
  }

  .fade-in {
    animation-duration: 0.8s;
  }

  .floating {
    animation-duration: 3s;
  }
}

.divText {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  margin: 0;
  padding: 0;
  text-align: center;
}
