/* =========================================
   gamme-secours.css — Gamme secours 栏目页
   ========================================= */

/* =========================================
   #pcat-header — Banner/Hero
   ========================================= */
#pcat-header {
  padding: 0 4.8vw 80px;
}

/* 移动端装饰图（桌面隐藏） */
#pcat-header .elementformobile,
#pcat-header .bgformobile {
  display: none;
}

/* 桌面 banner 容器：全宽背景图 */
#pcat-header .container {
  width: 100%;
  background-color: transparent;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  position: relative;
  aspect-ratio: 1920 / 867;
  height: auto;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 70px;
}

#pcat-header .container h1,
#pcat-header .container .cat-description {
  max-width: 360px;
}

/* 向下箭头（左下角定位） */
#pcat-header .arrow-header {
  position: absolute;
  bottom: 1.5vw;
  left: 1.5vw;
}

/* 移动端返回按钮（桌面隐藏） */
#pcat-header .bt-retour {
  display: none;
}

/* =========================================
   #pcat-all-product — 产品列表
   ========================================= */
#pcat-all-product {
  padding: 0 80px;
  margin-bottom: 80px;
}

#pcat-all-product .container {
  max-width: 1340px;
  width: 100%;
  margin: auto;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

/* 左侧列 — 分类筛选 */
#pcat-all-product .col-left {
  width: 22%;
}

.separator {
  width: 80px;
  height: 3px;
  margin: 20px 0 30px 0;
  background: var(--color-primary);
}

.cat-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.cat-container a {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  cursor: pointer;
  transition: color var(--transition);
}
.cat-container a:hover {
  text-decoration: underline;
}
.cat-container a.active {
  color: var(--color-text);
  font-family: var(--font-medium);
}

/* 右侧列 — 产品网格 */
#pcat-all-product .col-right {
  width: 78%;
  padding-left: 100px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
}

/* 单个产品卡片 */
.single-product {
  width: 50%;
  padding-right: 40px;
  margin-bottom: 70px;
}
.single-product:nth-of-type(even) {
  padding-left: 40px;
  padding-right: 0;
}

.single-product .vignette {
  overflow: hidden;
  display: block;
  background-color: #f5f5f5;
}
.single-product .vignette img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  display: block;
}
.single-product .vignette:hover img {
  transform: scale(1.06);
}

.single-product .meta {
  padding: 10px;
}

.single-product .meta .row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.single-product .meta .row h2 {
  margin: 0 10px 0 0;
}

.single-product .meta .row .format {
  flex-shrink: 0;
}

.single-product .meta .bt-plus {
  margin-left: auto;
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}
.single-product .meta .bt-plus div {
  background: var(--color-primary);
  width: 20px;
  height: 2px;
  position: absolute;
  top: 9px;
  left: 0;
}
.single-product .meta .bt-plus div:first-child {
  transform: rotate(90deg);
}

.single-product .short-desc {
  margin: 12px 0 10px;
  max-width: 340px;
  color: #808080;
  line-height: 1.5;
}

.single-product .picto {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 8px;
}
.single-product .picto img {
  width: 36px;
  height: 36px;
}

/* =========================================
   响应式 — 移动端
   ========================================= */
@media screen and (max-width: 1140px) {
  #pcat-all-product .col-right {
    padding-left: 20px;
  }
}

@media screen and (max-width: 992px) {
  #pcat-header .container {
    aspect-ratio: 1920 / 867;
    height: auto;
    min-height: 0;
  }

  #pcat-all-product {
    padding: 0 4.8vw;
  }
  .single-product {
    width: 50%;
    padding-right: 10px;
  }
  .single-product:nth-of-type(even) {
    padding-left: 10px;
    padding-right: 0;
  }
}

@media screen and (max-width: 768px) {
  #pcat-all-product .container {
    flex-direction: column;
  }
  #pcat-all-product .col-left {
    width: 100%;
    border-bottom: 1px solid #C6C6C6;
    margin-bottom: 40px;
    padding-bottom: 10px;
  }
  .cat-container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 15px;
  }
  #pcat-all-product .col-right {
    width: 100%;
    padding-left: 0;
  }
}

