/* ===== GOOGLE FONTS ===== */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&display=swap");

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --first-color: #34495e; /* Dark blue-grey */
  --white-color: #f5f5f5; /* Off-white */
  --dark-color: #2c3e50; /* Darker blue-grey */
  --text-color: #666666; /* Medium grey */

  /* Typography */
  --body-font: "Montserrat", sans-serif;
  --font-medium: 500;

  /* Font Sizes */
  --big-font-size: 6.25rem;
  --h2-font-size: 1.25rem;
  --h1-font-size: 1.1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;

  /* Layout */
  --header-height: 3rem;
  --mb-1: 0.5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;

  /* Z-Index */
  --z-fixed: 100;
}

/* ===== RESPONSIVE FONT SIZES ===== */
@media screen and (min-width: 768px) {
  :root {
    --big-font-size: 7rem;
    --h2-font-size: 2rem;
    --h1-font-size: 1.1rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
  }
}

/* ===== BASE RESET ===== */
*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== COMMON ELEMENTS ===== */
ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== COMMON CLASSES ===== */
.section {
  padding: 3rem 0;
}

.section-title {
  position: relative;
  font-size: var(--h2-font-size);
  color: var(--dark-color);
  margin: var(--mb-4) 0;
  text-align: center;
}

.section-title::after {
  position: absolute;
  content: "";
  width: 32px;
  height: 0.18rem;
  left: 0;
  right: 0;
  margin: auto;
  top: 2rem;
  background-color: var(--first-color);
}

