/* ============================================
   SERVICAM – Global Styles
   Mobile-first | Plus Jakarta Sans
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Theme Variables ── */
:root {
  --bg: #fdfdfd;
  --fg: #111;
  --card: #ffffff;
  --card-border: #e8e8e8;
  --primary: #7033ff;
  --primary-dark: #5a22d9;
  --primary-light: rgba(112, 51, 255, 0.08);
  --primary-fg: #ffffff;
  --secondary: #f3f4f6;
  --secondary-fg: #374151;
  --muted: #6b7280;
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.2s ease;
  --max-w: 960px;
  --header-h: 72px;
}

.dark {
  --bg: #0f1117;
  --fg: #f0f0f0;
  --card: #1a1d27;
  --card-border: #2a2d3a;
  --primary: #8c5cff;
  --primary-dark: #a07aff;
  --primary-light: rgba(140, 92, 255, 0.12);
  --secondary: #1e2130;
  --secondary-fg: #d1d5db;
  --muted: #9ca3af;
  --shadow: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.4);
}

/* ── Base ── */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }

/* ── Utility ── */
/* Icône de contact réelle (PNG marque : WhatsApp, téléphone, mail) */
.sc-cic { width: 30px; height: 30px; object-fit: contain; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.sc-cic-sm { width: 18px; height: 18px; }
/* Le logo WhatsApp a plus de marge interne → on l'agrandit dans les footers */
.fd-contact a img[src*="whatsapp"] { width: 24px; height: 24px; }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }

/* Icône de certification (cert.png) — placée DEVANT le nom d'un pro certifié.
   Partagée par toutes les apps (site, pro, admin) via /shared/assets/icons/cert.png */
.cert-ico {
  display: inline-block;          /* surclasse le `img { display:block }` global */
  width: 16px; height: 16px;
  flex-shrink: 0;
  object-fit: contain;
  vertical-align: -3px;
  margin-left: 4px;
}
.cert-ico-lg { width: 22px; height: 22px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

/* ── Buttons (système unifié) ── */
.btn,
.cta-banner-btn,
.gallery-cta-btn,
.pop-cta,
.pf-cta-btn,
.pf-itinerary-btn,
.lightbox-cta,
.geo-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-family: var(--font);
  font-weight: 700; font-size: 14px; line-height: 1.4;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover,
.cta-banner-btn:hover,
.gallery-cta-btn:hover,
.pop-cta:hover,
.pf-cta-btn:hover,
.pf-itinerary-btn:hover,
.lightbox-cta:hover,
.geo-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}
.btn:active { transform: translateY(0); }

/* Variantes — couleurs / fonds */
.btn-primary,
.gallery-cta-btn,
.pop-cta,
.pf-cta-btn,
.pf-itinerary-btn,
.geo-btn-primary {
  background: var(--primary);
  color: var(--primary-fg, #fff);
  box-shadow: 0 4px 14px -2px rgba(112, 51, 255, 0.28);
}
.btn-primary:hover,
.gallery-cta-btn:hover,
.pop-cta:hover,
.pf-cta-btn:hover,
.pf-itinerary-btn:hover,
.geo-btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 10px 26px -4px rgba(112, 51, 255, 0.45);
  color: var(--primary-fg, #fff);
}

.btn-outline,
.geo-btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--card-border);
}
.btn-outline:hover,
.geo-btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 10px 26px -4px rgba(112, 51, 255, 0.35);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-fg);
  border-color: transparent;
}
.btn-secondary:hover {
  background: var(--card-border);
  box-shadow: 0 6px 18px -4px rgba(15, 23, 42, 0.15);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  background: #dc2626;
  box-shadow: 0 10px 26px -4px rgba(220, 38, 38, 0.4);
}

/* Bouton blanc sur fond sombre (CTA banner, lightbox) */
.cta-banner-btn,
.lightbox-cta {
  background: #fff;
  color: #0f0a2a;
  border-radius: 100px;
  box-shadow: 0 6px 22px -4px rgba(0, 0, 0, 0.3);
}
.cta-banner-btn:hover,
.lightbox-cta:hover {
  background: #fff;
  color: #0f0a2a;
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.45);
}

/* Tailles */
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 14px 28px; font-size: 15.5px; border-radius: 14px; }

