/**
 * EHUKA - Protection contre Google Translate
 * Empêche Google Translate de traduire les logos, icônes et éléments visuels
 */

/* ==================== PROTECTION DES LOGOS ==================== */

/* Logo principal - toutes les variantes */
.logo,
.tv-header-logo,
.tv-header-logo img,
.ehuka-logo-center,
.ehuka-logo-center img,
.tvcms-header-logo,
.tvcms-header-logo img,
.ehuka-mobile-logo,
.ehuka-mobile-logo img,
#tvcmsdesktop-logo,
#tvcmsdesktop-logo img {
  /* Empêcher la traduction */
  translate: no;
}

/* Attribut HTML pour empêcher la traduction */
img.logo,
img.img-responsive[alt*="Shisha"],
img.img-responsive[alt*="Store"],
img[src*="logo"] {
  /* Ces éléments auront aussi l'attribut translate="no" */
}

/* ==================== PROTECTION DES ICÔNES ==================== */

/* Icônes Material Design */
.material-icons,
i.material-icons,
span.material-icons {
  translate: no;
}

/* Icônes Font Awesome */
.fa,
.fas,
.far,
.fal,
.fab,
i[class*="fa-"] {
  translate: no;
}

/* Drapeaux emoji et icônes de langue */
.ehuka-lang-selector,
.ehuka-lang-flag,
.ehuka-lang-item-flag,
.ehuka-lang-code {
  translate: no;
}

/* SVG et icônes dans les blocs */
img.svg,
.block-icon img,
.icon img,
img[src*=".svg"] {
  translate: no;
}

/* ==================== PROTECTION DES BLOCKS RÉASSURANCE ==================== */

/* Tous les éléments du block-reassurance */
#block-reassurance,
#block-reassurance *,
.block-reassurance-item,
.block-reassurance-item *,
#block-reassurance img,
.block-reassurance-item img {
  translate: no !important;
}

/* ==================== PROTECTION DES IMAGES PRODUITS ==================== */

/* Images de produits */
.product-thumbnail img,
.product-cover img,
.product-image img,
.product-miniature img,
.tvproduct-image img,
img[loading="lazy"][alt] {
  translate: no;
}

/* ==================== PROTECTION DES ÉLÉMENTS VISUELS ==================== */

/* Badges et pastilles */
.badge,
.label,
.tag,
.tv-badge,
.product-flag {
  translate: no;
}

/* Icônes sociales */
.social-icon,
.social-links i,
[class*="social"] i {
  translate: no;
}

/* ==================== PROTECTION DES NOMS DE MARQUES ==================== */

/* Noms de marques spécifiques */
.brand-name,
.manufacturer-name,
[data-brand],
.tvbrand-logo img {
  translate: no;
}

/* ==================== PROTECTION DES PRIX ET SYMBOLES ==================== */

/* Symboles monétaires */
.price .currency,
.product-price .currency,
span.currency-sign {
  translate: no;
}

/* ==================== CLASSE GÉNÉRIQUE ==================== */

/* Classe à ajouter manuellement si besoin */
.notranslate,
[translate="no"] {
  translate: no !important;
}

/* ==================== PROTECTION GOOGLE TRANSLATE SPÉCIFIQUE ==================== */

/* Cache la barre Google Translate (optionnel) */
.goog-te-banner-frame {
  display: none !important;
}

/* Retire le décalage causé par Google Translate */
body {
  top: 0 !important;
  position: static !important;
}

/* Style du sélecteur Google Translate natif (si visible) */
.goog-te-combo {
  display: none; /* On utilise notre propre sélecteur */
}

#google_translate_element {
  display: none; /* Cache l'élément Google Translate natif */
}

/* ==================== FIX POUR LES ALTÉRATIONS DE GOOGLE TRANSLATE ==================== */

/* Empêche Google Translate de modifier les styles */
font[style] {
  all: revert !important;
}

/* Réinitialise les styles inline ajoutés par Google Translate */
[style*="background-color"][style*="rgb"] {
  background-color: transparent !important;
}
