/* ============================================================
   EDOUARGOT — Rue des Jardins net sur mobile
   Cible :
   - .edo-family-text
   - img[src*="ruedesjardins02.png"]

   Objectif :
   enlever le voile/flou mobile sans changer la couleur,
   la taille ou l'emplacement.
   ============================================================ */

@media (max-width: 768px) {
  /* Élément texte + image */
  html body .edo-family-text,
  html body img[src="/images/ruedesjardins02.png"],
  html body img[src*="ruedesjardins02.png"] {
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
    text-shadow: none !important;
    transform: none !important;
    image-rendering: auto !important;
    position: relative !important;
    z-index: 80 !important;
  }

  /* Badge direct */
  html body .edo-photo-badge-family,
  html body .edo-photo-badge:has(.edo-family-text),
  html body .edo-photo-badge:has(img[src*="ruedesjardins02.png"]),
  html body [class*="badge"]:has(.edo-family-text),
  html body [class*="badge"]:has(img[src*="ruedesjardins02.png"]) {
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
    text-shadow: none !important;
    position: relative !important;
    z-index: 75 !important;
    isolation: isolate !important;
  }

  /* Parents qui peuvent porter le flou */
  html body div:has(> .edo-family-text),
  html body div:has(img[src*="ruedesjardins02.png"]),
  html body section:has(.edo-family-text),
  html body article:has(.edo-family-text),
  html body figure:has(.edo-family-text),
  html body .card:has(.edo-family-text),
  html body [class*="photo"]:has(.edo-family-text),
  html body [class*="card"]:has(.edo-family-text),
  html body [class*="item"]:has(.edo-family-text) {
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Pseudo-éléments qui peuvent créer le voile */
  html body .edo-photo-badge-family::before,
  html body .edo-photo-badge-family::after,
  html body .edo-photo-badge:has(.edo-family-text)::before,
  html body .edo-photo-badge:has(.edo-family-text)::after,
  html body [class*="badge"]:has(.edo-family-text)::before,
  html body [class*="badge"]:has(.edo-family-text)::after,
  html body [class*="photo"]:has(.edo-family-text)::before,
  html body [class*="photo"]:has(.edo-family-text)::after,
  html body [class*="card"]:has(.edo-family-text)::before,
  html body [class*="card"]:has(.edo-family-text)::after {
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
  }

  /* Sécurité : le texte et l'image repassent au-dessus du voile éventuel */
  html body .edo-photo-badge-family .edo-family-text,
  html body .edo-photo-badge-family img[src*="ruedesjardins02.png"],
  html body .edo-photo-badge:has(.edo-family-text) .edo-family-text,
  html body .edo-photo-badge:has(.edo-family-text) img[src*="ruedesjardins02.png"] {
    position: relative !important;
    z-index: 90 !important;
  }
}
