
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
html {
  scroll-behavior: smooth;
}

        body {
            font-family: 'Sans-serif', Arial, sans-serif;
            background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
            color: #e0e0e0;
            line-height: 1.6;
            overflow-x: hidden;
        }


        /* Navigation */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(26, 26, 26, 0.95);
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            z-index: 1000;
            padding: 1rem 2rem;
            border-bottom: 2px solid #d4af37;
        }

        nav ul {
            list-style: none;
            display: flex;
            justify-content: center;
            gap: 2rem;
        }

        nav li {
            position: relative;
        }

        nav a {
            color: #e0e0e0;
            text-decoration: none;
            font-weight: 500;
            padding: 0.5rem 1rem;
            border-radius: 5px;
            transition: all 0.3s ease;
            position: relative;
        }

        nav a:hover, nav a.active {
            color: #d4af37;
            background: rgba(212, 175, 55, 0.1);
        }

        nav a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: #d4af37;
            transition: width 0.3s ease;
        }

        nav a:hover::after, nav a.active::after {
            width: 100%;
        }

        /* Sections */
        section {
            min-height: 100vh;
            padding: 100px 2rem 2rem;
            display: none;
        }

        section.active {
            display: block;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Accueil */
        .hero {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 80vh;
            text-align: center;
            position: relative;
        }

        .hero p {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            color: #b0b0b0;
            animation: fadeInUp 1s ease 0.3s both;
        }

      .hero-content {
            z-index: 2;
        }

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;

  /* Button background gradient */
  background: linear-gradient(45deg, black, grey);
}

