/* =========================================
   public/front/assets/css/home.css
   (tout le reste après extraction product-card)
   ========================================= */

/* =========================
   FULL-BLEED HERO SLIDER
   ========================= */

/* 100vw même dans un container */
.hero-slider--bleed{
  position: relative;
  left: auto;
  right: auto;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Evite les scroll horizontaux causés par 100vw */
html, body{
  overflow-x: hidden;
}

.hero-slider-section{
  overflow: hidden;
  margin: 0 0 2.5rem;
}

.hero-slider{
  position: relative;
  width: 100%;
  height: clamp(380px, 44vw, 620px);
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 32%),
    linear-gradient(135deg, var(--secondary-color-dark), color-mix(in srgb, var(--secondary-color-dark) 82%, #000 18%));
}

/* track */
.hero-slider-track{
  height: 100%;
  display: flex;
  will-change: transform;
}

/* slide */
.hero-slide{
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide-gradient{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.42) 38%, rgba(0,0,0,.12) 72%, rgba(0,0,0,.04) 100%);
}

.hero-slide-inner{
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.25rem, 3vw, 3.25rem);
  padding: clamp(1.5rem, 4vw, 4rem);
  max-width: min(1360px, calc(100vw - 3rem));
  margin: 0 auto;
}

.hero-slide-content{
  color: #fff;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
}

.hero-slide-kicker{
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 .9rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  font-family: var(--font-family-meta);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12rem;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero-slide-title{
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 4vw, 4.35rem);
  line-height: .98;
  margin: 0;
  max-width: 12ch;
  text-wrap: balance;
}

