:root {
  --primary-color: #00d4aa;
  --secondary-color: #ff4757;
  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --background-light: #ffffff;
  --background-gray: #f8f9fa;
  --border-light: #e9ecef;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --transition: all 0.3s ease;
  --white: #fff;
  --black: #000;
  /* --bg: linear-gradient(135deg, #11998e, #38ef7d); */
  --bg2: #fff;
  /* --bg2: linear-gradient(135deg, #667eea, #764ba2); */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: var(--bg2);
}
.dn {
  display: none;
}
.mt {
  margin-top: 20px;
}
a {
  text-decoration: none;
}
/* Sidebar Styles */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 100%;
  background: var(--bg2);
  z-index: 1999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.show {
  transform: translateX(0);
}

.sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  justify-content: flex-end;
}

.sidebar-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  color: #333;
}

.sidebar-close:hover {
  background-color: #f5f5f5;
}

.sidebar-content {
  width: 350px;
  padding: 0;
}

.sidebar-section {
  padding: 16px 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.sidebar-item:hover {
  background-color: #f8f8f8;
}

.sidebar-item.primary {
  background-color: #000;
  color: #fff;
  margin: 0 20px;
  border-radius: 8px;
  font-weight: 600;
}

.sidebar-item.primary:hover {
  background-color: #333;
}

.sidebar-item .fas.fa-external-link-alt {
  font-size: 14px;
  opacity: 0.7;
}

.sidebar-divider {
  height: 1px;
  background-color: #e5e5e5;
  margin: 0 20px;
}

.sidebar-footer {
  padding: 20px;
  /* border-top: 1px solid #e5e5e5; */
  margin-top: 20px;
}

.app-promotion {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.app-logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.app-text {
  flex: 1;
}

.app-title {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin: 0;
  line-height: 1.4;
}

.app-buttons {
  display: flex;
  gap: 12px;
}

.app-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background-color: #f8f8f8;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  flex: 1;
  justify-content: center;
}

.app-button:hover {
  background-color: #e5e5e5;
  border-color: #d0d0d0;
}

.app-button .fab {
  font-size: 16px;
}

/* Header Styles */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.cont-bar {
  display: flex;
  align-items: center;
  gap: 15px;
}
.menu-toggle {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.menu-toggle:hover {
  background-color: #f5f5f5;
}

.logo-img {
  height: 55px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 50px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background-color: #f5f5f5;
}

.nav-link.btn-primary {
  background-color: #000;
  color: #fff;
  padding: 10px 20px;
}

.nav-link.btn-primary:hover {
  background-color: #333;
}

.nav-link .fas {
  font-size: 14px;
}

.nav-link .fa-external-link-alt {
  font-size: 12px;
  opacity: 0.7;
}

/* Hero Styles */
.hero {
  min-height: calc(100vh - 64px);
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("https://images.unsplash.com/photo-1571091718767-18b5b1457add?w=1920&h=1080&fit=crop&crop=center");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  padding: 40px 16px;
}

.hero-content {
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 40px;
  max-width: 600px;
  line-height: 1.2;
}

.search-container {
  max-width: 800px;
}

.search-form {
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  margin-bottom: 16px;
}

.input-group {
  position: relative;
}

.address-input {
  flex: 1;
  min-width: 200px;
}

.form-input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.2s ease;
  background-color: #f8f8f8;
}

.form-input:focus {
  outline: none;
  border-color: #00b2a9;
  background-color: #fff;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 16px;
}

.delivery-time {
  position: relative;
}

.dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f8f8f8;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dropdown-btn:hover {
  background-color: #fff;
  border-color: #00b2a9;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 100;
  margin-top: 4px;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f5f5f5;
}

.search-btn {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.search-btn:hover {
  background-color: #333;
}

.login-link {
  color: #fff;
  font-size: 14px;
}

.link {
  color: #fff;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.link:hover {
  opacity: 0.8;
}

/* Services Section */
.services {
  padding: 80px 16px;
  background-color: #fff;
}

.services-container {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.service-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 24px;
}

.service-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  line-height: 1.3;
}

.service-link {
  color: #00b2a9;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.service-link:hover {
  color: #008a82;
}

/* Cities Section */
.cities {
  padding: 80px 16px;
  background-color: #f8f8f8;
}

.cities-container {
  max-width: 1500px;
  margin: 0 auto;
}

.cities-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.cities-title {
  font-size: 32px;
  font-weight: 700;
  color: #333;
}

.cities-link {
  color: #00b2a9;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.cities-link:hover {
  color: #008a82;
}

.cities-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

.cities-map {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); */
}

.map-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.cities-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cities-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.city-link {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.city-link:hover {
  color: #00b2a9;
  border-bottom-color: #00b2a9;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero {
    background-attachment: scroll;
  }

  .hero-title {
    font-size: 40px;
  }

  .header-container {
    padding: 0 20px;
  }

  .services-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cities-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cities-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cities-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    z-index: 2000;
    position: relative;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    display: none;
  }

  .nav.show {
    display: flex;
  }

  .nav-link {
    justify-content: flex-start;
    padding: 12px;
    border-radius: 4px;
  }

  .hero-title {
    font-size: 32px;
    margin-bottom: 32px;
  }

  .search-form {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }

  .address-input,
  .delivery-time {
    width: 100%;
  }

  .dropdown-btn {
    width: 100%;
    justify-content: space-between;
  }

  .search-btn {
    width: 100%;
    padding: 16px;
    font-size: 18px;
  }

  .hero {
    padding: 20px 16px;
    text-align: center;
  }

  .hero-content {
    text-align: left;
  }

  .services {
    padding: 60px 16px;
  }

  .services-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-image {
    height: 180px;
  }

  .service-content {
    padding: 20px;
  }

  .service-title {
    font-size: 18px;
  }

  .cities {
    padding: 60px 16px;
  }

  .cities-title {
    font-size: 24px;
  }

  .map-image {
    height: 300px;
  }

  .cities-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .sidebar {
    width: 280px;
  }
}

