/* general styles */

body {
  font-family: "Raleway", sans-serif !important;
  overflow-y: auto;
}

html {
  scroll-behavior: auto;
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none !important;
}

h1 {
  color: #ff637d;
  font-weight: bold;
}
h2 {
  color: #ff637d;
  font-weight: bold;
}

p {
  font-size: 20px;
  color: #484848;
}

.section {
  text-align: center;
}

.skillbar {
  cursor: pointer;
}

.hide {
  display: none;
}

.display {
  display: block;
}

/* flash alert styles */

.flash-container {
  width: 100%;
  position: fixed;
  z-index: 700;
  padding-top: 20px;
  font-weight: bold;
}

.alert {
  text-align: center !important;
  width: 500px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  color: #211809 !important;
}

/* Nav Screen */

.nav-screen {
  height: 100%;
  z-index: 500;
  position: fixed;
  background-color: #000;
  opacity: 1;
  right: -285px;
  -webkit-font-smoothing: antialiased;
  width: 285px;
}

.nav-screen .active {
  display: block;
}

/* nav header links */

.nav-brand {
  position: fixed;
  left: 0;
  z-index: 600;
  padding: 10px;
}

.nav-brand img {
  width: 50px;
}

.fa-bars {
  display: none !important;
  color: #ff637d;
  float: right;
  padding: 20px;
  position: fixed;
  right: 0;
  z-index: 500;
  cursor: pointer;
}

.fa-times {
  color: #ff637d;
  float: right;
  padding: 20px;
  right: 0;
  z-index: 600;
  cursor: pointer;
}

.header-links {
  position: fixed;
  width: 100%;
  z-index: 500;
}

.header-links li {
  color: white;
  display: inline;
  float: right;
  padding: 15px;
  font-size: 16px;
  transition: background 0.2s;
}

.header-links li.active {
  background: #ff637d;
  border-radius: 4px;
}

.header-links li.active a,
.header-links li.active a i {
  color: #fff !important;
}

.header-links a {
  color: #757575;
  -webkit-transition: all 0.2s ease-in;
}

.header-links a:hover {
  color: #ff637d !important;
  font-weight: bold;
}

.header-links li:not(.active) a:hover {
  color: #ff637d !important;
  font-weight: bold;
}

.header-links li.active a::after {
  opacity: 1;
  width: 100%;
  background-color: #fff;
}

/* slide out nav menu styles */

.nav-container {
  padding-top: 10%;
}

.nav-links {
  width: 250px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.nav-links ul {
  margin-top: 15%;
  text-align: center;
  padding-top: 10%;
}

.nav-links a {
  color: #ffffff;
  font-size: 30px;
  line-height: 2.5;
  font-weight: bold;
  text-decoration: none;
  margin-left: auto;
  margin-right: auto;
}

.nav-links a:hover {
  color: #ff637d;
  font-weight: bold;
  -webkit-transition: all 0.6s ease-in-out;
  -o-transition: all 0.6s ease-in-out;
  -ms-transition: all 0.6s ease-in-out;
  -moz-transition: all 0.6s ease-in-out;
  transition: all 0.6s ease-in-out;
}

.nav-links li.active {
  background: #ff637d;
  border-radius: 4px;
}

.nav-links li.active a,
.nav-links li.active a i {
  color: #fff !important;
}

.nav-links li.active a::after {
  opacity: 1;
  width: 100%;
  background-color: #fff;
}

#fp-nav ul li .fp-tooltip {
  color: #5f5f5f !important;
}

/* Expanding border effect */

.header-links a::after,
.nav-links a::after {
  display: block;
  margin: 0 auto;
  margin-top: 5px;
  width: 0;
  height: 2px;
  background-color: #fff;
  content: "";
  opacity: 0;
  -webkit-transition: width 0.6s, opacity 0.8s;
  -moz-transition: width 0.6s, opacity 0.8s;
  transition: width 0.6s, opacity 0.8s;
}

.header-links a:hover::after,
.header-links a:focus::after {
  opacity: 1;
  width: 100%;
}

/* main header section */

.opaque-bg {
  margin-left: auto;
  margin-right: auto;
  max-width: 380px;
  padding: 1px 1px 5px 5px;
}

.aboutme {
  background: url("./assets/img/hero.avif") no-repeat;
  background-size: cover;
}

.aboutme p {
  color: white;
  font-weight: 100;
  font-size: 17.4px;
}

