@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

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

img {
  width: 100%;
  display: flex;
}

a {
  text-decoration: none;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #18181b;
}

nav {
  max-width: 1200px;
  margin: auto;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  max-width: 100px;
}

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

.link a {
  position: relative;
  padding-bottom: 0.75rem;
  color: #fff;
}

.link a::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 0;
  bottom: 0;
  left: 0;
  background-color: #1d4ed8;
  transition: all 0.3s ease;
}

.link a:hover::after {
  width: 70%;
}

.btn {
  padding: 1rem 2rem;
  font-size: 1rem;
  color: #fff;
  background-color: #1d4ed8;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  font-family: inherit;
}

.btn:hover {
  background-color: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(29, 78, 216, 0.4);
}

.btn i {
  font-size: 1.1rem;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0rem 2rem;
}

.blur {
  position: absolute;
  box-shadow: 0 0 1000px 50px #1d4ed8;
  z-index: -100;
}

header {
  position: relative;
  padding: 4rem 0 6rem 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 2rem;
}

header .content h4 {
  margin-bottom: 1rem;
  color: #ccc;
  font-size: 1rem;
  font-weight: 600;
}

header .content h1 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 3rem;
  font-weight: 700;
  line-height: 4rem;
}

header .content h1 span {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px #fff;
}

header .content p {
  margin-bottom: 2rem;
  color: #ccc;
}

header .image {
  position: relative;
}

header .image::before {
  content: "K";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 80rem;
  font-weight: 400;
  line-height: 60rem;
  color: #1d4ed8;
  opacity: 0.2;
  z-index: -100;
}

header .image img {
  max-width: 600px;
  margin: auto;
}

section {
  margin: 6rem 0;
  padding: 4rem 0;
}

section .header {
  margin-bottom: 3rem;
  color: #fff;
  text-align: center;
  font-size: 2.25rem;
  font-weight: 600;
}

