/* =============================================
   YAMOMARKET – FEUILLE DE STYLE PRINCIPALE
   Couleurs : Orange #F97316 | Vert #16A34A | Blanc #FFFFFF
   ============================================= */

:root {
  --orange: #F97316;
  --orange-dark: #EA580C;
  --orange-light: #FED7AA;
  --green: #16A34A;
  --green-dark: #15803D;
  --green-light: #DCFCE7;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Poppins', sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

/* ===================== HEADER ===================== */
.main-header {
  background: linear-gradient(135deg, var(--orange-dark) 0%, var(--orange) 50%, var(--green) 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 46px;
  height: 46px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  backdrop-filter: blur(4px);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-yamo { font-size: 1.5rem; font-weight: 800; color: white; line-height: 1; }
.logo-market { font-size: 1.5rem; font-weight: 300; color: rgba(255,255,255,0.9); line-height: 1; }
.logo-text small { font-size: 0.65rem; color: rgba(255,255,255,0.75); margin-top: 1px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main-nav a {
  color: rgba(255,255,255,0.9);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.main-nav a:hover, .main-nav a.active {
  background: rgba(255,255,255,0.2);
  color: white;
}

.btn-nav-vendor {
  background: white !important;
  color: var(--orange) !important;
  font-weight: 600 !important;
}

.btn-nav-vendor:hover {
  background: var(--orange-light) !important;
}

.btn-nav-login {
  background: rgba(255,255,255,0.15) !important;
  border: 1px solid rgba(255,255,255,0.4) !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0.5rem 1.5rem 1rem;
  gap: 0.25rem;
}

.mobile-nav a {
  color: rgba(255,255,255,0.9);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  display: block;
}

.mobile-nav a:hover { background: rgba(255,255,255,0.15); }

/* ===================== HERO ===================== */
.hero-section {
  min-height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  background-image: url('https://sspark.genspark.ai/cfimages?u1=gqroBsqu0xXSnNiDIZRWCk%2Fj4SU7CLIh36XfV0TqPvlxTFWOfag6Dox6Tuf7uryhvFFToo8r22qzZY5XzL0pr3H3MW74ncovQCckp5CC&u2=%2Fhr%2FXNuBDM8Ya9ni&width=2560');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(249,115,22,0.85) 0%,
    rgba(22,163,74,0.75) 50%,
    rgba(0,0,0,0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
  color: white;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-title .highlight {
  color: var(--orange-light);
  display: block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: 0.9;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats .stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
  background: rgba(255,255,255,0.15);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 4px 14px rgba(249,115,22,0.4);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.5);
}

.btn-secondary {
  background: var(--green);
  color: white;
  box-shadow: 0 4px 14px rgba(22,163,74,0.4);
}
.btn-secondary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.btn-large { padding: 1rem 2.25rem; font-size: 1.05rem; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--orange);
  color: var(--orange);
}
.btn-outline:hover { background: var(--orange); color: white; }

.btn-danger {
  background: #DC2626;
  color: white;
}
.btn-danger:hover { background: #B91C1C; }

.btn-success {
  background: var(--green);
  color: white;
}

.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }

/* ===================== CONTAINER ===================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===================== SECTION TITLES ===================== */
.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--gray-800);
}

.section-title span {
  background: linear-gradient(135deg, var(--orange), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-600);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* ===================== HOW IT WORKS ===================== */
.how-it-works {
  padding: 5rem 0;
  background: white;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.step-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  border: 2px solid var(--gray-200);
  position: relative;
  transition: all 0.3s;
}

.step-card:hover {
  border-color: var(--orange);
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(249,115,22,0.4);
}

.step-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--orange-light), var(--green-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--orange);
  margin: 1rem auto 1.5rem;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--gray-800);
}

.step-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===================== ADVANTAGES ===================== */
.advantages-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--green-light) 100%);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.advantage-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.advantage-card i {
  font-size: 2.5rem;
  color: var(--orange);
  margin-bottom: 1rem;
  display: block;
}

.advantage-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--gray-800);
}

.advantage-card p {
  color: var(--gray-600);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ===================== CTA VENDOR ===================== */
.cta-vendor-section {
  padding: 5rem 0;
  background: white;
}

.cta-vendor-card {
  background: linear-gradient(135deg, var(--orange-dark), var(--orange), var(--green));
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  color: white;
  box-shadow: var(--shadow-xl);
  flex-wrap: wrap;
}

.cta-text { flex: 1; min-width: 280px; }

.cta-text h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.cta-text p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.cta-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cta-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.cta-features i { color: var(--orange-light); }

.cta-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  min-width: 220px;
}

