/* ============================
   GLOBAL STYLE
============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", "Segoe UI", Roboto, sans-serif;
  background-color: #F4F7FB;
  color: #111827;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h2, h3, h5, h6 {
  color: #0066FF;
  font-weight: 600;
}

a {
  color: #0066FF;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
a:hover {
  color: #FF5500;
  transform: translateY(-2px);
}

/* Animation Fade-in au scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Animation de pulsation */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Animation de glissement */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================
   NAVBAR
============================ */
.navbar {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.navbar-brand {
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand span {
  font-weight: 700;
  font-size: 1.1rem;
  color: #111827;
  background: linear-gradient(135deg, #0066FF, #00A3FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-dark .navbar-nav .nav-link {
  color: #fff !important;
  font-weight: 600;
  margin-left: 8px;
  padding: 8px 16px !important;
  border-radius: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #0066FF, #00A3FF);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: #0066FF !important;
  background-color: rgba(0, 102, 255, 0.05);
}

.navbar-dark .navbar-nav .nav-link:hover::before {
  width: 60%;
}

/* ============================
   HERO SECTION
============================ */
.hero {
  background: linear-gradient(135deg, #0044FF, #00A3FF, #00D4FF);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  color: #fff;
  padding: 140px 0 100px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  animation: slideInLeft 1s ease-out;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero p {
  color: #E0ECFF;
  font-size: 1.15rem;
  margin-top: 15px;
  animation: slideInLeft 1s ease-out 0.2s backwards;
}

/* Image ajustable */
.hero img {
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
  animation: slideInRight 1s ease-out, float 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.hero img:hover {
  transform: scale(1.05) !important;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* ============================
   ABOUT SECTION
============================ */
#about {
  background: #fff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,102,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

#about .profile-picture img {
  border: 5px solid #fff;
  box-shadow: 0 10px 30px rgba(0,102,255,0.15);
  transition: all 0.4s ease;
  animation: fadeInUp 1s ease-out;
}

#about .profile-picture img:hover {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 15px 40px rgba(0,102,255,0.25);
}

#about h3 {
  font-size: 1.7rem;
  color: #0066FF;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

#about h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #0066FF, #00A3FF);
  border-radius: 2px;
}

#about p {
  color: #4B5563;
  line-height: 1.8;
  font-size: 1.05rem;
}

.bouton1 {
  display: inline-block;
  background: linear-gradient(135deg, #0066FF, #00A3FF);
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,102,255,0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

.bouton1::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, height 0.6s;
}

.bouton1:hover {
  background: linear-gradient(135deg, #0044FF, #0088FF);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,102,255,0.4);
}

.bouton1:hover::before {
  width: 300px;
  height: 300px;
}

/* ============================
   SERVICES
============================ */
#services {
  padding: 100px 0;
  position: relative;
}

#services h3 {
  color: #0066FF;
  font-weight: 700;
  margin-bottom: 50px;
  font-size: 2rem;
  position: relative;
  display: inline-block;
}

#services h3::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0066FF, #00A3FF);
  border-radius: 2px;
}

#services .col-lg-3,
#services .col-md-6 {
  transition: all 0.4s ease;
}

#services .col-lg-3 > div,
#services .col-md-6 > div {
  padding: 30px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  position: relative;
  overflow: hidden;
}

#services .col-lg-3 > div::before,
#services .col-md-6 > div::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,102,255,0.1), transparent);
  transition: left 0.6s;
}

#services .col-lg-3:hover > div,
#services .col-md-6:hover > div {
  transform: translateY(-10px);
  border-color: #0066FF;
  box-shadow: 0 15px 40px rgba(0,102,255,0.15);
  background: #fff;
}

#services .col-lg-3:hover > div::before,
#services .col-md-6:hover > div::before {
  left: 100%;
}

#services h6 {
  color: #111827;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 15px;
}

#services img {
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  filter: drop-shadow(0 4px 8px rgba(0,102,255,0.2));
}

#services .col-lg-3:hover img,
#services .col-md-6:hover img {
  transform: scale(1.15) rotateY(10deg);
  filter: drop-shadow(0 8px 16px rgba(0,102,255,0.3));
}

/* ============================
   PORTFOLIO
============================ */
#portfolio {
  background: #fff;
  padding: 100px 0;
  position: relative;
}

#portfolio h3 {
  font-size: 2rem;
  position: relative;
  display: inline-block;
}

#portfolio h3::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0066FF, #00A3FF);
  border-radius: 2px;
}

.card-portfolio {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.card-portfolio::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,102,255,0.05), rgba(0,163,255,0.05));
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
  pointer-events: none;
}

.card-portfolio:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,102,255,0.2);
}

