nav {
    top: 0;
    transition: top 0.4s ease;
}

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

.fil-ariane a {
    /* text-decoration: none; */
    color: #fff;
    transition: color 0.2s;
}

.fil-ariane a:hover {
    color: rgb(221, 223, 224);
}

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



div.bg-hero-section {
    background: url("../img/plat/saute-de-boeuf.jpg");
    box-shadow: 0px 3px 14px black;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;

    height: 100vh;
    filter: brightness(0.5);

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

    position: relative;

}

div.hero-section-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translate(-10%, -50%);
    color: white;
    margin: 0 3rem;
    font-size: 1.6rem;
}

div.hero-section-content h1 {
    font-size: 6rem;
    font-weight: 800;
    color: white;
}

div.hero-section-content h2 {
    font-size: 2rem;
    font-weight: 400;
}

.hero-section-content h2 {
    display: flex;
    align-items: center;
}

    /* TAGS */
div.list-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

div.list-tags-element {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    height: 2.2rem;
}

div.list-tags-element div[class^="tag"] {
    padding: 0.2rem 2rem;
    border-radius: 10rem;
    color: black;
    border: 2px solid black;
    background-color: white;
    font-size: 1.2rem;
}

div.list-tags-element div[class^="tag-categories"] {
    padding: 0.2rem 2rem;
    border-radius: 10rem;
    color: white;
    background-color: black;
    font-size: 1.2rem;
}

/* MAIN */
main > div {
    padding-top: 2rem;
}

main h3 {
    display: flex;
    justify-content: right;
    font-size: 3rem;    
    margin: 5rem;
}

.access {
  background-color: #fff8f0;
  border: 1px solid #f0e0d0;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin: 2rem 0 0 0;
  font-size: 1.2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
}

.access a {
  color: #d17c46;
  font-weight: 500;
  text-decoration: underline;
  margin: 0 0.5rem;
  transition: color 0.2s ease;
}

.access a:hover {
  color: #a94e1e;
  text-decoration: underline;
}


div.etapes-recipe h1,
div.ingredients-recipe h1 {
    text-align: center;
    padding: 2rem;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #222;
}

/* INGREDIENTS */
.ingredients-recipe {
    width: 80%;
    padding: 2rem 2rem 0 2rem;
    margin: auto;
}

/* Grille responsive */
.list-details-ingredient {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    justify-items: center;
}

/* Carte d'un ingrédient */
.detail-ingredient {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 240px;
}

.detail-ingredient:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.detail-ingredient img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.detail-ingredient h2 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.detail-ingredient p {
    font-size: 1.1rem;
    margin: 0.3rem 0;
    color: #666;
}

/* ETAPES DE LA RECETTE */
div.etapes-recipe {
    display: flex;  
    flex-direction: column;
    padding-bottom: 5rem;
}

div.etapes-recipe div.container-etapes {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    margin: auto;
}

div.etape {
    min-width: 400px;
    max-width: 900px;
}

div.etapes-recipe h2,
div.etapes-recipe p {
    padding-left: 6rem;
    padding-right: 3rem;
}

div.etapes-recipe h2 {
    font-size: 2rem;
}

div.etapes-recipe ul li {
    font-size: 1.6rem;
}

div.etapes-recipe p {
    font-size: 1.2rem;

}

/* Recommendations */
.random-recommendation-full {
    background-color: #2f2f2f;
    color: white;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 240px;
    padding: 2rem;
    margin: 3rem 0 0;
}

.recommendation-content {
    padding: 1rem 2rem;
    margin-left: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: left;
}

.recommendation-content a {
    min-width: 150px;
    max-width: 200px;
}

.recommendation-content h1 {
    font-size: 1.6rem;
    text-transform: uppercase;
    color: #FF6F3C;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.recommendation-content h2 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.recommendation-content p {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.btn-see-recipe {
    background-color: #FF6F3C;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-see-recipe:hover {
    background-color: #ff8f67;
}

.recommendation-image {
    width: 500px;
    height: 100%;
}

.recommendation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* RESPONSIVE */

@media screen and (max-width: 600px) {
    div.etapes-recipe h2,
    div.etapes-recipe p {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media screen and (max-width: 700px) {
    div.hero-section-content h1 {
        font-size: 4rem;
    }

    div.hero-section-content h2 {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 750px) {
    .recommendation-content h1 {
        font-size: 0.8rem;
    }

    .recommendation-content h2 {
        font-size: 3rem;
    }

    .recommendation-content p {
        font-size: 1.6rem;
        display: flex;
        flex-direction: column;
    }

    .recommendation-content p i {
        display: flex;
        align-items: center;
        font-weight: normal;
        gap: 0;
    }

    span.point-separator {
        display: none;
    }

    .btn-see-recipe {
        background-color: #FF6F3C;
        color: white;
        padding: 0.6rem 1.5rem;
        border-radius: 2rem;
        text-decoration: none;
        font-weight: 600;
        transition: 0.3s ease;
    }

    .random-recommendation-full {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 1037px) {
    .recommendation-content p i {
        display: flex;
        align-items: center;
        font-weight: 200;
        gap: 0;
    }

    span.point-separator {
        display: none;
    }
}