/*******************
  BUTTONS
*******************/

.btn,
.btn-container a,
.wp-element-button,
.main-nav .featured a {
  display: inline-flex;
  align-items: center;
  line-height: 25px;
  padding: 6px 16px;
  background-color: transparent;
  border: 1px solid currentColor;
  font-size: 1em;
  font-weight: 500;
  font-family: var(--baseFont);
  letter-spacing: 0.03em;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}

/* Chevron apparu au hover */
.btn::after,
.btn-container a::after,
.wp-element-button::after,
.main-nav .featured a::after {
  content: '';
  flex-shrink: 0;
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity 0.2s, max-width 0.2s, margin-left 0.2s;
}

.btn:hover,
.btn.active,
.btn-container a:hover,
.wp-element-button:hover,
.main-nav .featured a:hover {
  background: linear-gradient(270deg, #ffa718 0%, #aa9066 100%);
  border-color: currentColor;
}

.btn:hover::after,
.btn.active::after,
.btn-container a:hover::after,
.wp-element-button:hover::after,
.main-nav .featured a:hover::after {
  opacity: 1;
  max-width: 14px;
  margin-left: 8px;
}

/* ---- Variantes ---- */

/* Fond sombre */
.btn.black,
.btn-container.black a {
  background-color: #0a2426;
  color: #f5f5f5;
  border-color: #0a2426;
}
.btn.black:hover,
.btn-container.black a:hover {
  background: linear-gradient(270deg, #ffa718 0%, #aa9066 100%);
  border-color: #0a2426;
  color: var(--black);
}

/* Fond blanc */
.btn.blackOnWhite,
.btn-container.blackOnWhite a {
  background-color: #fff;
  color: var(--textColor);
  border-color: currentColor;
}
.btn.blackOnWhite:hover,
.btn-container.blackOnWhite a:hover {
  background: linear-gradient(270deg, #ffa718 0%, #aa9066 100%);
}

/* Fond transparent (sur sections sombres) */
.btn.white,
.btn-container.white a {
  background-color: transparent;
  color: #f5f5f5;
  border-color: #f5f5f5;
}
.btn.white:hover,
.btn-container.white a:hover {
  background: linear-gradient(270deg, #ffa718 0%, #aa9066 100%);
}

/* Transparent (sur sections gradient/sombres) */
.btn.special,
.btn.alt {
  background-color: transparent;
  color: #f5f5f5;
  border-color: #f5f5f5;
}
.btn.special:hover,
.btn.alt:hover {
  background: linear-gradient(270deg, #ffa718 0%, #aa9066 100%);
  border-color: transparent;
  color: #f5f5f5;
}

/* Simple */
.btn.seamless {
  border: none;
  padding: 0;
  background: none;
  font-weight: inherit;
  color: inherit;
}
.btn.seamless::after {
  display: none;
}
.btn.seamless:hover {
  background: linear-gradient(270deg, #ffa718 0%, #aa9066 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---- Tailles ---- */
.btn.small,
.btn-container.small a { font-size: 14px; padding: 4px 12px; }

.btn.big,
.btn-container.big a { font-size: 18px; padding: 8px 20px; letter-spacing: 0.03em; }

.btn.wide,
.btn-container.wide a { padding: 6px 32px; }

.btn.full { width: 100%; justify-content: center; }

.btn.fat,
.btn-container.fat a { padding: 12px 20px; }

.btn.slim,
.btn-container.slim a { padding: 4px 16px; }

/* ---- Bouton icône + ---- */
.btn-plus {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background-color: var(--color1);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.5em;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}
.btn-plus:hover {
  background-color: #0a2426;
}

/* ---- Lien texte ---- */
.text-link {
  font-weight: 500;
  font-size: 1em;
  text-decoration: underline;
  color: currentColor;
  transition: color 0.25s;
}
.text-link:hover {
  background: linear-gradient(270deg, #ffa718 0%, #aa9066 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---- Wrapper de boutons ---- */
.buttons {
  --g: 0.5em;
  display: flex;
  flex-wrap: wrap;
  width: calc(100% + (var(--g) * 2));
  margin: calc(var(--g) * -1);
}
.buttons.right {
  flex-direction: row-reverse;
}
.buttons.center {
  justify-content: center;
}
.buttons > div {
  padding: var(--g);
}

.text + .action,
.title + .action {
  margin-top: 2em;
}