:root {
    --primary-color: #0a0a0a;
    --accent-color: #00ff88;
    --text-color: #ffffff;
    --transition-speed: 0.3s;
    --gradient-1: linear-gradient(45deg, #00ff88, #00b8ff);
    --gradient-2: linear-gradient(135deg, #ff0088, #ff8800);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Curseur personnalisé */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.2s;
}

@media (max-width: 768px) {
    .cursor {
        display: none;
    }
}

/* Navigation */
.nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 10, 0.8);
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
}

.menu {
    display: flex;
    gap: 2rem;
}

.menu-item {
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    padding: 0.5rem;
    font-weight: 500;
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width var(--transition-speed);
}

.menu-item:hover::after {
    width: 100%;
}

/* Section Héro */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at center, #1a1a1a 0%, var(--primary-color) 100%);
}

.glitch-container {
    position: relative;
}

.glitch {
    font-size: 4rem;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0.05em 0 0 rgba(255,0,0,0.75),
                -0.025em -0.05em 0 rgba(0,255,0,0.75),
                0.025em 0.05em 0 rgba(0,0,255,0.75);
    animation: glitch 500ms infinite;
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
}

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

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-color);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background-color: var(--text-color);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

/* Projets */
.projects {
    padding: 5rem 2rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(45deg, #2a2a2a, #3a3a3a);
    transition: transform var(--transition-speed);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-1);
    z-index: 1;
    border-radius: 12px;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    transform: translateY(100%);
    transition: transform var(--transition-speed);
    z-index: 2;
}

.project-content h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.project-content p {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.project-card:hover .project-content {
    transform: translateY(0);
}

.tech-stack {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.tech-stack span {
    padding: 0.25rem 0.75rem;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Compétences */
.skills {
    padding: 5rem 2rem;
    background-color: #0f0f0f;
}

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

.skill-category h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.skill-items {
    display: grid;
    gap: 1.5rem;
}

.skill-item {
    position: relative;
    padding: 1rem;
    background: linear-gradient(45deg, #2a2a2a, #3a3a3a);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.skill-item:hover {
    transform: translateY(-2px);
    background: linear-gradient(45deg, #2a2a2a, #2f2f2f);
}

.skill-item i {
    font-size: 2rem;
    margin-bottom: 0;
    min-width: 40px;
    color: var(--accent-color);
}

.skill-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
}

.skill-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--gradient-1);
    width: 0;
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.5, 1);
}

/* Contact */
.contact {
    padding: 5rem 2rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 0 auto;
    flex-wrap: wrap;
    max-width: 1200px;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(45deg, #2a2a2a, #3a3a3a);
    border-radius: 10px;
    min-width: 300px;
    transition: transform var(--transition-speed);
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    opacity: 0.8;
    transition: all var(--transition-speed);
}

.contact-item a:hover {
    color: var(--accent-color);
    opacity: 1;
}

/* Media Queries */
@media (max-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        justify-content: center;
    }

    .logo {
        font-size: 1.5rem;
    }

    .menu-toggle {
        display: none;
    }

    .menu {
        display: none;
    }

    .glitch {
        font-size: 2.5rem;
        text-align: center;
    }

    .subtitle {
        font-size: 1.2rem;
        text-align: center;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

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

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

    .contact-item {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .nav-container {
        background: rgba(10, 10, 10, 0.95);
    }

    .logo {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .glitch {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .project-card {
        height: 250px;
    }

    .about-text p {
        font-size: 0.9rem;
    }

    .services-list li {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }
}

/* Ajout du menu hamburger pour mobile */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: none;
    }
    
    .nav-container {
        padding: 1rem;
        justify-content: center;
    }

    .menu {
        display: none;
    }
}

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

.subtitle {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-color);
    opacity: 0.8;
    text-transform: none;
    margin-top: 1rem;
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    background: #0f0f0f;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color var(--transition-speed);
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Animations */
@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

@keyframes glitch-anim {
    0% {
        clip: rect(24px, 550px, 90px, 0);
    }
    20% {
        clip: rect(12px, 550px, 92px, 0);
    }
    40% {
        clip: rect(16px, 550px, 108px, 0);
    }
    60% {
        clip: rect(13px, 550px, 150px, 0);
    }
    80% {
        clip: rect(15px, 550px, 75px, 0);
    }
    100% {
        clip: rect(17px, 550px, 107px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(12px, 550px, 42px, 0);
    }
    20% {
        clip: rect(16px, 550px, 98px, 0);
    }
    40% {
        clip: rect(13px, 550px, 56px, 0);
    }
    60% {
        clip: rect(15px, 550px, 123px, 0);
    }
    80% {
        clip: rect(19px, 550px, 154px, 0);
    }
    100% {
        clip: rect(14px, 550px, 76px, 0);
    }
}

/* Section À propos */
.about {
    padding: 5rem 2rem;
    background: radial-gradient(circle at center, #1a1a1a 0%, var(--primary-color) 100%);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    color: var(--text-color);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.services-list {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.services-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    padding: 0.5rem 0;
}

.services-list i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

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

.stat-item {
    background: linear-gradient(45deg, #2a2a2a, #3a3a3a);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform var(--transition-speed);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Media Queries */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .services-list li {
        font-size: 1rem;
    }
}

/* Popup Mentions Légales */
.popup {
    display: none; /* Caché par défaut */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.popup.show {
    opacity: 1;
    visibility: visible;
    display: block;
}

.popup-content {
    background-color: #121212;
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--accent-color);
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.2);
    animation: popupFadeIn 0.3s ease-in-out;
}

.legal-content {
    color: var(--text-color);
    line-height: 1.6;
}

.legal-content h3 {
    color: var(--accent-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #f0f0f0;
}

.legal-content p {
    margin-bottom: 1rem;
}

.close-popup {
    color: var(--text-color);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color var(--transition-speed);
}

.close-popup:hover {
    color: var(--accent-color);
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mentions-legales-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

#mentions-legales-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Media Queries pour popup */
@media (max-width: 768px) {
    .popup-content {
        width: 90%;
        padding: 1.5rem;
        margin: 10% auto;
    }
}

@media (max-width: 480px) {
    .popup-content {
        width: 95%;
        padding: 1rem;
        margin: 15% auto;
    }
    
    .legal-content h3 {
        font-size: 1.2rem;
    }
} 