/* OverlayScrollbars : track invisible */
.os-scrollbar-track {
  background: transparent !important;
}
/* Décale le thumb vers le bas pour éviter la navbar */
.os-scrollbar-thumb {
  margin-top: 80px !important;
}
/* Personnalisation SimpleBar : thumb minéral, track invisible */
.simplebar-scrollbar:before {
  background: #bfc6cc;
  border-radius: 6px;
}
.simplebar-scrollbar.simplebar-visible:before {
  opacity: 1;
}
/* Footer portfolio : date de mise à jour */
.portfolio-footer {
  position: relative;
  z-index: 10;
  padding: 2rem 0 1.5rem 0;
  text-align: center;
  background: transparent;
}

.update-date {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  letter-spacing: 0.3px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out 1s forwards;
  text-align: center;
  width: fit-content;
}

.update-date:hover {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}
* {
  font-family: 'Poppins', sans-serif;
  color: rgb(255, 255, 255);
  font-weight: 500;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
}

body {
  font-size: 1.25rem;
  line-height: 1.2;
  cursor: none;
}

html {
  scroll-behavior: smooth;
}

:root {
  --titre-color: #dbce95;
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background-color: white;
}

.cursor-outline {
  width: 30px;
  height: 30px;
  border: 2px solid hsla(0, 0%, 100%, 0.5);
}

.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 99999;
  pointer-events: none;
}

#gradient-canvas {
  width: 100%;
  height: 100%;
  --gradient-color-1: #6c90c0;
  --gradient-color-2: #081e35;
  --gradient-color-3: #487698;
  --gradient-color-4: #0e3147;
}

/* Navigation */
nav a.active {
  color: var(--titre-color);
}

nav {
  font-family: 'Roboto Mono', monospace;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 8vh;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(5px);
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

nav li {
  margin-right: 20px;
}

nav a {
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 1.125rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

section.active {
  border: 2px solid #ff5733;
}

/* Titres */
h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 600;
  line-height: 1.2;
  font-style: normal;
  margin-bottom: clamp(2rem, 5vh, 4rem);
  color: var(--titre-color);
  background: linear-gradient(
    120deg,
    var(--titre-color) 0%,
    var(--titre-color) 67%,
    #ffffff 67%,
    #ffffff 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.25))
          drop-shadow(-1px -1px 3px rgba(255, 255, 255, 0.1));
  transition: filter 0.4s ease, transform 0.3s ease;
  position: relative;
}

h1:hover {
  filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.3))
          drop-shadow(-1px -1px 4px rgba(255, 255, 255, 0.15))
          drop-shadow(0 0 10px rgba(219, 206, 149, 0.25));
  transform: translateY(-2px);
}

#accueil p {
  font-size: 1.5625rem;
  color: var(--titre-color);
}

h2 {
  font-family: 'Poppins', sans-serif;
  color: var(--titre-color);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 600;
  line-height: 1.2;
  font-style: normal;
  margin-bottom: clamp(3rem, 10vh, 6rem);
}

.titre-nav a {
  font-family: 'Roboto Mono', monospace;
  text-decoration: none;
  color: var(--titre-color);
  font-weight: normal;
  font-size: 1.4375rem;
  margin-left: 3vh;
  cursor: none;
}

.titre-nav a .point {
  font-family: 'Roboto Mono', monospace;
}

.titre-nav a .underscore {
  font-family: 'Roboto Mono', monospace;
}

.titre-nav-court a {
  font-family: 'Roboto Mono', monospace;
  font-weight: 600;
  font-size: 1.4375rem;
  margin-left: 3vh;
  display: none;
}

/* Hover pour les titres h4 */
.titre-nav,
.titre-nav-court {
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.titre-nav:hover,
.titre-nav-court:hover {
  transform: scale(1.05);
}

/* Hover pour les liens de navigation */
.nav-link {
  transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
  cursor: none;
  color: #fff;
}

.nav-link:hover {
  transform: scale(1.05);
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Sections */
section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 60%;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  padding: clamp(2rem, 8vh, 6rem) 0;
}

#introduction p {
  line-height: 2;
}