/* bouncing arrow */

.fa-chevron-down {
  color: #ff637d !important;
  bottom: 10px;
  margin-left: -30px;
  cursor: pointer;
  position: absolute;
  opacity: 0;
  -webkit-transition: 1.2s ease;
}

/* Scroll down indicator (bouncing) */

@-webkit-keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    -webkit-transform: translateY(0);
    transform: translateX(0);
  }

  40% {
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px);
  }

  60% {
    -webkit-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}

@-moz-keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-30px);
  }

  60% {
    transform: translateY(-15px);
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    -ms-transform: translateY(0);
    transform: translateY(0);
  }

  40% {
    -ms-transform: translateY(-30px);
    transform: translateY(-30px);
  }

  60% {
    -ms-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}

.bounce {
  -webkit-animation: bounce 2s infinite;
  animation: bounce 2s infinite;
}

/* about section */

/* Skill bars */

.container-skillbar {
  width: 80%;
  padding-top: 30px;
  padding-right: 2%;
  padding-left: 2%;
  height: auto;
  overflow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.skillbar {
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  display: block;
  margin-bottom: 15px;
  background: #efefef;
  height: 30px;
  border-radius: 999px;
  -moz-border-radius: 999px;
  -webkit-border-radius: 999px;
  box-shadow: 0 4px 24px 0 rgba(100, 40, 212, 0.1),
    0 1.5px 8px 0 rgba(255, 99, 99, 0.1);
  border: 2px solid #fff;
  -webkit-transition: 0.4s linear;
  -moz-transition: 0.4s linear;
  -ms-transition: 0.4s linear;
  -o-transition: 0.4s linear;
  transition: 0.4s linear;
  -webkit-transition-property: width, background-color;
  -moz-transition-property: width, background-color;
  -ms-transition-property: width, background-color;
  -o-transition-property: width, background-color;
  transition-property: width, background-color;
}

.skillbar-title {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  min-width: 90px;
  padding: 0 18px;
  font-weight: bold;
  font-size: 13px;
  color: #fff;
  border-radius: 999px;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 24px;
}

.skillbar-title span {
  display: block;
  padding: 0 20px;
  height: 30px;
  line-height: 30px;
  -webkit-border-top-left-radius: 3px;
  -webkit-border-bottom-left-radius: 3px;
  -moz-border-radius-topleft: 3px;
  -moz-border-radius-bottomleft: 3px;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.skillbar-bar {
  height: 30px;
  width: 0px;
  border-radius: 999px;
  -moz-border-radius: 999px;
  -webkit-border-radius: 999px;
  background: linear-gradient(90deg,
      #ff637d 0%,
      #ffb347 35%,
      #6adcfa 70%,
      #6840d4 100%);
  box-shadow: 0 4px 24px 0 rgba(255, 99, 99, 0.18),
    0 1.5px 8px 0 rgba(106, 220, 250, 0.18);
  border: 2px solid #fff;
  transition: background 0.4s, width 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-bar-percent {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: bold;
  color: #2d2d2d;
  padding: 0 14px;
  height: 24px;
  display: flex;
  align-items: center;
  z-index: 2;
}

/* portfolio section */

.content {
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

/* Empêcher la couleur violette sur les liens visités dans la section projets */
.section[data-anchor="projects"] a:visited {
  color: #ff637d !important;
}

.content-slide {
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
  position: relative;
}

.content-slide img {
  width: 70%;
}

/* Flèches de navigation - Desktop */
.fp-controlArrow.fp-next {
  border-color: transparent transparent transparent #ff637d !important;
  right: 45px !important;
  border-width: 20px 0 20px 30px !important;
  width: 0 !important;
  height: 0 !important;
  cursor: pointer;
  position: absolute;
  top: 50% !important;
  transform: translateY(-50%);
  z-index: 10;
}

.fp-controlArrow.fp-prev {
  border-color: transparent #ff637d transparent transparent !important;
  left: 45px !important;
  border-width: 20px 30px 20px 0 !important;
  width: 0 !important;
  height: 0 !important;
  cursor: pointer;
  position: absolute;
  top: 50% !important;
  transform: translateY(-50%);
  z-index: 10;
}

#fp-nav ul li a span,
.fp-slidesNav ul li a span {
  background: rgba(0, 0, 0, 0.62) !important;
}

#fp-nav ul li a.active span,
.fp-slidesNav ul li a.active span {
  background: #ff637d !important;
  box-shadow: 0 0 8px #ff637d44;
}

/* contact us styles */

.fa-paper-plane {
  color: #484848;
}

/* paper plane shake on hover */

.plane-animated {
  animation-duration: 6s;
  animation-fill-mode: both;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}

.fa-paper-plane:hover {
  animation-play-state: running;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-10px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(10px);
  }
}

.shake {
  animation-name: shake;
}

/* input field styles */

.contact-form {
  padding: 0px 15px 0px 15px;
}

.form-control {
  border: 2px solid rgba(0, 0, 0, 0.27);
  width: 100%;
  max-width: 100%;
  height: 3em;
  font-size: 16px;
  padding: 1em;
  margin: 0.5em 0 2em 0;
  font-weight: bold;
}

.form-control:focus {
  border-color: #f67979;
  box-shadow: 0 0 0 0.2rem rgba(255, 99, 99, 0.25);
}

textarea {
  min-height: 10em;
}

label {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 5px;
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 500;
}

#submit {
  outline: none;
  padding: 12px;
  min-width: 200px;
  border-radius: 2px;
  border: 2px solid #ff637d;
  text-align: center;
  font-size: 1em;
  color: #ff637d;
  background-color: white;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
}

#submit:hover {
  background-color: #ff637d;
  color: white;
  -webkit-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  -ms-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

/* footer styles */

.footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 40px 20px;
}

.footer::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="%23333" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.1;
  z-index: 1;
}

.footer-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  width: 100%;
}

