

/* ============================= */
/*        BASE & RESET          */
/* ============================= */
@import url("https://fonts.googleapis.com/css?family=IBM+Plex+Mono");

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
 padding-left: env(safe-area-inset-left);
 padding-right: env(safe-area-inset-right);
}

@media (max-width: 600px) {
 #game {
   width: 100% !important;
   height: auto;
 }
 #game-title {
   font-size: 2rem;
 }
 .game-btn {
   font-size: 1rem;
   padding: 8px 16px;
 }
}

@media (max-width: 549px) {
 .terminal-projects {
   margin: 1rem;
   border-radius: 10px;
   font-size: 0.9rem;
   overflow-x: auto;
 }
 .terminal-wrapper {
   padding: 0.5rem;
 }
 .terminal-header {
   font-size: 0.85rem;
   word-break: break-word;
   padding-left: 0;
 }
 .terminal-body {
   padding: 1rem 0.5rem;
 }
 .terminal-title {
   font-size: 0.7rem;
   line-height: 1.2;
 }
}

@media (max-width: 768px) {
 .tech-card {
   max-width: 100%;
   flex: 1 1 100%;
   padding: 1rem;
   margin-bottom: 2rem;
 }
 .icon-row img {
   height: 30px;
   margin: 0 5px;
 }
 .tech-card h2 {
   font-size: 1.3rem;
 }
}

.languages-txt {
    color: black; /* Définit la couleur du texte à noir */
  }

@media (max-width: 768px) {
    #cv-floating-badge {
      display: none; /* Cache l'élément sur les appareils mobiles */
    }
  }

body {
  margin: 0;
  padding: 0;
  font-size: 100%;
  line-height: 1.5;
  font-family: 'IBM Plex Mono', monospace;
  background-color: var(--bg-color);
  color: rgb(236, 236, 236);
  transition: background-color 0.3s, color 0.3s;
}

.languages-txt {
  color: black; /* Définit la couleur du texte à noir */
}


/* ============================= */
/*         NAVIGATION           */
/* ============================= */
.nav, .topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transition: background-color 0.3s;
}

[data-theme="dark"] .nav, [data-theme="dark"] .topbar {
  background-color: rgba(238, 45, 45, 0.8);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: bold;
  padding: 0.5em 1.25em;
  border-radius: 9999px;
  transition: background-color 0.3s, color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: rgba(0, 0, 0, 0.1);
  color: black;
}

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  position: relative;
}

.profile-pic {
  height: 40px;
  border-radius: 50%;
}

/* Menu burger centré */
.burger {
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .burger {
    display: block;
}

.nav-links {
  display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
}

.nav-links.active {
  display: flex;
}

}

/* ============================= */
/*         PROJECTS             */
/* ============================= */
.user-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.project-card {
  background: var(--bg-color);
  color: var(--text-color);
  border-left: 5px solid #007acc;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  break-inside: avoid;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.95rem;
  color: var(--text-color);
  text-align: justify;
  margin-bottom: 1rem;
}

.project-card .btn {
  background-color: transparent;
  border: 1px solid #007acc;
  color: #007acc;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  font-weight: bold;
}

.project-card .btn:hover {
  background-color: #007acc;
  color: white;
}

/* ============================= */
/*         UTILITAIRES          */
/* ============================= */

@keyframes blink {
  50% {
    opacity: 0;
}

}

/* ===== HEADER PRINCIPAL ===== */

/* Fond commun à tous les thèmes */
/* Zone plein écran pour les particules animées en arrière-plan */
#particles-js {
  position: fixed; /* Reste en place même lors du scroll */
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh; /* Hauteur = hauteur de la fenêtre */
  z-index: 0; /* Placé derrière tous les autres éléments */
  
  /* Dégradé de fond sombre (bleu nuit) */
  background: linear-gradient(
    135deg,
    #5083ac, /* Bleu foncé */
    #5083ac, /* Bleu-gris */
    #5083ac  /* Bleu pétrole */
  );
}

body > *:not(#particles-js) {
  position: relative;
  z-index: 1;
}

/* Spécificités par thème si besoin */
[data-theme="light"] #particles-js,
[data-theme="dark"] #particles-js,
[data-theme="auto"] #particles-js {
  /* Même fond ici, mais tu peux personnaliser si nécessaire */
  background: linear-gradient(135deg, #5083ac 100%) !important;
}

