/* RESET & VARIABLES */
:root {
    --bg-main: #0b0b0f;
    --bg-card: #14141c;
    --bg-hover: #1c1c26;
    --text-main: #b6b6b6;
    --text-light: #ffffff;
    --accent-green: #30c030;
    --accent-blue: #00aaff;
    --accent-purple: #7a00ff;
    --border-color: #2a2a35;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    scroll-behavior: smooth;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(11, 11, 15, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-green);
}

/* HERO SECTION */
.hero {
    text-align: center;
    padding: 6rem 1rem 4rem;
    background: radial-gradient(circle at top, #1a1a2e 0%, var(--bg-main) 70%);
}

.hero-content {
    max-width: 800px;
    margin: auto;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.hero h1 span {
    color: var(--accent-green);
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.badge {
    background: var(--bg-card);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

a {
    color: var(--text-main);
    font-style: normal;
}

.objective {
    font-style: italic;
    background: var(--bg-card);
    padding: 1.5rem;
    border-left: 4px solid var(--accent-blue);
    border-radius: 4px;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background: var(--accent-green);
    color: #000;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(48, 192, 48, 0.4);
}

/* MAIN CONTENT */
main {
    max-width: 1100px;
    margin: auto;
    padding: 0 1rem;
}

section {
    margin: 5rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ABOUT */
.profile-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.profile-card h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.story p {
    margin-bottom: 1rem;
}

.hidden {
    display: none;
}

.toggle-btn {
    background: transparent;
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: var(--accent-green);
    color: #000;
}

/* EXPERIENCE GRID */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #4a4a5a;
}

.card-header {
    padding: 1rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.card-header.blue { background: linear-gradient(90deg, #0f2027, #203a43, #2c5364); }
.card-header.purple { background: linear-gradient(90deg, #140026, #3a005c); }
.card-header.green { background: linear-gradient(90deg, #00260b, #00591b); }

.card-body {
    padding: 1.5rem;
}

.card-body h4 {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.card-body ul {
    list-style-type: none;
    margin-bottom: 1rem;
}

.card-body li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
    font-size: 0.95rem;
}

.card-body li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
}

.card-body hr {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 1rem 0;
}

/* SKILLS & GITHUB */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.skills-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.skills-card h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.lang-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.tag {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
}

.tag.fr { background: #1a4f8b; }
.tag.en { background: #8b1a1a; }
.tag.pt { background: #1a8b38; }
.tag.es { background: #8b6c1a; }
.tag.dark { background: #2a2a35; border: 1px solid #444; }

.github-stats {
    text-align: center;
}

.images-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.images-container img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* PROJECTS */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.project-btn {
    background: var(--bg-card);
    color: var(--text-light);
    padding: 1rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #5865F2; /* Discord Color */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.project-btn:hover {
    background: #5865F2;
    color: #fff;
    transform: translateY(-3px);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    color: #666;
    border-top: 1px solid var(--border-color);
}

/* RESPONSIVE */
@media(max-width: 768px) {
    .nav-links {
        display: none; /* Simplification pour mobile, on peut rajouter un menu burger plus tard */
    }
    
    .hero h1 { font-size: 2.5rem; }
    .hero h2 { font-size: 1.2rem; }
    
    .images-container { flex-direction: column; align-items: center; }
}