.button {
  min-height: 58px;
  padding: 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid #735a38;
  background: #15130f;
  color: #fff;
  font: 900 14px Roboto;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  transition: 0.2s;
}
.button-primary {
  position: relative;
  isolation: isolate;
  border: 0;
  background: transparent;
  text-shadow: 0 1px #500;
}
/* L'image du bouton rouge n'est pleine que sur 86 % de sa hauteur (bords déchirés) : ce débord la cale sur la boîte du
   bouton (58 px de rouge visible, comme les autres boutons à côté), sans mordre sur son voisin */
.button-primary:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -5px -3px;
  background: url("../images/button-red.webp") center/100% 100% no-repeat;
  filter: drop-shadow(0 7px 11px #0008);
}
/* « Soutenir » : le bouton doré du menu, repris tel quel ailleurs (Mes dons : « Faire un don »). Un reflet passe toutes
   les 5 s (un calque du fond) et le cœur bat deux fois ; rien si le mouvement est réduit. */
:is(.support-button, .main-nav a.nav-highlight) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #e0a445;
  color: #170f07;
  font: 700 15px/1 Roboto, sans-serif;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 18px #d68f3740;
  background:
    linear-gradient(110deg, transparent 35%, #fff3d980 50%, transparent 65%) no-repeat,
    linear-gradient(160deg, #d7963c, #9a5f22);
  background-size:
    250% 100%,
    100% 100%;
  background-position:
    160% 0,
    0 0;
  animation: support-shine 5s ease-in-out 1.5s infinite;
}
:is(.support-button, .main-nav a.nav-highlight) svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  animation: support-beat 5s ease-in-out 1.5s infinite;
}
:is(.support-button, .main-nav a.nav-highlight):hover,
.main-nav a.nav-highlight.active {
  color: #170f07;
  background-image:
    linear-gradient(110deg, transparent 35%, #fff3d980 50%, transparent 65%),
    linear-gradient(160deg, #efb050, #b0702a);
}
:is(.support-button, .main-nav a.nav-highlight):hover svg {
  animation-duration: 1.2s;
}
@keyframes support-shine {
  0% {
    background-position:
      160% 0,
      0 0;
  }
  22%,
  100% {
    background-position:
      -60% 0,
      0 0;
  }
}
@keyframes support-beat {
  0%,
  28%,
  100% {
    transform: scale(1);
  }
  6%,
  18% {
    transform: scale(1.28);
  }
  12% {
    transform: scale(1.05);
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(.support-button, .main-nav a.nav-highlight),
  :is(.support-button, .main-nav a.nav-highlight) svg {
    animation: none;
  }
}
.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.13);
}
.button-ghost:hover {
  border-color: #c98a3e;
  color: #eaae55;
}
.social-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  background: center/contain no-repeat;
}
.discord-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19.5 5.3A16 16 0 0 0 15.6 4l-.5 1a14 14 0 0 0-6.2 0l-.5-1a16 16 0 0 0-3.9 1.3C2 9 1.3 12.6 1.6 16.1a16 16 0 0 0 4.8 2.4l1.2-1.6-1.8-.9.4-.3c3.6 1.7 7.6 1.7 11.2 0l.5.3-1.8.9 1.2 1.6a16 16 0 0 0 4.8-2.4c.4-4.1-.7-7.7-2.6-10.8ZM8.6 14.3c-1 0-1.9-1-1.9-2.2s.8-2.2 1.9-2.2 1.9 1 1.9 2.2-.8 2.2-1.9 2.2Zm6.8 0c-1 0-1.9-1-1.9-2.2s.8-2.2 1.9-2.2 1.9 1 1.9 2.2-.8 2.2-1.9 2.2Z'/%3E%3C/svg%3E");
}
.steam-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 1a11 11 0 0 0-11 10.7l5.9 2.4a3 3 0 0 1 1.8-.7l2.7-3.9v-.1a4.1 4.1 0 1 1 4.1 4.1h-.1l-3.9 2.8a3.1 3.1 0 0 1-6 .8L1.4 15A11 11 0 1 0 12 1Zm-3.5 18.2a2.3 2.3 0 0 1-2.1-1.4l1.2.5a1.7 1.7 0 1 0 1.3-3.1l-1.2-.5a2.3 2.3 0 1 1 .8 4.5Zm7-6.8a3 3 0 1 1 0-6 3 3 0 0 1 0 6Zm0-.8a2.2 2.2 0 1 0 0-4.4 2.2 2.2 0 0 0 0 4.4Z'/%3E%3C/svg%3E");
}
/* Lien d'action (« Découvrir notre histoire », « Voir le détail ») : le texte, et la flèche dans un petit carré qui
   glisse au survol ; un trait fin se trace sous le texte. La flèche est dessinée ici : jamais de « → » dans le texte. */
.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: #edaa4d;
  font: 800 0.8rem/1.2 Roboto, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
/* En <button> (une action sans page à ouvrir) : sans le fond ni le cadre du navigateur */
button.text-link {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.text-link::after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid #a56c2e;
  background: center / 12px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23edaa4d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  transition:
    transform 0.2s,
    background-color 0.2s,
    border-color 0.2s;
}
.text-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 32px;
  bottom: -4px;
  height: 1px;
  background: #edaa4d;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.text-link:hover,
.text-link:focus-visible {
  color: #ffc56b;
}
.text-link:hover::after,
.text-link:focus-visible::after {
  border-color: #edaa4d;
  background-color: #edaa4d22;
  transform: translateX(4px);
}
.text-link:hover::before,
.text-link:focus-visible::before {
  transform: scaleX(1);
}
.server-actions .button {
  min-height: 50px;
  padding-inline: 21px;
  font-size: 0.8rem;
}
.story-section .text-link {
  margin-left: 18px;
}
.hero-actions .button {
  min-height: 53px;
  padding-inline: 24px;
  font-size: 0.8rem;
}
.hero-actions .button-primary {
  min-width: 225px;
}

@media (max-width: 620px) {
  .button {
    width: 100%;
    min-height: 54px;
  }
  .hero-actions .button {
    min-height: 49px;
  }
}
