/* ==========================================================
   PAGE PRODUITS — CARTE E-COMMERCE VALIDÉE — CARTE E-COMMERCE + PANNEAU DÉTAILS COULISSANT
   Le panneau remonte dans la carte sans en modifier la hauteur.
   Styles isolés des cartes produits de la page Promotions.
   ========================================================== */

.produits-cards-grid{
  column-gap:34px;
  row-gap:44px;
  padding-bottom:76px;
}

.produits-cards-grid .promo-product-card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
  border:1px solid #dce8e5;
  border-radius:26px;
  background:#fff;
  box-shadow:0 16px 38px rgba(4,31,45,.10);
  font-family:"Roboto",sans-serif;
  transition:transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.produits-cards-grid .promo-product-card:hover{
  transform:translateY(-5px);
  border-color:rgba(21,154,131,.28);
  box-shadow:0 23px 52px rgba(4,31,45,.15);
}

/* Grande zone produit, séparée de la fiche texte. */
.promo-product-visual{
  position:relative;
  display:grid;
  place-items:center;
  flex:0 0 270px;
  min-height:0;
  padding:24px 26px 18px;
  overflow:hidden;
  background:
    radial-gradient(circle at 50% 62%,rgba(98,190,175,.18),transparent 42%),
    linear-gradient(145deg,#f7f9f9 0%,#eef7f4 100%);
  border-bottom:1px solid #e5eeec;
}

.promo-product-visual::after{
  content:"";
  position:absolute;
  right:-72px;
  bottom:-105px;
  width:235px;
  height:235px;
  border-radius:50%;
  background:rgba(98,190,175,.13);
  pointer-events:none;
}

.promo-product-visual img{
  position:relative;
  z-index:1;
  display:block;
  width:auto;
  height:auto;
  max-width:88%;
  max-height:218px;
  object-fit:contain;
  filter:drop-shadow(0 12px 15px rgba(4,31,45,.12));
  transition:transform .3s ease, filter .3s ease;
}

.promo-product-card:hover .promo-product-visual img{
  transform:scale(1.025);
  filter:drop-shadow(0 16px 19px rgba(4,31,45,.16));
}

/* Informations produit façon catalogue e-commerce. */
.promo-product-copy{
  display:flex;
  flex:0 0 148px;
  flex-direction:column;
  min-width:0;
  padding:20px 24px 10px;
  background:#fff;
}

.promo-product-brand{
  display:block;
  margin-bottom:8px;
  color:#60757b;
  font-size:.86rem;
  font-weight:700;
  line-height:1.2;
}

.promo-product-copy h2{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  margin:0 0 10px;
  color:#0f2f33;
  font-size:1.24rem;
  font-weight:850;
  line-height:1.18;
}

.promo-product-copy p{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:4;
  margin:0;
  color:#586c72;
  font-size:.91rem;
  font-weight:500;
  line-height:1.35;
}

/* ==========================================================
   Ligne 50 / 50 : remise à gauche, ouverture des détails à droite
   ========================================================== */
.promo-product-actions-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:10px;
  margin:0 18px 12px;
}

.promo-product-offer,
.promo-product-details-trigger{
  min-height:84px;
  border-radius:18px;
}

