/* Badge AgentQonnect, à droite du symbole AQ du pied de page de l'accueil (FR et EN).
   Même tuile que .footer-logo (padding, coins, symbole de 30 px de haut), sur la feuille holographique du pin retenu.
   Gris par défaut; allumé (.en-ligne) quand le serveur AgentQonnect répond (agentqonnect-badge.js).
   Le clic ouvre le panneau « Connecter votre agent IA » (popover natif, sans redirection). */
.footer-logos { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-logos .footer-logo { margin-bottom: 0; }

.footer-pin {
  position: relative;
  display: inline-flex;
  padding: 7px 11px;
  border: 0;
  border-radius: 13px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 40%),
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0) 0 2px, rgba(255, 255, 255, .26) 2px 3px),
    linear-gradient(118deg, #e4fdff 0%, #8ee6f6 16%, #a9bdfd 32%, #efd3fd 46%, #a6f3dc 60%, #6fd0ec 76%, #dffbff 100%);
  background-size: 100% 100%, 100% 100%, 190% 190%;
  background-position: 0 0, 0 0, 10% 30%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85), 0 0 0 1px rgba(10, 22, 40, .14), 0 3px 8px rgba(6, 16, 30, .24);
  filter: grayscale(1) brightness(.82) contrast(.9);
  transition: filter .5s ease, box-shadow .5s ease, transform .25s cubic-bezier(.2, .7, .3, 1.4);
}
.footer-pin img { width: auto; height: 30px; }
.footer-pin:hover { transform: translateY(-2px) scale(1.04); }
.footer-pin:focus-visible { outline: 3px solid #3fcbe6; outline-offset: 3px; }

/* Allumé : la feuille s'irise, y compris dans le A et le Q (contreformes transparentes), avec une lueur cyan. */
.footer-pin.en-ligne {
  filter: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85), 0 0 0 1px rgba(63, 203, 230, .45), 0 0 16px rgba(63, 203, 230, .55),
    0 3px 8px rgba(6, 16, 30, .24);
  animation: footer-pin-irise 6s ease-in-out infinite alternate;
}
.footer-pin.en-ligne:hover { animation-duration: 1.8s; }
@keyframes footer-pin-irise {
  from { background-position: 0 0, 0 0, 0% 20%; }
  to { background-position: 0 0, 0 0, 100% 80%; }
}

/* Étiquette : visible au survol et au clavier; lue par les lecteurs d'écran et les agents qui lisent la page. */
.footer-pin-etiquette {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: 15rem;
  padding: 8px 11px;
  border-radius: 12px;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  color: #fff;
  background: #0a1628;
  box-shadow: 0 6px 18px rgba(6, 16, 30, .25), inset 0 0 0 1px rgba(63, 203, 230, .35);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s, transform .25s cubic-bezier(.2, .7, .3, 1);
}
.footer-pin:hover .footer-pin-etiquette,
.footer-pin:focus-visible .footer-pin-etiquette { opacity: 1; transform: translateY(0); }

/* Panneau « Connecter votre agent IA » */
.aqq-panneau {
  width: min(32rem, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: auto;
  color: #0a1628;
  background: #fff;
  box-shadow: 0 24px 60px rgba(6, 16, 30, .35), 0 0 0 1px rgba(10, 22, 40, .08);
  font-size: .92rem;
  line-height: 1.5;
}
.aqq-panneau::backdrop { background: rgba(6, 16, 30, .45); }
.aqq-panneau[data-repli] { position: fixed; inset: 0; margin: auto; height: fit-content; z-index: 1000; }
.aqq-tete { display: flex; align-items: center; gap: 12px; padding: 18px 18px 8px 20px; }
.aqq-tete img { width: auto; height: 22px; }
.aqq-tete h2 { margin: 0; font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; color: #0a1628; }
.aqq-fermer {
  margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 50%;
  font-size: 1.4rem; line-height: 1; color: #46566a; background: transparent; cursor: pointer;
}
.aqq-fermer:hover { background: #eef3f7; }
.aqq-fermer:focus-visible, .aqq-copie button:focus-visible { outline: 3px solid #007a99; outline-offset: 2px; }
.aqq-corps { padding: 0 20px 20px; }
.aqq-corps p { margin: 0 0 12px; color: #33445a; }
.aqq-etat { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 5px 10px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; color: #46566a; background: #eef1f4; }
.aqq-etat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8a96a3; }
.aqq-etat[data-etat="en-ligne"] { color: #136b3a; background: #e8f8ee; }
.aqq-etat[data-etat="en-ligne"]::before { background: #22c55e; }
.aqq-etat[data-etat="hors-ligne"] { color: #8a2a1f; background: #fdecea; }
.aqq-etat[data-etat="hors-ligne"]::before { background: #d64534; }
.aqq-libelle { margin: 14px 0 6px !important; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #007a99 !important; }
.aqq-copie { display: flex; align-items: stretch; gap: 8px; }
.aqq-copie code {
  flex: 1; min-width: 0; padding: 9px 11px; border-radius: 10px; overflow-x: auto; white-space: nowrap;
  font: .8rem/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #0a1628; background: #f3f6f9;
  box-shadow: inset 0 0 0 1px #dbe3ea;
}
.aqq-copie button {
  flex: none; min-width: 5.6rem; padding: 0 12px; border: 0; border-radius: 10px;
  font: inherit; font-size: .82rem; font-weight: 600; color: #fff; background: #0a1628; cursor: pointer;
}
.aqq-copie button:hover { background: #12304d; }
.aqq-note { margin-top: 14px !important; padding-top: 12px; border-top: 1px solid #e6edf3; font-size: .82rem; color: #55657a !important; }

@media (prefers-reduced-motion: reduce) {
  .footer-pin, .footer-pin-etiquette { transition: none; }
  .footer-pin.en-ligne { animation: none; }
  .footer-pin:hover { transform: none; }
}

/* Texte pour les agents et les lecteurs d'écran (adresse du connecteur), masqué à l'écran. */
.aqq-pour-agents { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Le panneau est dans .footer-brand : ses paragraphes n'en prennent ni la largeur limitée ni la taille. */
.aqq-panneau p { max-width: none; font-size: .9rem; }
/* Pendant que le panneau est ouvert, l'étiquette du badge ne reste pas affichée derrière. */
.footer-logos:has(.aqq-panneau:popover-open) .footer-pin-etiquette { opacity: 0; }
