/* 24/11/2026 (Raph, varnish2) : bulle « Besoin d'aide ? » en bas a droite, a gauche des boutons remonter / descendre.
   JS : js/autoload/99-gfc-bulle-tchat-20261124a.js. Retour arriere : supprimer les deux fichiers. */
#gfc-bulle-tchat{position:fixed;right:78px;bottom:43px;z-index:100;width:48px;height:48px;margin:0;padding:0;
  border-radius:50%;border:2px solid #fde3b8;background:#f39b0d;color:#fff;cursor:pointer;
  display:flex;align-items:center;justify-content:center;box-shadow:0 3px 10px rgba(0,0,0,.22);
  transition:transform .15s ease,background .15s ease;-webkit-tap-highlight-color:transparent}
#gfc-bulle-tchat:hover{background:#e0870a;transform:scale(1.06)}
#gfc-bulle-tchat:focus-visible{outline:3px solid #1d2733;outline-offset:2px}
#gfc-bulle-tchat svg{width:24px;height:24px;display:block;fill:#fff}
#gfc-bulle-tchat .gfc-bulle-etiq{position:absolute;right:58px;top:50%;transform:translateY(-50%);white-space:nowrap;
  background:#1d2733;color:#fff;font:600 13px/1.2 Arial,Helvetica,sans-serif;padding:7px 10px;border-radius:6px;
  opacity:0;pointer-events:none;transition:opacity .15s ease}
#gfc-bulle-tchat .gfc-bulle-etiq:after{content:"";position:absolute;right:-5px;top:50%;margin-top:-5px;
  border:5px solid transparent;border-right:0;border-left-color:#1d2733}
@media (hover:hover){#gfc-bulle-tchat:hover .gfc-bulle-etiq,#gfc-bulle-tchat:focus-visible .gfc-bulle-etiq{opacity:1}}
#gfc-bulle-tchat[aria-expanded="true"] .gfc-bulle-etiq{opacity:0!important}
html.gfc-chat-ouvert #gfc-bulle-tchat,html.gfc-chat-ouvert #gfc-bulle-panneau{display:none!important}

#gfc-bulle-panneau{position:fixed;right:20px;bottom:101px;z-index:10000;width:330px;max-width:calc(100vw - 20px);
  background:#fff;color:#1d2733;border-radius:14px;box-shadow:0 10px 34px rgba(0,0,0,.28);
  font:14px/1.4 Arial,Helvetica,sans-serif;overflow:hidden;text-align:left}
#gfc-bulle-panneau[hidden]{display:none}
#gfc-bulle-panneau .gfc-bulle-tete{background:#f39b0d;color:#fff;padding:14px 44px 14px 16px;position:relative}
#gfc-bulle-panneau .gfc-bulle-titre{margin:0;font:700 16px/1.3 Arial,Helvetica,sans-serif;color:#fff;text-transform:none}
#gfc-bulle-panneau .gfc-bulle-x{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:32px;height:32px;
  border:0;border-radius:50%;background:transparent;color:#fff;font:400 24px/32px Arial,sans-serif;cursor:pointer;padding:0}
#gfc-bulle-panneau .gfc-bulle-x:hover{background:rgba(255,255,255,.2)}
#gfc-bulle-panneau .gfc-bulle-corps{padding:14px}
#gfc-bulle-panneau .gfc-bulle-choix{display:flex;align-items:center;gap:12px;width:100%;margin:0 0 10px;padding:12px 14px;
  border:1px solid #e6e9ee;border-radius:10px;background:#fff;cursor:pointer;text-align:left;color:#1d2733;
  transition:border-color .15s ease,background .15s ease}
