:root {
    --bg-color: #000000;
    --bg-alt: #050505;
    --text-color: #ffffff;
    --text-muted: #888888;
    --accent-color: #ff0000;
    --font-heading: 'Syne', sans-serif;
    --font-title: 'Syne', sans-serif;
    --font-text: 'Space Grotesk', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

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

html {
    scroll-behavior: initial; /* Handled by Lenis */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-text);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Film Grain Effect */
.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

#smooth-wrapper {
    overflow: hidden;
    width: 100vw;
    max-width: 100%;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 4vw;
    font-weight: 800;
    letter-spacing: 0.2em;
    opacity: 0;
}

/* Typography */
h1, h2, h3, .nav-brand {
    font-family: var(--font-heading);
    font-weight: 700;
}

.section-title {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 5vw, 5rem);
    color: var(--text-color);
    margin-bottom: 3rem;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
    text-align: left;
    padding-bottom: 0.1em; /* Empêche de couper les accents/jambages */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(15px);
    padding: 1.5rem 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-btn {
    display: none; /* hidden on desktop */
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    z-index: 1001;
}

.menu-btn-line {
    width: 30px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none; /* Handled via media query */
}

.nav-brand {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    font-weight: 800;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.5;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('assets/hardtechno-rave.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero-title {
    font-size: clamp(4rem, 10vw, 10rem);
    font-family: var(--font-title);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.char-wrap {
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-muted);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-insta-card {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    width: fit-content;
    z-index: 10;
}

.hero-insta-card:hover {
    border-color: var(--accent-color);
    background: rgba(255, 0, 0, 0.05);
}

.hero-insta-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.hero-insta-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.insta-handle {
    font-weight: 700;
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.2;
}

.insta-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.insta-arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.hero-insta-card:hover .insta-arrow {
    transform: translateX(4px);
    color: var(--accent-color);
}

/* À Propos */
.about {
    padding: 15rem 4rem;
    background-color: var(--bg-color);
}

.about-container {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 6rem;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.about-text {
    padding-right: 2rem;
}

.about-text p {
    font-size: 1.25rem;
    line-height: 1.9;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    font-weight: 300;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.platine-svg {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    filter: brightness(0.85) contrast(1.2);
}

/* Experience Section */
.experience {
    position: relative;
    padding: 15rem 4rem;
    background-color: transparent;
}

.exp-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/beach-dj.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -1;
}

.exp-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.exp-phrase {
    font-size: 1.5rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: var(--text-muted);
    font-weight: 300;
}

.exp-text p {
    font-size: 1.3rem;
    line-height: 1.9;
    margin-bottom: 2rem;
    color: #e0e0e0;
    font-weight: 300;
}

.genre-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.genre-tag {
    font-family: var(--font-title);
    font-size: 1.1rem;
    color: var(--text-color);
    border: 1px solid #333;
    padding: 0.5rem 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    cursor: default;
}

.genre-tag:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: rgba(255, 0, 0, 0.05);
}

.exp-visual {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-disk-svg {
    width: 100%;
    max-width: 500px;
    filter: invert(1) opacity(0.6); 
}

.nexkor-img {
    width: 100%;
    max-width: 500px;
    filter: grayscale(100%) contrast(1.2);
    opacity: 1;
    transform-origin: center;
    will-change: transform;
}

/* Performances Section */
.performances {
    padding: 15rem 4rem;
    background-color: var(--bg-color);
}

.perf-header {
    text-align: left;
    max-width: 1300px;
    margin: 0 auto 4rem auto;
}

.perf-list {
    max-width: 1300px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.perf-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.perf-item-header {
    display: flex;
    align-items: center;
    padding: 3rem 0;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.perf-item-header:hover {
    transform: translateX(10px);
}

.perf-num {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: var(--text-muted);
    width: 60px;
    font-weight: 300;
    transition: color 0.4s ease;
}

.perf-title {
    font-family: var(--font-title);
    font-size: clamp(2rem, 4vw, 4rem);
    flex: 1;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.4s ease;
}

.perf-icon {
    position: relative;
    width: 30px;
    height: 30px;
    margin-left: 2rem;
}

.perf-icon span {
    position: absolute;
    background-color: var(--text-color);
    transition: transform 0.4s cubic-bezier(0.87, 0, 0.13, 1), background-color 0.4s ease;
}

.line-h {
    top: 50%; left: 0; width: 100%; height: 2px;
    transform: translateY(-50%);
}

.line-v {
    top: 0; left: 50%; width: 2px; height: 100%;
    transform: translateX(-50%);
}

/* États Actifs et Hovers */
.perf-item.active .line-v {
    transform: translateX(-50%) rotate(90deg);
}

.perf-item:hover .perf-title,
.perf-item.active .perf-title,
.perf-item:hover .perf-num,
.perf-item.active .perf-num {
    color: var(--accent-color);
}

.perf-item:hover .line-h,
.perf-item:hover .line-v,
.perf-item.active .line-h,
.perf-item.active .line-v {
    background-color: var(--accent-color);
}

/* Contenu de l'accordéon */
.perf-content {
    height: 0;
    overflow: hidden;
    opacity: 0;
}

.perf-content-inner {
    padding-left: 80px;
    padding-bottom: 4rem;
}

.perf-content p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0;
    font-weight: 300;
}

/* Contact Section */
.contact {
    padding: 10rem 4rem 5rem 4rem;
    background-color: var(--bg-alt);
    text-align: left;
}

.text-center {
    text-align: center !important;
}

.contact .section-title {
    text-align: center;
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-email {
    font-size: clamp(2rem, 4vw, 4rem);
    font-family: var(--font-title);
    color: var(--text-color);
    text-decoration: none;
    display: inline-block;
    margin: 0.5rem 0 4rem 0;
    transition: color 0.3s ease;
    word-break: break-all;
}

.contact-direct {
    margin-top: 4rem;
}

.contact-direct p {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1.1rem;
    transition: border-color 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--accent-color);
}

.submit-btn {
    grid-column: 1 / -1;
    padding: 1rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid #333;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 1rem;
    align-self: center;
    justify-self: center;
}

.submit-btn:hover {
    border-color: var(--text-color);
    background-color: #000;
    color: var(--text-color);
}

.contact-direct {
    margin-bottom: 4rem;
}

.contact-direct p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.socials {
    margin-top: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: opacity 0.3s;
}

.social-link:hover {
    opacity: 0.7;
}

.insta-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

/* Site Footer */
.site-footer {
    background-color: #000000;
    padding: 6rem 4rem 2rem 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    max-width: 1300px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.footer-brand .footer-logo {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-color);
    letter-spacing: 0.05em;
}

.footer-brand .footer-desc {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 350px;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: var(--text-color);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a,
.footer-contact p a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover,
.footer-contact p a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

/* Footer Adjustments */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--text-muted);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

/* Legal Page Styles */
.legal-page {
    padding: 12rem 2rem 4rem;
    min-height: 100vh;
    background-color: var(--bg-color);
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 4rem;
}

.legal-section h2 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.legal-section p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.legal-section strong {
    color: var(--text-color);
}

.legal-section a {
    color: var(--accent-color);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .navbar {
        padding: 1.5rem 2rem;
        mix-blend-mode: normal; /* Fix pour le contraste avec l'overlay */
    }
    .navbar.scrolled {
        padding: 1rem 2rem;
    }
    
    .nav-links {
        display: none; 
    }

    .menu-btn {
        display: flex;
    }

    /* Mobile Menu Overlay */
    .mobile-menu {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background-color: var(--bg-color);
        z-index: 999;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s ease;
    }

    .mobile-menu.active {
        opacity: 1;
        pointer-events: all;
    }

    .mobile-links {
        list-style: none;
        text-align: center;
        margin-bottom: 4rem;
    }

    .mobile-links li {
        margin: 2rem 0;
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.4s ease;
    }

    .mobile-menu.active .mobile-links li {
        transform: translateY(0);
        opacity: 1;
    }

    .mobile-menu.active .mobile-links li:nth-child(1) { transition-delay: 0.1s; }
    .mobile-menu.active .mobile-links li:nth-child(2) { transition-delay: 0.2s; }
    .mobile-menu.active .mobile-links li:nth-child(3) { transition-delay: 0.3s; }

    .mobile-links a {
        color: var(--text-color);
        text-decoration: none;
        font-family: var(--font-heading);
        font-size: 2rem;
        text-transform: uppercase;
    }

    .mobile-socials a {
        color: var(--text-muted);
        text-decoration: none;
        font-size: 1.2rem;
    }

    /* Menu Button Active State */
    .menu-btn.active .menu-btn-line:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    .menu-btn.active .menu-btn-line:nth-child(2) {
        transform: translateY(0) rotate(-45deg);
    }

    /* Hero adjustments */
    .hero-title {
        gap: 0.25rem;
        font-size: clamp(2rem, 12vw, 5rem);
    }
    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 0.1em;
        padding: 0;
    }

    /* General Spacing */
    .about, .experience, .performances, .contact {
        padding: 4rem 1.5rem;
        width: 100%; 
        box-sizing: border-box;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .site-footer {
        padding: 4rem 1.5rem 2rem 1.5rem;
    }

    /* Mobile Adjustments */
    .about-container, .exp-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .exp-text {
        text-align: left;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
        word-break: break-word;
        text-align: center;
    }

    /* Adjust Visuals */
    .exp-visual {
        order: -1; 
        width: 100%;
        height: auto;
        padding: 2rem 0;
        display: flex;
        justify-content: center;
    }

    .about-visual {
        display: none; /* Hide on mobile for a cleaner text-focused layout */
    }

    .perf-item-header {
        padding: 2rem 0;
        flex-wrap: wrap; 
    }

    .perf-num {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .perf-title {
        font-size: 2rem;
    }

    .perf-content-inner {
        padding-left: 0; 
        padding-bottom: 2rem;
    }
    
    .perf-content p {
        font-size: 1.2rem;
    }

    .nexkor-img {
        max-width: 80%;
        width: 250px;
    }

    /* Performances Cards - always show border */
    .perf-border {
        transform: scaleX(1);
    }
    
    .perf-card {
        padding: 2rem;
    }

    /* Forms */
    .contact-email {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
        margin: 0.5rem 0 2rem 0;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form {
        width: 100%;
    }
}