/**
 * Template Recette - Styles
 * Page article de type recette (catégorie recette)
 */

 .article-page.article-page--recette {
  padding-top: 230px!important;
  padding-bottom: 60px;
  background: #fff;
}

.recette-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.recette-breadcrumb {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.recette-breadcrumb a {
  color: #666;
  text-decoration: none;
}

.recette-breadcrumb a:hover {
  color: #64181C;
  text-decoration: underline;
}

.recette-breadcrumb__sep {
  margin: 0 6px;
}

.recette-breadcrumb__current {
  color: #333;
}

/* ==========================================================================
   NOTE + TITRE + META (maquette : étoiles noires, titre proéminent, meta grise)
   ========================================================================== */
.recette-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.recette-star {
  font-size: 18px;
}

.recette-star--full {
  color: #1a1a1a;
}

.recette-star--empty {
  color: #ddd;
}

.recette-rating__count {
  font-size: 14px;
  color: #888;
}

.recette-title {
  color: #575757!important;
  font-feature-settings: 'liga' off, 'clig' off!important;
  font-family: Poppins!important;
  font-size: 48px!important;
  font-style: normal!important;
  font-weight: 300!important;
  line-height: 62.4px!important;
  letter-spacing: 0.48px!important;
  margin-bottom: 10px!important;
}

.recette-meta {
  color: rgba(0, 0, 0, 0.57)!important;
  font-feature-settings: 'liga' off, 'clig' off!important;
  font-family: "Plus Jakarta Sans"!important;
  font-size: 18px!important;
  font-style: normal!important;
  font-weight: 400!important;
  line-height: 25.2px!important;
  letter-spacing: 0.18px!important;
  margin-bottom: 25px!important;
}

/* ==========================================================================
   HERO : IMAGE + BANDEAU (maquette : bandeau juste sous l'image, même largeur, pas de débordement)
   ========================================================================== */
.recette-hero {
  position: relative;
  margin-bottom: 48px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 125px;
}

.recette-hero__image {
  position: relative;
  width: 100%;
  max-width: 100%;
  max-height: 522px;
  aspect-ratio: 16 / 10;
  min-height: 280px;
  background: #eaeaea;
  display: block;
  overflow: hidden;
}

.recette-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.recette-hero__placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: #eaeaea;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recette-hero__placeholder::after {
  content: '';
  width: 80px;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='%23b0b0b0'%3E%3Cpath d='M8 44l12-16 8 8 12-20 12 28H8z'/%3E%3Ccircle cx='48' cy='18' r='6' fill='%23b0b0b0'/%3E%3C/svg%3E") center/80px no-repeat;
}

/* Bandeau immédiatement sous l'image, même largeur, style maquette */
.recette-hero__bar {
  max-width: 100%;
  width: 85%;
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  padding: 18px 28px;
  background: #e6e6e6;
  color: #555555;
  font-size: 14px;
  gap: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%)!important;
}

.recette-hero__item {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding-left: 20px;
  padding-right: 20px;
  border-right: 1px solid #d8d8d8;
  box-sizing: border-box;
  text-align: center;
  color: #818181;
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: "Red Hat Display";
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 0.2px;
}

.recette-hero__item:first-child {
  padding-left: 0;
}

.recette-hero__item:last-child {
  border-right: none;
  padding-right: 0;
}

/* Icônes du bandeau : images (difficulty, number-person, temps, cost) */
.recette-hero__img-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
  vertical-align: middle;
  display: block;
}

.recette-hero__img-icon--cost {
  width: 60px;
  height: 60px;
}

/* Coût : 4 symboles € (1 rempli + 3 clairs) comme en maquette */
.recette-hero__cost-euros {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.recette-hero__cost-euro {
  color: #bbbbbb;
  opacity: 0.7;
}

.recette-hero__cost-euro--filled {
  color: #555555;
  opacity: 1;
}

/* ==========================================================================
   DEUX COLONNES : INSTRUCTIONS | SIDEBAR (maquette : instruction numérotée, bloc ingrédients encadré)
   ========================================================================== */

.recette-columns {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
  margin-bottom: 0px;
}
.article-page--recette .materiel-conseille{
  margin-top: 96px!important;
}
.recette-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 16px 0;
}

.recette-instructions__content {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.recette-instructions__content h2,
.recette-instructions__content h3 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* Instructions : rond (image Ellipse) avant chaque point */
.recette-instructions__content {
  --recette-circle-icon: url("/wp-content/uploads/2026/02/Ellipse-14.png");
}

/* Liste numérotée : cercle image avant chaque li */
.recette-instructions__content ol {
  list-style: none;
  margin: 1.5em 0;
  padding-left: 0;
}

.recette-instructions__content ol li {
  position: relative;
  padding-left: 2.8em;
  margin-bottom: 1.5em;
}

.recette-instructions__content ol li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.6em;
  height: 1.6em;
  background-image: var(--recette-circle-icon);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* Contenu Elementor : trait de séparation entre chaque bloc (widget texte ou image) */
.recette-instructions__content .e-con-inner > .elementor-element + .elementor-element {
  border-top: 1px solid #e5e5e5;
  margin-top: 1.5em;
  padding-top: 1.5em;
}

/* Blocs Elementor : rond dans sa propre colonne, tout le texte indenté (ne passe pas sous le rond) */
.recette-instructions__content .elementor-widget-text-editor {
  position: relative;
  padding-left: 2.8em;
}

/* Rond sur le premier paragraphe de chaque widget : aligné sur la 1re ligne (1., 2., 3.) */
.recette-instructions__content .elementor-widget-text-editor p:first-of-type {
  position: relative;
  padding-left: 0;
}

.recette-instructions__content .elementor-widget-text-editor p:first-of-type::before {
  content: "";
  position: absolute;
  left: -2.8em;
  top: 0.15em;
  width: 1.6em;
  height: 1.6em;
  background-image: var(--recette-circle-icon);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.recette-instructions__content ul {
  margin: 1em 0;
  padding-left: 1.5em;
}

.recette-instructions__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1em 0;
}

/* ==========================================================================
   INGRÉDIENTS (sidebar) – encadré blanc, indicateurs circulaires (maquette)
   ========================================================================== */
.recette-sidebar {
  position: sticky;
  top: 225px;
}

.recette-ingredients__sub {
  font-size: 13px;
  color: #888;
  margin: -8px 0 12px 0;
  text-transform: lowercase;
}

.recette-ingredients__box {
  background: transparent;
  border: none;
  padding: 0;
}

.recette-ingredients__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Carte par ingrédient (style demandé) */
.recette-ingredients__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 20px 25px;
  border-radius: 6px;
  background: #F6F6F6;
  font-size: 15px;
  color: #1a1a1a;
  border: none;
}