#gfc-bulle-panneau .gfc-bulle-choix:last-child{margin-bottom:0}
#gfc-bulle-panneau .gfc-bulle-choix:hover,#gfc-bulle-panneau .gfc-bulle-choix:focus-visible{border-color:#f39b0d;background:#fff8ec;outline:0}
#gfc-bulle-panneau .gfc-bulle-ico{font-size:26px;line-height:1;flex:0 0 auto}
#gfc-bulle-panneau .gfc-bulle-l1{display:block;font-weight:700;font-size:15px}
#gfc-bulle-panneau .gfc-bulle-l2{display:block;font-size:13px;color:#5b6573;margin-top:2px}
#gfc-bulle-panneau .gfc-bulle-msg{margin:0 0 12px;padding:12px;border-radius:10px;background:#fff8ec;border:1px solid #fde3b8}
#gfc-bulle-panneau .gfc-bulle-btn{display:block;width:100%;padding:11px 14px;border:0;border-radius:8px;background:#f39b0d;
  color:#fff;font:700 14px/1.2 Arial,Helvetica,sans-serif;cursor:pointer}
#gfc-bulle-panneau .gfc-bulle-btn:hover{background:#e0870a}
#gfc-bulle-panneau .gfc-bulle-retour{display:block;margin:10px auto 0;padding:4px 8px;border:0;background:none;color:#5b6573;
  font:13px Arial,Helvetica,sans-serif;cursor:pointer;text-decoration:underline}

@media (max-width:767px){
  #gfc-bulle-tchat{right:68px;bottom:20px}
  #gfc-bulle-panneau{right:10px;bottom:78px;width:calc(100vw - 20px);max-width:360px}
}
@media print{#gfc-bulle-tchat,#gfc-bulle-panneau{display:none!important}}

/* --- 25/11/2026 (v 20261125b, Raph) : avatar (robot) dans la bulle + etiquette d'invitation fermable --- */
#gfc-bulle-tchat svg.gfc-bulle-robot{width:40px;height:40px;fill:none}
#gfc-bulle-tchat .gfc-bulle-pile{display:none}
/* l'etiquette remplace la bulle d'aide au survol tant qu'elle est affichee */
#gfc-bulle-tchat.gfc-bulle-invite-on .gfc-bulle-etiq{opacity:0!important}

#gfc-bulle-invite{position:fixed;right:138px;bottom:46px;z-index:99;display:flex;align-items:stretch;box-sizing:border-box;
  max-width:360px;background:#1d2733;color:#fff;border-radius:10px;border-left:4px solid #f39b0d;
  box-shadow:0 4px 14px rgba(0,0,0,.25);font:14px/1.3 Arial,Helvetica,sans-serif;text-align:left;
  opacity:0;transform:translateY(-14px);pointer-events:none;transition:opacity .28s ease,transform .28s ease}
#gfc-bulle-invite.visible{opacity:1;transform:none;pointer-events:auto}
/* v 20261125d : etiquette au-dessus de la bulle, pointe vers le bas (elle descend en apparaissant) */
#gfc-bulle-invite:after{content:"";position:absolute;right:var(--gfc-inv-pointe,17px);bottom:-7px;border:7px solid transparent;border-bottom:0;border-top-color:#1d2733}
#gfc-bulle-invite button{margin:0;border:0;background:transparent;color:#fff;cursor:pointer;min-height:0;height:auto;box-shadow:none;
  font:inherit;text-transform:none;border-radius:0}