.promo-product-offer{
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid rgba(21,154,131,.20);
  background:linear-gradient(135deg,#e1f7f1 0%,#c7ece2 100%);
}

.promo-product-offer-icon{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border-radius:50%;
  background:linear-gradient(135deg,#087f69,#20b191);
  box-shadow:0 8px 18px rgba(21,154,131,.18);
  color:#fff;
}

.promo-product-offer-icon i{
  font-size:1.3rem;
}

.promo-product-offer-copy{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.promo-product-offer-copy small{
  margin-bottom:3px;
  color:#40565c;
  font-size:.67rem;
  font-weight:750;
  line-height:1.12;
}

.promo-product-offer-copy strong{
  color:#087f69;
  font-size:1.42rem;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
}

.promo-product-details-trigger{
  appearance:none;
  display:grid;
  grid-template-columns:36px minmax(0,1fr) 20px;
  align-items:center;
  gap:8px;
  width:100%;
  padding:10px 11px;
  border:1px solid rgba(4,31,45,.10);
  background:#f8fbfa;
  color:#0f2f33;
  font:inherit;
  text-align:left;
  cursor:pointer;
  transition:background .2s ease,border-color .2s ease,transform .2s ease,box-shadow .2s ease;
}

.promo-product-details-trigger:hover,
.promo-product-details-trigger.is-open{
  border-color:rgba(21,154,131,.28);
  background:#eef8f5;
  box-shadow:0 8px 18px rgba(4,31,45,.06);
}

.promo-product-details-trigger:hover{
  transform:translateY(-1px);
}

.promo-product-details-trigger__icon{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border-radius:50%;
  background:#fff;
  color:#159a83;
  box-shadow:inset 0 0 0 1px rgba(21,154,131,.16);
}

.promo-product-details-trigger__icon i{
  font-size:1.25rem;
}

.promo-product-details-trigger__copy{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.promo-product-details-trigger__copy small{
  margin-bottom:3px;
  color:#71868a;
  font-size:.66rem;
  font-weight:750;
  line-height:1.1;
}

.promo-product-details-trigger__copy strong{
  color:#0f2f33;
  font-size:.79rem;
  font-weight:850;
  line-height:1.13;
}

.promo-product-details-trigger__chevron{
  color:#159a83;
  font-size:1.22rem;
  transition:transform .2s ease;
}

.promo-product-details-trigger.is-open .promo-product-details-trigger__chevron{
  transform:rotate(180deg);
}

/* ==========================================================
   Panneau détails : remonte dans la carte, sans agrandir sa hauteur.
   Il recouvre la zone basse de contenu mais laisse le CTA principal visible.
   ========================================================== */
.promo-product-details{
  position:absolute;
  z-index:12;
  left:18px;
  right:18px;
  bottom:82px;
  max-height:min(285px,calc(100% - 118px));
  overflow:auto;
  border:1px solid rgba(21,154,131,.22);
  border-radius:20px;
  background:
    radial-gradient(circle at 100% 0,rgba(98,190,175,.18),transparent 42%),
    linear-gradient(145deg,rgba(255,255,255,.98) 0%,rgba(237,249,246,.98) 100%);
  box-shadow:0 20px 46px rgba(4,31,45,.18);
  opacity:0;
  transform:translateY(calc(100% + 24px));
  pointer-events:none;
  transition:transform .26s cubic-bezier(.22,.75,.26,1),opacity .2s ease;
}

.promo-product-details[hidden]{
  display:none;
}

.promo-product-details.is-open{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}

.promo-product-details__inner{
  position:relative;
  padding:20px 48px 18px 20px;
}

.promo-product-details__close{
  position:absolute;
  top:12px;
  right:12px;
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  padding:0;
  border:1px solid rgba(21,154,131,.18);
  border-radius:50%;
  background:rgba(255,255,255,.86);
  color:#159a83;
  cursor:pointer;
  box-shadow:0 6px 16px rgba(4,31,45,.07);
  transition:transform .18s ease,background .18s ease;
}

.promo-product-details__close:hover{
  transform:rotate(7deg) scale(1.04);
  background:#fff;
}

.promo-product-details__close i{
  font-size:1.35rem;
}

.promo-product-details__eyebrow{
  display:block;
  margin-bottom:4px;
  color:#159a83;
  font-size:.64rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.promo-product-details__inner > div > strong{
  display:block;
  color:#0f2f33;
  font-size:.94rem;
  line-height:1.25;
}

.promo-product-details__inner p{
  margin:12px 0 10px;
  color:#455d63;
  font-size:.82rem;
  line-height:1.48;
}

.promo-product-details__inner p b{
  color:#0f2f33;
}

.promo-product-details__inner > small{
  display:block;
  color:#789095;
  font-size:.68rem;
  line-height:1.35;
}

.promo-product-card.has-open-details .promo-product-actions-row{
  filter:saturate(.88);
}

.promo-product-btn{
  display:grid;
  grid-template-columns:1fr auto auto;
  align-items:center;
  gap:13px;
  flex:0 0 52px;
  height:52px;
  margin:0 18px 18px;
  padding:0 18px;
  border-radius:14px;
  background:linear-gradient(135deg,#087f69 0%,#20b191 100%);
  color:#fff;
  text-decoration:none;
  box-shadow:0 10px 24px rgba(21,154,131,.20);
  transition:transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.promo-product-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(21,154,131,.27);
  filter:brightness(1.035);
}

.promo-product-btn span{
  justify-self:center;
  padding-left:42px;
  font-size:.92rem;
  font-weight:850;
}

.promo-product-btn i{
  font-size:1.22rem;
}

/* Tablette */
@media screen and (max-width:1100px){
  .produits-cards-grid{
    column-gap:26px;
    row-gap:34px;
  }

  .promo-product-visual{
    flex-basis:250px;
  }

  .promo-product-copy{
    flex-basis:146px;
  }

  .promo-product-visual img{
    max-height:202px;
  }
}

/* Mobile */
@media screen and (max-width:750px){
  .produits-cards-grid{
    row-gap:28px;
  }

  .produits-cards-grid .promo-product-card{
    border-radius:24px;
  }

  .promo-product-visual{
    flex-basis:300px;
    padding:28px 24px 20px;
  }

  .promo-product-visual img{
    max-width:82%;
    max-height:250px;
  }

  .promo-product-copy{
    flex-basis:auto;
    min-height:118px;
    padding:18px 22px 10px;
  }

  .promo-product-copy h2{
    font-size:1.25rem;
  }

  .promo-product-copy p{
    font-size:.93rem;
  }

  .promo-product-actions-row{
    gap:9px;
    margin-inline:16px;
  }

  .promo-product-offer,
  .promo-product-details-trigger{
    min-height:82px;
  }

  .promo-product-details{
    left:16px;
    right:16px;
    bottom:80px;
    max-height:min(300px,calc(100% - 112px));
  }

  .promo-product-details__inner{
    padding:18px 46px 17px 18px;
  }

  .promo-product-btn{
    margin-inline:16px;
  }
}

@media screen and (max-width:420px){
  .promo-product-visual{
    flex-basis:270px;
  }

  .promo-product-visual img{
    max-height:220px;
  }

  .promo-product-actions-row{
    grid-template-columns:1fr 1fr;
  }

  .promo-product-offer{
    grid-template-columns:38px minmax(0,1fr);
    gap:8px;
    padding-inline:9px;
  }

  .promo-product-offer-icon{
    width:38px;
    height:38px;
  }

  .promo-product-offer-copy strong{
    font-size:1.28rem;
  }

  .promo-product-details-trigger{
    grid-template-columns:32px minmax(0,1fr) 16px;
    gap:6px;
    padding-inline:8px;
  }

  .promo-product-details-trigger__icon{
    width:32px;
    height:32px;
  }

  .promo-product-details-trigger__copy strong{
    font-size:.74rem;
  }
}

/* V3.1 — rapproche la ligne Remise / Détails du contenu produit. */

/* ==========================================================
   V2 COMPACTE — PAGE PRODUITS
   Aligne les proportions avec la version compacte validée
   sur les cartes Promotions de l'accueil.
   ========================================================== */
@media screen and (min-width:1101px){
  .produits-cards-grid .promo-product-visual{
    flex-basis:225px;
    padding:20px 24px 14px;
  }

  .produits-cards-grid .promo-product-visual img{
    max-height:182px;
  }

  .produits-cards-grid .promo-product-copy{
    flex-basis:120px;
    padding:16px 22px 7px;
  }

  .produits-cards-grid .promo-product-brand{
    margin-bottom:6px;
  }

  .produits-cards-grid .promo-product-copy h2{
    margin-bottom:7px;
  }

  .produits-cards-grid .promo-product-actions-row{
    margin-bottom:10px;
  }

  .produits-cards-grid .promo-product-offer,
  .produits-cards-grid .promo-product-details-trigger{
    min-height:76px;
  }

  .produits-cards-grid .promo-product-btn{
    flex-basis:48px;
    height:48px;
    margin-bottom:14px;
  }
}

@media screen and (max-width:1100px) and (min-width:751px){
  .produits-cards-grid .promo-product-visual{
    flex-basis:215px;
    padding:20px 22px 14px;
  }

  .produits-cards-grid .promo-product-visual img{
    max-height:174px;
  }

  .produits-cards-grid .promo-product-copy{
    flex-basis:118px;
    padding:16px 21px 7px;
  }

  .produits-cards-grid .promo-product-offer,
  .produits-cards-grid .promo-product-details-trigger{
    min-height:76px;
  }

  .produits-cards-grid .promo-product-btn{
    height:48px;
    flex-basis:48px;
    margin-bottom:14px;
  }
}

@media screen and (max-width:750px){
  .produits-cards-grid .promo-product-visual{
    flex-basis:250px;
    padding:22px 22px 16px;
  }

  .produits-cards-grid .promo-product-visual img{
    max-height:205px;
  }

  .produits-cards-grid .promo-product-copy{
    min-height:100px;
    padding:15px 20px 8px;
  }

  .produits-cards-grid .promo-product-brand{
    margin-bottom:6px;
  }

  .produits-cards-grid .promo-product-copy h2{
    margin-bottom:7px;
  }

  .produits-cards-grid .promo-product-actions-row{
    margin-bottom:9px;
  }

  .produits-cards-grid .promo-product-offer,
  .produits-cards-grid .promo-product-details-trigger{
    min-height:74px;
  }

  .produits-cards-grid .promo-product-btn{
    height:48px;
    flex-basis:48px;
    margin-bottom:14px;
  }
}

@media screen and (max-width:420px){
  .produits-cards-grid .promo-product-visual{
    flex-basis:230px;
  }

  .produits-cards-grid .promo-product-visual img{
    max-height:188px;
  }
}


/* Détails produit structurés — contenus issus du Back-Office. */
.promo-product-details__content{
  display:grid;
  gap:11px;
  margin:12px 0 10px;
}
.promo-product-details__section{
  display:grid;
  gap:4px;
}
.promo-product-details__section>span{
  color:#0f2f33;
  font-size:.72rem;
  font-weight:850;
}
.promo-product-details__section p{
  margin:0;
}
.promo-product-details__section ul{
  display:grid;
  gap:4px;
  margin:0;
  padding:0 0 0 17px;
  color:#455d63;
  font-size:.80rem;
  line-height:1.4;
}
.promo-product-details__section li::marker{color:#159a83}

/* ==========================================================
   CTA GLOBAL — PAGE PRODUITS
   Un seul itinéraire pour toute la grille : évite de répéter
   « J'y vais » sur chaque carte et allège visuellement la page.
   ========================================================== */
.produits-validity-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:34px;
}

.produits-validity-row .produits-validity{
  margin-bottom:0;
}

.produits-global-cta{
  display:inline-grid;
  grid-template-columns:1fr auto auto;
  align-items:center;
  gap:11px;
  min-height:54px;
  padding:0 20px 0 24px;
  border-radius:15px;
  background:linear-gradient(135deg,#087f69 0%,#20b191 100%);
  color:#fff;
  text-decoration:none;
  box-shadow:0 10px 24px rgba(21,154,131,.20);
  font-family:"Roboto",sans-serif;
  transition:transform .22s ease,box-shadow .22s ease,filter .22s ease;
}

.produits-global-cta:hover,
.produits-global-cta:focus-visible{
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(21,154,131,.27);
  filter:brightness(1.035);
}

.produits-global-cta span{
  font-size:.91rem;
  font-weight:850;
  white-space:nowrap;
}

.produits-global-cta i{
  font-size:1.2rem;
}

/* Sans CTA individuel, la ligne Remise / Détails devient la fin visuelle de la carte. */
.produits-cards-grid .promo-product-actions-row{
  margin-bottom:16px;
}

/* Le panneau de détails peut désormais descendre jusqu'au bas de la carte. */
.produits-cards-grid .promo-product-details{
  bottom:16px;
  max-height:min(350px,calc(100% - 32px));
}

@media screen and (max-width:750px){
  .produits-validity-row{
    display:grid;
    grid-template-columns:1fr;
    gap:16px;
    margin-bottom:28px;
  }

  .produits-global-cta{
    width:100%;
    min-height:52px;
    padding-inline:18px;
  }

  .produits-global-cta span{
    justify-self:center;
    padding-left:34px;
  }

  .produits-cards-grid .promo-product-actions-row{
    margin-bottom:16px;
  }

  .produits-cards-grid .promo-product-details{
    bottom:14px;
    max-height:min(330px,calc(100% - 28px));
  }
}
