:root {
    --bleu: #D0DDEC;
    --rose: #D29BA4;
    --marron: #6D4C37;
    --jaune: #f0f198;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: white;
    color: var(--marron);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 300;
    font-style: normal;
}



/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: relative;
}

/* LOGO HEADER */
.logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* NAV */
nav {
    display: flex;
}

nav a {
    margin: 0 10px;
    text-decoration: none;
    color: var(--marron);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 300;
    font-style: normal;
}

/* BURGER */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--marron);
}

/* TITRE */
.title {
    text-align: center;
    font-size: 3rem;
    margin: 30px 0;
    font-family: "Anton", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: var(--rose);
}

.sous-titre {
    font-style: italic;
    text-align: center;
    color: var(--rose);
}

h2 {
    font-family: "sofia-pro", sans-serif;

}

/* ABOUT */
.about {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: #f0f198;
    margin: 20px;
    padding: 20px;
    border-radius: 20px;
}



.about-text {
    flex: 1;
}

/* IMAGE */
.about img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 15px;
}


.photo-em{
        border: 5px solid #e0e251;

}

/* LOGO CIRCULAIRE */
.circle-logo {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.circle-logo img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
}

.circle-logo svg {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: spin 12s linear infinite;
}

.circle-logo text {
    fill: var(--marron);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;

}

/* BOUTON PROJETS */
.project-button {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 18px;
    border: 1px solid var(--marron);
    border-radius: 20px;
    text-decoration: none;
    color: var(--marron);
    font-size: 14px;
    transition: 0.3s;
}

.project-button:hover {
    background-color: var(--bleu);
    color: var(--marron);
    border: 1px solid #93a4b8;
}

#envoyer {
    background-color: var(--jaune);
}

.socials {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.socials a {
    text-decoration: none;
    color: var(--marron);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

/* effet hover */
.socials a:hover {
    color: var(--bleu);
}

/* petit soulignement animé */
.socials a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background: var(--bleu);
    transition: 0.3s;
}

.socials a:hover::after {
    width: 100%;
}

/* rotation du texte */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* SECTION */
.section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding: 20px;
}

/* PROJETS */
.envelope {
    background: var(--bleu);
    padding: 20px;
    border-radius: 20px;
}

.envelope>h2 {
    color: #ffff;
    font-family: "sofia-pro", sans-serif;
    font-weight: bold;
    font-style: normal;
}

.tabs {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.tab {
    background: var(--rose);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    color: white;
    font-family: "sofia-pro", sans-serif;
    font-weight: bold;
    font-style: normal;
}

.tab.active {
    background: var(--jaune);
    color: var(--gris);
}

.tab-content {
    display: none;
    background: white;
    padding: 20px;
    border-radius: 0 10px 10px 10px;
}

.tab-content.active {
    display: block;
}

/* SKILLS */
.skills {
    background: var(--rose);
    padding: 20px;
    border-radius: 20px;
}

.competences{
    color: white;
}

.bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bubble:hover {
    background: var(--jaune);
    border: 1px solid #dee058;
    color: #6D4C37;
}

.bubble {
    background: #8a5a63;
    padding: 8px 12px;
    border-radius: 20px;
    color: white;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: auto;
}

input,
textarea {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--marron);
    font-family: "sofia-pro", sans-serif;
    font: weight 300px;
    ;
    font-style: normal;
}

textarea {
    resize: none;
}

button {
    background: var(--bleu);
    border: none;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    font-family: "sofia-pro", sans-serif;
    font-weight: bold;
    font-style: normal;
}

/* CV */



/* RESPONSIVE */
@media (max-width: 768px) {

    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 20px;
        width: 200px;
        background: white;
        border-radius: 15px;
        padding: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        animation: fadeIn 0.3s ease;
    }

    nav a {
        padding: 10px;
        border-radius: 10px;
    }

    nav a:hover {
        background: var(--rose);
        color: white;
    }

    nav.active {
        display: flex;
    }

    /* animation d'entrée */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .burger {
        display: flex;
        margin-left: auto;
    }

    .about {
        flex-direction: column;
        text-align: center;
    }

    .about img {
        margin: 0 auto;
    }

    .circle-logo {
        margin: 20px auto;
        width: 150px;
        height: 150px;
    }

    .circle-logo img {
        width: 75px;
        height: 75px;
    }

    .section {
        grid-template-columns: 1fr;
    }
}

.msg {
    padding: 12px 18px;
    margin: 20px 0;
    border-radius: 10px;
    font-family: sans-serif;
    font-weight: 500;
    text-align: center;
}