/* Empêche le débordement horizontal sur mobile */
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img, video, svg {
  max-width: 100%;
  height: auto;
}

/* Flex children : autoriser le rétrécissement */
.min-w-0 {
  min-width: 0;
}

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.motion-card { will-change: transform, opacity; }
.motion-hero { will-change: transform, opacity; }
.motion-fab { will-change: transform; }
.motion-step { will-change: opacity; }

@media (prefers-reduced-motion: reduce) {
  .motion-card, .motion-hero, .motion-fab, .motion-step {
    animation: none !important;
    transition: none !important;
  }
}

/* Header compact mobile */
.delivery-header-inner {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.delivery-logo {
  height: 1.75rem;
  width: auto;
  max-width: 7.5rem;
  object-fit: contain;
}

/* Menu mobile header */
.mobile-nav-panel {
  display: block;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  animation: mobileNavSlide 0.2s ease-out;
}

.mobile-nav-panel[aria-hidden="true"] {
  display: none;
}

@media (min-width: 768px) {
  .mobile-nav-panel {
    display: none !important;
  }
}

@keyframes mobileNavSlide {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.75rem 0.75rem;
  max-width: 72rem;
  margin: 0 auto;
}

.mobile-nav-link {
  display: block;
  padding: 0.875rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #334155;
  border-radius: 0.5rem;
  transition: background 0.15s, color 0.15s;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  background: #f8fafc;
  color: #8dc63e;
  outline: none;
}

.mobile-nav-link + .mobile-nav-link {
  border-top: 1px solid #f1f5f9;
}

.mobile-nav-link-accent {
  color: #8dc63e;
  font-weight: 600;
}

body.mobile-menu-open {
  overflow: hidden;
}

#mobile-menu-toggle.is-open {
  background: #f0fdf4;
  color: #6da82e;
}

@media (min-width: 640px) {
  .delivery-logo {
    height: 2rem;
    max-width: 9rem;
  }
}

/* Hero recherche adresse (page d'accueil) */
.home-hero-search {
  background: linear-gradient(180deg, #fef9f3 0%, #fff 100%);
  border-bottom: 1px solid #f1f5f9;
}

.home-hero-search-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #8dc63e;
  margin-bottom: 1.25rem;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .home-hero-search-title {
    font-size: 1.625rem;
    margin-bottom: 1.5rem;
  }
}

.home-hero-search-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.home-hero-search-field-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.home-hero-search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 50;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  max-height: min(22rem, 55vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.35rem;
}

.hero-search-status {
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  color: #64748b;
  text-align: center;
}

.hero-search-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.hero-search-item:hover,
.hero-search-item.is-active {
  background: #f0fdf4;
}

.hero-search-thumb {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-search-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  font-size: 1.1rem;
}

.hero-search-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-search-item-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-search-item-meta {
  font-size: 0.75rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-search-item-status {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.45rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

.hero-search-open {
  background: #dcfce7;
  color: #15803d;
}

.hero-search-closed {
  background: #f1f5f9;
  color: #64748b;
}

.home-hero-locate-btn.is-locating {
  opacity: 0.5;
  animation: heroLocatePulse 1s ease-in-out infinite;
}

@keyframes heroLocatePulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@media (min-width: 640px) {
  .home-hero-search-form {
    flex-direction: row;
    align-items: stretch;
    gap: 0.625rem;
  }
}

.home-hero-search-field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.home-hero-search-field:focus-within {
  border-color: #8dc63e;
  box-shadow: 0 0 0 3px rgba(141, 198, 62, 0.15);
}

.home-hero-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-inline-start: 1rem;
  color: #94a3b8;
}

.home-hero-search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.875rem 0.5rem;
  font-size: 0.9375rem;
  color: #0f172a;
  outline: none;
}

.home-hero-search-input::placeholder {
  color: #94a3b8;
}

.home-hero-locate-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 9999px;
  transition: color 0.2s, background 0.2s;
}

.home-hero-locate-btn:hover {
  color: #8dc63e;
  background: #f0fdf4;
}

.home-hero-locate-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.home-hero-search-btn {
  flex-shrink: 0;
  width: 100%;
  padding: 0.875rem 1.75rem;
  background: #8dc63e;
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(141, 198, 62, 0.35);
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.home-hero-search-btn:hover {
  background: #6da82e;
}

.home-hero-search-btn:active {
  transform: scale(0.98);
}

@media (min-width: 640px) {
  .home-hero-search-btn {
    width: auto;
    min-width: 8rem;
  }
}

[dir="rtl"] .home-hero-search-icon {
  padding-inline-start: 0;
  padding-inline-end: 1rem;
}

[dir="rtl"] .home-hero-locate-btn {
  padding: 0.5rem 0.5rem 0.5rem 1rem;
}

/* Formulaire recherche : empilement mobile */
.delivery-search-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 480px) {
  .delivery-search-form {
    flex-direction: row;
    align-items: stretch;
  }
}

