/* Your custom styles */
.bg_image{
  background-image: url('../img/compo01.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;

}


td.center, th.center {
  vertical-align: middle;
  text-align: center;
}


.badge_items{
  top:-12px;
  left:5px;
}


.prix {
  padding-top: .25em;
  font-size: 0.8em;
  opacity: .75;
  font-style: italic;
}

.link-black a {
  color: black;
}

.link-black a:hover {
  color: #0056b3;
}

.link-black .active {
  color: #0056b3;
}

.divider-small {
  width: 30px;
  background-color: rgba(0, 0, 0, .1);
  height: 3px;
}


.panel-order .row {
	border-bottom: 1px solid #ccc;
}
.panel-order .row:last-child {
	border: 0px;
}
.panel-order .row .col-md-1  {
	text-align: center;
	padding-top: 15px;
}
.panel-order .row .col-md-1 img {
	width: 50px;
	max-height: 50px;
}
.panel-order .row .row {
	border-bottom: 0;
}
.panel-order .row .col-md-11 {
	border-left: 1px solid #ccc;
}
.panel-order .row .row .col-md-12 {
	padding-top: 7px;
	padding-bottom: 7px;
}
.panel-order .row .row .col-md-12:last-child {
	font-size: 11px;
	color: #555;
	background: #efefef;
}
.panel-order .btn-group {
	margin: 0px;
	padding: 0px;
}
.panel-order .panel-body {
	padding-top: 0px;
	padding-bottom: 0px;
}
.panel-order .panel-deading {
	margin-bottom: 0;
}

@media only screen and (max-width: 768px) {

  .test{
    display:none;
  }
  .activer{
    display:inline;
  }

  .taille_police{
    font-size: 1.2rem;
  }

  .taille_btn{
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.7rem;
  }

  .taille_title{
    font-size: 1rem;
  }




}


@media (min-width:992px) {
    .desktop-only {
        display:block !important;
    }

    .mobile-only {
        display:none !important;
    }
}

@media (max-width: 768px) {
.mobile-only {
display:block !important;
}

.desktop-only {
display:none !important;
}
}

.modal-body {
    max-height: calc(100vh - 210px);
    overflow-y: auto;
}

/* Styles pour table-cart-v-2 - Version mobile */
@media (max-width: 768px) {
  /* Transformer la table en format carte sur mobile */
  .table-cart-v-2,
  .table-cart-v-2 thead,
  .table-cart-v-2 tbody,
  .table-cart-v-2 th,
  .table-cart-v-2 td,
  .table-cart-v-2 tr {
    display: block;
  }

  /* Cacher les en-têtes de colonnes */
  .table-cart-v-2 thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  /* Style pour chaque ligne = une carte */
  .table-cart-v-2 tr {
    border: 2px solid #e0e0e0 !important;
    border-color: #e0e0e0 !important;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white !important;
    background-color: white !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  /* Empêcher toute couleur rouge sur les bordures */
  .table-cart-v-2 tr,
  .table-cart-v-2 td,
  .table-cart-v-2 td:last-child,
  table.dataTable tbody tr,
  table.dataTable tbody td,
  #produit_data tbody tr,
  #produit_data tbody td {
    border-color: #e0e0e0 !important;
  }
  
  /* Empêcher DataTables d'appliquer des couleurs de sélection */
  .table-cart-v-2 tr.selected,
  .table-cart-v-2 tr.odd.selected,
  .table-cart-v-2 tr.even.selected,
  .table-cart-v-2 tr.selected td,
  table.dataTable tbody tr.selected,
  table.dataTable.display tbody tr.selected,
  table.dataTable tbody tr.row_tables.selected {
    background: white !important;
    background-color: white !important;
  }

  /* Première cellule (image) - centrée en haut */
  .table-cart-v-2 td:first-child {
    padding: 0 !important;
    text-align: center !important;
    display: block !important;
    width: 100%;
    margin-bottom: 1rem;
  }

  .table-cart-v-2 td:first-child:before {
    display: none;
  }
  
  .table-cart-v-2 td:first-child img {
    max-width: 120px;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 15px;
    margin: 0 auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  }

  /* Style pour chaque cellule (sauf première et dernière) */
  .table-cart-v-2 td:not(:first-child):not(:last-child) {
    border: none;
    padding: 0.75rem 0 !important;
    text-align: center !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto;
  }

  /* Labels avant chaque valeur - centrés */
  .table-cart-v-2 td:not(:first-child):not(:last-child):before {
    content: attr(data-label);
    font-weight: 700;
    color: #2d8659;
    text-align: center;
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  /* Contenu des cellules - centré */
  .table-cart-v-2 td h6 {
    margin: 0 !important;
    padding: 0 !important;
    display: block;
    width: 100%;
    text-align: center;
    line-height: 1.5;
  }
  
  .table-cart-v-2 td h6.mt-3 {
    margin-top: 0 !important;
  }
  
  .table-cart-v-2 td strong {
    display: block;
    width: 100%;
    text-align: center;
    line-height: 1.5;
    color: #2d8659;
    font-size: 1.1rem;
  }
  
  /* Assurer l'alignement centré du contenu */
  .table-cart-v-2 td:not(:first-child):not(:last-child) > * {
    margin: 0 auto;
    text-align: center;
    width: 100%;
  }
  
  /* Supprimer les marges des classes Bootstrap sur mobile */
  .table-cart-v-2 td.mt-3 {
    margin-top: 0 !important;
  }
  
  .table-cart-v-2 td.center {
    text-align: center !important;
  }

  /* Cellule avec les boutons quantité - centrée en bas */
  .table-cart-v-2 td:last-child {
    padding: 1rem 0 0 0 !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    border-top: 2px solid #e0e0e0 !important;
    border-color: #e0e0e0 !important;
    margin-top: 0.5rem;
    padding-top: 1rem !important;
  }

  .table-cart-v-2 td:last-child:before {
    content: attr(data-label);
    position: static;
    font-weight: 700;
    color: #2d8659;
    text-align: center;
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* Améliorer les boutons pour le tactile */
  .table-cart-v-2 .btn-group {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .table-cart-v-2 .btn-group .btn {
    min-width: 50px;
    min-height: 44px;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
  }

  /* Image du produit */
  .table-cart-v-2 td img {
    max-width: 100px;
    height: auto;
    border-radius: 8px;
  }

  /* Quantité affichée */
  .table-cart-v-2 .quant.qty {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d8659;
    display: inline-block;
    min-width: 40px;
    padding: 0.5rem;
  }
  
  /* Navbar mobile - organisation en deux lignes */
  .navbar-modern-ecommerce .container {
    flex-wrap: wrap;
    padding: 0.5rem 1rem;
  }
  
  .navbar-modern-ecommerce .d-flex.flex-column {
    width: 100%;
    margin-left: 3rem; /* Espace pour le menu hamburger */
  }
  
  .navbar-modern-ecommerce .navbar-brand {
    font-size: 1rem;
    padding: 0;
    margin: 0;
  }
  
  .navbar-modern-ecommerce .taille_title {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .navbar-modern-ecommerce .taille_title i {
    font-size: 0.9rem;
  }
  
  /* Bouton panier mobile - deuxième ligne */
  .navbar-modern-ecommerce .mobile-only.btn {
    margin-top: 0.5rem;
    font-size: 0.9rem;
  }
  
  /* Profil mobile - première ligne */
  .navbar-modern-ecommerce .mobile-only .nav-link {
    padding: 0.5rem;
  }
}

/* Améliorer l'affichage desktop pour table-cart-v-2 */
@media (min-width: 769px) {
  .table-cart-v-2 {
    display: table;
  }
  
  .table-cart-v-2 thead,
  .table-cart-v-2 tbody,
  .table-cart-v-2 th,
  .table-cart-v-2 td,
  .table-cart-v-2 tr {
    display: table-row-group;
  }
  
  .table-cart-v-2 th,
  .table-cart-v-2 td {
    display: table-cell;
  }
  
  .table-cart-v-2 td:before {
    display: none;
  }
}