/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    background-color: #bde2b6; /* Vert émeraude pastel */
    color: #333;
}

/* Header Styles - Fond vert doux */
header {
    background-color: #4CAF50; /* Vert naturel */
    color: white;
    padding: 30px 20px;
    text-align: center;
    border-bottom: 5px solid #81c784;
}

header h1 {
    font-size: 2.8em;
    margin: 0;
    font-family: 'Georgia', serif;
}

header p {
    font-size: 1.5em;
    color: #dcedc8;
    font-weight: bold;
    margin-top: 10px;
}
/* Applique le même fond que ta page (modifie si nécessaire) */
#google_translate_element {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: 220px;
  max-width: 90vw;
  background: #fff;
  z-index: 9999;
  padding: 2px 12px;   /* Hauteur réduite ici */
  box-shadow: 0 2px 8px #ccc;
  border: none;
  border-radius: 12px;
  display: block !important;
  margin: 0;
  text-align: center;
}

/* Navigation Bar - Fond gris foncé */
nav {
    display: flex;
    justify-content: center;
    background-color: #2e2e2e;
    padding: 15px;
}

nav a {
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    font-size: 1.1em;
    border: 2px solid transparent;
    border-radius: 25px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: white;
    color: #333;
    border-color: #333;
}

/* Recipe container layout */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 30px 5%;
}

/* Bouton d'ajout de recette */
.add-recipe-button {
    padding: 12px 25px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.add-recipe-button:hover {
    background-color: white;
    color: #333;
}

/* Cartes de recettes */
.recipe {
    background-color: #e4f6e8; /* Vert très pâle pour un effet naturel */
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.recipe:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.recipe img {
    width: 100%;
    height: auto;
    border-bottom: 2px solid #66bb6a;
}

.recipe h3 {
    color: #388e3c;
    font-size: 1.6em;
    margin: 15px 0 10px;
    font-family: 'Georgia', serif;
}

.recipe p {
    font-size: 1em;
    margin: 0 20px 10px;
    color: #555;
}

.details {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1c1c1c;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 16px;
    z-index: 1000;
}

#cookie-banner a {
    color: #4CAF50;
    text-decoration: none;
}

#cookie-banner button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

#cookie-banner button:hover {
    background-color: white;
    color: #4CAF50;
}

#cookie-banner #reject-cookies {
    background-color: #f44336;
}

#cookie-banner #reject-cookies:hover {
    background-color: white;
    color: #f44336;
}

/* Footer */
footer {
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    text-align: center;
    position: relative;
    bottom: 0;
    margin-top: 40px;
    font-size: 1em;
    border-radius: 10px;
    width: 100%;

}

/* Bandeau "Pas d'annonce disponible" */
#no-announcement-banner {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2e2e2e;
    color: white;
    padding: 15px 25px;
    font-size: 1.1em;
    text-align: center;
    z-index: 999;
    width: 90%;
    border-radius: 8px;
    display: none;
}

/* Bandeau supplémentaire */
.banner {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 12px 35px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    font-weight: 500;
}
