/* ============================================
   ELLYF Design System
   Colors: teal #00D4AA, navy #0F2B3C, gold #E8A317
   Typography: DM Serif Display + DM Sans
   ============================================ */

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

:root {
  --teal: #00D4AA;
  --teal-dark: #00B893;
  --teal-light: #E6FBF5;
  --navy: #0F2B3C;
  --navy-light: #1A3D52;
  --gold: #E8A317;
  --gold-light: #FFF8E7;
  --bg: #F4F7FA;
  --white: #ffffff;
  --muted: #5F7A8A;
  --border: #DDE5EC;
  --red-soft: #FFE8E8;
  --red: #E84040;
  --green: #00D4AA;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'DM Serif Display', serif;
  line-height: 1.2;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-teal { color: var(--teal); }
.text-muted { color: var(--muted); }

/* ============================================
   NAV
   ============================================ */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--teal);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.logo-text {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--navy); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--navy);
  padding: 0.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
}

.btn-primary {
  background: var(--teal);
  color: white;
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,212,170,0.3);
}

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

.btn-white {
  background: white;
  color: var(--navy);
}
.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 12px;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ============================================
   PAGE HERO (for inner pages)
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0D3B4F 40%, #0A4A52 100%);
  color: white;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,212,170,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.page-hero-small {
  padding: 7rem 2rem 3rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: white;
  margin-bottom: 0.75rem;
}

.hero-subtitle-page {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  line-height: 1.7;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.back-link:hover { color: white; }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: var(--teal);
  text-align: center;
  padding: 4rem 2rem;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: white;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   DIRECTORY / ANNUAIRE
   ============================================ */
.directory-section {
  padding: 3rem 0 5rem;
}

.search-filters {
  margin-bottom: 2rem;
}

.search-box-inline {
  display: flex;
  gap: 0.75rem;
  background: white;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 0.5rem;
  transition: border-color 0.2s;
}

.search-box-inline:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,212,170,0.1);
}

.filter-input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: none;
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  background: transparent;
  color: var(--navy);
  min-width: 0;
}

.filter-input::placeholder { color: #aab; }

.results-count {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

.pro-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--navy);
  transition: all 0.3s;
  display: block;
}

.pro-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,212,170,0.1);
}

.pro-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pro-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pro-card-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pro-trade {
  font-size: 0.9rem;
  color: var(--muted);
}

.pro-city {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.pro-offer {
  font-size: 0.85rem;
  color: var(--gold);
  background: var(--gold-light);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.pro-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.reco-count {
  font-size: 0.85rem;
  color: var(--teal-dark);
  font-weight: 600;
}

.badge-verified {
  font-size: 1rem;
}

.badge-verified-lg {
  font-size: 1.3rem;
}

.badge-sm {
  font-size: 0.75rem;
  background: var(--teal-light);
  color: var(--teal-dark);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
}

/* Loading & empty */
.loading-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

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

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--muted);
  font-size: 0.95rem;
}

.empty-state a {
  color: var(--teal);
  font-weight: 600;
}

/* ============================================
   PRO PROFILE
   ============================================ */
.pro-profile-section {
  padding: 2rem 0 5rem;
}

.pro-profile-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
}