/* Canvas des particules : responsive et compatible Safari */
#particles-js .particles-js-canvas-el {
  width: 100% !important;
  min-height: 100vh;       /* fallback for Safari <16 and older browsers */
  min-height: 100dvh;      /* fixes mobile Safari viewport issues */
  display: block;          /* évite des bugs d’affichage inline sur Safari */
}

.header {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  text-align: center;
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  z-index: 1;
  transform: translate(-50%, -50%);
}

.header .site-title {
  font-size: 35px;
  display: block;
  line-height: 1;
  margin: 0;
}

@media only screen and (min-width: 550px) {
  .header .site-title {
    font-size: 100px;
}

}

.header .site-description {
  font-size: 20px;
  margin-top: 10px;
  line-height: 1;
}

@media only screen and (min-width: 550px) {
  .header .site-description {
    font-size: 40px;
}

}

.header-links {
  margin: 10px;
}

.header-links .link {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  margin: 10px;
}

@media only screen and (min-width: 550px) {
  .header-links .link {
    font-size: 20px;
}

}

.header-icons {
  display: flex;
  justify-content: center;
  text-align: center
}

.down,
.header-icons .icon {
  color: #fff;
  text-align: center
}

.header-icons .icon {
  height: 20px;
  padding: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  transition: all .7s;
  width: 20px;
  font-size: 20px;
  margin: 5px
}

.header-icons .icon:active,
.header-icons .icon:hover {
  color: #1488CC;
  background: #fff
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* foncé transparent */
  z-index: 0;
}

@media only screen and (min-width:550px) {
  .header-icons .icon {
      width: 35px;
      height: 35px;
      font-size: 35px
}

}

.down {
  position: absolute;
  bottom: 25px;
  width: 100%;
  margin: 0 auto;
  display: block;
  font-size: 30px;
  cursor: pointer
}

.down .icon {
  position: absolute;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  fill: #fff;
  -webkit-animation: pulse 2.5s infinite;
  animation: pulse 1.3s infinite
}

.down .icon:active,
.down .icon:hover,
.footer a:active,
.footer a:hover {
  color: #266790
}

/* Animation de pulsation */
@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* ===== SECTION ABOUT ===== */

#about {
  width: 90%;
  margin: 0 auto;
  max-width: 960px;
}

@media only screen and (min-width: 550px) {
  #about {
    width: 80%;
}

}

.user {
  text-align: center;
  font-size: 60px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}

.user p {
  font-size: 16px;
}

@media only screen and (min-width: 550px) {
  .user {
    flex-wrap: nowrap;
    font-size: 75px;
}

}

.user-details {
  text-align: center;
  margin: 5px auto;
}

.about-text {
  margin-top: 1.5rem; /* Ajoutez une marge au-dessus pour espacer le contenu précédent */
  margin-bottom: 2.5rem; /* Ajustez pour que l'espacement soit équilibré avec les autres éléments */
}

[data-theme="dark"] .about-text {
  color: #efefef;
}

[data-theme="dark"] .about-text strong {
  color: #fff;
}

[data-theme="dark"] .user-details h1 {
  color: #fff;
  margin: 0; /* Ajoutez une marge nulle pour éviter le décalage */
  line-height: 1.3; /* Assurez un line-height uniforme */
}

@font-face {
    font-family: 'Bookery';
    src: url('/path/to/bookery.ttf') format('truetype'); /* Chemin vers le fichier de police */
  }

.txt-type {
 font-family: 'IBM Plex Mono', monospace;
 font-size: 1rem;
 font-weight: 400;
 color: #555;
 letter-spacing: 0.3px;
}
.blinking-cursor {
 font-weight: 400;
 font-size: 1rem;
 color: #555;
 animation: blink 1s infinite;
}

.top-banner {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 background: linear-gradient(135deg, #235c80 50%, #000000 100%);
 color: rgb(236, 236, 236);
 text-align: center;
 font-family: 'IBM Plex Mono', monospace;
 font-size: 0.85rem;
 padding: 6px 0;
 border-bottom: 1px solid #222;
 z-index: 9999;
}
body {
 padding-top: 30px; /* ajuste si le contenu est masqué */
}

/* ===== SECTION PROJETS ===== */

#projects {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
}

