html
{
    scroll-behavior: smooth;
    min-height: 100vh;
    min-width: 50vh;
    scrollbar-width: thin;                    /* largeur réduite */
    scrollbar-color: #1f697d #1b222c;         /* thumb / track */
}

::-webkit-scrollbar {
  width: 8px;                               /* largeur */
}

::-webkit-scrollbar-track {
  background: #1b222c;                      /* rail */
}

::-webkit-scrollbar-thumb {
  background: #1f697d;                      /* couleur du "pouce" */
}

::-webkit-scrollbar-thumb:hover {
  background: #1f697d;                      /* un peu plus clair au hover */
}

#productList,
#subscriptionList,
{
  scrollbar-width: thin;
  scrollbar-color: #1f697d #252c39;
  padding-right: 12px;
  min-height: 300px;   /* ce qui tient 3–4 produits */
  max-height: 500px;
  overflow-y: auto;
}

#lic-table-div,
#inv-table-div
{
  scrollbar-width: thin;
  scrollbar-color: #1f697d #252c39;
  padding-right: 12px;
  min-height: 250px;   /* ce qui tient 3–4 produits */
  max-height: 650px;
  overflow-y: auto;
}

#productList::-webkit-scrollbar-thumb,
#subscriptionList::-webkit-scrollbar-thumb,
#lic-table-div::-webkit-scrollbar-thumb,
#inv-table-div::-webkit-scrollbar-thumb
{
  background: #1f697d;
}

#productList::-webkit-scrollbar-thumb:hover,
#subscriptionList::-webkit-scrollbar-thumb:hover,
#lic-table-div::-webkit-scrollbar-thumb:hover,
#inv-table-div::-webkit-scrollbar-thumb:hover
{
  background: #1f697d;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.bodycolors
{
  background-attachment: fixed;
  background-image: linear-gradient(170deg, #415862, #1a1c26);
  background-size: 100% 100%;
  transition: background-image 5.0s linear;
}

.login
{
    background: linear-gradient(170deg, #364b55, #212330);
    background-repeat: no-repeat;
    background-size: cover;
}
.toggle-link { cursor: pointer; color: #128fb5; text-decoration: underline; }
.nav-link {
    position: relative;
    padding-bottom: 0.8rem;
    transition: color 0.1s ease-in-out;
}
.nav-link:hover {
    color: #36b5da;
}


.logo{
    width:42px;
    height:auto;
    display:block;
    margin:0 auto;
}



.row-disabled {
  opacity: 0.55;
  pointer-events: none;   /* Rend tout inactif */
}
.row-disabled .spin-btn {
  opacity: 0.5;
  cursor: not-allowed;
}
.row-disabled .number-input,
.row-disabled .qty-input {
  background-color: #e0e0e0 !important;
  color: #777 !important;
  border-color: #ccc !important;
}
.row-disabled .btn-remove-product {
  background-color: #ccc !important;
  border-color: #bbb !important;
  color: #666 !important;
}


.product-row {
  padding: 2px 0;       /* réduit la hauteur globale */
}

.product-row h5 {
  margin: 0 0 1px 0;    /* rapproche le titre */
}

.product-row p {
  margin: 0 0 0px 0;    /* réduit l'espace vertical */
}

.product-row .btn-add-product {
  margin-top: 0;        /* évite que le bouton soit trop bas */
}

.product-row hr.blue {
  margin: 1px 0;        /* réduit l’espace entre 2 produits */
}


.minwidth400{
    min-width:400px;
}

.hidden { display:none !important; }
.content-section { display:none; }
.content-section.is-visible { display:block; }
.minwidth400 { min-width:400px; }

.product-img,
.product-img-tmb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.product-img.img-fluid,
.product-img-tmb.img-fluid {
  height: 70px !important;
}


.text-sm { font-size:0.9rem; }
.qty-input-narrow { width:80px; }


.nopointer{
    pointer-events: none;
    cursor: default;
    margin-left: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 5px;
    height: 8px;
    width: 100%;
    background-color: #128fb5;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.nav-link.active {
    color: white !important;
}
.nav-link:hover::after,
.nav-link.active::after {
    opacity: 1;
}
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}


.link{
    color: #888;
}
.link:hover{
    transition: color 0.2s ease-in-out;
    color: white;
}

.linkblue{
    color: #128fb5;
}
.linkblue:hover{
    transition: color 0.2s ease-in-out;
    color: #5cd9d5;
}

/* ===== Hack Chrome autofill ===== */
input.form-control:-webkit-autofill,
input.form-control:-webkit-autofill:hover,
input.form-control:-webkit-autofill:focus
{
  -webkit-box-shadow: 0 0 0 1000px #282d37 inset !important;
  box-shadow: 0 0 0 1000px #282d37 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
  caret-color: #ffffff !important;
  border: 1px solid #128fb5 !important;
}


.form-control  {
  color: white !important;
  background-color: #282d37 !important;
  border-color: #128fb5 !important;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out !important;
  appearance: none !important;
}

.form-control:hover {
    color: white !important;
    box-shadow: 0 0 0 1px rgba(18, 143, 181, 1) !important;
}

.form-control:focus {
    border-color: #128fb5 !important;
    color: white !important;
    background-color: #282d37 !important;
    box-shadow: 0 0 0 1px rgba(18, 143, 181, 1) !important;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}


.select-wrapper {
  position: relative;
}

/* on cache la flèche native et on laisse de la place à droite */
.select-wrapper .form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
}

/* notre flèche perso, indépendante de l'autofill */
.select-wrapper::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 18px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='white' stroke-width='3.5' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat;
  background-size: 100% 100%;
    transition:
      transform 0.20s ease,
      width 0.20s ease,
      height 0.20s ease,
      filter 0.20s ease;
}
.select-wrapper:hover::after {
  width: 20px;     /* Agrandie */
  height: 20px;    /* Agrandie */
  transform: translateY(-50%) scale(1.15); /* Optionnel : petit zoom fluide */
}

select.form-select:-webkit-autofill,
select.form-select.chevron-blue:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #282d37 inset !important;
  box-shadow: 0 0 0 1000px #282d37 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
  border: 1px solid #128fb5 !important;
}

