/* ==========================================================================
   BLOOP — Infos cookie (icône ⓘ + bulle) et photo au survol
   Fichier : bloop_inc/bloop_cookie_infos/bloop_cookie_infos.css
   ========================================================================== */

.bloop_module_woo_shop li.bundled_product {
  --bl-ci-zoom: 1.08;        /* zoom de départ de la photo (1 = pas de zoom) */
  --bl-ci-speed: 450ms;      /* durée du fondu + zoom */
  --bl-ci-pos: top center;   /* cadrage : le haut de la photo n'est jamais rogné */
  --bl-ci-shade: rgba(0, 0, 0, 0.35); /* dégradé sombre en bas pour lire le texte blanc */
  --bl-ci-text: #fff;        /* couleur du titre / prix par-dessus la photo */
  --bl-ci-bg: transparent;   /* fond derrière la photo de survol (ex. var(--main-dark)) ; transparent = fond de la card */
  position: relative;
}

/* ============ Photo au survol : couvre TOUTE la card ============ */
.bl-ci-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
  background: var(--bl-ci-bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--bl-ci-speed) ease;
}

/* Photo de survol en PNG transparent : on masque le cookie d'origine derrière */
.bloop_module_woo_shop li.bundled_product .bundled_product_images img {
  transition: opacity var(--bl-ci-speed) ease;
}
.bloop_module_woo_shop li.bl-ci-hover.bl-ci-has-photo .bundled_product_images img,
.bloop_module_woo_shop li.bl-ci-photo-on.bl-ci-has-photo .bundled_product_images img {
  opacity: 0;
}

.bloop_module_woo_shop .bl-ci-photo img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: cover;
  object-position: var(--bl-ci-pos);
  border-radius: 0 !important;
  margin: 0 !important;
  transform: scale(var(--bl-ci-zoom));
  transform-origin: top center; /* le zoom ne rogne jamais le haut */
  transition: transform var(--bl-ci-speed) cubic-bezier(0.22, 1, 0.36, 1);
  animation: none !important; /* pas de "shake" sur la photo de survol */
}

/* Dégradé en bas de la photo : lisibilité du titre / prix en blanc */
.bl-ci-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, var(--bl-ci-shade) 100%);
  pointer-events: none;
}

/* Le texte, les boutons +/- et le badge restent au-dessus de la photo */
.bloop_module_woo_shop li.bundled_product .details,
.bloop_module_woo_shop li.bundled_product .bundled_product_title,
.bloop_module_woo_shop li.bundled_product .bundled_item_cart_details,
.bloop_module_woo_shop li.bundled_product .bundled_item_after_cart_details,
.bloop_module_woo_shop li.bundled_product .stock {
  position: relative;
  z-index: 2;
}
.bloop_module_woo_shop .bundled_product .bundled_product_images::before,
.bloop_module_woo_shop .bundled_product .bundled_product_images::after {
  z-index: 3;
}

/* Photo affichée : survol de l'image (desktop, .bl-ci-hover) ou bouton œil (mobile, .bl-ci-photo-on) */
.bloop_module_woo_shop li.bl-ci-hover .bl-ci-photo,
.bloop_module_woo_shop li.bl-ci-photo-on .bl-ci-photo {
  opacity: 1;
}
.bloop_module_woo_shop li.bl-ci-hover .bl-ci-photo img,
.bloop_module_woo_shop li.bl-ci-photo-on .bl-ci-photo img {
  transform: scale(1);
}