.btn-cta-main {
  background: white;
  color: var(--orange);
  font-size: 1.05rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: all 0.25s;
  width: 100%;
  justify-content: center;
}

.btn-cta-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.wave-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.2);
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  backdrop-filter: blur(4px);
  width: 100%;
}

.wave-info img { height: 30px; filter: brightness(10); }

.wave-info div {
  display: flex;
  flex-direction: column;
}

.wave-info small { font-size: 0.7rem; opacity: 0.8; }
.wave-info strong { font-size: 1rem; }

/* ===================== PRODUCTS ===================== */
.products-section {
  padding: 5rem 0;
  background: var(--gray-50);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-600);
}

.empty-state i {
  font-size: 4rem;
  color: var(--gray-300);
  display: block;
  margin-bottom: 1rem;
}

.empty-state p { font-size: 1.1rem; margin-bottom: 0.5rem; }
.empty-state small { font-size: 0.875rem; color: var(--gray-400, #9CA3AF); }

/* ===================== PRODUCT CARD ===================== */
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.product-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-img i { font-size: 3rem; color: var(--gray-300); }

.product-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--gray-800);
}

.product-card-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.product-card-stock {
  font-size: 0.8rem;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.product-card-stock.out-of-stock { color: #DC2626; }

.product-card-vendor {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ===================== FOOTER ===================== */
.main-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo i { color: var(--orange); }

.footer-col p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--gray-300);
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col ul li {
  font-size: 0.875rem;
  color: var(--gray-300);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-col ul li a {
  color: var(--gray-300);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--orange); }

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #374151;
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* ===================== FORMS ===================== */
.page-wrapper {
  min-height: calc(100vh - 80px);
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--green-light) 100%);
}

.form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  max-width: 700px;
  margin: 0 auto;
}

.form-card-wide {
  max-width: 900px;
}

.form-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-title i { color: var(--orange); }

.form-subtitle {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-group label .required { color: #DC2626; margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--gray-800);
  background: white;
  transition: border-color 0.2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 0.3rem;
}

.form-error {
  font-size: 0.8rem;
  color: #DC2626;
  margin-top: 0.3rem;
  display: none;
}

.form-divider {
  border: none;
  border-top: 2px solid var(--gray-100);
  margin: 1.75rem 0;
}

.section-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===================== ALERTS ===================== */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.alert-warning {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
}

.alert-success {
  background: var(--green-light);
  color: var(--green-dark);
  border: 1px solid #86EFAC;
}

.alert-error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.alert-info {
  background: #DBEAFE;
  color: #1E40AF;
  border: 1px solid #93C5FD;
}

/* ===================== STATUS BADGES ===================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-pending { background: #FEF3C7; color: #92400E; }
.badge-active { background: var(--green-light); color: var(--green-dark); }
.badge-expired { background: #FEE2E2; color: #991B1B; }
.badge-suspended { background: var(--gray-100); color: var(--gray-600); }

/* ===================== RESPONSIVE TABLETTE (max 1024px) ===================== */
@media (max-width: 1024px) {
  .dashboard-layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    padding: 0.75rem 0;
    flex-direction: row;
    overflow-x: auto;
  }
  .sidebar-title { display: none; }
  .sidebar-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 0 1rem;
    gap: 0.25rem;
    flex: 1;
    overflow-x: auto;
  }
  .sidebar-nav a {
    white-space: nowrap;
    padding: 0.6rem 1rem;
    border-right: none !important;
    border-bottom: 3px solid transparent;
    font-size: 0.8rem;
  }
  .sidebar-nav a.active, .sidebar-nav a:hover {
    border-bottom: 3px solid var(--orange) !important;
    border-right: none !important;
  }
  .main-content { padding: 1.5rem; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===================== RESPONSIVE MOBILE (max 768px) ===================== */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .mobile-nav.open { display: flex; }

  .hero-section { min-height: 75vh; background-attachment: scroll; }
  .hero-content { padding: 2.5rem 1.25rem; }
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-stats { gap: 0.75rem; }
  .hero-stats .stat { font-size: 0.78rem; padding: 0.4rem 0.75rem; }

  .cta-vendor-card { flex-direction: column; padding: 1.5rem; gap: 1.5rem; }
  .cta-action { width: 100%; }
  .btn-cta-main { font-size: 0.95rem; }

  .form-card { padding: 1.25rem; margin: 0 0.75rem; }
  .form-grid { grid-template-columns: 1fr; }

  .steps-grid { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Upload photos 3 colonnes → 3 colonnes resserrées sur mobile */
  #photoUploadArea { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }

  .data-table-wrapper { border-radius: 8px; }
  .data-table-header { flex-direction: column; align-items: flex-start; }
  .data-table-search input { width: 100%; }

  /* Sidebar dashboard sur mobile */
  .sidebar { overflow-x: auto; }
  .sidebar-nav { padding: 0 0.5rem; }
  .sidebar-nav a { padding: 0.5rem 0.75rem; font-size: 0.75rem; }
  .main-content { padding: 1rem; }

  .shops-header { padding: 2rem 0; }
  .shops-header h1 { font-size: 1.5rem; }
  .search-filter-bar { flex-direction: column; }
  .search-input-main { min-width: 100%; }
}

/* ===================== RESPONSIVE PETIT MOBILE (max 480px) ===================== */
@media (max-width: 480px) {
  .hero-title { font-size: 1.5rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-stats { flex-direction: column; align-items: center; }

  .advantages-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-card { margin: 0 0.5rem; padding: 1rem; }

  .logo-yamo, .logo-market { font-size: 1.2rem; }

  .btn-large { padding: 0.875rem 1.5rem; font-size: 0.95rem; }

  /* Produits en 1 colonne sur très petit écran */
  .products-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }

  #photoUploadArea { gap: 0.4rem; }

  .modal-box { padding: 1.25rem; }

  /* Admin table scrollable */
  .data-table-wrapper { overflow-x: auto; }
  table { min-width: 500px; }
}

/* ===================== DASHBOARD ===================== */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 80px);
}

