*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body {
    font-family: 'Tw Cen Mt';
    font-size: 14px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 130vh;
    background: black;
    background-size: cover;
    z-index: -100;
}

header {
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
}

nav {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 20px;
    position: fixed;
    background: black;
    z-index: 1000;
    justify-content: flex-end;
    align-items: center;
}

/* Menu burger */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}


nav ul {
    flex: 1;
    flex-wrap: wrap;
    display: flex;
    justify-content: flex-end;
    padding-right: 40px;
}

nav ul li {
    list-style: none;
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size:  1.2rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #2eb0f0;
}

/* Menu latéral pour mobile */
.nav-menu {
    display: none;
    transition: transform 0.3s ease-in-out;
}

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

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

/* Bouton de fermeture du menu*/
.nav-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 0;
    z-index: 1001;
    transition: color 0.3s ease;
}

.nav-close:hover {
    color: #2eb0f0;
}

.nav-close svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

/* Navbar responsive */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    nav > ul {
        display: none;
    }

    .nav-close {
        display: flex;
    }

    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: black;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 70px 20px 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu ul {
        list-style: none;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .nav-menu li {
        width: 100%;
        margin: 0;
        margin-bottom: 15px;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu li a {
        font-size: 1.2rem;
        display: block;
        width: 100%;
        padding: 8px 0;
    }

    nav {
        padding-right: 20px;
    }

    .title h1 {
        font-size: clamp(1.1rem, 3.5vw, 1.8rem);
        line-height: 1.3;
        min-height: 2.6em;
        word-break: break-word;
    }
    
    @media (max-width: 480px) {
        .title h1 {
            font-size: clamp(0.95rem, 3vw, 1.4rem);
            min-height: 2.8em;
        }
    }
    
    @media (max-width: 360px) {
        .title h1 {
            font-size: clamp(0.85rem, 2.8vw, 1.2rem);
            min-height: 3em;
        }
    }
}

.title {
    padding: 70px 0;
    color: white;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.title h1 {
    font-size: 60px;
    line-height: 1.2;
    margin-top: 30px;
}

.title p {
    font-size: 1.2rem;
    line-height: 1.5;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    margin-top: 3rem;
}

.title a {
    display: inline-block;
    text-decoration: none;
    font-size: 1.25rem;
    border: 1px solid #2eb0f0;
    color: #2eb0f0;
    padding: 10px 20px;
    margin-right: 30px;
}

.title a.cv {
    color: #121212;
    background-color: #2eb0f0;
    font-weight: 600;
}

h1 span.auto-typing {
    color: #2eb0f0;
}

/*A propos*/

.about {
    padding: 30px 0;
    color: white;
    width: 100%;
    height: auto;
    background: rgb(11, 10, 10);
    text-align: center;                 
}

.about img {
    width: 110px;
    background: #262626;
    border-radius: 50%;
}

.about h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 2.5rem;
}

.about p {
    font-size: 1.1rem;
    line-height: 1.5;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    
}

/* skills*/

.skills {
    padding: 60px 0;
    color: white;
    width: 100%;
    height: auto;
    background: black;
    text-align: center;
}

.skills h2 {
    margin: 25px;
    font-size: 3rem;
    margin-bottom: 50px;
}


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


.skill-category {
    margin-bottom: 50px;
    text-align: left;
}

.category-title {
    font-size: 1.5rem;
    color: #2eb0f0;
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 3px solid #2eb0f0;
    font-weight: 600;
}


.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    padding: 0 20px;
}


.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #262626 100%);
    border: 1px solid #333;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-card:hover {
    border-color: #2eb0f0;
    background: linear-gradient(135deg, #0f3a47 0%, #1a4f5e 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(46, 176, 240, 0.15);
}

.skill-card img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.skill-card span {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: color 0.3s ease;
}

.skill-card:hover span {
    color: #2eb0f0;
}

/*  projets */

.mes-projets {
    padding: 60px 20px;
    background: rgb(11, 10, 10);
    color: white;
    width: 100%;
    min-height: auto;
}

.mes-projets h2 {
    margin: 25px auto;
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #262626 100%);
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(46, 176, 240, 0.2);
    border-color: #2eb0f0;
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #1a1a1a;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(70%);
}