.btn-icon {
  width: 40px; height: 40px; padding: 0;
  border-radius: 50%;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Form elements ── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; margin-bottom: 6px;
  font-weight: 600; font-size: 14px; color: var(--fg);
}
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px;
  background: var(--card); color: var(--fg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-size: 15px; line-height: 1.5;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-input.error, .form-select.error { border-color: var(--danger); }
.form-error { color: var(--danger); font-size: 12px; margin-top: 4px; display: none; }
.form-error.visible { display: block; }
.form-textarea { min-height: 100px; resize: vertical; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── Header ── */
.header {
  position: relative; z-index: 100;
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
  height: var(--header-h);
}
/* Header : sticky en haut, se cache au scroll vers le bas (mobile + desktop) */
.header {
  position: sticky;
  top: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.header.header-hidden {
  transform: translateY(-100%);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--fg); }
.logo:hover { text-decoration: none; }
.logo-icon {
  width: 36px; height: 36px; background: var(--primary); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 16px;
}
.logo-img {
  width: 65px; height: 65px; object-fit: contain;
}

/* Nav desktop – clean, no bg */
.nav-desktop { display: none; align-items: center; gap: 4px; }
.nav-desktop a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 8px;
  font-weight: 500; font-size: 14px;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
}
.nav-desktop a svg { opacity: 0.55; transition: opacity var(--transition); }
.nav-desktop a:hover { color: var(--fg); text-decoration: none; }
.nav-desktop a:hover svg { opacity: 1; }
.nav-desktop a.active { color: var(--primary); }
.nav-desktop a.active svg { opacity: 1; color: var(--primary); }
/* Nav SVG icon images */
.nav-icon-img {
  width: 20px; height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity 0.2s, filter 0.2s;
}
.nav-desktop a:hover .nav-icon-img,
.nav-desktop a.active .nav-icon-img { opacity: 1; }
.nav-icon-mobile { width: 22px; height: 22px; }
.mobile-menu a:hover .nav-icon-img,
.mobile-menu a.active .nav-icon-img { opacity: 1; }
.theme-toggle .nav-icon-img { width: 18px; height: 18px; opacity: 0.7; }
.theme-toggle:hover .nav-icon-img { opacity: 1; }

/* Dark mode: invert SVG icons to white */
.dark .nav-icon-img { filter: invert(1) brightness(2); }

/* Nav CTA button */
.nav-desktop .nav-cta {
  background: var(--primary);
  color: #fff !important;
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 13px;
  margin-left: 8px;
  transition: background 0.2s, transform 0.15s;
}
.nav-desktop .nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.nav-desktop .nav-cta::after { display: none; }
.nav-desktop .nav-cta svg { display: none; }

/* Active indicator line */
.nav-desktop a::after {
  content: ''; position: absolute; bottom: 0; left: 16px; right: 16px;
  height: 2px; background: var(--primary);
  border-radius: 2px; transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-desktop a.active::after { transform: scaleX(1); }
.nav-desktop a:hover::after { transform: scaleX(1); background: var(--card-border); }
.nav-desktop a.active:hover::after { background: var(--primary); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 6px; }
.theme-toggle, .lang-switch {
  width: 40px; height: 40px;
  border: none; background: none; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; cursor: pointer;
  border-radius: 10px;
  transition: color var(--transition), background var(--transition);
}
.theme-toggle .nav-icon-img { width: 22px; height: 22px; opacity: 0.7; }
.lang-switch {
  width: 40px; height: 40px; padding: 0;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em;
}
.theme-toggle:hover, .lang-switch:hover { color: var(--fg); background: var(--secondary); }

/* PWA install button — masqué par défaut, affiché par pwa.js quand l'install est dispo */
.pwa-install-btn {
  display: none; /* affiché à display:inline-flex par pwa.js si beforeinstallprompt fire */
  align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border: none; background: none; cursor: pointer;
  border-radius: 10px; color: var(--primary, #7033ff);
  transition: color var(--transition), background var(--transition);
}
.pwa-install-btn:hover { background: var(--secondary); }
.pwa-install-btn svg { width: 22px; height: 22px; }
/* Si déjà installée (mode standalone), on cache le bouton */
.pwa-standalone .pwa-install-btn { display: none !important; }
.hamburger {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0;
  background: none; border: none; cursor: pointer; border-radius: 10px;
  transition: background 0.2s;
}
.hamburger:hover { background: var(--secondary); }

/* ── Mobile Menu – Clean Pro ── */
.mobile-menu {
  position: fixed; top: 0; right: 0; width: 300px; height: 100vh;
  background: var(--card); z-index: 10010;
  padding: 24px;
  /* PERF : transform au lieu de right (compositor GPU only, zéro reflow) */
  transform: translate3d(100%, 0, 0);
  opacity: 0.6;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease-out;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  display: flex; flex-direction: column;
  /* Pré-alloue le layer GPU pour éviter le 1er frame jank */
  will-change: transform, opacity;
}
.mobile-menu.open { transform: translate3d(0, 0, 0); opacity: 1; }
.mobile-menu-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid var(--card-border);
}
.mobile-menu-close {
  background: none; border: none; cursor: pointer;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  transition: background var(--transition);
}
.mobile-menu-close:hover { background: var(--secondary); }

/* Icônes SVG menu/close : teinté avec la couleur primaire via filter */
.nav-icon-menu {
  width: 28px; height: 28px;
  object-fit: contain;
  display: block;
  filter: brightness(0) saturate(100%) invert(20%) sepia(80%) saturate(5000%) hue-rotate(262deg) brightness(95%) contrast(100%);
}
.mobile-menu-close .nav-icon-menu { width: 28px; height: 28px; }

.mobile-menu a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 4px;
  color: var(--muted); font-weight: 500; font-size: 15px;
  border-bottom: 1px solid transparent;
  transition: color var(--transition);
}
.mobile-menu a svg { opacity: 0.5; transition: opacity var(--transition); }
.mobile-menu a:hover { color: var(--fg); text-decoration: none; }
.mobile-menu a:hover svg { opacity: 1; }
.mobile-menu a.active { color: var(--primary); }
.mobile-menu a.active svg { opacity: 1; color: var(--primary); }

.mobile-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.4); z-index: 10005;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease-out;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

