/* ==========================================================================
   HOREL — nouvelle fiche produit (templates/catalog/_partials/horel-fiche/fiche.tpl)
   20/11/2026, journal technique, tome 14. Dessin validé en esquisse avec Aurel le 20/11.
   Tout est rangé sous #main.hf : rien ne touche aux autres pages ni à l'ancienne fiche.
   Valeurs : texte 14/21, titres de section 16/24 600, nom 22/32 (20/28 sur mobile),
   traits noirs 0,5 px (comme les photos, demandé par Aurel le 20/11), encre #121212, gris #5c5c5c,
   fond gris #f6f5f3 ; espaces sur 8 px.
   ========================================================================== */

#main.hf {
  --hf-encre: #121212;
  --hf-gris: #5c5c5c;
  --hf-fond: #f6f5f3;
  color: var(--hf-encre);
  font-family: Montserrat, sans-serif;
}

#main.hf *,
#main.hf *::before,
#main.hf *::after {
  box-sizing: border-box;
}

#main.hf a {
  color: inherit;
}

/* Fil d'Ariane : aligné à gauche sur ordinateur, centré sur mobile */
#main.hf .hf-fil {
  margin: 16px 0 0;
}

#main.hf .hf-fil .breadcrumb,
#main.hf .hf-fil .breadcrumb ol {
  width: auto;
  margin: 0;
  padding: 0;
  text-align: left;
  justify-content: flex-start;
}

/* ---------- Haut de fiche : photos + colonne d'achat ---------- */

#main.hf .hf-haut {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 80px;
  align-items: start;
}

/* Le thème met 80 px (50 px sur mobile) au-dessus de .product-container avec
   « #product #wrapper #main .product-container » : même préfixe pour passer devant, sans !important. */
#product #wrapper #main.hf .hf-haut {
  margin: 16px 0 0;
}

#main.hf .hf-cadre {
  position: relative;
  min-width: 0;
}

#main.hf .hf-galerie {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Photos sur leur fond d'origine, bordure noire 0,5 px ; la 1re (et la dernière si le reste est impair) en 4/3 */
#main.hf .hf-photo {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
  border: .5px solid var(--hf-encre);
}

#main.hf .hf-photo:first-child,
#main.hf .hf-photo:last-child:nth-child(even) {
  grid-column: span 2;
  aspect-ratio: 4 / 3;
}

#main.hf .hf-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#main.hf .hf-compteur {
  display: none;
}

#main.hf .hf-cadre .product-flags {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  margin: 0;
}

/* Colonne d'achat : reste à l'écran pendant qu'on fait défiler les photos */
#main.hf .hf-infos {
  position: sticky;
  top: 84px;
}

#main.hf .hf-ligne-marque {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#main.hf .hf-marque {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}

#main.hf .hf-coeur {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: -8px -4px -8px 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--hf-encre);
  cursor: pointer;
}

#main.hf .hf-coeur[hidden] {
  display: none;
}

#main.hf .hf-coeur svg {
  display: block;
  width: 24px;
  height: 24px;
}

#main.hf .hf-coeur svg,
#main.hf .hf-coeur svg * {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

#main.hf .hf-nom {
  margin: 8px 0 0;
  padding: 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
}

#main.hf .hf-ref {
  white-space: nowrap;
}

/* Prix (gabarit natif product-prices.tpl) : 22/32 noir, « TTC » 12 px gris sur la même ligne */
#main.hf .hf-prix {
  margin: 24px 0 0;
}

#main.hf .hf-prix .product-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  margin: 0 !important;
  padding: 0;
}

#main.hf .hf-prix .product-price,
#main.hf .hf-prix .current-price {
  margin: 0;
  padding: 0;
}

#main.hf .hf-prix .current-price-value,
#main.hf .hf-prix .current-price span {
  font-size: 22px !important;
  font-weight: 500 !important;
  line-height: 32px !important;
  color: var(--hf-encre) !important;
}

#main.hf .hf-prix .product-discount {
  margin: 0;
}

