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

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Fond animé */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(-45deg, #4e54c8, #8f94fb, #ff758c, #ff7eb3);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #fff;
    transition: background 0.5s;
}

@keyframes gradientBG {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

/* Menu sticky */
header {
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #ffdd59;
}

/* Sections */
.section {
    padding: 100px 20px;
    text-align: center;
    background: rgba(0,0,0,0.4);
    border-radius: 20px;
    margin: 50px auto;
    max-width: 1000px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
    scroll-margin-top: 100px; /* Offset menu sticky */
}

.section.active {
    opacity: 1;
    transform: translateY(0);
}

/* Texte machine à écrire */
#presentation h1 {
    overflow: hidden; 
    border-right: .15em solid #fff; 
    white-space: nowrap;
    margin: 0 auto 20px;
    letter-spacing: .15em;
    animation: typing 3s steps(30, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #fff; }
}

/* Texte flottant */
.section p {
    display: inline-block;
    animation: floatText 3s ease-in-out infinite alternate;
}

@keyframes floatText {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
}

/* Projets */
.projects-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.project-card {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    width: 250px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 30px rgba(0,0,0,0.4);
}

.project-card h3 {
    transition: transform 0.3s, color 0.3s;
    cursor: pointer;
}

.project-card h3:hover {
    transform: translateY(-10px) scale(1.05);
    color: #ffdd59;
}

/* Réseaux sociaux */
.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    font-size: 28px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
}

.social-icon:hover {
    transform: translateY(-10px) scale(1.2) rotate(-5deg);
    filter: brightness(1.3);
}

.social-icon.insta { background: #E1306C; }
.social-icon.discord { background: #7289DA; }
.social-icon.twitch { background: #9146FF; }

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0,0,0,0.6);
    color: #fff;
}