/* Texte en blanc par-dessus la photo */
.bloop_module_woo_shop li.bundled_product .bundled_product_title,
.bloop_module_woo_shop li.bundled_product .bundled_item_cart_details .price,
.bloop_module_woo_shop li.bundled_product .stock {
  transition: color var(--bl-ci-speed) ease;
}
.bloop_module_woo_shop li.bl-ci-hover .bundled_product_title,
.bloop_module_woo_shop li.bl-ci-hover .bundled_product_title *,
.bloop_module_woo_shop li.bl-ci-hover .bundled_item_cart_details .price,
.bloop_module_woo_shop li.bl-ci-hover .bundled_item_cart_details .price *,
.bloop_module_woo_shop li.bl-ci-hover .stock,
.bloop_module_woo_shop li.bl-ci-photo-on .bundled_product_title,
.bloop_module_woo_shop li.bl-ci-photo-on .bundled_product_title *,
.bloop_module_woo_shop li.bl-ci-photo-on .bundled_item_cart_details .price,
.bloop_module_woo_shop li.bl-ci-photo-on .bundled_item_cart_details .price *,
.bloop_module_woo_shop li.bl-ci-photo-on .stock {
  color: var(--bl-ci-text) !important;
}

/* Icônes en blanc par-dessus la photo */
.bloop_module_woo_shop li.bl-ci-hover .bl-ci-wrap .bl-ci-btn,
.bloop_module_woo_shop li.bl-ci-photo-on .bl-ci-wrap .bl-ci-btn {
  color: #fff;
  opacity: 0.85;
}

/* ============ Icône ⓘ ============ */
.bl-ci-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  /* color: var(--main-dark, #911517); */
  color: #666666; /*PC uniquement*/
  /* opacity: 0.35; */
  cursor: help;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.bl-ci-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* ============ Bouton œil (téléphone uniquement) ============
   Même style que l'œil des box de l'accueil (bloop_display_shop_home.css).
   Œil → croix une fois la photo affichée. !important pour passer devant les styles de bouton de Divi. */
.bloop_module_woo_shop .bl-ci-eye {
  display: none !important;
}

@media (hover: none), (pointer: coarse) {
  /* Position de l'œil : tout en haut à droite */
  .bloop_module_woo_shop li.bundled_product .bl-ci-eye {
    position: absolute !important;
    top: 12px;
    right: 12px;
    z-index: 4;
  }

  /* Style commun œil + info (modifier ici = les deux changent) */
  .bloop_module_woo_shop li.bundled_product .bl-ci-eye,
  .bloop_module_woo_shop li.bundled_product .bl-ci-wrap .bl-ci-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(94, 94, 94, 0.1) !important;
    border-radius: 50% !important;
    background: rgba(216, 216, 216, 0.1) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--main-dark) !important;
    box-shadow: none !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition:
      background 0.25s ease,
      transform 0.2s ease;
  }

  .bloop_module_woo_shop li.bundled_product .bl-ci-eye:active,
  .bloop_module_woo_shop li.bundled_product .bl-ci-wrap .bl-ci-btn:active {
    transform: scale(0.92);
  }

  .bloop_module_woo_shop li.bundled_product .bl-ci-eye svg,
  .bloop_module_woo_shop li.bundled_product .bl-ci-wrap .bl-ci-btn svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
    /* filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)); */
  }

  /* Fermé : œil visible, croix masquée */
  .bloop_module_woo_shop li.bundled_product .bl-ci-eye .bl-ci-ico--eye {
    display: block !important;
  }
  .bloop_module_woo_shop li.bundled_product .bl-ci-eye .bl-ci-ico--back {
    display: none !important;
  }

  /* Ouvert : croix visible, œil masqué */
  .bloop_module_woo_shop li.bl-ci-photo-on .bl-ci-eye .bl-ci-ico--eye {
    display: none !important;
  }
  .bloop_module_woo_shop li.bl-ci-photo-on .bl-ci-eye .bl-ci-ico--back {
    display: block !important;
  }
}

/* Icône info : "i" fermé / croix ouvert
   Desktop : versions cerclées (--info / --close) ; téléphone : versions simples (--info-m / --close-m), comme l'œil */
