/* === GENERAL === */
body {
margin: 0;
font-family: 'Inter', sans-serif;
color: #c9d1d9;
}

/* === BACKGROUND WAVE (Three.js) === */
#bg-wave {
    position: fixed;
    inset: 0;
    z-index: 0;          /* arrière-plan */
    pointer-events: none; /* le canvas ne bloque pas les clics */
}

/* Le canvas généré par Three.js */
#bg-wave canvas {
    width: 100%;
    height: 100%;
    display: block;
}

header {
    text-align: center;
    padding: 60px 20px 20px;
    z-index: 1000;
    position: relative;
}

p {
margin: 0;
padding: 0;
}

/* === NAVBAR === */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 40px;
position: sticky;
top: 0;
z-index: 1000;
}

.navbar .logo {
font-size: 24px;
font-weight: bold;
color: #58a6ff;
font-family: 'Fira Code', monospace;
letter-spacing: 0.5px;
text-shadow: 0 0 5px rgba(88, 166, 255, 0.4), 0 0 10px rgba(88, 166, 255, 0.2);
transition: text-shadow 0.3s ease;
}

.navbar .logo:hover {
text-shadow: 0 0 8px rgba(88, 166, 255, 0.7), 0 0 12px rgba(88, 166, 255, 0.5);
}

.navbar .nav-links {
list-style: none;
display: flex;
gap: 30px;
}

.navbar .nav-links li a {
    text-decoration: none;
    color: #c9d1d9;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.nav-links li a i {
    margin-right: 6px;
}

.navbar .nav-links li a i {
    font-size: 20px;
    transition: transform 0.2s, color 0.3s;
}

.navbar .nav-links li a:hover i {
    transform: scale(1.2);
    color: #58a6ff;
}

.navbar .nav-links li a:hover {
    color: #58a6ff;
}

main {
    position: relative;
    z-index: 5;
}

/* === FOOTER === */
footer {
text-align: center;
padding: 37px 20px;
color: #f8fafc;
font-size: 0.9em;
z-index: 1000;
position: relative;
}

/* === SECTION === */
section {
padding: 80px 20px;
text-align: center;
border-radius: 12px;
margin: 40px auto;
max-width: 1000px;
}

/* === SKILLS === */
.skills-grid {
display: flex;
justify-content: center;
gap: 20px;
flex-wrap: wrap;
margin: 20px auto 40px;
max-width: 1000px;
}
.skill-card {
    width: 120px;
    height: 120px;
    background-color: #161b22;
    border-radius: 10px;
    border: 2px solid rgba(88,166,255,0.15);
    color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 12px rgba(88, 166, 255, 0.15);
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Délais d'entrée progressive */
.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }

.skill-card:hover {
  transform: scale(1.12);
  box-shadow: 0 0 18px rgba(88, 166, 255, 0.45);
}
.skill-card i {
  font-size: 40px;
  margin-bottom: 10px;
}

h2 {
    font-size: 2.5rem;
    margin: 40px 0 10px;
    color: #58a6ff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 3px solid #58a6ff;
    display: inline-block;
    padding-bottom: 10px;
}

.skills h3 {
    font-size: 1.8rem;
    color: #58a6ff;
    margin: 50px 0 25px;
    position: relative;
    display: inline-block;
}
.skills h3::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background: #58a6ff;
    margin: 8px auto 0;
    box-shadow: 0 0 8px rgba(88, 166, 255, 0.6);
}

/* langages */
.skill-card.html i {
  color: #e34c26; 
}
.skill-card.html {
  background-color: rgba(227, 76, 38, 0.15); 
}
.skill-card.html:hover {
    box-shadow: 0 0 15px #e34c26;
}
.skill-card.css i {
  color: #2965f1; 
}
.skill-card.css {
  background-color: rgba(41, 101, 241, 0.15);
}
.skill-card.css:hover {
    box-shadow: 0 0 15px #2965f1;
}
.skill-card.js i {
  color: #f0db4f; 
}
.skill-card.js {
  background-color: rgba(240, 219, 79, 0.15); 
}
.skill-card.js:hover {
    box-shadow: 0 0 15px #f0db4f;
}
.skill-card.php i {
  color: #8993be; 
}
.skill-card.php {
  background-color: rgba(137, 147, 190, 0.15);
}
.skill-card.php:hover {
    box-shadow: 0 0 15px #8993be;
}

/* bases de données */
.skill-card.mysql i {
  color: #da7cec; 
}
.skill-card.mysql {
  background-color: rgba(0, 117, 143, 0.15);
}
.skill-card.mysql:hover {
    box-shadow: 0 0 15px #da7cec;
}

/* frameworks et librairies */
.skill-card.react i {
  color: #61dafb; 
}
.skill-card.react {
  background-color: rgba(97, 218, 251, 0.08); 
}
.skill-card.react:hover {
  box-shadow: 0 0 20px #61dafb;
}
.skill-card.threeJs i {
  color: #0769ad; 
}
.skill-card.threeJs {
  background-color: rgba(7, 105, 173, 0.10);
}
.skill-card.threeJs:hover {
  box-shadow: 0 0 20px #0769ad;
}
.skill-card.tailwind i {
  color: #06b6d4; 
}
.skill-card.tailwind {
  background-color: rgba(6, 182, 212, 0.10);
}
.skill-card.tailwind:hover {
  box-shadow: 0 0 20px #06b6d4;
}

/* outil et versionning */
.skill-card.git i {
  color: #f05032; 
}
.skill-card.git {
  background-color: rgba(240, 80, 50, 0.15);
}
.skill-card.git:hover {
  box-shadow: 0 0 15px #f05032;
}
.skill-card.github i {
  color: #c9d1d9; 
}
.skill-card.github {
  background-color: rgba(201, 209, 217, 0.15);
}
.skill-card.github:hover {
  box-shadow: 0 0 15px #c9d1d9;
}
.skill-card.node-js i {
  color: #3c873a; 
}
.skill-card.node-js {
  background-color: rgba(60, 135, 58, 0.15);
}
.skill-card.node-js:hover {
  box-shadow: 0 0 15px #3c873a;
}
.skill-card.vscode i {
  color: #007ACC; 
}
.skill-card.vscode {
  background-color: rgba(0, 122, 204, 0.15);
}
.skill-card.vscode:hover {
  box-shadow: 0 0 15px #007ACC;
}

@media (max-width: 768px) {
    .navbar .nav-links li a {
    font-size: 0;
    }

    .navbar .nav-links li a i {
    font-size: 22px;
    }
}