:root {
    --bg: #0b0b0b;
    --text: #ffffff;
    --text-dim: #888888;
    --accent: #3b82f6;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* --- CURSOR --- */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
}

/* --- UI --- */
.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
}

.status {
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
    letter-spacing: 1px;
}

.pulse {
    width: 6px;
    height: 6px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff00;
}

.menu-btn {
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border: 1px solid #fff;
    padding: 5px 10px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.lang-btn {
    color: #fff;
    opacity: 0.5;
    transition: opacity 0.3s, color 0.3s;
}

.lang-btn:hover {
    opacity: 1;
}

.lang-btn.active {
    opacity: 1;
    color: var(--accent);
}

.lang-divider {
    color: var(--text-dim);
}

.progress-counter {
    position: fixed;
    bottom: 30px;
    left: 50px;
    font-family: 'Syncopate';
    font-size: 1rem;
    z-index: 100;
    mix-blend-mode: difference;
}

.divider {
    color: var(--text-dim);
}

/* --- SCROLL --- */
.scroll-container {
    display: flex;
    height: 100vh;
    width: max-content;
    will-change: transform;
}

.panel {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5vw;
    flex-shrink: 0;
    border-right: 1px solid #1a1a1a;
}

/* --- SECTIONS --- */
.intro {
    width: 85vw;
}

.huge-text {
    font-family: 'Syncopate', sans-serif;
    font-size: 7vw;
    line-height: 0.95;
    font-weight: 700;
    text-transform: uppercase;
}

.outline {
    color: transparent;
    -webkit-text-stroke: 2px white;
}

.sub-intro {
    margin-top: 40px;
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 500px;
    line-height: 1.6;
}

.project {
    width: 65vw;
    position: relative;
}

.project-img {
    width: 100%;
    height: 55%;
    overflow: hidden;
    margin-bottom: 30px;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: transform 0.7s ease, filter 0.5s ease;
}

.project:hover img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.project-info .cat {
    color: var(--accent);
    font-size: 0.7rem;
    letter-spacing: 2px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.project-info h2 {
    font-size: 3.5rem;
    line-height: 1;
    margin: 0 0 20px 0;
    font-family: 'Syncopate';
}

.project-info .desc {
    font-size: 0.9rem;
    color: var(--text-dim);
    max-width: 400px;
    margin-bottom: 20px;
}

/* Boutons Projets */
.btn-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-link {
    text-decoration: none;
    color: white;
    border-bottom: 1px solid white;
    padding-bottom: 5px;
    font-size: 0.8rem;
    transition: 0.3s;
}

.btn-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.btn-more {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    font-family: 'Syncopate';
    font-size: 0.7rem;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 1px;
}

.btn-more:hover {
    background: white;
    color: black;
    border-color: white;
}

/* More Projects (GitHub Panel) */
.more-projects {
    width: 60vw;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #111, #050505);
}

.more-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.huge-icon {
    font-size: 8rem;
    color: white;
    transition: transform 0.5s ease, text-shadow 0.5s ease;
}

.more-projects:hover .huge-icon {
    transform: translateY(-10px) rotate(5deg);
    text-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
}

.more-content h2 {
    font-size: 3rem;
    font-family: 'Syncopate';
}

.more-content p {
    color: var(--text-dim);
    max-width: 450px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.btn-github {
    margin-top: 20px;
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: black;
    text-decoration: none;
    font-family: 'Syncopate';
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 50px;
    transition: 0.3s;
    letter-spacing: 1px;
}

.btn-github:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.05);
}

/* Bento Grid Skills */
.skills-container {
    width: 70vw;
    padding: 0 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-family: 'Syncopate';
    font-size: 3rem;
    margin-bottom: 40px;
}
.section-title span {
    color: transparent;
    -webkit-text-stroke: 1px white;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 20px;
    width: 100%;
}

.bento-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.bento-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 70%);
    opacity: 0;
    transition: 0.5s;
    pointer-events: none;
}

.bento-item:hover::before {
    opacity: 1;
}

.bento-item.highlight {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(0,0,0,0));
    border-color: rgba(59, 130, 246, 0.2);
}

.bento-item.wide {
    grid-column: span 2;
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.bento-item h3 {
    font-family: 'Syncopate';
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.bento-item p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

.tech-link {
    color: var(--text-dim);
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
}

.bento-item:hover .tech-link {
    color: white;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.bento-item .tech-link:hover {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

/* Contact */
.contact {
    width: 80vw;
    align-items: center;
    text-align: center;
}

.contact h1 {
    font-family: 'Syncopate';
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-dim);
}

.email-link {
    font-size: 5vw;
    color: white;
    text-decoration: none;
    font-family: 'Syncopate';
    font-weight: 700;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
}

.email-link:hover {
    border-bottom-color: var(--accent);
}

.socials {
    margin-top: 60px;
    display: flex;
    gap: 40px;
    font-size: 1rem;
    letter-spacing: 1px;
}

.socials a {
    color: var(--text-dim);
    text-decoration: none;
    border: 1px solid #333;
    padding: 10px 20px;
    border-radius: 50px;
    transition: 0.3s;
}

.socials a:hover {
    color: white;
    border-color: white;
    background: #222;
}

/* --- DETAIL OVERLAY (Le panneau caché) --- */
#detail-overlay {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0b0b0b;
    z-index: 2000;
    overflow-y: auto;
    transition: top 0.6s cubic-bezier(0.7, 0, 0.3, 1);
    padding: 80px 10vw;
}

#detail-overlay.open {
    top: 0;
}

#close-detail {
    position: fixed;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: white;
    font-family: 'Syncopate';
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    z-index: 2001;
    mix-blend-mode: difference;
    /* Caché par défaut, s'affiche uniquement quand on ajoute la classe .visible */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#close-detail.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.detail-header {
    margin-bottom: 60px;
    border-bottom: 1px solid #333;
    padding-bottom: 40px;
}

.detail-header h1 {
    font-family: 'Syncopate';
    font-size: 3rem;
    margin-bottom: 10px;
}

.detail-header .tags {
    color: var(--accent);
    font-family: 'Inter';
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.detail-row.reverse {
    direction: rtl;
}

.detail-row.reverse .detail-text {
    direction: ltr;
}

.detail-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.detail-text h3 {
    font-family: 'Syncopate';
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.detail-text p {
    font-family: 'Inter';
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
}

/* Responsive Overlay */
@media (max-width: 768px) {
    .detail-row {
        grid-template-columns: 1fr;
        gap: 30px;
        direction: ltr !important;
    }

    .huge-text {
        font-size: 12vw;
    }
}