/*
Theme Name: Mon Thème Enfant
Template: hello-elementor
*/

.custom-header {
  position: sticky;
  top: 30px;
  z-index: 999;
  background-color: #efdfc4;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
}

.menu-wrap {
  width: 210px;
  display: flex;
  align-items: center;
  position: relative;
}

/* Toggler */
.toggler {
  width: 60px;
  height: 60px;
  opacity: 0;
  position: absolute;
  cursor: pointer;
  z-index: 3;
}

/* Hamburger Icon */
.hamburger {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.hamburger > div {
  width: 30px;
  height: 2px;
  background: #005632;
  position: relative;
  transition: 0.4s;
}

.hamburger > div::before,
.hamburger > div::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: #005632;
  transition: 0.4s;
}

.hamburger > div::before {
  top: -10px;
}
.hamburger > div::after {
  top: 10px;
}

/* Hamburger animation */
.toggler:checked + .hamburger > div {
  transform: rotate(135deg);
}
.toggler:checked + .hamburger > div::before,
.toggler:checked + .hamburger > div::after {
  top: 0;
  transform: rotate(90deg);
}

.toggler:checked + .hamburger > div,
.toggler:checked + .hamburger > div::before,
.toggler:checked + .hamburger > div::after {
  background-color: #efdfc4; /* Ou une autre couleur comme #ff0000 par exemple */
}

/* Menu full screen */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
  transition: 0.6s;
  z-index: 1;
}

.menu > div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-150%) translateY(-50%);
  width: 100%;
  height: 100%;
  background-color: #005632;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: 0.6s;
  overflow-x: hidden;
  overflow-y: hidden;
}

.menu > div > div {
  max-width: 90vw;
  max-height: 100vh;
  opacity: 0;
  transition: 0.6s;
}

.menu > div > div > ul {
  list-style: none;
  padding: 0;
}

.menu > div > div > ul > li > a {
  text-decoration: none;
  color: #fff;
  font-weight: 550;
  text-transform: uppercase;
  margin: 0.5rem;
  transition: 0.3s;
  font-size: 1.2rem;
  display: inline-block;
}

.menu > div > div > ul > li > a:hover {
  color: #005632;
}

/* Show menu when toggled */
.toggler:checked ~ .menu {
  visibility: visible;
}

.toggler:checked ~ .menu > div {
  transform: translateX(-50%) translateY(-50%);
}

.toggler:checked ~ .menu > div > div {
  opacity: 1;
}

/* Boutons */
.header-buttons {
  display: flex;
  gap: 10px;
}

.header-btn {
  background-color: #efdfc4;
  border: 1px solid #005632;
  box-shadow: 4px 4px 0px 0px #005632;
  border-radius: 4px;
  width: 184px;
  padding: 10px 15px;
  font-family: "Dunbar tall", sans-serif;
  font-size: 14px;
  color: #005632;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.35, 0, 0.35, 1);
}

.header-btn:hover {
  color: #005632;
  transform: translateY(3px);
  box-shadow: 0px 0px 0px 0px #005632;
}

.header-logo img {
  max-height: 60px;
}

.text-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column; /* ou row pour un menu horizontal */
  gap: 1rem;
}

.text-menu li {
  list-style: none;
  text-align: center;
}

.menu > div > div > ul > li > a {
  font-family: "Dunbar tall", sans-serif;
  font-size: 48px;
  color: #efdfc4;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 0.3s;
}

.menu > div > div > ul > li > a:hover {
  transform: scale(1.1);
  color: #efdfc4;
}

/* Pop-up améliorée - Style moderne */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 86, 50, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.popup-content {
  background: #efdfc4;
  padding: 0;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  font-family: "Dunbar tall", sans-serif;
}

.popup-header {
  background: #005632;
  color: #efdfc4;
  padding: 20px;
  text-align: center;
  position: relative;
}

.popup-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  color: #efdfc4;
}

.close-popup {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: #efdfc4;
  font-size: 20px !important;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100% !important;
  transition: background-color 0.3s;
}

.close-popup:hover {
  background-color: rgba(239, 223, 196, 0.2);
}

.popup-search {
  padding: 20px;
  background: #efdfc4;
  border-bottom: 1px solid #005632;
}

.search-input {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid #005632;
  border-radius: 25px;
  font-size: 16px;
  font-family: "Dunbar tall", sans-serif;
  background: white;
  color: #005632;
  outline: none;
  box-sizing: border-box;
}

.search-input::placeholder {
  color: #005632;
  opacity: 0.7;
}

.search-input:focus {
  box-shadow: 0 0 0 3px rgba(0, 86, 50, 0.2);
}

.popup-body {
  max-height: 400px;
  overflow-y: auto;
  background: #efdfc4;
}

