:root {
  --bg-color: #0f2027;
  --text-color: #fff;
  --accent: #00f7ff;
  --card-bg: rgba(255, 255, 255, 0.1);
}

body.light {
  --bg-color: #f0f0f0;
  --text-color: #222;
  --card-bg: rgba(255, 255, 255, 0.8);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background 0.5s, color 0.5s;
  /*user no select*/
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

nav {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
}

nav h1 {
  font-size: 24px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

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

nav ul li a  {
  height: 24px;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

nav ul li a:hover img {
  transform: scale(1.1);
}

#theme-toggle {
  background: none;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.hero {
  text-align: center;
  padding: 100px 20px;
}

.hero h2 {
  font-size: 48px;
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 10px var(--text-color); }
  to { text-shadow: 0 0 20px var(--accent); }
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: var(--accent);
  color: #000;
  border-radius: 5px;
  text-decoration: none;
}

.about, .projects, .contact {
  padding: 60px 20px;
}

.skills .bar {
  height: 10px;
  background: var(--accent);
  margin: 10px 0;
  border-radius: 5px;
}

.skills .html { width: 90%; }
.skills .css { width: 80%; }
.skills .js { width: 70%; }

.project-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 10px;
  flex: 1 1 300px;
  transition: transform 0.3s;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.card:hover {
  transform: scale(1.05);
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

form input, form textarea {
  padding: 10px;
  border: none;
  border-radius: 5px;
}

form button {
  padding: 10px;
  background: var(--accent);
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

footer {
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
}

#background {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
}
/*__________________________________________________________*/
  /* Bouton style */
    #playPauseBtn {
      position: fixed;
      bottom: 20px;
      left: 20px;
      background: rgba(15,32,39,0.75);
      color: rgba(0,247,255,0.2);
      border: none;
      border-radius: 50%;
      width: 50px;
      height: 50px;
      font-size: 22px;
      cursor: pointer;
      display: none; /* caché au départ */
      box-shadow: 0 4px 10px rgba(0,0,0,0.5);
      transition: transform 0.2s ease;
    }

    #playPauseBtn:hover {
      transform: scale(1.1);
    }

    /* Vapeur pulsée */
.steam-pulse {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 60px;
  background: radial-gradient(circle, rgba(255,255,255,0.6) 20%, transparent 70%);
  animation: steamRise 2.5s infinite ease-in-out;
  opacity: 0.5;
  border-radius: 50%;
}

@keyframes steamRise {
  0% {
    transform: translateX(-50%) translateY(0) scaleX(1);
    opacity: 0.5;
  }
  50% {
    transform: translateX(-50%) translateY(-20px) scaleX(1.2);
    opacity: 0.8;
  }
  100% {
    transform: translateX(-50%) translateY(-40px) scaleX(0.8);
    opacity: 0;
  }
}
/* smoke effet js */
#smoke-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

