:root {
  --bg-color: #050505;
  --grid-color: rgba(255, 255, 255, 0.05);
  --accent-color: #92e002; /* Bleu néon (Cyberpunk/Synthwave) */
  --text-color: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none; /* On cache le curseur par défaut pour mettre le nôtre */
}

body {
  background-color: var(--bg-color);
  /* Création de la grille de fond */
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 50px 50px;
  color: var(--text-color);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth; /* Scrolling fluide */
}


/******************curseur */
/* === 2. CURSEUR PERSONNALISÉ === */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  pointer-events: none; /* Pour ne pas bloquer les clics */
  transform: translate(-50%, -50%);
  transition:
    width 0.2s,
    height 0.2s,
    background-color 0.2s;
  z-index: 9999;
  background-color: rgb(154, 255, 95);
}

.custom-cursor.hovered {
  width: 50px;
  height: 50px;
  background-color: rgba(154, 255, 95, 0.007);
}




/* --- NAVIGATION --- */
.app-nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: transparent;
  backdrop-filter: blur(10px); /* Effet verre (Glassmorphism) */
  z-index: 100;

  border-bottom: 0.5px solid white;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  margin: 0 15px;
  font-weight: 400;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a.active,
.nav-links a:hover {
  font-weight: 700;
  padding: 20px 0 20px 0;

  /*********/
  box-shadow: 0 1px 35px #92e002;
  border: 2.5px solid white;
  border-left: 12px;
  border-right: 12px;
  border-top: 12px;

  
}
/************************/

#theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- LAYOUT GLOBAL DES PAGES --- */
.page-container {
  padding: 120px 5% 50px 5%; /* Espace pour la navbar fixe */
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
}

.section-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 40px;
  letter-spacing: -1px;

  
  
}

/* --- BENTO GRID (PAGE À PROPOS) --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: 20px;
}




/*voir cv bouton*****************************/
/* == CALL TO ACTION === */
.cta-section {
  text-align: center;
  /*padding: 6rem 2rem;*/
}