.image-profil {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 4vh;
  background: rgba(255, 255, 255, 0.05);
  border: 3px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  box-shadow: 
    0 0 30px rgba(0, 0, 0, 0.3),
    0 8px 25px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  filter: saturate(1.2) contrast(1.1);
  position: relative;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.modal-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Effet de brillance */
.image-profil::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.image-profil:hover::before {
  opacity: 1;
  transform: rotate(45deg) translate(20px, 20px);
}

.image-profil:hover {
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 0 40px rgba(0, 0, 0, 0.4),
    0 12px 35px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  filter: saturate(1.3) contrast(1.15) brightness(1.05);
}

/* Mise en page de la section Compétences 

#competences {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: clamp(2rem, 12vh, 8rem);
  padding-left: 10vw;
}

.contenu-competences {
  text-align: left;
  margin-right: 15vw;
}

#competences ul {
  list-style-type: none;
  margin-left: 8vh;
}

#competences ul li {
  display: flex;
  align-items: center;
  margin-bottom: 3vh;
}

#competences ul li i {
  color: var(--titre-color);
  font-size: 1.2em;
  margin-right: 15px;
  width: 30px;
  text-align: center;
}

.image-cadre {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 10px solid #afafafb7;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  transform: rotate(10deg);
  transition: transform 0.3s ease;
  filter: saturate(1.5);
}

.image-cadre:hover {
  transform: rotate(0deg) scale(1.1);
}*/

/*
===============================================
CSS PRESTATIONS - COMMENTÉ (voir prestations-backup.html)
Date: 15 septembre 2025
Objectif: Garder le CSS pour réactivation future
===============================================

Styles pour la section Prestation 
.prestation-container {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}

.prestation-card {
  width: 45%; Augmenter la largeur des vignettes 
  padding: 20px;
  background-color: #77756d7e;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  margin: 0 5vw; Ajouter de l'espacement entre les vignettes 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 400px; Ajouter une hauteur minimale pour allonger les cartes 
}

.prestation-icon {
  font-size: 2em;
  margin-bottom: 15px;
  color: var(--titre-color);
}

.prestation-title {
  font-size: 1.5em;
  font-weight: bold;
  margin: 20px 0 2vw; Réduire l'espacement entre le titre et le texte 
  color: var(--titre-color);
}

.prestation-text {
  font-size: 1.2em;
  line-height: 1.6; Augmenter l'espacement entre les lignes de texte 
  color: #333;
  margin: 0 20px; Ajouter des marges pour équilibrer l'espace autour du texte 
}

.prestation-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

Styles pour les vignettes détaillées 
#prestation .prestation-details {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto; Ajuster la largeur automatiquement 
  max-width: 80%; Limiter la largeur maximale 
  padding: 40px;
  background-color: #dbce95dc;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  text-align: left; Aligner le texte à gauche 
  overflow-y: auto; Ajouter un défilement vertical si nécessaire 
  max-height: 80vh; Limiter la hauteur maximale 
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  color: #333333; Couleur du texte noir 
}

#prestation .prestation-details h3 {
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
  color: rgb(37, 100, 182);
  display: flex;
  align-items: center;
}

#prestation .prestation-details h3 i {
  margin-right: 10px; Espace entre l'icône et le titre 
  color: #333333; Couleur du texte noir 
}

#prestation .prestation-details ul {
  list-style-type: disc;
  padding-left: 30px;
  margin-bottom: 30px;
}

#prestation .prestation-details ul li {
  margin-bottom: 10px; Augmenter l'espacement entre les lignes de descriptions 
  color: #333333; Couleur du texte noir 
}

#prestation .prestation-details p {
  margin-bottom: 10px; Ajouter un espace en dessous des paragraphes 
}

Supprimer la marge inférieure du dernier élément 
#prestation .prestation-details > *:last-child {
  margin-bottom: 0;
}

#prestation .prestation-details.active {
  display: block;
  opacity: 1;
  animation: fadeIn 0.3s ease;
}

===============================================
FIN CSS PRESTATIONS COMMENTÉ
===============================================
*/

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}
/* Styles pour l'effet de flou */
.blur-background {
  filter: blur(5px);
  transition: filter 0.3s ease;
}

/* Projets */

.conteneur-vignettes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  justify-items: start;
}

.vignette-projet {
  width: 100%;
  max-width: 350px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: none;
  position: relative;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.vignette-projet .image-container {
  overflow: hidden;
  border-radius: 10px;
  height: 200px;
  width: 90%;
  margin: 10px;
}

.vignette-projet img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.25s ease-in-out;
}

.vignette-projet .image-container:hover img {
  transform: scale(1.05);
}