.hero-slide-subtitle{
  font-family: var(--font-family-meta);
  font-size: clamp(.98rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  margin: 0;
  max-width: 48ch;
  color: rgba(255,255,255,.88);
}

.hero-slide-cta{
  margin-top: .5rem;
  min-height: 48px;
  border-radius: 999px;
  padding: .85rem 2.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08rem;
  background: #fff;
  border-color: #fff;
  color: #111;
  box-shadow: 0 18px 36px rgba(0,0,0,.2);
}

.hero-slide--full .hero-slide-inner{
  justify-content: flex-start;
}

.hero-slide--full .hero-slide-content{
  padding: clamp(1rem, 2vw, 1.75rem) 0;
}

.hero-slide--asset{
  background:
    linear-gradient(90deg,
      #ffffff 0%,
      #ffffff 54%,
      color-mix(in srgb, var(--secondary-color-dark) 92%, #000 8%) 54%,
      color-mix(in srgb, var(--secondary-color-dark) 80%, #111 20%) 100%);
}

.hero-asset-layout{
  display: grid;
  grid-template-columns: minmax(0, 54%) minmax(340px, 46%);
  grid-template-areas: "media content";
  align-items: center;
  justify-content: stretch;
  gap: 0;
  width: 100%;
  height: 100%;
}

.hero-slide--asset .hero-slide-gradient{
  background: none;
}

.hero-asset-content{
  max-width: none;
  grid-area: content;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  align-self: stretch;
  padding: clamp(2rem, 4vw, 4.25rem) clamp(1.5rem, 3vw, 3.5rem);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}

.hero-asset-content .hero-slide-title,
.hero-asset-content .hero-slide-subtitle,
.hero-asset-content .hero-slide-kicker{
  color: #fff;
}

.hero-asset-media{
  grid-area: media;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.95), rgba(255,255,255,.7) 38%, rgba(255,255,255,0) 65%),
    linear-gradient(135deg, #ffffff 0%, color-mix(in srgb, var(--secondary-color-light) 55%, #ffffff 45%) 100%);
}

.hero-asset-media img{
  width: min(640px, 100%);
  max-width: 100%;
  max-height: calc(100% - 2rem);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 38px rgba(0,0,0,.14));
}

.hero-slider-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(17,17,17,.28);
  color: #fff;
  backdrop-filter: blur(12px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}

.hero-slider-arrow:hover{
  background: rgba(17,17,17,.46);
  border-color: rgba(255,255,255,.28);
}

.hero-slider-arrow--prev{
  left: clamp(1rem, 2vw, 1.5rem);
}

.hero-slider-arrow--next{
  right: clamp(1rem, 2vw, 1.5rem);
}

.hero-slider-dots{
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  gap: .55rem;
  padding: .45rem .7rem;
  border-radius: 999px;
  background: rgba(17,17,17,.2);
  backdrop-filter: blur(8px);
}

.hero-slider-dots button{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  transition: width .15s ease, background .15s ease, opacity .15s ease;
  opacity: .9;
}

.hero-slider-dots button.active{
  width: 26px;
  background: #fff;
  opacity: 1;
}

@media (max-width: 991.98px){
  .hero-slider{
    height: clamp(460px, 82vw, 720px);
  }

  .hero-slide-inner{
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    max-width: min(720px, calc(100vw - 1.5rem));
    padding: 1.5rem 1rem 4.25rem;
  }

  .hero-asset-layout{
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .hero-asset-media{
    justify-content: center;
    order: 1;
    min-height: 280px;
  }

  .hero-asset-content{
    order: 2;
    padding: 1.35rem 1rem 4rem;
  }

  .hero-slide-title{
    max-width: 100%;
  }

  .hero-slide--full .hero-slide-gradient{
    background: linear-gradient(180deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.3) 100%);
  }

  .hero-slide--asset .hero-slide-gradient{
    background: none;
  }

  .hero-asset-media img{
    max-height: 260px;
  }

  .hero-slider-arrow{
    display: none;
  }
}

@media (max-width: 575.98px){
  .hero-slider-section{
    margin-bottom: 1.4rem;
  }

  .hero-slider{
    height: 520px;
  }

  .hero-slide-inner{
    padding: 1.1rem .9rem 4rem;
  }

  .hero-slide-kicker{
    min-height: 28px;
    padding: 0 .7rem;
    font-size: .64rem;
    letter-spacing: .08rem;
  }

  .hero-slide-title{
    font-size: 1.7rem;
  }

  .hero-slide-subtitle{
    font-size: .92rem;
    line-height: 1.55;
  }

  .hero-slide-cta{
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-asset-media{
    min-height: 230px;
    padding: .75rem .75rem 0;
  }

  .hero-slider-dots{
    bottom: 14px;
    gap: .45rem;
    padding: .36rem .55rem;
  }

  .hero-slider-dots button{
    width: 8px;
    height: 8px;
  }
}

/* =========================
   FILTERS / LISTING UI
   ========================= */

.filters-panel {
    margin-top: -60px;
    z-index: 2;
    position: relative;
    background: var(--surface-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,.08);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.filters-panel label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: .25rem;
    color: var(--text-muted);
    margin-bottom: .4rem;
    font-weight: 600;
}

.info-strip {
    margin-top: 2rem;
    background: var(--surface-muted);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.info-strip div {
    flex: 1 1 190px;
}

.mode-controls {
    margin: 2rem 0 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
    justify-content: flex-start;
}

.btn-mode {
    border-radius: 4px;
    padding: .45rem 1.2rem;
    border: 1px solid transparent;
    background: transparent;
    font-weight: 600;
    color: var(--text-color);
    transition: background .2s ease, color .2s ease;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

.btn-mode.active {
    background: var(--secondary-color-dark);
    color: var(--surface-color);
    box-shadow: inset 0 0 0 1px var(--secondary-color-dark);
}

.columns-control button {
    border-radius: 999px;
    padding: .35rem .9rem;
    margin-left: .35rem;
}

.mode-controls {
    justify-content: space-between;
    gap: 1rem;
}

.filter-toggler .btn-filter {
    border: 1px solid rgba(0,0,0,.2);
    background: transparent;
    border-radius: 999px;
    padding: .35rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    color: var(--text-color);
}

.filter-toggler .btn-filter i {
    font-size: .85rem;
}

.filter-section {
    margin-bottom: 1rem;
}

.filter-section .section-label {
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .15rem;
    margin-bottom: .35rem;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.filter-options .btn-xs {
    padding: .2rem .6rem;
    font-size: .7rem;
}

.color-options .color-chip {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.12);
    outline: none;
    cursor: pointer;
}

/* sections */


.home-section {
    padding: 3rem 0;
    margin-top: 1.5rem;
}



.see-more-btn {
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-color);
    font-size: .8rem;
    letter-spacing: .05rem;
}

.see-more-btn:hover {
    color: var(--secondary-color-dark);
    background: rgba(0,0,0,.05);
}

/* layout grid home */
.home-section .row.g-3 {
    --bs-gutter-y: 1rem;
    --bs-gutter-x: .25rem;
    margin-bottom: 1.5rem;
}

.home-section .row.g-3 > [class*="col-"] {
    padding-left: .2rem;
    padding-right: .2rem;
}

/* info blocks / pills (hors card) */
.product-info-block {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.info-pill {
    padding: .2rem .7rem;
    border-radius: 999px;
    font-size: .7rem;
    border: 1px solid transparent;
}

.pill-success {
    background: #ecfdf3;
    color: var(--success-color);
    border-color: rgba(22,163,74,.4);
}

.pill-danger {
    background: #fef2f2;
    color: var(--danger-color);
    border-color: rgba(220,38,38,.4);
}

.pill-highlight {
    background: #f9fafb;
    color: var(--text-color);
    border-color: rgba(0,0,0,.1);
}

.info-separator {
    font-size: .8rem;
    color: #aaa;
}

/* titres / description (hors card) */
.current-price {
    font-size: 1.25rem;
    font-weight: 700;
}

.product-name {
    font-size: 1.15rem;
    text-transform: none;
    text-transform: uppercase;
    letter-spacing: .05rem;
}

.product-description {
    font-size: .85rem;
    color: var(--text-muted);
}

/* badges "pill" (hors card) */
.badge-pill {
    border-radius: 999px;
    padding: .35rem .8rem;
    font-size: .75rem;
    border: 1px solid rgba(0,0,0,.15);
}

.badge-stock {
    background: #ffe9e9;
    color: #c32d1f;
}

.badge-new {
    background: #e9ffe6;
    color: #2f8c43;
}

.badge-promo {
    background: #fff4e5;
    color: #a25406;
}

/* empty state */
.home-empty {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.home-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 2rem 0 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--surface-muted);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.home-empty-icon {
    font-size: 1rem;
    color: var(--text-muted);
}

.home-empty-text {
    font-weight: 500;
    letter-spacing: .02rem;
}

.view-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-trigger {
    border: 1px solid rgba(0,0,0,.14);
    background: var(--surface-color);
    border-radius: 999px;
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1;
}

.view-separator {
    width: 1px;
    height: 18px;
    background: rgba(0,0,0,.12);
}

.view-density {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}




/* boutons colonnes (autres) */
.view-btn {
    width: 22px;
    height: 22px;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.view-btn:hover,
.view-btn.active {
    background: var(--secondary-color-dark);
    color: var(--surface-color);
    border-radius: 4px;
}
.mode-toggle {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.mode-item {
    background: var(--surface-muted);
    border: none;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: .06rem;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    transition: all .25s ease;
}

.mode-item:hover {
    background: var(--secondary-color-light);
    color: var(--secondary-color-dark);
}

.mode-item.active {
    background: var(--secondary-color-dark);
    color: var(--surface-color);
}

@media (max-width: 767.98px) {
    #mode-display {
        padding-left: 12px;
        padding-right: 12px;
    }

    .mode-controls {
        margin: 1rem 0 .5rem;
        gap: .55rem;
        align-items: stretch;
    }

    .mode-toggle {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
        margin-bottom: 0;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 2px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .mode-toggle::-webkit-scrollbar {
        display: none;
    }

    .mode-item {
        flex: 0 0 auto;
        padding: 7px 12px;
        font-size: .68rem;
        letter-spacing: .04rem;
        white-space: nowrap;
    }

    .view-controls {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        padding: 8px 10px;
        border: 1px solid rgba(0,0,0,.08);
        border-radius: 14px;
        background: var(--surface-muted);
    }

    .filter-trigger {
        padding: 7px 10px;
        font-size: .72rem;
        background: var(--surface-color);
    }

    .filter-trigger span {
        display: inline-block;
    }

    .view-separator {
        display: none;
    }

    .view-density {
        gap: 4px;
        margin-left: auto;
    }

    .view-density .view-btn:first-child {
        display: none;
    }

    .view-btn {
        width: 26px;
        height: 26px;
        border-radius: 6px;
        background: #fff;
        box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
    }

    .home-empty {
        margin: .75rem 0 0;
        padding: .7rem .85rem;
        gap: 8px;
        font-size: .76rem;
        border-radius: 12px;
    }

    .home-empty-icon {
        font-size: .9rem;
    }
}


/* seo */
.seo-text {
    font-size: .95rem;
    color: #4a4a4a;
    line-height: 1.6;
}

.seo-about {
    border-left: 3px solid #111;
    padding-left: 1rem;
}

.seo-about h3 { font-size: 1rem; }

.seo-about ul {
    margin-top: .25rem;
    gap: .5rem;
}

/* info icons blocks */
.info-strip{display:flex;justify-content:space-between;gap:24px;padding:2rem 0}
.info-item span{font-size:.75rem;letter-spacing:.08rem;text-transform:uppercase}

.info-icons-wrapper{
  position: relative;
  padding: 2.25rem 0;
}

.info-icons-header{margin:0 0 1.1rem}

.info-icons-title{
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: .12rem;
  text-transform: uppercase;
  color: #111;
}

.info-icons-subtitle{
  margin: .35rem 0 0;
  font-size: .9rem;
  color: #6c757d;
}

.info-icons-separator{
  width: min(560px, 75%);
  margin: 1rem auto 1.25rem;
  border-top: 1px dotted #d0d0d0;
}

.info-icons{
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.25rem;
  text-align: center;
  flex-wrap: wrap;
}

.info-icons .info-item{
  text-decoration: none;
  color: #111;
  font-size: .75rem;
  flex: 0 0 auto;
  padding: .25rem .75rem;
  border-radius: 12px;
  transition: background .15s ease, color .15s ease;
}

.info-icons .info-item img{
  height: 34px;
  display:block;
  margin:0 auto 8px;
  opacity:.85
}

.info-icons .info-item:hover{
  color: #000;
  background: rgba(0,0,0,.03);
}

@media (max-width: 575.98px){
  .info-icons-wrapper{padding: 1.75rem 0; margin: 2rem auto 2.75rem;}
  .info-icons{gap: .75rem}
  .info-icons .info-item{flex: 1 1 42%;}
}
