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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

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

        /* Header avec animation */
        .header {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            position: fixed;
             padding: 1rem 0;
            width: 100%;
            top: 0;
            left: 0;
            z-index: 1000;
            transition: all 0.3s ease;
        }

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


         .logo {
            font-size: 1.8rem;
            font-weight: bold;
            color: white;
            background: linear-gradient(45deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            transition: all 0.3s ease;
        }


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

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
            animation: float 6s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
        }

        .hero-content {
            z-index: 2;
            position: relative;
            animation: fadeInUp 1s ease-out;
        }

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

        .hero h1 {
            font-size: 4rem;
            margin-bottom: 1rem;
            text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
        }

        .hero .subtitle {
            font-size: 1.5rem;
            margin-bottom: 2rem;
            opacity: 0.9;
        }

        .cta-button {
            display: inline-block;
            padding: 1rem 2rem;
            background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-weight: bold;
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .cta-button:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        }

        /* Sections */
        .section {
            padding: 5rem 0;
            background: white;
            margin: 2rem 0;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
            animation: slideInLeft 0.8s ease-out;
        }

        @keyframes slideInLeft {
            from {
                opacity: 0;
                transform: translateX(-50px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .section h2 {
            font-size: 2.5rem;
            text-align: center;
            margin-bottom: 3rem;
            background: linear-gradient(45deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* About Section */
        .about-content {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 3rem;
            align-items: center;
        }

        .about-image {
            width: 300px;
            height: 300px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: white;
            margin: 0 auto;
            box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
        }

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

        /* Skills Section */
        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin: 3rem 2rem;
            max-width: 900px;
            margin-left: auto;
            margin-right: auto;
        }

        .skill-card {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            padding: 2rem;
            border-radius: 15px;
            text-align: center;
            color: white;
            transform: translateY(0);
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

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

        .skill-card:nth-child(2) {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        .skill-card:nth-child(3) {
            background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
        }

        .skill-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        /* GitHub Section */
        .github-section {
            display: flex;
            justify-content: center;
            margin-top: 3rem;
        }

        .github-card {
            background: linear-gradient(135deg, #24292e 0%, #1a1e22 100%);
            color: white;
            padding: 3rem 2rem;
            border-radius: 20px;
            text-align: center;
            max-width: 500px;
            box-shadow: 0 20px 60px rgba(36, 41, 46, 0.3);
            transition: all 0.3s ease;
        }

        .github-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 30px 80px rgba(36, 41, 46, 0.4);
        }

        .github-icon {
            font-size: 4rem;
            margin-bottom: 1.5rem;
            opacity: 0.9;
        }

        .github-card h3 {
            font-size: 1.8rem;
            margin-bottom: 1rem;
            color: #f6f8fa;
        }

        .github-card p {
            font-size: 1.1rem;
            line-height: 1.6;
            margin-bottom: 2rem;
            opacity: 0.9;
        }

        .github-button {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 1rem 2rem;
            background: linear-gradient(45deg, #28a745, #20c997);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-weight: bold;
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
        }

        .github-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(40, 167, 69, 0.4);
            background: linear-gradient(45deg, #20c997, #28a745);
        }

        .github-logo {
            font-size: 1.2rem;
        }

        /* Blog Section */
        .blog-content {
            max-width: 1000px;
            margin: 0 auto;
        }

        .blog-intro {
            margin-bottom: 3rem;
            text-align: center;
        }

        .blog-intro p {
            font-size: 1.2rem;
            color: #666;
            line-height: 1.8;
        }

        .articles-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
            margin: 3rem 2rem;
        }

        .article-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            border-top: 3px solid #667eea;
        }

        .article-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
        }

        .article-card:nth-child(2) {
            border-top-color: #4ecdc4;
        }

        .article-card:nth-child(3) {
            border-top-color: #f5576c;
        }

        .article-image {
            width: 100%;
            height: 140px;
            overflow: hidden;
            position: relative;
        }

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

        .article-card:hover .article-image img {
            transform: scale(1.05);
        }

        .article-content {
            padding: 1.2rem;
        }

        .article-title {
            font-size: 1.1rem;
            font-weight: bold;
            margin-bottom: 0.8rem;
            color: #333;
            line-height: 1.3;
        }

        .article-description {
            color: #666;
            line-height: 1.5;
            margin-bottom: 1rem;
            font-size: 0.85rem;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .article-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .article-date {
            color: #999;
            font-size: 0.8rem;
            font-weight: 500;
        }

        .read-more {
            color: #667eea;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            font-size: 0.85rem;
        }

        .read-more:hover {
            color: #764ba2;
            transform: translateX(3px);
        }

        .blog-cta {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid #eee;
        }

        .blog-button {
            display: inline-block;
            padding: 1rem 2rem;
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-weight: bold;
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
        }

        .blog-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
            background: linear-gradient(45deg, #764ba2, #667eea);
        }

        /* Contact Section */
        .contact {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 5rem 0;
            border-radius: 20px;
            margin: 2rem 0;
        }

        .contact h2 {
            color: white;
            -webkit-text-fill-color: white;
            text-align: center;
            margin-bottom: 3rem;
        }

        .contact-content {
            max-width: 600px;
            margin: 0 auto;
        }

        .contact-info {
            font-size: 1.1rem;
            text-align: center;
            margin-bottom: 3rem;
        }

        .contact-info p {
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }

        .contact-form {
            background: rgba(255, 255, 255, 0.1);
            padding: 2rem;
            border-radius: 15px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

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

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: white;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 0.8rem;
            border: none;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.9);
            color: #333;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            background: white;
            box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
        }

        .form-group textarea {
            resize: vertical;
            min-height: 100px;
        }

        .submit-button {
            background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
            color: white;
            border: none;
            padding: 1rem 2rem;
            border-radius: 50px;
            font-weight: bold;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            width: 100%;
        }

        .submit-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
        }

        .is-invalid{
            border: 1px solid red !important;
        }
        
        /* Footer pour réseaux sociaux */
        .footer {
            background: #333;
            color: white;
            text-align: center;
            padding: 2rem 0;
            margin-top: 2rem;
        }

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

        .social-link {
            color: white;
            font-size: 1.5rem;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .social-link:hover {
            color: #667eea;
            transform: translateY(-3px);
        }

        .success-contact-form{
            background-color: #20c997;
        }

        .error-contact-form {
            background-color: #dc3545;
        }

        .contact-feedback {
            padding: 1rem;
            margin: 1rem 0;
            border-radius: 10px;
            color: white;
            max-width: 100%;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .github-section{
                margin: 0.5rem;
            }
            .container {
                padding: 0 5px;
            }
            .section {
                padding: 1rem 0;
            }
            .hero h1 {
                font-size: 2.5rem;
            }
            
            .about-content {
                grid-template-columns: 1fr;
                text-align: center;
            }
            
            .nav-links {
                display: none;
            }
            
            .hero .subtitle {
                font-size: 1.2rem;
            }

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

            .article-card {
                min-width: unset;
            }

            .contact-content {
                max-width: none;
            }

            .social-links {
                gap: 1rem;
            }

            .skills-grid {
                margin: 3rem 0.5rem;
            }

            .articles-grid {
                grid-template-columns: 1fr;
                margin: 3rem 1rem;
            }
        }

        /* Floating particles effect */
        .particle {
            position: absolute;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            animation: floatParticle 8s infinite linear;
        }

        @keyframes floatParticle {
            0% {
                transform: translateY(100vh) rotate(0deg);
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                transform: translateY(-100px) rotate(360deg);
                opacity: 0;
            }
        }

        

      .mobile-menu-toggle {
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: 35px;
            height: 35px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
            z-index: 1001;
            transition: all 0.3s ease;
        }

        .hamburger {
            position: relative;
            width: 25px;
            height: 20px;
        }

        .hamburger span {
            display: block;
            position: absolute;
            height: 2px;
            width: 100%;
            background: rgb(7, 6, 6);
            border-radius: 1px;
            opacity: 1;
            left: 0;
            transform: rotate(0deg);
            transition: all 0.3s ease;
        }

        .hamburger span:nth-child(1) {
            top: 0px;
        }

        .hamburger span:nth-child(2) {
            top: 9px;
        }

        .hamburger span:nth-child(3) {
            top: 18px;
        }

        /* Animation du hamburger quand le menu est ouvert */
        .mobile-menu-toggle.active .hamburger span:nth-child(1) {
            top: 9px;
            transform: rotate(135deg);
        }

        .mobile-menu-toggle.active .hamburger span:nth-child(2) {
            opacity: 0;
            left: -60px;
        }

        .mobile-menu-toggle.active .hamburger span:nth-child(3) {
            top: 9px;
            transform: rotate(-135deg);
        }
        
        .nav-links {
            display: flex;
            list-style: none;
            gap: 2rem;
            margin: 0;
            padding: 0;
            transition: all 0.3s ease;
        }

        .nav-links a {
            color: #4f4f4fff;
            text-decoration: none;
            font-weight: 500;
            font-size: 1rem;
            padding: 0.5rem 1rem;
            border-radius: 25px;
            transition: all 0.3s ease;
        }

        .nav-links a:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-2px);
        }
        /* Media queries pour mobile */
        @media (max-width: 768px) {
            .mobile-menu-toggle {
                display: flex;
            }

            .nav-links {
                position: fixed;
                top: 0;
                right: -100%;
                height: 100vh;
                width: 80%;
                max-width: 300px;
                background: linear-gradient(135deg, #ffffff, #e4e8f1);
                flex-direction: column;
                justify-content: center;
                align-items: center;
                gap: 3rem;
                transition: right 0.3s ease;
                box-shadow: -5px 0 15px rgba(51, 43, 43, 0.2);
            }

            .nav-links.active {
                right: 0;
            }

            .nav-links a {
                font-size: 1.2rem;
                padding: 1rem 2rem;
                width: 100%;
                text-align: center;
                border: 1px solid rgba(6, 6, 6, 0.2);
            }

            .nav-links a:hover {
                background: rgba(86, 66, 66, 0.1);
                transform: scale(1.05);
            }

            /* Overlay pour fermer le menu */
            .nav-overlay {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.5);
                opacity: 0;
                visibility: hidden;
                transition: all 0.3s ease;
                z-index: 999;
            }

            .nav-overlay.active {
                opacity: 1;
                visibility: visible;
            }

            /* Ajustements pour le logo sur mobile */
            .logo {
                font-size: 1.5rem;
            }

            /* Ajustement du padding du nav */
            .nav {
                padding: 0 1rem;
            }
        }

        @media (max-width: 480px) {
            .nav-links {
                width: 90%;
            }

            .logo {
                font-size: 1.3rem;
            }
        }

        /* Animation d'entrée pour les éléments du menu */
        @media (max-width: 768px) {
            .nav-links a {
                opacity: 0;
                transform: translateX(50px);
                animation: slideInFromRight 0.3s ease forwards;
            }

            .nav-links.active a:nth-child(1) { animation-delay: 0.1s; }
            .nav-links.active a:nth-child(2) { animation-delay: 0.2s; }
            .nav-links.active a:nth-child(3) { animation-delay: 0.3s; }
            .nav-links.active a:nth-child(4) { animation-delay: 0.4s; }
            .nav-links.active a:nth-child(5) { animation-delay: 0.5s; }
            
        }
        
         @keyframes slideInFromRight {
                to {
                    opacity: 1;
                    transform: translateX(0);
            }
        }

        /* Style pour le header quand on scroll */
        .header.scrolled {
            background: rgba(255, 255, 255, 0.95) !important;
            backdrop-filter: blur(15px) !important;
        }

        .header.scrolled .logo {
            color: #333 !important;
            -webkit-text-fill-color: #333 !important;
        }

        .header.scrolled .hamburger span {
            background: #333 !important;
        }

        /* Amélioration du hero pour compenser le header fixe */
        .hero {
            padding-top: 6rem;
        }

        @media (max-width: 768px) {
            .hero {
                padding-top: 5rem;
            }
        }