/* Gradient text */
.cta-button span {
  background: linear-gradient(45deg, #d4af37, #f4e4bc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}







        .hero h1 {
            font-size: 3rem;
            margin-bottom: 1rem;
            background: linear-gradient(45deg, #d4af37, #f4e4bc);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: fadeInUp 1s ease;
        }

        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
        }



        /* À propos */
        .about-grid {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 3rem;
            align-items: center;
            margin-top: 2rem;
        }

        .profile-card {
            background: rgba(45, 45, 45, 0.8);
            padding: 2rem;
            border-radius: 15px;
            border: 1px solid #8B4513;
            text-align: center;
        }

        .profile-img {
            width: 150px;
            height: 150px;
            background: linear-gradient(45deg, #d4af37, #8B4513);
            border-radius: 50%;
            margin: 0 auto 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: #1a1a1a;
            font-weight: bold;
        }

        .bio {
            background: rgba(45, 45, 45, 0.6);
            padding: 2rem;
            border-radius: 15px;
            border-left: 4px solid #d4af37;
        }

        /* Compétences */
        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .skill-category {
            background: rgba(45, 45, 45, 0.8);
            padding: 2rem;
            border-radius: 15px;
            border: 1px solid #8B4513;
            transition: transform 0.3s ease;
        }

        .skill-category:hover {
            transform: translateY(-5px);
            border-color: #d4af37;
        }

        .skill-category h3 {
            color: #d4af37;
            margin-bottom: 1rem;
            font-size: 1.3rem;
        }

        .skill-bar {
            margin: 1rem 0;
        }

        .skill-name {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
        }

        .progress-bar {
            background: rgba(139, 69, 19, 0.3);
            height: 8px;
            border-radius: 4px;
            overflow: hidden;
        }

        .progress {
            height: 100%;
            background: linear-gradient(90deg, #d4af37, #f4e4bc);
            border-radius: 4px;
            transition: width 1s ease;
        }

        /* Expérience */
        .timeline {
            position: relative;
            margin: 2rem auto;
            padding: 2rem 0;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 4px;
            height: 100%;
            background: linear-gradient(180deg, #d4af37, #8B4513);
            border-radius: 2px;
        }

        .timeline-item {
            margin: 2rem 0;
            position: relative;
        }

        .timeline-content {
            background: rgba(45, 45, 45, 0.8);
            padding: 2rem;
            border-radius: 15px;
            width: 45%;
            position: relative;
            border: 1px solid #8B4513;
        }

        .timeline-item:nth-child(odd) .timeline-content {
            margin-left: auto;
            margin-right: 55%;
        }

        .timeline-item:nth-child(even) .timeline-content {
            margin-left: 55%;
        }

        .timeline-dot {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 20px;
            height: 20px;
            background: #d4af37;
            border-radius: 50%;
            border: 4px solid #1a1a1a;
        }

        .timeline-date {
            color: #d4af37;
            font-weight: bold;
            margin-bottom: 0.5rem;
        }

        /* Projets */
/* Projects Section - Fixed for Mobile */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Responsive grid */
    gap: 2rem;
    padding: 0 1rem;
    margin: 2rem auto 0;
    max-width: 1200px; /* Prevent too wide on large screens */
}

.project-card {
    background: rgba(45, 45, 45, 0.8);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #8B4513;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: #d4af37;
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.project-header {
    background: linear-gradient(45deg, #8B4513, #d4af37);
    padding: 1.5rem;
    color: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-header h3 {
    margin: 0;
    font-size: 0.8rem;
    flex: 1;
    min-width: 200px; /* Prevent title from being too compressed */
}

.project-header a {
    color: #1a1a1a !important;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.2rem 0.7rem;
    background: rgba(26, 26, 26, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.project-header a:hover {
    background: rgba(26, 26, 26, 0.2);
    transform: translateY(-2px);
}

.project-content {
    padding: 2rem;
    flex: 1; /* Fill remaining space */
    display: flex;
    flex-direction: column;
}

.project-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #e0e0e0;
    flex: 1; /* Push tech-tags to bottom */
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto; /* Push to bottom of card */
}

.tech-tag {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #d4af37;
    white-space: nowrap;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1.5rem;
        padding: 0 0.5rem;
        margin: 1.5rem auto 0;
    }
    
    .project-card {
        max-width: 100%;
        margin: 0; /* Remove any margins */
    }
    
    .project-header {
        padding: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        text-align: left;
    }
    
    .project-header h3 {
        font-size: 1.1rem;
        min-width: auto;
        width: 100%;
    }
    
    .project-header a {
        align-self: flex-end; /* Align link to the right */
        font-size: 0.85rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-content p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .tech-tags {
        gap: 0.4rem;
    }
    
    .tech-tag {
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
    }
}


        /* Contact */
        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            margin-top: 2rem;
        }

        .contact-info {
            background: rgba(45, 45, 45, 0.8);
            padding: 2rem;
            border-radius: 15px;
            border: 1px solid #8B4513;
        }

        .contact-item {
            display: flex;
            align-items: center;
            margin: 1rem 0;
            padding: 1rem;
            background: rgba(139, 69, 19, 0.1);
            border-radius: 10px;
            transition: all 0.3s ease;
        }

        .contact-item:hover {
            background: rgba(212, 175, 55, 0.1);
            transform: translateX(10px);
        }

        .contact-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(45deg, #d4af37, #8B4513);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
            font-weight: bold;
            color: #1a1a1a;
        }

        .contact-form {
            background: rgba(45, 45, 45, 0.8);
            padding: 2rem;
            border-radius: 15px;
            border: 1px solid #8B4513;
        }

        .form-group {
            margin: 1rem 0;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: #d4af37;
            font-weight: 500;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 1rem;
            background: rgba(26, 26, 26, 0.8);
            border: 1px solid #8B4513;
            border-radius: 8px;
            color: #e0e0e0;
            font-size: 1rem;
            transition: border-color 0.3s ease;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #d4af37;
            box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
        }

        .submit-btn {
            background: linear-gradient(45deg, #d4af37, #b8941f);
            color: #1a1a1a;
            padding: 1rem 2rem;
            border: none;
            border-radius: 8px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
        }


.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #e0e0e0;
    border-radius: 2px;
}
        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .section-title {
            font-size: 2.5rem;
            text-align: center;
            margin-bottom: 3rem;
            background: linear-gradient(45deg, #d4af37, #f4e4bc);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

    .animated-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            z-index: -999;
            pointer-events: none;
            overflow: hidden;
            background: radial-gradient(circle at 20% 80%, #1a1a1a 0%, #0a0a0a 40%, #2d2d2d 100%),
                        linear-gradient(135deg, #1f1f1f 0%, #0d0d0d 50%, #2a2a2a 100%);
            contain: layout style paint;
        }

        /* Simple Floating Particles - No Blur/Filters */
        .particles {
            position: absolute;
            width: 100%;
            height: 100%;
        }

        .particle {
            position: absolute;
            width: 2px;
            height: 2px;
            background: rgba(212, 175, 55, 0.6);
            border-radius: 50%;
            animation: particleFloat 15s infinite linear;
        }

 .badge-container {
            perspective: 1000px;
        }

        .linkedin-badge {
            background: linear-gradient(45deg, black, grey);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 20px;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
           
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            max-width: 350px;
            text-align: center;
            transform-style: preserve-3d;
        }

        .linkedin-badge:hover {
            transform: translateY(-10px) rotateX(5deg);
            box-shadow: 0 35px 70px rgba(0, 0, 0, 0.15);
        }

        .linkedin-badge::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 80%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.5s;
        }

        .linkedin-badge:hover::before {
            left: 100%;
        }

        .badge-header {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            gap: 15px;
        }

        .linkedin-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(45deg, #d4af37, #f4e4bc);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: black;
            font-size: 30px;
            font-weight: bold;
            transition: transform 0.3s ease;
            position: relative;
        }

        .linkedin-badge:hover .linkedin-icon {
            transform: rotateY(360deg);
        }

        .linkedin-icon::after {
            content: 'in';
            font-family: 'Arial', sans-serif;
            font-style: italic;
        }

        .badge-content h2 {
            color: white;
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 8px;
            
        }

        .badge-content p {
            color: white;
            font-size: 13px;
            margin-bottom: 20px;
            line-height: 1.5;
        }

        .connect-button {
            background: linear-gradient(45deg, #d4af37, #f4e4bc);
            color: black;
            border: none;
            padding: 12px 20px;
            border-radius: 25px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
            position: relative;
            overflow: hidden;
        }

        .connect-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }

        .connect-button:hover::before {
            left: 100%;
        }

        .connect-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(0, 119, 181, 0.3);
        }

        .pulse-animation {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 120px;
            height: 120px;
            border: 2px solid #0077b5;
            border-radius: 50%;
            transform: translate(-50%, -50%);
            animation: pulse 2s infinite;
            opacity: 0;
        }

        @keyframes pulse {
            0% {
                transform: translate(-50%, -50%) scale(0.8);
                opacity: 1;
            }
            100% {
                transform: translate(-50%, -50%) scale(1.5);
                opacity: 0;
            }
        }

        .floating-elements {
            position: absolute;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

        .floating-element {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1; /* Behind all content */
    overflow: hidden;
        }

        .floating-element:nth-child(1) {
            top: 20%;
            left: 20%;
            animation-delay: 0s;
        }

        .floating-element:nth-child(2) {
            top: 70%;
            left: 80%;
            animation-delay: 1s;
        }

        .floating-element:nth-child(3) {
            top: 40%;
            left: 10%;
            animation-delay: 2s;
        }

        @keyframes float {
            0%, 100% {
                transform: translateY(0px);
            }
            50% {
                transform: translateY(-10px);
            }
        }

        .stats {
            display: flex;
            justify-content: space-around;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid rgba(0, 0, 0, 0.1);
        }

        .stat {
            text-align: center;
        }

        .stat-number {
            font-size: 18px;
            font-weight: bold;
            color:white;
            display: block;
        }

        .stat-label {
            font-size: 12px;
            color: white;
            margin-top: 2px;
        }

        @keyframes particleFloat {
            0% {
                transform: translateY(100vh) translateX(0px);
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                transform: translateY(-100px) translateX(100px);
                opacity: 0;
            }
        }

        /* Simple Gradient Waves - No SVG */
        .wave-container {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 150px;
        }

        .wave {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 200%;
            height: 100%;
            background: linear-gradient(45deg, 
                transparent 0%,
                rgba(212, 175, 55, 0.1) 25%,
                rgba(255, 215, 0, 0.05) 50%,
                rgba(212, 175, 55, 0.1) 75%,
                transparent 100%
            );
            border-radius: 50% 50% 0 0;
            animation: waveMove 10s linear infinite;
        }

        .wave:nth-child(2) {
            animation-duration: 15s;
            animation-direction: reverse;
            opacity: 0.5;
            height: 80%;
        }

        @keyframes waveMove {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(-50%);
            }
        }

        /* Simple Grid - No Complex Patterns */
        .grid-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                linear-gradient(rgba(212,175,55,0.02) 1px, transparent 1px),
                linear-gradient(90deg, rgba(212,175,55,0.02) 1px, transparent 1px);
            background-size: 80px 80px;
            animation: gridMove 30s linear infinite;
        }

        @keyframes gridMove {
            0% {
                transform: translate(0, 0);
            }
            100% {
                transform: translate(80px, 80px);
            }
        }

        /* Simple Orbs - No Complex Gradients */
        .orbs {
            position: absolute;
            width: 100%;
            height: 100%;
        }

        .orb {
            position: absolute;
            border-radius: 50%;
            background: rgba(212, 175, 55, 0.1);
            animation: orbFloat 25s infinite ease-in-out;
        }

        .orb:nth-child(1) {
            width: 150px;
            height: 150px;
            top: 10%;
            left: 5%;
            animation-delay: 0s;
        }

        .orb:nth-child(2) {
            width: 100px;
            height: 100px;
            top: 50%;
            right: 10%;
            animation-delay: 8s;
        }

        .orb:nth-child(3) {
            width: 80px;
            height: 80px;
            bottom: 20%;
            left: 30%;
            animation-delay: 16s;
        }

        @keyframes orbFloat {
            0%, 100% {
                transform: translate(0px, 0px);
                opacity: 0.1;
            }
            50% {
                transform: translate(30px, -50px);
                opacity: 0.2;
            }
        }

        /* Gentle Background Shift */
        @keyframes gradientShift {
            0% { 
                background-position: 0% 50%; 
            }
            50% { 
                background-position: 100% 50%; 
            }
            100% { 
                background-position: 0% 50%; 
            }
        }

        .animated-background {
            background-size: 400% 400%;
            animation: gradientShift 20s ease infinite;
        }


        /* Responsive */
        @media (max-width: 768px) {

                    
           nav ul {
        flex-direction: column;
        display: none;
        background: rgba(26, 26, 26, 0.95);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 0;
        border-top: 2px solid #d4af37;
    }

    nav ul.show {
        display: flex;
    }

            .hero h1 {
                font-size: 2rem;
            }

                     .orb {
                opacity: 0.5;
            }
            
            .particle {
                width: 1px;
                height: 1px;
            }
            
            .wave-container {
                height: 80px;
            }
 

            .about-grid,
            .contact-grid {
                grid-template-columns: 1fr;
            }

            .timeline::before {
                left: 20px;
            }

            .timeline-content {
                width: calc(100% - 50px);
                margin-left: 50px !important;
                margin-right: 0 !important;
            }

            .timeline-dot {
                left: 20px;
            }
                  

  .project-card {
    max-width: 100%;             /* carte prend toute la largeur disponible */
    width: 100%;                
  }




                    

                       nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background: rgba(26, 26, 26, 0.95);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 0;
        border-top: 2px solid #d4af37;
    }

    nav ul.show {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

                     .contact-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1.5rem;
        padding: 0 0.5rem; /* Reduce side padding on mobile */
        max-width: 100%; /* Use full width on mobile */
    }
    
    .contact-info,
    .contact-form {
        padding: 1.5rem; /* Reduce padding on mobile */
        margin: 0; /* Remove any margins */
    }
    
    .contact-item {
        padding: 0.8rem;
        margin: 0.8rem 0;
        flex-direction: column; /* Stack icon and content vertically if needed */
        text-align: center;
    }
    
    .contact-item div {
        margin-left: 0; /* Remove left margin on mobile */
        margin-top: 0.5rem;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    /* Fix text overflow issues */
    .contact-item div p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 2rem; /* Reduce title size on mobile */
        margin-bottom: 2rem;
    }
    
    /* Ensure form elements don't cause horizontal scroll */
    .form-group input,
    .form-group textarea {
        min-width: 0; /* Prevent min-width issues */
        max-width: 100%;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .contact-info,
    .contact-form {
        padding: 1rem;
    }
    
    .contact-item {
        padding: 0.6rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
                    
   .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(380px, 400px));
        justify-content: center;
    }
        }































































