
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #0a0f1c;
    color: white;
    scroll-behavior: smooth;
    margin: 0;
}
header, footer, section {
    padding: 2rem;
}

header {
    background: radial-gradient(circle at center, #0a0f1c 0%, #05080f 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* Pour Safari */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

}
.about-section, .skills-section, .projects-section, .contact-section, .about-me {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.hero-section, .about-me {


}
.hero-section h1 span {
    color: #00aaff;
}
.blue {
    color: #00aaff;
    text-shadow:
            0 0 4px #87f5ff,
            0 0 8px #87f5ff,
            0 0 15px rgba(135, 245, 255, 0.5);
    animation: fadeInGlitch 0.6s ease forwards;
    position: relative;
}

/* Animation d’apparition + glitch */
@keyframes fadeInGlitch {
    0% {
        opacity: 0;
        transform: translateY(10px);
        text-shadow: none;
    }
    40% {
        opacity: 1;
        transform: translateY(0);
        text-shadow: 0 0 4px #87f5ff;
    }
    50% {
        transform: translateX(-2px);
        text-shadow: 0 0 5px #87f5ff, -2px 0 red, 2px 0 blue;
    }
    60% {
        transform: translateX(2px);
        text-shadow: 0 0 6px #87f5ff, 2px 0 red, -2px 0 blue;
    }
    70% {
        transform: translateX(0);
        text-shadow: 0 0 10px #87f5ff;
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        text-shadow: 0 0 12px #87f5ff, 0 0 20px rgba(135, 245, 255, 0.3);
    }
}
.logo-nav {
    width: 90px;
}
.about-section {
    background-color: #0d121f;
}
.skills-section {
    /* background-color: #0f1725; */
    background-color: #0a0f1c;
}
.projects-section {
    /* background-color: #111b2e; */
    background: radial-gradient(circle at center, #0a0f1c 0%, #05080f 100%);
}
.contact-section {
    background-color: #0a0f1c;
}
.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.section-subtitle {
    max-width: 800px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #bbb;
}
.skills-grid, .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 1000px;
}
.skill-box, .project-card {
    background-color: #101a2c;
    border-radius: 10px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    will-change: transform;

}
.skill-box:hover, .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 10px #00aaff55;
}


.skill-title, .project-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #00aaff;
}
.skill-desc, .project-desc {
    font-size: 0.95rem;
    color: #ccc;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
    margin-top: 2rem;
}
.contact-form input, .contact-form textarea {
    padding: 1rem;
    border-radius: 8px;
    border: none;
    background-color: #101a2c;
    color: white;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: 2px solid #00aaff;
}
.contact-form button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(90deg, #007cf0, #00dfd8);
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s;
}
.contact-form button:hover {
    transform: scale(1.05);
}
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    margin: 1rem;
    text-decoration: none;
    transition: 0.3s;
}
.btn.primary {
    background: linear-gradient(90deg, #007cf0, #00dfd8);
    color: white;
}
.btn.secondary {
    border: 2px solid #00aaff;
    color: white;
}
.btn.secondary:hover {
    background-color: #00aaff;
    color: #0a0f1c;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    padding: 0;
}
nav ul li a {
    color: white;
    text-decoration: none;
}
nav ul li a:hover {
    color: #00aaff;
}


.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, #007cf0, #00dfd8);
    width: 0%;
    z-index: 9999;
    transition: width 0.25s ease-out;
}
.navbar {
    max-width: 1200px;
    margin: auto;
    width: 100%;

}




.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    background: rgba(0, 170, 255, 0.2);
    border: 1px solid #00aaff;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: transform 0.1s ease-out;
}
.btn:hover, .nav-links li a:hover {

    transform: scale(1.05);
}

.burger {
    display: none;
}

.nav-links li a {
    position: relative;
    overflow: hidden;
}
.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #00aaff;
    transition: width 0.3s ease-in-out;
}
.nav-links li a:hover::after {
    width: 100%;
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(0,170,255,0.3) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    transition: transform 0.05s ease-out;
}




