/* -------- STYLES GÉNÉRAUX -------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-padding-top: 4rem;
}

:root {
    --bg-color: #000;
    --font-color: #fff;
    --accent-color: #24c515;
    --font: "Poppins", sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--font-color);
    font-family: var(--font);
    min-height: 100vh;
    max-width: 100vw;
}

/* Conteneur principal */
.container {
    padding: 0 8rem;
}

@media screen and (max-width: 992px) {
    .container {
        padding: 0 2rem;
    }
}

/* ------- SCROLLBAR ------- */
body::-webkit-scrollbar {
    width: 0.6rem;
}
body::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: rgba(165, 162, 162, 0.8);
}
body::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-color);
}

/* ------- HEADER / NAVBAR -------- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8rem;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--bg-color);
    z-index: 10;
}

.logo img {
    width: 120px;
    height: auto;
    cursor: pointer;
}

.header__info ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center; 
}

.header__info ul li {
    cursor: pointer;
    padding: 1.5rem 0;
    transition: color 0.3s;
    display: flex;       
    align-items: center; 
}

.header__info ul li:hover {
    color: var(--accent-color);
}


.btn-linkedin {
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    display: inline-block;   
}

.btn-linkedin:hover {
    background-color: #005582;       
    transform: translateY(-1px);     /* Efecto sutil */
}

/* ====== BOUTON MENU BURGER (NOUVEAU) ====== */
/* Bouton hamburger */
.hamburger-btn {
    display: none; /* Caché sur desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--font-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Animation pour transformer en "X" */
.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* ------- MENU RESPONSIVE (NOUVEAU AVEC JS) ------- */
@media screen and (max-width: 1200px) {
    .navbar {
        padding: 0 2rem;
    }

    /* Afficher le bouton burger sur mobile */
    .hamburger-btn {
        display: flex;
    }

    /* Styles pour le menu mobile */
    .header__info {
        position: fixed;
        top: 0;
        right: -100%; /* Caché initialement */
        height: 100vh;
        width: 60%;
        background-color: var(--bg-color);
        flex-direction: column;
        transition: right 0.4s ease-in-out; /* Changé de transform à right */
        padding-top: 5rem;
        z-index: 999;
    }

    /* Menu ouvert (classe ajoutée par JS) */
    .header__info.active {
        right: 0;
    }

    .header__info ul {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
        padding-left: 2rem;
    }
}

/* ------- ACCUEIL / HOME -------- */
.home__page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.left__content h1 {
    font-size: 3rem;
    margin: 1rem 0;
}

.home__buttons {
    display: flex;
    gap: 1rem;
}

    .btn {
        padding: 0.7rem 1.4rem;
        border-radius: 6px;
        font-size: 0.9rem;
        cursor: pointer;
        text-decoration: none;
        border: none;
        transition: 0.2s;
        display: inline-block;
        text-align: center;
    }

    .btn-primary {
        background-color: var(--accent-color);
        color: white;
    }

    .btn-primary:hover {
        background-color: #02841e;
    }

    .btn-secondary {
        background: transparent;
        color: white;
        border: 1px solid var(--accent-color);
    }

    .btn-secondary:hover {
        background: rgba(0, 119, 181, 0.1);
        color: var(--accent-color);
    }

/* PHOTO DE PROFIL */
.right__content img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 50%;
}


/* ------- ABOUT ME -------- */

.about__me {
    display: flex;
    align-items: center;
    min-height: 85vh ; /* Resta altura del navbar */
    gap: 2rem;
    padding: 1rem 0; /* o 0 */
}


.aboutMe__content {
    display: flex;
    align-items: center; 
    justify-content: space-between;
    gap: 4rem; 
    width: 100%;
}

.aboutMe__info {
    flex: 1;
    max-width: 600px;
}

.aboutMe__info h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.aboutMe__info p {
    color: #ccc;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.aboutMe__info p:last-child {
    margin-bottom: 0;
}

.aboutMe__image {
    flex: 0 0 auto; 
    width: 40%; 
}

.aboutMe__image img {
    width: 100%;
    max-width: 500px; 
    height: auto;
    object-fit: cover;
    border-radius: 12px;  
}

/* Responsive */
@media screen and (max-width: 992px) {
    .aboutMe__content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .aboutMe__image {
        width: 80%;
        max-width: 400px;
    }
    
    .aboutMe__image img {
        max-width: 100%;
    }
}

/* ----- COMPÉTENCES / SKILLS ----- */

.skills {
    padding: 2rem 1rem;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.skills h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.skill-card p {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .skill-card {
        padding: 1.5rem 1rem;
    }
}

@media screen and (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
}

/* ------- PROJETS / PORTFOLIO -------- */
.portfolio {
    padding: 1rem 0;
}

.portfolio__gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
}

.project-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 350px;
}

.project__card {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.project__card:hover {
    transform: translateY(-5px);
}

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

.project__card:hover img {
    transform: scale(1.05);
}

.project__card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.538);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.project__card:hover .overlay {
    opacity: 1;
}

.card-github-link {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
}

.project__card:hover .card-github-link {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.project__details {
    margin-top: 1.5rem;
    text-align: center;
    width: 100%;
}

.project__details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color:var(--accent-color);
}

.project__description {
    color: #fefdfd;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.project__technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.tech-badge {
    display: inline-block;
    background: var(--accent-color);
    color: #000000;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #0e0e0f;
    transition: all 0.2s ease;
}

.tech-badge:hover {
    background: #e1f0ff;
    transform: translateY(-2px);
}

.demo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;

}

.demo-link:hover {
    background-color:-- ;
    color: black;
    
    text-decoration: none;
}

.demo-link span {
    font-size: 1.1rem;
}



/* ------- FOOTER / CONTACT -------- */
.contact-section {
    background-color: #000000;
    color: #a3a3a3;
    text-align: center;
    padding: 2rem 2rem;
    border-top: 1px solid var(--accent-color);
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #fff;
}

.contact-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 200px;
}

.contact-card i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.contact-card a {
    color: #a3a3a3;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: var(--accent-color);
}


/* ------- RESPONSIVE GÉNÉRAL -------- */
@media screen and (max-width: 768px) {
    .home__page {
        flex-direction: column;
        text-align: center;
    }
    .about__me {
        flex-direction: column;
        text-align: center;
    }
    .container {
        padding: 0 1rem;
    }
}