/* ── Hero Section ── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 48px 0 56px; text-align: center;
}
.hero h1 { font-size: 28px; font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.hero p { font-size: 15px; opacity: 0.9; max-width: 500px; margin: 0 auto 28px; }
.hero-search {
  display: flex; gap: 8px; max-width: 480px; margin: 0 auto;
  background: rgba(255,255,255,0.15); border-radius: var(--radius); padding: 6px;
}
.hero-search input {
  flex: 1; padding: 12px 16px; border: none; border-radius: var(--radius-sm);
  background: #fff; color: #111; font-size: 15px;
}
.hero-search input::placeholder { color: #9ca3af; }
.hero-search .btn { border-radius: var(--radius-sm); }

/* ── Filters Bar (legacy fallback) ── */
.filters-bar {
  background: var(--card); border-bottom: 1px solid var(--card-border);
  padding: 16px 0;
}

/* ── Cards Grid (base – overridden by home.css on index) ── */
.results-count { font-size: 14px; color: var(--muted); }

/* ── Map Section ── */
.map-section { margin: 20px 0; }
.map-toggle-bar { display: flex; justify-content: center; margin-bottom: 12px; }
#map {
  width: 100%; height: 400px; border-radius: var(--radius);
  border: 1px solid var(--card-border); background: var(--secondary);
}

/* ── Pagination ── */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  padding: 24px 0;
}
.pagination button {
  padding: 8px 16px; border: 1px solid var(--card-border);
  border-radius: var(--radius-sm); background: var(--card); color: var(--fg);
  font-weight: 500; font-size: 14px; transition: all var(--transition);
}
.pagination button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination .page-info { font-size: 14px; color: var(--muted); }

/* ── Profile Page (Thumbtack style) ── */
.pf-main { padding: 24px 0 40px; background: var(--bg); }

.pf-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  margin-bottom: 20px; transition: color 0.2s;
}
.pf-back:hover { color: var(--primary); text-decoration: none; }

/* Pro card */
.pf-card {
  display: flex; align-items: flex-start; gap: 24px;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 28px;
  margin-bottom: 24px;
}
.pf-card-left { flex-shrink: 0; }
.pf-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  object-fit: cover; background: var(--secondary);
  border: 4px solid var(--card-border);
}
.pf-card-center { flex: 1; min-width: 0; }

.pf-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.pf-name { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.pf-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: #16a34a;
  background: rgba(34,197,94,0.1); padding: 3px 10px; border-radius: 6px;
}
.pf-badge i { font-size: 12px; }

.pf-trade {
  font-size: 14px; font-weight: 600; color: var(--primary);
  margin-bottom: 8px;
}

