﻿/* ===== VARIABLES GLOBALES ===== */
  :root {
    --primary-green: #10B981;
    --primary-green-dark: #059669;
    --accent-purple: #8B5CF6;
    --light-bg: #F9FAFB;
    --card-bg: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  }

  /* ===== REINITIALISATION ===== */
  .shops-container * {
    box-sizing: border-box;
  }

  /* ===== CONTENEUR PRINCIPAL ===== */
  .shops-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    min-height: 100vh;
  }

  /* ===== EN-TETE ===== */
  .shops-header {
    margin-bottom: 2rem;
    text-align: center;
  }

  .shops-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    margin-bottom: 0.72rem;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(5,150,105,0.08));
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: #047857;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.08);
  }

  .shops-kicker i {
    font-size: 0.9rem;
  }

  .shops-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .shops-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  /* ===== BARRE DE RECHERCHE ===== */
  .search-container-shops {
    max-width: 600px;
    margin: 0 auto 2rem;
  }

  .search-wrapper-shops {
    position: relative;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
  }

  .search-wrapper-shops:focus-within {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  }

  .search-input-shops {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--card-bg);
  }

  .search-input-shops:focus {
    outline: none;
  }

  .search-btn-shops {
    position: absolute;
    right: 5px;
    top: 5px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .search-btn-shops:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }

  #searchFormShops.is-pending .search-wrapper-shops {
    border-color: rgba(16, 185, 129, 0.45);
  }

  #searchFormShops.is-pending .search-btn-shops {
    box-shadow: var(--shadow-sm);
  }

  /* ===== INTRO TYPE ===== */
  .kind-intro {
    max-width: 860px;
    margin: 0 auto 1rem;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(16, 185, 129, 0.24);
    background: linear-gradient(120deg, rgba(16, 185, 129, 0.08), rgba(37, 99, 235, 0.06));
    text-align: center;
    font-weight: 800;
    color: #065f46;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
  }

  .kind-intro i {
    color: var(--primary-green-dark);
  }

  /* ===== MINI FILTRE (PRODUITS / SERVICES / LOCATION) ===== */
  .kind-filter-wrap {
    max-width: 760px;
    margin: 0 auto 1.75rem;
    text-align: center;
  }

  .kind-filter {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .kind-chip {
    border: 2px solid var(--border-color);
    background: rgba(255,255,255,0.92);
    border-radius: 999px;
    padding: 0.8rem 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    position: relative;
    overflow: hidden;
  }

  .kind-chip::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.45) 55%, rgba(255,255,255,0) 80%);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
    pointer-events: none;
  }

  .kind-chip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  .kind-chip[data-bm-pending="1"] {
    transform: none;
  }

  .kind-chip:hover::after {
    transform: translateX(120%);
  }

  .kind-chip.kind-physical i { color: var(--primary-green-dark); }
  .kind-chip.kind-service i { color: #2563EB; }
  .kind-chip.kind-location i { color: #b45309; }

  .kind-chip.active.kind-physical {
    border-color: rgba(16, 185, 129, 0.75);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14), var(--shadow-md);
    background: rgba(236, 253, 245, 0.78);
  }

  .kind-chip.active.kind-service {
    border-color: rgba(37, 99, 235, 0.75);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), var(--shadow-md);
    background: rgba(239, 246, 255, 0.78);
  }

  .kind-chip.active.kind-location {
    border-color: rgba(180, 83, 9, 0.72);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18), var(--shadow-md);
    background: rgba(255, 247, 237, 0.86);
  }

  .kind-all-label {
    margin-top: 0.65rem;
    font-weight: 900;
    color: var(--text-secondary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.85rem;
  }

  .kind-hidden {
    display: none !important;
  }

  /* ===== BOUTON RETOUR ===== */
  .btn-back-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
  }

  .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, rgba(16,185,129,0.14), rgba(255,255,255,0.96));
    border: 1px solid rgba(16, 185, 129, 0.26);
    color: #065f46;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  }

  .btn-back:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(16, 185, 129, 0.18);
  }

  /* ===== GRILLE DE BOUTIQUES ===== */
  .shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
  }
  .shops-results {
    position: relative;
    min-height: 120px;
    transition: opacity .14s ease;
  }
  .shops-results.is-loading {
    opacity: 0.98;
  }
  .shops-results.is-swapping {
    position: relative;
  }
  .shops-results.is-swapping .shops-grid,
  .shops-results.is-swapping #shopsListing {
    contain: layout paint;
  }
  .shops-results.is-swapping .fade-in-shop,
  .shops-results.is-swapping .shop-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .floating-pagination-nav-shops {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 1004;
    display: none;
    align-items: center;
    gap: 0.55rem;
    width: calc(100% - 1.25rem);
    max-width: 430px;
    padding: 0.45rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(229, 231, 235, 0.94);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .floating-pagination-nav-shops.show {
    display: flex;
  }

  .floating-pagination-btn-shops {
    border: 1px solid #d1d5db;
    background: #fff;
    color: var(--text-primary);
    border-radius: 999px;
    min-height: 42px;
    padding: 0.7rem 0.95rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 122px;
  }

  .floating-pagination-btn-shops.is-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    border-color: var(--primary-green-dark);
    color: #fff;
  }

  .floating-pagination-btn-shops:disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }

  .floating-pagination-status-shops {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: 0.84rem;
    font-weight: 900;
    color: #0f172a;
  }

  /* ===== CARTE BOUTIQUE ===== */
  .shop-card {
    --shop-card-radius: 16px;
    background: var(--card-bg);
    border-radius: var(--shop-card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    position: relative;
    isolation: isolate;
  }

  .shop-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green);
  }

  /* Bannière */
  .shop-banner {
    height: 160px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-purple));
    position: relative;
    border-radius: var(--shop-card-radius) var(--shop-card-radius) 0 0;
  }

  /* Banner as hero image */
  .shop-banner {
    height: 170px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-purple));
    position: relative;
    border-radius: var(--shop-card-radius) var(--shop-card-radius) 0 0;
    overflow: hidden;
    isolation: isolate;
  }

  .shop-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    display: block;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    transform: translateZ(0);
  }

  .shop-banner-image.is-logo-banner {
    object-fit: cover;
    object-position: center;
    padding: 0;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
  }

  .shop-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.02), rgba(15,23,42,0.24));
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    pointer-events: none;
  }

  .shop-banner-initials {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 2rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
  }

  /* Badge vérifié */
  .verified-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-green);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 2;
  }

  /* Badge ouvert / fermé */
  .open-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 2;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: var(--shadow-sm);
  }

  .open-badge.open {
    background: linear-gradient(135deg, #10b981, #059669);
  }

  .open-badge.closed {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
  }

  /* Contenu */
  .shop-card-content {
    padding: 16px;
  }

  .promo-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c2d12, #f59e0b);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(124, 45, 18, 0.18);
  }

  .badge-promo-shop {
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
    color: #9a3412;
    border: 1px solid rgba(217, 119, 6, 0.18);
  }

  .shop-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    line-height: 1.3;
  }

  .shop-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .shop-name a:hover {
    color: var(--primary-green);
  }

  .shop-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 1.4em;
  }

  /* Types (Livraison / Rendez-vous) */
  .shop-type-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
  }

  .type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255,255,255,0.9);
    box-shadow: var(--shadow-sm);
  }

  .badge-physical {
    color: #047857;
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(236, 253, 245, 0.9);
  }

  .badge-service {
    color: #1D4ED8;
    border-color: rgba(37, 99, 235, 0.28);
    background: rgba(239, 246, 255, 0.9);
  }

  .badge-location {
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(255, 247, 237, 0.95);
  }

  .badge-generic {
    color: var(--text-secondary);
    background: rgba(249,250,251,0.95);
  }

  /* Statistiques */
  .shop-stats {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.6rem;
    background: var(--light-bg);
    border-radius: 10px;
  }
  .shop-stats.cols-1 { grid-template-columns: 1fr; }
  .shop-stats.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .shop-stats.cols-3 { grid-template-columns: repeat(3, 1fr); }

  .stat-item {
    text-align: center;
  }

  .stat-number {
    display: block;
    font-weight: 900;
    font-size: 1rem;
    margin-bottom: 0.1rem;
  }

  .stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
  }

  .stat-physical .stat-number {
    color: var(--primary-green);
  }

  .stat-service .stat-number {
    color: #2563EB;
  }

  .stat-location .stat-number {
    color: #c2410c;
  }


  /* Contact */
  .shop-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    padding: 0.5rem 0.6rem;
    background: var(--light-bg);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.8rem;
  }

  .shop-contact i {
    color: var(--primary-green);
  }

  .shop-map-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.22);
    background: linear-gradient(135deg, #2563eb, #22c55e);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    position: relative;
    overflow: hidden;
  }

  .shop-map-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0) 28%, rgba(255,255,255,0.28) 52%, rgba(255,255,255,0) 78%);
    transform: translateX(-130%);
    transition: transform 0.65s ease;
  }

  .shop-map-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.26);
    color: #ffffff;
    filter: saturate(1.08);
  }

  .shop-map-link:hover::after {
    transform: translateX(130%);
  }

  /* Bouton visiter */
  .shop-visit-btn {
    display: block;
    text-align: center;
    padding: 0.65rem 0.75rem;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
  }

  .shop-visit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
  }

  /* ===== ETAT VIDE ===== */
  .empty-state-shops {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 2px dashed var(--border-color);
    margin: 3rem 0;
  }

  .empty-icon-shops {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    opacity: 0.5;
  }

  .empty-title-shops {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
  }

  .empty-text-shops {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
  }

  /* ===== PAGINATION ===== */
  .pagination-shops {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 3rem;
    flex-wrap: wrap;
  }

  .pagination-shops {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
  }

  .pagination-slot {
    display: flex;
    align-items: center;
  }

  .pagination-prev-slot {
    justify-content: flex-end;
  }

  .pagination-next-slot {
    justify-content: flex-start;
  }

  .pagination-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-width: 0;
  }

  .page-link-shops {
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 42px;
    text-align: center;
    text-decoration: none;
  }
  .page-link-shops.prev-link,
  .page-link-shops.next-link {
    min-width: 118px;
    padding-inline: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
  }
  .page-link-shops.next-link {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: #fff;
    border-color: var(--primary-green-dark);
    box-shadow: 0 10px 22px rgba(16, 185, 129, 0.25);
  }
  .page-link-shops.next-link:hover:not(.disabled):not(.active) {
    color: #fff;
    border-color: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(16, 185, 129, 0.32);
    background: linear-gradient(135deg, var(--primary-green-dark), var(--primary-green));
  }

  .page-link-shops:hover:not(.disabled):not(.active) {
    background: rgba(16, 185, 129, 0.05);
    color: var(--primary-green);
    border-color: var(--primary-green);
  }

  .page-link-shops[data-bm-pending="1"] {
    transform: none;
  }

  .page-link-shops.active {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
  }

  .page-link-shops.disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  .page-link-shops.prev-link.disabled,
  .page-link-shops.next-link.disabled {
    min-width: 118px;
    padding-inline: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
  }

  /* ===== RESPONSIVE DESIGN ===== */

  /* Tablettes */
  @media (max-width: 1200px) {
    .shops-grid {
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 1rem;
    }
  }

  @media (max-width: 992px) {
    .shops-container {
      padding: 0.875rem;
    }
    
    .shops-title {
      font-size: 2rem;
    }
    
    .shops-grid {
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 0.9rem;
    }
    
    .shop-banner { height: 145px; }
    
    .shop-card-content { padding: 14px; }
  }

  /* Mobile large */
  @media (max-width: 768px) {
    .shops-container {
      padding: 0.68rem;
    }
    
    .shops-header {
      margin-bottom: 1.08rem;
    }

    .shops-kicker {
      margin-bottom: 0.56rem;
      padding: 0.34rem 0.68rem;
      font-size: 0.72rem;
    }
    
    .shops-title {
      font-size: 1.52rem;
      margin-bottom: 0.32rem;
    }
    
    .shops-subtitle {
      font-size: 0.9rem;
      margin-bottom: 0.82rem;
    }

    .search-container-shops {
      margin: 0 auto 1.2rem;
    }

    .search-wrapper-shops {
      border-radius: 24px;
    }

    .search-input-shops {
      padding: 0.82rem 1rem;
      font-size: 16px;
    }

    .search-btn-shops {
      top: 4px;
      right: 4px;
      padding: 0.66rem 1rem;
      font-size: 0.84rem;
      gap: 0.36rem;
    }

    .kind-intro {
      margin-bottom: 0.82rem;
      padding: 0.6rem 0.78rem;
      font-size: 0.86rem;
      border-radius: 12px;
    }

    .kind-filter-wrap {
      margin: 0 auto 1.15rem;
    }

    .kind-filter {
      gap: 0.52rem;
    }

    .kind-chip {
      padding: 0.62rem 0.88rem;
      font-size: 0.82rem;
      gap: 0.42rem;
    }

    .kind-all-label {
      margin-top: 0.5rem;
      font-size: 0.76rem;
    }

    .btn-back-container {
      margin-bottom: 1.1rem;
    }

    .btn-back {
      padding: 0.58rem 0.96rem;
      font-size: 0.82rem;
      border-radius: 999px;
    }
    
    /* Grille - 2 par ligne */
    .shops-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.62rem;
    }
    
    .shop-banner { height: 128px; }
    
    .shop-card {
      border-radius: 14px;
    }

    .shop-card-content { padding: 11px; }
    
    .shop-name {
      font-size: 0.94rem;
      margin-bottom: 0.28rem;
    }
    
    .shop-description { font-size: 0.76rem; margin-bottom: 0.62rem; height: 1.32em; }

    .shop-type-badges {
      gap: 0.32rem;
      margin-bottom: 0.62rem;
    }

    .type-badge {
      padding: 0.24rem 0.48rem;
      font-size: 0.7rem;
    }
    
    .shop-stats { padding: 0.5rem; gap: 0.36rem; margin-bottom: 0.72rem; border-radius: 9px; }
    
    .stat-number { font-size: 0.88rem; }
    
    .stat-label { font-size: 0.66rem; }
    
    .shop-contact { padding: 0.42rem 0.52rem; font-size: 0.72rem; margin-bottom: 0.68rem; }

    .shop-map-link {
      margin-bottom: 0.68rem;
      padding: 0.58rem 0.68rem;
      font-size: 0.76rem;
      border-radius: 10px;
    }
    
    .shop-visit-btn { padding: 0.58rem 0.64rem; font-size: 0.78rem; border-radius: 9px; }
    
    .verified-badge,
    .open-badge {
      font-size: 0.64rem;
      padding: 0.22rem 0.44rem;
      top: 10px;
    }

    .verified-badge {
      right: 10px;
    }

    .open-badge {
      left: 10px;
    }

    .promo-badge {
      left: 10px;
      bottom: 10px;
      padding: 0.3rem 0.56rem;
      font-size: 0.66rem;
    }
  }

  /* Mobile moyen */
  @media (max-width: 576px) {
    .shops-kicker {
      font-size: 0.68rem;
      padding: 0.3rem 0.58rem;
    }

    .shops-title {
      font-size: 1.3rem;
    }

    .shops-subtitle {
      font-size: 0.84rem;
    }

    .kind-intro {
      margin-bottom: 0.68rem;
      padding: 0.52rem 0.64rem;
      font-size: 0.8rem;
    }
    
    .kind-chip {
      padding: 0.54rem 0.74rem;
      font-size: 0.76rem;
    }

    .shops-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      max-width: none;
      margin-left: 0;
      margin-right: 0;
      gap: 0.54rem;
    }
    
    .shop-banner { height: 118px; }
    
    .shop-name {
      font-size: 0.88rem;
    }
    
    .shop-description { font-size: 0.72rem; height: 1.25em; }
    
    .search-wrapper-shops { border-radius: 24px; }
    
    .search-input-shops { padding: 0.74rem 0.92rem; }
    
    .search-btn-shops { padding: 0.58rem 0.84rem; }

    .search-btn-shops span {
      display: none;
    }

    .shop-card-content {
      padding: 10px;
    }

    .type-badge {
      font-size: 0.66rem;
      padding: 0.2rem 0.42rem;
    }

    .shop-stats {
      padding: 0.44rem;
      gap: 0.3rem;
      margin-bottom: 0.62rem;
    }

    .shop-contact,
    .shop-map-link {
      font-size: 0.68rem;
    }

    .shop-visit-btn {
      font-size: 0.74rem;
      padding: 0.52rem 0.56rem;
    }

    .floating-pagination-nav-shops.show {
      display: flex;
    }
    
    .pagination-shops {
      gap: 0.5rem;
    }
    
    .pagination-shops {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.55rem;
    }

    .pagination-pages {
      grid-column: 1 / -1;
      order: 1;
    }

    .pagination-prev-slot,
    .pagination-next-slot {
      width: auto;
      justify-content: center;
    }

    .pagination-prev-slot {
      order: 2;
      grid-column: 1;
    }

    .pagination-next-slot {
      order: 3;
      grid-column: 2;
    }

    .page-link-shops { padding: 0.55rem 0.75rem; font-size: 0.85rem; min-width: 34px; }
    .page-link-shops.prev-link,
    .page-link-shops.next-link,
    .page-link-shops.prev-link.disabled,
    .page-link-shops.next-link.disabled { min-width: 132px; }
  }

  /* Mobile très petit */
  @media (max-width: 400px) {
    .shops-container {
      padding: 0.56rem;
    }

    .shops-kicker {
      font-size: 0.64rem;
      gap: 0.32rem;
    }
    
    .shops-grid { gap: 0.48rem; }
    
    .shop-banner { height: 108px; }
    
    .shop-card-content { padding: 9px; }
    
    .shop-stats { grid-template-columns: repeat(2, 1fr); padding: 0.42rem; gap: 0.28rem; }
    
    .stat-number { font-size: 0.82rem; }
    
    .stat-label { font-size: 0.62rem; }
  }

  @media (max-width: 360px) {
    .shops-grid {
      grid-template-columns: 1fr;
    }

    .shop-banner {
      height: 132px;
    }
  }

  /* ===== ANIMATIONS ===== */
  .fade-in-shop {
    animation: fadeInShop 0.16s ease-out forwards;
  }

  @keyframes fadeInShop {
    from {
      opacity: 0.92;
      transform: translateY(2px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* ===== PREMIUM ENHANCEMENTS ===== */
  .shops-container {
    background: radial-gradient(circle at 10% 10%, rgba(16,185,129,0.08), transparent 45%),
                radial-gradient(circle at 90% 20%, rgba(139,92,246,0.12), transparent 40%),
                #f7f8fb;
    border-radius: 18px;
  }

  .shops-title {
    background: linear-gradient(90deg, #0f172a, #10b981, #8b5cf6);
    background-size: 200% 100%;
    animation: titleShine 5s ease-in-out infinite;
  }

  .shop-card {
    transform-style: preserve-3d;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    animation: cardIn 0.6s ease both;
    animation-delay: calc(var(--i, 0) * 0.04s);
  }

  @media (hover: hover) {
    .shop-card:hover {
      transform: translateY(-6px) rotateX(2deg) rotateY(-1.5deg);
      box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
      border-color: rgba(16,185,129,0.5);
    }
  }

  .shop-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.25) 55%, rgba(255,255,255,0) 80%);
    transform: translateX(-120%);
    transition: transform 0.8s ease;
    pointer-events: none;
  }

  @media (hover: hover) {
    .shop-card:hover .shop-banner::after {
      transform: translateX(120%);
    }
  }

  .shop-card-content {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
  }

  .shop-stats {
    background: linear-gradient(180deg, #ffffff, #f7f9fb);
    border: 1px solid rgba(148, 163, 184, 0.2);
  }

  .shop-visit-btn {
    position: relative;
    overflow: hidden;
  }

  .shop-visit-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.35) 55%, rgba(255,255,255,0) 80%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
  }

  .shop-visit-btn:hover::after {
    transform: translateX(120%);
  }

  @keyframes cardIn {
    from { opacity: 0.94; transform: translateY(4px) scale(0.995); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  @keyframes titleShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  @media (prefers-reduced-motion: reduce) {
    .shops-title,
    .shop-card {
      animation: none;
      transition: none;
    }
    .shop-banner::after,
    .shop-visit-btn::after {
      transition: none;
    }
  }
