/*
 * front-contact-bubble.css : appel « Contactez-nous » (lots G2b, G2c, G2e, composant `x-front.contact-bubble`). Lot G2e : LE PLUS SIMPLE POSSIBLE. Un seul tracé de nuage à trois lobes rempli d'un violet UNI (jeton), contour or sourd net
 * de 2 px, trois petites bulles pleines de même couleur et même contour fin ; texte blanc, graisse 700, une ligne. Aucun dégradé, halo, reflet, étincelle, pastille, ombre, flou ni transparence. La bulle reste ENTIÈREMENT dans la barre
 * d'en-tête (hauteur 3,25 em, soit 49 px à taille normale, 55 px une fois penchée de 3°, pour une barre intérieure de 64 px au moins). Taille en rem × --echelle (réglage A / A+ / A++), plafonnée à 1 fois dans l'en-tête (la barre ne grandit pas ; le tiroir suit tout le réglage). Mouvement : balancement lent (±3° et ±4 px,
 * 5,6 s, point d'attache en haut), flottement (±1,25 px, 3,8 s), petites bulles déphasées : transform seulement ; survol : agrandissement de 4 % et arrêt du mouvement ; mouvement réduit (système ou réglage du site) : aucune animation.
 * Variante « link » (réglage `front.contact_cta`) : simple lien de navigation. Jetons uniquement.
 */
.contact-bubble {
  position: relative;
  display: block;
  flex: none;
  width: 7.3em;
  height: 3.25em;
  font-size: calc(0.9375rem * min(var(--echelle), 1));
  color: var(--blanc);
  text-decoration: none;
  transform-origin: 50% 0;
  animation: contact-bubble-sway 5.6s ease-in-out infinite alternate;
  transition: scale 0.2s;
}

/* Barre d'en-tête : affichée dès la largeur où elle tient sans toucher aux boutons ; en dessous, première place du menu mobile. */
.contact-bubble--bar {
  display: none;
  margin-inline: var(--s1);
}

@media (min-width: 64em) {
  .contact-bubble--bar {
    display: block;
  }
}

/* Tiroir : même bulle, plus grande (environ 4,5 rem de haut), centrée, sur le fond clair du menu. */
.contact-bubble--drawer {
  margin-inline: auto;
  font-size: calc(1.286rem * var(--echelle));
}

.contact-bubble__art {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: contact-bubble-float 3.8s ease-in-out infinite alternate;
}

.contact-bubble__cloud,
.contact-bubble__dot {
  fill: var(--violet-2);
  stroke: var(--accent-or-sourd-2);
  stroke-width: 2;
  stroke-linejoin: round;
}

.contact-bubble__dot {
  stroke-width: 1.2;
  transform-box: fill-box;
  transform-origin: center;
  animation: contact-bubble-puff 3.8s ease-in-out infinite alternate;
}

.contact-bubble__dot--2 {
  animation-delay: -0.9s;
}

.contact-bubble__dot--3 {
  animation-delay: -1.8s;
}

.contact-bubble__label {
  position: absolute;
  top: 40%;
  right: 2%;
  bottom: 14%;
  left: 13%;
  display: grid;
  place-items: center;
  font-size: calc(0.7rem * min(var(--echelle), 1));
  font-weight: 700;
  line-height: 1;
  color: var(--blanc);
  white-space: nowrap;
  pointer-events: none;
}

.contact-bubble--drawer .contact-bubble__label {
  font-size: calc(0.9rem * var(--echelle));
}

.contact-bubble:hover {
  scale: 1.04;
  animation-play-state: paused;
}

.contact-bubble:hover .contact-bubble__art,
.contact-bubble:hover .contact-bubble__dot {
  animation-play-state: paused;
}

.contact-bubble:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 1rem;
}

/* Page active : contour or plus épais, permanent. */
.contact-bubble.is-active .contact-bubble__cloud {
  stroke-width: 3;
}

@keyframes contact-bubble-sway {
  from {
    transform: translateX(-4px) rotate(-3deg);
  }

  to {
    transform: translateX(4px) rotate(3deg);
  }
}

@keyframes contact-bubble-float {
  from {
    transform: translateY(-1.25px);
  }

  to {
    transform: translateY(1.25px);
  }
}

@keyframes contact-bubble-puff {
  from {
    transform: translateY(1px);
  }

  to {
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-bubble,
  .contact-bubble__art,
  .contact-bubble__dot {
    animation: none;
  }
}

html[data-motion="reduced"] .contact-bubble,
html[data-motion="reduced"] .contact-bubble__art,
html[data-motion="reduced"] .contact-bubble__dot {
  animation: none;
}

.drawer__bubble {
  display: flex;
  justify-content: center;
  padding-block: var(--s3) var(--s4);
}

/* Variante « lien » (`front.contact_cta` = « link ») : lien de navigation sobre, souligné au survol, état actif avec aria-current. */
.contact-link-inline {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--s2);
  font-size: var(--fs-nav);
  font-weight: 600;
  color: var(--violet);
}

.contact-link-inline--bar {
  display: none;
}

@media (min-width: 64em) {
  .contact-link-inline--bar {
    display: inline-flex;
  }
}

.contact-link-inline:hover,
.contact-link-inline.is-active {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.contact-link-inline.is-active {
  font-weight: 700;
}

.contact-link-inline:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
}

.contact-link-inline--drawer {
  justify-content: center;
  width: 100%;
  font-size: calc(1.0625rem * var(--echelle));
}