.cta-button {
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.2rem;
  color: var(--bg-color);
  background-color: var(--accent-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px var(--accent-color);
}


/* Style de base d'une boîte Bento */
.bento-item{
  
 
  background: transparent;
  backdrop-filter: blur(80px); /*Effet verre (Glassmorphism) */
  /*background: rgb(110, 238, 255);*/
  border: 0.5px solid white; /* Rappel subtil de la grille du fond */
  border-radius: 24px; /* Coins très ronds typiques du Bento/Apple */
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;

  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s ease;
}

.bento-item.experience:hover{
  box-shadow: 0 2px 35px #92e002;
}

.bento-item.projet:hover{
  
  box-shadow: 0 2px 35px #b150d1;
}

.linkedin a img{
  width: 80%;
  margin: auto;
  
}



.linkedin a img:hover{
  box-shadow: 0 2px 35px #1b6eb3;
  /*border-radius: 55px;
  border: 2.5px solid white; */

  
  
}



.bento-item:hover{
  border: 2.5px solid white; 
 
}


.bento-item.projet{
  background-color: #b150d1c6;
  font-size: 1.76rem;
  font-weight: 300;
  
}

.bento-item.experience{
  background-color:  rgb(154, 255, 95);
  font-size: 1.76rem;
  font-weight: 300;
  
}


/*.bento-item.linkedin{
  background: transparent;
  backdrop-filter: blur(80px);
  border: 0px solid var(--grid-color);

  background-image: url(/images/linkedin.png);
  width: 100%;
  background-repeat: no-repeat;
  background-size: contain;
  
  justify-content: center;
  align-items: center;

}*/

.colone-outil{
  display: grid;
  gap: 7px;
  margin: auto auto 0px auto;
  
}

/* Mode sombre spécifique pour les boîtes pour qu'elles ressortent */
body.dark-mode .bento-item {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Effet "Dopamine" au survol */
.bento-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 2px 35px rgb(255, 255, 255);
}

/* Gestion des tailles (Spanning) */
.span-2 {
  grid-column: span 2;
}

.span-3 {
  grid-column: span 3;
  height: 75vh;
}

h4{
  text-align: center;
  margin-bottom: 10px;
}

.span-row-2 {
  grid-row: span 2;
  justify-content: flex-start;
}

/* Styles internes des boîtes */
.bento-item h2,
.bento-item h3 {
  margin-bottom: 15px;
  font-weight: 700;
}
.bento-item p {
  line-height: 1.6;
  opacity: 0.8;
}


.avatar {
  
  grid-row: 1;
  grid-column: 1;
  overflow: hidden;
  
  align-items: center;
  
}

.avatar img{
  /*width:322px ;
  height:450px;*/
  width: 120%;
  
}


.big-number {
  font-size: 3rem;
  font-weight: 900;
  
  line-height: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.tags span {
  padding: 8px 15px;
  background: var(--grid-color);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

.btn-primary {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: var(--text-color);
  color: var(--bg-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  align-self: flex-start;
  transition: background 0.3s ease;
}
.btn-primary:hover {
  background: var(--accent-color);
  color: white;
}
/*---------------------------*/

/* --- RESPONSIVE (Tablettes et Mobiles) --- */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .span-2 {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr; /* 1 seule colonne sur téléphone */
    grid-auto-rows: minmax(200px, auto);
  }
  .span-2 {
    grid-column: span 1;
  }

  .span-3 {
    grid-column: span 1;
  }
  .span-row-2 {
    grid-row: span 1;
  }
  .section-title {
    font-size: 2.5rem;
  }
}





/**************************************************/



.sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.controls {
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.controls{
  display: flex;
  justify-content: start;
  width: 100%;
  gap: 12px;
}

.btn {
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
  font-size: 13px;
}

.btn:hover {
  background: #f5f5f5;
}

.btn:active {
  background: #eeeeee;
}

input[type="file"] {
  display: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 12px;
}

.pill label {
  color: var(--muted);
}

.pill input[type="range"] {
  width: 140px;
}

.pill input[type="text"] {
  width: 160px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 8px 10px;
  border-radius: var(--radius);
  outline: none;
  font-size: 13px;
  line-height: 1;
  height: calc(13px + 16px);
  box-sizing: border-box;
}

.pill input[type="text"]:focus {
  border-color: #999999;
}

.pill input[type="checkbox"] {
  transform: translateY(1px);
}

.wrap {
  display: grid;
  grid-template-columns: 1fr;
}

pre {
  margin: 0;
  padding: 16px;
  white-space: pre;
  overflow: auto;
  font-size: 9px;
  line-height: 9px;
  letter-spacing: 0px;
  background: #fafafa;
  color: var(--text);
}

.hint {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.kbd {
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: var(--radius);
  color: var(--text);
  background: var(--bg);
  font-size: 11px;
}

canvas {
  display: none;
}



/* === 7. MENU BURGER & RESPONSIVE === */

/* Style du bouton burger (caché par défaut sur PC) */
.burger-menu {
  display: none;
  cursor: pointer;
  z-index: 101; /* Toujours au-dessus du menu déployé */
}

/* Les 3 barres du burger */
.burger-menu div {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* MEDIA QUERY : Écrans de taille Tablette et Mobile */
@media screen and (max-width: 768px) {
  
  /* On affiche le burger */
  .burger-menu {
    display: block;
  }

  /* On transforme la barre de liens en menu plein écran */
  .nav-links {
    position: fixed;
    right: -100%; /* Caché hors de l'écran par défaut */
    top: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(5, 5, 5, 0.95); /* Ton bg-color avec légère transparence */
    backdrop-filter: blur(15px); /* Garde l'effet verre */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 100;
  }

  /* On grossit et espace les liens pour le tactile */
  .nav-links a {
    margin: 20px 0;
    font-size: 1.5rem;
  }

  /* Classe qui sera ajoutée en JS pour ouvrir le menu */
  .nav-links.nav-active {
    right: 0;
  }

  /* Animations pour transformer le burger en croix (X) quand il est ouvert */
  .burger-menu.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
    background-color: var(--accent-color); /* Devient couleur néon */
  }
  
  .burger-menu.toggle .line2 {
    opacity: 0;
  }
  
  .burger-menu.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
    background-color: var(--accent-color);
  }
  
  /* Ajustement de ton titre "PORTFOLIO" pour qu'il rentre sur mobile */
  .portfolio {
    font-size: 18vw; 
  }
}