#main.hf .hf-prix .regular-price {
  font-size: 14px;
  color: var(--hf-gris);
  text-decoration: line-through;
}

#main.hf .hf-prix .tax-shipping-delivery-label {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--hf-gris);
}

#main.hf .hf-prix .delivery-information {
  display: block;
}

/* Widget Alma : présent mais invisible (la ligne « Payez en plusieurs fois » ouvre sa fenêtre) */
#main.hf .hf-prix #alma-widget-payment-plans-main-container,
#main.hf .hf-prix .alma-pp-container,
#main.hf .hf-alma-cache {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/* Formulaire d'achat (gabarits natifs) */
#main.hf .hf-achat {
  margin: 0;
}

#main.hf .hf-achat form {
  margin: 0;
}

/* Coloris (module des autres coloris) */
#main.hf .othercolors-default {
  margin: 24px 0 0 !important;
}

#main.hf .othercolors-default > .h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  text-transform: none;
  letter-spacing: 0;
}

#main.hf .othercolors-default__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
}

#main.hf .othercolors-default__item {
  width: 72px;
  height: 72px;
  margin: 0;
  padding: 0;
  background: #fff;
  border: .5px solid var(--hf-encre);
}

#main.hf .othercolors-default__current {
  border: 1.5px solid var(--hf-encre);
}

#main.hf .othercolors-default__item a {
  display: block;
  width: 100%;
  height: 100%;
}

#main.hf .othercolors-default__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Déclinaisons : libellé + menu sur mesure (le menu PrestaShop reste caché derrière) */
#main.hf .product-variants {
  display: block !important;
  margin: 24px 0 0;
  padding: 0;
}

#main.hf .product-variants:empty {
  display: none !important;
}

#main.hf .product-variants-item {
  display: block;
  width: 100%;
  margin: 0;
  float: none;
}

#main.hf .product-variants-item + .product-variants-item {
  margin-top: 16px;
}

#main.hf .product-variants .control-label {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  text-align: inherit;
}

#main.hf .product-variants select {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 48px;
  margin: 0;
  padding: 0 40px 0 16px;
  border: 1px solid var(--hf-encre);
  border-radius: 0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23121212' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px;
  font: 400 14px/21px Montserrat, sans-serif;
  color: var(--hf-encre);
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  cursor: pointer;
}

#main.hf select.hf-menu-natif {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
}

#main.hf .hf-menu {
  position: relative;
}

#main.hf .hf-menu-champ {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 40px 0 16px;
  border: 1px solid var(--hf-encre);
  border-radius: 0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23121212' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px;
  font: 400 14px/21px Montserrat, sans-serif;
  color: var(--hf-encre);
  text-align: left;
  cursor: pointer;
}

#main.hf .hf-menu.hf-ouvert .hf-menu-champ {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 6.5l5-5 5 5' fill='none' stroke='%23121212' stroke-width='1.5'/%3E%3C/svg%3E");
}

#main.hf .hf-menu span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#main.hf .hf-menu em {
  font-style: normal;
  color: var(--hf-gris);
  white-space: nowrap;
}

#main.hf .hf-menu-liste {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 20;
  max-height: 288px;
  margin: -1px 0 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  background: #fff;
  border: 1px solid var(--hf-encre);
}

#main.hf .hf-menu-liste li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin: 0;
  padding: 12px 16px;
  border-top: .5px solid var(--hf-encre);
  font-size: 14px;
  line-height: 21px;
  text-align: left;
  cursor: pointer;
}

#main.hf .hf-menu-liste li:first-child {
  border-top: 0;
}

#main.hf .hf-menu-liste li:hover,
#main.hf .hf-menu-liste li:focus {
  background: var(--hf-fond);
  outline: 0;
}

#main.hf .hf-menu-liste li[aria-selected="true"] span {
  font-weight: 600;
}

/* Disponibilité : point vert, rouge si indisponible */
#main.hf .hf-dispo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: var(--hf-encre);
  text-align: left;
}

#main.hf .hf-dispo:empty {
  display: none;
}

#main.hf .hf-dispo::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22780d;
}