.project-card:hover .project-image img {
    transform: scale(1.08);
    filter: brightness(90%);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.view-project {
    color: #2eb0f0;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: white;
    font-weight: 600;
}

.project-description {
    font-size: 0.95rem;
    color: #b0b0b0;
    margin-bottom: 15px;
    line-height: 1.5;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(46, 176, 240, 0.1);
    border: 1px solid rgba(46, 176, 240, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    color: #2eb0f0;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-card:hover .tag {
    background: rgba(46, 176, 240, 0.2);
    border-color: #2eb0f0;
}

.tag-alternance {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.project-card:hover .tag-alternance {
    background: rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
}

/* Responsive pour les projets */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .mes-projets {
        padding: 40px 15px;
    }

    .mes-projets h2 {
        font-size: 2.5rem;
        margin-bottom: 35px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        padding: 0 10px;
    }

    .project-image {
        height: 180px;
    }

    .project-content h3 {
        font-size: 1.2rem;
    }

    .skill-category {
        margin-bottom: 40px;
    }

    .category-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
        padding-left: 15px;
    }

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

    .skill-card {
        padding: 15px;
        gap: 10px;
    }

    .skill-card img {
        width: 40px;
        height: 40px;
    }

    .skill-card span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-image {
        height: 200px;
    }

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

    .skill-card {
        padding: 12px;
        gap: 8px;
    }

    .skill-card img {
        width: 35px;
        height: 35px;
    }
}

/*contacts*/

.mes-contacts {
    padding: 15px 0;
    color: white;
    width: 100%;
    height: auto;
    background: black;
    text-align: center;                 
}

.mes-contacts h2 {
    margin: 25px;
    font-size: 2rem;
}

.flex2 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.contact {
    font-size: 18px;
    margin: 5px;
}

.contact img {
    width: 15px;
    height: auto;
    align-items: center;
}

.linkedin, .email, .github{
    text-decoration: none;
    color: white;
}

/* Drawer */
.drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drawer.active {
    opacity: 1;
    pointer-events: all;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 800px;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.drawer.active .drawer-content {
    transform: translateX(0);
}

.drawer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(46, 176, 240, 0.1);
    border: 1px solid rgba(46, 176, 240, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #2eb0f0;
}

.drawer-close:hover {
    background: rgba(46, 176, 240, 0.2);
    border-color: #2eb0f0;
    transform: rotate(90deg);
}

.drawer-close svg {
    width: 20px;
    height: 20px;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 60px 40px 40px;
    color: white;
}

.drawer-body::-webkit-scrollbar {
    width: 8px;
}

.drawer-body::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.drawer-body::-webkit-scrollbar-thumb {
    background: rgba(46, 176, 240, 0.3);
    border-radius: 4px;
}

.drawer-body::-webkit-scrollbar-thumb:hover {
    background: rgba(46, 176, 240, 0.5);
}

/* Contenu des projets dans le drawer */
.project-detail {
    display: none;
}

.project-detail.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

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

.project-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(46, 176, 240, 0.2);
}

.project-header h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(46, 176, 240, 0.15);
    border: 1px solid rgba(46, 176, 240, 0.4);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #2eb0f0;
    font-weight: 500;
}

.meta-tag.tag-alternance {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.4);
    color: #ffc107;
}

.project-section {
    margin-bottom: 40px;
}

.project-section h3 {
    font-size: 1.5rem;
    color: #2eb0f0;
    margin-bottom: 20px;
    font-weight: 600;
    padding-left: 20px;
    border-left: 3px solid #2eb0f0;
}

.project-section h4 {
    font-size: 1.2rem;
    color: #2eb0f0;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.project-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: #d0d0d0;
    margin-bottom: 15px;
}

.tech-list {
    list-style: none;
    padding: 0;
}

.tech-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
    color: #d0d0d0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-list li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #2eb0f0;
    font-weight: bold;
}

.tech-list li strong {
    color: #2eb0f0;
    font-weight: 600;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.project-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(46, 176, 240, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-gallery img:hover {
    transform: scale(1.02);
    border-color: #2eb0f0;
    box-shadow: 0 8px 25px rgba(46, 176, 240, 0.3);
}

.project-gallery.game-elements {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.project-gallery.game-elements img {
    object-fit: contain;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
}

/* Responsive pour le drawer */
@media (max-width: 1024px) {
    .drawer-content {
        max-width: 700px;
    }
    
    .drawer-body {
        padding: 50px 30px 30px;
    }
    
    .project-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .drawer-content {
        max-width: 100%;
    }
    
    .drawer-body {
        padding: 50px 25px 25px;
    }
    
    .project-header h2 {
        font-size: 1.8rem;
    }
    
    .project-section h3 {
        font-size: 1.3rem;
    }
    
    .project-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .drawer-body {
        padding: 50px 20px 20px;
    }
    
    .drawer-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .project-header h2 {
        font-size: 1.5rem;
    }
    
    .project-meta {
        gap: 8px;
    }
    
    .meta-tag {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}