@media screen and (max-width: 600px) {
  #pcat-header {
    display: flex;
    flex-direction: column;
    height: 90vh;
    position: relative;
    margin: 0 4.8vw 80px;
    padding: 0;
    background-color: #EDEDED;
  }

  #pcat-header .container {
    background-image: none !important;
    padding: 70px 40px;
    justify-content: flex-start;
    height: 45%;
    min-height: unset;
  }

  #pcat-header .elementformobile {
    display: block;
    width: 100%;
    height: 5%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  #pcat-header .bgformobile {
    display: block;
    width: 100%;
    height: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  #pcat-header .bt-retour {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 12px;
    font-family: var(--font-base);
    color: var(--color-text);
  }

  #pcat-header .bt-retour .arrow {
    width: 16px;
    height: auto;
  }

  #pcat-header .arrow-header {
    display: none;
  }

  .single-product {
    width: 100%;
    padding-right: 0;
  }
  .single-product:nth-of-type(even) {
    padding-left: 0;
    padding-right: 0;
  }
}


/* =========================================
   #pcat-header — Banner/Hero
   ========================================= */
#pcat-header {
  padding: 0 4.8vw 80px;
}

/* 移动端装饰图（桌面隐藏） */
#pcat-header .elementformobile,
#pcat-header .bgformobile {
  display: none;
}

/* 桌面 banner 容器：全宽背景图 */
#pcat-header .container {
  width: 100%;
  background-color: transparent;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  position: relative;
  aspect-ratio: 1920 / 867;
  height: auto;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 70px;
}

#pcat-header .container h1,
#pcat-header .container .cat-description {
  max-width: 360px;
}

/* 向下箭头（左下角定位） */
#pcat-header .arrow-header {
  position: absolute;
  bottom: 1.5vw;
  left: 1.5vw;
}

/* 移动端返回按钮（桌面隐藏） */
#pcat-header .bt-retour {
  display: none;
}

/* =========================================
   响应式 — 移动端
   ========================================= */
@media screen and (max-width: 600px) {
  #pcat-header {
    display: flex;
    flex-direction: column;
    height: 90vh;
    position: relative;
    margin: 0 4.8vw 80px;
    padding: 0;
    background-color: #EDEDED;
  }

  #pcat-header .container {
    background-image: none !important;
    padding: 70px 40px;
    justify-content: flex-start;
    height: 45%;
  }

  #pcat-header .elementformobile {
    display: block;
    width: 100%;
    height: 5%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  #pcat-header .bgformobile {
    display: block;
    width: 100%;
    height: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  #pcat-header .bt-retour {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 12px;
    font-family: var(--font-base);
    color: var(--color-text);
  }

  #pcat-header .bt-retour .arrow {
    width: 16px;
    height: auto;
  }

  #pcat-header .arrow-header {
    display: none;
  }
}

/* =========================================
   #pcat-decouvrir — 推荐阅读区块
   ========================================= */
#pcat-decouvrir {
  padding: 100px 80px;
  background-color: #EDE6E0;
}

#pcat-decouvrir .container {
  max-width: 1200px;
  width: 100%;
  margin: auto;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
}

#pcat-decouvrir .col-left {
  width: 34%;
}

#pcat-decouvrir .col-right {
  padding-left: 50px;
  width: 66%;
}

#pcat-decouvrir .card {
  height: 100%;
  padding: 90px 50px 110px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#pcat-decouvrir .card h2 {
  max-width: 300px;
}

#pcat-decouvrir .card a {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
  width: 180px;
  height: 55px;
  font-family: var(--font-medium);
  font-size: 11px;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}
#pcat-decouvrir .card a:hover {
  color: #fff;
  background-color: var(--color-primary);
}

/* 移动端图片（桌面端隐藏） */
#pcat-decouvrir .card .mobile-card-img-deco,
#pcat-decouvrir .card .mobile-card-img {
  display: none;
}

