@import url("timeline.css");

:root {
    --bg-color: #f5f5f5;
    --photo-border: #ffffff;
    --accent-color: #435766;
    --secondary-color: #E2C044;
    --underline: #dfdfdf;
    --green-color: #6F744F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

a {
    text-decoration: none;
}

body {
    background-color: var(--bg-color);
}

/* Bandeau */
.banner {
    position: relative;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/0/01/Vincent_van_Gogh_-_Starry_Night_-_Google_Art_Project.jpg');
    background-size: cover;
    background-position: center;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.profile-container {
    position: absolute;
    bottom: -100px;
    left: 50px;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 10px solid var(--photo-border);
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Bloc nom + menu */
.profile-header {
    display: flex;
    justify-content: space-between;
    margin: 0 auto 0 auto;
    padding: 10px 50px 0 270px;
    align-items: center;
}

.text h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

.text h2 {
    font-size: 1.2rem;
    font-weight: normal;
    margin-top: 5px;
    font-style: italic;
    color: var(--accent-color);
}

.menu {
    display: flex;
    gap: 10px;
}

.menu a {
    color: var(--accent-color);
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 7px;
    /* transition: background 0.3s ease; */
}

.menu a.active {
    background-color: var(--accent-color);
    color: #fff;
}

/* Contenu principal */
main {
    margin: auto;
    margin-top: 50px;
    padding: 20px;
    width: 90%;
    max-width: 1300px;
}

main h1 {
    margin-top: 20px;
    border-bottom: 1px solid var(--underline);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 250px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.project-card:hover img {
    opacity: 0.7;
}

.project-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    pointer-events: none;
}

.project-card:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.overlay p {
    color: white;
    font-size: 1rem;
    font-style: italic;
    margin-top: 5px;
}

.project-title {
    text-align: center;
    font-weight: 600;
    margin-top: 8px;
    color: var(--accent-color);
}

.project-link {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.project-link:hover {
    transform: translateY(-5px);
}

footer {
    background-color: var(--accent-color);
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 0.8em;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.mobile-menu i {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}
.mobile-menu a {
    color: #fff;
    font-size: 1.5rem;
    margin: 10px 0;
}

.burger {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

.burger.disabled {
    display: none;
}

@media (max-width: 768px) {
    .burger {
        display: block;
    }
    .text h1 {
        font-size: 1.5rem;
    }

    .text h2 {
        font-size: 0.8rem;
        margin-top: 0px;
    }

    .profile-photo {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        border: 5px solid #fff;
        object-fit: cover;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .profile-container {
        position: absolute;
        bottom: -50px;
        left: 10px;
    }

    .profile-header {
        padding: 10px 50px 0 120px;
    }

    .menu {
        display: none;
    }

    .banner {
        height: 120px;
    }

    .project-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    main {
        margin-top: 0px;
    }

    .project-card {
        height: 150px;
    }

    .mobile-menu {
        display: flex;
    }

    .mobile-menu.disabled {
        display: none;
    }
}