.vignette-projet:first-child .image-container {
  background-color: rgb(255, 255, 255);
}



/* Contact */

.intro-text-contact {
  margin-bottom: 4vh;
  font-weight: 600;
  font-size: 1.875rem;
}

/* Contact Cards */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 4vh 0;
  padding: 0 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-card:hover:before {
  opacity: 1;
}

.contact-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.contact-icon .svg-icon {
  width: 32px;
  height: 32px;
  fill: white;
  transition: all 0.3s ease;
}

.contact-info-card {
  flex: 1;
  min-width: 0;
}

.contact-info-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
}

.contact-info-card a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  word-break: break-all;
  overflow-wrap: break-word;
  display: block;
  line-height: 1.3;
}

.contact-card:hover .contact-info-card a {
  color: white;
}

/* Responsive Design */
@media (max-width: 75em) {
  body {
    font-size: 1.125rem;
  }

  #competences {
    flex-direction: column;
  }

  #competences ul li {
    margin-bottom: 1.5vh;
  }

  .intro-text-contact {
    margin-bottom: 4vh;
    font-weight: 600;
    font-size: 20px;
  }

  /* Contact Cards - Desktop */
  .contact-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
    max-width: 900px;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .contact-icon {
    width: 50px;
    height: 50px;
  }

  .contact-icon .svg-icon {
    width: 28px;
    height: 28px;
  }
}

/* Tablet */
@media screen and (max-width: 48em) {
  body {
    font-size: 1rem;
  }

  .image-profil {
    width: 150px;
    height: 150px;
  }

  section {
    max-width: 80%;
  }

  nav a {
    font-size: 16px;
  }

  .titre-nav a {
    font-size: 20px;
    margin: 10px;
  }

  .titre-nav {
    display: none;
  }

  .titre-nav-court a {
    display: inline;
    font-size: 20px;
    margin: 10px;
  }

  #accueil p {
    font-size: 20px;
  }

  #competences {
    flex-direction: column;
    justify-content: space-evenly;
    margin: 0;
    padding: 0;
  }

  #competences ul li {
    margin-bottom: 1.5vh;
  }

  .image-cadre {
    width: 150px;
    height: 150px;
  }

  .vignette-projet {
    flex: 1 0 calc(50% - 10px);
  }

  .vignette-projet .image-container {
    height: 100px;
  }



  .intro-text-contact {
    margin-bottom: 4vh;
    font-weight: 600;
    font-size: 20px;
  }

  /* Contact Cards - Tablet */
  .contact-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    padding: 0 1rem;
    max-width: 800px;
  }

  .contact-card {
    padding: 1.3rem;
    gap: 1.2rem;
  }

  .contact-icon {
    width: 45px;
    height: 45px;
  }

  .contact-icon .svg-icon {
    width: 26px;
    height: 26px;
  }

  .contact-info-card h3 {
    font-size: 1.1rem;
  }

  .contact-info-card a {
    font-size: 0.85rem;
    word-break: break-all;
    line-height: 1.2;
  }
}

/* Mobiles */
@media screen and (max-width: 30em) {
  body {
    font-size: 1rem;
  }

  .image-profil {
    width: 100px;
    height: 100px;
  }

  section {
    max-width: 90%;
  }

  nav a {
    font-size: 0.875rem;
  }

  .titre-nav a {
    font-size: 1.125rem;
    margin: 5px;
  }

  .titre-nav {
    display: none;
  }

  .titre-nav-court a {
    display: inline;
    font-size: 1.125rem;
    margin: 5px;
  }

  #accueil p {
    font-size: 1.125rem;
  }

  #competences {
    justify-content: space-evenly;
    margin: 200px;
  }

  .contenu-competences {
    margin-right: 0;
  }

  #competences ul {
    margin-left: 2vh;
  }

  #competences ul li {
    margin-bottom: 1vh;
  }

  .image-cadre {
    width: 75px;
    height: 75px;
  }

  .vignette-projet {
    flex: 1 0 calc(100% - 5px);
  }

  .vignette-projet .image-container {
    height: 50px;
  }

  .contenu-projet {
    width: 100%;
    height: 100vh;
  }

  .projet-header h2 {
    font-size: 1.5em;
    margin-bottom: 2vh;
  }

  .projet-images img {
    display: block;
    margin: auto;
    width: 70%;
  }

  .retour,
  .suivant {
    position: absolute;
    top: 8vh;
    padding: 5px 10px;
    font-size: 10px;
  }

  .intro-text-contact {
    margin-bottom: 4vh;
    font-weight: 600;
    font-size: 18px;
  }

  /* Contact Cards - Mobile */
  .contact-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .contact-card {
  padding: 1.2rem 0.7rem;
  gap: 1rem;
  box-sizing: border-box;
  }

  .contact-icon {
    width: 50px;
    height: 50px;
  }

  .contact-icon .svg-icon {
    width: 28px;
    height: 28px;
  }

  .contact-info-card h3 {
  font-size: 0.95rem;
  word-break: break-word;
  line-height: 1.15;
  text-align: center;
  }

  .contact-info-card a {
  font-size: 0.8rem;
  word-break: break-word;
  line-height: 1.15;
  text-align: center;
  padding-left: 2px;
  padding-right: 2px;
  }
}