#main.hf .hf-dispo.product-unavailable::before {
  background: #b3261e;
}

/* Bouton « Ajouter au panier » (gabarit natif) : 56 px, noir, sans pictogramme */
#main.hf .product-add-to-cart {
  margin: 16px 0 0;
  padding: 0;
}

#main.hf .product-add-to-cart .product-quantity,
#main.hf .product-add-to-cart .add {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

#main.hf .product-add-to-cart .add-to-cart {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 56px !important;
  margin: 0 !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--hf-encre) !important;
  color: #fff !important;
  font: 500 14px/21px Montserrat, sans-serif !important;
  letter-spacing: .04em;
  text-transform: none !important;
  cursor: pointer;
}

#main.hf .product-add-to-cart .add-to-cart:hover {
  background: #000 !important;
}

#main.hf .product-add-to-cart .add-to-cart[disabled] {
  opacity: .4;
  cursor: not-allowed;
}

#main.hf .product-add-to-cart .add-to-cart .shopping-cart {
  display: none !important;
}

#main.hf .product-minimal-quantity {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--hf-gris);
}

/* Ligne Alma : cadre noir, fond blanc, logo Alma orange */
#main.hf .hf-paiement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 8px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--hf-encre);
  border-radius: 0;
  background: #fff;
  color: var(--hf-encre);
  font: 400 14px/21px Montserrat, sans-serif;
  text-align: center;
  cursor: pointer;
}

#main.hf .hf-paiement[hidden] {
  display: none;
}

#main.hf .hf-paiement:hover .hf-paiement-texte {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#main.hf .hf-paiement-logo {
  display: flex;
  align-items: center;
}

#main.hf .hf-paiement-logo svg {
  display: block;
  width: 42px;
  height: auto;
}

#main.hf .hf-paiement-logo svg path {
  fill: #fa5022 !important;
}

#main.hf .hf-fleche {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* Réassurance : 4 pictos au trait en 2 × 2, puis le bandeau d'avis sur toute la largeur */
#main.hf .hf-atouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

#main.hf .hf-atouts li {
  margin: 0;
  padding: 0;
}

#main.hf .hf-atouts a {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  line-height: 21px;
  text-align: left;
  text-decoration: none;
}

#main.hf .hf-atouts a:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#main.hf .hf-atouts a svg {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}

#main.hf .hf-atouts a svg,
#main.hf .hf-atouts a svg * {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#main.hf .hf-avis {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px !important;
  background: var(--hf-fond);
  font-size: 14px;
  line-height: 21px;
}

#main.hf .hf-etoiles {
  display: flex;
  gap: 2px;
}

#main.hf .hf-etoiles svg {
  display: block;
  width: 14px;
  height: 14px;
}

#main.hf .hf-etoiles svg,
#main.hf .hf-etoiles svg * {
  fill: var(--hf-encre) !important;
  stroke: none !important;
}

#main.hf .hf-avis strong {
  font-weight: 600;
}

#main.hf .hf-avis span:last-child {
  color: var(--hf-gris);
}

/* ---------- L'essentiel : 4 cases sous les photos (validé le 20/11, d'après teddybaldassarre.com) ----------
   Diamètre, Mouvement, Verre, Garantie, écrits par fiche.tpl depuis les caractéristiques.
   Fond blanc, cadre noir 0,5 px comme les photos ; valeur 36 px, libellé 11 px capitales.
   Elles remplacent le trait gris qui séparait le haut de la fiche des textes. */

#main.hf .hf-essentiel {
  margin: 32px 0 0;
}

#main.hf .hf-phares {
  display: grid;
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#main.hf .hf-phare {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-height: 144px;
  margin: 0;
  padding: 24px;
  background: #fff;
  border: .5px solid var(--hf-encre);
}

/* 36 px sur grand écran ; descend avec la largeur pour que le mot le plus long du catalogue
   (« Automatique » : 247 px en 36 px) tienne dans une case jusqu'à 992 px d'écran. */
#main.hf .hf-phare-valeur {
  margin: 0;
  font-size: clamp(24px, calc(3.5vw - 10px), 36px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--hf-encre);
}