.footer-title {
  color: #ff637d;
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-subtitle {
  color: #fff;
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
  font-weight: 300;
}

.tech-stack {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 40px 0;
}

.tech-item {
  background: rgba(255, 99, 125, 0.1);
  border: 2px solid rgba(255, 99, 125, 0.3);
  padding: 12px 20px;
  border-radius: 25px;
  color: #fff;
  font-size: 0.9em;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tech-item::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 ease;
}

.tech-item:hover {
  background: rgba(255, 99, 125, 0.2);
  border-color: #ff637d;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 99, 125, 0.3);
}

.tech-item:hover::before {
  left: 100%;
}

.social-section {
  margin: 50px 0 30px 0;
}

.social-section h3 {
  color: #fff;
  font-size: 1.5em;
  margin-bottom: 25px;
  font-weight: 600;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 40px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.5em;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: #ff637d;
  border-radius: 50%;
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.social-links a:hover {
  color: #fff;
  border-color: #ff637d;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 20px rgba(255, 99, 125, 0.4);
}

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

.footer-quote {
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1em;
  margin: 30px 0;
  max-width: 600px;
  line-height: 1.6;
}

.footer-bottom {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9em;
  text-align: center;
}

.code-animation {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #ff637d;
  font-family: 'Courier New', monospace;
  font-size: 0.8em;
  opacity: 0.3;
  animation: typing 4s infinite;
}

@keyframes typing {

  0%,
  90%,
  100% {
    opacity: 0.3;
  }

  45% {
    opacity: 0.8;
  }
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.floating-elements::before,
.floating-elements::after {
  content: '{ }';
  position: absolute;
  color: rgba(255, 99, 125, 0.1);
  font-size: 4em;
  font-weight: bold;
  animation: float 6s ease-in-out infinite;
}

.floating-elements::before {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-elements::after {
  bottom: 20%;
  right: 10%;
  animation-delay: 3s;
  content: '</>';
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.1;
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
    opacity: 0.3;
  }
}

/* loading screen animation */

.spinner {
  position: fixed;
  width: 100%;
  height: 100%;
  padding: 25%;
  background-color: #2f2f2f;
  text-align: center;
  font-size: 10px;
  z-index: 1000;
}

.spinner>div {
  background-color: #ff637d;
  height: 100%;
  width: 6px;
  display: inline-block;
  -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
  animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

.spinner .rect2 {
  -webkit-animation-delay: -1.1s;
  animation-delay: -1.1s;
}

.spinner .rect3 {
  -webkit-animation-delay: -1s;
  animation-delay: -1s;
}

.spinner .rect4 {
  -webkit-animation-delay: -0.9s;
  animation-delay: -0.9s;
}

.spinner .rect5 {
  -webkit-animation-delay: -0.8s;
  animation-delay: -0.8s;
}

@-webkit-keyframes sk-stretchdelay {

  0%,
  40%,
  100% {
    -webkit-transform: scaleY(0.4);
  }

  20% {
    -webkit-transform: scaleY(1);
  }
}

@keyframes sk-stretchdelay {

  0%,
  40%,
  100% {
    transform: scaleY(0.4);
    -webkit-transform: scaleY(0.4);
  }

  20% {
    transform: scaleY(1);
    -webkit-transform: scaleY(1);
  }
}

.blinking-cursor {
  font-weight: 500;
  margin-left: 4px;
  font-size: 20px;
  color: white !important;
  -webkit-animation: 1s blink step-end infinite;
  -moz-animation: 1s blink step-end infinite;
  -ms-animation: 1s blink step-end infinite;
  -o-animation: 1s blink step-end infinite;
  animation: 1s blink step-end infinite;
}

@keyframes blink {

  from,
  to {
    color: transparent;
  }

  50% {
    color: white;
  }
}

@-moz-keyframes blink {

  from,
  to {
    color: transparent;
  }

  50% {
    color: white;
  }
}

@-webkit-keyframes blink {

  from,
  to {
    color: transparent;
  }

  50% {
    color: white;
  }
}

@-ms-keyframes blink {

  from,
  to {
    color: transparent;
  }

  50% {
    color: white;
  }
}

@-o-keyframes blink {

  from,
  to {
    color: transparent;
  }

  50% {
    color: white;
  }
}

.success {
  padding: 1em;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #468847;
  background-color: #dff0d8;
  border: 1px solid #d6e9c6;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}

.error {
  padding: 1em;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #b94a48;
  background-color: #f2dede;
  border: 1px solid rgba(185, 74, 72, 0.3);
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}

/* FullPage.js optimizations */

#fullpage {
  overflow: visible;
}

/* Classe pour les transitions fluides */
body.fp-transitioning {
  pointer-events: none;
}

body.fp-transitioning * {
  pointer-events: none;
}

body:not(.fp-transitioning) {
  pointer-events: auto;
}

body:not(.fp-transitioning) * {
  pointer-events: auto;
}

/* Amélioration des performances des animations CSS */
.fp-section {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000px;
  perspective: 1000px;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* Amélioration de la navigation avec les points */
#fp-nav ul li a span {
  transition: all 0.3s ease !important;
}

/* Style personnalisé pour la scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #ff637d;
  border-radius: 4px;
}

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

/* =================================
   MEDIA QUERIES - MOBILE OPTIMIZATIONS
   ================================= */

/* Tablettes */
@media (min-width: 501px) and (max-width: 768px) {
  .content-slide img {
    width: 85%;
  }

  .fp-controlArrow.fp-next {
    right: 20px !important;
  }

  .fp-controlArrow.fp-prev {
    left: 20px !important;
  }

  .container-skillbar {
    width: 90%;
  }

  .skillbar {
    width: 90%;
  }
        .nav-header {
          display: none !important;
        }
}

/* Mobile - Principal */
  /* Cacher la navigation principale sur mobile */

/* =================================
   CORRECTION NAVIGATION MOBILE - POINTS FULLPAGE.JS
   ================================= */

/* Mobile - Principal */
@media (min-width: 100px) and (max-width: 500px) {
    .nav-header {
        display: none !important;
      }

  /* Navigation mobile */
  .fa-bars {
    display: block !important;
  }

  .header-links {
    display: none;
  }

  /* Forcer l'affichage de la navigation fullPage.js sur mobile */
  #fp-nav {
    display: block !important;
    position: fixed !important;
    right: 10px !important;
    top: 50% !important;
    z-index: 9999 !important;
    transform: translateY(-50%);
    opacity: 1 !important;
  }

  /* CORRECTION: Fixer la taille et position des points de navigation */
  #fp-nav ul li {
    width: 14px !important;
    height: 14px !important;
    margin: 7px 0 !important;
    position: relative !important;
  }

  #fp-nav ul li a {
    width: 14px !important;
    height: 14px !important;
    display: block !important;
    position: relative !important;
    /* Empêcher tout décalage */
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
  }

  #fp-nav ul li a span {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50%;
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    /* Transition fluide sans déplacement */
    transition: all 0.3s ease !important;
    /* Empêcher tout changement de position */
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Point normal */
  #fp-nav ul li a span {
    background: rgba(0, 0, 0, 0.62) !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
  }

  /* Point actif - GARDER LA MÊME TAILLE ET POSITION */
  #fp-nav ul li a.active span {
    background: #ff637d !important;
    border: 1px solid transparent !important;
    /* Même border pour éviter le décalage */
    box-shadow: 0 0 8px rgba(255, 99, 125, 0.4) !important;
    /* Force la position - ne bouge pas */
    transform: translate(-50%, -50%) !important;
    width: 12px !important;
    /* Même taille exacte */
    height: 12px !important;
    /* Même taille exacte */
  }

  /* Hover effect sans déplacement */
  #fp-nav ul li a:hover span {
    background: rgba(255, 99, 125, 0.8) !important;
    transform: translate(-50%, -50%) !important;
    /* Position fixe */
  }

  /* Masquer les tooltips sur mobile */
  #fp-nav .fp-tooltip {
    display: none !important;
  }

  /* Section About */
  .aboutParagraph {
    font-size: 1.1em;
    line-height: 1.5;
    padding: 8px 0;
  }

  .container-skillbar {
    width: 100%;
    padding: 0;
  }

  .skillbar {
    width: 100% !important;
  }

  h1 {
    font-size: 2em;
    line-height: 1.2;
    padding: 10px 0;
    word-break: break-word;
  }

  /* Section Home */
  .content {
    max-width: 300px;
  }

  .aboutme p {
    font-size: 1.1em;
    line-height: 1.5;
    padding: 8px 0;
  }

  .opaque-bg {
    max-width: 95vw;
    padding: 8px 8px 12px 12px;
  }

  /* Section Portfolio - SOLUTION PRINCIPALE */
  .content-slide {
    position: relative;
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
  }

  .content-slide h1 {
    margin-bottom: 10px;
  }

  .content-slide p {
    margin-bottom: 20px;
  }

  .content-slide img {
    width: 90%;
    max-height: 50vh;
    object-fit: contain;
    margin-bottom: 30px;
  }

  /* Repositionner les flèches sous l'image en mobile */
  .fp-controlArrow.fp-next {
    position: absolute !important;
    top: auto !important;
    bottom: 80px !important;
    right: 35% !important;
    left: auto !important;
    transform: translateX(20px) !important;
    border-width: 15px 0 15px 25px !important;
    border-color: transparent transparent transparent #ff637d !important;
    z-index: 100;
  }

  .fp-controlArrow.fp-prev {
    position: absolute !important;
    top: auto !important;
    bottom: 80px !important;
    left: 30% !important;
    right: auto !important;
    transform: translateX(-20px) !important;
    border-width: 15px 25px 15px 0 !important;
    border-color: transparent #ff637d transparent transparent !important;
    z-index: 100;
  }

  /* Ajuster la taille des flèches pour mobile */
  .fp-controlArrow.fp-next,
  .fp-controlArrow.fp-prev {
    opacity: 0.8;
    transition: opacity 0.3s ease;
  }

  .fp-controlArrow.fp-next:hover,
  .fp-controlArrow.fp-prev:hover {
    opacity: 1;
  }

  /* Contact form mobile */
  .contact-form {
    padding: 0 10px;
  }

  .form-control {
    font-size: 16px;
  }

  #submit {
    min-width: 150px;
    padding: 10px;
  }

  /* Footer mobile */
  .footer {
    height: 100vh;
    padding: 30px 15px;
  }

  .footer-title {
    font-size: 2em;
    margin-bottom: 10px;
  }

  .footer-subtitle {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .tech-stack {
    gap: 10px;
    margin: 25px 0;
  }

  .tech-item {
    padding: 8px 15px;
    font-size: 0.8em;
  }

  .social-section h3 {
    font-size: 1.2em;
    margin-bottom: 20px;
  }

  .social-links {
    gap: 20px;
    margin-bottom: 25px;
  }

  .social-links a {
    width: 50px;
    height: 50px;
    font-size: 1.2em;
  }

  .footer-quote {
    font-size: 1em;
    margin: 20px 0;
    padding: 0 10px;
  }

  .code-animation {
    font-size: 0.7em;
    top: 10px;
    right: 10px;
  }

  .floating-elements::before,
  .floating-elements::after {
    font-size: 2.5em;
  }
}

