/* style.css - Ajustements spécifiques pour Sylia Bootcamp */

/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

@layer utilities {
  .text-justify-left-last {
    text-align: justify;
    text-align-last: left;
  }
}


/* Header styles */
header {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header * {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Transition douce sur tous les boutons */
a {
  transition: all 0.3s ease;
}

/* Style optionnel pour les sections */
section {
  scroll-margin-top: 80px; /* pour ancrer les liens internes proprement */
}

/* Custom background patterns and animations */
.bg-pattern {
  background-color: #ffffff;
  background-image: 
    radial-gradient(at 40% 20%, hsla(201,100%,65%,0.15) 0px, transparent 50%),
    radial-gradient(at 80% 0%, hsla(201,100%,65%,0.15) 0px, transparent 50%),
    radial-gradient(at 0% 50%, hsla(201,100%,65%,0.15) 0px, transparent 50%),
    radial-gradient(at 20% 80%, hsla(201,100%,65%,0.1) 0px, transparent 50%),
    radial-gradient(at 60% 60%, hsla(201,100%,65%,0.1) 0px, transparent 50%);
  position: relative;
  overflow: hidden;
}

.bg-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(4, 149, 241, 0.05) 0%, rgba(73, 187, 255, 0.05) 100%);
  z-index: 0;
  animation: gradient-shift 15s ease infinite;
}

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

.bg-pattern-dark {
  background-color: #012030;
  background-image: 
    radial-gradient(at 40% 20%, hsla(201,100%,65%,0.1) 0px, transparent 50%),
    radial-gradient(at 80% 0%, hsla(201,100%,65%,0.1) 0px, transparent 50%),
    radial-gradient(at 0% 50%, hsla(201,100%,65%,0.1) 0px, transparent 50%);
  position: relative;
  overflow: hidden;
}

.bg-pattern-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(4, 149, 241, 0.05) 0%, rgba(73, 187, 255, 0.05) 100%);
  z-index: 0;
}

/* Floating animation */
.float {
  animation: float 6s ease-in-out infinite;
}

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

/* Gradient text */
.gradient-text {
  background: linear-gradient(45deg, #012030, #0495F1);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2 !important;
  margin-bottom: 20px !important;
  animation: gradient 8s linear infinite;
}

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

/* Decorative shapes */
.shape-blob {
  position: absolute;
  background: linear-gradient(45deg, #0495F1, #49BBFF);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  opacity: 0.1;
  z-index: 0;
  filter: blur(20px);
  transition: all 0.5s ease;
}

.shape-blob:hover {
  opacity: 0.15;
  transform: scale(1.1);
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover effects */
.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

/* Glass effect */
.backdrop-blur-sm {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Custom animations */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Image hover effects */
.group:hover img {
  transform: scale(1.05);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #0495F1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #012030;
}

/* Styles du menu mobile */
.hamburger-button {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  cursor: pointer;
}

.hamburger-bar {
  width: 24px;
  height: 2px;
  background-color: #012030;
  transition: all 0.3s ease;
}

.mobile-drawer {
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
}

/* Animation du bouton hamburger */
.hamburger-button.active .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-button.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.hamburger-button.active .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Transition de l'overlay */
.drawer-overlay {
  transition: opacity 0.3s ease;
}

/* Styles pour le bouton de fermeture */
.close-drawer {
  transition: background-color 0.3s ease;
}

.close-drawer:hover {
  background-color: #E1E8ED;
}

/* Styles pour l'overlay */
.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Désactivation du scroll quand le menu est ouvert */
body.menu-open {
  overflow: hidden;
}
  