@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@200..900&display=swap');

:root {
    --menu-height: 64px;
    
    --bg: 245, 246, 250;
    --shadow: 22, 26, 89;
    --accent: 245, 40, 85;
    --secondary: 239, 240, 255;
    --text-primary: 4, 6, 47;
    --text-secondary: 139, 141, 172;
    --vert-fond: 226, 246, 229; 

    
    --dark-bg: 21, 21, 29;
    --dark-shadow: 181, 177, 196; /* 17% */
    --dark-accent: 224, 28, 71;
    --dark-secondary: 107, 108, 123;
    --dark-text-primary: 250, 250, 255;
    --dark-text-secondary: 230, 230, 240;
    --dark-vert-fond: 10, 60, 17;
}

body {
    background-color: rgb(var(--bg));
    display: flex;
    justify-content: center;
    font-family: "Unbounded", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    color: rgb(var(--text-primary));
}

* {
    font-family: inherit;
    transition: 0.2s ease;
    margin: 0;
    padding: 0;
}

#content {
    margin: 30px;
    width: 85vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

a {
    text-decoration: none;
    color: inherit;
}



/* MENU */

#header {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#menu {
    width: 100%;
    height: var(--menu-height);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

#menu div {
    display: flex;
    align-items: center;
}

#logo {
    justify-content: left;
}

#ajouter-btn {
    justify-content: right;
}

#logo, #ajouter-btn {
    width: 100%;
    height: 100%;
    flex: 1;
}

#logo img, #ajouter-btn img, #recherche input {
    height: calc(var(--menu-height) * 0.6);
}

#logo a {
    width: fit-content;
    height: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: left;
    line-height: 0;
}



/* Barre de recherche */

#recherche {
    flex: 3;
    height: 100%;
    width: 100%;
}

#recherche-input {
    width: 100%;
    border-radius: 9999px 0 0 9999px;
    padding-inline: 30px;
    border: none;
    background-color: rgb(var(--secondary));
    border: 1px solid rgba(var(--shadow), 0.2);
    border-right: none;
    color: rgb(var(--shadow))
}

#recherche-input::placeholder {
    color: rgba(var(--shadow), 0.5);
}

#recherche-input:focus {
    outline: none;
}

#recherche-btn {
    height: calc(var(--menu-height) * 0.6);
    border-radius: 0 9999px 9999px 0;
    padding-inline: 20px;
    background-color: rgb(var(--secondary));
    border: 1px solid rgba(var(--shadow), 0.2);
    box-sizing: content-box;
    border-left: none;
    cursor: pointer;
}

#recherche-btn img {
    height: 50%;
    width: auto;
}




#filters {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    white-space: nowrap;
    overflow-x: scroll;
}

.filter {
    background-color: rgb(var(--secondary));
    color: rgba(var(--shadow), 0.5);
    padding: 5px 20px;
    border: 1px solid rgba(var(--shadow), 0.2);
    border-radius: 9999px;
    width: fit-content;
    font-size: 12px;
}



/* FOOTER */

#footer {
    background-color: rgb(var(--accent));
    border-radius: 20px 20px 0 0;
    position: fixed;
    bottom: 0;
    height: 64px;
    width: 50%;
    display: flex;
    flex-direction: row;
    align-items: center;
    color: rgb(var(--bg));
    transform: translateY(50px);
    z-index: 1000;
}

#footer-gauche {
    flex: 1;
    padding-inline: 30px;
    text-align: left;
    cursor: default;
}

#footer-centre {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#footer-centre img {
    height: 40%;
    width: auto;
}

#footer-droite {
    flex: 1;
    padding-inline: 30px;
    display: flex;
    justify-content: right;
    text-align: right;
}

#footer-droite p {
    width: fit-content;
    text-decoration: none;
    color: rgb(var(--bg));
}

#darkmode {
    cursor: pointer;
}




/* RESPONSIVE */

@media (max-width: 768px) {

    #ajouter-btn, #ajouter-btn img {
        display: none;
    }

    #menu {
        flex-direction: column;
        justify-content: center;
        height: auto;
    }

    #logo, #logo a {
        justify-content: center;
    }

    #recherche {
        margin-top: 20px;
    }

    #filters {
        margin-top: 12px;
    }

    #footer {
        width: 100%;
        border-radius: 20px;
        position: inherit;
        font-size: 12px;
        margin-bottom: 50px;
    }

}

@media (min-width: 768px) {
    #footer:hover {
        transform: translateY(0px);
    }
}