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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff0000;
    text-decoration: none;
}

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

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #ff0000;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff0000;
    transition: width 0.3s ease;
}

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

/* Bouton hamburger */
.hamburger {
    display: none; /* Caché par défaut sur desktop */
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background-color: #ff0000;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Animation du hamburger */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

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

/* Menu mobile */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    padding: 0;
}

.mobile-nav-links li {
    margin: 2rem 0;
}

.mobile-nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 1rem 2rem;
    display: block;
}

.mobile-nav-link:hover {
    color: #ff0000;
    transform: translateX(10px);
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ff0000;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mobile-nav-link:hover::after {
    width: 100%;
}

/* Section Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
    position: relative;
    overflow: hidden;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    color: #ff0000;
    margin-bottom: 2rem;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #ccc;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.5);
}

/* Robot 3D Container */
#robot-container {
    height: 400px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Section À propos */
.about {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #001100, #000);
}

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

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #00ff00;
}

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

.profile-card {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(0, 255, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.profile-card img {
    width: 100%;
    height: 100%;
    object-fit:cover;
}

/* Section Services */
.services {
    padding: 6rem 2rem;
    background: #000;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ff0000;
}

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

.service-card {
    background: linear-gradient(135deg, #111, #222);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #ff0000;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.service-card p {
    color: #ccc;
    line-height: 1.6;
}

/* Section Projets */
.projects {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #001100, #000);
}

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

.projects h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #00ff00;
}

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

.project-card {
    background: linear-gradient(135deg, #002200, #111);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #004400;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 0, 0.2);
}

.project-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #00ff00;
}

.project-content p {
    color: #ccc;
    line-height: 1.6;
}

/* Section Compétences */
.skills {
    padding: 6rem 2rem;
    background: #000;
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.skills h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ff0000;
}

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

.skill-item {
    background: linear-gradient(135deg, #111, #222);
    padding: 2rem 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ff0000;
}

.skill-item h4 {
    font-size: 0.9rem;
    color: #fff;
}

/* Section Contact */
.contact {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #001100, #000);
}

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

.contact-animation {
    height: 400px;
    background: linear-gradient(135deg, #002200, #111);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #00ff00;
    position: relative;
    overflow: hidden;
}

.contact-left {
    flex: 1;
    padding: 2rem;
}

.contact-intro {
    margin-bottom: 3rem;
}

.contact-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #00ff00;
}

.contact-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
}

.arrow {
    color: #00ff00;
    font-size: 1.5rem;
    margin-left: 0.5rem;
    display: inline-block;
    animation: pointRight 1s infinite;
}

@keyframes pointRight {
    0% { transform: translateX(0); }
    50% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

.social-text {
    margin-top: 2rem;
}

.social-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #ccc;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: #00ff00;
    transform: translateY(-3px);
}

.fa-linkedin {
    color: #fff;
}

.fa-github {
    color: #fff;
}

.social-icon:hover .fa-linkedin {
    color: #00ff00;
}

.social-icon:hover .fa-github {
    color: #00ff00;
}

.contact-form {
    background: linear-gradient(135deg, #002200, #111);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid #004400;
}

.contact-form h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #00ff00;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 255, 0, 0.1);
    border-radius: 15px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group label {
    display: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
    background: rgba(0, 0, 0, 0.5);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #00ff00, #008800);
    color: #000;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 0, 0.4);
    background: linear-gradient(45deg, #00ff00, #00aa00);
}

/* Ajustement des espacements et tailles */
.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Responsive */
@media (max-width: 768px) {
    /* Navigation mobile */
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Section Hero mobile */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 2rem 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-content .subtitle {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Robot container mobile */
    #robot-container {
        height: 350px;
        order: -1; /* Place le robot en premier sur mobile */
        margin: 1rem 0;
    }

    /* Section À propos mobile */
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 1rem;
    }

    .profile-card {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    /* Section Contact mobile */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .contact-left {
        padding: 1rem;
    }

    .contact-intro h2 {
        font-size: 2rem;
    }

    /* Autres sections */
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    /* Ajustements généraux */
    .services,
    .projects,
    .skills,
    .about {
        padding: 3rem 1rem;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .subtitle {
        font-size: 1.1rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    #robot-container {
        height: 300px;
    }
}

.email-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.email-container p {
    margin: 0;
    font-size: 1.1em;
}

.copy-btn {
    position: relative;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.copy-btn:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.copy-btn .tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.copy-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.copy-btn.copied .tooltip {
    background-color: #4CAF50;
}

.copy-btn.copied {
    color: #4CAF50;
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.footer {
    text-align: center;
    padding: 20px;
    background-color: var(--bg-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    margin: 0;
    font-size: 0.9em;
    color: var(--text-color);
    opacity: 0.8;
}

 