/* Tablettes - Garder la navigation normale */
@media (min-width: 501px) and (max-width: 768px) {
  .content-slide img {
    width: 85%;
  }

  .fp-controlArrow.fp-next {
    right: 20px !important;
  }

  .fp-controlArrow.fp-prev {
    left: 20px !important;
  }

  .container-skillbar {
    width: 90%;
  }

  .skillbar {
    width: 90%;
  }

  /* Navigation normale pour tablettes */
  .fa-bars {
    display: none !important;
  }

  .header-links {
    display: block;
  }
}

/* Mobile très petit */
@media (max-width: 320px) {
    .nav-header {
        display: none !important;
      }
  .content-slide {
    height: calc(100vh - 100px);
    padding: 10px 0;
  }

  .content-slide img {
    width: 95%;
    max-height: 45vh;
    margin-bottom: 25px;
  }

  h1 {
    font-size: 1.8em;
  }

  .opaque-bg {
    max-width: 98vw;
    padding: 5px;
  }

  .fp-controlArrow.fp-next,
  .fp-controlArrow.fp-prev {
    bottom: 60px !important;
    border-width: 12px 0 12px 20px !important;
  }

  .fp-controlArrow.fp-prev {
    border-width: 12px 20px 12px 0 !important;
  }

  /* Navigation points plus petits pour très petits écrans */
  #fp-nav ul li {
    width: 12px !important;
    height: 12px !important;
  }

  #fp-nav ul li a {
    width: 12px !important;
    height: 12px !important;
  }

  #fp-nav ul li a span {
    width: 10px !important;
    height: 10px !important;
  }

  #fp-nav ul li a.active span {
    width: 10px !important;
    height: 10px !important;
  }
}

