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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #f5f5f5;
    scroll-behavior: smooth;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1e1e1e;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .logo img {
    height: 50px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: #f5f5f5;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #d4af37;
}

.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: auto;
}

.profile-pic {
    width: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    color: #d4af37;
}

.skills-container, .projects-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.skill {
    position: relative;
    background-color: #1e1e1e;
    border: 1px solid #333;
    padding: 1rem 2rem;
    border-radius: 8px;
    transition: transform 0.3s, background-color 0.3s;
    cursor: pointer;
    overflow: hidden;
}

.skill::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 6px;
    width: var(--level-width, 0%);
    background-color: #d4af37;
    transition: width 1s ease-out;
}

.skill:hover {
    background-color: #2c2c2c;
    transform: scale(1.05);
}

/* grid layout pour projects */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #1e1e1e;
    border: 1px solid #333;
    padding: 1.5rem;
    border-radius: 8px;
    min-height: 220px; /* hauteur minimum identique */
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
}

.project-card h3 {
    color: #d4af37;
    margin-bottom: 0.5rem;
}

.project-card p {
    color: #aaa;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.project-card a {
    color: #d4af37;
    text-decoration: none;
    align-self: flex-start;
}

.experience-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #1e1e1e;
    border: 1px solid #333;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    min-height: 200px; /* hauteur minimum */
    transition: transform 0.3s;
}

.experience-item:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
}

.experience-item h3 {
    color: #d4af37;
    margin-bottom: 0.5rem;
}

.experience-item p {
    color: #aaa;
    margin-bottom: 1rem;
}

.experience-item ul {
    padding-left: 1.2rem;
}

.experience-item ul li {
    margin-bottom: 0.5rem;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #1e1e1e;
    color: #777;
}

footer a {
    color: #d4af37;
    text-decoration: none;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.navbar.scrolled {
    background-color: #000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.6);
    transition: background-color 0.3s, box-shadow 0.3s;
}
