@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --white: #FFFAEE;
    --primary-050: #FFEFDA;
    --primary-100: #FFD8AD;
    --primary-200: #FFC37D;
    --primary-300: #FFB14B;
    --primary-400: #FFA21A;
    --primary-500: #E69100;
    --primary-600: #B36500;
    --primary-700: #814000;
    --primary-800: #4E2000;
    --primary-900: #1F0700;
    --secondary-050: #FFE5F3;
    --secondary-100: #FBB5DA;
    --secondary-200: #F984C1;
    --secondary-300: #F955A9;
    --secondary-400: #F83093;
    --secondary-500: #DF237A;
    --secondary-600: #AD195F;
    --secondary-700: #7B1044;
    --secondary-800: #4A0629;
    --secondary-900: #1a000e;
}

html,
body {
    width: 90vw;
    max-width: 1000px;
    margin: auto;
    font-family: "Poppins", sans-serif;
    color: var(--primary-900);
    background-color: var(--white);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#presentation {
    display: flex;
    gap: 24px;
    flex-direction: column;
    align-items: center;
}

#presentation img {
    width: 100%;
}

#presentation div {
    padding-bottom: 36px;
}

.btn {
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    cursor: pointer;
    margin-top: 24px;
}

.btn-primary {
    background-color: var(--primary-400);
    color: var(--primary-800);
}

.btn-secondary {
    background-color: var(--secondary-100);
    color: var(--secondary-700);
}

button[type="submit"] {
    width: 100%;
}

#listTags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 8px;
    border-radius: 32px;
    font-size: 14px;
    font-weight: 600;
    width: fit-content;
    margin: 0;
}

.tag-primary {
    background-color: var(--primary-100);
    color: var(--primary-700);
}

.tag-secondary {
    background-color: var(--secondary-050);
    color: var(--secondary-600);
}

#listCompetences,
#listExperiences {
    display: flex;
    gap: 16px;
    overflow-x: scroll;
}

#listProjets {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

#competence {
    background-color: var(--primary-050);
    border-radius: 16px;
    padding: 24px 20px 8px 20px;
    width: fit-content;
    min-width: 132px;
    text-align: center;
}

#competence img {
    max-width: 100%;
    height: 48px;
}

#experience {
    display: flex;
    background-color: var(--secondary-050);
    width: fit-content;
    min-width: 400px;
    border-radius: 16px;
    padding: 24px;
    gap: 24px;
}

#experience img {
    width: 130px;
    height: 120px;
    object-fit: cover;
    border-radius: 16px;
}

#experience h3 {
    margin-top: 8px;
}

#projet {
    display: flex;
    padding: 24px;
    flex-direction: column;
    border-radius: 16px;
    background: var(--secondary-700);
    color: var(--white);
    cursor: pointer;
    width: 100%;
}

#projet h3 {
    margin-bottom: 0;
}

#projet p:not(.tag-secondary) {
    margin-top: 0;
}

#projet img {
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    width: 100%;
}

.overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(26, 0, 14, 0.8);
}

.overlay-content {
    background: var(--secondary-700);
    color: var(--white);
    margin: auto;
    padding: 24px;
    width: 60%;
    border-radius: 16px;
    position: relative;
    max-height: 80vh;
    overflow-y: scroll;
}

.overlay-content h2 {
    margin-top: 0;
}

.overlay-content p {
    margin-bottom: 0;
}

.overlay-content #listProjets {
    padding-top: 16px;
    justify-content: center;
    align-items: center;
}

.overlay-content img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.close {
    position: absolute;
    top: 12px;
    right: 24px;
    color: var(--white);
    font-size: 32px;
    cursor: pointer;
}

.close:hover {
    color: var(--secondary-100)
}

@media screen and (min-width: 768px) {
    #presentation {
        flex-direction: row;
    }

    #presentation img {
        width: 40%;
    }

    #presentation div {
        width: 100%;
    }

    #projet {
        width: calc(100% / 3 - 59px);
    }

    .overlay-content img {
        width: calc(100% / 3 - 11px);
        height: 100%;
    }
}

/* .form-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 2em;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.form-toggle {
    text-align: center;
    margin-bottom: 1em;
}

.form-toggle button {
    margin: 0 5px;
    padding: 0.5em 1em;
    cursor: pointer;
}

.form {
    display: none;
}

.form.active {
    display: block;
}

input {
    width: calc(100% - 26px);
    border: 1px solid var(--primary-100);
    background-color: var(--primary-050);
    border-radius: 8px;
    padding: 12px;
    margin: 8px 0;
} */