.sidebar {
  width: 260px;
  background: var(--gray-900);
  color: white;
  padding: 1.5rem 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-title {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-600);
  border-bottom: 1px solid #374151;
  margin-bottom: 1rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--gray-300);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(249,115,22,0.15);
  color: var(--orange);
  border-right: 3px solid var(--orange);
}

.sidebar-nav a i { width: 20px; text-align: center; }

.main-content {
  flex: 1;
  padding: 2rem;
  background: var(--gray-50);
  overflow-y: auto;
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-800);
}

.page-header p { color: var(--gray-600); font-size: 0.95rem; }

/* ===================== STATS CARDS ===================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s;
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.stat-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-icon-orange { background: var(--orange-light); color: var(--orange); }
.stat-icon-green { background: var(--green-light); color: var(--green); }
.stat-icon-blue { background: #DBEAFE; color: #2563EB; }
.stat-icon-red { background: #FEE2E2; color: #DC2626; }

.stat-card-info h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-800);
  line-height: 1;
}

.stat-card-info p {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
}

/* ===================== TABLES ===================== */
.data-table-wrapper {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.data-table-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-200);
  flex-wrap: wrap;
  gap: 1rem;
}

.data-table-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
}

.data-table-search {
  position: relative;
}

.data-table-search i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-300);
}

.data-table-search input {
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: var(--font);
  outline: none;
  width: 240px;
  transition: border-color 0.2s;
}

.data-table-search input:focus { border-color: var(--orange); }

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  background: var(--gray-50);
  padding: 0.875rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-600);
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

tbody td {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--gray-50); }

.table-actions { display: flex; gap: 0.5rem; }