@media screen and (max-width: 992px) {
  #pcat-decouvrir .container {
    flex-direction: column;
  }
  #pcat-decouvrir .col-left {
    width: 100%;
    margin-bottom: 50px;
  }
  #pcat-decouvrir .col-right {
    width: 100%;
    padding-left: 0;
  }
}

@media screen and (max-width: 600px) {
  #pcat-all-product {
    padding: 0 20px;
    margin-bottom: 64px;
  }

  #pcat-all-product .col-left {
    margin-bottom: 34px;
    padding-bottom: 18px;
  }

  #pcat-all-product .col-left > p {
    margin-bottom: 14px;
  }

  #pcat-all-product .separator {
    width: 64px;
    height: 2px;
    margin: 0 0 20px;
  }

  #pcat-all-product .cat-container {
    gap: 14px 22px;
  }

  #pcat-all-product .cat-container a {
    margin: 0;
    line-height: 1.3;
  }

  #pcat-all-product .col-right {
    display: block;
  }

  .single-product {
    width: 100%;
    margin-bottom: 58px;
    padding: 0;
  }

  .single-product:nth-of-type(even) {
    padding: 0;
  }

  .single-product .vignette {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible;
    text-align: center;
  }

  .single-product .vignette img {
    width: auto;
    max-width: 100%;
    max-height: 430px;
    margin: 0 auto;
    object-fit: contain;
  }

  .single-product .meta {
    padding: 18px 10px 0;
  }

  .single-product .meta .row {
    align-items: flex-start;
  }

  .single-product .meta .row h2 {
    line-height: 1.25;
  }

  .single-product .meta .row .format {
    line-height: 1.25;
    padding-top: 1px;
  }

  .single-product .short-desc {
    max-width: 340px;
    margin: 14px 0 0;
    line-height: 1.45;
  }

  #pcat-decouvrir {
    padding: 60px 20px;
    overflow: hidden;
  }

  #pcat-decouvrir .col-left .card,
  #pcat-decouvrir .col-right .card {
    background: #F1F5F6;
    background-image: none !important;
    padding: 30px 0 100px 0;
    align-items: center;
    position: relative;
  }
  #pcat-decouvrir .card h2 {
    padding: 0 24px;
    margin: 0;
  }
  #pcat-decouvrir .card .mobile-card-img {
    display: block;
    width: 100%;
  }
  #pcat-decouvrir .card .mobile-card-img-actifs {
    transform: translateX(50px);
    mix-blend-mode: darken;
  }
  #pcat-decouvrir .card .mobile-card-img-deco {
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
  }
}

@media screen and (max-width: 600px) {
  #pcat-header {
    height: auto;
    margin: 0 4.8vw 80px;
    padding: 0;
    overflow: hidden;
    position: relative;
    background-color: #EDEDED;
  }

  #pcat-header .container {
    min-height: unset;
    position: static;
    height: auto;
    padding: 24px 40px 28px !important;
    justify-content: flex-start;
    z-index: 9;
  }

  #pcat-header .elementformobile {
    position: absolute;
    right: 4.8vw;
    top: 0;
    width: 169px;
    height: 211px;
    background-size: contain;
    background-position: center top;
    mix-blend-mode: multiply;
    z-index: 10;
  }

  #pcat-header .bgformobile {
    position: relative;
    top: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 766 / 891;
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 1;
  }

  #pcat-header .bt-retour {
    margin-bottom: 48px;
  }

  #pcat-header .container h1 {
    margin-bottom: 28px;
  }

  #pcat-header .container .cat-description {
    max-width: 350px;
    overflow-wrap: anywhere;
    font-size: 16px;
    line-height: 1.28;
  }

  #pcat-header .arrow-header {
    display: block;
    left: 0;
    right: 0;
    top: auto;
    bottom: 24px;
    width: fit-content;
    margin: auto;
    z-index: 12;
  }

  #pcat-header .arrow-header path {
    fill: #1D1C1B;
  }

  .single-product .vignette {
    background: transparent;
    border: 0;
    box-shadow: none;
  }
}

.single-product .vignette {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
}

.single-product .vignette img {
  transform: scale(1.025);
  transform-origin: center center;
}