#main.hf .hf-phare-nom {
  margin: 0;
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--hf-encre);
}

/* ---------- En détail : texte à gauche, caractéristiques à droite ---------- */

#main.hf .hf-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 80px;
  align-items: start;
  margin: 32px 0 0;
  padding: 0;
}

#main.hf .hf-texte {
  max-width: 680px;
}

#main.hf .hf-bloc > summary {
  list-style: none;
  cursor: default;
  pointer-events: none;
}

#main.hf .hf-bloc > summary::-webkit-details-marker {
  display: none;
}

#main.hf .hf-bloc > summary::marker {
  content: "";
}

#main.hf .hf-details h2,
#main.hf .hf-contact h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
}

#main.hf .hf-texte .hf-bloc + .hf-bloc {
  margin: 48px 0 0;
}

#main.hf .hf-corps {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 21px;
  text-align: left;
}

#main.hf .hf-corps p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 21px;
}

#main.hf .hf-corps ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#main.hf .hf-corps strong {
  font-weight: 600;
}

#main.hf .hf-droite {
  position: sticky;
  top: 156px;
}

#main.hf .hf-table {
  width: 100%;
  margin: 16px 0 0;
  border-collapse: collapse;
  border-top: .5px solid var(--hf-encre);
}

#main.hf .hf-table th,
#main.hf .hf-table td {
  padding: 8px 0;
  border-bottom: .5px solid var(--hf-encre);
  font-size: 14px;
  line-height: 21px;
  text-align: left;
  vertical-align: top;
}

#main.hf .hf-table th {
  width: 45%;
  padding-right: 16px;
  font-weight: 400;
  color: var(--hf-gris);
}

#main.hf .hf-table td {
  font-weight: 500;
}

/* ---------- Bloc d'appel (même dessin que les pages d'aide) ---------- */

#main.hf .hf-contact {
  margin: 96px 0 0;
}

#main.hf .hf-contact-entete {
  margin: 0 0 20px;
  padding: 0 0 10px;
  border-bottom: .5px solid var(--hf-encre);
}

#main.hf .hf-contact-entete p {
  margin: 0;
  font-size: 14px;
  line-height: 21px;
  color: var(--horel-muted, #767676);
  text-align: left;
}

#main.hf .hf-contact-entete strong {
  font-weight: 600;
  color: var(--hf-encre);
}

#main.hf .hf-contact-grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

#main.hf .hf-contact-carte {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 140px;
  margin: 0;
  padding: 20px;
  background: #fff;
  color: var(--hf-encre);
  border: .5px solid var(--hf-encre);
  border-radius: 0;
  text-align: center;
  text-decoration: none;
}

#main.hf .hf-contact-carte:hover,
#main.hf .hf-contact-carte:focus-visible {
  border-color: var(--hf-encre);
}

#main.hf .hf-contact-carte svg {
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

#main.hf .hf-contact-carte svg,
#main.hf .hf-contact-carte svg * {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#main.hf .hf-contact-carte span {
  display: block;
  margin: 0;
  font-size: 14px;
  line-height: 21px;
}

#main.hf .hf-contact-titre,
#main.hf .hf-contact-action {
  font-weight: 600;
}

#main.hf .hf-contact-detail {
  color: var(--horel-muted, #767676);
  overflow-wrap: anywhere;
}

/* ---------- Dans la même famille (module HOREL Accueil 1.4.0, point d'accroche displayHorelFamille) ----------
   Le carrousel de produits de l'accueil (rail à glisser, flèches rondes au survol, barre d'avancement),
   validé dans l'esquisse du 20/11 : titre 16/24 600 comme les autres titres de la fiche, cartes réduites
   (marque 14/600, nom 14, caractéristiques 12, prix 14). Repris ici plutôt que de charger accueil.css
   (19 Ko) sur la fiche. 96 px sous le bloc d'appel, 96 px jusqu'au trait du pied de page (48 / 48 sur mobile).
   Traits noirs 0,5 px comme le reste de la fiche ; la barre d'avancement garde son fond gris
   (sinon le curseur noir ne se verrait plus). */

