/* === GENERAL === */
body {
margin: 0;
font-family: 'Inter', sans-serif;
color: #fafbfc;
}

/* === 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;
}

p {
margin: 0;
padding: 0;
z-index: 1000;
position: relative;
}

/* === 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;
}

header {
    text-align: center;
    padding: 60px 20px 20px;
    z-index: 1000;
    position: relative;
}

header h1 {
font-size: 3em;
color: #58a6ff;
text-decoration: underline;
text-shadow: 0 0 20px rgba(88, 166, 255, 0.6);
margin-bottom: 10px;
}

header h1:hover {
    text-shadow: 0 0 25px rgba(88, 166, 255, 0.8);
    transition: text-shadow 0.3s ease;
}

/* === FOOTER === */
footer {
text-align: center;
padding: 37px 20px;
color: #fdfeff;
font-size: 0.9em;
z-index: 1000;
position: relative;
}

/* === PROJECTS === */
.subtitle {
    font-size: 1.1em;
    color: #f5f6f7;
    margin-bottom: 20px;
}

.projects-section {
    padding: 60px 20px;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

.projects-section h2 {
    font-size: 2.5em;
    color: #58a6ff;
    text-decoration: underline;
    text-shadow: 0 0 20px rgba(88, 166, 255, 0.6);
    z-index: 1000;
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cartes par ligne */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(88, 166, 255, 0.4);
}

.project-card img {
    display: block;
    width: auto;
    height: 100px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 8px;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(88, 166, 255, 0.6));
}

.project-card h3 {
    color: #ffffff;
    margin: 10px 0 8px;
    font-size: 1.3em;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.project-card:hover h3 {
    color: #58a6ff;
    text-shadow: 0 0 8px rgba(88, 166, 255, 0.8);
}

.project-card p {
    color: #c9d1d9;
    font-size: 0.95em;
    margin-bottom: 15px;
    padding: 0 10px;
}

.project-card.placeholder {
    border: 1px dashed rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.03);
    color: #8b949e;
    font-style: italic;
    animation: pulse 2s infinite;
}

.project-card.placeholder i {
    color: #8b949e;
    margin-bottom: 10px;
}

.project-card.placeholder p {
    font-size: 1em;
}

.btn-project {
    background: linear-gradient(145deg, #58a6ff, #1f6feb);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 12px rgba(88, 166, 255, 0.3);
}

.btn-project:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(88, 166, 255, 0.7);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Responsive */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar .nav-links li a {
    font-size: 0;
    }

    .navbar .nav-links li a i {
    font-size: 22px;
    }
    .project-card img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
        padding: 20px 15px;
    }
    .btn-project {
    display: inline-block;
    margin: 0 auto;
    }
}