@media (max-width: 768px) {
    .custom-cursor {
        display: none;
    }
    .nav-avatar {
        width: 44px;
        height: 44px;
    }

    .nav-avatar-img {
        width: 36px;
        height: 36px;
    }

    .burger {
        display: block;
        font-size: 2rem;
        color: white;
        cursor: pointer;
        z-index: 10002; /* ✅ PLUS HAUT que le menu */
        transition: transform 0.3s ease, color 0.3s ease; /* ✅ AJOUT transition color */
        position: relative; /* ✅ CHANGEMENT : plus de position absolute */
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .burger:hover {
        transform: scale(1.1);
        color: #00aaff;
    }

    .nav-links {
        display: none;
        position: fixed;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        top: 0; /* ✅ CHANGEMENT : au lieu d'inset */
        left: 0; /* ✅ CHANGEMENT : au lieu d'inset */
        width: 100vw; /* ✅ AJOUT : largeur viewport */
        height: 100vh; /* ✅ AJOUT : hauteur viewport */
        background: rgba(10, 15, 28, 0.98); /* ✅ PLUS OPAQUE */
        backdrop-filter: blur(10px); /* ✅ AJOUT : effet blur */
        -webkit-backdrop-filter: blur(10px); /* ✅ AJOUT : Safari */
        z-index: 10001; /* ✅ EN DESSOUS du burger */
        transition: all 0.3s ease; /* ✅ CHANGEMENT : all au lieu de transform */
        gap: 2rem;
        font-size: 1.5rem;
        opacity: 0; /* ✅ AJOUT : invisible par défaut */
        transform: translateY(-20px); /* ✅ AJOUT : décalage pour animation */
    }

    .nav-links.active {
        display: flex;
        opacity: 1; /* ✅ AJOUT : visible */
        transform: translateY(0); /* ✅ AJOUT : position normale */
    }

    .nav-links li {
        list-style: none;
        margin: 0;
    }

    .nav-links li a {
        color: white;
        text-decoration: none;
        padding: 1rem 2rem; /* ✅ AJOUT : zone de clic plus grande */
        border-radius: 8px; /* ✅ AJOUT : coins arrondis */
        transition: all 0.3s ease; /* ✅ AJOUT : animations */
        display: block;
        text-align: center;
        min-width: 200px; /* ✅ AJOUT : largeur minimale */
    }

    .nav-links li a:hover {
        background: rgba(0, 170, 255, 0.1); /* ✅ AJOUT : fond au survol */
        color: #00aaff;
        transform: translateY(-2px); /* ✅ AJOUT : effet de levée */
        box-shadow: 0 4px 12px rgba(0, 170, 255, 0.3); /* ✅ AJOUT : ombre */
    }
}





.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 1100px;
    min-height: 600px;
    align-items: stretch;
}

.contact-infos, .contact-form {
    background-color: #101a2c;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow:
            0 0 10px rgba(0, 170, 255, 0.3),
            0 0 20px rgba(0, 170, 255, 0.2),
            0 0 40px rgba(0, 170, 255, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.contact-infos-content, .contact-form-content, .column-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.contact-infos-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-align: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.info-item i {
    font-size: 1.4rem;
    color: #00aaff;
}

.socials-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icons a {
    color: #00aaff;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: scale(1.2);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form label {
    text-align: left;
    font-weight: 600;
    color: #bbb;
}

.contact-form input, .contact-form textarea {
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #222f45;
    background-color: #101a2c;
    color: white;
    font-size: 1rem;
}

.contact-form button {
    padding: 0.9rem 1.5rem;
    background: linear-gradient(90deg, #007cf0, #00dfd8);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s;
}

.contact-form button:hover {
    transform: scale(1.05);
}

.form-demo {
    font-size: 0.85rem;
    color: #999;
    text-align: center;
    margin-top: 1rem;
}

.form-container {
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
}

/* CORRECTION FINALE POUR MOBILE */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        min-height: auto; /* IMPORTANT ICI */
    }

    .contact-infos, .contact-form {
        height: auto;
    }

    .contact-infos-content, .contact-form-content, .column-content {
        height: auto;
    }
}