/* ============================================
   3aychek.com — Global Styles
   Colors: Tunisia Red + Mediterranean Blue/Green
   ============================================ */

:root {
  --red: #C8102E;
  --red-dark: #9E0B24;
  --red-light: #FF3355;
  --blue: #1565C0;
  --blue-dark: #0D47A1;
  --blue-light: #42A5F5;
  --green: #2E7D5E;
  --green-light: #4CAF82;
  --white: #FFFFFF;
  --light: #F8F9FA;
  --light-2: #EEF2F7;
  --dark: #1A1A2E;
  --dark-2: #16213E;
  --gray: #6C757D;
  --gray-light: #ADB5BD;
  --border: #DEE2E6;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --font: 'Inter', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }

/* ============ TYPOGRAPHY ============ */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--gray); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,16,46,0.35); }

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

.btn-white {
  background: var(--white);
  color: var(--red);
}
.btn-white:hover { background: var(--light); transform: translateY(-2px); }

.btn-blue {
  background: var(--blue);
  color: var(--white);
}
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-2px); }

.btn-green {
  background: var(--green);
  color: var(--white);
}
.btn-green:hover { background: #1f5c43; transform: translateY(-2px); }

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============ NAVIGATION ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-badge {
  background: var(--red);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  transition: var(--transition);
}
.navbar-links a:hover { color: var(--red); }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Services Dropdown */
.dropdown { position: relative; }
.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.dropdown-trigger:hover { background: var(--light); color: var(--red); }
.dropdown-trigger i { font-size: 0.75rem; transition: var(--transition); }
.dropdown:hover .dropdown-trigger i { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  min-width: 240px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  transition: var(--transition);
}
.dropdown-item:hover { background: var(--light); color: var(--red); }
.dropdown-item .icon { font-size: 1.1rem; width: 28px; text-align: center; }
.dropdown-item .badge-soon {
  margin-left: auto;
  background: var(--light-2);
  color: var(--gray);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
}

/* Mobile Nav */
.hamburger { display: none; background: none; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }

/* ============ HERO SECTION ============ */
.hero {
  padding-top: 70px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fff 0%, #FFF5F7 40%, #F0F7FF 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,16,46,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(21,101,192,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,16,46,0.08);
  color: var(--red);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(200,16,46,0.15);
}

.hero-title { margin-bottom: 20px; color: var(--dark); }
.hero-title span { color: var(--red); }

.hero-subtitle { font-size: 1.1rem; margin-bottom: 36px; max-width: 480px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup {
  width: 280px;
  background: white;
  border-radius: 40px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.15), 0 0 0 8px var(--dark);
  overflow: hidden;
  position: relative;
}

.phone-status { background: var(--dark); height: 28px; display: flex; align-items: center; justify-content: center; }
.phone-status-bar { width: 80px; height: 4px; background: rgba(255,255,255,0.3); border-radius: 2px; }
.phone-screen { background: var(--light); min-height: 500px; }
.phone-screen-header { background: var(--red); padding: 20px 16px 16px; }
.phone-screen-header h4 { color: white; font-size: 1rem; margin-bottom: 2px; }
.phone-screen-header p { color: rgba(255,255,255,0.8); font-size: 0.75rem; }
.phone-product-list { padding: 12px; }
.phone-product {
  background: white;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.phone-product-img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--light-2); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.phone-product-info h5 { font-size: 0.8rem; color: var(--dark); margin-bottom: 2px; }
.phone-product-info p { font-size: 0.7rem; color: var(--red); font-weight: 700; }
.phone-product-add { margin-left: auto; background: var(--red); color: white; border: none; width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; cursor: pointer; }

/* ============ SECTIONS ============ */
.section { padding: 80px 24px; }
.section-sm { padding: 60px 24px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red);
  margin-bottom: 12px;
}
.section-title { color: var(--dark); margin-bottom: 16px; }
.section-sub { max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ============ HOW IT WORKS ============ */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step-card {
  text-align: center;
  padding: 36px 24px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}
.step-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-light));
  color: white;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 20px;
}
.step-icon { font-size: 2rem; margin-bottom: 16px; }
.step-card h3 { margin-bottom: 10px; color: var(--dark); }

