body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #0d1117;
    color: #f5f5f5;
    line-height: 1.6;
}

header {
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 17, 23, 0.95); /* Fond légèrement transparent */
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #1f2937;
}
    
header h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #58a6ff;
}
    header p {
        color: #9ca3af;
        font-size: 1.2rem;
    }
    nav {
        margin-top: 15px;
    }
    nav a {
        color: #58a6ff;
        margin: 0 15px;
        text-decoration: none;
        font-weight: bold;
        transition: color 0.3s ease;
    }
    nav a:hover {
        color: #ff9800;
    }
    section {
        padding: 40px 20px;
        max-width: 1100px;
        margin: auto;
        animation: fadeUp 1s ease-in-out;
    }
    h2 {
        text-align: center;
        color: #ff9800;
        margin-bottom: 30px;
    }
    .project {
        background: #161b22;
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 10px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .project:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
    }
    .project img {
        width: 100%;
        border-radius: 8px;
        margin-bottom: 10px;
        transition: transform 0.3s ease;
    }
    .project img:hover {
        transform: scale(1.03);
    }
    footer {
        text-align: center;
        padding: 15px;
        background: #161b22;
        margin-top: 20px;
        font-size: 0.9rem;
        color: #9ca3af;
    }
    a {
        color: #58a6ff;
        transition: color 0.3s ease;
        text-decoration: none;
    }
    a:hover {
        color: #ff9800;
    }
    @keyframes fadeIn {
        from {opacity: 0;}
        to {opacity: 1;}
    }
    @keyframes fadeUp {
        from {opacity: 0; transform: translateY(20px);}
        to {opacity: 1; transform: translateY(0);}
    }
    
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.gallery img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.lightbox {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  left: 0; 
  top: 0; 
  width: 100%; 
  height: 100%; 
  background: rgba(0,0,0,0.9); 
  justify-content: center; 
  align-items: center;
  user-select: none;
}

.lightbox img {
  max-width: 90%; 
  max-height: 90%;
  border-radius: 10px;
}

.lightbox .close {
  position: absolute; 
  top: 20px; 
  right: 30px; 
  color: white; 
  font-size: 40px; 
  font-weight: bold; 
  cursor: pointer;
  user-select: none;
  outline: none;
}

.lightbox .close:hover {
  color: orange;
}

/* Petite animation */
.lightbox img {
  animation: zoomIn 0.3s ease;
}
@keyframes zoomIn {
  from {transform: scale(0.8);}
  to {transform: scale(1);}
}

.lightbox .prev,
.lightbox .next {
    position: absolute;
    top: 50%;
    font-size: 50px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    transform: translateY(-50%);
    transition: color 0.3s ease;
}

.lightbox .prev:hover,
.lightbox .next:hover {
    color: orange;
}

.lightbox .prev {
    left: 20px;
}

.lightbox .next {
    right: 20px;
}
