/* Bouton « Retour aux outils » (voir retour-portail.js). Couleurs fixes : lisible en mode clair et sombre. */
.retour-portail {
  position: fixed; left: 16px; bottom: 16px; z-index: 2147483000;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 8px; border-radius: 999px;
  background: #263845; color: #ffffff !important; text-decoration: none !important;
  font: 600 15px/1.2 "Segoe UI", system-ui, -apple-system, sans-serif; letter-spacing: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .14);
  transition: background-color .15s, transform .15s, box-shadow .15s;
}
.retour-portail:hover { background: #34495a; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .32), inset 0 0 0 1px rgba(255, 255, 255, .2); }
.retour-portail:active { transform: translateY(0); }
.retour-portail:focus-visible { outline: 3px solid #8fb6ec; outline-offset: 3px; }
.retour-portail__fleche {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, .16); font-size: 19px; line-height: 1;
}
@media (max-width: 600px) { .retour-portail { left: 12px; bottom: 12px; } }
/* Variante dans l'en-tête de l'outil (en haut à gauche) */
.retour-portail.retour-portail--entete { position: static; flex: none; padding: 5px 14px 5px 5px; font-size: 14px;
  background: #c8102e; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.retour-portail.retour-portail--entete:hover { background: #a50d26; transform: none; box-shadow: 0 3px 10px rgba(0, 0, 0, .4); }
.retour-portail.retour-portail--entete:focus-visible { outline-color: #ffffff; }
.retour-portail--entete .retour-portail__fleche { width: 28px; height: 28px; font-size: 17px; }
/* Variante en haut à gauche d'un écran sans en-tête (connexion) */
.retour-portail.retour-portail--coin { top: calc(env(safe-area-inset-top, 0px) + 16px); bottom: auto; left: max(16px, env(safe-area-inset-left, 0px)); }
@media print { .retour-portail { display: none !important; } }