.delivery-search-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.delivery-search-btn {
  flex-shrink: 0;
  width: 100%;
}

@media (min-width: 480px) {
  .delivery-search-btn {
    width: auto;
    white-space: nowrap;
  }
}

/* Footer liens longs */
.delivery-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  text-align: center;
}

.delivery-footer-links a,
.delivery-footer-links button {
  font-size: 0.8125rem;
  line-height: 1.3;
  word-break: break-word;
}

/* Tables admin scroll interne */
.delivery-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Interface livreur : boutons larges, lisibilité soleil */
.driver-touch button,
[data-driver-ui] button {
  min-height: 3rem;
  font-size: 1rem;
}

body.driver-ui {
  background: #f8fafc;
}
body.driver-ui .motion-fab {
  box-shadow: 0 8px 24px rgba(141, 198, 62, 0.45);
}

/* ── Formulaires d'inscription partenaires ── */
.reg-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.375rem;
}

.reg-icon {
  width: 1rem;
  height: 1rem;
  color: #8dc63e;
  flex-shrink: 0;
}

.reg-input {
  width: 100%;
  min-width: 0;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.reg-input:focus {
  outline: none;
  border-color: #8dc63e;
  box-shadow: 0 0 0 3px rgba(141, 198, 62, 0.2);
}

.upload-zone {
  position: relative;
  border: 2px dashed #cbd5e1;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #f8fafc;
}

.upload-zone:hover,
.upload-zone--active {
  border-color: #8dc63e;
  background: rgba(141, 198, 62, 0.06);
}

.upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-preview-img {
  max-height: 10rem;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 0.75rem;
  object-fit: contain;
}

.pwd-strength {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}

.pwd-strength-bar {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
}

.pwd-strength--weak { background: #ef4444; }
.pwd-strength--fair { background: #f59e0b; }
.pwd-strength--good { background: #8dc63e; }
.pwd-strength--strong { background: #16a34a; }

.register-tabs {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.register-tab {
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 639px) {
  .register-tabs {
    flex-direction: column;
  }
  .register-tab {
    width: 100%;
    flex: none;
  }
  .register-tab span {
    white-space: normal;
    word-break: break-word;
  }
}

@media (min-width: 640px) {
  .register-tabs {
    flex-direction: row;
  }
}

.register-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Conteneurs page */
.delivery-page {
  width: 100%;
  max-width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

/* Admin nav scroll horizontal si besoin */
.delivery-admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 639px) {
  .delivery-admin-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }
  .delivery-admin-nav a {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* Pages statiques (À propos, Confidentialité, Contact) */
.static-hero {
  background: linear-gradient(135deg, #f8fafc 0%, #f0fdf4 100%);
  border-bottom: 1px solid #e2e8f0;
}

.prose-content {
  color: #334155;
  line-height: 1.75;
}

.static-section {
  margin-bottom: 2rem;
}

.static-section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #8dc63e;
  display: inline-block;
}

.static-section p {
  margin-bottom: 0.875rem;
}

.static-list {
  list-style: disc;
  padding-inline-start: 1.5rem;
  margin-top: 0.5rem;
}

.static-list li {
  margin-bottom: 0.5rem;
}

.static-contact-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.static-dl div {
  margin-bottom: 1rem;
}

.static-dl dt {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 0.25rem;
}

.static-dl dd {
  color: #475569;
}

.static-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: #8dc63e;
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}

.static-social-btn:hover {
  background: #6da82e;
  transform: translateY(-2px);
}

.static-thanks {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: #8dc63e;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

/* Page contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
  }
}

.contact-form-card,
.contact-info-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.375rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #8dc63e;
  box-shadow: 0 0 0 3px rgba(141, 198, 62, 0.2);
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: #8dc63e;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}

.contact-submit:hover {
  background: #6da82e;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.contact-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0fdf4;
  color: #8dc63e;
  border-radius: 0.5rem;
}

.contact-info-item h3 {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}

.contact-info-item p {
  color: #475569;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.contact-alert {
  padding: 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.contact-alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.contact-alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

[dir="rtl"] .static-list {
  padding-inline-start: 0;
  padding-inline-end: 1.5rem;
}

[dir="rtl"] .contact-info-item {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .contact-form label {
  text-align: right;
}

/* Page d'accueil — sections style marketplace */
.home-cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .home-cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .home-cat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.home-cat-card {
  border-radius: 1.25rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
}

.home-cat-visual {
  position: relative;
  height: 11rem;
  overflow: hidden;
}

.home-cat-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-cat-title {
  position: absolute;
  top: 1rem;
  inset-inline-start: 1rem;
  inset-inline-end: 1rem;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.home-cat-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  width: 100%;
  height: 1.5rem;
  color: #8dc63e;
  z-index: 1;
}

.home-cat-body {
  background: #8dc63e;
  color: #fff;
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-cat-body p {
  font-size: 0.875rem;
  line-height: 1.5;
  flex: 1;
}

.home-cat-btn {
  display: inline-block;
  align-self: flex-start;
  background: #1e293b;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  transition: background 0.2s;
}

.home-cat-btn:hover {
  background: #0f172a;
}

/* Bannière promo */
.home-promo-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.1);
}

@media (min-width: 768px) {
  .home-promo-card {
    flex-direction: row;
    min-height: 16rem;
  }
}

.home-promo-image {
  flex: 1;
  min-height: 12rem;
  position: relative;
}

.home-promo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-promo-content {
  flex: 1;
  background: #8dc63e;
  color: #fff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
}

.home-promo-content::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: -12px;
  width: 24px;
  background: #8dc63e;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

[dir="rtl"] .home-promo-content::before {
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  inset-inline-start: auto;
  inset-inline-end: -12px;
}

@media (max-width: 767px) {
  .home-promo-content::before {
    display: none;
  }
}

.home-promo-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.home-promo-content p {
  font-size: 0.9375rem;
  line-height: 1.6;
  opacity: 0.95;
}

.home-promo-btn {
  display: inline-block;
  align-self: flex-start;
  background: #1e293b;
  color: #fff;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  margin-top: 0.5rem;
  transition: background 0.2s;
}

.home-promo-btn:hover {
  background: #0f172a;
}

/* Section PWA */
.home-pwa {
  background: linear-gradient(180deg, #fefce8 0%, #f0fdf4 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.home-pwa-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .home-pwa-inner {
    flex-direction: row;
    text-align: start;
    gap: 2rem;
  }
}

.home-pwa-icon {
  flex-shrink: 0;
  width: 5rem;
  height: 5rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(141, 198, 62, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.home-pwa-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-pwa-text {
  flex: 1;
}

.home-pwa-text h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.home-pwa-text p {
  color: #475569;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.home-pwa-hint {
  font-size: 0.8125rem !important;
  color: #94a3b8 !important;
  margin-top: 0.375rem;
}

.home-pwa-action {
  flex-shrink: 0;
}

.home-pwa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  background: #8dc63e;
  color: #fff;
  font-weight: 700;
  padding: 0.875rem 1.5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  font-size: 0.9375rem;
  box-shadow: 0 4px 14px rgba(141, 198, 62, 0.4);
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.home-pwa-btn:hover {
  background: #6da82e;
  transform: translateY(-1px);
}

.home-pwa-btn.hidden {
  display: none;
}

/* Cartes partenaires */
.home-partners-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .home-partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.home-partner-card {
  background: #fef9f3;
  border: 1px solid #f1e8dc;
  border-radius: 1.25rem;
  padding: 2rem;
  text-align: center;
}

.home-partner-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  color: #8dc63e;
}

.home-partner-icon svg {
  width: 100%;
  height: 100%;
}

.home-partner-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #422006;
  margin-bottom: 0.75rem;
}

.home-partner-card p {
  color: #78716c;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.home-partner-btn {
  display: inline-block;
  width: 100%;
  background: #8dc63e;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  transition: background 0.2s;
}

.home-partner-btn:hover {
  background: #6da82e;
}

/* Villes tunisiennes */
.home-cities {
  background: #f8fafc url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e2e8f0' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.home-cities-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.home-cities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .home-cities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .home-cities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-city-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.home-city-card:hover {
  border-color: #8dc63e;
  box-shadow: 0 2px 12px rgba(141, 198, 62, 0.15);
}

.home-city-card-static {
  cursor: default;
}

.home-city-card-static:hover {
  border-color: #e2e8f0;
  box-shadow: none;
}

.home-city-name {
  font-weight: 700;
  color: #0f172a;
  flex: 1;
}

.home-city-more {
  font-size: 0.8125rem;
  color: #64748b;
}

.home-city-arrow {
  width: 1.25rem;
  height: 1.25rem;
  color: #94a3b8;
  flex-shrink: 0;
}

[dir="rtl"] .home-city-arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .home-cat-btn,
[dir="rtl"] .home-promo-btn {
  align-self: flex-end;
}

.rest-menu-steps .rest-menu-step {
  color: #475569;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.rest-menu-steps .rest-menu-step:hover {
  background: #fff;
  color: #0f766e;
}

.rest-menu-steps .rest-menu-step--active {
  background: #fff;
  color: #0f766e;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
