@media screen and (max-width: 990px) {
  /* On impacte pas la version non responsive */
  .header {
    .logo {
      width: 95vw;

      a {
        img {
          /* max-height: inherit !important; */
          position: absolute;
          top: 0;
          bottom: 0;
          left: 0;
          right: 0;
          margin: auto;
        }
      }
    }
  }

  .hidden_prior_990px {
    display: none !important;
  }

  .top-navbar-right {
    text-align: right;

    i {
      color: rgba(255, 255, 255, .7);
      font-size: 1.4em;
      margin-top: 5px;
    }
  }

  .header .header-wrapper + .header-wrapper .primary .navbar .navbar-collapse {
    /* left: -1px; */
    width: 102vw; /* 102 pour éviter un décalage graphique*/
    /*width: calc(200% + px);*/
  }

  .primary {
    width: 100%;

    .navbar {
      button {
        width: 100%;
        border: 1px solid !important;
        border-color: black;

        .menu_button_content {
          width: 75px;
          left: 0;
          right: 0;
          margin: auto;
        }
      }
    }

  }
}

.array {
  width: 100%;
  /*border: 1px solid grey;*/
}

.array td {
  /*border: 1px solid grey;*/
  padding: 10px;
}

/* BEGIN Responsive table pour interface client */
.responsive-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.responsive-table th,
.responsive-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.responsive-table th {
  background-color: #f2f2f2;
}

@media screen and (max-width: 768px) {
  .responsive-table,
  .responsive-table thead,
  .responsive-table tbody,
  .responsive-table th,
  .responsive-table td,
  .responsive-table tr {
    display: block;
    width: 100%;
    border: none;
  }

  .responsive-table tr {
    margin-bottom: 15px;
  }

  .responsive-table td {
    text-align: center;
    /*padding-left: 50%;*/
    position: relative;
    padding: 5px !important;
  }

  .responsive-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 50%;
    padding-left: 15px;
    font-weight: bold;
    text-align: left;
  }

  .responsive-table thead tr {
    display: none;
  }
}


#points .amount {
  text-align: right;
  color: black;
  font-weight: bold;
}

#points .comment {
  text-align: left;
}
/* EOF Responsive table pour interface client */


/* BEGIN Mes Produits — liste produits client (rendu grand public, pas "tableur admin") */
.products-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px 0 10px;
}

.products-toolbar #products-search {
  flex: 1 1 240px;
  min-width: 180px;
}

.products-toolbar select.form-control {
  width: auto;
  flex: 0 0 auto;
}

/* Carte qui englobe la liste (sans arrondi marqué, ombre douce) */
.products-card {
  background: #fff;
  border: 1px solid #ececec;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  overflow: hidden;
}

/* On efface la grille type tableur de .responsive-table */
.products-card .responsive-table {
  margin: 0;
  border: none;
}

.products-card .responsive-table th,
.products-card .responsive-table td {
  border: none;
  border-bottom: 1px solid #f1f1f1;
  padding: 16px 14px;
}

.products-card .responsive-table thead th {
  background: #fff;
  color: #9aa0a6;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 2px solid #eee;
}

.products-card .responsive-table tbody tr.fonce,
.products-card .responsive-table tbody tr.clair {
  background: #fff;
  transition: background .12s ease;
}

.products-card .responsive-table tbody tr:hover {
  background: #f7fafc;
}

.products-card .responsive-table tbody tr:last-child td {
  border-bottom: none;
}

.products-table td {
  vertical-align: middle;
}

/* Vignette produit */
.products-table .cell-thumb {
  width: 72px;
  text-align: center;
}

.products-card .product-image img {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  object-fit: contain;
  border: 1px solid #eee;
  background: #fff;
  padding: 3px;
}

.products-table .product-name {
  color: #1a1a1a;
  font-weight: 600;
  font-size: 1.02em;
}

.products-table .product-brand {
  color: #777;
  font-weight: 500;
}

.review-points {
  color: #2e7d32;
  font-weight: 600;
  white-space: nowrap;
}

/* Badge de stock */
.badge-stock {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-stock.in      { background: #e3f5e6; color: #2e7d32; }
.badge-stock.out     { background: #fdeaea; color: #c62828; }
.badge-stock.unknown { background: #f0f0f0; color: #999; }

/* Prix mis en valeur */
.products-table .product-price {
  font-weight: 700;
  font-size: 1.1em;
  color: #1a1a1a;
  white-space: nowrap;
}

/* Pagination : info (nombre affiché + total) toujours visible, navigation à droite */
.products-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 2px;
  color: #666;
  font-size: .95em;
}

.products-pagination-info strong {
  color: #1a1a1a;
}

.products-pagination-nav {
  display: inline-flex;
  gap: 8px;
}

.products-pagination-nav .btn {
  padding: 5px 16px;
}

.products-pagination-nav .btn.disabled {
  opacity: .4;
  pointer-events: none;
}

/* Mobile : chaque ligne devient une carte média (vignette à gauche, infos à droite) */
@media screen and (max-width: 768px) {
  .products-card {
    border: none;
    box-shadow: none;
    background: transparent;
    overflow: visible;
  }

  .products-card .responsive-table tbody tr.fonce,
  .products-card .responsive-table tbody tr.clair {
    border: 1px solid #ececec;
    border-radius: 4px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    background: #fff;
    overflow: hidden; /* contient le float de la vignette */
  }

  .products-card .responsive-table td {
    border-bottom: none;
    padding: 1px 0 !important;
  }

  .products-table.responsive-table .cell-thumb {
    float: left;
    width: auto !important;
    padding: 0 14px 0 0 !important;
    text-align: left;
  }

  .products-table .cell-thumb .product-image img {
    width: 68px;
    height: 68px;
  }

  /* Colonne d'infos à droite de la vignette, alignée à gauche */
  .products-table.responsive-table tr td:not(.cell-thumb) {
    text-align: left !important;
    margin-left: 84px;
  }

  .products-table .cell-name {
    margin-bottom: 4px !important;
  }

  .products-table .cell-name .product-name {
    font-size: 1.08em;
  }
}
/* EOF Mes Produits */


.title {
  padding-top: 25px !important;
  font-size: 1.8em !important;
}

/* Carte adhérents — bulles d'info (InfoWindow Google Maps) */
.poi-info {
  font-size: 13px;
  line-height: 1.5;
  min-width: 220px;
  max-width: 300px;
}

.poi-info .poi-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f4f4f4;
  border-radius: 12px;
  padding: 2px 10px 2px 4px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #555;
}

.poi-info .poi-name {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.poi-info .poi-address {
  color: #444;
  margin-bottom: 8px;
}

.poi-info .poi-row {
  border-top: 1px solid #eee;
  padding-top: 6px;
  margin-top: 6px;
}

.poi-info .poi-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.poi-info .poi-footer {
  margin-top: 10px;
  text-align: right;
}

.poi-info .poi-copy {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
}

.poi-info .poi-copy:hover {
  background: #f0f0f0;
}

.poi-info .poi-copy.copied {
  background: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}