/* Responsive Design */

/* Mobiles */
@media (max-width: 768px) {
  /* Conteneur principal */
  #contenu {
  padding: 80px 10px 10px 10px;
  }

  /* Barre de navigation */
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  nav ul li {
    margin: 5px 0;
  }

  /* Section Prestation */
  .prestation-container {
    flex-direction: column;
    gap: 20px;
  }

  .prestation-card {
    width: 90%; 
    min-height: 300px; 
  }

  /* Section Projets */
  .conteneur-vignettes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .vignette-projet {
    width: 100%;
  }

  .vignette-projet img {
    width: 100%;
    height: auto;
  }

  /* Section Contact */
  .contact-info {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  form {
    width: 100%;
  }

  form input,
  form textarea,
  form button {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* Tablettes */
@media (max-width: 1024px) {
  /* Section Prestation */
  .prestation-container {
    flex-direction: column;
    gap: 30px;
  }

  .prestation-card {
    width: 80%; 
    margin: 0 auto;
  }

  /* Section Projets */
  .conteneur-vignettes {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1024px) {
  .cursor-dot,
  .cursor-outline {
    display: none; 
  }

  body {
    cursor: default;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none; 
  }

  .titre-nav {
    display: none;
  }

  .titre-nav-court {
    display: block;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1001;
    font-size: 18px;
    font-weight: bold;
  }
}

/* Styles pour le bouton hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly; /* Espacement uniforme entre les barres */
  align-items: center;
  width: 40px;
  height: 40px; 
  background: none;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1001;
  position: fixed;
  top: 10px;
  right: 10px;
  box-sizing: border-box;
}

/* Barres du hamburger */
.menu-toggle span {
  display: block;
  width: 28px;
  height: 4px;
  background-color: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.3s ease;
  position: relative;
}

/* Transformation en croix lorsque le menu est actif */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(14px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1a191d;
  z-index: 999;
  padding: 0;
  margin: 0; 
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.menu.active {
  display: flex;
  animation: fadeIn 0.25s ease; 
}

/* Animation pour les titres du menu */
@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0; 
  }
  to {
    transform: translateX(0); 
    opacity: 1; 
  }
}

.menu a {
  color: #fff; 
  text-decoration: none;
  font-size: 24px; 
  font-weight: bold;
  text-align: center; 
  margin-bottom: 15px; 
  opacity: 0; 
  animation: slideInFromLeft 0.3s ease forwards; 
}

.menu.active a {
  animation-delay: calc(var(--order) * 0.1s);
}

.menu-toggle.hidden {
  display: none; 
}


@media (min-width: 769px) {
  .menu-toggle,
  .menu {
    display: none; 
  }
}

/* STYLES POUR LE SYSTÈME DE NAVIGATION PAR STACKS */

.stack-navigation {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px 0 60px 0;
  flex-wrap: wrap;
}

.stack-folder {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  min-height: 140px;
  cursor: pointer;
  transition: all 0.4s ease;
  text-align: center;
  min-width: 280px;
  max-width: 320px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* SYSTÈME DE TAMPONS DE COMPÉTENCE */

.competence-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 8px 4px 16px;
  font-size: 6px;
  font-weight: 400;
  font-family: 'Courier New', 'American Typewriter', 'Andale Mono', 'Lucida Console', monospace !important;
  text-transform: none;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  z-index: 10;
  transition: all 0.3s ease;
  opacity: 0.9;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%);
  transform-origin: top right;
}

