*{ font-family: "Roboto", "Open Sans", sans-serif, "google"; }

html{ font-size: 15px; }
body{ background-color: #f9f5f0;  }

.btn-primary {
  background-color: #007bff;
  border: none;
}

.btn-primary:hover {
  background-color: #0056b3;
}
.bcr th, .bcr td{ background-color: #F1F1F1; }
.login-container {
  width: 100%;
  max-width: 450px;
  padding: 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.bg-bleu{ background-color: #cfe2ff; }
.bg-table{ background-color: #FFFFFF; }
.text-vertfonce{ color: #388e3c; }

.footer-text {
  text-align: center;
  font-size: 14px;
  color: #6c757d;
}
.choixcat{
	cursor: pointer;
display: inline-block;
  padding: .2rem 2rem;
  background: #EEE;
  border-radius: .5rem;
}
.compteur{ position: absolute;
  top: 0;
  left: 0;
  border: 1px solid #6c757d;
background: #6c757d;
	color: #FFF;
  width: 20px;
  padding: 0 2px 1px 0;
  text-align: center;
  font-size: 10px;
  border-radius: 0 0 10px 0; }
header h1.h1{
	color: #000;
	background: rgba(255,255,255,.1);
	padding: .2rem .5rem;
	border-radius: .25rem;
	backdrop-filter: blur(1px);
  	-webkit-backdrop-filter: blur(1px); /* Support pour Safari */	
	font-weight: 400;
}
.text-green{ color: #4caf50; }

.login-header h1 {
  font-size: 24px;
  font-weight: bold;
  color: #4caf50;
}

.text-orange{ color: #e84e1a; }
.btn-ff{ border: 1px solid #4caf50; color: #4caf50; }
.btn-ff:hover{ border: 1px solid #4caf50; color: #e84e1a; }
.btn-success{ background-color: #4caf50; border: 1px solid #4caf50; color: #FFF; }
.btn-success:hover{ background-color: #388e3c;border: 1px solid #388e3c; color: #FFF;  }

main{ min-height: calc(100vh - 190px); }
.cursor-pointer{ cursor: pointer; }
.btn-orange{ background-color: #e84e1a; border: 1px solid #e84e1a; color: #FFF; }
.btn-orange:hover{ background-color: #EC7046;border: 1px solid #EC7046; color: #000;  }

.afterbt::after{
	background: transparent !important;
}
#datalistProduct{
	background: #FFF;
	position: absolute;
	right: 1%;
	top: 0;
	left: 34%;
	bottom: 0;
	text-align: left;
	z-index: 10;
	overflow: auto;
	border: 1px solid; padding: 1rem; width: 65%; 
}
.choixprodv2{
	padding: .75rem .5rem; margin: 0 .5rem .5rem 0; border: 1px solid #CCC; cursor: pointer; display: inline-block;
}
#cartbar{
	height: 100vh; /* Hauteur pleine page */
	width: 250px; /* Largeur du menu */
	position: fixed;
	top: 0;
	right: -250px;
	bottom: 0;
	box-shadow: 40px 40px 40px 40px #000;
	background-color: #4caf50; /* Fond sombre */
	color: white;
	transition: all .3s ease; /* Animation */
	z-index: 1000;
	overflow: auto;
	font-size: .8rem;
}
#cartbar.open{
	right: 0px;
	transition: all .3s ease; /* Animation */
}
/* Style du menu latéral */
    .sidebar {
      height: 100vh; /* Hauteur pleine page */
      width: 250px; /* Largeur du menu */
      position: fixed;
      top: 0;
      left: 0;
      background-color: #4caf50; /* Fond sombre */
      color: white;
      transition: all 0.3s ease; /* Animation */
      z-index: 1000;
	overflow: auto;
    }

    .sidebar a {
      color: white;
      text-decoration: none;
      padding: 15px 20px;
      display: block;
      transition: all 0.2s ease;
    }

    .sidebar a:hover {
      background-color: #388e3c;
    }

    .sidebar .nav-link.active {
      background-color: #388e3c;
      color: white;
    }

    .sidebar .sidebar-header {
      text-align: center;
      border-bottom: 1px solid #388e3c;
    }

    /* Ajustement pour le contenu principal */
    .content {
      margin-left: 250px; /* Espace pour le menu */
      padding: 20px;
      transition: margin-left 0.3s ease;
    }

    /* Menu rétractable */
    .sidebar.collapsed {
      width: 0px;
    }

    .content.collapsed {
      margin-left: 0px;
    }

    .sidebar.collapsed .sidebar-header,
    .sidebar.collapsed a span {
      display: none;
    }

    .sidebar.collapsed a i {
      text-align: center;
      width: 100%;
    }
		
    .search-result {
      padding: 15px;
      border-radius: 5px;
      background-color: white;
      margin-bottom: 15px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .search-result:hover {
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .search-form {
      margin-bottom: 20px;
    }

    .search-input {
      background-color: #66BB6A;
      border: none;
      color: white;
    }

    .search-input::placeholder {
      color: #C8E6C9;
    }

    .btn-search {
      background-color: white;
      color: #4CAF50;
    }

    .btn-search:hover {
      background-color: #C8E6C9;
      color: #388E3C;
    }
.category-dropdown {
  position: relative;
  display: inline-block;
}

.category-dropdown .category-list {
  display: none;
  position: absolute;
  z-index: 1000;
  background: white;
  border: 1px solid #ddd;
  border-radius: .5rem;
  list-style: none;
  padding: .5rem 0;
  margin: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  min-width: 160px;
	max-height: 70vh;
  overflow: auto;
}

.category-dropdown .category-list li {
  padding: .5rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.category-dropdown .category-list li:hover {
  background: #f8f9fa;
}

.category-dropdown.open .category-list {
  display: block;
}
.cart-notif {
    background: #28a745;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: absolute;
    z-index: 9999;
    display: none;
}
.cart-notif-2 {
    font-size: 14px;
    pointer-events: none;
}
@media only screen and (max-width: 1440px)  {
	html{ font-size: 14px; }
}
@media only screen and (max-width: 991px)  {
	html{ font-size: 13px; }
	header h1.h1{
		font-size: 1rem;
	}
	
    /* Ajustement pour le contenu principal */
    .content {
      margin-left: 0px; /* Espace pour le menu */
    }
}
@media only screen and (max-width: 420px)  {
	header h1.h1{

		font-size: 1.4rem;
		background: #FFF4;

	}
	#form-search-modal.actif{
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		height: 80px;
		background: #FFF;
	}
	#datalistProduct{
		top: 80px;
		left: 0;
		right: 0;
		width: 100%;
		bottom: 0;
		position: fixed;
		z-index: 20;
	}
}