.bd-grid {
  max-width: 1024px;
  display: grid;
  grid-template-columns: 100%;
  grid-column-gap: 2rem;
  width: calc(100% - 2rem);
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--first-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

  /* Transition fluide pour l'animation */
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

/* Classe pour masquer le header */
.l-header--hidden {
  transform: translateY(-100%);
}

/* Alternative avec une ombre plus marquée */
.l-header-alt {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--first-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.l-header-alt--hidden {
  transform: translateY(-100%);
}

/* Option avec dégradé d'ombre */
.l-header-gradient {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--first-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);

  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.l-header-gradient--hidden {
  transform: translateY(-100%);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__menu {
  transition: 0.5s;
}

.nav__item {
  margin-bottom: var(--mb-4);
}

.nav__link {
  position: relative; /* CORRECTION: Ajouté pour le positionnement du pseudo-élément */
  color: var(--dark-color);
  text-decoration: none; /* CORRECTION: Enlève le soulignement par défaut */
  display: inline-block; /* CORRECTION: Améliore le rendu de l'effet hover */
  transition: color 0.3s ease; /* CORRECTION: Transition fluide pour la couleur */
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -5px; /* espace entre le texte et la ligne */
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--first-color);
  transition: width 0.3s ease-in-out;
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__logo {
  color: var(--white-color);
}

.nav__logo-img {
  width: 40px; /* Réduit la largeur à 40px */
  height: auto; /* Garde les proportions */
  max-width: 100%; /* Empêche de dépasser le conteneur */
  display: block; /* Supprime les petits espaces en bas de l'image */
}

.nav__toggle {
  color: var(--white-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* BONUS: Variantes d'effet hover */

/* Effet hover avec ligne qui vient du centre */
.nav__link--center::after {
  left: 50%;
  transform: translateX(-50%);
}

.nav__link--center:hover::after {
  width: 100%;
}

/* Effet hover avec ligne colorée différente */
.nav__link--colored::after {
  background: linear-gradient(90deg, var(--first-color), #ff6b6b);
}

/* Effet hover avec animation plus rapide */
.nav__link--fast::after {
  transition: width 0.2s ease-out;
}

.show {
  right: 0;
}

.active::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}

/* ===== DROPDOWN MENU ===== */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white-color);
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  border: 1px solid #e0e0e0;
  padding: 0.5rem 0;
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: 0.7rem 1.2rem;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
}

.nav__dropdown-link:hover {
  background: rgba(52, 73, 94, 0.1);
  color: var(--first-color);
  border-left-color: var(--first-color);
  padding-left: 1.5rem;
}

.nav__link i {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.nav__dropdown:hover .nav__link i {
  transform: rotate(180deg);
}

/* Mobile dropdown styles */
@media screen and (max-width: 768px) {
  .nav__dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    color: #2c3e50;
    background: rgba(52, 73, 94, 0.05);
    margin-top: 0.5rem;
    border: none;
    border-radius: 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav__dropdown:hover .nav__dropdown-menu {
    max-height: 200px;
  }

  .nav__dropdown-link {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .nav__dropdown-link:hover {
    background: rgba(52, 73, 94, 0.1);
    padding-left: 1.2rem;
  }
}

/* ===== HOME SECTION ===== */
.home {
  position: relative;
  background-color: var(--first-color);
  overflow: hidden;
}

/* ===== ANIMATED BACKGROUND SHAPES ===== */
.background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  background-color: var(--white-color);
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  right: -50px;
  animation-delay: 2s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  left: 20%;
  animation-delay: 4s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  top: 20%;
  right: 30%;
  animation-delay: 1s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) scale(1);
    opacity: 0.1;
  }
  50% {
    transform: translateY(-20px) scale(1.1);
    opacity: 0.15;
  }
}

.home__container {
  height: calc(100vh - var(--header-height));
  row-gap: 5rem;
  position: relative;
  z-index: 2;
}

.home__title {
  align-self: flex-end;
  font-size: var(--big-font-size);
  color: var(--white-color);
  line-height: 0.9;
  margin-top: 80px;
}

@keyframes blink-caret {
  50% {
    border-color: transparent;
  }
}

.home__title span {
  text-shadow: 0 20px 25px rgba(0, 0, 0, 0.5);
  
}

.home__scroll {
  align-self: flex-end;
  padding-bottom: var(--mb-4);
}

.home__scroll-link {
  writing-mode: vertical-lr;
  transform: rotate(-180deg);
  color: var(--white-color);
}

.home__img {
  position: absolute;
  right: 0;
  bottom: 0px;
  width: 250px;
}

/* ===== ABOUT SECTION ===== */
.about__container {
  justify-items: center;
  row-gap: 2rem;
  text-align: center;
}

.about__img {
  display: flex;
  justify-content: center;
  width: 180px;
}

.about__img img {
  width: 100%;
  height: 80%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3);
}

.about__subtitle {
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-bottom: var(--mb-1);
}

.about__text {
  margin-bottom: var(--mb-4);
}

.about__profession {
  display: block;
  margin-bottom: var(--mb-4);
}
.about__social {
  text-align: center;
  margin-top: 5px;
}

.about__social-icon {
  font-size: 27px;
  margin: var(--mb-1);
}

.about__social-icon:hover {
  color: var(--first-color);
}

/* ===== EXPERTISE SECTION STYLES ===== */
.about__expertise {
  margin-top: 2rem;
  padding: 2rem 0;
}

.expertise__title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--first-color);
  font-weight: var(--font-semi);
}

.expertise__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.expertise__card {
  background: var(--white-color);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 1px solid #f0f0f0;
}

.expertise__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.expertise__icon {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
  display: block;
}

.expertise__card h4 {
  color: var(--first-color);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: var(--font-semi);
}

.expertise__card ul {
  list-style: none;
  padding: 0;
}

.expertise__card li {
  padding: 0.3rem 0;
  color: var(--text-color);
  position: relative;
  padding-left: 1rem;
}