@media only screen and (min-width: 550px) {
  #projects {
    width: 80%;
}

}

.projects-grid {
  column-count: 3;
  column-gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .projects-grid {
    column-count: 2;
}

}

@media (max-width: 600px) {
  .projects-grid {
    column-count: 1;
}

}

/* Carte Projet */
.project-card {
  border-left: 5px solid #007acc;
  padding: 1.5rem;
  background-color: #fff;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  transition: transform 0.3s ease;
  break-inside: avoid;
}

.project-card p {
  font-size: 0.95rem;
  color: #444;
  text-align: justify;
  margin-bottom: 1rem;
}

.project-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
}

/* Bouton dans la carte projet */
.project-card .btn {
  background-color: transparent;
  border: 1px solid #007acc;
  color: #007acc;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  font-weight: bold;
}

/* ===== SECTION TECH SKILLS ===== */

/* Conteneur principal des cartes */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

/* Carte individuelle */
.tech-card {
  background-color: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  max-width: 48%;
  flex: 1 1 48%; /* Pour permettre le wrapping si besoin */
  text-align: center;
  transition: transform 0.3s ease;
  box-sizing: border-box;
  margin-bottom: 3rem;
}

/* Effet hover sur carte */
.tech-card:hover {
  transform: translateY(-5px);
}

/* Titre dans la carte */
.tech-card h2 {
  position: relative;
  display: inline-block;
  z-index: 1;
  padding: 0.5rem 1rem;
  background: rgba(0, 153, 255, 0.1);
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #111;
  box-shadow: 0 2px 8px rgba(0, 153, 255, 0.15);
}

/* Icônes dans la carte */
.tech-card i {
  font-size: 3rem;
  margin: 0.5rem;
}

/* Texte descriptif */
.tech-card p {
  font-size: 0.95rem;
  text-align: justify;
  margin-top: 1rem;
}

/* Mode dark sur tech-card */
[data-theme="dark"] .tech-card {
  background-color: #1e1e1e;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .tech-card h2 {
  background: rgba(0, 153, 255, 0.1);
  color: #f0f0f0;
  box-shadow: 0 2px 8px rgba(0, 153, 255, 0.2);
}

[data-theme="dark"] .tech-card p {
  color: #ccc;
}

/* Titre de section (optionnel si utilisé) */
.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* Icon Row (pour plusieurs icônes alignées) */
.icon-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 2rem;
}

/* ===== SECTION GALERIE PHOTO ===== */

/* Conteneur général de la galerie */
.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
  padding: 2rem;
  position: relative;
}

/* Carte individuelle (flip card) */
.flip-card {
  background-color: transparent;
  width: 200px;
  height: 260px;
  perspective: 1000px; /* profondeur pour l'effet 3D */
  transition: transform 0.3s ease;
}

/* Cartes jetées "aléatoirement" */
.flip-card:nth-child(1) {
  transform: rotate(-7deg);
}

.flip-card:nth-child(2) {
  transform: rotate(4deg);
  margin-top: 10px;
}

.flip-card:nth-child(3) {
  transform: rotate(-3deg);
}

.flip-card:nth-child(4) {
  transform: rotate(6deg);
  margin-top: 20px;
}

/* Effet au hover : redresse la carte et agrandit */
.flip-card:hover {
  transform: rotate(0deg);
  z-index: 10;
}

/* Intérieur de la carte (qui va flipper) */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.3s;
  transform-style: preserve-3d;
}

/* Animation au hover */
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* Face avant et arrière */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Images de face et de dos */
.flip-card-front img,
.flip-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Face arrière */
.flip-card-back {
  transform: rotateY(180deg);
  position: relative;
}