#gfc-bulle-invite .gfc-bulle-invite-txt{padding:9px 6px 9px 12px;text-align:left;white-space:normal}
#gfc-bulle-invite .gfc-bulle-invite-l1{display:block;font-weight:700;font-size:14px;color:#fff}
#gfc-bulle-invite .gfc-bulle-invite-l2{display:block;font-size:12px;color:#d5dae1;margin-top:1px}
#gfc-bulle-invite .gfc-bulle-invite-x{flex:0 0 36px;width:36px;font:400 22px/1 Arial,sans-serif;color:#d5dae1;border-radius:0 10px 10px 0}
#gfc-bulle-invite .gfc-bulle-invite-x:hover{color:#fff;background:rgba(255,255,255,.14)}
#gfc-bulle-invite .gfc-bulle-invite-txt:hover .gfc-bulle-invite-l1{text-decoration:underline}
#gfc-bulle-invite button:focus-visible{outline:2px solid #f39b0d;outline-offset:-2px}
html.gfc-chat-ouvert #gfc-bulle-invite,html.gfc-ia-ouvert #gfc-bulle-invite{display:none!important}
@media (max-width:600px){
  /* telephone : une seule ligne, plus petite ; elle se retire seule apres 8 s */
  #gfc-bulle-invite{max-width:calc(100vw - 150px);font-size:13px}
  #gfc-bulle-invite .gfc-bulle-invite-l2{display:none}
  #gfc-bulle-invite .gfc-bulle-invite-l1{font-size:13px}
  #gfc-bulle-invite .gfc-bulle-invite-txt{padding:8px 4px 8px 10px}
  #gfc-bulle-invite .gfc-bulle-invite-x{flex-basis:40px;width:40px}
}
@media (prefers-reduced-motion:reduce){
  #gfc-bulle-invite{transition:none;transform:none}
  #gfc-bulle-tchat{transition:none}
  #gfc-bulle-tchat:hover{transform:none}
}
@media print{#gfc-bulle-invite{display:none!important}}
/* modeles de bulle : le visuel (pictogramme ou robot) ; modele « pile » (v 20261125c) = pastille allongee, avatars de meme taille */
#gfc-bulle-tchat .gfc-bulle-visuel{display:flex;align-items:center;justify-content:center;line-height:0}
/* v 20261125d : plus de bulle d'aide au survol (meme texte et meme aspect que l'etiquette : on croyait devoir survoler) */
#gfc-bulle-tchat .gfc-bulle-etiq{display:none!important}
@media (min-width:601px){#gfc-bulle-invite .gfc-bulle-invite-l2{white-space:nowrap}}
#gfc-bulle-tchat.gfc-bulle-avec-pile{width:auto;min-width:48px;height:48px;box-sizing:border-box;padding:0 4px;border-radius:26px}
#gfc-bulle-tchat.gfc-bulle-avec-pile:hover{transform:scale(1.04)}
#gfc-bulle-tchat.gfc-bulle-avec-pile .gfc-bulle-visuel{display:none}
#gfc-bulle-tchat.gfc-bulle-avec-pile .gfc-bulle-pile{display:flex;align-items:center;pointer-events:none}
#gfc-bulle-tchat .gfc-bulle-pile>.gfc-av{flex:0 0 36px;width:36px;height:36px;margin:0 0 0 -9px;border-radius:50%;border:2px solid #fff;box-sizing:border-box;
  display:flex;align-items:center;justify-content:center;color:#fff;font:700 15px/1 Arial,Helvetica,sans-serif;box-shadow:0 1px 3px rgba(0,0,0,.28)}
#gfc-bulle-tchat .gfc-bulle-pile>.gfc-av:first-child{margin-left:0}
#gfc-bulle-tchat .gfc-bulle-pile>.gfc-av .gfc-av-ini{line-height:1}
#gfc-bulle-tchat .gfc-bulle-pile>.gfc-av-robot{background:#1d2733;position:relative;overflow:hidden}
#gfc-bulle-tchat .gfc-bulle-pile>.gfc-av-robot svg.gfc-bulle-robot{width:28px;height:28px}
/* v 20261125f (David) : robot du jeu d'avatars « detailles » (image), dans la pastille et dans le modele « robot seul » */
#gfc-bulle-tchat .gfc-av-robot-img{position:relative;overflow:hidden;background:#ffeacb!important}
#gfc-bulle-tchat .gfc-av-robot-img img{position:absolute;left:0;top:0;width:100%;height:100%;display:block;max-width:none;margin:0;border:0;transform:scale(1.35);transform-origin:50% 38%}
#gfc-bulle-tchat .gfc-bulle-visuel>.gfc-av-robot-img{display:block;width:42px;height:42px;border-radius:50%;border:2px solid #fff;box-sizing:border-box}
/* v 20261125h : places de repli de l'etiquette quand la 1re est prise par un element fixe */
#gfc-bulle-invite[data-place="gauche"]:after{right:-7px;bottom:auto;top:50%;margin-top:-7px;border:7px solid transparent;border-right:0;border-left-color:#1d2733}
#gfc-bulle-invite[data-place="dessus-gauche"]:after{right:10px}
#gfc-bulle-invite[data-place="plus-haut"]:after{display:none}
