:root {
  --btn-size: 65px;
  --gap: 20px;
}

* { box-sizing: border-box; }

/* Images non sélectionnables / non déplaçables / non enregistrables
   (neutralise notamment le menu « appui long » sur mobile). */
img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;   /* le clic/hover reste géré par le <a> parent */
}

body {
  -webkit-user-select: none;
  user-select: none;
}

html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  min-height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 6vh 20px;
}

.wrap {
  width: 100%;
  max-width: 620px;
  text-align: center;
}

.title {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: var(--gap);
}

.btn {
  position: relative;
  display: inline-block;
  width: var(--btn-size);
  height: var(--btn-size);
  line-height: 0;
}

.btn .icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .12s ease;
}

.btn .icon-hover { opacity: 0; }
.btn:hover .icon-normal,
.btn:focus-visible .icon-normal,
.btn.is-demo .icon-normal { opacity: 0; }
.btn:hover .icon-hover,
.btn:focus-visible .icon-hover,
.btn.is-demo .icon-hover { opacity: 1; }

.btn:focus-visible {
  outline: 2px solid #2f7d1f;
  outline-offset: 6px;
  border-radius: 6px;
}

/* Tooltips : image manuscrite + flèche, placée sous le bouton */
.tooltip {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  width: var(--btn-size);
  height: auto;
  opacity: 0;
  transform: translateX(var(--tx)) translateY(6px);
  transition: opacity .15s ease, transform .15s ease;
  pointer-events: none;
}

.btn:hover .tooltip,
.btn:focus-visible .tooltip,
.btn.is-demo .tooltip {
  opacity: 1;
  transform: translateX(var(--tx)) translateY(0);
}

/* Décalage horizontal pour que la flèche de chaque tooltip vise son bouton */
.btn-insta  .tooltip { --tx: -120%; }
.btn-email  .tooltip { --tx: -50%; }
.btn-buy    .tooltip { --tx: 20%; }

@media (max-width: 480px) {
  :root { --btn-size: 44px; --gap: 10px; }
  .title { margin-bottom: 42px; }
  .tooltip { width: var(--btn-size); }
}

@media (prefers-reduced-motion: reduce) {
  .btn .icon, .tooltip { transition: none; }
}
