/* SCROLLBAR DE LA PAGE MODIFIEE */
/* Style global pour la scrollbar */
::-webkit-scrollbar {
    width: 12px;  
    height: 12px;
}

/* Fond de la scrollbar */
::-webkit-scrollbar-track {
    background: #423B3B;  
}

/* Bouton de la scrollbar (c'est la partie qui se déplace) */
::-webkit-scrollbar-thumb {
    background: rgba(171, 171, 171, 0.63); 

    border-radius: 10px;  /* Coins arrondis du bouton */
    transition: background-color 0.3s ease;
}

/* Lorsque l'utilisateur survole la scrollbar */
::-webkit-scrollbar-thumb:hover {
    background: rgba(171, 171, 171, 0.442); 
}

:root {
    --logo-ff: "Inspiration", sans-serif;
    --second-ff: "Instrument Serif", sans-serif;
    --bg-dark-grey: #423B3B;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    font-family: var(--second-ff);
    font-weight: 400;
    font-style: normal;
    /* position: relative; */

}

/* Fil d'ariane */
div.fil-ariane {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    margin: 1rem 4.2rem 1rem 4.2rem;
}

.fil-ariane a {
    text-decoration: underline !important;
    color: #000;
    transition: color 0.5s;
}

.fil-ariane a:hover {
    color: #484242;
}

.fil-ariane span {
    color: #555;
}

/* Liens d'évitement */
.skip-links {
    position: fixed;
    top: -1000px;
    left: 0;
    background: #000;
    color: #fff;
    z-index: 1000;
    width: auto;
    padding: 1rem;

    border: 2px dotted white;
}

.skip-links li {
    list-style: none;

}

.skip-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: #fff;
    text-decoration: underline;
}

.skip-links a:focus {
    position: static;
    outline: 2px solid yellow;
}

.skip-links:has(a:focus) {
    top: 0;
}






/* Perso */
a.perso-formulaire:focus div.perso {
    transform: scale(1.08);
    border: 2px solid black;
}
div.perso {
    position: fixed;
    bottom: 0;
    right: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 999;
    color: black;
    width: 14rem;
    gap: 1.2rem;

    cursor: pointer;
}

div.perso h2 {
    background-color: white;
    padding: 0.8rem 0.4rem;
    position: absolute;
    bottom: 60px;
    right: 3px;
    width: 5rem;
    border-radius: 1.6rem;
    border-bottom-left-radius: 0;
    font-size: 1.02rem;
    border: 1px solid black;
}
img#perso {
    width: 6rem;
    z-index: 999;
}

/* Barre de navigation \ Navbar */
nav {   
    position: fixed;
    top: 0;

    z-index: 10; 
    background-color: var(--bg-dark-grey); 
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;

    z-index: 999;
}


nav div.left a {
    font-size: 4rem;
    text-decoration: none;
    color: white;
    font-family: var(--logo-ff);
}

nav div.right {
    display: flex;
    gap: 2rem;
    text-decoration: underline;
    color: white;
}

nav div.right a {
    font-size: 2rem;
    text-decoration: none;
    color: white;

    padding: 12px;
    border-radius: 40px;
    transition: all 0.3s ease-out;

    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.2rem;
    
}

nav div.right a:hover {
    color: rgb(202, 201, 201);
}

/* TAGS */
div.tags button:hover,
div.ingredients-choice button:hover {
    background-color: black;
    color: white;  
}

div.ingredients-choice {
    display: flex;
    padding: 16px;
    padding-left: 0.8rem;
    gap: 0.6rem;
}

    /* Types des recettes */
div[class^='tag'] {
    padding: 0.2rem 2rem;
    border-radius: 10rem;
    border: 2px solid black;
}

div[class*='type'] {
    padding: 0.2rem 2rem;
    border-radius: 10rem;
}

/* Footer */
footer {
    background-color: var(--bg-dark-grey);
    color: white;
    height: 50vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    width: 100vw;
}

footer a:first-child {
    text-decoration: none;
    color: white;
}

footer div.footer-elements a {
    color: white;
    text-decoration: underline;
}

footer h1 {
    font-family: var(--logo-ff);
    font-weight: 400;
    font-style: italic;
    font-size: 6rem;
}

div.footer-elements {
    display: flex;
    justify-content: center;
    align-items: center;
    
    gap: 6rem;
}

footer div.footer-elements a {
    color: white;
    transition: all 0.3 ease;
}   

footer div.footer-elements a:hover {
    text-decoration: none;
}

@media screen and (max-width: 450px) {
    div.footer-elements {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    footer {
        height: fit-content;
    }
}

@media screen and (max-width: 700px) {
    div.perso {
        position: fixed;
        bottom: 0;
        right: -10px;

        display: flex;
        justify-content: center;
        align-items: center;

        z-index: 999;
        color: black;
        cursor: pointer;
    }

    div.perso h2 {
        background-color: white;
        padding: 0.8rem 0.4rem;
        position: absolute;
        bottom: 60px;
        right: 20px;
        width: 5rem;
        border-radius: 1.6rem;
        border-bottom-left-radius: 0;
        font-size: 1.02rem;
        border: 1px solid black;
    }
    img#perso {
        width: 4rem;
        z-index: 999;
    }
}

@media screen and (max-width: 480px) {
    nav {   
        position: fixed;
        top: 0;

        z-index: 10; 
        background-color: var(--bg-dark-grey); 
        padding: 10px 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        z-index: 999;
    }


    nav div.left a {
        font-size: 4rem;
        text-decoration: none;
        color: white;
        font-family: var(--logo-ff);
    }

    nav div.right {
        display: flex;
        gap: 2rem;
        font-size: 1rem;
    }

    nav div.right a {
        font-size: 2rem;
        text-decoration: none;
        color: white;

        padding: 12px;
        border-radius: 40px;
        transition: all 0.3s ease-out;

        font-family: Verdana, Geneva, Tahoma, sans-serif;
        font-size: 1.2rem;
        
    }

}