/* ==========================================================
   PAGE PRODUITS — GRILLE DES PROMOTIONS
   Les cartes conservent exactement le style de l'accueil.
   ========================================================== */

.produits-page .services-page-heading{
  margin-bottom: 28px;
}

.produits-validity{
  display:flex;
  align-items:center;
  gap:16px;
  margin:0 0 42px;
  font-family:"Roboto",sans-serif;
}

.produits-validity > i{
  flex:0 0 auto;
  font-size:2.15rem;
  color:#159a83;
}

.produits-validity strong{
  display:block;
  margin:0 0 5px;
  font-size:1rem;
  font-weight:700;
  color:#041f2d;
}

.produits-validity span{
  display:block;
  font-size:.9rem;
  line-height:1.5;
  color:#60757b;
}

/* 3 cartes par ligne sur ordinateur */
.produits-promos-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:28px;
  width:100%;
  padding-bottom:70px;
}

/* Neutralise uniquement les contraintes de largeur du slider d'accueil. */
.produits-promos-grid > .promo-card{
  width:100%;
  min-width:0;
  max-width:none;
}

/* Tablette : 2 cartes */
@media screen and (max-width:1100px){
  .produits-promos-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px;
  }
}

/* Mobile : 1 carte */
@media screen and (max-width:750px){
  .produits-page .services-page-heading{
    margin-bottom:24px;
  }

  .produits-validity{
    margin-bottom:30px;
  }

  .produits-validity > i{
    font-size:1.9rem;
  }

  .produits-promos-grid{
    grid-template-columns:1fr;
    gap:20px;
    padding-bottom:50px;
  }

  .produits-promos-grid > .promo-card,
  .produits-promos-grid > .promo-v2-card{
    width:100%;
    min-width:0;
    max-width:none;
  }
}

.produits-empty{
  padding:70px 20px 90px;
  text-align:center;
  font-family:"Roboto",sans-serif;
}

.produits-empty i{
  display:block;
  margin-bottom:18px;
  font-size:3rem;
  color:#62beaf;
}

.produits-empty h2{
  margin:0 0 10px;
  font-size:1.7rem;
  color:#041f2d;
}

.produits-empty p{
  margin:0;
  color:#60757b;
}




/* ==========================================================
   PAGE PRODUITS — COMPTEUR + TRI STYLE DÉCATHLON
   ========================================================== */
.produits-page .services-page-heading{
  align-items:flex-end;
}

.produits-heading-tools{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:0;
  margin-left:auto;
  font-family:"Roboto",sans-serif;
}

.produits-heading-tools .services-page-count{
  display:flex;
  align-items:baseline;
  gap:4px;
  flex:0 0 auto;
  margin:0;
  color:#041f2d;
  font-size:1rem;
  font-weight:500;
  white-space:nowrap;
}

.produits-heading-tools .services-page-count strong{
  font-size:1rem;
  font-weight:700;
}

.produits-sort-decathlon{
  display:flex;
  align-items:center;
}

.produits-sort-decathlon__divider{
  display:block;
  width:1px;
  height:30px;
  margin:0 28px;
  background:#dfe4e6;
}

.produits-sort-decathlon__select-wrap{
  position:relative;
  display:flex;
  align-items:center;
  min-width:235px;
  margin:0;
}

.produits-sort-decathlon__select-wrap select{
  width:100%;
  height:32px;
  padding:0 34px 0 0;
  border:0;
  border-radius:0;
  outline:0;
  appearance:none;
  -webkit-appearance:none;
  background:transparent;
  color:#041f2d;
  font-family:"Roboto",sans-serif;
  font-size:1rem;
  font-weight:500;
  line-height:1.2;
  cursor:pointer;
  box-shadow:none;
}

.produits-sort-decathlon__select-wrap select:hover,
.produits-sort-decathlon__select-wrap select:focus{
  border:0;
  box-shadow:none;
}

.produits-sort-decathlon__select-wrap i{
  position:absolute;
  right:0;
  top:50%;
  transform:translateY(-50%);
  color:#041f2d;
  font-size:1.4rem;
  pointer-events:none;
}

.sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

@media screen and (max-width:900px){
  .produits-page .services-page-heading{
    align-items:flex-start;
  }

  .produits-heading-tools{
    align-items:flex-end;
    flex-direction:column;
    gap:12px;
  }

  .produits-sort-decathlon__divider{
    display:none;
  }
}

@media screen and (max-width:750px){
  .produits-page .services-page-heading{
    flex-direction:column;
    gap:18px;
  }

  .produits-heading-tools{
    width:100%;
    align-items:flex-start;
    margin-left:0;
  }

  .produits-sort-decathlon{
    width:100%;
  }

  .produits-sort-decathlon__select-wrap{
    width:100%;
    min-width:0;
  }
}


/* ==========================================================
   CORRECTION ALIGNEMENT — COMPTEUR + TRI
   ========================================================== */
.produits-heading-tools{
  align-items:center;
}

.produits-heading-tools .services-page-count{
  display:flex;
  align-items:center;
  height:32px;
  line-height:32px;
}