#main.hf .hf-famille {
  margin: 96px 0;
}

/* Le pied de page garde 47 px de blanc au-dessus de son trait ; sous le carrousel, la marge ci-dessus le remplace. */
body#product:has(#main.hf .hf-famille) .horel-pied {
  padding-top: 0;
}

#main.hf .hf-famille-entete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding: 0 0 8px;
  border-bottom: .5px solid var(--hf-encre);
}

#main.hf .hf-famille-titre {
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  color: var(--hf-encre);
}

#main.hf .hf-famille-tout {
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--hf-encre);
  /* !important : le thème retire le soulignement de tous les liens (a { text-decoration: none !important }). */
  text-decoration: underline !important;
  text-decoration-thickness: .5px !important;
  text-underline-offset: 4px;
}

#main.hf .hf-famille-carrousel {
  position: relative;
}

#main.hf .hf-famille-rail {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

#main.hf .hf-famille-rail::-webkit-scrollbar {
  display: none;
}

#main.hf .hf-famille-rail.is-glisse {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

#main.hf .hf-famille-rail > * {
  flex: 0 0 calc((100% - 90px) / 4);
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
}

@media (hover: hover) and (pointer: fine) {
  #main.hf .hf-famille-rail {
    cursor: grab;
  }

  #main.hf .hf-famille-rail.is-saisi {
    cursor: grabbing;
    user-select: none;
  }

  #main.hf .hf-famille-rail.is-saisi * {
    pointer-events: none;
  }

  #main.hf .hf-famille-rail img,
  #main.hf .hf-famille-rail a {
    -webkit-user-drag: none;
  }
}

/* Cartes réduites ici seulement (sur les pages catégories : 18 / 16 / 16 / 16) */
#main.hf .hf-famille .product-brandname {
  font-size: 14px;
  line-height: 21px;
  font-weight: 600;
}

#main.hf .hf-famille .product-title,
#main.hf .hf-famille .product-title a {
  font-size: 14px;
  line-height: 21px;
}

#main.hf .hf-famille .product-details,
#main.hf .hf-famille .product-details .features,
#main.hf .hf-famille .product-specs {
  font-size: 12px;
  line-height: 18px;
}

#main.hf .hf-famille .price {
  font-size: 14px;
  line-height: 21px;
}

/* Barre d'avancement : 2 px, zone cliquable plus haute ; c'est elle qui ferme le bloc. */
#main.hf .hf-famille-avance {
  display: flex;
  align-items: center;
  height: 2px;
  margin: 16px 0 0;
}

#main.hf .hf-famille-avance.is-inutile {
  visibility: hidden;
}

#main.hf .hf-famille-barre {
  position: relative;
  flex: 1 1 auto;
  height: 2px;
  background: #ececec;
  cursor: pointer;
  touch-action: none;
}

#main.hf .hf-famille-barre::after {
  content: "";
  position: absolute;
  inset: -11px 0;
}

#main.hf .hf-famille-curseur {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--hf-encre);
  will-change: transform;
}

/* Flèches rondes : 40 px, à mi-hauteur de la photo (--hf-fleche-y, calculé par horel-fiche.js),
   à 16 px des bords ; ordinateur seulement, au survol du carrousel ou au clavier. */
#main.hf .hf-famille-fleche {
  position: absolute;
  z-index: 3;
  top: var(--hf-fleche-y, 50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 18, 18, .6);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s, background-color .2s;
}

#main.hf .hf-famille-fleche--prec {
  left: 16px;
}

#main.hf .hf-famille-fleche--suiv {
  right: 16px;
}

@media (hover: hover) and (pointer: fine) {
  #main.hf .hf-famille-fleche {
    display: flex;
  }

  #main.hf .hf-famille-carrousel:hover .hf-famille-fleche:not([disabled]),
  #main.hf .hf-famille-fleche:not([disabled]):focus-visible {
    opacity: 1;
    visibility: visible;
  }

  #main.hf .hf-famille-fleche:hover,
  #main.hf .hf-famille-fleche:focus-visible {
    background: rgba(18, 18, 18, .85);
  }
}