.features {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.features .card {
  background-color: #27272a;
  padding: 1rem;
  border: 2px solid transparent;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.features .card:hover {
  background-color: #323232;
  border-color: #fff;
}

.features .card span {
  display: inline-block;
  background-color: #1e40af;
  padding: 2px 9px;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  color: #fff;
  border-radius: 5px;
}

.features .card h4 {
  margin-bottom: 0.5rem;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
}

.features .card p {
  color: #ccc;
  margin-bottom: 1rem;
}

.features .card a {
  color: #fff;
  transition: all 0.3s ease;
}

.features .card a:hover {
  color: #1e40af;
}

.sub-header {
  max-width: 600px;
  margin: auto;
  text-align: center;
  color: #ccc;
}

.pricing {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pricing .card {
  padding: 3rem 2rem;
  background-color: #27272a;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.pricing .card:hover {
  background-color: #323232;
  border-color: #fff;
}

.pricing .card .content {
  flex: 1;
  margin-bottom: 2rem;
}

.pricing .card h4 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 500;
}

.pricing .card h3 {
  color: #fff;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 600;
  border-bottom: 2px dashed #fff;
}

.pricing .card p {
  color: #fff;
  margin-bottom: 0.75rem;
}

.pricing .card p i {
  color: #ccc;
  font-size: 1.2rem;
  margin-right: 0.3rem;
}

.pricing .card button {
  color: #fff;
  background-color: transparent;
  border: 2px solid #fff;
}

.pricing .card button:hover {
  background-color: #1e40af;
  border-color: #1e40af;
}

footer {
  position: relative;
  display: grid;
  grid-template-columns: 400px repeat(3, 1fr);
  gap: 2rem;
  margin: 6rem 0 0 0;
  padding: 4rem 0;
}

footer .column .logo {
  max-width: 100px;
  margin-bottom: 2rem;
}

footer .column p {
  color: #ccc;
  margin-bottom: 2rem;
}

footer .column .socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

footer .column .socials a {
  color: #ccc;
  border: 1px solid #ccc;
  padding: 5px 10px;
  font-size: 1.25rem;
  border-radius: 100%;
  transition: all 0.3s ease;
}

footer .column .socials a:hover {
  color: #fff;
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

footer .column h4 {
  color: #fff;
  margin-bottom: 2rem;
  font-size: 1.2rem;
  font-weight: 500;
}

footer .column > a {
  display: block;
  color: #ccc;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

footer .column > a:hover {
  color: #1d4ed8;
}

.copyright {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
  color: #fff;
  font-size: 0.8rem;
  text-align: center;
}

@media screen and (max-width: 1024px) {
  header .image::before {
    font-size: 60rem;
    line-height: 60rem;
  }
}

@media screen and (max-width: 768px) {
  header .image::before {
    font-size: 30rem;
    line-height: 30rem;
  }
}

@media screen and (max-width: 425px) {
  header .image::before {
    font-size: 30rem;
    line-height: 30rem;
  }

  header {
    grid-template-columns: repeat(1, 1fr);
  }

  header .image {
    grid-area: 1/1/2/2;
  }

  .nav-links {
    display: none;
  }

  header .content h1 {
    font-size: 2rem;
    line-height: 3rem;
  }

  header .content p {
    margin-bottom: 1rem;
  }

  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  footer {
    grid-template-columns: 1fr 150px;
  }
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.about-text h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.about-text p {
  color: #ccc;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #27272a, #323232);
  border-radius: 15px;
  border: 1px solid #404040;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(29, 78, 216, 0.1),
    rgba(59, 130, 246, 0.05)
  );
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1;
}

.stat:hover::before {
  opacity: 1;
}

.stat:hover {
  transform: translateY(-5px);
  border-color: #1d4ed8;
  box-shadow: 0 10px 30px rgba(29, 78, 216, 0.2);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(29, 78, 216, 0.3);
  transition: all 0.3s ease;
}

.stat-icon i {
  font-size: 1.5rem;
  color: #fff;
}

.stat:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.4);
}

.stat h4 {
  color: #1d4ed8;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.stat p {
  color: #ccc;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  z-index: 2;
}

/* Timeline Section - Modern Experience */
.timeline {
  position: relative;
  margin-top: 3rem;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #1d4ed8, #3b82f6, #60a5fa);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 3rem;
}

.timeline-marker {
  position: absolute;
  left: -2.5rem;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  background: #1d4ed8;
  border-radius: 50%;
  border: 3px solid #18181b;
  z-index: 2;
  box-shadow: 0 0 0 4px #1d4ed8, 0 0 20px rgba(29, 78, 216, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 4px #1d4ed8, 0 0 20px rgba(29, 78, 216, 0.5);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(29, 78, 216, 0.3),
      0 0 30px rgba(29, 78, 216, 0.7);
  }
  100% {
    box-shadow: 0 0 0 4px #1d4ed8, 0 0 20px rgba(29, 78, 216, 0.5);
  }
}

.timeline-content {
  background: linear-gradient(135deg, #27272a, #323232);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid #404040;
  transition: all 0.3s ease;
  position: relative;
}

.timeline-content::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 1rem;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #323232;
}

.timeline-content:hover {
  transform: translateY(-5px);
  border-color: #1d4ed8;
  box-shadow: 0 15px 40px rgba(29, 78, 216, 0.2);
}

.timeline-date {
  color: #1d4ed8;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-content h3 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.timeline-content h4 {
  color: #ccc;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.timeline-content p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(29, 78, 216, 0.4);
}

.duration-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.5);
  }
  100% {
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  }
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.skill-category {
  background: linear-gradient(135deg, #27272a, #323232);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid #404040;
  transition: all 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  border-color: #1d4ed8;
  box-shadow: 0 10px 30px rgba(29, 78, 216, 0.2);
}

.skill-category h3 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-name {
  color: #ccc;
  font-weight: 500;
  font-size: 0.9rem;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: #404040;
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #1d4ed8, #3b82f6);
  border-radius: 4px;
  width: 0;
  transition: width 1.5s ease-in-out;
  position: relative;
}

.skill-progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: linear-gradient(135deg, #27272a, #323232);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid #404040;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: #1d4ed8;
  box-shadow: 0 20px 40px rgba(29, 78, 216, 0.3);
}

.project-image {
  height: 200px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  position: relative;
  overflow: hidden;
}

.project-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-image.active {
  opacity: 1;
}

.carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #fff;
  transform: scale(1.2);
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

.project-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

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

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

.project-link {
  width: 50px;
  height: 50px;
  background: #1d4ed8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: #3b82f6;
  transform: scale(1.1);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.project-content p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: #404040;
  color: #ccc;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: #1d4ed8;
  color: #fff;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #27272a, #323232);
  border-radius: 15px;
  border: 1px solid #404040;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.contact-item:hover {
  transform: translateY(-3px);
  border-color: #1d4ed8;
  box-shadow: 0 10px 30px rgba(29, 78, 216, 0.2);
  text-decoration: none;
  color: inherit;
}

.contact-item i {
  font-size: 1.5rem;
  color: #1d4ed8;
  width: 50px;
  height: 50px;
  background: rgba(29, 78, 216, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item h4 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.contact-item p {
  color: #ccc;
  font-size: 0.9rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group input,
.form-group textarea {
  padding: 1rem;
  background: #27272a;
  border: 1px solid #404040;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #666;
}

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

.timeline-item {
  animation: fadeInUp 0.6s ease-out;
}

.timeline-item:nth-child(2) {
  animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
  animation-delay: 0.4s;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  section {
    margin: 4rem 0;
    padding: 3rem 0;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media screen and (max-width: 768px) {
  /* Prévenir le défilement horizontal */
  body {
    overflow-x: hidden;
  }

  html {
    overflow-x: hidden;
  }

  section {
    margin: 3rem 0;
    padding: 2rem 0;
  }

  /* Navigation mobile */
  .nav {
    position: relative;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    padding: 1rem 0;
  }

  .nav .nav-links {
    display: none !important;
  }

  .nav .btn {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
    order: 2;
    margin-left: auto;
  }

  .nav .nav-logo {
    order: 1;
    flex: 1;
  }

  /* Style du logo sur mobile */
  .nav .nav-logo img {
    max-height: 40px;
  }

  /* Masquer la photo et la lettre K sur mobile */
  header .image {
    display: none;
  }

  header .content::before {
    display: none;
  }

  /* Ajuster le layout du header sur mobile */
  header {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 0 4rem 0;
  }

  header .content {
    max-width: 100%;
    padding: 0 1rem;
  }

  /* S'assurer que le menu mobile est parfaitement centré */
  .nav-links.mobile-active {
    padding: 2rem;
    box-sizing: border-box;
  }

  .nav-links.mobile-active .link {
    width: 100%;
    max-width: 280px;
  }

  /* Simplifier le footer sur mobile */
  footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  footer .column:nth-child(2),
  footer .column:nth-child(3),
  footer .column:nth-child(4) {
    display: none;
  }

  footer .column:first-child {
    max-width: 100%;
  }

  /* Centrer le copyright sur mobile */
  .copyright {
    text-align: center;
    margin-top: 2rem;
  }

  .timeline {
    padding-left: 1rem;
  }

  .timeline::before {
    left: 0.5rem;
  }

  .timeline-item {
    padding-left: 2rem;
  }

  .timeline-marker {
    left: -1.5rem;
  }

  .timeline-content::before {
    left: -0.5rem;
  }

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

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

@media screen and (max-width: 425px) {
  section {
    margin: 2rem 0;
    padding: 1.5rem 0;
  }

  .timeline {
    padding-left: 0.5rem;
  }

  .timeline::before {
    left: 0.25rem;
  }

  .timeline-item {
    padding-left: 1.5rem;
  }

  .timeline-marker {
    left: -1.25rem;
    width: 0.8rem;
    height: 0.8rem;
  }

  .timeline-content {
    padding: 1.5rem;
  }

  .timeline-content::before {
    left: -0.25rem;
  }
}

/* Menu Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  position: relative;
  margin-left: auto;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Menu mobile */
.nav-links.mobile-active {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  display: flex !important;
  transition: all 0.3s ease;
  opacity: 1;
  visibility: visible;
  overflow-x: hidden;
}

/* S'assurer que le menu normal est masqué sur mobile */
@media screen and (max-width: 768px) {
  .nav-links:not(.mobile-active) {
    display: none !important;
  }
}

.nav-links.mobile-active .link {
  margin: 1.5rem 0;
  opacity: 1;
  transform: translateY(0);
  text-align: center;
  width: 100%;
}

.nav-links.mobile-active .link a {
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  padding: 1rem 2rem;
  border-radius: 10px;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.nav-links.mobile-active .link a:hover {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  transform: scale(1.05);
}

/* Bouton flottant */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(29, 78, 216, 0.3);
  transition: all 0.3s ease;
  z-index: 999;
}

.scroll-to-top:hover {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.4);
}

.scroll-to-top.show {
  display: flex;
}