.expertise__card li:before {
  content: "✓";
  color: var(--first-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* About Info Improvements */
.about__info .expertise__icon {
  font-size: 1.5rem;
  display: inline-block;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* ===== SKILLS SECTION ===== */
.skills__container {
  row-gap: 2rem;
}

.skills__subtitle {
  color: var(--first-color);
  margin-bottom: var(--mb-3);
}

.skills__name {
  display: inline-block;
  font-size: var(--small-font-size);
  margin-right: var(--mb-2);
  margin-bottom: var(--mb-3);
  padding: 0.25rem 0.5rem;
  background-color: var(--white-color);
  border-radius: 0.25rem;
}

.skills__name:hover {
  background-color: var(--first-color);
  color: var(--white-color);
}

.skills__img img {
  border-radius: 0.5rem;
}

.skills__icons {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.5rem;
  justify-content: center;
  text-align: center;
}

.skill__icon-circle {
  width: 70px;
  height: 70px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.21);
  transition: transform 0.3s ease;
  position: relative;
}

.skill__icon-circle:hover {
  transform: translateY(-5px);
}

.skill__icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.skill__icon-circle i {
  font-size: 30px;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
  background-color: var(--white-color);
}

.portfolio__container {
  justify-items: center;
  row-gap: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.portfolio__item {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-out, box-shadow 0.2s; /* Réduit à 0.2s et changé à ease-out */
}

.portfolio__item:hover {
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

.portfolio__img {
  position: relative;
  overflow: hidden;
}

.portfolio__img img {
  border-radius: 0.5rem;
  margin-bottom: 10px;
}

.portfolio__link {
  position: absolute;
  bottom: -100%;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: 0.3s;
}

.portfolio__img:hover .portfolio__link {
  bottom: 0;
}

.portfolio__link-name,
.portfolio__link-demo {
  display: inline-block;
  padding: 6px 11px;
  margin: 7px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 400;
  transition: background 0.3s;
}

.portfolio__link-name {
  background: var(--first-color);
  color: white;
}

.portfolio__link-name:hover {
  background: #283e55; /* Bleu encore plus foncé */
}

.portfolio__link-demo {
  background: #e3f2fd;
  color: var(--first-color);
}

.portfolio__link-demo:hover {
  background: #d2e8f7; /* Vert encore plus foncé */
}

.cyber-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}

.tech-tag {
  background-color: #34495e;
  color: white;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-block; /* Important pour l'affichage */
}

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

#cybersecurity .portfolio__img {
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
}

#cybersecurity .portfolio__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

#cybersecurity .portfolio__item:hover .portfolio__img img {
  transform: scale(1.05);
}

/* ===== CONTACT SECTION ===== */
.contact__container {
  row-gap: 2rem;
}

.contact__subtitle {
  font-size: var(--normal-font-size);
  color: var(--first-color);
}

.contact__text {
  display: inline-block;
  margin-bottom: var(--mb-2);
}

.contact__inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1rem;
}

.contact__input {
  width: 100%;
  padding: 0.8rem;
  outline: none;
  border: 1.5px solid var(--dark-color);
  font-size: var(--normal-font-size);
  margin-bottom: var(--mb-4);
  border-radius: 0.5rem;
}

.contact__button {
  display: block;
  background-color: var(--first-color);
  color: var(--white-color);
  padding: 0.75rem 2.5rem;
  margin-left: auto;
  border-radius: 0.5rem;
  border: none;
  outline: none;
  font-size: var(--normal-font-size);
  cursor: pointer;
}

/* ===== FOOTER ===== */
.footer {
  color: var(--white-color);
  background-color: var(--dark-color);
}

.footer__container {
  row-gap: 2rem;
}

.footer__title {
  font-size: var(--normal-font-size);
  color: var(--white-color);
  margin-bottom: var(--mb-2);
}

.footer__link {
  color: var(--white-color);
  padding: 0.25rem 0;
}

.footer__link:hover {
  color: var(--first-color);
}

.footer__social {
  color: var(--white-color);
  font-size: 1.4rem;
  margin-right: var(--mb-1);
}

.footer__social:hover {
  color: var(--first-color);
}

.portfolio__video {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}
.about__info {
  text-align: center;
  margin-top: 10px;
}
.certificat__item {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Permet de passer à la ligne si l'écran est trop petit */
  gap: 1rem;
}
.certificat__item img {
  border-radius: 15px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.468),
    -2px -2px 8px rgba(177, 177, 177, 0.5);
}

