/* Variables et styles généraux */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #000000;
  background-color: #ffffff;
}

.site-main {
  min-height: 60vh;
  padding: 1.5rem 0;
}

.container {
  max-width: 1200px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background-color: #ffffff;
  border-bottom: none;
  margin-bottom: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: #000000;
  text-decoration: none;
}

.navbar-brand:hover {
  color: #333333;
}

.navbar-brand .site-logo {
  max-height: 50px;
  width: auto;
}

/* Champ de recherche */
.navbar-search {
  display: flex;
  align-items: center;
  position: relative;
}

.navbar-search .search-form {
  display: flex;
  align-items: center;
  margin: 0;
  position: relative;
}

.navbar-search .input-group {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 1000px;
}

.navbar-search input[type="search"] {
  padding: 0.75rem 1.25rem;
  border: 1px solid #e0e0e0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
  font-size: 1rem;
  color: #000000;
  background-color: #ffffff;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 0;
}

.navbar-search input[type="search"]:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.navbar-search input[type="search"]::placeholder {
  color: #666666;
}

.navbar-search button[type="submit"] {
  padding: 0.75rem 1.25rem;
  background-color: #e5e5e5;
  color: #000000;
  border: 1px solid #e0e0e0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: none;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar-search button[type="submit"]:hover {
  background-color: #f5f5f5;
  border-color: #000000;
}

.navbar-search button[type="submit"] i {
  font-size: 1.1rem;
}

.navbar-search button[type="submit"]:hover {
  background-color: #333333;
  border-color: #333333;
}

.navbar-search .search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 0.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  margin-top: 0.25rem;
}

.navbar-search .search-results-dropdown .search-results-list {
  max-height: 400px;
  overflow-y: auto;
}

.navbar-search .search-results-dropdown .search-result-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #e0e0e0;
  text-decoration: none;
  color: #000000;
  transition: all 0.3s ease;
}

.navbar-search .search-results-dropdown .search-result-item:hover {
  background-color: #f5f5f5;
}

.navbar-search .search-results-dropdown .search-result-item:last-child {
  border-bottom: none;
}

.navbar-search .search-results-dropdown .search-result-item .search-result-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 0.25rem;
}

@media (max-width: 991px) {
  .navbar-search {
    width: 100%;
    margin: 1rem 0;
    order: 3;
  }

  .navbar-search .search-form {
    width: 100%;
  }

  .navbar-search .input-group {
    max-width: 100%;
  }

  .navbar-search input[type="search"] {
    flex: 1;
    min-width: 0;
  }
}

/* Panier */
.cart-icon {
  font-size: 1.25rem;
  margin-right: 0.5rem;
  color: #000000;
}

.cart-count {
  background-color: #000000;
  color: white;
  border-radius: 50%;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  margin-right: 0.5rem;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-total {
  font-weight: 700;
  color: #000000;
}

/* Menu */
#primary-menu {
  display: flex;
  flex-direction: row;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 991px) {
  #primary-menu {
    flex-direction: column;
  }
}

/* Sidebar avec filtres */
.widget-area {
  width: 100%;
  box-sizing: border-box;
}

.widget-area .widget-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #000000;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #000000;
}

.widget-area .filter-widget {
  background-color: #ffffff;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  border: 2px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.widget-area .filter-widget .filter-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #000000;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.widget-area .filter-widget .filter-options {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.25rem;
  width: 100%;
  box-sizing: border-box;
}

.widget-area .filter-widget .filter-options.filter-options-categories {
  max-height: none;
  overflow-y: visible;
  overflow-x: visible;
}
.widget-area .filter-widget .filter-options .category-child {
  margin-top: 0.5rem;
}
.widget-area .filter-widget .filter-options .category-child .form-check-label {
  font-size: 0.9rem;
  color: #666666;
}

.widget-area .filter-widget .filter-options .form-check {
  margin-bottom: 0.5rem;
  padding: 0.25rem 0;
  display: flex;
  align-items: flex-start;
  position: relative;
}

.widget-area .filter-widget .filter-options .form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  margin-right: 0.5rem;
  margin-left: 0 !important;
  cursor: pointer;
  flex-shrink: 0;
  display: block !important;
  position: relative;
  float: none !important;
  background-color: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 0.25rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: all 0.3s ease;
}

.widget-area .filter-widget .filter-options .form-check-input:checked {
  background-color: #000000;
  border-color: #000000;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1rem;
}

.widget-area .filter-widget .filter-options .form-check-input:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.widget-area .filter-widget .filter-options .form-check-label {
  cursor: pointer;
  color: #000000;
  font-size: 0.9rem;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: 0;
}

.widget-area .filter-widget .filter-options .form-check-label:hover {
  color: #333333;
}

.widget-area .filter-widget .filter-options .form-check-label .badge {
  font-size: 0.75rem;
  background-color: #666666;
  margin-left: auto;
}