/* Mobile très petit */
@media (max-width: 320px) {
    .nav-header {
        display: none !important;
      }
  .content-slide {
    height: calc(100vh - 100px);
    /* Ajuster pour les très petits écrans */
    padding: 10px 0;
  }

  .content-slide img {
    width: 95%;
    max-height: 45vh;
    margin-bottom: 25px;
  }

  h1 {
    font-size: 1.8em;
  }

  .opaque-bg {
    max-width: 98vw;
    padding: 5px;
  }

  .fp-controlArrow.fp-next,
  .fp-controlArrow.fp-prev {
    bottom: 60px !important;
    /* Ajuster pour les petits écrans */
    border-width: 12px 0 12px 20px !important;
  }

  .fp-controlArrow.fp-prev {
    border-width: 12px 20px 12px 0 !important;
  }
}
/* =================================
   WHATSAPP FLOATING BUTTON
   ================================= */

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  left: 25px;
  z-index: 1000;
}

.whatsapp-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
  color: white;
  text-decoration: none;
}

.whatsapp-button:focus,
.whatsapp-button:active {
  color: white;
  text-decoration: none;
}

.whatsapp-button::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.3);
  animation: whatsapp-ripple 2s infinite;
  z-index: -1;
}

.whatsapp-tooltip {
  position: absolute;
  left: 75px;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
  font-family: "Raleway", sans-serif;
  font-weight: 500;
}