.form-select {
  background-image: none;
  color: white !important;
  background-color: #282d37 !important;
  border-color: #128fb5 !important;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out !important;
}

.form-select:hover {
    border-color: #128fb5 !important;
    box-shadow: 0 0 0 1px rgba(18, 143, 181, 1) !important;
}

.form-select:focus {
    color: white !important;
    border-color: #128fb5 !important;
    background-color: #282d37 !important;
    box-shadow: 0 0 0 1px rgba(18, 143, 181, 1) !important;
}



/* Chrome / Edge / Safari */
input.number-input[type=number]::-webkit-inner-spin-button,
input.number-input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox : enlever le look "number" global */
input.number-input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Firefox : virer complètement les flèches natives */
input.number-input[type=number]::-moz-number-spin-box,
input.number-input[type=number]::-moz-number-spin-inner,
input.number-input[type=number]::-moz-number-spin-up,
input.number-input[type=number]::-moz-number-spin-down {
  -moz-appearance: none;
  appearance: none;
  display: none;
}


/* 2) wrapper + input */
.number-wrapper {
  position: relative;
  display: inline-block;
}

.number-input {
  padding-right: 2.2rem; /* place pour les flèches */
}

/* 3) boutons custom */
.spin-btn {
  position: absolute;
  right: 0.3rem;
  width: 16px;
  height: 16px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  filter: brightness(0.9);
  transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}

/* flèche haut */
.spin-up {
  top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='white' stroke-width='4' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 15l7-7 7 7'/%3E%3C/svg%3E");
}

/* flèche bas */
.spin-down {
  bottom: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='white' stroke-width='4' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
}

/* effet hover */
.spin-btn:hover {
  filter: brightness(1.3);
  transform: scale(1.15);
  opacity: 1;
}



.white{
    color: white;
}
.grey{
    color: #888;
}
.black{
    color: black;
}
.navbar_color{
    background: #21252d;
}
.blue{
    color: #128fb5;
    border-color: #128fb5;
}
.dark{
    color: white;
    background: #282d37;
    background-color: #282d37;
    border: None
}

.footer{
    background: #1b1e24;
    background-color: #1b1e24;
    border: None
}

.btn-custom{
   background-color: none;
   border-color: #128fb5;
   color: white !important;
}
button.btn.btn-custom:active,
button.btn.btn-custom.active,
button.btn.btn-custom:hover,
.btn-custom:hover,
.btn-custom.active,
.btn-custom_active,
.btn-custom_active:hover,
.btn-custom_active:active,
.btn-custom_active.active
{
    background-color: #128fb5 !important;
    border-color: #128fb5 !important;
    color: white !important;
    box-shadow: none;
    outline: none;
}


.btn-warn{
   background-color: none;
   border-color: #D93B1C;
   color: white !important;
}
button.btn.btn-warn:active,
button.btn.btn-warn.active,
button.btn.btn-warn:hover,
.btn-warn:hover,
.btn-warn:active,
.btn-warn.active,
.btn-warn_active,
.btn-warn_active:hover,
.btn-warn_active:active,
.btn-warn_active.active
{
    background-color: #D93B1C !important;
    border-color: #D93B1C !important;
    color: white !important;
    box-shadow: none;
    outline: none;
}

