@charset "UTF-8";
/* ==========================================================================
   Thème du logo sur toutes les pages (hors accueil, qui a sa propre version
   grand format). Chargé uniquement quand un thème est actif
   (logo_theme_global_head, includes/logo-theme.php) ; les logos sont
   habillés par assets/js/logo-theme.js :
     .lt-auto            conteneur ajouté autour de l'<img> du logo
     .lt-auto-tag        grand logo : étiquette réduite sous le logo
     .lt-auto-badge      petit logo d'en-tête : pastille avec l'icône
   Recoloration : .logo-recolor (CSS commun, logo_theme_css()).
   ========================================================================== */

.lt-auto {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  line-height: 0;
  font-size: 0;
  flex-shrink: 0;
  /* Halo (z-index -1) derrière le logo sans passer sous le fond de la page,
     et recoloration (mix-blend-mode) appliquée au seul logo. */
  isolation: isolate;
}
.lt-auto > img {
  margin: 0 !important;
}

/* Léger halo aux couleurs du thème derrière les grands logos. */
.lt-auto-tag::before {
  content: "";
  position: absolute;
  inset: -18% -12%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--lt-a) 32%, transparent), color-mix(in srgb, var(--lt-b) 14%, transparent) 60%, transparent);
  filter: blur(8px);
  opacity: 0.8;
  pointer-events: none;
  animation: lt-auto-glow 5s ease-in-out infinite;
}
@keyframes lt-auto-glow {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 0.9; transform: scale(1.04); }
}

/* Étiquette réduite, centrée sous le logo (l'étiquette de l'accueil est
   calibrée pour un logo de 272 px). */
.lt-auto .logo-tag {
  left: 0;
  right: 0;
  bottom: -13px;
  display: flex;
  justify-content: center;
  --lt-rot: -3deg;
  /* Pas le décalage "centré" que l'accueil utilise sur très petit écran. */
  animation-name: logo-tag-float;
}
.lt-auto .logo-tag-inner {
  gap: 4px;
  padding: 2px 9px 3px 7px;
}
.lt-auto .logo-tag-text {
  font-size: 13px;
  max-width: none;
}
.lt-auto .logo-tag-icon {
  width: 10px;
  height: 10px;
}
/* Logo de taille moyenne (connexion, pages d'erreur) : étiquette un peu plus grande. */
.lt-auto.lt-auto-lg .logo-tag { bottom: -16px; }
.lt-auto.lt-auto-lg .logo-tag-text { font-size: 16px; }
.lt-auto.lt-auto-lg .logo-tag-icon { width: 12px; height: 12px; }

/* Pastille des petits logos (en-têtes) : icône du thème, texte au survol. */
.lt-auto-badge-dot {
  position: absolute;
  top: -6px;
  right: -8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lt-a), var(--lt-b));
  box-shadow: 0 0 0 2px var(--bg, #fff), 0 2px 8px -2px color-mix(in srgb, var(--lt-a) 80%, transparent);
  color: #fff;
  animation: lt-auto-pop 2.6s ease-in-out infinite;
}
.lt-auto-badge-dot svg {
  width: 10px;
  height: 10px;
}
/* Tout petit logo (en-tête de Mail, pop-up) : pastille discrète. */
.lt-auto-badge-sm .lt-auto-badge-dot {
  top: -4px;
  right: -5px;
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 1.5px var(--bg, #fff);
}
.lt-auto-badge-sm .lt-auto-badge-dot svg {
  width: 7px;
  height: 7px;
}
@keyframes lt-auto-pop {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.15) rotate(18deg); }
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .lt-auto-tag::before { background: radial-gradient(closest-side, rgba(128, 128, 128, 0.2), transparent); }
  .lt-auto-badge-dot { box-shadow: 0 0 0 2px var(--bg, #fff); }
}
