/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #05050a;
    color: #eaeaea;
    overflow-x: hidden;
}

/* BACKGROUND */
.bg-gradient {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, rgba(138, 63, 252, 0.35), transparent 60%);
    z-index: -2;
}

.bg-noise {
    position: fixed;
    inset: 0;
    background: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.04;
    z-index: -1;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2.5rem;
    padding: 0.9rem 2.4rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(138, 63, 252, 0.35);
    z-index: 100;
}

.navbar a {
    color: #dcdcdc;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    position: relative;
}

.navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #b983ff;
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

/* SECTIONS */
section {
    padding: 4rem 2rem;
    text-align: center;
    scroll-margin-top: 120px;
}

/* HERO */
.hero {
    margin-top: 100px;
    padding-bottom: 2rem;
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.6rem);
    color: #b983ff;
    margin-bottom: 1rem;
}

.hero p {
    max-width: 600px;
    margin: 0.5rem auto 0;
    /* marges réduites */
    opacity: 0.85;
    font-size: 1.1rem;
}
/* PROJECTS */
.projects h2,
.tech h2 {
    font-family: 'Poppins', sans-serif;
    color: #b983ff;
    
    padding-top: 2rem;
}

h5{
  margin-bottom:1rem;
}

.project-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    /* un peu moins d'espace entre les cards */
}

.project-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: transform 0.5s cubic-bezier(.2, .8, .2, 1),
        box-shadow 0.5s cubic-bezier(.2, .8, .2, 1);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(185, 131, 255, 0.35);
}

.project-card h3 {
    margin: 0.8rem 1rem;
    /* réduit les marges */
    font-family: 'Poppins', sans-serif;
}

.project-card p {
    margin: 0 1rem 1rem;
    /* marge réduite */
    opacity: 0.75;
}

/* TECH */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    /* un peu moins de gap */
}

.tech-grid span {
    padding: 0.8rem 1.8rem;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.1);
    font-family: 'Poppins', sans-serif;
    transition: transform 0.3s ease, background 0.3s ease;
}

.tech-grid span:hover {
    transform: translateY(-4px);
    background: rgba(185, 131, 255, 0.35);
}

/* SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: 1s cubic-bezier(.2, .8, .2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.tech_lg{
  width:1.5em;
  height:1.5em;
}


