* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background: #0a0a0f;
  overflow-x: hidden;
  position: relative;
}

/* Animated gradient background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #0a0a0f 0%,
    #1a1a2e 25%,
    #16213e 50%,
    #3b1e54 75%,
    #6c5ce7 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  z-index: -2;
}

section {
  width: 100%;
}

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

/* Floating particles */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.particle {
  position: absolute;
  background: linear-gradient(45deg, #74b9ff, #a29bfe);
  border-radius: 50%;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.particle:nth-child(1) {
  width: 6px;
  height: 6px;
  left: 10%;
  animation-delay: 0s;
}
.particle:nth-child(2) {
  width: 8px;
  height: 8px;
  left: 20%;
  animation-delay: 1s;
}
.particle:nth-child(3) {
  width: 4px;
  height: 4px;
  left: 30%;
  animation-delay: 2s;
}
.particle:nth-child(4) {
  width: 10px;
  height: 10px;
  left: 70%;
  animation-delay: 3s;
}
.particle:nth-child(5) {
  width: 5px;
  height: 5px;
  left: 80%;
  animation-delay: 4s;
}
.particle:nth-child(6) {
  width: 7px;
  height: 7px;
  left: 50%;
  animation-delay: 5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10%,
  90% {
    opacity: 0.8;
  }
  50% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 1;
  }
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Navigation moderne */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(116, 185, 255, 0.1);
  z-index: 1000;
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #74b9ff 0%, #a29bfe 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 3rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #74b9ff, #a29bfe);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a:hover::before {
  width: 100%;
}

/* Hero section spectacular */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(116, 185, 255, 0.1) 0%,
    rgba(162, 155, 254, 0.05) 50%,
    transparent 70%
  );
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

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

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
}

.hero h1 {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #74b9ff 50%, #a29bfe 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s forwards;
}

.hero .role {
  font-size: 1.5rem;
  color: #74b9ff;
  margin-bottom: 2rem;
  font-weight: 600;
  opacity: 0;
  animation: fadeInUp 1s ease 0.9s forwards;
}

.hero .tagline {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 4rem;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeInUp 1s ease 1.2s forwards;
}

.hero-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s ease 1.5s forwards;
}

.btn {
  padding: 18px 36px;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #74b9ff 0%, #a29bfe 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(116, 185, 255, 0.4);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -5px;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(116, 185, 255, 0.6);
}

.btn-primary:hover::before {
  /* left: 100%; */
}

.btn-secondary {
  background: transparent;
  color: #74b9ff;
  border: 2px solid #74b9ff;
  box-shadow: 0 0 20px rgba(116, 185, 255, 0.2);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #74b9ff 0%, #a29bfe 100%);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(116, 185, 255, 0.4);
}

/* Services avec glassmorphism */
.services {
  padding: 120px 0;
  position: relative;
}

.section-title {
  font-size: 3.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #74b9ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-bottom: 5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(116, 185, 255, 0.2);
  border-radius: 20px;
  padding: 3rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #74b9ff, #a29bfe);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: #74b9ff;
  box-shadow: 0 25px 50px rgba(116, 185, 255, 0.3);
  background: rgba(26, 26, 46, 0.8);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #74b9ff, #a29bfe);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.service-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.tech-stack {
  font-size: 0.9rem;
  color: #74b9ff;
  font-weight: 500;
}

/* Projects avec effets modernes */
.projects {
  padding: 120px 0;
  position: relative;
}

/* Icônes thématiques pour les placeholders */
.project-image[data-project="bdrc"] .image-placeholder::before {
  content: "📚";
}
.project-image[data-project="culture-francia"] .image-placeholder::before {
  content: "✈️";
}
.project-image[data-project="medical-app"] .image-placeholder::before {
  content: "🏥";
}
.project-image[data-project="sidonie"] .image-placeholder::before {
  content: "🏠";
}
.project-image[data-project="data-art"] .image-placeholder::before {
  content: "📊";
}
.project-image[data-project="watchdog"] .image-placeholder::before {
  content: "🔍";
}

