/* --- PWA Font Controls --- */
#font-controls {
  position: fixed;
  right: 8px;
  bottom: var(--font-controls-bottom, calc(env(safe-area-inset-bottom, 0px) + 90px)); /* ✅ un peu plus haut */
  z-index: 2147483647;
  font-family: sans-serif;
}

/* Bouton principal ± (28px) */
#font-toggle {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  color: #111;
  border: 1px solid #bbb;
  border-radius: 50%;
  width: 28px !important;   /* ✅ taille idéale */
  height: 28px !important;
  font-size: 14px !important; /* ✅ police bien lisible */
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: background 0.2s ease;
  line-height: 1;
  padding: 0;
}

#font-toggle:hover {
  background: rgba(255, 255, 255, 0.85);
}

/* Panneau coulissant */
#font-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
  background: rgba(255,255,255,0.9);
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 4px 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transform: translateX(120%);
  transition: transform 0.2s ease-in-out;
}

#font-controls.open #font-menu {
  display: flex;
  transform: translateX(0);
}

/* Boutons du menu (adaptés à la nouvelle taille) */
#font-menu button {
  background: transparent;
  border: none;
  color: #111;
  font-size: 13px;    /* ✅ lisibles */
  font-weight: bold;
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 3px;
  line-height: 1;
}

#font-menu button:hover {
  background: #f0f0f0;
}

/* Ne pas agrandir les zones de partage Jetpack */
.entry .sharedaddy,
.entry .sharedaddy * {
  font-size: initial !important;
}
