:root {
  --primary: #ffffff;
  --secondary: #f1a208;
  --bg: #121212;
  --text: #ffffff;
}

* {
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

body {
  margin: 0;
  color: var(--text);

 
  animation: bgChange 9s infinite;
}

@keyframes bgChange {
  0%   { background-color: #2a0d07; }
  50%  { background-color: #864e36; }
  100% { background-color: #2a0d07; }
}

/* HEADER */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.534);
   box-shadow: #864e36 0px 5px 100px;
  z-index: 1000;
  border-radius: 12px 12px 12px 12px;
  width: 80%;
  position: fixed;
    left: 8%;
    top: 2%;
    a{
    color: white;
    text-decoration: none;
  };
}

.container-1000 {
  max-width: 10300px;
  margin: auto;
}

.logo {
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
}

nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

/* HERO */
.hero {
  height: 800px;
  background-image: url(images/banner\ bol\ nouille.jpg);
  background-size: cover;
  background-position: center;
  padding: 4rem 2rem;
  position: relative;
  border-radius: 0px 0px 360px 0px;

  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: #864e36 0px 5px 100px;
  margin-bottom: 100px;
  
}

.hero-content {
  color: white;
  left: 50%;
  transform: translateX(-100%);

  
  
}

.margin-top-50 {
  margin-top: 30px;
}

.margin-bottom-50 {
  margin-bottom: 50px;
}

.button {
    background-color: #e63946;
    padding: 10px 20px;
    border-radius: 12px;
    
    cursor: pointer;

   color: white;
   text-decoration: none;
   
  }
.hero h1 {
  font-size: 2.2rem;
  margin-bottom: .5rem;
}

/* MAIN */
main {
  max-width: 1200px;
  margin: auto;
  padding: 1.5rem;
}

input[type="search"] {
  width: 40%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* CARD */
.card {
  background: rgba(255, 255, 255, 0.194);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  transition: transform .25s;
  cursor: pointer;
 box-shadow: #864e36 0px 5px 60px;
  padding: 12px;
  position: relative;
 
  
}

.card:hover {
  transform: translateY(-6px);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 20px 20px 20px 20px;

}

.card-content {
  padding: 1rem;
}

.card h3 {
  margin: .3rem 0;
  color: var(--primary);
}

.tag {
  display: inline-block;
  background: #ffe3c4;
  color: #a85d00;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .75rem;
}

.fav {
  position: absolute;
  top: 12px;
  right: 12px;
  background: white;
  border-radius: 50%;
  border: none;
  font-size: 1.3rem;
  padding: 6px;
  cursor: pointer;
}

/* PUB */
.ad {
  background: #eee;
  text-align: center;
  padding: 1rem;
  margin: 1.5rem;
  border-radius: 12px;
  box-shadow: #864e36 0px 5px 20px;
}

/* FOOTER */
footer {
  text-align: center;
  font-size: .85rem;
  padding: 1rem;
}

.margin-top {
  margin-top: 80px;
}

.w-22 {
  width: -50%;
}


/* IMAGE PAGE RECETTE */
.recipe-image {
  width: 40%;
  max-width: 600px;      /* largeur max */
  height: auto;
  display: block;
  margin: 1.5rem auto;  /* centrée */
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  
}

.recipe-container {
  background: rgba(0, 0, 0, 0.806);
  padding: 2rem;
  border-radius: 24px;
  max-width: 800px;
  margin: auto;
  box-shadow: #e63946 0px 4px 20px;  
 h1, h2, h3, li {
    color: rgb(255, 255, 255);}
}



.button2 {
    background-color: #e63946;
    padding: 8px;
    border-radius: 12px;
    
    cursor: pointer;

   color: white;
   text-decoration: none;

  
   margin-left: 200px;
  }

  .margin-bottom {
    margin-bottom: 250px;
  }

  .margin-top-100 {
    margin-top: 110px;
  }