/* Sidebar responsive adjustments */

@media (max-width: 480px) {
  .header-container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 28px;
    line-height: 1.3;
  }

  .form-input {
    font-size: 16px;
    padding: 14px 14px 14px 42px;
  }

  .dropdown-btn {
    padding: 14px 16px;
    font-size: 16px;
  }

  .search-btn {
    padding: 18px;
    font-size: 16px;
  }

  .services-container {
    grid-template-columns: 1fr;
  }

  .service-image {
    height: 160px;
  }

  .service-content {
    padding: 16px;
  }

  .service-title {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .cities-header {
    text-align: center;
  }

  .cities-title {
    font-size: 20px;
  }

  .map-image {
    height: 250px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeIn 0.8s ease-out;
}

.search-form {
  animation: fadeIn 1s ease-out 0.2s both;
}

/* Focus styles for accessibility */
.form-input:focus,
.dropdown-btn:focus,
.search-btn:focus,
.nav-link:focus,
.menu-toggle:focus {
  outline: 2px solid #00b2a9;
  outline-offset: 2px;
}

/* High contrast improvements */
@media (prefers-contrast: high) {
  .hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
      url("https://images.unsplash.com/photo-1571091718767-18b5b1457add?w=1920&h=1080&fit=crop&crop=center");
  }

  .form-input,
  .dropdown-btn {
    border-width: 2px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero {
    background-attachment: scroll;
  }
}

/* pour les icons */

.delivery-custom-marker {
  width: 40px;
  height: 40px;
  background-color: #fff;
  border: 3px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 14px;
  font-weight: bold;
  box-shadow: var(--delivery-shadow-lg);
  cursor: pointer;
  transition: var(--delivery-transition);
}

.delivery-custom-marker:hover {
  transform: scale(1.1);
}

.delivery-marker-driver-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* --------------------------------------- */
.eat-footer {
  max-width: 1500px;
  margin: 0 auto;
  background: #fff;
  color: #000;
  font-family: Arial, sans-serif;
  padding: 40px 20px;
  font-size: 14px;
  margin-top: 50px;
  border-radius: 16px;
}

.eat-footer a {
  color: #000;
  text-decoration: none;
}

.eat-footer a:hover {
  text-decoration: underline;
}

/* --- Top --- */
.eat-footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.eat-footer-logo h2 {
  font-size: 26px;
  font-weight: bold;
}

.eat-footer-links {
  display: flex;
  gap: 60px;
}

.eat-footer-links ul {
  list-style: none;
  padding: 0;
}

.eat-footer-links li {
  margin-bottom: 8px;
}

/* --- Store Buttons --- */
.eat-footer-stores {
  margin: 20px 0;
}

.eat-footer-stores img {
  height: 40px;
  margin-right: 15px;
}

/* --- Bottom --- */
.eat-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.eat-footer-socials a {
  margin-right: 12px;
  font-size: 18px;
}

.eat-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.eat-footer-copy {
  margin-top: 15px;
  text-align: center;
  font-size: 12px;
  color: #555;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .eat-footer-top {
    flex-direction: column;
    gap: 20px;
  }

  .eat-footer-links {
    flex-direction: column;
    gap: 20px;
  }

  .eat-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------------------------- */

.type {
  display: flex;
}

/* -----commande--------------*/

.com-container {
  max-width: 1500px;
  margin: auto;
  padding: 20px;
}

/* Section Header */
.com-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 40px;
}

.com-header-text h1 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.com-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.com-form input,
.com-form button {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.com-form button {
  background: var(--black);
  color: white;
  cursor: pointer;
}

.com-header img {
  width: 100%;
  border-radius: 10px;
}

/* Suggestions */
.com-suggestions {
  margin: 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.com-suggestion-card {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  background: #fafafa;
}

/* Planifiez */
.com-plan {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin: 40px 0;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 10px;
}

.com-plan img {
  max-width: 100%;
}

.com-plan h2 {
  margin-bottom: 15px;
}

.com-plan .com-form-inline {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.com-plan .com-form-inline input {
  flex: 1;
}

.com-plan .com-form-inline button {
  flex: 0.3;
}

/* Déplacements */
.com-move {
  margin: 40px 0;
}

.com-move h2 {
  margin-bottom: 20px;
}

.com-move-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.com-move-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.com-move-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.com-move-card .com-card-body {
  padding: 15px;
  flex: 1;
}

.com-move-card button {
  margin: 15px;
  padding: 12px;
  border: none;
  border-radius: 6px;
  background: var(--black);
  color: white;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .com-header {
    grid-template-columns: 1fr;
  }

  .com-plan {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .com-plan .com-form-inline {
    display: block;
  }
}
