/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
*/

@import url("../astra/style.css");

/* ===== BLOC : Hero banner optimisé (version corrigée) ===== */
.section-hero-banner {
  position: relative;
  text-align: center;
  background-color: #000; /* fallback */
  min-height: 280px;
  max-height: 480px;
  height: auto;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0; /* on enlève le padding pour éviter trop de hauteur */
}

/* Image en "fond" absolu */
.section-hero-banner .hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  z-index: 0;
}

/* Overlay */
.section-hero-banner .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1;
  border-radius: 8px;
}

/* Contenu texte */
.section-hero-banner .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-hero-banner h1,
.section-hero-banner p {
  color: #ffffff !important;
}

.section-hero-banner h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-hero-banner p {
  font-size: 1.2rem;
}

/* Responsive mobile */
@media (max-width: 768px) {
  .section-hero-banner .hero-content {
    padding: 4rem 1.5rem;
  }

  .section-hero-banner h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .section-hero-banner p {
    font-size: 1rem;
    line-height: 1.5;
  }
}
  
  /* ===== BLOCS CATEGORIES : Senaste artiklar, Tips... ===== */
  
  .promo-articles-section {
    padding: 2rem 1rem;
    background-color: #FEFCFB;
    text-align: center;
  }
  
  .promo-articles-header h2 {
    font-size: 2rem;
    color: #CC9B70;
    margin-bottom: 0.25rem;
    font-weight: 700;
  }
  
  .promo-articles-header .subtitle {
    color: #5a5a5a;
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .promo-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .promo-article-card {
    background: white;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: transform 0.2s ease;
  }
  
  .promo-article-card:hover {
    transform: translateY(-4px);
  }
  
  .promo-article-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    display: block;
  }
  
  .promo-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
  }
  
  .promo-article-image:hover img {
    transform: scale(1.05);
  }
  
  .promo-article-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    gap: 1rem;
  }
  
  .promo-article-content h3 {
    font-size: 1.05rem;
    color: #111;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
  }
  
  .read-more,
  .read-more:hover,
  .read-more:focus,
  .read-more:active,
  .read-more:visited {
    display: inline-block;
    background-color: #00887b;
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 999px;
    text-decoration: none !important;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    align-self: center;
    margin-top: auto;
  }
  
  .read-more:hover {
    background-color: #006e67;
    color: #fff !important;
  }
  
  /* === Bouton "Visa alla artiklar" === */
  .cta-all-wrapper {
    margin-top: 0.5rem;
    text-align: center;
  }
  
  .read-all-tips {
    display: inline-block;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    text-decoration: none !important;
    font-weight: 600;
    margin-top: 2rem;
    transition: all 0.3s ease;
  }
  
  .read-all-tips:hover {
    background-color: #000000;
    color: #ffffff !important;
    text-decoration: none !important;
  }
  
  /* === BLOC: Promo block === */
  .promo-collection-v2 {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    background-color: #F4EBE4;
    padding: 1.5rem;
    border-radius: 12px;
    max-width: 1200px;
    margin: 2rem auto;
    gap: 2rem;
  }
  
  .promo-collection-v2 .promo-text {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #CC9B70;
    text-align: center;
    padding: 1rem;
  }
  
  .promo-collection-v2 .promo-text h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #303938;
    text-align: center;
  }
  
  .promo-collection-v2 .promo-text h3 {
    font-size: 1.4rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: #303938;
    font-weight: 600;
  }
  
  .promo-collection-v2 .promo-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #444;
    max-width: 550px;
  }
  
  .promo-collection-v2 .promo-text .cta {
    display: inline-block;
    background-color: #00887b;
    color: #fff;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: background-color 0.3s ease;
  }
  
  .promo-collection-v2 .promo-text .cta:hover {
    background-color: #006e67;
    color: #fff;
  }
  
  .promo-collection-v2 .promo-image {
    flex: 1 1 40%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .promo-collection-v2 .promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .promo-collection-v2 {
      flex-direction: column-reverse;
      text-align: center;
    }
  
    .promo-collection-v2 .promo-text,
    .promo-collection-v2 .promo-image {
      flex: 1 1 100%;
    }
  
    .promo-collection-v2 .promo-text {
      align-items: center;
      padding-top: 1rem;
    }
  
    .promo-collection-v2 .promo-text p {
      max-width: 100%;
    }
  
    .promo-collection-v2 .promo-image img {
      max-width: 100%;
    }
  }