/* Label Enfants Phare — Shortcodes 0.3.40 */

.leph-spectacles-grid {
  --leph-grid-gap: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--leph-grid-gap);
  width: 100%;
  margin: 0;
}

.leph-spectacle-tile { min-width: 0; }

.leph-spectacle-tile__link {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid #221D541A;
  border-radius: 15px;
  background: #fff;
  color: var(--leph-navy, #221d54);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(34,29,84,.055);
  isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease;
}

.leph-spectacle-tile__link:hover {
  color: var(--leph-navy, #221d54);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(34,29,84,.09);
}

.leph-spectacle-tile__link:focus-visible {
  outline: 3px solid var(--leph-yellow, #e6d34e);
  outline-offset: 3px;
}

.leph-spectacle-tile__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--leph-navy, #221d54);
}

.leph-spectacle-tile__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.005);
}

/* Existing visual treatment: gradient + progressive blur over the lower third. */
.leph-spectacle-tile__overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(34,29,84,0) 36%,
    rgba(34,29,84,.06) 46%,
    rgba(34,29,84,.18) 57%,
    rgba(34,29,84,.48) 72%,
    rgba(34,29,84,.88) 100%
  );
}

.leph-spectacle-tile__media::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  -webkit-mask-image: linear-gradient(180deg, transparent 43%, rgba(0,0,0,.03) 50%, rgba(0,0,0,.16) 61%, rgba(0,0,0,.45) 76%, rgba(0,0,0,.80) 90%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 43%, rgba(0,0,0,.03) 50%, rgba(0,0,0,.16) 61%, rgba(0,0,0,.45) 76%, rgba(0,0,0,.80) 90%, #000 100%);
}

/* The two hero labels remain directly over the image, bottom-left, with the existing icons. */
.leph-spectacle-tile__labels {
  position: absolute;
  z-index: 3;
  left: 24px;
  right: 24px;
  bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
}

.leph-spectacle-tile__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-family: 'Teacher', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.leph-spectacle-tile__label i {
  display: inline-flex;
  color: var(--leph-yellow, #e6d34e);
  font-size: 14px;
  line-height: 1;
}

.leph-spectacle-tile__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 24px 25px;
  background: #fff;
}

.leph-spectacle-tile__title {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--leph-navy, #221d54);
  font-family: 'Bubblegum Sans', sans-serif !important;
  font-size: 27px !important;
  font-weight: 400 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.01em;
  text-align: left;
}

.leph-spectacle-tile__subtitle {
  display: block;
  width: 100%;
  margin-top: 13px;
  color: var(--leph-navy, #221d54);
  font-family: 'Teacher', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
}

.leph-spectacle-tile__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 45px;
  margin-top: 21px;
  padding: 12px 29px;
  border-radius: 999px;
  background: var(--leph-yellow, #e6d34e);
  color: var(--leph-navy, #221d54);
  font-family: 'Bubblegum Sans', sans-serif !important;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
  transition: transform .25s ease, background-color .25s ease;
}

.leph-spectacle-tile__link:hover .leph-spectacle-tile__cta { transform: translateX(2px); }

@media (max-width: 1100px) {
  .leph-spectacles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leph-spectacle-tile__title { font-size: 26px !important; }
}

@media (max-width: 700px) {
  .leph-spectacles-grid { grid-template-columns: 1fr; gap: 18px; }
  .leph-spectacle-tile__media { aspect-ratio: 16 / 9; }
  .leph-spectacle-tile__labels { left: 18px; right: 18px; bottom: 15px; gap: 7px 14px; }
  .leph-spectacle-tile__label { font-size: 12px; }
  .leph-spectacle-tile__body { padding: 21px 20px 22px; }
  .leph-spectacle-tile__title { font-size: 25px !important; }
  .leph-spectacle-tile__subtitle { font-size: 15px; }
  .leph-spectacle-tile__cta { min-height: 43px; margin-top: 18px; padding: 11px 26px; font-size: 14px; }
}
