/* BASE GÉNÉRALE */
body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e3f9ed;
    color: #2e2e2e;
    line-height: 1.6;
    transition: background-color 0.4s ease;
}

/* CONTAINER DE LA RECETTE */
.recipe-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    width: 90%;
    max-width: 1100px;
    margin: 50px auto;
    transition: all 0.3s ease-in-out;
}

/* TITRE DE LA RECETTE */
.recipe-title {
    text-align: center;
    font-size: 2.8em;
    color: white;
    background: linear-gradient(135deg, #66bb6a, #4caf50);
    padding: 25px;
    border-radius: 18px;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.25);
    font-family: 'Georgia', serif;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.recipe-title h1 {
    margin: 0;
}

/* NAVIGATION */
.navigation-bar {
    background-color: #2e2e2e;
    color: white;
    padding: 18px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.navigation-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    margin: 0 10px;
    padding: 10px 22px;
    background-color: transparent;
    border: 2px solid white;
    border-radius: 30px;
    transition: all 0.3s ease;
}
.navigation-links a:hover {
    background-color: white;
    color: #2e2e2e;
}
.navigation-links a:focus {
    outline: 3px solid #4caf50;
    outline-offset: 4px;
    border-radius: 6px;
}

/* IMAGE DE RECETTE */
.recipe-image {
    width: 60%;
    border-radius: 18px;
    margin: 35px auto;
    display: block;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}
.recipe-image:hover {
    transform: scale(1.05);
    cursor: pointer;
}

/* TEMPS DE CUISSON */
.time-info {
    font-size: 1.2em;
    font-weight: 500;
    color: #3a3a3a;
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    background-color: #f1f8f5;
    padding: 15px;
    border-radius: 14px;
}

/* TITRES DE SECTION */
.section-title {
    font-size: 1.8em;
    margin-top: 40px;
    color: #388e3c;
    border-left: 6px solid #a5d6a7;
    padding-left: 15px;
    font-family: 'Georgia', serif;
}

/* TABLEAU DES INGRÉDIENTS */
.ingredients-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: separate;
    border-spacing: 0 12px;
}
.ingredients-table th, .ingredients-table td {
    padding: 14px 16px;
    text-align: left;
    background-color: #f9fdfb;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.ingredients-table th {
    background-color: #d9f0e4;
    font-weight: bold;
    color: #333;
}
.ingredients-table input[type="checkbox"] {
    transform: scale(1.3);
    cursor: pointer;
    accent-color: #4CAF50;
}

/* ÉTAPES */
.steps-list {
    margin-top: 20px;
    padding-left: 0;
    list-style: none;
}
.steps-list li {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding: 14px 20px;
    background-color: #f0fbf6;
    border-left: 5px solid #66bb6a;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease-in-out;
}
.steps-list li:hover {
    transform: scale(1.02);
}
.steps-list li:before {
    content: attr(data-step);
    font-weight: bold;
    margin-right: 10px;
    color: #388e3c;
}

/* ÉTAPE MISE EN ÉVIDENCE (utilisée par JS) */
.highlight-step {
    background-color: #d0f0c0 !important;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
    transform: scale(1.02);
}

/* BOUTON SWITCH */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 34px;
    transition: .4s;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
.switch input:checked + .slider {
    background-color: #4CAF50;
}
.switch input:checked + .slider:before {
    transform: translateX(24px);
}

/* BANDEAU FLOTTANT */
.banner {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #66bb6a, #4CAF50);
    color: white;
    text-align: center;
    padding: 12px 35px;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    font-weight: 500;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* PIED DE PAGE */
.footer {
    margin-top: 60px;
    text-align: center;
    font-size: 1em;
    color: white;
    background-color: #4CAF50;
    padding: 20px;
    border-radius: 12px;
}

/* POP-UP */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
    padding: 30px;
    border-radius: 20px;
    z-index: 1001;
    width: 85%;
    max-width: 480px;
    transition: all 0.3s ease;
}
.popup-header {
    font-size: 1.7em;
    margin-bottom: 15px;
    color: #2e7d32;
}
.popup-body {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 25px;
}
.popup-links a {
    color: #388e3c;
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin: 5px 0;
    transition: color 0.3s ease;
}
.popup-links a:hover {
    color: #2e2e2e;
}
.popup-close {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 10px;
}

/* OVERLAY */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

/* BOUTON "TERMINÉ" */
.mark-complete-container {
    text-align: center;
    margin: 30px auto 0;
}
.mark-complete-btn {
    background-color: #e0f2f1;
    color: #2e7d32;
    border: 2px solid #a5d6a7;
    padding: 12px 26px;
    font-size: 1.05em;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-weight: 500;
    font-family: 'Segoe UI', sans-serif;
}
.mark-complete-btn:hover {
    background-color: #c8e6c9;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.mark-complete-btn.completed {
    background-color: #a5d6a7;
    border-color: #81c784;
    color: #1b5e20;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.06);
}

.reco-swiper {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 10px 0;
  scroll-snap-type: x mandatory;
}
.reco-card {
  min-width: 220px;
  max-width: 260px;
  width: 220px;
  background-color: #e4f6e8;
  border-radius: 12px;
  box-shadow: none;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  border: none;
  margin-bottom: 0;
}
.reco-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}
.reco-title {
  padding: 12px 8px 10px 8px;
  font-size: 1.15em;
  color: #2e7d32;
  font-weight: bold;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reco-card:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(34,80,49,0.10);
}
.reco-card a {
  text-decoration: none;
}
.reco-title {
  text-decoration: none;
}
.reco-card .details {
  font-size: 0.95em;
  color: #388e3c;
  padding-bottom: 10px;
  margin-top: 2px;
}
/* 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;
}
body {
  padding-top: 60px; /* Ajuste si besoin pour éviter que le contenu passe sous le bandeau */
}
/* RESPONSIVE DESIGN */
@media (max-width: 600px) {
    .recipe-container {
        padding: 20px;
        width: 95%;
    }

    .recipe-image {
        width: 100%;
    }

    .time-info {
        flex-direction: column;
        gap: 10px;
        font-size: 1.1em;
    }

    .navigation-links a {
        display: inline-block;
        margin: 8px 4px;
    }
    .recommended-recipes {
  margin: 40px 0;
  padding: 0 20px;
}

.recommended-recipes h2 {
  color: #4CAF50;
  font-size: 1.6em;
  margin-bottom: 20px;
}

.recipe-cards {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.recipe-card {
  flex: 0 0 calc((100% - 60px) / 3); /* 3 visibles avec 20px gap */
  scroll-snap-align: start;
  text-decoration: none;
  color: #333;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.recipe-card:hover {
  transform: scale(1.05);
}

.recipe-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.recipe-card p {
  padding: 10px;
  font-size: 1em;
  text-align: center;
}
.like-container {
  margin: 20px 0;
  text-align: center;
}

#like-btn {
  font-size: 1.2em;
  background-color: #fff;
  border: 2px solid #ff3366;
  color: #ff3366;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

#like-btn.liked {
  background-color: #ff3366;
  color: #fff;
}
.recipe {
    display: block;
    border: 1px solid #ccc;
    padding: 16px;
    margin-bottom: 20px;
    text-decoration: none;
    color: black;
}
.recipe img {
    max-width: 100%;
    height: auto;
}
.details {
    font-size: 0.9em;
    color: #555;
}

}