.portfolio__item img {
  border-radius: 10px;
  aspect-ratio: 16/9;
  object-fit: contain;
}

/*Animation Coming Soon for projects*/
.coming-soon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 250px;
  background-color: var(--white-color);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.coming-soon-text {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeIn 1.5s ease-in-out forwards;
}

.loading-dots {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: #3498db;
  border-radius: 50%;
  opacity: 0;
}

.dot:nth-child(1) {
  animation: pulseDot 1.5s ease-in-out infinite;
  animation-delay: 0s;
}

.dot:nth-child(2) {
  animation: pulseDot 1.5s ease-in-out infinite;
  animation-delay: 0.3s;
}

.dot:nth-child(3) {
  animation: pulseDot 1.5s ease-in-out infinite;
  animation-delay: 0.6s;
}

.certificat__content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Permet de passer à la ligne si l'écran est trop petit */
  gap: 1rem;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseDot {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

/* Add a subtle gradient background animation */
.coming-soon-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 3s infinite;
}

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

.chart-container {
  width: 90%;
  max-width: 500px;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 11px rgba(0, 0, 0, 0.21);
  margin: 0 auto;
}

canvas {
  height: 300px !important;
  width: 100% !important;
}

/* Ajout dans style.css */
.thm-section {
  margin-top: 3rem;
  padding: 2rem 0; /* Padding vertical uniquement */
}

.thm-container {
  max-width: 1024px; /* Même largeur que les autres sections */
  width: calc(100% - 2rem); /* Marge pour les petits écrans */
  margin: 0 auto; /* Centrage */
  padding: 0 1rem; /* Padding interne */
}

.section-subtitle {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1.5rem;
}

.section-subtitle i {
  font-size: 1.8rem;
  color: #3498db;
}

.section-subtitle h3 {
  color: white;
  font-size: 1.8rem;
  font-weight: 600;
}

.thm-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.thm-card.beginner {
  border-top: 4px solid #3498db;
}

.thm-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.thm-avatar {
  width: 60px;
  height: 60px;
  background: #2c3e50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  font-weight: bold;
}

.thm-info h4 {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 5px;
}

.thm-level {
  display: flex;
  gap: 10px;
  align-items: center;
}

.level-badge {
  background: #3498db;
  color: white;
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 600;
}

.beginner-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.stat-item {
  text-align: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: #7f8c8d;
}

.thm-progress h5 {
  color: #2c3e50;
  font-size: 1.2rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f2f6;
}

.learning-path {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.path-icon {
  width: 40px;
  height: 40px;
  background: #3498db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.path-info {
  flex: 1;
}

.path-title {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 3px;
}

.path-desc {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin-bottom: 8px;
}

.progress-bar {
  height: 8px;
  background: #ecf0f1;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  border-radius: 4px;
}

.thm-goals {
  margin-top: 30px;
}

.thm-goals h5 {
  color: #2c3e50;
  font-size: 1.2rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f2f6;
}

.learning-goals {
  list-style: none;
  padding-left: 0;
}

.learning-goals li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.learning-goals i {
  color: #3498db;
  font-size: 1.2rem;
  margin-top: 3px;
}

.thm-button {
  display: block;
  text-align: center;
  background: #3498db;
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 25px;
  transition: all 0.3s ease;
}

.thm-button:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.portfolio__overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  transition: opacity 0.3s;
}

.portfolio__img:hover .portfolio__overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .beginner-stats {
    grid-template-columns: 1fr;
  }

  .thm-profile {
    flex-direction: column;
    text-align: center;
  }

  .thm-level {
    justify-content: center;
  }
}