.whatsapp-tooltip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -5px;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: #333;
}

.whatsapp-button:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  left: 80px;
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
  }

  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
}

@keyframes whatsapp-ripple {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  70% {
    transform: scale(1.4);
    opacity: 0;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* WhatsApp Button Mobile Responsive */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    left: 20px;
    width: 55px;
    height: 55px;
  }

  .whatsapp-button {
    width: 55px;
    height: 55px;
    font-size: 24px;
  }

  .whatsapp-tooltip {
    left: 65px;
    font-size: 12px;
    padding: 6px 10px;
  }

  .whatsapp-button:hover .whatsapp-tooltip {
    left: 70px;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-button {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .whatsapp-tooltip {
    display: none;
    /* Masquer le tooltip sur très petits écrans */
  }
}
#moveDown {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  cursor: pointer;

  /* Maintain the existing bouncing animation and positioning */
  color: #ff637d !important;
  bottom: 10px;
  margin-left: -30px;
  position: absolute;
  opacity: 0;
  -webkit-transition: 1.2s ease;
  transition: 1.2s ease;
}

/* Ensure the icon itself is properly styled */
#moveDown.fa-chevron-down {
  font-size: 3em;
  /* Maintain the fa-3x size */
}

/* Optional: Add hover effect for better UX */
#moveDown:hover {
  color: #e55570 !important;
  transform: scale(1.1);
  transition: all 0.3s ease;
}

/* Make sure the button doesn't have any default focus styles */
#moveDown:focus {
  outline: none !important;
  box-shadow: none !important;
}