/* ==========================================
   SaiphIA — v3 Greeter (TEST, gaté par ?v3=1)
   1) pulsation du bouton « Discuter » (.v3-attn) ;
   2) GRANDE flèche « Essayez-moi » (.v3-tryme) placée HORS du cadre du
      chatbot, avec un « × » pour la fermer.
   Sans effet tant que les classes/éléments ne sont pas créés → prod intacte.
   ========================================== */

.v3-attn {
  position: relative;
  animation: v3-attn-pulse 1.5s ease-out infinite;
}
@keyframes v3-attn-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(212, 175, 122, 0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(212, 175, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 122, 0); }
}

/* ---- Grande flèche « Essayez-moi » ---- */
.v3-tryme {
  position: fixed;
  z-index: 9999;
  display: flex;
  align-items: center;
  color: #D4AF7A;
  opacity: 0;
  transform: translateY(10px) scale(0.92);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: 'Cormorant Garamond', Georgia, serif;
}
.v3-tryme.show { opacity: 1; transform: translateY(0) scale(1); }

/* petit bouton de fermeture */
.v3-tryme-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #1A365D;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(10, 25, 50, 0.35);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
}
.v3-tryme-close:hover { background: #234b7d; transform: scale(1.08); }

/* zone cliquable : label + flèche */
.v3-tryme-main {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  animation: v3-bob 1.7s ease-in-out infinite;
}

.v3-tryme-label {
  display: inline-block;
  background: linear-gradient(135deg, #D4AF7A 0%, #c39a5f 100%);
  color: #1A2A45;
  font-size: clamp(36px, 5.4vw, 74px);
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  letter-spacing: .005em;
  padding: 10px 28px;
  border-radius: 999px 999px 999px 8px;
  box-shadow: 0 16px 40px rgba(10, 25, 50, 0.4);
  transform: rotate(-3deg);
  white-space: nowrap;
}

.v3-tryme-arrow {
  width: clamp(190px, 24vw, 330px);   /* flèche longue */
  height: auto;
  filter: drop-shadow(0 8px 12px rgba(10, 25, 50, 0.3));
  flex: 0 0 auto;
}
.v3-arrow-line { stroke-dasharray: 380; stroke-dashoffset: 380; animation: v3-draw 1.15s ease-out 0.25s forwards; }
.v3-arrow-head { opacity: 0; animation: v3-fadein 0.3s ease-out 1.3s forwards; }

/* Orientation : vers la droite (défaut, la flèche pointe déjà à droite) ou bas */
.v3-tryme.v3-point-right .v3-tryme-main { flex-direction: row; }
.v3-tryme.v3-point-right .v3-tryme-arrow { transform: none; margin-left: -6px; }
.v3-tryme.v3-point-down .v3-tryme-main { flex-direction: column; align-items: flex-end; }
.v3-tryme.v3-point-down .v3-tryme-arrow { transform: rotate(62deg); margin-right: 30px; width: clamp(150px, 20vw, 240px); }

@keyframes v3-draw { to { stroke-dashoffset: 0; } }
@keyframes v3-fadein { to { opacity: 1; } }
@keyframes v3-bob {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(8px, 4px); }
}

@media (max-width: 720px) {
  .v3-tryme-label { font-size: clamp(40px, 12vw, 72px); padding: 8px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .v3-attn { animation: none; box-shadow: 0 0 0 3px rgba(212, 175, 122, 0.5); }
  .v3-tryme-main { animation: none; }
  .v3-arrow-line { stroke-dashoffset: 0; animation: none; }
  .v3-arrow-head { opacity: 1; animation: none; }
}
