/**
 * Article Single Page Styles
 * Styles pour la page d'article individuel
 */

/* ==========================================================================
   HEADER ARTICLE
   Carré avec fond coloré (blanc), titre + description, pas de breadcrumb.
   Fond : image de l'article floutée.
   ========================================================================== */
.article-page{
  padding-top: 170px!important;
}
.article-header {
  position: relative;
  width: 100%;
  min-height: 400px;
  overflow: hidden;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

/* Image de fond floutée */
.article-header__bg {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.article-header__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  z-index: 1;
}

.article-header__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Encadré avec fond coloré (blanc) : titre + description */
.article-header__box {
  background: #fff;
  padding: 48px 56px 56px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  height: 363px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Titre dans la box du header - H2 */
.article-header__title {
  color: #000 !important;
  font-family: Poppins, sans-serif !important;
  font-size: 40px !important;
  font-style: normal !important;
  font-weight: 300 !important;
  line-height: normal !important;
  margin: 0 0 20px 0 !important;
}

/* Description dans la box du header */
.article-header__description {
  color: rgba(0, 0, 0, 0.60) !important;
  text-align: center !important;
  font-family: Inter, sans-serif !important;
  font-size: 16px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 26px !important;
  letter-spacing: -0.32px !important;
  margin: 0 !important;
  max-width: 720px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ==========================================================================
   ARTICLE CONTENT avec MENU LATÉRAL
   ========================================================================== */

.article-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 120px 80px;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

/* Menu latéral : points du sommaire uniquement, sticky au-dessus de la nav */
.article-sidebar {
  flex: 0 0 280px;
  position: sticky;
  top: 220px;
  background: #fff;
  padding-right: 8px;
}

.article-sidebar__menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-sidebar__menu-item {
  margin-bottom: 4px;
}

/* Titre sommaire - élément non actif */
.article-sidebar__menu-link {
  display: block !important;
  color: #555758 !important;
  font-feature-settings: 'liga' off, 'clig' off !important;
  font-family: Poppins, sans-serif !important;
  font-size: 16px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 22.4px !important;
  letter-spacing: 0.16px !important;
  text-decoration: none !important;
  padding: 10px 0 10px 16px !important;
  border-left: 3px solid transparent !important;
  transition: color 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease !important;
}

.article-sidebar__menu-link:hover {
  color: #555758 !important;
}

/* Point actif : texte #E7BD02 + barre verticale (background) #E7BD02 */
.article-sidebar__menu-link.active {
  color: #E7BD02 !important;
  font-feature-settings: 'liga' off, 'clig' off !important;
  font-family: Poppins, sans-serif !important;
  font-size: 16px !important;
  font-style: normal !important;
  font-weight: 600 !important;
  line-height: 22.4px !important;
  letter-spacing: 0.16px !important;
  padding-left: 20px !important;
  border-left-color: transparent !important;
  position: relative !important;
}
.article-sidebar__menu-link.active::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 3px !important;
  background: #E7BD02 !important;
}

/* Contenu de l'article */
.article-main {
  flex: 1;
  background-color: #fff;
  border-radius: 12px;
  padding: 50px 60px;
}

.article-main h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: #64181C;
  margin: 40px 0 20px 0;
  scroll-margin-top: 150px;
}

.article-main h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #555758;
  margin: 30px 0 15px 0;
}

.article-main p {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: #555758;
  margin-bottom: 20px;
}

.article-main img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
}

.article-main ul,
.article-main ol {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #555758;
  margin: 20px 0;
  padding-left: 30px;
}

/* Tags */
.article-tags {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

.article-tags .tag-links {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  color: #555758;
}

.article-tags a {
  display: inline-block;
  padding: 6px 16px;
  background-color: #F5F3F0;
  color: #555758;
  text-decoration: none;
  border-radius: 20px;
  font-size: 13px;
  margin: 5px 5px 5px 0;
  transition: all 0.3s ease;
}

.article-tags a:hover {
  background-color: #F0C800;
  color: #fff;
}

/* ==========================================================================
   SECTION MATÉRIEL CONSEILLÉ
   ========================================================================== */

   *{
    box-sizing: border-box;
    --webkit-tap-highlight-color: transparent;
   }

.materiel-conseille {
  padding: 80px 120px;
  background-color: #fff;
}

/* Page recette : fond 100vw, cartes sans fond, contenu aligné comme le reste de la page */
.article-page--recette .materiel-conseille {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
  padding: 80px 24px !important;
  padding-left: max(24px, calc(50vw - 600px + 24px));
  padding-right: max(24px, calc(50vw - 600px + 24px));
  background-color: #FAF6F2;
}
.article-page--recette .materiel-conseille__slider, .materiel-conseille__header {
  max-width: 1200px;
  margin: 0 auto;
}
.recette-after-materiel{
  padding-top: 64px!important;
  padding-bottom: 0px!important;
}
.article-page--recette .materiel-conseille__header{
  margin-bottom: 40px!important;
}
.article-page--recette .materiel-conseille__item {
  background: transparent;
}
.article-page--recette .materiel-conseille__item:hover {
  background: transparent;
}
.materiel-conseille__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.materiel-conseille__title {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: #555758;
  margin: 0;
}

.materiel-conseille__nav {
  display: flex;
  gap: 12px;
}

.materiel-conseille__nav-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #555758;
  transition: color 0.3s ease;
}