.widget-area .filter-widget .price-filter .price-range-display {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background-color: #f5f5f5;
  border-radius: 0.25rem;
  text-align: center;
  font-weight: 500;
  color: #000000;
}

.widget-area .filter-widget .form-select {
  border: 1px solid #e0e0e0;
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: #000000;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.widget-area .filter-widget .form-select:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.widget-area .filter-actions {
  margin-top: 1.5rem;
}

.widget-area .filter-actions .btn {
  font-weight: 500;
  transition: all 0.3s ease;
}

.widget-area .filter-actions .btn.btn-dark {
  background-color: #000000;
  border-color: #000000;
}

.widget-area .filter-actions .btn.btn-dark:hover {
  background-color: #333333;
  border-color: #333333;
}

.widget-area .filter-actions .btn.btn-outline-secondary {
  border-color: #e0e0e0;
  color: #000000;
}

.widget-area .filter-actions .btn.btn-outline-secondary:hover {
  background-color: #f5f5f5;
  border-color: #000000;
  color: #000000;
}

/* Masquer la pagination (on utilise le scroll infini) */
.woocommerce-pagination {
  display: none !important;
}

/* Scroll infini */
.infinite-scroll-loading {
  padding: 2rem 0;
  text-align: center;
}

.infinite-scroll-loading .spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3em;
  border-color: #000000;
  border-right-color: transparent;
}

/* Catégories */
.category-link-card {
  display: block;
  padding: 1rem;
  border-bottom: 2px solid #e0e0e0;
  text-decoration: none;
  color: #000000;
  transition: all 0.3s ease;
  background-color: #ffffff;
}

.category-link-card:hover {
  background-color: #f5f5f5;
  color: #000000;
  text-decoration: none;
}

.category-link-card .category-icon-wrapper {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.category-link-card .category-icon-wrapper .category-icon-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.25rem;
}

.category-link-card .category-icon-wrapper .category-icon {
  font-size: 2rem;
  color: #000000;
}

.category-link-card .category-content {
  flex-grow: 1;
}

.category-link-card .category-content .category-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: #000000;
}

/* Produits */
.products {
  list-style: none;
  padding: 0;
  margin: 0;
}

.products .product {
  margin-bottom: 1.5rem;
}

.products .product .woocommerce-loop-product__link {
  text-decoration: none;
  color: #000000;
  display: block;
}

.products .product .woocommerce-loop-product__link:hover {
  text-decoration: none;
}

.products .product .woocommerce-loop-product__title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 1rem;
  color: #000000;
}

.products .product .price {
  color: #000000;
  font-weight: 700;
  margin-top: 0.5rem;
}

/* Accessoires */
.cross-sells-accessories {
  margin-top: 3rem;
}

.cross-sells-accessories h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #000000;
}

.cross-sells-accessories .accessories-message {
  border: 1px solid #e0e0e0;
  background-color: #f5f5f5;
  color: #000000;
}

.cross-sells-accessories .accessories-form .accessory-checkbox {
  cursor: pointer;
}

.cross-sells-accessories .accessories-form .list-group-item {
  border-color: #e0e0e0;
  transition: all 0.3s ease;
}

.cross-sells-accessories .accessories-form .list-group-item:hover {
  background-color: #f5f5f5;
}

.cross-sells-accessories .accessories-form .accessory-price {
  color: #000000;
  font-weight: 700;
}

/* Panier */
.cart-item-accessory {
  background-color: #f5f5f5;
  border-left: 3px solid #000000;
  padding-left: 1rem;
}

/* Boutons */
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button {
  padding: 0.5rem 1rem;
  background-color: #000000;
  color: white;
  border: 2px solid #000000;
  border-radius: 0.25rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover {
  background-color: #333333;
  border-color: #333333;
  color: white;
  text-decoration: none;
}

/* Bouton valider commande */
#place_order,
.checkout-button {
  padding: 1rem 2rem;
  background-color: #000000;
  color: white;
  border: 2px solid #000000;
  border-radius: 0.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#place_order:hover,
.checkout-button:hover {
  background-color: #333333;
  border-color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Page produit - Summary */
.woocommerce-page div.product div.summary {
  width: 100%;
}

/* Section période de location (dates) */
.rental-period-section {
  width: 100%;
  margin-bottom: 1.5rem;
}

.rental-period-section .card-body {
  padding: 2rem;
}

.rental-period-section .card-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.rental-period-section .form-label {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.rental-period-section .form-control-lg {
  padding: 1rem 1.5rem;
  font-size: 1.125rem;
  min-height: 3.5rem;
  width: 100%;
}

/* Gutenberg blocks */
.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.wp-block {
  margin-top: 3rem;
  margin-bottom: 3rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  padding-left: 0;
  padding-right: 0;
}