/* ============ SERVICES CARDS ============ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.service-card {
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.service-card::before { content: ''; position: absolute; inset: 0; background: var(--red); opacity: 0; transition: var(--transition); }
.service-card:hover { border-color: var(--red); transform: translateY(-4px); }
.service-card:hover::before { opacity: 0.03; }
.service-card .emoji { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.service-card h3 { font-size: 1rem; color: var(--dark); margin-bottom: 6px; }
.service-card p { font-size: 0.85rem; }
.service-card .coming-soon {
  display: inline-block;
  background: var(--light-2);
  color: var(--gray);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 8px;
}

/* ============ PRICING ============ */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; max-width: 800px; margin: 0 auto; }
.pricing-card {
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  text-align: center;
  transition: var(--transition);
}
.pricing-card.featured {
  border-color: var(--red);
  position: relative;
  box-shadow: var(--shadow-lg);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 20px;
  border-radius: 50px;
  white-space: nowrap;
}
.pricing-label { font-size: 0.85rem; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.pricing-amount { margin: 20px 0; }
.pricing-amount .amount { font-size: 3rem; font-weight: 900; color: var(--dark); }
.pricing-amount .currency { font-size: 1.2rem; font-weight: 600; color: var(--gray); vertical-align: top; margin-top: 10px; display: inline-block; }
.pricing-amount .period { font-size: 0.9rem; color: var(--gray); }
.pricing-trial { background: rgba(200,16,46,0.08); color: var(--red); padding: 8px 16px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600; margin-bottom: 24px; display: inline-block; }
.pricing-features { text-align: left; margin-bottom: 32px; }
.pricing-features li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.9rem; color: var(--dark); border-bottom: 1px solid var(--border); }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li i { color: var(--green); font-size: 0.85rem; }

