/** Shopify CDN: Minification failed

Line 378:0 Expected "}" to go with "{"

**/
@media screen and (max-width: 749px) {
  .articles-wrapper .article {
    width: 100%;
  }
}

.article {
  display: flex;
  align-items: center;
}

.article.grid__item {
  padding: 0;
}

.grid--peek .article-card {
  box-sizing: border-box;
}

/* ===========================
   FORCE LE FORMAT DE LA CARTE
   =========================== */

/* Le wrapper image garde un ratio propre */
.saltie-blog-card__image-wrapper {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 620px; /* ajuste ici selon ton design */
  overflow: hidden;
}

/* L’image remplit tout l’espace sans bande noire */
.saltie-blog-card__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center;
  display: block;
}

/* Mobile : hauteur un peu réduite */
@media screen and (max-width: 749px) {
  .saltie-blog-card__image-wrapper {
    max-height: 300px; /* tu peux ajuster 280–320 */
  }
}

.article-card__title {
  text-decoration: none;
  word-break: break-word;
}

.article-card__title a:after {
  bottom: 0;
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 1;
}

.article-card__link.link {
  padding: 0;
}

.article-card__link {
  text-underline-offset: 0.3rem;
}

.article-card .card__heading {
  margin-bottom: 0.6rem;
}

.blog-articles .article-card .card__information,
.blog__posts .article-card .card__information {
  padding-left: 2rem;
  padding-right: 2rem;
}

.article-card__info {
  padding-top: 0.4rem;
}

.article-card__footer {
  letter-spacing: 0.1rem;
  font-size: 1.4rem;
}

.article-card__footer:not(:last-child) {
  margin-bottom: 1rem;
}

.article-card__footer:last-child {
  margin-top: auto;
}

.article-card__excerpt {
  width: 100%;
  margin-top: 1.2rem;
}

.article-card__link:not(:only-child) {
  margin-right: 3rem;
}

@media screen and (min-width: 990px) {
  .article-card__link:not(:only-child) {
    margin-right: 4rem;
  }
}

.article-card__image--small .ratio::before {
  padding-bottom: 11rem;
}

.article-card__image--medium .ratio::before {
  padding-bottom: 22rem;
}

.article-card__image--large .ratio::before {
  padding-bottom: 33rem;
}

@media screen and (min-width: 750px) {
  .article-card__image--small .ratio::before {
    padding-bottom: 14.3rem;
  }

  .article-card__image--medium .ratio::before {
    padding-bottom: 21.9rem;
  }

  .article-card__image--large .ratio::before {
    padding-bottom: 27.5rem;
  }
}

@media screen and (min-width: 990px) {
  .article-card__image--small .ratio::before {
    padding-bottom: 17.7rem;
  }

  .article-card__image--medium .ratio::before {
    padding-bottom: 30.7rem;
  }

  .article-card__image--large .ratio::before {
    padding-bottom: 40.7rem;
  }
}

/* check for flexbox gap in older Safari versions */
@supports not (inset: 10px) {
  .articles-wrapper.grid {
    margin: 0 0 5rem 0;
  }

  @media screen and (min-width: 750px) {
    .articles-wrapper.grid {
      margin-bottom: 7rem;
    }
  }
}
/* ===========================
   GRILLE DES CARTES RECETTES
   =========================== */

.saltie-blog-grid {
  display: grid;
  gap: 24px;
}

/* Desktop large : 4 cartes par ligne */
@media screen and (min-width: 1200px) {
  .saltie-blog-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablette : 3 cartes par ligne */
@media screen and (min-width: 750px) and (max-width: 1199px) {
  .saltie-blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile : 2 cartes par ligne */
@media screen and (max-width: 749px) {
  .saltie-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===========================
   CARTE RECETTE (style LIV)
   =========================== */

.saltie-blog-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: transparent;      /* plus de bande noire */
}

/* le wrapper prend toute la hauteur de la carte */
.saltie-blog-card__image-wrapper {
  width: 100%;
  height: 100%;
}

/* l’image remplit le wrapper */
.saltie-blog-card__image-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Image qui remplit la carte */
.saltie-blog-card__image-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* Dégradé sombre en bas pour lire le texte */
.saltie-blog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.0) 55%
  );
  z-index: 1;
  pointer-events: none;
}

/* Contenu (tags + titre) posé sur l'image */
.saltie-blog-card__content {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}



/* === Pastille de variante en haut de la carte === */
/* On cible le premier span dans le contenu de la carte,
   qui correspond à ta pastille (Pistaches grillées, etc.) */
.saltie-blog-card__content span:first-child,
.saltie-blog-card__content .saltie-blog-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;           /* passe à right:14px; si tu veux en haut à droite */
  z-index: 3;

  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
/* Pastille variante en haut à gauche de la carte */
.saltie-blog-card {
  position: relative;
}

.saltie-blog-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;           /* passe à right:12px; left:auto; si tu la veux à droite */
  z-index: 3;

  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}


/* On laisse le titre en bas, comme avant */
.saltie-blog-card__content {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Titre : on s'assure qu'il reste bien collé en bas */
.saltie-blog-card__title {
  margin-top: auto;
}

/* Titre de la recette sur l'image */
.saltie-blog-card__title,
.saltie-blog-card__title a {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

/* Un poil plus gros sur desktop */
@media screen and (min-width: 750px) {
  .saltie-blog-card__title,
  .saltie-blog-card__title a {
    font-size: 19px;
  }
}

/* Effet hover : image un peu zoomée et éclaircie */
.saltie-blog-card:hover .saltie-blog-card__image-wrapper img {
  transform: scale(1.05);
  filter: brightness(1.05);
}
/* === MOBILE : 2 CARTES PAR LIGNE === */
@media screen and (max-width: 749px) {
  .saltie-blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important; /* espace entre les cartes */
    padding: 0 12px; /* un peu d'air sur les côtés */
  }

  /* Hauteur d'image un peu réduite pour mobile */
  .saltie-blog-card__image-wrapper img {
    height: 280px !important;
    object-fit: cover;
  }

  /* Titre lisible mais pas trop grand sur mobile */
  .saltie-blog-card__title {
    font-size: 13px !important;
    line-height: 1.3;
  }


/* ==== Corriger la bande grise sous les cartes recettes ==== */
/* On neutralise le pseudo-élément "ratio" du thème sur nos cartes */

.saltie-blog-card__image-wrapper.ratio::before {
  padding-bottom: 0 !important;
  display: none !important;
}
