@font-face {
    font-family: "VictorBase";
    src: url("fonts/VictorMono/VictorMono-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* Version italique */
@font-face {
    font-family: "VictorMono";
    src: url("fonts/VictorMono/VictorMono-Italic.ttf") format("truetype");
    font-weight: normal;
    font-style: italic;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
    background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("assets/bg.png");
    background-blend-mode: overlay;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: #1f1f1f;

    /* how_to_center_a_div */
    min-height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 16px;
}

[x-cloak] {
    display: none !important;
}

.card {
    border: 1px solid #e7e7e7;
    background-color: #eeeeee;
    width: 100%;
    max-width: 850px;
    max-height: calc(100svh - 32px);
    overflow: auto;
    padding: 20px;
    box-shadow: 3px 3px #1d202180;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.card-header a {
    color: inherit;
    text-decoration: none;
}

.card-header a:hover {
    text-decoration: underline;
}

.section {
    margin: 0;
    width: 100%;
}

a.card-title {
    color: #006767;
}

.text-section {
    display: flex;
    min-height: clamp(160px, 20vh, 240px);
}

.me-pic {
    width: clamp(96px, 18vw, 160px);
    max-height: 240px;
    object-fit: cover;
    padding-right: 10px;
}

.badges img {
    width: 88px;
    height: 31px;
    image-rendering: pixelated;
}

.contact-section {
    display: flex;
    gap: 40px;
}

.now-section {
    display: flex;
    flex-direction: column;
    min-height: inherit;
}

.contact-link a {
    font-family: "VictorBase";
    display: block;
    color: inherit;
    text-decoration: none;
}

.contact-link a:hover {
    color: #006767;
}

.contact-type a {
    font-family: "VictorMono";
    display: block;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-end;
}

.tab-link {
    appearance: none;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-weight: bold;
    padding: 0;
}

.tab-link:hover {
    text-decoration: underline;
}

.tab-link.is-active {
    color: #006767;
}

hr {
    border: none;
    height: 2px;
    background-color: #1d202180;
    margin: 10px 0;
}

.card-header {
    display: flex;
    justify-content: space-between;
}

.badges a {
    text-decoration: none;
}

/* projects */
#projects {
    width: 100%;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.projects {
    width: 100%;
}

.project-entry {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 12px;
    align-items: baseline;
    padding: 6px 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #1d20210a;
}

.project-entry:last-child {
    border-bottom: none;
}

.project-entry:hover .project-name {
    color: #006767;
}

.project-name {
    font-size: 16px;
    font-weight: bold;
    transition: color 0.15s;
}

.project-desc {
    font-size: 14px;
    color: #5a5a5a;
}

.project-tech {
    font-size: 12px;
    color: #8a8a8a;
    white-space: nowrap;
}


.now-updated {
    display: block;
    margin-top: auto;
    padding-top: 24px;
    font-size: 12px;
    color: #8a8a8a;
}


@media (max-width: 815px) {
    
    body {
        align-items: flex-start;
        padding: 15px;
    }

    .card {
        max-height: none;
    }
    
    .tabs {
        width: 100%;
        gap: 8px 14px;
        justify-content: flex-start;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .text-section {
        min-height: 20vh;
        display: block;
        text-align: justify;
    }
    
    a.card-title {
        display: none;
    }

    .project-entry {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 8px 0;
    }

    .project-name {
        font-size: 15px;
    }
    
    .me-pic {
        display: none;
    }
    
}