.card-portfolio:hover::before {
  opacity: 1;
}

.card-portfolio img {
  object-fit: cover;
  height: 220px;
  transition: transform 0.6s ease;
}

.card-portfolio:hover img {
  transform: scale(1.1);
}

.card-portfolio .card-body {
  background: #fff;
  position: relative;
  z-index: 2;
  padding: 20px;
}

.card-portfolio .card-title {
  font-weight: 600;
  color: #111827;
  transition: color 0.3s;
}

.card-portfolio:hover .card-title {
  color: #0066FF;
}

.card-portfolio .btn-outline-primary {
  color: #0066FF;
  border-color: #0066FF;
  border-radius: 20px;
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card-portfolio .btn-outline-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: #0066FF;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
  z-index: -1;
}

.card-portfolio .btn-outline-primary:hover {
  background-color: #0066FF;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,102,255,0.3);
}

.card-portfolio .btn-outline-primary:hover::before {
  width: 200px;
  height: 200px;
}

/* ============================
   CONTACT
============================ */
#contact {
  background: linear-gradient(135deg, #dde6f4, #f0f5ff);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,102,255,0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

#contact h3 {
  color: #0066FF;
  margin-bottom: 40px;
  text-align: center;
  font-size: 2rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

#contact h3::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0066FF, #00A3FF);
  border-radius: 2px;
}

#contact form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 10px 40px rgba(0,102,255,0.1);
  position: relative;
  z-index: 1;
}

#contact .form-control {
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  padding: 14px 18px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fff;
}

#contact .form-control:focus {
  border-color: #0066FF;
  box-shadow: 0 0 0 4px rgba(0,102,255,0.1);
  outline: none;
  transform: translateY(-2px);
}

#contact .btn-primary {
  background: linear-gradient(135deg, #0044FF, #00A3FF);
  border: none;
  border-radius: 30px;
  font-weight: 600;
  padding: 14px 30px;
  font-size: 1.05rem;
  box-shadow: 0 5px 20px rgba(0,102,255,0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

#contact .btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

#contact .btn-primary:hover {
  background: linear-gradient(135deg, #FF5500, #FF7733);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255,85,0,0.4);
}

#contact .btn-primary:hover::before {
  width: 400px;
  height: 400px;
}

/* ============================
   FOOTER
============================ */
footer {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, #1f2937, #111827);
  color: #fff;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0066FF, transparent);
  animation: slideLight 3s ease-in-out infinite;
}

@keyframes slideLight {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

footer p {
  margin: 0;
  opacity: 0.9;
}

/* ============================
   CHAT BOT
============================ */
#chat-toggle {
  background: linear-gradient(135deg, #0066FF, #00A3FF) !important;
  box-shadow: 0 6px 20px rgba(0,102,255,0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulse 2s ease-in-out infinite;
}

#chat-toggle:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 8px 30px rgba(0,102,255,0.6);
}

#chat-toggle:active {
  transform: scale(0.95);
}

#chat-container {
  border: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  animation: fadeInUp 0.4s ease-out;
}

#chat-container > div:first-child {
  background: linear-gradient(135deg, #343a40, #1f2937) !important;
  font-weight: 600;
  text-align: center;
  padding: 15px !important;
}

#chat-output {
  background: #f9fafb;
}

#chat-output > div {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  animation: fadeInUp 0.3s ease-out;
}

#chat-output > div:nth-child(odd) {
  background: #e5e7eb;
  margin-left: 10px;
}

#chat-output > div:nth-child(even) {
  background: linear-gradient(135deg, #0066FF, #00A3FF);
  color: white;
  margin-right: 10px;
}

#chat-form input {
  transition: all 0.3s ease;
}

#chat-form input:focus {
  outline: 2px solid #0066FF;
  box-shadow: 0 0 0 4px rgba(0,102,255,0.1);
}

#chat-container button {
  background: linear-gradient(135deg, #0066FF, #00A3FF);
  transition: all 0.3s ease;
  border-radius: 8px;
  font-size: 1.1rem;
}

#chat-container button:hover {
  background: linear-gradient(135deg, #FF5500, #FF7733);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255,85,0,0.4);
}

#chat-container button:active {
  transform: scale(0.95);
}

/* ============================
   SCROLL REVEAL ANIMATIONS
============================ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
    text-align: center;
  }
  .hero h2 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero img {
    margin-top: 30px;
    max-height: 250px;
  }
  
  #about,
  #services,
  #portfolio,
  #contact {
    padding: 60px 0;
  }
  
  #contact form {
    padding: 30px 20px;
  }
  
  .navbar-brand span {
    font-size: 1rem;
  }
  
  #chat-container {
    width: 280px !important;
    max-height: 380px !important;
  }
}