.pf-stars { color: #f59e0b; font-size: 14px; letter-spacing: 2px; margin-bottom: 12px; }

.pf-details { display: flex; flex-direction: column; gap: 6px; }
.pf-detail {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
}
.pf-detail i { font-size: 14px; width: 16px; text-align: center; color: var(--fg); opacity: 0.5; }

/* Info sections */
.pf-sections { display: flex; flex-direction: column; gap: 16px; }
.pf-section {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 22px;
}
.pf-section h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; margin-bottom: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--card-border);
}
.pf-section h3 i { font-size: 15px; color: var(--primary); }
.pf-section p { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0; }

.pf-contact-hidden {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--primary-light); border: 1px dashed var(--primary);
  border-radius: 10px; padding: 18px; text-align: center;
  font-size: 14px; color: var(--primary); font-weight: 500;
}
.pf-contact-hidden i { font-size: 16px; }

.pf-gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.pf-gallery img {
  width: 100%; height: 150px; object-fit: cover; border-radius: 10px;
  transition: transform 0.3s;
}
.pf-gallery img:hover { transform: scale(1.03); }

/* Mobile */
@media (max-width: 639px) {
  .pf-card {
    flex-direction: column; align-items: center;
    text-align: center; padding: 24px 20px;
  }
  .pf-avatar { width: 90px; height: 90px; }
  .pf-header { justify-content: center; }
  .pf-details { align-items: center; }
  .pf-name { font-size: 20px; }
}
@media (min-width: 640px) {
  .pf-gallery { grid-template-columns: repeat(3, 1fr); }
}