.bl-ci-btn .bl-ci-ico--close,
.bl-ci-btn .bl-ci-ico--info-m,
.bl-ci-btn .bl-ci-ico--close-m,
.bl-ci-wrap.is-open .bl-ci-btn .bl-ci-ico--info {
  display: none;
}
.bl-ci-wrap.is-open .bl-ci-btn .bl-ci-ico--close {
  display: block;
}
@media (hover: none), (pointer: coarse) {
  .bl-ci-wrap .bl-ci-btn .bl-ci-ico--info,
  .bl-ci-wrap.is-open .bl-ci-btn .bl-ci-ico--close {
    display: none !important;
  }
  .bl-ci-wrap .bl-ci-btn .bl-ci-ico--info-m {
    display: block !important;
  }
  .bl-ci-wrap.is-open .bl-ci-btn .bl-ci-ico--info-m {
    display: none !important;
  }
  .bl-ci-wrap.is-open .bl-ci-btn .bl-ci-ico--close-m {
    display: block !important;
  }
}

.bl-ci-btn:hover,
.bl-ci-btn:focus-visible,
.bl-ci-wrap.is-open .bl-ci-btn {
  opacity: 1;
  background: rgba(255, 255, 255, 0.7);
}

.bl-ci-btn:focus-visible {
  outline: 2px solid var(--main-dark, #911517);
  outline-offset: 2px;
}

/* ============ Bulle d'infos ============ */
.bl-ci-bubble {
  position: absolute;
  top: 44px;
  right: 10px;
  z-index: 5;
  width: min(260px, calc(100% - 20px));
  max-height: 70%;
  overflow-y: auto;
  padding: 14px 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  color: #333;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

/* Petite pointe vers l'icône */
.bl-ci-bubble::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 9px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
  border-radius: 2px;
}

.bloop_module_woo_shop .bl-ci-bubble h4 {
  margin: 0 0 4px !important;
  padding: 0 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
  color: var(--main-dark, #911517) !important;
}
.bl-ci-bubble .bl-ci-section + .bl-ci-section {
  margin-top: 10px;
}

.bl-ci-bubble p,
.bl-ci-bubble ul {
  margin: 0;
  padding: 0;
}

.bl-ci-bubble ul {
  padding-left: 16px;
}


/* "i" en texte (téléphone) */
.bl-ci-ico--info-m {
  font-family: "PT-Serif" !important;
  font-style: italic !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: inherit;
  text-transform: none;
}
/* Ouverte : survol de l'icône (souris), focus clavier, ou tap (classe .is-open) */
@media (hover: hover) and (pointer: fine) {
  .bl-ci-wrap:hover .bl-ci-bubble {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
  }
}
.bl-ci-wrap.is-open .bl-ci-bubble,
.bl-ci-btn:focus-visible + .bl-ci-bubble {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}

/* ============ Téléphone : info en haut à droite, sous l'œil ============ */
@media (hover: none), (pointer: coarse) {
  .bloop_module_woo_shop li.bundled_product .bl-ci-wrap {
    position: absolute;
    top: 12px;               /* pas de photo de survol = pas d'œil : l'info prend sa place */
    right: 12px;
    z-index: 4;
  }
  .bloop_module_woo_shop li.bundled_product.bl-ci-has-photo .bl-ci-wrap {
    top: 60px;               /* sous l'œil : 12px + 40px (œil) + 8px d'écart */
  }

  .bloop_module_woo_shop li.bundled_product .bl-ci-wrap .bl-ci-btn {
    position: static !important;
    opacity: 1 !important;
  }

  /* Bulle sous l'icône info, calée à droite */
  .bloop_module_woo_shop li.bundled_product .bl-ci-wrap .bl-ci-bubble {
    top: calc(100% + 8px);
    right: 0;
    width: min(260px, calc(100vw - 64px));
    max-height: 55vh;
  }
  .bloop_module_woo_shop li.bundled_product .bl-ci-wrap .bl-ci-bubble::before {
    right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bl-ci-photo,
  .bloop_module_woo_shop .bl-ci-photo img,
  .bl-ci-bubble {
    transition: none !important;
  }
  .bloop_module_woo_shop .bl-ci-photo img {
    transform: none;
  }
}