.produits-sort-decathlon{
  height:32px;
  align-items:center;
}

.produits-sort-decathlon__divider{
  align-self:center;
}

.produits-sort-decathlon__select-wrap{
  height:32px;
  align-items:center;
}

.produits-sort-decathlon__select-wrap select{
  height:32px;
  line-height:32px;
}


/* ==========================================================
   ALIGNEMENT FINAL — annule le padding-bottom de services.css
   ========================================================== */
.produits-page .produits-heading-tools .services-page-count{
  padding-bottom:0;
}

.produits-page .produits-heading-tools{
  align-items:center;
}

.produits-page .produits-sort-decathlon__select-wrap select{
  padding-top:0;
  padding-bottom:0;
  vertical-align:middle;
}


/* RAPPROCHE LE LIBELLÉ DE LA FLÈCHE */
.produits-page .produits-sort-decathlon__select-wrap{
  min-width:190px;
  width:190px;
}


/* ==========================================================
   TRI — TEXTE PROCHE DE LA FLÈCHE, MENU DÉROULANT PLUS LARGE
   ========================================================== */
.produits-page .produits-sort-decathlon__select-wrap{
  min-width:0;
  width:auto;
}

/* Le select garde une grande zone cliquable/menu,
   mais le texte visible est resserré vers la flèche. */
.produits-page .produits-sort-decathlon__select-wrap select{
  width:245px;
  padding-right:58px;
  text-align:right;
  text-align-last:right;
}

.produits-page .produits-sort-decathlon__select-wrap i{
  right:24px;
}


/* ==========================================================
   TRI V7 — MENU PERSONNALISÉ INSPIRÉ DÉCATHLON
   ========================================================== */
.produits-page .produits-sort-decathlon{
  position:relative;
  display:flex;
  align-items:center;
  height:32px;
  margin-left:28px;
}

.produits-page .produits-sort-decathlon::before{
  content:"";
  display:block;
  width:1px;
  height:30px;
  margin-right:28px;
  background:#dfe4e6;
}

.produits-sort-decathlon__trigger{
  display:flex;
  align-items:center;
  gap:9px;
  padding:0;
  border:0;
  background:transparent;
  color:#041f2d;
  font-family:"Roboto",sans-serif;
  font-size:1rem;
  font-weight:600;
  line-height:32px;
  cursor:pointer;
}

.produits-sort-decathlon__trigger i{
  position:static;
  transform:none;
  font-size:1.35rem;
  transition:transform .2s ease;
}

.produits-sort-decathlon.is-open .produits-sort-decathlon__trigger i{
  transform:rotate(180deg);
}

.produits-sort-menu[hidden]{
  display:none;
}

.produits-sort-menu{
  position:absolute;
  z-index:50;
  top:calc(100% + 16px);
  right:0;
  width:390px;
  padding:24px 26px;
  border:1px solid #dfe3e5;
  border-radius:28px;
  background:#fff;
  box-shadow:0 18px 50px rgba(4,31,45,.08);
}

.produits-sort-menu__option{
  display:flex;
  width:100%;
  min-height:52px;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  padding:0 10px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#041f2d;
  font-family:"Roboto",sans-serif;
  font-size:1rem;
  font-weight:500;
  text-align:left;
  cursor:pointer;
  transition:background .15s ease,color .15s ease;
}

.produits-sort-menu__option + .produits-sort-menu__option{
  margin-top:2px;
}

.produits-sort-menu__option:hover{
  background:#f4f7f7;
}

.produits-sort-menu__option.is-active{
  box-shadow:inset 0 0 0 2px #041f2d;
}

.produits-sort-menu__option i{
  color:#159a83;
  font-size:1.25rem;
}

@media(max-width:750px){
  .produits-page .produits-sort-decathlon{
    margin-left:0;
  }

  .produits-page .produits-sort-decathlon::before{
    display:none;
  }

  .produits-sort-menu{
    right:auto;
    left:0;
    width:min(390px,calc(100vw - 36px));
    padding:18px;
    border-radius:22px;
  }
}


/* TRI V8 — suppression des contours noirs */
.produits-sort-decathlon__trigger,
.produits-sort-decathlon__trigger:hover,
.produits-sort-decathlon__trigger:focus,
.produits-sort-decathlon__trigger:focus-visible {
  border: 0;
  outline: 0;
  box-shadow: none;
}

.produits-sort-menu__option.is-active,
.produits-sort-menu__option.is-active:hover,
.produits-sort-menu__option.is-active:focus,
.produits-sort-menu__option.is-active:focus-visible {
  outline: 0;
  box-shadow: none;
}

/* ==========================================================
   MOBILE — RESPIRATION SOUS LE HEADER
   ========================================================== */
@media (max-width: 700px) {
  .services-page {
    padding-top: 70px;
  }
}

/* ==========================================================
   MOBILE — COMPTEUR PROMOTIONS ALIGNÉ À DROITE
   ========================================================== */
@media (max-width: 750px) {
  .produits-page .produits-heading-tools {
    width: 100%;
    align-items: flex-end;
    margin-left: 0;
  }

  .produits-page .produits-heading-tools .services-page-count {
    align-self: flex-end;
    text-align: right;
  }
}