@media (max-width: 768px) {
  .photo-gallery {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

@media (max-width: 549px) {

  .photo-gallery .flip-card:nth-child(2) img,

  .photo-gallery .flip-card:nth-child(3) img {

    object-fit: cover;

    height: 250px;

    width: 80%;

    border-radius: 10px;

    overflow: hidden;

  }

  .photo-gallery .flip-card:nth-child(2),

  .photo-gallery .flip-card:nth-child(3) {

    height: auto;

    width: 70vw;

    border-radius: 1px;

  }

}
 

.flip-card {
  width: 90vw;
    height: auto;
    transform: rotate(0deg) !important;
    margin-top: 0 !important;
}

.flip-card-front img,
  .flip-card-back img {
  width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

.flip-card-inner {
  height: auto;
}

}

/* Sceau de date sur la face arrière */
.date-stamp {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  text-align: center;
  color: #444;
  padding: 0.4rem 0.8rem;
  backdrop-filter: blur(2px);
}

/* ===== FLOATING BLOBS (fond animé) ===== */

/* Conteneur général pour les blobs */
.floating-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* on désactive toute interaction */
  z-index: -1; /* en arrière-plan */
  overflow: hidden;
}

/* Style général des blobs */
.blob {
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(0, 153, 255, 0.15); /* couleur bleue transparente */
  border-radius: 50%;
  filter: blur(80px); /* effet de flou */
  animation: blobMove 5s ease-in-out infinite alternate;
  mix-blend-mode: multiply; /* pour un bel effet de fusion */
}

/* Chaque blob a un emplacement différent */
.blob1 {
  top: 10%;
  left: 20%;
  animation-delay: 0s;
}

.blob2 {
  top: 50%;
  left: 60%;
  animation-delay: 2s;
}

.blob3 {
  top: 30%;
  left: 80%;
  animation-delay: 4s;
}

/* Animation des blobs */
@keyframes blobMove {
  0% {
    transform: translate(0, 0) scale(1);
}

50% {
  transform: translate(-40px, 30px) scale(1.1);
}

100% {
  transform: translate(30px, -20px) scale(0.9);
}

}

/* ===== GRILLE DE PROJETS TYPE "PINTEREST" ===== */

/* Conteneur principal */
.projects-grid {
  column-count: 3; /* 3 colonnes par défaut */
  column-gap: 2rem; /* espace entre les colonnes */
  max-width: 1200px;
  margin: 0 auto;
}

/* Adaptations responsives */
@media (max-width: 992px) {
  .projects-grid {
    column-count: 2;
}

}

/* Cartes individuelles */
.project-card {
  border-left: 5px solid #007acc; /* bordure bleue à gauche */
  padding: 1.5rem;
  background-color: #fff;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  transition: transform 0.3s ease;
  break-inside: avoid; /* empêche de casser les cartes dans la colonne */
}

/* Effet au survol */
.project-card:hover {
  transform: translateY(-5px);
}

/* Titres dans les cartes */
.project-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

/* Description dans les cartes */
.project-card p {
  font-size: 0.95rem;
  color: #444;
  text-align: justify;
  margin-bottom: 1rem;
}

/* Bouton dans les cartes */
.project-card .btn {
  background-color: transparent;
  border: 1px solid #007acc;
  color: #007acc;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  font-weight: bold;
}

/* Effet bouton au hover */
.project-card .btn:hover {
  background-color: #007acc;
  color: white;
}

/* Images dans les cartes */
.project-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
}

/* ===== GALERIE DE PHOTOS ===== */
.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
  padding: 2rem;
  position: relative;
}

/* PETIT TEXTE (DATE OU AUTRE) AU MILIEU */
.date-stamp {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  text-align: center;
  color: #444;
  padding: 0.4rem 0.8rem;
  backdrop-filter: blur(2px);
}

/* ===== STYLE TYPE "TERMINAL" POUR LES PROJETS ===== */
.terminal-projects {
  font-family: 'IBM Plex Mono', monospace;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  margin: 2rem auto;
  transition: background-color 0.3s, color 0.3s;
}

