.button-custom {
  display: inline-block;
  background: #4285f4;
  color: #fff;
  text-transform: uppercase;
  padding: 20px 30px;
  border-radius: 5px;
  box-shadow: 0px 17px 10px -10px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  -webkit-transition: all ease-in-out 300ms !important;
  transition: all ease-in-out 300ms !important;
}

.button-custom:hover {
  box-shadow: 0px 37px 20px -20px rgba(0, 0, 0, 0.2) !important;
  -webkit-transform: translate(0px, -10px) scale(1.2) !important;
  transform: translate(0px, -10px) scale(1.2) !important;
}

/* ── Base button ── */
.button-ffbad {
    /* Layout */
    display: inline-flex !important;        /* inline-flex replaces both display:inline-block and display:flex */
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;

    /* Sizing */
    padding: 1rem 1.5rem !important;     /* default size */
    line-height: 1 !important;
    box-sizing: border-box !important;

    /* Appearance */
    border: 2px solid var(--ffbad-red, #e6001c) !important;
    border-radius: 0.3rem !important;
    background-color: transparent !important;
    color: var(--ffbad-red, #e6001c) !important;

    /* Typography */
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    text-align: center !important;
    text-decoration: none !important;

    /* State */
    opacity: 1;                           /* inactive by default */
    cursor: pointer !important;

    /* Transition */
    transition:
        background-color 0.2s cubic-bezier(0.165, 0.74, 0.44, 1),
        color            0.2s cubic-bezier(0.165, 0.74, 0.44, 1),
        border-color     0.2s cubic-bezier(0.165, 0.74, 0.44, 1),
        opacity          0.2s ease,
        transform        0.2s ease !important;
}

/* ── Active / selected ── */
.button-ffbad.active,
.button-ffbad:active {
    opacity: 1 !important;
    color: var(--ffbad-white, #fff) !important;
    background-color: var(--ffbad-red, #e6001c) !important;
    border-color: var(--ffbad-red, #e6001c) !important;
}

/* ── Hover (only when not disabled) ── */
.button-ffbad:not(:disabled):hover {
    opacity: 1 !important;
    color: var(--ffbad-white, #fff) !important;
    background-color: var(--ffbad-red, #e6001c) !important;
    border-color: var(--ffbad-red, #e6001c) !important;
    transform: scale(1.03) !important;
}

/* ── Disabled ── */
.button-ffbad:disabled,
.button-ffbad.disabled {
    opacity: 1 !important;              /* override the 0.6 default — disabled has its own look */
    color: var(--ffbad-lightgrey, #aaa) !important;
    border-color: var(--ffbad-lightgrey, #aaa) !important;
    background-color: transparent !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* ── Size modifier: fit (compact padding) ── */
.button-ffbad.button-ffbad-fit {
    padding: 0.3rem 0.8rem !important;
}

/* ── Size modifier: large ── */
.button-ffbad.button-ffbad-lg {
    padding: 1.2rem 1.8rem !important;
    font-size: 1.1rem !important;
}

.button-ffbad.button-ffbad-dimmer:not(.active) {
    opacity: 0.6 !important;
}

.button-ffbad.button-ffbad-dimmer:not(:disabled):hover {
    opacity: 1 !important;
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.button-ffbad-small {
  color: var(--ffbad-blue, #101f69) !important; /* Blue color */
  background-color: rgba(
    16,
    31,
    105,
    0.1
  ) !important; /* Blue background with opacity 0.7 */
  padding: 0.5rem 1rem !important; /* Reduced padding */
  border: none !important; /* No border */
  text-decoration: none !important;
  display: inline-block !important;
  text-transform: uppercase !important;
  font-size: 1rem !important;
  text-align: center !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.2rem !important;
  line-height: 1 !important;
  transition:
    background 0.2s cubic-bezier(0.165, 0.74, 0.44, 1),
    color 0.2s cubic-bezier(0.165, 0.74, 0.44, 1) !important;
  animation: slideDown 0.5s ease-out; /* Apply the slide down animation */
}
#additional-buttons .form-check {
  padding-left: 0.2rem !important;
}

.button-ffbad-small:hover {
  color: #fff !important; /* White text on hover */
  background: var(
    --ffbad-blue,
    #101f69
  ) !important; /* Solid blue background on hover */
}

.button-ffbad-small.active,
.button-ffbad-small:active {
  color: #fff !important; /* White text for the active button */
  background-color: var(
    --ffbad-blue,
    #101f69
  ) !important; /* Solid blue background for the active button */
}

.button-ams {
  color: var(--ffbad-blue, #101f69) !important;
  border: none !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  text-decoration: none !important;
  display: inline-block !important;
  text-transform: uppercase !important;
  font-size: 1rem !important;
  text-align: center !important;
  font-weight: 600 !important;
  padding: 0rem 1.8rem 0.6rem 1.8rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1rem !important;
  line-height: 1 !important;
  transition: color 0.2s cubic-bezier(0.165, 0.74, 0.44, 1) !important;
}

.button-ams:hover {
  color: #e6001c !important;
}

.button-ams.active {
  color: #e6001c !important; /* Texte bleu pour le bouton actif */
  background-color: transparent !important;
  border-bottom: 4px solid #e6001c !important; /* Barre avec des arrondies en dessous */
  border-radius: 0 0 0.3rem 0.3rem !important; /* Arrondir les coins en bas */
}