/* Style pour le texte à l'intérieur du badge */
.competence-badge span {
  font-size: 18px !important;
  font-weight: bold !important;
  text-transform: none !important;
  letter-spacing: 0.3px !important;
  color: inherit !important;
}

/* Badge Expertise */
.competence-badge.expertise {
  background: linear-gradient(135deg, #d4a574, #c49464);
  color: #5d4e37;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(212, 165, 116, 0.4);
  border-bottom: 1px solid rgba(93, 78, 55, 0.2);
}

.competence-badge.expertise:hover {
  opacity: 1;
  background: linear-gradient(135deg, #c49464, #b8845a);
  transform: scale(1.02);
}

/* Badge Maîtrise */
.competence-badge.maitrise {
  background: linear-gradient(135deg, #a8d5ba, #94c9a9);
  color: #2d5a3d;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(168, 213, 186, 0.4);
  border-bottom: 1px solid rgba(45, 90, 61, 0.2);
}

.competence-badge.maitrise:hover {
  opacity: 1;
  background: linear-gradient(135deg, #94c9a9, #7fb896);
  transform: scale(1.02);
}

/* Badge Apprentissage */
.competence-badge.apprentissage {
  background: linear-gradient(135deg, #a8c8ec, #94b8e0);
  color: #2c4a6b;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(168, 200, 236, 0.4);
  border-bottom: 1px solid rgba(44, 74, 107, 0.2);
}

.competence-badge.apprentissage:hover {
  opacity: 1;
  background: linear-gradient(135deg, #94b8e0, #7fa7d3);
  transform: scale(1.02);
}

/* Animation de pulsation très subtile pour les bandeaux pastels */
@keyframes bandeauPastelPulse {
  0%, 100% {
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.4);
  }
  50% {
    opacity: 1;
    box-shadow: 0 3px 12px rgba(212, 165, 116, 0.5);
  }
}

.competence-badge.expertise {
  animation: bandeauPastelPulse 10s infinite;
}

.stack-folder::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.6s ease;
}

.stack-folder:hover::before {
  left: 100%;
}

.stack-folder:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stack-folder.active {
  border-color: var(--titre-color);
  background: rgba(219, 206, 149, 0.1);
  box-shadow: 0 5px 20px rgba(219, 206, 149, 0.2);
}

.folder-icon {
  font-size: 48px;
  margin-bottom: 10px;
  color: var(--titre-color);
}

.folder-label {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  display: block;
  color: #fff;
  line-height: 1.3;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex: 1;
  align-content: center;
}

/* STYLES POUR LES BADGES TECHNOLOGIQUES */

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid;
  transition: all 0.3s ease;
}

.badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.projet-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
  justify-content: center;
}

/* Badges spécifiques par technologie */
.badge-react {
  background: rgba(97, 218, 251, 0.1);
  color: #61dafb;
  border-color: #61dafb;
}

.badge-node {
  background: rgba(104, 160, 99, 0.1);
  color: #68a063;
  border-color: #68a063;
}

.badge-mongo {
  background: rgba(74, 145, 61, 0.1);
  color: #4a913d;
  border-color: #4a913d;
}

.badge-express {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.badge-wordpress {
  background: rgba(0, 115, 170, 0.1);
  color: #0073aa;
  border-color: #0073aa;
}

.badge-php {
  background: rgba(119, 123, 180, 0.1);
  color: #777bb4;
  border-color: #777bb4;
}

.badge-mysql {
  background: rgba(0, 117, 143, 0.1);
  color: #00758f;
  border-color: #00758f;
}

.badge-symfony {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.badge-postgresql {
  background: rgba(51, 103, 145, 0.1);
  color: #336791;
  border-color: #336791;
}

.badge-css {
  background: rgba(21, 114, 182, 0.1);
  color: #1572b6;
  border-color: #1572b6;
}

.badge-javascript {
  background: rgba(247, 223, 30, 0.1);
  color: #f7df1e;
  border-color: #f7df1e;
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* STYLES POUR LE CONTENU DES STACKS */

.stack-content {
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  transition: all 0.4s ease;
  max-height: 0;
  overflow: hidden;
}

.stack-content.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  max-height: 2000px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vignette-projet {
  position: relative;
  overflow: hidden;
}

.vignette-projet .projet-badges {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0 0 10px 10px;
  padding: 15px;
  transform: translateY(100%);
  transition: all 0.4s ease;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.vignette-projet:hover .projet-badges {
  transform: translateY(0);
}

/* Responsive pour le système de stacks */
@media (max-width: 1024px) {
  .stack-navigation {
    gap: 20px;
  }
  
  .stack-folder {
    min-width: 260px;
    max-width: 290px;
    padding: 18px;
    min-height: 130px;
  }
  
  .folder-label {
    font-size: 16px;
  }
  
  .competence-badge {
    font-size: 5px;
    padding: 3px 6px 3px 12px;
    opacity: 0.85;
    letter-spacing: 0.2px;
  }
}

@media (max-width: 768px) {
  .stack-navigation {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .stack-folder {
    min-width: 320px;
    max-width: 360px;
    padding: 20px;
    min-height: 150px;
  }
  
  .folder-icon {
    font-size: 36px;
  }
  
  .folder-label {
    font-size: 18px;
  }
  
  .tech-badges .badge {
    font-size: 11px;
    padding: 4px 8px;
  }
  
  .competence-badge {
    font-size: 4px;
    padding: 2px 5px 2px 10px;
    opacity: 0.8;
    letter-spacing: 0.1px;
  }
}

/* STYLES DES MODALES DE PROJETS */

/* Modal Overlay - Arrière-plan */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(108, 144, 192, 0.85) 0%, rgba(219, 206, 149, 0.15) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Conteneur principal de la modale */
.modal-container {
  position: relative;
  width: 95%;
  max-width: 1200px;
  max-height: 90vh;
  background: rgba(13, 13, 13, 0.95);
  border: none;
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.96) translateY(0);
  transition: opacity 0.35s cubic-bezier(.4,0,.2,1), transform 0.35s cubic-bezier(.4,0,.2,1);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(255, 255, 255, 0.05);
}

.modal-overlay.active .modal-container {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Bouton de fermeture */
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.modal-close svg {
  width: 20px;
  height: 20px;
  color: #ffffff;
}

/* Navigation entre projets */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.modal-nav-prev {
  left: 20px;
}

.modal-nav-next {
  right: 20px;
}

.modal-nav svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

/* Contenu de la modale */
.modal-content {
  height: 90vh;
  overflow-y: auto;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.modal-content::-webkit-scrollbar {
  display: none !important;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent !important;
}

.modal-content::-webkit-scrollbar-thumb {
  background: transparent !important;
  border-radius: 0 !important;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: transparent !important;
}

/* Section Hero */
.modal-hero {
  position: relative;
  min-height: 300px;
  background: linear-gradient(120deg, #bfc6cc 0%, #aeb4bb 55%, #979da3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px 40px;
}

.modal-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(120deg, rgba(191,198,204,0.92) 0%, rgba(174,180,187,0.78) 55%, rgba(151,157,163,0.78) 100%);
  pointer-events: none;
}

.modal-hero-content {
  position: relative;
  z-index: 2;
}

.modal-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.modal-competence-badge {
  display: inline-block;
}

/* Section Description */
.modal-description {
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-description-content {
  max-width: 800px;
  margin: 0 auto;
}

.modal-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Section Galerie */
.modal-gallery {
  padding: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.modal-gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.modal-gallery-item:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.modal-gallery-item:hover img {
  transform: scale(1.05);
}

/* Responsive pour les modales */
@media (max-width: 768px) {
  .modal-container {
    width: 98%;
    max-height: 95vh;
    border-radius: 12px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .modal-title {
    font-size: 2rem;
  }
  
  .modal-hero {
    min-height: 250px;
    padding: 40px 20px 20px;
  }
  
  .modal-description,
  .modal-gallery {
    padding: 30px 20px;
  }
  
  .modal-nav {
    width: 44px;
    height: 44px;
  }
  
  .modal-nav svg {
    width: 20px;
    height: 20px;
  }
  
  .modal-gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .modal-container {
    border-radius: 8px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .modal-title {
    font-size: 1.8rem;
  }
  
  .modal-hero {
    min-height: 200px;
    padding: 30px 15px 15px;
  }
  
  .modal-description,
  .modal-gallery {
    padding: 20px 15px;
  }
  
  .modal-close {
    width: 40px;
    height: 40px;
    top: 15px;
    right: 15px;
  }
  
  .modal-close svg {
    width: 18px;
    height: 18px;
  }
}

.modal-project-links {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.project-links {
  text-align: center;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  margin: 0.5rem 0.5rem 0 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.project-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}