.materiel-conseille__nav-btn:hover {
  background-color: transparent!important;
  color: #000!important;
}

/* Slider */
.materiel-conseille__slider-wrapper {
  overflow: hidden;
  position: relative;
}

.materiel-conseille__slider {
  display: flex;
  gap: 24px;
  overflow-x: scroll;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 20px;
}

.materiel-conseille__slider::-webkit-scrollbar {
  display: none;
}

/* Item produit : fond beige comme sur la maquette */
.materiel-conseille__item {
  flex: 0 0 280px;
  min-width: 280px;
  background: #FAF6F2;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.materiel-conseille__item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.materiel-conseille__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.materiel-conseille__image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  background: #F5F0EB;
  overflow: hidden;
}

.materiel-conseille__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.materiel-conseille__item:hover .materiel-conseille__image {
  transform: scale(1.05);
}

/* Badges gauche : type de branchement (électrique / gaz) dans cercle jaune crème */
.materiel-conseille__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
}

.materiel-conseille__badges .materiel-conseille__badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #F5F0E6;
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.materiel-conseille__badges .materiel-conseille__badge img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Groupe icônes en haut à droite : chaud/froid + favoris — sans rond blanc, icônes seules */
.materiel-conseille__image-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.materiel-conseille__image-actions .materiel-conseille__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
}

.materiel-conseille__image-actions .materiel-conseille__badge img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.materiel-conseille__wishlist {
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.materiel-conseille__wishlist:hover {
  transform: scale(1.1);
  background: transparent!important;
}

.materiel-conseille__wishlist svg {
  width: 22px;
  height: 22px;
  stroke: #64181C;
}

.materiel-conseille__wishlist .materiel-conseille__heart--full {
  display: none;
  fill: #64181C;
  stroke: #64181C;
}

.materiel-conseille__wishlist.is-favorite .materiel-conseille__heart--empty {
  display: none;
}

.materiel-conseille__wishlist.is-favorite .materiel-conseille__heart--full {
  display: block !important;
}

/* Contenu */
.materiel-conseille__content {
  padding: 20px;
}

.materiel-conseille__reference {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  color: #999;
  margin: 0 0 8px 0;
}

.materiel-conseille__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.materiel-conseille__rating-count {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  color: #999;
}

.materiel-conseille__product-title {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #64181C;
  margin: 0;
  line-height: 1.4;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
  @media (max-width: 1275px) {
    .article-header__box{
      height: 263px;
    }
  }
/* Tablet */
@media (max-width: 1024px) {
  .article-header {
    min-height: 320px;
    padding: 32px 20px;
  }

  .article-header__box {
    padding: 36px 40px 44px;
  }

  .article-header__title {
    font-size: 36px !important;
  }

  .article-header__description {
    font-size: 16px !important;
  }

  .article-container {
    padding: 0 60px 60px;
    gap: 40px;
  }

  .article-sidebar {
    flex: 0 0 220px;
  }

  .materiel-conseille {
    padding: 60px 60px;
  }

  .materiel-conseille__item {
    flex: 0 0 240px;
    min-width: 240px;
  }
}
@media (max-width: 991px) {
  .article-header__box{
    height: 200px;
  }
  .article-header__title{
    font-size: 31px!important;
  }
}
/* Mobile */
@media (max-width: 768px) {
  .article-header {
    min-height: 280px;
    padding: 24px 16px;
  }

  .article-header__box {
    padding: 28px 24px 32px;
    height: 150px;
  }

  .article-header__title {
    font-size: 24px !important;
    margin-bottom: 10px!important;
  }

  .article-header__description {
    font-size: 15px !important;
  }

  .article-container {
    flex-direction: column;
    padding: 0 20px 40px;
    gap: 0px;
  }

  .article-sidebar {
    position: static;
    flex: 0 0 auto;
    width: 100%;
  }

  .article-main {
    padding: 30px 20px;
  }

  .article-main h2 {
    font-size: 24px;
  }

  .materiel-conseille {
    padding: 60px 20px;
  }

  .materiel-conseille__title {
    font-size: 24px;
  }

  .materiel-conseille__item {
    flex: 0 0 220px;
    min-width: 220px;
  }
}
@media(max-width: 438px){
  .article-header__title{
    font-size: 21px!important;
  }
}
@media(max-width: 385px){
  .article-header__title{
    font-size: 17px!important;
  }
}
