/* =============================================================================
   STELLA BUTTONS
   3 variantes : primary · outline · light
   Effet hover : border draw — les 4 côtés se tracent depuis les coins
   ============================================================================= */
 
/* --- Base commune --- */
.btn-stella,
.btn-stella-primary,
.btn-stella-outline,
.btn-stella-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2.25rem;
  font-family: var(--stella-font-title);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  cursor: pointer;
  position: relative;
  text-decoration: none;
 
  /* Border draw via background-image (4 côtés) */
  background-repeat: no-repeat;
  background-size: 0 2px, 0 2px, 2px 0, 2px 0;
  background-position:
    left   top,     /* top    : gauche → droite */
    right  bottom,  /* bottom : droite → gauche */
    left   top,     /* left   : haut   → bas    */
    right  top;     /* right  : haut   → bas    */
 
  transition:
    background-size  0.35s ease,
    background-color 0.25s ease,
    color            0.25s ease;
}
 
.btn-stella:hover,
.btn-stella-primary:hover,
.btn-stella-outline:hover,
.btn-stella-light:hover {
  background-size: 100% 2px, 100% 2px, 2px 100%, 2px 100%;
}
 
/* --- Primaire : fond Spritz, border draw crème --- */
.btn-stella,
.btn-stella-primary {
  background-color: var(--stella-spritz);
  color: var(--stella-creme);
  background-image:
    linear-gradient(var(--stella-creme) 0 0),
    linear-gradient(var(--stella-creme) 0 0),
    linear-gradient(var(--stella-creme) 0 0),
    linear-gradient(var(--stella-creme) 0 0);
}
 
.btn-stella:hover,
.btn-stella-primary:hover {
  background-color: var(--stella-basilic);
}
 
/* --- Outline : transparent, border draw basilic --- */
.btn-stella-outline {
  background-color: transparent;
  color: var(--stella-basilic);
  box-shadow: inset 0 0 0 1px rgba(0, 63, 45, 0.25);
  background-image:
    linear-gradient(var(--stella-basilic) 0 0),
    linear-gradient(var(--stella-basilic) 0 0),
    linear-gradient(var(--stella-basilic) 0 0),
    linear-gradient(var(--stella-basilic) 0 0);
}
 
.btn-stella-outline:hover {
  background-color: transparent;
  color: var(--stella-basilic);
  box-shadow: inset 0 0 0 1px transparent;
}
 
/* --- Light : pour fonds sombres (Basilic), border draw crème --- */
.btn-stella-light {
  background-color: transparent;
  color: var(--stella-creme);
  box-shadow: inset 0 0 0 1px rgba(255, 243, 222, 0.25);
  background-image:
    linear-gradient(var(--stella-creme) 0 0),
    linear-gradient(var(--stella-creme) 0 0),
    linear-gradient(var(--stella-creme) 0 0),
    linear-gradient(var(--stella-creme) 0 0);
}
 
.btn-stella-light:hover {
  background-color: transparent;
  color: var(--stella-creme);
  box-shadow: inset 0 0 0 1px transparent;
}
 
/* --- Diagonal wipe : plan Basilic glisse en diagonale --- */
.btn-stella-wipe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2.25rem;
  font-family: var(--stella-font-title);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--stella-basilic);
  border-radius: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--stella-basilic);
  background: transparent;
  transition: color 0.3s ease;
  z-index: 0;
}
 
.btn-stella-wipe::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--stella-basilic);
  transform: skewX(-20deg) translateX(-110%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}
 
.btn-stella-wipe:hover {
  color: var(--stella-creme);
}
 
.btn-stella-wipe:hover::before {
  transform: skewX(-20deg) translateX(0);
}
 
/* --- Diagonal wipe light : pour fonds sombres --- */
.btn-stella-wipe--light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2.25rem;
  font-family: var(--stella-font-title);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--stella-creme);
  border-radius: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--stella-creme);
  background: transparent;
  transition: color 0.3s ease;
  z-index: 0;
}
 
.btn-stella-wipe--light::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--stella-creme);
  transform: skewX(-20deg) translateX(-110%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}
 
.btn-stella-wipe--light:hover {
  color: var(--stella-basilic);
}
 
.btn-stella-wipe--light:hover::before {
  transform: skewX(-20deg) translateX(0);
}
 
/* --- Responsive : pleine largeur sur mobile --- */
@media (max-width: 640px) {
  .btn-stella,
  .btn-stella-primary,
  .btn-stella-outline,
  .btn-stella-light {
    width: 100%;
    justify-content: center;
  }
}