/* Indicateurs circulaires : vide = cercle gris, coché = cercle noir + check blanc */
.recette-ingredients__check {
  appearance: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid #ccc;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  margin: 0;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.recette-ingredients__check:hover {
  border-color: #999;
}

.recette-ingredients__check:checked {
  background: #1a1a1a;
  border-color: #1a1a1a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.recette-ingredients__item label {
  cursor: pointer;
  flex: 1;
}

.recette-ingredients__item input:checked + label {
  text-decoration: line-through;
  color: #888;
}

.recette-ingredients__empty {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   AUTRES RECETTES (sidebar)
   ========================================================================== */
.recette-autres {
  margin-top: 32px;
}

.recette-autres__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recette-autres__card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.recette-autres__card:hover {
  border-color: #64181C;
  box-shadow: 0 4px 12px rgba(100, 24, 28, 0.08);
}

.recette-autres__img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.recette-autres__placeholder {
  width: 72px;
  height: 72px;
  background: #e8e8e8;
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
}

.recette-autres__placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='%23b0b0b0'%3E%3Cpath d='M8 44l12-16 8 8 12-20 12 28H8z'/%3E%3Ccircle cx='48' cy='18' r='6' fill='%23b0b0b0'/%3E%3C/svg%3E") center/36px no-repeat;
}

.recette-autres__body {
  min-width: 0;
}

.recette-autres__title {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #1a1a1a;
}

.recette-autres__meta {
  font-size: 13px;
  color: #888;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.recette-autres__meta::before {
  content: '';
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 13c0 2.21 1.79 4 4 4s4-1.79 4-4V5H6v8z'/%3E%3Cpath d='M4 19v2h16v-2'/%3E%3C/svg%3E") center/14px no-repeat;
  opacity: 0.9;
}

.recette-autres__empty {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* ==========================================================================
   BLOC 4 ICÔNES (placeholder – à personnaliser via Elementor)
   ========================================================================== */
.recette-four-icons {
  padding: 48px 0;
  border-top: 1px solid #eee;
}

.recette-four-icons__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.recette-four-icons__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
}

.recette-four-icons__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: #e0e0e0;
}

.recette-four-icons__icon {
  width: 56px;
  height: 56px;
  background: #f0f0f0;
  border-radius: 12px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.recette-four-icons__text {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  line-height: 1.3;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .recette-columns {
    grid-template-columns: 1fr 300px;
    gap: 32px;
  }
  .recette-title{
    font-size: 40px!important;
    line-height: 47px!important;
  }
  .recette-meta{
    font-size: 16px!important;
  }
}
@media (max-width: 845px) {
  .article-page.article-page--recette {
    padding-top: 150px!important;
  }
}
@media (max-width: 768px) {
  .article-page.article-page--recette {
    padding-top: 135px!important;
  }
  .recette-title{
    font-size: 35px!important;
    line-height: 41px!important;
  }
  .recette-title {
    font-size: 26px;
  }

  .recette-hero__bar {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 90%;
  }

  .recette-hero__item {
    border-right: none;
  }

  .recette-columns {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 32px;
  }

  /* Sidebar "disparaît" du flux : Ingrédients et Autres recettes deviennent des enfants directs pour pouvoir les ordonner */
  .recette-sidebar {
    position: static;
    display: contents;
  }

  /* Ordre mobile : 1 Ingrédients, 2 Instruction (recette), 3 Autres recettes */
  .recette-ingredients {
    order: 1;
  }

  .recette-instructions {
    order: 2;
  }

  .recette-autres {
    order: 3;
  }

  .recette-four-icons__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .recette-four-icons__item:nth-child(2)::after,
  .recette-four-icons__item:nth-child(4)::after {
    display: none;
  }

  .recette-four-icons__item:nth-child(odd):not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: #e0e0e0;
  }
  .recette-hero__bar{
    bottom: -90px;
  }
  .recette-hero__item{
    font-size: 17px!important;
  }
}

@media (max-width: 480px) {
  .recette-four-icons__inner {
    grid-template-columns: 1fr;
  }

  .recette-four-icons__item::after {
    display: none !important;
  }
  .recette-title{
    font-size: 30px!important;
    line-height: 36px!important;
  }
}
@media (max-width: 380px) {
  .recette-title{
    font-size: 25px!important;
    line-height: 30px!important;
  }
  .recette-hero__bar{
    padding: 18px 15px!important;
  }
}
@media (max-width: 345px) {
  .recette-hero__item{
    font-size: 15px!important;
  }
  .recette-hero__bar{
    gap: 5px!important;
  }
}

