/* FH EVENT - Styles principaux */

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

:root {
    --primary: #000000;
    --secondary: #ffffff;
    --gray-dark: #1a1a1a;
    --gray-medium: #333333;
    --gray-light: #666666;
    --gray-lighter: #999999;
    --gray-lightest: #f5f5f5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--primary);
    color: var(--secondary);
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

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

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    opacity: 0.8;
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1.5s ease;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.glitch {
    position: relative;
    color: var(--secondary);
    animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: var(--secondary);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: var(--secondary);
    z-index: -2;
}

@keyframes glitch {
    0%, 100% { text-shadow: 0 0 0 rgba(255,255,255,0); }
    50% { text-shadow: 0 0 10px rgba(255,255,255,0.8); }
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(20% 0 30% 0); transform: translate(-2px, 2px); }
    40% { clip-path: inset(50% 0 20% 0); transform: translate(2px, -2px); }
    60% { clip-path: inset(10% 0 60% 0); transform: translate(-2px, 0); }
    80% { clip-path: inset(80% 0 5% 0); transform: translate(2px, 0); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -2px); }
    40% { clip-path: inset(20% 0 40% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(30% 0 30% 0); transform: translate(2px, 0); }
    80% { clip-path: inset(10% 0 70% 0); transform: translate(-2px, 0); }
}

.hero p {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, transparent 100%);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 4rem;
}

.logo {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--secondary);
    letter-spacing: -0.02em;
}

/* Desktop Nav */
.desktop-nav ul {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.desktop-nav a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.75rem;
    transition: opacity 0.3s ease;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 2000;
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--secondary);
    margin: 2px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Close button for mobile menu */
.menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.menu-close:hover {
    transform: rotate(90deg);
}

.menu-close::before,
.menu-close::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background: var(--secondary);
    transition: background 0.3s ease;
}

.menu-close::before {
    transform: rotate(45deg);
}

.menu-close::after {
    transform: rotate(-45deg);
}

.menu-close:hover::before,
.menu-close:hover::after {
    background: rgba(255, 255, 255, 0.7);
}

/* Full Screen Menu */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--primary);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.18, 1);
    overflow: hidden;
}

.fullscreen-menu.active {
    opacity: 1;
    visibility: visible;
}

.fullscreen-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
    transition: left 0.6s ease;
}

.fullscreen-menu.active::before {
    left: 100%;
}

.menu-content {
    text-align: left;
    position: relative;
    z-index: 2;
    padding-left: 2rem;
}

.menu-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-nav li {
    margin: 2rem 0;
    overflow: hidden;
}

.menu-nav a {
    color: var(--secondary);
    text-decoration: none;
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    display: inline-block;
    position: relative;
    transition: all 0.4s ease;
    transform: translateY(100%);
}

.fullscreen-menu.active .menu-nav a {
    transform: translateY(0);
}

.menu-nav li:nth-child(1) a { transition-delay: 0.1s; }
.menu-nav li:nth-child(2) a { transition-delay: 0.15s; }
.menu-nav li:nth-child(3) a { transition-delay: 0.2s; }
.menu-nav li:nth-child(4) a { transition-delay: 0.25s; }
.menu-nav li:nth-child(5) a { transition-delay: 0.3s; }
.menu-nav li:nth-child(6) a { transition-delay: 0.35s; }

.menu-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 5px;
    background: var(--secondary);
    transition: width 0.4s ease;
}

.menu-nav a:hover {
    transform: translateY(0) scale(1.05);
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.menu-nav a:hover::before {
    width: 100%;
}

.menu-contact {
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease 0.4s;
}

.fullscreen-menu.active .menu-contact {
    opacity: 1;
    transform: translateY(0);
}

.menu-contact p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.menu-contact a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.85rem;
    margin: 0 1rem;
    transition: opacity 0.3s ease;
}

.menu-contact a:hover {
    opacity: 0.7;
}

/* Section Base */
section {
    padding: 100px 4rem;
    position: relative;
}

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

h2 {
    font-size: 48px;
    margin-bottom: 3rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

/* Portfolio Section */
.portfolio {
    background: var(--secondary);
    color: var(--primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 400px;
    background: var(--gray-lightest);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: scale(1.02);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.portfolio-item:hover img {
    filter: grayscale(0%);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    color: var(--secondary);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-overlay h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

/* Skills Section */
.skills {
    background: var(--gray-dark);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.skill-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.skill-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.skill-item h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.skill-item p {
    opacity: 0.7;
    line-height: 1.6;
    font-size: 0.85rem;
}

/* Testimonials */
.testimonials {
    background: var(--secondary);
    color: var(--primary);
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.testimonial {
    padding: 2.5rem;
    background: var(--gray-lightest);
    border-radius: 10px;
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 6rem;
    opacity: 0.1;
    font-family: serif;
}

.testimonial-text {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gray-medium);
}

.author-info h4 {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* About Section */
.about {
    background: var(--primary);
    color: var(--secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 0.9rem;
    line-height: 1.8;
    opacity: 0.9;
}

.about-image {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

/* Contact Section */
.contact {
    background: var(--gray-dark);
    text-align: center;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: var(--secondary);
    color: var(--primary);
    transform: rotate(360deg);
}

.contact-item a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.contact-item a:hover {
    opacity: 0.7;
}

/* Footer */
footer {
    background: var(--primary);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

footer p {
    opacity: 0.5;
    font-size: 0.75rem;
}

footer a {
    color: var(--secondary);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 2rem;
    }

    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .menu-nav a {
        font-size: clamp(1.2rem, 8vw, 2rem);
    }

    section {
        padding: 60px 2rem;
    }

    h2 {
        font-size: 32px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-methods {
        flex-direction: column;
        gap: 2rem;
    }

    .portfolio-grid,
    .testimonials-container {
        grid-template-columns: 1fr;
    }
}

/* Animations on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-inner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Legal page specific styles */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 2rem;
    background: var(--secondary);
    color: var(--primary);
    min-height: 100vh;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 900;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    font-weight: 700;
}

.legal-content p,
.legal-content li {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

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