/* ===== MEDIA QUERIES ===== */
/* Small Devices */
@media screen and (max-width: 768px) {
  /* REMPLACER votre .nav__menu par ceci : */
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: 70%;
    height: calc(100vh - var(--header-height));
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.4); /* Opacité augmentée */
    transition: transform 0.5s ease-in-out;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.3); /* Bordure ajoutée */

    transform: translateX(100%); /* Menu caché par défaut */
  }

  /* AJOUTER cette classe : */
  .nav__menu.show {
    transform: translateX(0); /* Menu visible */
  }

  .nav__menu.show {
    transform: translateX(0);
  }
  .chart-container {
    width: 95%;
    padding: 1rem;
  }

  .nav__logo-img {
    width: 32px; /* Réduit la largeur à 80px */
    height: auto; /* Garde les proportions */
    max-width: 100%; /* Empêche de dépasser le conteneur */
    display: block; /* Supprime les petits espaces en bas de l'image */
  }

  canvas {
    height: 300px !important;
  }
}

/* Extra Small Devices */
@media screen and (max-width: 320px) {
  .home__img {
    margin-top: 10px;
    width: 220px;
  }
}

/* Medium Devices and Up */
@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }
  .section {
    padding-top: 4rem;
  }
  .section-title {
    margin-bottom: 3rem;
  }
  .section-title::after {
    width: 64px;
    top: 3rem;
  }

  .nav {
    height: calc(var(--header-height) + 1rem);
  }
  .nav__list {
    display: flex;
  }
  .nav__item {
    margin-left: var(--mb-4);
    margin-bottom: 0;
  }
  .nav__toggle {
    display: none;
  }
  .nav__link {
    color: var(--white-color);
  }
  .nav__link:hover {
    color: var(--white-color);
  }
  .active::after {
    background-color: var(--white-color);
  }

  .home__container {
    height: 100vh;
    grid-template-rows: 1.7fr 1fr;
    row-gap: 0;
  }
  .home__img {
    width: 580px;
    right: 10%;
    transform: translateX(130px);
  }

  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: initial;
    padding: 4rem 0;
  }
  .about__img {
    width: 220px;
    height: 220px;
  }

  .about__img img {
    width: 100%;
    height: 100%;
    border-radius: 50%; /* Optionnel : ajoute des bords arrondis pour un meilleur design */
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3);
  }

  .skills__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .portfolio__container {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
  }
  .contact__container {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
  }
  .contact__form {
    width: 380px;
  }

  .footer__container {
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
  }
  .about__social-icon {
    margin-top: 20px;
  }
}

/* Large Devices */
@media screen and (min-width: 1024px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .home__img {
    width: 450px;
  }
}

/* ===== CYBERSECURITY SECTION ===== */
.cybersecurity {
  background-color: var(--white-color);
}

.cybersecurity .section-title {
  position: relative;
  font-size: var(--h2-font-size);
  color: var(--dark-color);
  margin: var(--mb-4) 0;
  text-align: center;
}

/* ===== PORTFOLIO SUBSECTIONS ===== */
.portfolio-subsection {
  margin-bottom: 4rem;
  background-color: #f5f5f5;
}

.portfolio-subsection-title {
  font-size: 1.5rem;
  color: var(--first-color);
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 600;
  position: relative;
  padding-bottom: 1rem;
}

.portfolio-subsection-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--first-color), #3498db);
  border-radius: 2px;
}

/* Responsive pour les sous-sections */
@media screen and (max-width: 768px) {
  .portfolio-subsection-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }

  .portfolio-subsection {
    margin-bottom: 3rem;
  }
}

/* Style pour le nouveau sous-titre */
.home__subtitle {
  font-size: 1.1rem;
  color: white !important; /* Force la couleur */
  -webkit-text-fill-color: white !important; /* Pour Safari */
  margin-bottom: 2rem;
  margin-top: 15px;
  font-weight: 400;
  display: inline-block;
  width: 100%;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Améliore la lisibilité */
}