.pro-profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pro-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pro-profile-header h1 {
  font-size: 1.8rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pro-profile-trade {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

.pro-profile-city {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.pro-description {
  background: var(--bg);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.7;
}

/* Welcome offer */
.welcome-offer-banner {
  background: linear-gradient(135deg, var(--gold-light), #FFF3D6);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
  animation: pulse-offer 2s ease-in-out infinite;
}

@keyframes pulse-offer {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,163,23,0.3); }
  50% { box-shadow: 0 0 20px 4px rgba(232,163,23,0.15); }
}

.welcome-offer-banner .offer-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.welcome-offer-banner .offer-content h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.welcome-offer-banner .offer-content p {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.welcome-offer {
  background: var(--gold-light);
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.offer-icon-sm { font-size: 1.2rem; }

/* Recommendations list */
.reco-section {
  margin-bottom: 2rem;
}

.reco-section h2 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--border);
}

.reco-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reco-item {
  display: flex;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--bg);
  border-radius: 12px;
  transition: background 0.2s;
}

.reco-item:hover { background: var(--teal-light); }

.reco-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--teal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.reco-author {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.reco-comment {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 0.3rem;
  line-height: 1.5;
}

.reco-date {
  font-size: 0.8rem;
  color: #8fa3b0;
}

/* Sidebar */
.pro-profile-sidebar {
  position: sticky;
  top: 100px;
}

.pro-contact-section {
  background: var(--bg);
  border-radius: 14px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.pro-contact-section h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.contact-item a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover { color: var(--teal); }

.pro-disclaimer {
  background: var(--bg);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 1rem;
}

.claim-banner {
  background: var(--gold-light);
  border: 2px solid rgba(232,163,23,0.3);
  border-radius: 14px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
}

.claim-banner h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.claim-banner p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ============================================
   SHARE BUTTONS
   ============================================ */
.share-buttons {
  margin-top: 1.5rem;
}

.share-buttons h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 1rem;
}

.share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid var(--border);
  background: white;
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.share-whatsapp { border-color: #25D366; color: #25D366; }
.share-whatsapp:hover { background: #25D366; color: white; }

.share-sms { border-color: #5856D6; color: #5856D6; }
.share-sms:hover { background: #5856D6; color: white; }

.share-email { border-color: var(--navy); color: var(--navy); }
.share-email:hover { background: var(--navy); color: white; }

.share-copy { border-color: var(--muted); }
.share-copy:hover { border-color: var(--teal); color: var(--teal); }

/* ============================================
   FORMS
   ============================================ */
.form-section {
  padding: 3rem 0 5rem;
}

.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: white;
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--navy);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,212,170,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aab;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-divider {
  height: 1px;
  background: var(--border);
  margin: 1rem 0 1.5rem;
}

.form-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.form-error {
  background: var(--red-soft);
  color: var(--red);
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 1rem;
}

/* Success screen */
.success-screen {
  text-align: center;
  padding: 2rem 0;
}

.success-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.success-screen h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.success-screen > p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Claim info banner */
.claim-info-banner {
  background: var(--teal-light);
  border: 2px solid rgba(0,212,170,0.3);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Search dropdown */
.search-dropdown {
  position: relative;
  background: white;
  border: 2px solid var(--border);
  border-radius: 12px;
  margin-top: 0.5rem;
  max-height: 250px;
  overflow-y: auto;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.search-result-item {
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: background 0.2s;
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--teal-light); }

.search-no-result {
  padding: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-section {
  padding: 3rem 0 5rem;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  color: var(--navy);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.4rem;
}

.legal-content strong {
  color: var(--navy);
}

.legal-date {
  margin-top: 3rem;
  font-size: 0.85rem;
  font-style: italic;
  color: #8fa3b0;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  padding: 4rem 0 2rem;
  background: var(--navy);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}

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

  .pro-profile-sidebar {
    position: static;
  }

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

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

@media (max-width: 600px) {
  nav {
    padding: 0.8rem 1rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .page-hero {
    padding: 6rem 1.5rem 2.5rem;
  }

  .page-hero-small {
    padding: 5.5rem 1.5rem 2rem;
  }

  .page-hero h1 {
    font-size: 1.7rem;
  }

  .hero-subtitle-page {
    font-size: 0.95rem;
  }

  .form-card {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .search-box-inline {
    flex-direction: column;
  }

  .pro-profile-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .pro-profile-header h1 {
    font-size: 1.4rem;
  }

  .welcome-offer-banner {
    flex-direction: column;
    text-align: center;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

/* ============================================
   SHARE: Mobile-first improvements
   ============================================ */
.share-instagram { border-color: #E1306C; color: #E1306C; }
.share-instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; border-color: transparent; }

.share-btn {
  min-height: 48px; /* WCAG touch target */
}

.btn-share-native {
  min-height: 52px;
  font-size: 1rem;
  gap: 0.6rem;
}

.share-grid {
  grid-template-columns: repeat(3, 1fr);
}

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

/* ============================================
   NAV: user space link
   ============================================ */
.nav-espace-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  background: var(--teal-light);
  transition: background 0.2s;
}

.nav-espace-link:hover { background: #c8f5ec; }

.nav-avatar {
  width: 28px;
  height: 28px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
}

.nav-link-subtle {
  color: var(--muted) !important;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link-subtle:hover { color: var(--navy) !important; }

/* ============================================
   AUTH PAGE
   ============================================ */
.auth-tabs {
  display: flex;
  background: var(--bg);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 1.5rem;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  padding: 0.65rem 1rem;
  border: none;
  background: transparent;
  border-radius: 9px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  background: white;
  color: var(--navy);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.auth-notice {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}
.auth-notice a { color: var(--teal); }

/* ============================================
   ESPACE (Particulier + Pro) — shared
   ============================================ */
.espace-section {
  padding: 2rem 0 5rem;
}

.espace-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.espace-avatar-lg {
  width: 56px;
  height: 56px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'DM Serif Display', serif;
  flex-shrink: 0;
}

.pro-avatar-color { background: var(--gold); }

.espace-email {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
}

.espace-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 2rem;
  width: fit-content;
}

.espace-tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
}

.espace-tab.active {
  background: white;
  color: var(--navy);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.tab-badge {
  background: var(--teal);
  color: white;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
}

.espace-tab-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.espace-tab-content { }

.espace-reco-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.espace-reco-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: border-color 0.2s;
}

.espace-reco-card:hover { border-color: var(--teal); }

.espace-reco-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.espace-pro-name {
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.espace-pro-name:hover { color: var(--teal); }

.espace-reco-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.espace-offer {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
}

.espace-reco-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}

.espace-recommandeur {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.espace-clicks {
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 700;
}

.espace-date {
  font-size: 0.78rem;
  color: var(--muted);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  border-radius: 8px;
  min-height: 36px;
}

.espace-actions {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.empty-state-sm {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.empty-state-sm a { color: var(--teal); font-weight: 600; }

/* ============================================
   ESPACE PRO — specific
   ============================================ */
.espace-pro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.espace-section-title {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.espace-pro-profile-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
}

.pro-profile-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.pro-profile-badge h2 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.pro-profile-badge p {
  font-size: 0.85rem;
  color: var(--muted);
}

.validation-hint {
  color: var(--gold) !important;
  font-size: 0.8rem !important;
  font-weight: 600;
  margin-top: 0.25rem;
}

.validation-ok {
  color: var(--teal) !important;
  font-size: 0.8rem !important;
  font-weight: 600;
  margin-top: 0.25rem;
}

.pro-edit-form .form-group {
  margin-bottom: 1rem;
}

.stats-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stat-box {
  background: var(--teal-light);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--teal);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 0.25rem;
}

.channel-stats {
  margin-bottom: 1.5rem;
}

.channel-stats h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.channel-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.channel-stat-card {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  font-size: 0.82rem;
}

.channel-count {
  font-weight: 700;
  color: var(--navy);
}

.channel-name {
  color: var(--muted);
  text-transform: capitalize;
}

.channel-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--muted);
  text-transform: capitalize;
}

.channel-whatsapp { background: #dcf7e8; color: #25D366; }
.channel-instagram { background: #fce4ec; color: #E1306C; }
.channel-sms { background: #eeeeff; color: #5856D6; }
.channel-email { background: #e8f4ff; color: #0F2B3C; }
.channel-native { background: var(--teal-light); color: var(--teal-dark); }

.reco-list-mini h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.claim-cta-card {
  background: var(--teal-light);
  border: 2px dashed var(--teal);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}

.claim-cta-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.claim-cta-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.form-success {
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ============================================
   RESPONSIVE: Espace Pro
   ============================================ */
@media (max-width: 800px) {
  .espace-pro-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .espace-tabs {
    width: 100%;
  }

  .espace-tab {
    flex: 1;
    justify-content: center;
    padding: 0.6rem 0.5rem;
    font-size: 0.82rem;
  }

  .stats-summary {
    grid-template-columns: 1fr 1fr;
  }

  .espace-reco-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .espace-reco-side {
    align-items: flex-start;
    flex-direction: row;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

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

/* ============================================
   CONTACT STATUS BUTTON
   ============================================ */
.contact-status-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: white;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 36px;
  white-space: nowrap;
}

.contact-status-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.contact-status-btn.contacted {
  background: var(--teal-light);
  border-color: var(--teal);
  color: var(--teal-dark);
}

/* ============================================
   MOBILE FLOATING CTA
   ============================================ */
.mobile-float-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.mobile-float-cta.visible {
  transform: translateY(0);
}

@media (max-width: 900px) {
  .mobile-float-cta {
    display: block;
  }

  /* Add bottom padding to page so floating CTA doesn't overlap content */
  .pro-profile-section {
    padding-bottom: 5rem;
  }
}

.mobile-float-btn {
  border-radius: 14px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  min-height: 52px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ============================================
   BTN IMPROVEMENTS — block + icon support
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-block {
  width: 100%;
  display: flex;
}

/* ============================================
   ESPACE: Recommend button bottom of envoyees tab
   ============================================ */
.reco-add-cta {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--teal-light);
  border-radius: 14px;
  text-align: center;
}

.reco-add-cta p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* ============================================
   PRO PROFILE: Bigger primary CTA on sidebar
   ============================================ */
#reco-cta-btn {
  min-height: 52px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