/* ============ STATS ============ */
.stats-section { background: var(--dark); color: white; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px; text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 900; color: var(--red-light); }
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* ============ CTA SECTION ============ */
.cta-section {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: white;
  text-align: center;
}
.cta-section h2 { color: white; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin: 16px 0 36px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.footer {
  background: var(--dark-2);
  color: rgba(255,255,255,0.7);
  padding: 60px 24px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 0.9rem; margin-top: 12px; line-height: 1.7; }
.footer-col h4 { color: white; margin-bottom: 16px; font-size: 0.95rem; }
.footer-links a {
  display: block;
  font-size: 0.875rem;
  padding: 4px 0;
  transition: var(--transition);
  color: rgba(255,255,255,0.6);
}
.footer-links a:hover { color: var(--red-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.footer-flag { display: flex; align-items: center; gap: 8px; }

/* ============ ALERTS / TOASTS ============ */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  background: var(--dark);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  max-width: min(90vw, 480px);
  transform: translate(-50%, -80px);
  opacity: 0;
  transition: var(--transition);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.success { border-left: 4px solid var(--green); }
.toast.error { border-left: 4px solid var(--red); }
.toast.info { border-left: 4px solid var(--blue); }

/* ============ MODALS ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 500px;
  width: 100%;
  transform: scale(0.95);
  transition: var(--transition);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-close { background: var(--light); border: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; color: var(--gray); }

/* ============ FORMS ============ */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--dark);
  transition: var(--transition);
  background: white;
}
.form-input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,0.1); }
.form-input::placeholder { color: var(--gray-light); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,..."); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 0.8rem; color: var(--gray); margin-top: 6px; }

/* ============ BADGES ============ */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }
.badge-red { background: rgba(200,16,46,0.1); color: var(--red); }
.badge-green { background: rgba(46,125,94,0.1); color: var(--green); }
.badge-blue { background: rgba(21,101,192,0.1); color: var(--blue); }
.badge-gray { background: var(--light-2); color: var(--gray); }
.badge-orange { background: rgba(255,152,0,0.1); color: #E65100; }

/* ============ WHATSAPP BUTTON ============ */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}
.whatsapp-btn:hover { background: #128C7E; transform: translateY(-2px); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar-links, .navbar-actions { display: none; }
  .hamburger { display: flex; }

  /* Mobile menu: when open, the navbar grows and stacks links + actions vertically
     below the brand/hamburger row (instead of overflowing horizontally off-screen). */
  .navbar.mobile-open {
    height: auto;
    flex-wrap: wrap;
    padding-bottom: 18px;
    row-gap: 4px;
  }
  .navbar.mobile-open .navbar-brand   { order: 1; }
  .navbar.mobile-open .hamburger      { order: 2; }
  .navbar.mobile-open .navbar-links   { order: 3; }
  .navbar.mobile-open .navbar-actions { order: 4; }
  .navbar.mobile-open .navbar-links,
  .navbar.mobile-open .navbar-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 14px;
    margin-top: 10px;
  }
  .navbar.mobile-open .navbar-actions .btn { width: 100%; justify-content: center; }
  .navbar.mobile-open .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 12px; }
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section { padding: 60px 16px; }
  .modal { padding: 24px 20px; }
  .btn-lg { padding: 14px 24px; }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes bellShake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(12deg); }
  75% { transform: rotate(-12deg); }
}
@keyframes slideDownBanner {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.fade-in { animation: fadeInUp 0.6s ease forwards; }
.float { animation: float 3s ease-in-out infinite; }

/* ============ LOADING ============ */
.loading-spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.page-loader {
  position: fixed;
  inset: 0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}
.page-loader.hidden { opacity: 0; pointer-events: none; }

/* ====================================================================
   MOBILE RESPONSIVENESS — public pages (homepage, services/*, login)
   Same approach as dashboard.css: focused ≤600px and ≤380px overrides.
   ==================================================================== */
@media (max-width: 600px) {
  /* Hero: smaller title + stack content */
  .hero-title, .hero h1 { font-size: 1.7rem !important; line-height: 1.15 !important; }
  .hero-subtitle, .hero p { font-size: 0.95rem !important; }
  .hero { padding: 24px 16px !important; }

  /* The 4-CTA grid in hero — let it stretch 1 column for cleaner mobile reading */
  .hero-actions { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important; max-width: 100% !important; }
  .hero-actions .btn-lg { padding: 12px 14px !important; font-size: 0.88rem !important; min-height: 46px; justify-content: center; }

  /* Section titles */
  .section-title { font-size: 1.4rem !important; line-height: 1.2 !important; }
  .section-sub   { font-size: 0.92rem !important; }
  section { padding: 36px 16px !important; }

  /* Services grid: 1 column */
  .services-grid { grid-template-columns: 1fr !important; gap: 12px !important; }

  /* Pricing cards: 1 column */
  .pricing-grid { grid-template-columns: 1fr !important; }

  /* Forms (login, onboarding) */
  .form-container { padding: 20px 16px !important; }
  .form-input, .form-select, select.form-input { font-size: 0.95rem !important; min-height: 44px; }
  .form-label { font-size: 0.85rem !important; }

  /* Footer cols stack */
  .footer-cols { grid-template-columns: 1fr 1fr !important; gap: 18px !important; }
  .footer-bottom { flex-direction: column !important; gap: 8px !important; text-align: center; }

  /* Top nav padding */
  .nav-bar, .navbar { padding: 12px 14px !important; }
  .nav-bar a, .navbar a { font-size: 0.84rem !important; }

  /* Service-page hero */
  .service-hero h1 { font-size: 1.7rem !important; line-height: 1.2 !important; }
  .service-hero p  { font-size: 0.95rem !important; }
  .service-hero { padding: 28px 16px !important; }

  /* Service-page content-area: stack map + panel */
  .content-area { grid-template-columns: 1fr !important; }
  .map-wrapper, #map { height: 280px !important; }
  .sellers-panel { max-height: none !important; }

  /* Search bar on service pages: stack input + select + buttons */
  .search-bar { flex-direction: column !important; gap: 8px !important; }
  .search-bar input, .search-bar select, .search-bar button { width: 100% !important; }
}

@media (max-width: 380px) {
  .hero-title, .hero h1 { font-size: 1.5rem !important; }
  .hero-actions { grid-template-columns: 1fr !important; }
  .section-title { font-size: 1.25rem !important; }
  .footer-cols { grid-template-columns: 1fr !important; }
}

/* ====================================================================
   MOBILE v3 — targeted fixes for issues the user actually reported:
   1. Homepage "Pour les vendeurs" 2-col grid (inline style) overflows → stack
   2. Inner 2x2 step-cards on the seller section → 2 cols then 1 col
   3. Legal hero (terms/privacy/confidentiality/cookies) title not vertically
      centered → make the hero a flex centerer with symmetric padding
   ==================================================================== */
@media (max-width: 768px) {
  /* Force the homepage seller section (uses inline grid-template-columns) to stack */
  .seller-grid { grid-template-columns: 1fr !important; gap: 36px !important; }
  /* Inner step-cards grid (no class — child of .seller-grid second column) */
  .seller-grid > div:last-child { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
}
@media (max-width: 480px) {
  .seller-grid > div:last-child { grid-template-columns: 1fr !important; }
}

/* Legal hero — vertically centered title (fixes "title hugging the top, big empty
   space below" reported on terms/privacy/confidentiality/cookies). Applies on every
   viewport — the asymmetric 70/48 padding was wrong on desktop too. */
.legal-hero {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 56px 24px !important;
}
@media (max-width: 600px) {
  .legal-hero { min-height: 180px; padding: 42px 18px !important; }
  .legal-hero h1 { font-size: 1.55rem !important; line-height: 1.2 !important; }
  .legal-hero p  { font-size: 0.92rem !important; }
}