/* ===================== NOTIFICATIONS ===================== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: white;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  animation: slideUp 0.3s ease;
  max-width: 360px;
  border-left: 4px solid var(--orange);
}

.toast.success { border-color: var(--green); }
.toast.error { border-color: #DC2626; }

@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===================== LOADING ===================== */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===================== PRODUCT IMAGE UPLOAD ===================== */
.image-upload-area {
  border: 2px dashed var(--gray-200);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.image-upload-area:hover, .image-upload-area.dragover {
  border-color: var(--orange);
  background: var(--orange-light);
}

.image-upload-area i { font-size: 2.5rem; color: var(--gray-300); margin-bottom: 0.75rem; display: block; }
.image-upload-area p { font-size: 0.875rem; color: var(--gray-600); }
.image-upload-area small { font-size: 0.75rem; color: var(--gray-400, #9CA3AF); }

.images-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.image-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-item .remove-img {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: rgba(220,38,38,0.9);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  cursor: pointer;
  border: none;
}

/* ===================== UPLOAD ZONES ===================== */
.upload-zone {
  border: 2px dashed var(--gray-200);
  border-radius: 12px;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gray-50);
}

.upload-zone:hover {
  border-color: var(--orange);
  background: var(--orange-light);
}

.upload-zone i {
  font-size: 2rem;
  color: var(--gray-300);
  display: block;
  transition: color 0.2s;
}

.upload-zone:hover i { color: var(--orange); }

.upload-zone p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0;
}

.upload-zone small {
  font-size: 0.75rem;
  color: #9CA3AF;
}

.upload-zone-sm {
  border-radius: 10px;
  padding: 1rem 0.5rem;
}

.upload-zone-sm i { font-size: 1.4rem; }
.upload-zone-sm small { font-size: 0.7rem; }

/* ===================== SUBSCRIPTION BANNER ===================== */
.subscription-banner {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  padding: 1.25rem 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.subscription-banner.expired {
  background: linear-gradient(135deg, #DC2626, #B91C1C);
}

.subscription-banner.expiring {
  background: linear-gradient(135deg, #D97706, #B45309);
}

/* ===================== MODAL ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-header h3 { font-size: 1.25rem; font-weight: 700; }

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gray-600);
  transition: background 0.2s;
}

.modal-close:hover { background: var(--gray-200); }

/* ===================== BOUTIQUE PAGE ===================== */
.shops-header {
  background: linear-gradient(135deg, var(--orange-dark), var(--green));
  color: white;
  padding: 3rem 0;
}

.shops-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.shops-filter {
  padding: 1.5rem 0;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 80px;
  z-index: 100;
}

.search-filter-bar {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-input-main {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-input-main i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-300);
}

.search-input-main input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.75rem;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
}

.search-input-main input:focus { border-color: var(--orange); }

/* ===================== CORRECTIONS GÉNÉRALES v3 ===================== */

/* Utilitaire responsive */
@media (max-width: 480px) {
  .hide-xs { display: none !important; }
}

/* Tables : toujours scrollable sur mobile */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--gray-200); }
th { font-weight: 600; background: var(--gray-50); color: var(--gray-700); }
tr:hover td { background: var(--gray-50); }
.data-table-wrapper > div { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Boutons actions dans tableaux */
.table-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: nowrap;
  align-items: center;
}

/* Dashboard mobile (< 768px) */
@media (max-width: 768px) {
  .dashboard-layout {
    flex-direction: column;
    min-height: auto;
  }
  .sidebar {
    width: 100% !important;
    min-height: auto !important;
    padding: 0 !important;
    flex-direction: row !important;
  }
  .sidebar-nav {
    flex-direction: row !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.5rem !important;
    gap: 0.2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sidebar-nav::-webkit-scrollbar { display: none; }
  .sidebar-nav a {
    white-space: nowrap;
    font-size: 0.72rem !important;
    padding: 0.5rem 0.65rem !important;
    gap: 0.4rem;
    flex-shrink: 0;
    border-right: none !important;
    border-bottom: 3px solid transparent;
  }
  .sidebar-nav a.active {
    border-bottom: 3px solid var(--orange) !important;
    border-right: none !important;
  }
  .main-content { padding: 1rem !important; }
  .stat-card { padding: 1rem; }
  .stat-card h3 { font-size: 1.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.75rem; }
  .page-header h1 { font-size: 1.25rem; }
  .page-header { padding: 1rem 0 0.75rem; }
  .modal-box { padding: 1.25rem; border-radius: 12px; }
  .form-grid { grid-template-columns: 1fr !important; }
}

/* Formulaires responsive */
@media (max-width: 640px) {
  .form-card-wide { margin: 0; border-radius: 0; }
  .container { padding: 0 0.75rem; }
}

/* Bouton succès WhatsApp */
.btn-success {
  background: #25D366;
  color: white;
  border: none;
}
.btn-success:hover { background: #128C7E; }

/* Overlay modal : fermeture au clic arrière */
.modal-overlay { cursor: default; }
.modal-box { cursor: default; }

/* Amélioration card identité */
.id-card img {
  display: block;
  max-width: 100%;
}

/* Animation fade-in pour les grilles */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.product-card, .id-card, .shop-card {
  animation: fadeIn 0.25s ease both;
}

/* Scroll-smooth global */
html { scroll-behavior: smooth; }

/* Focus visible amélioré pour accessibilité */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* Correction : form-error doit être block quand affiché */
.form-error {
  display: none;
  color: #DC2626;
  font-size: 0.78rem;
  margin-top: 0.35rem;
}

/* Badge par défaut pour statuts inconnus */
.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.6rem; border-radius: 50px; font-size: 0.72rem; font-weight: 600; }
.badge-unknown, .badge- { background: var(--gray-100); color: var(--gray-600); }

/* Toast positioning */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  background: white;
  border-left: 4px solid var(--orange);
  box-shadow: var(--shadow-xl);
  border-radius: 10px;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  max-width: 360px;
  font-family: var(--font);
}
@media (max-width: 480px) {
  .toast { right: 0.75rem; left: 0.75rem; max-width: none; }
}
