/* =========================================================
   Barathonien – UI Boutons (effet type leroux)
   ========================================================= */

   :root {
    --bar-color-pink: #e30f73;
    --bar-color-orange: #ec6b2a;
    --bar-color-grey: #b1b2b5;
  
    --bar-color-text-dark: #333333;
    --bar-radius-pill: 999px;
    --bar-btn-font: "Inter Tight", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  }
  
  /* ===== Base bouton ====================================== */
  
  .bar-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  
    gap: 1.2rem; /* conserve l'espacement : NE PAS toucher */
    padding: 0.9rem 2.4rem 0.9rem 2.2rem;
    border-radius: var(--bar-radius-pill);
  
    font-family: var(--bar-btn-font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
  }
  
  /* Label */
  .bar-btn__label {
    position: relative;
    transition: transform 0.3s ease;
    transform: translateX(0);
    white-space: nowrap;
  }
  
  /* Flèche */
  .bar-btn__icon {
    margin-left: 0;
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
  }
  
  /* ===== Effet hover type Leroux =========================== */
  /* même mécanique que ton exemple copilot */
  
  .bar-btn:hover .bar-btn__icon,
  .bar-btn:focus-visible .bar-btn__icon {
    transform: translateX(40px); /* glisse vers la droite */
    opacity: 0;                  /* disparaît */
  }
  
  .bar-btn:hover .bar-btn__label,
  .bar-btn:focus-visible .bar-btn__label {
    transform: translateX(18px); /* le texte avance légèrement */
  }
  
  /* ===== Variantes ========================================= */
  
  .bar-btn--primary,
  .bar-btn--primary:hover,
  .bar-btn--primary:focus-visible {
    background-color: var(--bar-color-pink);
    color: #ffffff;
  }
  
  .bar-btn--secondary,
  .bar-btn--secondary:hover,
  .bar-btn--secondary:focus-visible {
    background-color: var(--bar-color-orange);
    color: #ffffff;
  }
  
  .bar-btn--ghost,
  .bar-btn--ghost:hover,
  .bar-btn--ghost:focus-visible {
    background-color: transparent;
    color: var(--bar-color-text-dark);
    border: 0px solid var(--bar-color-grey);
  }
  
  /* Bouton "lien" */
  .bar-btn--link {
    background: transparent;
    border-radius: 0;
    border: none;
    padding: 0 2.4rem 0.1rem 0;
    color: inherit;
    text-decoration: none;
  }
  
  .bar-btn--link .bar-btn__label {
    text-align: left;
  }
  
  .bar-btn--link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 2.4rem;
    bottom: 0;
    height: 1px;
    background-color: currentColor;
  }
  
  /* ===== Mobile ============================================ */
  
  @media (max-width: 768px) {
    /*.bar-btn {
      width: 100%;
      max-width: 340px;
      font-size: 15px;
      padding: 0.85rem 3.0rem 0.85rem 2.0rem;
    }*/
    .bar-btn {
      width: auto;                   /* largeur = celle du texte */
      max-width: none;               /* pas de limite */
      font-size: 15px;
      padding: 0.65rem 1.6rem;       /* padding réduit */
      margin-left: 0;
      margin-right: 0;
    }
  }
  
  .bar-btn--full {
    width: 100%;
    max-width: none;
  }