/* Terminal clair */
[data-theme="light"] .terminal-projects {
  background-color: #f5f5f5;
  color: #111;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

/* Terminal foncé */
[data-theme="dark"] .terminal-projects {
  background-color: #0e0e0e;
  color: #33ff33;
  box-shadow: none;
}

/* Enveloppe du terminal */
.terminal-wrapper {
  background-color: #1e1e1e;
  border-radius: 14px;
  overflow: hidden;
}

/* En mode clair */
[data-theme="light"] .terminal-wrapper {
  background-color: #f5f5f5;
}

/* Barre du haut (header) du terminal */
.terminal-topbar {
  background-color: #2e2e2e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  color: #ccc;
  font-family: 'IBM Plex Mono', monospace;
}

/* Barre du haut en thème clair */
[data-theme="light"] .terminal-topbar {
  background-color: #dcdcdc;
  color: #444;
}

/* Titre centré du terminal */
.terminal-title {
  flex: 1;
  text-align: center;
  font-weight: 500;
}

/* Boutons type Mac (rouge, jaune, vert) */
.traffic-buttons {
  display: flex;
  gap: 0.4rem;
}

.traffic-buttons .btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.traffic-buttons .red {
  background-color: #ff5f56;
}

.traffic-buttons .yellow {
  background-color: #ffbd2e;
}

.traffic-buttons .green {
  background-color: #27c93f;
}

/* Contenu du terminal */
.terminal-body {
  padding: 1.5rem;
  font-size: 0.95rem;
}

/* Header interne (optionnel) */
.terminal-header {
  font-weight: bold;
  margin-bottom: 1rem;
  padding-left: 0.5rem; /* Petit décalage visuel */
}

/* ===== STYLE DE PROMPT, PATH, ET COMMANDES TERMINAL ===== */

/* Le signe de prompt ($) */
.prompt {
  color: #33ff33; /* Vert fluo en mode dark */
}

/* En mode clair */
[data-theme="light"] .prompt {
  color: #008000; /* Vert plus classique */
}

/* Le chemin (genre ~/projects) */
.path {
  color: #409eff; /* Bleu lumineux */
}

/* En mode clair */
[data-theme="light"] .path {
  color: #0077cc; /* Bleu plus classique */
}

/* Les commandes tapées */
.cmd {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  display: block;
}

/* Bloc de détails après la commande */
.details {
  padding-left: 1.5rem; /* indentation */
  line-height: 1.5;
}

/* Texte important dans les détails */
.details em {
  font-style: normal;
  opacity: 0.85;
}

/* Couleur en dark */
[data-theme="dark"] .details em {
  color: #ff5555; /* Rouge doux */
}

/* Couleur en light */
[data-theme="light"] .details em {
  color: #444;
}

/* Liens dans les détails */
.details a {
  text-decoration: none;
}

/* Couleur lien en dark */
[data-theme="dark"] .details a {
  color: #00aaff;
}

/* Couleur lien en light */
[data-theme="light"] .details a {
  color: #0077cc;
}

/* Hover sur lien */
.details a:hover {
  text-decoration: underline;
}

/* ===== ANIMATION DU TERMINAL ===== */

/* Texte qui s'affiche comme dans un terminal */
.animated-terminal {
  white-space: nowrap; /* Pas de retour à la ligne */
  overflow: hidden; /* Coupe ce qui déborde */
  font-size: 1rem; /* Taille du texte */
}

/* Curseur clignotant */
.cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s infinite; /* Clignote toutes les secondes */
  color: #33ff33; /* Vert fluo pour dark mode */
}

/* Animation du curseur */
@keyframes blink {
  0%, 50%, 100% { opacity: 1;
}

25%, 75% {
  opacity: 0;
}

}

/* ===== DARK MODE : Texte clair pour les blocs importants ===== */

/* Description "about" dans la section à propos */
[data-theme="dark"] .about-text {
  color: #efefef; /* gris clair lisible sur fond sombre */
}

/* Mots en gras dans cette section */
[data-theme="dark"] .about-text strong {
  color: #fff; /* blanc éclatant */
}

/* Titre principal dans la section user */
[data-theme="light"] .user-details h1 {
  color: #444;
  margin: 0; /* Ajoutez une marge nulle pour éviter le décalage */
  line-height: 1.3; /* Assurez un line-height uniforme */
}

/* ===== OVERLAY de la modale ===== */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.6); /* fond noir semi-transparent */
  justify-content: center;
  align-items: center;
}

/* ===== CONTENU de la modale ===== */
.modal-content {
  background-color: #1e1e1e;
  color: #ffffff !important;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 90%;
  width: 600px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  position: relative;
  font-family: 'IBM Plex Mono', monospace;
  max-height: 80vh;
  overflow-y: auto;
  padding-right: 1rem;
}