/* ==========================================================
   V5 — PLUS DE RESPIRATION + CONTRASTE SUR LA PAGE PROMOS
   Ajout ciblé : conserve intégralement le tri personnalisé.
   ========================================================== */

.produits-page .produits-promos-grid{
  column-gap:34px;
  row-gap:42px;
}

.produits-page .produits-promos-grid > .promo-v2-card{
  background:
    linear-gradient(
      128deg,
      #ffffff 0%,
      #ffffff 54%,
      #e1f5ef 54.2%,
      #ccebe3 100%
    );
  box-shadow:0 18px 46px rgba(4,31,45,.13);
}

.produits-page .produits-promos-grid > .promo-v2-card:hover{
  box-shadow:0 24px 58px rgba(4,31,45,.17);
}

@media screen and (max-width:1100px){
  .produits-page .produits-promos-grid{
    column-gap:26px;
    row-gap:34px;
  }
}

@media screen and (max-width:750px){
  .produits-page .produits-promos-grid{
    row-gap:28px;
  }
}

/* ==========================================================
   V6 — RELIEF PRODUITS (DESKTOP UNIQUEMENT)
   Halo discret + produit ~4 % plus présent.
   Aucun changement du tri, des cartes, remises ou boutons.
   ========================================================== */
@media screen and (min-width:751px){
  .produits-page .promo-v2-image{
    position:relative;
    isolation:isolate;
  }

  .produits-page .promo-v2-image::before{
    content:"";
    position:absolute;
    z-index:0;
    left:50%;
    top:52%;
    width:82%;
    height:78%;
    transform:translate(-50%,-50%);
    border-radius:50%;
    background:radial-gradient(
      ellipse at center,
      rgba(98,190,175,.17) 0%,
      rgba(98,190,175,.08) 44%,
      rgba(98,190,175,0) 74%
    );
    pointer-events:none;
  }

  .produits-page .promo-v2-image img,
  .produits-page .promo-v2-vertical .promo-v2-image img,
  .produits-page .promo-v2-horizontal .promo-v2-image img{
    position:relative;
    z-index:1;
    transform:scale(1.16);
    transition:transform .32s ease, filter .32s ease;
  }

  .produits-page .promo-v2-card:hover .promo-v2-image img{
    transform:scale(1.19);
    filter:drop-shadow(0 17px 18px rgba(4,31,45,.16));
  }
}


/* ==========================================================
   V7 — MOBILE : TRI À DROITE + PACKSHOTS UN PEU PLUS PETITS
   Ajustements ciblés uniquement sur la page Promotions.
   ========================================================== */
@media screen and (max-width:750px){
  /* Le compteur reste à droite et le tri vient juste en dessous. */
  .produits-page .produits-heading-tools{
    align-items:flex-end;
    gap:8px;
  }

  .produits-page .produits-sort-decathlon{
    width:auto;
    align-self:flex-end;
    justify-content:flex-end;
    margin-left:0;
  }

  .produits-page .produits-sort-decathlon__trigger{
    justify-content:flex-end;
    text-align:right;
  }

  /* Le menu s'ouvre lui aussi depuis le bord droit. */
  .produits-page .produits-sort-menu{
    left:auto;
    right:0;
  }

  /* Packshots légèrement réduits sur mobile. */
  .produits-page .promo-v2-image img,
  .produits-page .promo-v2-vertical .promo-v2-image img,
  .produits-page .promo-v2-horizontal .promo-v2-image img{
    transform:scale(1.08);
  }
}

/* ==========================================================
   V8.1 — PLUS DE CARACTÈRE, SANS ACCENT DÉCORATIF
   Menthe plus présent + relief packshot.
   ========================================================== */

/* Diagonale légèrement plus affirmée, sans toucher aux zones blanches. */
.produits-page .produits-promos-grid > .promo-v2-card{
  background:
    linear-gradient(
      128deg,
      #ffffff 0%,
      #ffffff 53%,
      #d9f3ec 53.2%,
      #bfe7dd 100%
    );
}

/* Relief permanent très léger sur les packshots. */
.produits-page .promo-v2-image img{
  filter:drop-shadow(0 10px 12px rgba(4,31,45,.10));
}

@media screen and (min-width:751px){
  .produits-page .promo-v2-card:hover .promo-v2-image img{
    filter:drop-shadow(0 16px 18px rgba(4,31,45,.17));
  }
}

@media screen and (max-width:750px){
  .produits-page .promo-v2-image img{
    filter:drop-shadow(0 8px 10px rgba(4,31,45,.08));
  }
}

/* ==========================================================
   V8.2 — DÉTAILS PRODUIT : CROIX FIXE PENDANT LE DÉFILEMENT
   La croix reste dans le panneau et suit son bord supérieur.
   ========================================================== */
html body .produits-page .produits-promos-grid .promo-product-card
.promo-product-details .promo-product-details__inner > .promo-product-details__close{
  position:sticky;
  z-index:4;
  top:12px;
  right:auto;
  margin:-8px 0 -26px auto;
}