#main.hf .hf-famille-fleche svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

/* ---------- Barre d'achat qui suit le défilement ---------- */

#main.hf .hf-barre {
  position: fixed;
  top: 60px;
  right: 0;
  left: 0;
  z-index: 50;
  background: #fff;
  border-bottom: .5px solid var(--hf-encre);
  transform: translateY(calc(-100% - 61px));
  transition: transform .25s;
}

#main.hf .hf-barre.hf-visible {
  transform: none;
}

#main.hf .hf-barre-dedans {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

#main.hf .hf-barre-nom {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#main.hf .hf-barre-prix {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

#main.hf .hf-barre-bouton {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 48px;
  margin: 0;
  padding: 0 24px;
  border: 0;
  border-radius: 0;
  background: var(--hf-encre);
  color: #fff;
  font: 500 14px/21px Montserrat, sans-serif;
  letter-spacing: .04em;
  cursor: pointer;
}

/* ---------- Panneau latéral des pictos (mêmes mesures que le panneau « Filtrer ») ---------- */

#main.hf .hf-tiroir {
  position: fixed;
  inset: 0;
  z-index: 1100;
}

#main.hf .hf-tiroir[hidden] {
  display: none;
}

#main.hf .hf-tiroir-voile {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, .3);
  opacity: 0;
  transition: opacity .3s;
}

#main.hf .hf-tiroir-panneau {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 100%;
  padding: 0 24px 24px;
  overflow: hidden auto;
  overscroll-behavior: contain;
  background: #fff;
  border-left: 1px solid var(--hf-encre);
  text-align: left;
  transform: translateX(100%);
  transition: transform .3s;
}

#main.hf .hf-tiroir.hf-ouvert .hf-tiroir-voile {
  opacity: 1;
}

#main.hf .hf-tiroir.hf-ouvert .hf-tiroir-panneau {
  transform: none;
}

#main.hf .hf-tiroir-entete {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 60px;
  margin: 0 -24px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid var(--hf-encre);
}

#main.hf .hf-tiroir h2 {
  margin: 0;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 1.5px;
  text-align: left;
  text-transform: uppercase;
}

#main.hf .hf-tiroir-fermer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0 -16px 0 auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--hf-encre);
  cursor: pointer;
}

#main.hf .hf-tiroir-fermer:focus:not(:focus-visible) {
  outline: 0;
}

#main.hf .hf-tiroir-fermer svg {
  display: block;
  width: 14px;
  height: 14px;
}

#main.hf .hf-tiroir-fermer svg * {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.5;
}

#main.hf .hf-tiroir-corps {
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 21px;
}

#main.hf .hf-tiroir-corps p {
  margin: 0 0 8px;
}

#main.hf .hf-tiroir a {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

#main.hf .hf-tiroir-lien {
  display: inline-block;
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 21px;
}

html.hf-tiroir-ouvert {
  overflow: hidden;
}

html.hf-tiroir-ouvert body {
  padding-right: var(--hf-barre-defilement, 0);
}

/* ---------- Mobile : tout centré, photos à faire glisser, barre d'achat en bas ---------- */