/* Adaptation en dark mode */
[data-theme="dark"] .modal-content {
  background-color: #1e1e1e;
  color: #f0f0f0;
}

/* Close button */
.close-modal-btn {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

.modal-gallery {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.modal-gallery img {
  height: 140px;
  border-radius: 10px;
  scroll-snap-align: start;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.modal-gallery img:hover {
  transform: scale(1.05);
  cursor: pointer;
}

.modal-video {
  margin-top: 2rem;
}

.modal-video h5 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: #fff;
}

.modal-video video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  outline: none;
}

@media (max-width: 549px) {
  .header .site-title {
    font-size: 2rem;
}

.header .site-description {
  font-size: 1.2rem;
}

.user {
  flex-direction: column;
    font-size: 40px;
}

.tech-card {
  max-width: 100%;
    padding: 1rem;
}

.project-card {
  padding: 1rem;
}

.photo-gallery {
  gap: 1rem;
    padding: 1rem;
}

.flip-card {
  width: 100%;
    height: auto;
}

}

@media (max-width: 768px) {
  .tech-card {
    max-width: 100%;
    flex: 1 1 100%;
}

}

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-color);
  cursor: pointer;
}

}#particles-js {
  position: relative;
}

.theme-toggle {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
  padding: 0.4em;
  border-radius: 50%;
  transition: transform 0.3s ease, background 0.3s ease;
}

.theme-toggle .icon {
  display: inline-block;
  transition: transform 0.6s ease, opacity 0.3s ease;
}

.theme-toggle.animate .icon {
  opacity: 1;
}

.theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(100, 100, 255, 0.4);
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
}

to {
  transform: rotate(360deg);
}

}




/* ======== FOOTER ======== */
.footer {
  background: linear-gradient(135deg, #235c80 50%, #000000 100%);
  padding: 10px 0;
  margin-top: 100px;
  text-align: center;
  color: #fff;
}

.footer .love {
  color: red
}

.footer a {
  text-decoration: none;
  margin: 0;
  color: #fff
}

.burger {
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
}

.main-nav {
  display: none;
  position: fixed;
  top: 4rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.95);
  padding: 1rem;
  border-radius: 10px;
  z-index: 999;
}

.main-nav.show {
  display: block;
}

.main-nav a {
  display: block;
  color: white;
  padding: 0.5rem 0;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus {
  color: #ffcc00;
}

a:focus,
button:focus {
  outline: 2px solid #ffcc00;
  outline-offset: 4px;
}

.profile-photo {
  display: block;
  margin: 0 auto;
  margin-top: 2rem; /* Ajoute une marge au-dessus pour séparer la photo du titre */
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.user-details h1 {
  font-size: 3rem; /* Augmente la taille du texte, ajustez selon vos préférences */
  margin-top: 2rem; /* Vérifiez que les marges sont ajustées pour éviter les débordements */
  margin-bottom: 1.5rem;
  line-height: 1.3; /* Ajuste le line-height pour maintenir une lisibilité et espacement corrects */
  color: #fff; /* Assurez que la couleur reste conforme au thème */
}

/* Styles généraux pour modal */
.modal-overlay {
  background-color: rgba(0, 0, 0, 0.8);
  color: #f0f0f0;
}

.modal-content {
  background-color: black;
  color: #f0f0f0;
}

.modal-content p,
.modal-content h4,
.modal-content ul,
.modal-content a {
  color: #f0f0f0;
}

/* Styles en mode clair avec des sélecteurs spécifiques */
[data-theme="light"] .modal-content {
  background-color: #f0f0f0;
  color: black;
}

[data-theme="light"] .modal-content p,
[data-theme="light"] .modal-content h4,
[data-theme="light"] .modal-content h5,
[data-theme="light"] .modal-content ul,
[data-theme="light"] .modal-content a {
  color: black;
}

[data-theme="light"] .modal-content strong {
  color: #333; /* Une couleur pour le texte gras */
  font-weight: bold; /* Augmentation de gras si souhaité */
}

#splash-screen {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
  color: #33ff33;
  font-family: 'IBM Plex Mono', monospace;
}

.splash-inner .loader-text {
  font-size: 1.5rem;
  animation: blinkText 1s steps(1) infinite;
}

@keyframes blinkText {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.lang-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 1px solid white;
  padding: 0.4em 0.7em;
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
  z-index: 10000;
}
#cv-floating-badge {
  position: fixed;
  top: 510px;
  right: 40px;
  width: 110px;
  height: auto;
  z-index: 999;
  animation: floatUpDown 1.5s ease-in-out infinite;
}

