/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0a0a0f;
    color: #ffffff;
    line-height: 1.6;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(10,10,15,0.85);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #4498db;
}

.logo img {
    width: 3%;
    height: auto;
    margin-right: 10px; /* espace entre l'image et le texte */
    margin-top: 10px;
}

nav button {
    background: linear-gradient(90deg, #4498db, #0051ff);
    border: none;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    border-color: #0a0a0f;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}



/* HERO */
.hero {
    text-align: center;
    padding: 6rem 2rem;
}

.hero h1 {
    font-size: 3rem;
    color: #4498db;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero button {
    background: linear-gradient(90deg, #4498db, #fbadff);
    border: none;
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.3s;
}

.hero button:hover {
    opacity: 0.85;
}

/* PRESENTATION */
.presentation {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 1rem;
    text-align: center;
}

.presentation h2 {
    font-size: 2rem;
    color: #4498db;
    margin-bottom: 1rem;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(10,10,15,0.85);
    margin-top: 4rem;
    
}

footer p {
    margin-bottom: 0.5rem;
}

footer a:hover {
    text-decoration: underline;
}

.title:hover {
    text-shadow: 0 0 10px #4498db;
    transition: 0.3s;
}

#user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* caché quand non connecté */
}

/* Projects layout */
.projects {
    padding: 2rem 1rem;
}

.project-list {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.project-item {
    background: linear-gradient(#121214, #0a0a0f);
    border: 2px solid linear-gradient(#121214, #0a0a0f);;
    padding: 1rem;
    border-radius: 10px;
    width: calc(33.333% - 0.66rem); /* trois par ligne */
    min-width: 220px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.project-item h3 {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.project-item p {
    font-size: 0.95rem;
    color: #dfe9ff;
}

.project-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
}

@media (max-width: 900px) {
    .project-item {
        width: calc(50% - 0.5rem);
    }
}

@media (max-width: 520px) {
    .project-item {
        width: 100%;
    }
}

.projects, h2{
    font-size: 2rem;
    text-align: center;
    color: #4498db;
}

#minecraft-banner {
    border-radius: 10px;
    border: 1px solid #585757;
    width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    scale: 0.8;
}
 
.project-item:hover  {
    transform: scale(1.05);
    transition: transform 0.3s ease;

    box-shadow: 0 10px 20px rgba(0,0,0,0.6);

/* Texte dans le bouton */
nav button .login {
    display: inline-block;
    background: linear-gradient(90deg, #121214, #0a0a0f); /* ou une autre base */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: #ffffff; /* texte blanc au repos */
}

/* Hover : dégradé animé uniquement sur le texte */
nav button:hover .login {
    background-image: linear-gradient(270deg, #4498db, #00f0ff, #4498db);
    background-size: 200% auto;
    animation: electric-gradient 2s linear infinite;
    -webkit-text-fill-color: transparent;
}

@keyframes electric-gradient {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}