@media (max-width: 767px) {
  #main.hf .hf-fil {
    margin: 8px 0;
  }

  #main.hf .hf-fil .breadcrumb,
  #main.hf .hf-fil .breadcrumb ol {
    justify-content: center;
    text-align: center;
  }

  #main.hf .hf-haut {
    display: block;
  }

  #product #wrapper #main.hf .hf-haut {
    margin: 0;
  }

  #main.hf .hf-galerie {
    display: flex;
    gap: 0;
    margin: 0 -25px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  #main.hf .hf-galerie::-webkit-scrollbar {
    display: none;
  }

  #main.hf .hf-photo,
  #main.hf .hf-photo:first-child,
  #main.hf .hf-photo:last-child:nth-child(even) {
    flex: 0 0 100%;
    aspect-ratio: 1 / 1;
    border: 0;
    scroll-snap-align: start;
  }

  #main.hf .hf-compteur {
    position: absolute;
    right: -9px;
    bottom: 16px;
    display: block;
    padding: 0 8px;
    background: #fff;
    font-size: 12px;
    line-height: 24px;
  }

  #main.hf .hf-infos {
    position: static;
    padding: 24px 0 0;
    text-align: center;
  }

  #main.hf .hf-ligne-marque {
    justify-content: center;
  }

  #main.hf .hf-coeur {
    position: absolute;
    top: 50%;
    right: 0;
    margin: -16px -4px 0 0;
  }

  #main.hf .hf-nom {
    font-size: 20px;
    line-height: 28px;
    text-align: center;
  }

  #main.hf .hf-prix .product-prices,
  #main.hf .othercolors-default__grid,
  #main.hf .hf-dispo {
    justify-content: center;
  }

  #main.hf .othercolors-default__item {
    width: 64px;
    height: 64px;
  }

  #main.hf .hf-atouts a {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  #main.hf .hf-essentiel {
    text-align: center;
  }

  #main.hf .hf-phares {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #main.hf .hf-phare {
    align-items: center;
    gap: 8px;
    min-height: 112px;
    padding: 20px 12px;
  }

  /* 18 px au plus ; « Automatique » tient dans une case de 320 à 430 px d'écran */
  #main.hf .hf-phare-valeur {
    font-size: clamp(15px, 4.6vw, 18px);
    line-height: 1.2;
  }

  #main.hf .hf-details {
    display: block;
    margin: 32px 0 0;
    padding: 0;
    border-top: .5px solid var(--hf-encre);
  }

  #main.hf .hf-droite {
    position: static;
  }

  #main.hf .hf-bloc {
    border-bottom: .5px solid var(--hf-encre);
  }

  #main.hf .hf-texte .hf-bloc + .hf-bloc {
    margin: 0;
  }

  #main.hf .hf-bloc > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    pointer-events: auto;
    cursor: pointer;
  }

  #main.hf .hf-bloc > summary::after {
    content: "";
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    background: linear-gradient(#121212, #121212) center / 16px 1px no-repeat, linear-gradient(#121212, #121212) center / 1px 16px no-repeat;
  }

  #main.hf .hf-bloc[open] > summary::after {
    background: linear-gradient(#121212, #121212) center / 16px 1px no-repeat;
  }

  #main.hf .hf-corps,
  #main.hf .hf-table {
    margin: 0 0 16px;
  }

  #main.hf .hf-contact {
    margin: 48px 0 0;
  }

  /* Dans la même famille : titre centré, « Voir tout » dessous ; deux cartes et le bord de la troisième */
  #main.hf .hf-famille {
    margin: 48px 0;
  }

  #main.hf .hf-famille-entete {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  #main.hf .hf-famille-titre {
    text-align: center;
  }

  #main.hf .hf-famille-rail {
    gap: 20px;
    margin: 0 -25px;
    padding: 0 25px;
    scroll-padding: 0 25px;
  }

  #main.hf .hf-famille-rail > * {
    flex-basis: calc((100% + 25px - 40px) / 2.25);
  }

  #main.hf .hf-contact h2,
  #main.hf .hf-contact-entete p {
    text-align: center;
  }

  #main.hf .hf-contact-grille {
    grid-template-columns: 1fr;
  }

  #main.hf .hf-contact-carte {
    min-height: 120px;
  }

  #main.hf .hf-barre {
    top: auto;
    bottom: 0;
    border-top: .5px solid var(--hf-encre);
    border-bottom: 0;
    transform: translateY(calc(100% + 1px));
  }

  #main.hf .hf-barre-dedans {
    height: auto;
    gap: 16px;
    padding-top: 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }

  #main.hf .hf-barre-nom {
    display: none;
  }

  #main.hf .hf-barre-prix {
    flex: 1;
  }

  #main.hf .hf-barre-bouton {
    flex: 0 0 60%;
    width: auto;
  }
}