/* ── Registration Form ── */
.reg-container { max-width: 640px; margin: 0 auto; padding: 24px 16px; }
.reg-progress {
  display: flex; justify-content: space-between; margin-bottom: 32px; position: relative;
}
.reg-progress::before {
  content: ''; position: absolute; top: 18px; left: 24px; right: 24px;
  height: 2px; background: var(--card-border); z-index: 0;
}
.reg-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  position: relative; z-index: 1;
}
.reg-step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--secondary); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; border: 2px solid var(--card-border);
  transition: all var(--transition);
}
.reg-step.active .reg-step-num { background: var(--primary); color: #fff; border-color: var(--primary); }
.reg-step.done .reg-step-num { background: var(--success); color: #fff; border-color: var(--success); }
.reg-step-label { font-size: 11px; color: var(--muted); font-weight: 500; text-align: center; max-width: 60px; }
.reg-step.active .reg-step-label { color: var(--primary); font-weight: 600; }
.reg-section { display: none; }
.reg-section.active { display: block; }
.reg-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }

/* Photo upload */
.photo-upload {
  border: 2px dashed var(--card-border); border-radius: var(--radius);
  padding: 32px; text-align: center; cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.photo-upload:hover { border-color: var(--primary); background: var(--primary-light); }
.photo-upload input { display: none; }
.photo-preview { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; display: none; }
.photo-upload.has-photo .photo-preview { display: block; }
.photo-upload.has-photo .photo-placeholder { display: none; }

/* ── Toast ── */
.toast-container { position: fixed; top: 80px; right: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-sm); padding: 12px 16px;
  box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500;
  max-width: 340px; display: flex; align-items: center; gap: 10px;
  opacity: 0; transform: translateX(100%);
  transition: opacity 0.3s, transform 0.3s;
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }

/* ── Loader / Spinner ── */
.spinner {
  width: 32px; height: 32px; border: 3px solid var(--card-border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner-sm { width: 18px; height: 18px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader-overlay {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 60px 20px; color: var(--muted); font-size: 14px;
}

/* ── Empty State ── */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--muted);
}
.empty-state svg { width: 64px; height: 64px; margin: 0 auto 16px; opacity: 0.4; }
.empty-state p { font-size: 15px; }

/* ── Footer (old light - keep for compat) ── */
.footer {
  background: var(--card); border-top: 1px solid var(--card-border);
  padding: 40px 0 24px; margin-top: 0;
  font-size: 14px; color: var(--muted); line-height: 1.7;
}
.footer-top {
  display: grid; grid-template-columns: 1fr; gap: 28px;
  padding-bottom: 28px; margin-bottom: 20px;
  border-bottom: 1px solid var(--card-border);
}
.footer-brand-col { max-width: 280px; }
.footer-brand { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 300px; }
.footer-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--fg); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.footer-links a { font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  text-align: center; font-size: 13px; color: var(--muted);
}

/* ── Footer Dark (pro) ── */
.footer-dark {
  background: #111118;
  color: #9ca3af;
  padding: 56px 0 28px;
  margin-top: 64px;
  font-size: 14px; line-height: 1.7;
}

.fd-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 36px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.fd-brand { max-width: 380px; }
.fd-logo {
  width: 72px; height: 72px;
  object-fit: contain; margin-bottom: 16px;
}
.fd-brand p { font-size: 14px; color: #6b7280; line-height: 1.7; margin-bottom: 20px; }

/* Coordonnées de contact ServiCam (footer) */
.fd-contact { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.fd-contact a {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: #9ca3af;
  transition: color 0.2s;
}
.fd-contact a:hover { color: #fff; text-decoration: none; }
.fd-contact a i { width: 16px; text-align: center; font-size: 15px; color: #6b7280; }
.fd-contact a:hover i { color: #25D366; }

.fd-social { display: flex; gap: 10px; }
.fd-social a {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: #9ca3af; font-size: 16px;
  transition: background 0.2s, color 0.2s;
}
.fd-social a:hover { background: rgba(255,255,255,0.12); color: #fff; text-decoration: none; }
.fd-social-ig:hover { color: #E1306C !important; }
.fd-social-li:hover { color: #0A66C2 !important; }

.fd-col h4 {
  font-size: 15px; font-weight: 700; color: #fff;
  margin-bottom: 16px;
}
.fd-col ul { list-style: none; padding: 0; margin: 0; }
.fd-col ul li { margin-bottom: 10px; }
.fd-col ul a {
  color: #6b7280; font-size: 14px;
  transition: color 0.2s;
}
.fd-col ul a:hover { color: #fff; text-decoration: none; }

.fd-see-all {
  display: inline-block; margin-top: 8px;
  font-size: 13px; font-weight: 700; color: #fff;
  text-decoration: none;
}
.fd-see-all:hover { color: var(--primary); text-decoration: none; }

.fd-bottom {
  text-align: center; font-size: 13px; color: #4b5563;
}

/* Bouton "Installer l'application" dans le footer — manuel, toujours dispo */
.fd-pwa-row {
  text-align: center;
  margin: 4px 0 18px;
  padding: 0;
}
.pwa-install-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.pwa-install-link:hover {
  background: rgba(112,51,255,0.18);
  border-color: rgba(112,51,255,0.5);
  text-decoration: none;
  color: #fff;
}
.pwa-install-link:active { transform: scale(0.98); }
.pwa-install-link svg { width: 18px; height: 18px; flex-shrink: 0; }
/* Si la PWA est installée, on cache complètement la ligne */
.pwa-standalone .fd-pwa-row { display: none; }

@media (min-width: 768px) {
  .fd-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ── Leaflet overrides ── */
.leaflet-popup-content-wrapper { border-radius: var(--radius-sm) !important; font-family: var(--font) !important; }
.leaflet-popup-content { margin: 12px !important; font-size: 13px !important; }
.map-popup-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.map-popup-trade { color: var(--primary); font-size: 12px; font-weight: 600; }
.map-popup-loc { color: #6b7280; font-size: 12px; margin-top: 2px; }
.map-popup-img { width: 100%; height: 80px; object-fit: cover; border-radius: 6px; margin-bottom: 8px; }

/* User position marker pulse */
.user-marker {
  width: 18px; height: 18px; background: #3b82f6; border: 3px solid #fff;
  border-radius: 50%; box-shadow: 0 0 0 4px rgba(59,130,246,0.3);
}

/* ── Responsive ── */
@media (min-width: 640px) {
  .profile-gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .profile-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
  #map { height: 500px; }
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .hamburger { display: none; }
}

/* ── Skeleton Screen ── */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--secondary);
  border-radius: 8px;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.08) 50%,
    transparent 100%
  );
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}
.dark .skeleton::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.04) 50%,
    transparent 100%
  );
}
@keyframes skeletonShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skeleton-text { height: 14px; margin-bottom: 8px; border-radius: 6px; }
.skeleton-text.sm { width: 40%; }
.skeleton-text.md { width: 65%; }
.skeleton-text.lg { width: 85%; }
.skeleton-text.xl { width: 100%; }
.skeleton-title { height: 24px; width: 50%; margin-bottom: 12px; border-radius: 8px; }
.skeleton-avatar { width: 80px; height: 80px; border-radius: 50%; }
.skeleton-img { width: 100%; height: 180px; border-radius: 12px; }
.skeleton-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}
.skeleton-row { display: flex; gap: 16px; align-items: flex-start; }
.skeleton-col { flex: 1; }
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 768px) {
  .skeleton-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Page skeleton container */
.page-skeleton {
  padding: 24px 0;
  transition: opacity 0.3s;
}
.page-skeleton.hidden { opacity: 0; pointer-events: none; position: absolute; }

/* ── Back to top button ── */
.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 90;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); }

/* ============================================
   PRO SPINNER (double anneau concentrique)
   Utilisable partout avec variants .sm / .lg
   ============================================ */
.pro-spinner {
    width: 44px; height: 44px;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}
.pro-spinner::before,
.pro-spinner::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}
.pro-spinner::before {
    border-top-color: var(--primary, #7033ff);
    border-right-color: var(--primary, #7033ff);
    animation: proSpin 0.8s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}
.pro-spinner::after {
    inset: 6px;
    border: 2px solid transparent;
    border-bottom-color: var(--primary, #7033ff);
    border-left-color: var(--primary, #7033ff);
    opacity: 0.55;
    animation: proSpin 1.2s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite reverse;
}
.pro-spinner.sm { width: 18px; height: 18px; }
.pro-spinner.sm::before { border-width: 2px; }
.pro-spinner.sm::after { inset: 3px; border-width: 1.5px; }
.pro-spinner.md { width: 28px; height: 28px; }
.pro-spinner.md::before { border-width: 2.5px; }
.pro-spinner.md::after { inset: 4px; border-width: 2px; }
.pro-spinner.lg { width: 64px; height: 64px; }
.pro-spinner.lg::before { border-width: 4px; }
.pro-spinner.lg::after { inset: 8px; border-width: 3px; }
.pro-spinner.on-dark::before,
.pro-spinner.on-dark::after {
    border-top-color: transparent !important;
    border-right-color: transparent !important;
    border-bottom-color: transparent !important;
    border-left-color: transparent !important;
}
.pro-spinner.on-dark::before {
    border-top-color: #fff;
    border-right-color: #fff;
}
.pro-spinner.on-dark::after {
    border-bottom-color: #fff;
    border-left-color: #fff;
}
@keyframes proSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   TOAST PRO (global, cohérent sur tout le site)
   ============================================ */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: calc(100vw - 48px);
}

.toast-pro {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 300px;
    max-width: 420px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.12), 0 2px 8px rgba(16, 24, 40, 0.06);
    pointer-events: auto;
    transform: translateX(calc(100% + 32px));
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.25s ease;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, system-ui, sans-serif;
}

.toast-pro.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-pro.hide {
    transform: translateX(calc(100% + 32px));
    opacity: 0;
}

.toast-pro-ic {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    margin-top: 1px;
}

.toast-pro.success .toast-pro-ic {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}
.toast-pro.success .toast-pro-ic::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
}

.toast-pro.error .toast-pro-ic {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}
.toast-pro.error .toast-pro-ic::before {
    content: "\f00d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
}

.toast-pro.warning .toast-pro-ic {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}
.toast-pro.warning .toast-pro-ic::before {
    content: "\f12a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
}

.toast-pro.info .toast-pro-ic {
    background: rgba(112, 51, 255, 0.12);
    color: #7033ff;
}
.toast-pro.info .toast-pro-ic::before {
    content: "\f129";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
}

.toast-pro-body {
    flex: 1; min-width: 0;
}

.toast-pro-title {
    font-size: 14px;
    font-weight: 700;
    color: #0d0d14;
    line-height: 1.35;
    letter-spacing: -0.1px;
}

.toast-pro-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    margin-top: 2px;
    word-wrap: break-word;
}

.toast-pro-close {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border: none; background: none;
    color: #9ca3af;
    font-size: 14px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    margin-top: -1px;
}
.toast-pro-close:hover { background: #f3f4f6; color: #374151; }

/* Dark mode */
.dark .toast-pro,
[data-theme="dark"] .toast-pro {
    background: #1a1d27;
    border-color: #2a2d3a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
}
.dark .toast-pro-title,
[data-theme="dark"] .toast-pro-title { color: #f0f0f0; }
.dark .toast-pro-desc,
[data-theme="dark"] .toast-pro-desc { color: #9ca3af; }
.dark .toast-pro-close:hover,
[data-theme="dark"] .toast-pro-close:hover { background: #2a2d3a; color: #f0f0f0; }

@media (max-width: 480px) {
    #toast-container { top: 12px; right: 12px; left: 12px; max-width: none; }
    .toast-pro { min-width: 0; max-width: none; }
}

/* 1280px+ handled in home.css */

/* ════════════════════════════════════════════════════════
   Popup de transition de langue (FR ↔ EN)
   Affiché ~600ms avant le reload de la page.
   ════════════════════════════════════════════════════════ */
#langTransOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  opacity: 0;
  transition: opacity 0.18s ease-out;
}
#langTransOverlay.open { opacity: 1; }

#langTransOverlay .lang-trans-bg {
  position: absolute;
  inset: 0;
  background: rgba(15, 16, 23, 0.55);
}

#langTransOverlay .lang-trans-card {
  position: relative;
  background: var(--card, #fff);
  border: 1px solid var(--card-border, #e5e7eb);
  border-radius: 18px;
  padding: 28px 36px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  font-family: var(--font, 'Plus Jakarta Sans', system-ui, sans-serif);
  min-width: 240px;
  max-width: 320px;
  transform: scale(0.94);
  transition: transform 0.22s cubic-bezier(.2, 1, .3, 1);
}
#langTransOverlay.open .lang-trans-card { transform: scale(1); }

#langTransOverlay .lang-trans-flag-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
#langTransOverlay .lang-trans-flag, #langTransOverlay .lang-trans-label {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: none;
  position: relative;
  z-index: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; letter-spacing: 0.05em;
  color: var(--primary, #7033ff);
}
#langTransOverlay .lang-trans-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2.5px solid var(--primary, #7033ff);
  border-top-color: transparent;
  border-right-color: transparent;
  animation: langTransSpin 0.9s linear infinite;
}
@keyframes langTransSpin {
  to { transform: rotate(360deg); }
}

#langTransOverlay .lang-trans-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg, #0d0d14);
  letter-spacing: -0.2px;
  text-align: center;
}
#langTransOverlay .lang-trans-sub {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted, #8a8c9f);
  text-align: center;
}

@media (max-width: 480px) {
  #langTransOverlay .lang-trans-card { padding: 22px 28px 18px; min-width: 200px; }
  #langTransOverlay .lang-trans-flag-wrap { width: 56px; height: 56px; }
  #langTransOverlay .lang-trans-flag { width: 40px; height: 40px; }
  #langTransOverlay .lang-trans-title { font-size: 15px; }
}

/* ─────────────────────────────────────────────────────────────────────────
   PERF — Désactive les effets coûteux sur mobiles bas de gamme
   (cible Cameroun : Snapdragon 4xx, 1-2 GB RAM, GPU faible)
   - backdrop-filter : ~30% CPU sur GPU ARM, vire ça partout en ≤768px
   - On garde un background plus opaque pour conserver l'effet visuel
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* 1) backdrop-filter : virage total */
  *, *::before, *::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .index-sticky-search, .results-filters-bar, .header { background: var(--bg, #fdfdfd) !important; }
  .dark .index-sticky-search, .dark .results-filters-bar, .dark .header { background: #111118 !important; }

  /* 2) Cap les durées de transition à 150ms — finies les animations 300-500ms qui traînent.
        On NE cap PAS animation-duration (sinon les marquees 30s passent à 0.2s = flash). */
  *, *::before, *::after {
    transition-duration: 0.15s !important;
  }

  /* 3) Kill UNIQUEMENT les animations décoratives infinies non-souhaitées
        (orbs blur, pulses, bounces, glow). On GARDE les marquees catégories
        et avis (testimonials) car le user veut leur effet slide. */
  .hero-orb, .user-pin, .carte-fab-locate.loading svg,
  .promise-dot,
  [class*="orb"], [class$="-bounce"], [class*="-shake"],
  [class*="ripple"], [class*="breathe"] {
    animation: none !important;
  }
  /* Animations directes connues (glow, gradient shift) — décoratifs purs */
  .promise-card-bg, .promise-card-glow,
  .hero-cta-glow {
    animation: none !important;
  }

  /* 4) Allège les ombres des cartes qui se répètent (perf).
        IMPORTANT : cibler UNIQUEMENT les conteneurs de cartes — surtout PAS
        via [class*="-card"]/[class*="-item"]/[class*="-thumb"] : ces wildcards
        attrapaient aussi les éléments internes (.pro-card-title, .pro-card-trade,
        .how-card-step, .how-card-icon…) et leur collaient une ombre, d'où l'effet
        « texte en relief » visible uniquement sur mobile. */
  .gallery-item, .pcp-card, .pf-card, .ep-card, .ep-stat-card,
  .rech-cat-card, .pro-card-thumb, .top-pro-card,
  .how-card, .testi-card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
  }

  /* 5) will-change est gaspillage GPU sur mobile (sauf cas explicites) */
  *:not(.mobile-menu):not(#sc-splash):not(#pwaInstallCard) {
    will-change: auto !important;
  }

  /* 6) Filtres décoratifs (drop-shadow, blur sur images, glow) — virés */
  .hero-orb, [class*="-decoration"], [class*="-glow"], [class*="-blur-bg"] {
    filter: none !important;
  }

  /* 7) Hover scale/translate sur cards = inutile au touch + déclenche layout */
  .rech-cat-bg, .pcp-card-bg, .pro-card-thumb img,
  .pcp-card:hover, .gallery-item:hover, .rech-cat-card:hover,
  .pf-card:hover, .top-pro-card:hover {
    transform: none !important;
  }

  /* 8) `transition: all` est le pire (57 occurrences dans le projet).
        On force globalement toutes les transitions à n'animer QUE des props
        cheap GPU-only : couleurs, opacité, transform. Les `box-shadow`,
        `width`, `height`, `top`, `filter` ne s'animent plus → fluidité ++ */
  *, *::before, *::after {
    transition-property: background-color, color, border-color, opacity, transform !important;
  }

  /* 9) drop-shadow + filter sur user-pin = expensive, déjà désactivé l'animation
        mais le filter se compose au mouvement de la carte. Vire-le. */
  .user-pin { filter: none !important; }

  /* 10) content-visibility: auto retiré — créait un bounce loop infini sur
         les cards avec images lazy (image charge → height change → bounce).
         Si on veut le réactiver plus tard, il faudra des dimensions explicites
         sur les images ET un contain-intrinsic-size: auto plus précis. */
}

/* Respect prefers-reduced-motion : on tue les animations décoratives infinies
   (orbs, marquee, spinners), mais on PRÉSERVE les transitions UI (menus,
   modales, hover) sinon l'expérience devient brutale. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ── Bouton de déconnexion unifié (espace pro : blocage, enregistrement, dashboard) ── */
.sc-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border: none;
  border-radius: 10px;
  background: #ef4444;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
  -webkit-appearance: none;
  appearance: none;
}
.sc-logout-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.sc-logout-btn:hover { background: #dc2626; }
.sc-logout-btn:active { transform: scale(0.97); }
.sc-logout-btn--block { width: 100%; }

/* ── Sélecteur de langue déroulant (site) : « EN ▾ » → choisir Français / English ── */
.lang-select { position: relative; display: inline-block; }
.lang-select-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 10px; border-radius: 8px;
  background: transparent; border: 1px solid var(--border, #e5e7eb); cursor: pointer;
  color: inherit; font-family: inherit; font-size: 13px; font-weight: 600;
  transition: background .15s;
}
.lang-select-trigger:hover { background: rgba(0,0,0,.04); }
.lang-select-globe { width: 16px; height: 16px; opacity: .8; flex-shrink: 0; }
.lang-select-caret { width: 13px; height: 13px; opacity: .6; transition: transform .18s; flex-shrink: 0; }
.lang-select.open .lang-select-caret { transform: rotate(180deg); }
.lang-select-drop {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 200;
  min-width: 150px; padding: 6px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.lang-select.open .lang-select-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-select-opt {
  display: block; width: 100%; text-align: left;
  padding: 9px 12px; border: none; border-radius: 7px; background: transparent;
  font-family: inherit; font-size: 13.5px; font-weight: 500; color: #1a1d27; cursor: pointer;
}
.lang-select-opt:hover { background: #f4f4f6; }
.lang-select-opt.active { color: #7033ff; font-weight: 700; }
.dark .lang-select-trigger { border-color: #2a2d3a; color: #f0f0f0; }
.dark .lang-select-trigger:hover { background: rgba(255,255,255,.06); }
.dark .lang-select-drop { background: #1a1d27; border-color: #2a2d3a; }
.dark .lang-select-opt { color: #f0f0f0; }
.dark .lang-select-opt:hover { background: #24252d; }