.btn-ok{
   background-color: none;
   border-color: #1ab013;
   color: white !important;
}
button.btn.btn-ok:active,
button.btn.btn-ok.active,
button.btn.btn-ok:hover,
.btn-ok:hover,
.btn-ok:active,
.btn-ok.active,
.btn-ok_active,
.btn-ok_active:hover,
.btn-ok_active:active,
.btn-ok_active.active
{
    background-color: #1ab013 !important;
    border-color: #1ab013 !important;
    color: white !important;
    box-shadow: none;
    outline: none;
}


.tablemax{
    max-height: calc(100vh - 250px);
    overflow-y: true;
}
.table.table-dark {
  border-spacing: 0;
  margin: 0;
  background-color: #282d37;  /* gris foncé personnalisé */
  color: white;
}
.table.table-dark thead th {
  min-width: 120px;
  background-color: #21252d;  /* en-tête encore plus foncé */
  color: white;
}
.table.table-dark tbody td {
 min-width: 120px;
  background-color: #282d37;
  color: white;
}
.table.table-dark tbody tr:hover td{
  background-color: #4e5563;  /* effet survol */
}


/* statut sous le nom du produit */
.license-status {
  font-size: 0.8em;
  opacity: 0.9;
  display: inline-block;
  margin-top: 2px;
}
.status-active   { color: #66ff99; }  /* vert */
.status-disabled { color: #ff6666; }  /* rouge */
.status-warning  { color: #d19c02; }   /* rouge */


.navbar-toggler {
    border: 2px solid #128fb5;          /* Contour bleu Bootstrap */
    border-radius: 1px;
    padding: 3px 4px;
}
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler[aria-expanded="true"] {
    outline: none;
    box-shadow: 0 0 0 0.2rem #5bc3e2;
    border-color: #128fb5;
}
.center{
    text-align: center;
}
.right{
    text-align: right;
}
.left{
    text-align: left;
}
.centered {
        margin-top: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100vh;
}

.margintop20{
    margin-top: 20px;
}
.margintop30{
    margin-top: 30px;
}
.margintop40{
    margin-top: 40px;
}
.margintop50{
    margin-top: 50px;
}
.margintop60{
    margin-top: 60px;
}
.margintop70{
    margin-top: 70px;
}
.margintop80{
    margin-top: 80px;
}
.margintop100{
    margin-top: 100px;
}

.content {
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.zone {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #128fb5;
    border-radius: 8px;
}

.buttonwidth {
    width: 190px;
}

.license-key-wrap {
  white-space: pre-wrap;      /* conserve les retours/changements de ligne si présents */
  word-break: break-word;     /* coupe les très longues chaînes */
  max-width: 520px;           /* ajuste à ton layout */
  margin: 0;                  /* pas d'espace supplémentaire dans le tableau */
}
.allowed-ips-input {
  width: 100%;
  max-width: 420px;           /* ajuste si besoin */
  border-radius: 8px;
  border: 1px solid #128fb5;
  background-color: #21252d !important;
  color: white !important;
}


.strength-bar {
  height: 6px;
  border-radius: 4px;
  background-color: #333;
  transition: width 0.3s ease, background-color 0.3s ease;
  width: 0%;
}

.strength-msg {
  font-size: 0.9em;
  color: #ccc;
  text-align: center;
}






/* Cartes produits */

.product-title {
  display: flex;
  align-items: center;
  margin: 0;           /* IMPORTANT */
  line-height: 1;      /* IMPORTANT */
}
.product-title .icon {
  width: 80px;
  height: 80px;
}


.product-card {
  background:rgba(0, 0, 0, 0.25); /* bleu nuit / quasi noir */
  border-radius: 1rem;
  padding: 2rem 2rem;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.15);
}

/* Image arrondie + léger zoom au hover */
.product-thumb {
  border-radius: 1rem;
}

.product-thumb img {
      border-radius: 1rem;
  transition: transform 0.4s ease;
}

.product-thumb:hover img {
  transform: scale(1.05) ;
}

/* Petit label au-dessus des titres */
.product-kicker {
  letter-spacing: .12em;
}

/* Ajustements responsive */
@media (max-width: 767.98px) {
  .product-card {
    padding: 2rem 1.5rem;
  }
}

.parallax-image {
  transform: translateY(0px);
  opacity: 0;
  transition: opacity 0.25s linear, transform 0.25s ease-out;
}


.pricing-table td,
.pricing-table th {
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.15);
    color: white;
}

.pricing-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.text-bg-secondary{
    background-color: rgba(255, 255, 255, 0.15) !important;
}