.resto-item {
  padding: 20px;
  border-bottom: 1px solid rgba(0, 86, 50, 0.1);
  transition: background-color 0.3s;
  cursor: pointer;
}

.resto-item:hover {
  background-color: rgba(0, 86, 50, 0.05);
}

.resto-item:last-child {
  border-bottom: none;
}

.resto-name {
  font-size: 18px;
  font-weight: 800;
  color: #005632;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.resto-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.resto-status.ouvert {
  background: #4caf50;
  color: white;
}

.resto-status.ferme {
  background: #f44336;
  color: white;
}

.resto-address {
  color: #005632;
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.resto-services {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.service-tag {
  background: #005632;
  color: #efdfc4;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.resto-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.action-btn {
  padding: 8px 12px;
  border: none;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-itineraire {
  background: #efdfc4;
  color: #005632;
}

.btn-info {
  background: transparent;
  color: #005632;
  border: 1px solid #005632;
}

.btn-info:hover {
  background: #005632;
  color: #efdfc4;
}

.loading-message,
.error-message,
.no-results {
  text-align: center;
  padding: 40px 20px;
  color: #005632;
  font-size: 16px;
}

.loading-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(0, 86, 50, 0.3);
  border-top: 3px solid #005632;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Scrollbar personnalisée */
.popup-body::-webkit-scrollbar {
  width: 6px;
}

.popup-body::-webkit-scrollbar-track {
  background: rgba(0, 86, 50, 0.1);
}

.popup-body::-webkit-scrollbar-thumb {
  background: #005632;
  border-radius: 3px;
}

.popup-body::-webkit-scrollbar-thumb:hover {
  background: #003d24;
}

/* Responsive */
@media (max-width: 768px) {
  .popup-content {
    width: 95%;
    max-width: none;
    margin: 10px;
  }

  .popup-header h2 {
    font-size: 18px;
  }

  .resto-name {
    font-size: 16px;
  }

  .resto-actions {
    flex-direction: column;
  }
}

/** Orderable **/
.orderable-drawer {
  background-color: rgb(239, 223, 196);
}

.orderable-quantity-roller__roller {
  border: none;
  border-radius: 0px;
  height: none;
  display: flex;
  gap: 1rem;
}

.orderable-quantity-roller__button {
  background-color: #005632 !important;
}

.orderable-drawer__inner {
  font-family: "Dunbar tall", sans-serif;
}

.orderable-drawer__inner h3 {
  font-size: 24px;
}

.orderable-drawer__inner strong {
  font-size: 18px;
}

.orderable-drawer__inner span,
.orderable-quantity-roller__price::before {
  font-size: 16px;
  color: #005632;
}

.orderable-quantity-roller__quantity {
  border: 1px solid #005632;
  border-radius: 4px;
  background-color: white;
  min-width: 36px;
}

.orderable-drawer__close {
  border: none !important;
}

.orderable-drawer__close::after,
.orderable-drawer__close::before {
  background-color: #005632 !important;
}

.orderable-mini-cart-wrapper {
  border-top: 1px solid #005632 !important;
}

.orderable-mini-cart-item__remove svg {
  fill: #005632 !important;
}

.orderable-mini-cart__total,
.total {
  border-top: 1px solid #005632 !important;
}

a .checkout {
  background-color: #005632;
  width: none;
}

.orderable-mini-cart__buttons {
  display: flex;
  justify-content: center;
}

/* Ajout à la fin du fichier style.css existant */

/* ===================================
   BOUTONS PAGE RESTAURANT DANS POPUP HEADER
   =================================== */

.btn-restaurant-page {
  background-color: #005632 !important;
  color: #efdfc4 !important;
  border: 1px solid #005632 !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

/* Amélioration des styles existants pour la popup */
.action-btn {
  padding: 8px 12px;
  border: none;
  border-radius: 2px;
  border: 1px solid #005632;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Dunbar tall", sans-serif;
}

.btn-itineraire {
  background: #efdfc4;
  color: #005632;
}

.btn-info {
  background: transparent;
  color: #005632;
  border: 1px solid #005632;
}

.btn-info:hover {
  background: #005632;
  color: #efdfc4;
}

/* Styles spécifiques pour les liens dans les popups */
.resto-actions a {
  text-decoration: none;
}

.resto-actions a:visited {
  color: inherit;
}

.resto-actions a:hover {
  color: #efdfc4 !important;
  background-color: #005632;
  text-decoration: none;
}

.elementor-element.elementor-element-734b9f5 {
  gap: 2rem !important;
}

.orderable-product {
  border: 2px solid #005632 !important;
  font-family: "Dunbar tall", sans-serif;
  font-weight: 900;
  width: 340px !important;
  height: 100% !important;
  box-shadow: 4px 4px 0px 0px #005632 !important;
}