/* Couleur bleue forcée pour tous les états */
.webfast-link,
.webfast-link:link,
.webfast-link:visited,
.webfast-link:active {
  color: #52d5f2 !important;
  -webkit-text-fill-color: #52d5f2 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  text-decoration-color: #52d5f2 !important;
  font-weight: 600;
  transition: all 0.3s ease;
}

.webfast-link:hover {
  color: #1d92ad !important;
  -webkit-text-fill-color: #1d92ad !important;
  text-decoration-thickness: 3px;
  text-decoration-color: #1d92ad !important;
}

/* Correction spécifique pour Safari iOS */
@supports (-webkit-touch-callout: none) {
  .home__subtitle {
    -webkit-font-smoothing: antialiased;
  }
  .webfast-link {
    -webkit-tap-highlight-color: transparent;
  }
}

/* ===== RESPONSIVE STYLES FOR ANIMATED SHAPES ===== */
@media screen and (max-width: 768px) {
  .shape-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    left: -50px;
  }

  .shape-2 {
    width: 150px;
    height: 150px;
    bottom: -30px;
    right: -30px;
  }

  .shape-3 {
    width: 100px;
    height: 100px;
    top: 40%;
    left: 15%;
  }

  .shape-4 {
    width: 80px;
    height: 80px;
    top: 15%;
    right: 25%;
  }
}

@media screen and (max-width: 480px) {
  .shape-1 {
    width: 150px;
    height: 150px;
    top: -30px;
    left: -30px;
  }

  .shape-2 {
    width: 120px;
    height: 120px;
    bottom: -20px;
    right: -20px;
  }

  .shape-3 {
    width: 80px;
    height: 80px;
    top: 35%;
    left: 10%;
  }

  .shape-4 {
    width: 60px;
    height: 60px;
    top: 10%;
    right: 20%;
  }

  .background-container {
    opacity: 0.8; /* Réduit légèrement l'opacité sur mobile */
  }
}

/* Responsive pour mobile */
@media screen and (max-width: 768px) {
  .home__subtitle {
    font-size: 1rem;
    margin-top: -4rem;
    margin-bottom: 1.6rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Plus prononcé sur mobile */
  }
}
.tech-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  font-weight: var(--font-medium);
  color: var(--first-color);
  background-color: rgba(52, 73, 94, 0.1); /* --first-color avec opacité */
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  transition: all 0.3s ease;
}

.tech-badge:hover {
  background-color: rgba(
    52,
    73,
    94,
    0.2
  ); /* --first-color légèrement plus foncé */
  transform: translateY(-1px);
}

/* Optionnel : styles supplémentaires pour différentes catégories de technologies */
.tech-badge.html {
  color: #e44d26;
  background-color: rgba(228, 77, 38, 0.1);
}

.tech-badge.css {
  color: #2965f1;
  background-color: rgba(41, 101, 241, 0.1);
}

.tech-badge.js {
  color: #f0db4f;
  background-color: rgba(240, 219, 79, 0.1);
}

.tech-badge.wordpress {
  color: #21759b;
  background-color: rgba(33, 117, 155, 0.1);
}

.tech-badge.php {
  color: #777bb3;
  background-color: rgba(119, 123, 179, 0.1);
}

.tech-badge.api {
  color: #6db33f;
  background-color: rgba(109, 179, 63, 0.1);
}

/* Bouton Voir tous les projets */
.portfolio__more-projects {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem 0;
}

.more-projects-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--first-color) 0%, #1a73e8 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

.more-projects-btn:hover::before {
  left: 100%;
}

.more-projects-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 136, 229, 0.4);
  background: linear-gradient(135deg, #1a73e8 0%, var(--first-color) 100%);
}

.more-projects-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
}

.more-projects-btn i.fab {
  font-size: 1.2rem;
}

.more-projects-btn i.bx {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.more-projects-btn:hover i.bx {
  transform: translateX(5px);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .more-projects-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    gap: 0.5rem;
  }

  .portfolio__more-projects {
    margin-top: 2rem;
    padding: 1.5rem 0;
  }
}