/* Overlay pour images */
.project-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 46, 0.3),
    rgba(26, 26, 46, 0.7)
  );
  z-index: 1;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-image-overlay {
  opacity: 0.5;
}

/* Filtre de couleur cohérent pour toutes les images */
.project-image img {
  filter: brightness(0.9) contrast(1.1) saturate(1.1);
  transition:
    filter 0.3s ease,
    transform 0.5s ease;
}

.project-card:hover .project-image img {
  filter: brightness(1) contrast(1.2) saturate(1.2);
  transform: scale(1.05);
}

/* Ajustement pour images avec fond transparent */
.project-image img[src*="sidonie"] {
  background: linear-gradient(135deg, #74b9ff, #a29bfe);
  object-fit: contain;
  padding: 40px;
}

/* Style pour images manquantes */
.project-image:not(:has(img[src])) .image-placeholder {
  display: flex;
}

.project-image:has(img[src]) .image-placeholder {
  display: none;
}

.project-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 24px;
  background: rgba(26, 26, 46, 0.6);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(116, 185, 255, 0.2);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(135deg, #74b9ff, #a29bfe);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(116, 185, 255, 0.4);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2.5rem;
}

.project-card {
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(116, 185, 255, 0.2);
  border-radius: 25px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(116, 185, 255, 0.1),
    rgba(162, 155, 254, 0.1)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-15px);
  border-color: #74b9ff;
  box-shadow: 0 30px 60px rgba(116, 185, 255, 0.3);
}

.project-image {
  height: 220px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
  background: linear-gradient(135deg, #74b9ff 0%, #a29bfe 100%);
  padding: 15px;
  border-radius: 6px;
}

/* Classes pour différents types d'images */
.project-image.portrait img {
  padding: 10px 40px;
}

.project-image.landscape img {
  padding: 0px;
}

.project-image.square img {
  padding: 20px;
}

/* Amélioration de l'affichage avec fond dégradé */
.project-image img {
  box-shadow: 0 5px 15px rgba(116, 185, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Amélioration du contraste avec fonds dégradés */
.project-image-overlay {
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 46, 0.2),
    rgba(26, 26, 46, 0.4)
  );
}

.project-image .image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #74b9ff, #a29bfe);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  z-index: 1;
}

.project-image .image-placeholder::before {
  content: "";
  font-size: 3rem;
  margin-bottom: 1rem;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shimmer 3s ease-in-out infinite;
  z-index: 2;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.project-content {
  padding: 2.5rem;
  position: relative;
  z-index: 2;
}

.project-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.project-role {
  color: #74b9ff;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.project-content p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.project-tech {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tech-tag {
  background: rgba(116, 185, 255, 0.2);
  color: #74b9ff;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid rgba(116, 185, 255, 0.3);
  backdrop-filter: blur(10px);
}

.project-buttons {
  display: flex;
  gap: 1rem;
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* About section */
.about {
  padding: 120px 0;
  background: rgba(26, 26, 46, 0.3);
  backdrop-filter: blur(10px);
}

.about-content {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 5rem;
  align-items: center;
}

.about-photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(135deg, #74b9ff, #a29bfe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 800;
  color: white;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.about-photo::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.about-text h3 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.about-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Contact moderne */
.contact {
  padding: 120px 0;
  position: relative;
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form {
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(116, 185, 255, 0.2);
  border-radius: 25px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #74b9ff, #a29bfe);
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid rgba(116, 185, 255, 0.3);
  border-radius: 12px;
  color: #ffffff;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #74b9ff;
  box-shadow: 0 0 20px rgba(116, 185, 255, 0.3);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.contact-link {
  color: #74b9ff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 24px;
  border: 1px solid rgba(116, 185, 255, 0.3);
  border-radius: 25px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.contact-link:hover {
  background: linear-gradient(135deg, #74b9ff, #a29bfe);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(116, 185, 255, 0.4);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .nav-links {
    display: none;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}