#cv-floating-badge img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  opacity: 0.95;
  transition: transform 0.3s ease;
}

#cv-floating-badge img:hover {
  transform: scale(1.08);
}

@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* === supprimer le contour jaune au focus sur les boutons === */
button:focus,
.theme-toggle:focus,
.btn:focus,
a:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* animation spin + pop */
@keyframes icon-spin-pop {
  0%   { transform: rotate(0deg)   scale(1);   opacity: 1; }
  50%  { transform: rotate(180deg) scale(1.3); opacity: 0.5; }
  100% { transform: rotate(360deg) scale(1);   opacity: 1; }
}

/* classe qu’on ajoutera depuis JS */
.theme-toggle.animate-icon .icon {
  animation: icon-spin-pop 0.6s ease-in-out;
}

.btn-morph {
  padding: .8em 1.6em;
  font-family: monospace;
  background: #07c;
  color: #fff;
  border: none;
  border-radius: 30px;
  transition: border-radius .3s ease;
  cursor: pointer;
}
.btn-morph:hover {
  border-radius: 6px;
}


/* Couleurs dynamiques Light/Dark */
#space-invaders-section h2,
#game-instructions {
  color: var(--text-color);
}

/* Canvas & bouton */
.game-canvas {
  border: 1px solid var(--border-color);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.game-btn {
  padding: 10px 20px;
  font-size: 1.2em;
  margin: 10px;
  cursor: pointer;
  background-color: var(--btn-bg);
  color: var(--btn-color);
  border: 1px solid var(--btn-border);
  border-radius: 4px;
}

/* Thème clair */
:root[data-theme="light"] {
  --text-color: #222;
  --border-color: #444;
  --btn-bg: #f0f0f0;
  --btn-color: #000;
  --btn-border: #ccc;
}

/* Thème sombre */
:root[data-theme="dark"] {
  --text-color: #fff;
  --border-color: #fff;
  --btn-bg: #333;
  --btn-color: #fff;
  --btn-border: #555;
}

/* Titre arc-en-ciel animé */
.rainbow-title {
  font-size: 3.5rem;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(270deg, #ff0000, #ff9900, #ffff00, #00ff00, #00ffff, #0000ff, #9900ff, #ff0000);
  background-size: 1600% 1600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow 6s linear infinite;
  margin-bottom: 20px;
}

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

.hidden-during-modal {
  visibility: hidden !important;
}

.google-style-bar {

  position: relative;

  display: flex;

  justify-content: center;

  align-items: center;

  margin: 20px auto 40px;

}

.animated-search {

  width: 60%;

  max-width: 500px;

  padding: 12px 40px;

  font-size: 1rem;

  border: 1px solid #ccc;

  border-radius: 30px;

  background-color: #f8f8f8;

  color: #555;

  font-family: 'IBM Plex Mono', monospace;

  text-align: center;

  white-space: nowrap;

  overflow: hidden;

}

.google-style-bar .icon {

  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  pointer-events: none;

}

.google-style-bar .icon.left {

  left: calc(20% + 10px);

}

.google-style-bar .icon.right {

  right: calc(20% + 10px);

}

@keyframes blink {

  0%, 100% { opacity: 1; }

  50% { opacity: 0; }

}
 
@media (max-width: 549px) {

  .google-style-bar {

    flex-direction: column;

    align-items: center;

    margin: 20px auto;

  }

  .animated-search {

    width: 90%;

    font-size: 0.9rem;

    padding: 10px 20px;

  }

  .google-style-bar .icon {

    display: none;

  }

}
 
#mobile-warning {
 animation: fadeInOut 3s ease-in-out;
 text-align: center;
}
@keyframes fadeInOut {
 0%   { opacity: 0; }
 10%  { opacity: 1; }
 90%  { opacity: 1; }
 100% { opacity: 0; }
}