/* ================================================
   SERVICEPRO MALI - CSS COMPLET
   ================================================ */

/* ===== 1. VARIABLES & RESET ===== */
:root {
  --primary: #ea580c;
  --primary-dark: #c2410c;
  --primary-light: #fff7ed;
  --success: #f97316;
  --success-dark: #ea580c;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #0f172a;
  --gray: #64748b;
  --light-gray: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --card-bg: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --primary: #fb923c;
  --primary-dark: #f97316;
  --primary-light: #1e293b;
  --bg: #0f172a;
  --white: #1e293b;
  --card-bg: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --light-gray: #334155;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Low-end device optimizations */
.low-end .hero-slider,
.low-end .stats-bar,
.low-end .testimonials-section {  }

.low-end .card,
.low-end .stat-item,
.low-end .faq-item { transform: none !important; transition: none !important; }

.low-end .card:hover,
.low-end .stat-item:hover { transform: none !important; }

.low-end .logo i,
.low-end .logo h1 {  }

.low-end .slide-content {  }

.low-end .slide-content i {  }

.low-end .slider-wrapper { transition-duration: 0.3s !important; }

.low-end .status-dot::after {  }

.low-end .badge-top {  }

.low-end .whatsapp-pulse {  }

.low-end [class*="animate-"],
.low-end [class*="fade"],
.low-end [class*="slide"] {  }

/* ===== 2. ANIMATIONS ===== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.5; } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }
@keyframes bounceIn { 0% { transform:scale(0); } 50% { transform:scale(1.2); } 100% { transform:scale(1); } }
@keyframes bounce { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-10px); } }
@keyframes shimmer { 0% { transform:translateX(-100%); } 100% { transform:translateX(100%); } }
@keyframes ripple { 0% { width:100%; height:100%; opacity:0.6; } 100% { width:300%; height:300%; opacity:0; } }
@keyframes glow { 0%,100% { box-shadow:0 0 5px rgba(234,88,12,0.3); } 50% { box-shadow:0 0 20px rgba(234,88,12,0.5); } }

/* ===== 3. LOADING SCREEN ===== */
.loading-screen {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity 0.5s, visibility 0.5s;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; }
.loader { width: 60px; height: 60px; border: 4px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%;  }
.loading-screen p { color: white; margin-top: 20px; font-size: 1.1rem;  }

/* ===== 4. HEADER & NAVIGATION - GOAFRICA STYLE ===== */
header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  
  border-bottom: 3px solid var(--primary);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Bar */
.header-top-bar {
  background: var(--dark);
  color: white;
  padding: 8px 0;
  font-size: 0.85rem;
}

.top-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar-left span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-left i {
  color: var(--primary);
}

.top-bar-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.top-bar-right a {
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.top-bar-right a:hover {
  color: var(--primary);
}

/* Main Header */
.header-main {
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--light-gray);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--dark);
}

.logo i {
  font-size: 2rem;
  color: var(--primary);
  
}

.logo h1 {
  font-size: 1.6rem;
  font-weight: 700;
  
}

.logo h1 span {
  color: var(--primary);
}

/* Header Actions */
.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-header {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-primary-header {
  background: var(--primary);
  color: white;
}

.btn-primary-header:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10,124,255,0.3);
}

.theme-toggle {
  background: var(--light-gray);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--primary);
  color: white;
  transform: rotate(180deg);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--dark);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* Navigation Menu */
.main-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 2px;
}

.nav-item {
  color: var(--dark);
  text-decoration: none;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  position: relative;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.nav-item:hover {
  color: var(--primary);
  background: var(--primary-light);
  border-bottom-color: var(--primary);
}

.nav-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--primary-light);
}

.nav-item i {
  font-size: 0.9rem;
}

/* ===== 5. BUTTONS ===== */
button, .btn-primary, .btn-secondary, .btn-search {
  cursor: pointer; border: none; border-radius: var(--radius-sm);
  font-weight: 600; transition: var(--transition); font-size: 0.9rem;
}
button:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

.btn-primary { background: var(--success); color: white; padding: 12px 24px; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: var(--success-dark); }
.btn-secondary { background: white; color: var(--primary); padding: 12px 24px; display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary-light); }
.btn-search { background: var(--primary); color: white; padding: 14px 24px; display: inline-flex; align-items: center; gap: 8px; }
.btn-search:hover { background: var(--primary-dark); }
.btn-full { width: 100%; justify-content: center; }

/* ===== 6. HERO SLIDER ===== */
.hero-slider {
  position: relative; width: 100%; height: 350px; overflow: hidden;
  margin-bottom: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.slider-wrapper { display: flex; width: 100%; height: 100%; transition: transform 0.6s ease; }
.slide {
  min-width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; text-align: center; color: white; padding: 40px;
}
.slide-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.slide-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.slide-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.slide-4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.slide-content { max-width: 600px;  }
.slide-content i { font-size: 3rem; margin-bottom: 20px; display: block;  }
.slide-content h2 { font-size: 2rem; font-weight: 700; margin-bottom: 15px; }
.slide-content p { font-size: 1.1rem; margin-bottom: 20px; opacity: 0.95; }
.slide-content button {
  background: white; color: var(--primary); padding: 14px 32px; font-size: 1rem;
  font-weight: 700; border-radius: 50px; border: none; cursor: pointer; transition: var(--transition);
}
.slide-content button:hover { transform: translateY(-3px) scale(1.05); }

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.3); border: none; width: 50px; height: 50px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: white; font-size: 1.2rem; z-index: 10; transition: var(--transition);
}
.slider-arrow:hover { background: rgba(255,255,255,0.5); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

.slider-controls { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.slider-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; cursor: pointer; transition: var(--transition); }
.slider-dot.active { background: white; transform: scale(1.3); }

/* Hero Search Box - GoAfrica Style */
.hero-search-box {
  background: white;
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-top: -80px;
  position: relative;
  z-index: 10;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== 7. CONTAINER & STATS ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px 40px; }

.stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; margin-bottom: 30px; }
.stat-item {
  background: white; padding: 25px 20px; border-radius: var(--radius-md); text-align: center;
  box-shadow: var(--shadow-sm); transition: var(--transition); position: relative; overflow: hidden;
}
.stat-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.stat-item i { font-size: 2rem; color: var(--primary); margin-bottom: 10px; display: block; }
.stat-item span { display: block; font-size: 2rem; font-weight: 700; }
.stat-item p { color: var(--gray); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }

/* ===== 8. SEARCH & FILTERS ===== */
.search {
  background: white; padding: 25px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); margin-bottom: 25px;
}
.search-header h2 { margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.filters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }

select, input[type="text"], input[type="tel"], textarea {
  padding: 14px 16px; border: 2px solid var(--light-gray); border-radius: var(--radius-sm);
  font-size: 0.95rem; transition: var(--transition); width: 100%; font-family: inherit;
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(10,124,255,0.1); }
textarea { min-height: 120px; resize: vertical; }

/* ===== 9. LEGEND ===== */
.legend { background: white; padding: 20px; border-radius: var(--radius-md); margin-bottom: 25px; box-shadow: var(--shadow-sm); }
.legend h3 { margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.legend-items { display: flex; flex-wrap: wrap; gap: 20px; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }

.status-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; position: relative; }
.status-dot::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 100%; height: 100%; border-radius: 50%;  }
.status-dot.available { background: var(--success); }
.status-dot.available::after { background: var(--success); }
.status-dot.busy { background: var(--warning); }
.status-dot.busy::after { background: var(--warning); }
.status-dot.offline { background: var(--danger); }
.status-dot.offline::after {  }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-top { background: linear-gradient(135deg, #ff6b6b, #ff8e53); color: white;  }
.badge-verified { background: var(--success); color: white; }
.badge-new { background: var(--warning); color: var(--dark); }
.badge-good { background: var(--primary); color: white; }

/* ===== 10. CARDS ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card {
  background: white; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); transition: var(--transition);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.card-header { padding: 20px; background: white; border-bottom: 1px solid var(--light-gray); }
.card-header-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; gap: 12px; }
.card-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.card-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.card-location { color: var(--gray); font-size: 0.85rem; display: flex; align-items: center; gap: 6px; }

.card-body { padding: 16px 20px; }
.card-rating { display: flex; align-items: center; gap: 8px; }
.stars { color: var(--warning); font-size: 1.1rem; letter-spacing: 2px; }
.rating-text { color: var(--gray); font-weight: 600; }

.card-actions {
  padding: 12px 20px; background: #f8f9fa; display: flex; gap: 8px;
  align-items: center; border-top: 1px solid var(--light-gray);
}

.btn-view { background: var(--primary); color: white; padding: 10px 16px; display: inline-flex; align-items: center; gap: 6px; flex: 1; justify-content: center; }
.btn-action { padding: 10px 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px; border-radius: var(--radius-sm); }
.btn-call { background: var(--success); color: white; }
.btn-whatsapp { background: #25d366; color: white; }
.btn-facebook { background: #1877f2; color: white; }
.btn-tiktok { background: #000; color: white; }

/* ===== 11. QUARTIERS ===== */
.quartiers-section { margin-top: 40px; padding: 25px; background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.quartiers-section h3 { margin-bottom: 20px; display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.quartiers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.quartier-card { background: #f8f9fa; border-radius: var(--radius-md); padding: 20px; cursor: pointer; transition: var(--transition); border: 2px solid transparent; }
.quartier-card:hover { background: var(--primary-light); border-color: var(--primary); transform: translateY(-3px); }
.quartier-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.quartier-header h4 { display: flex; align-items: center; gap: 8px; color: var(--primary); }
.quartier-stats { display: flex; gap: 15px; margin-bottom: 12px; font-size: 0.85rem; color: var(--gray); }
.quartier-stats .stat { display: flex; align-items: center; gap: 6px; }
.quartiers-list { display: flex; flex-direction: column; gap: 8px; }
.quartier-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: white; border-radius: var(--radius-sm); transition: var(--transition); }
.quartier-item:hover { background: var(--primary); color: white; transform: translateX(5px); }
.quartier-item i { color: var(--primary); font-size: 0.8rem; }
.quartier-item:hover i { color: white; }
.quartier-item .count { margin-left: auto; background: var(--light-gray); padding: 2px 8px; border-radius: 10px; font-size: 0.75rem; font-weight: 600; }
.quartier-item:hover .count { background: rgba(255,255,255,0.3); color: white; }

/* ===== 12. EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray); }
.empty-state i { font-size: 4rem; margin-bottom: 20px; color: #dee2e6; }
.empty-state h3 { margin-bottom: 10px; }

/* ===== 13. MODALS ===== */
.modal {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  justify-content: center; align-items: center; z-index: 1000; padding: 20px;
}
.modal-content {
  background: white; border-radius: var(--radius-lg); max-width: 500px; width: 100%;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg);
}
.modal-large { max-width: 700px; }
.modal-header { padding: 20px; border-bottom: 1px solid var(--light-gray); display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { display: flex; align-items: center; gap: 10px; }
.close-btn { background: none; font-size: 2rem; color: var(--gray); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.close-btn:hover { background: var(--light-gray); }

/* ===== 14. FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.form-note { margin-top: 15px; padding: 12px; background: var(--primary-light); border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--primary-dark); display: flex; align-items: flex-start; gap: 8px; }

/* ===== 15. FOOTER ===== */
footer { background: var(--dark); color: white; margin-top: 50px; }
.footer-content { max-width: 1200px; margin: 0 auto; padding: 40px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.footer-section h3 { margin-bottom: 15px; color: var(--primary); font-size: 1.1rem; }
.footer-section p { color: #adb5bd; line-height: 1.6; }
.footer-section ul { list-style: none; padding: 0; }
.footer-section li { padding: 8px 0; display: flex; align-items: center; gap: 10px; color: #adb5bd; transition: var(--transition); }
.footer-section li:hover { color: white; transform: translateX(5px); }
.footer-section li i { color: var(--primary); }
.footer-bottom { text-align: center; padding: 20px; border-top: 1px solid #2d2d44; color: var(--gray); font-size: 0.9rem; }

/* ===== 16. SCROLL TO TOP ===== */
.scroll-top {
  position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
  background: var(--primary); color: white; border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: var(--shadow-lg); transition: var(--transition); opacity: 0; visibility: hidden; z-index: 99;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-5px); }

/* ===== 17. RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-top-bar { display: none; }
  .header-main { flex-wrap: wrap; }
  .hero-slider { height: 280px; }
  .slide { padding: 30px 20px; }
  .slide-content {  }
  .slide-content h2 { font-size: 1.5rem; }
  .slide-content i {  }
  .slider-wrapper { transition-duration: 0.3s !important; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .filters-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .card { animation-duration: 0.2s !important; }
  .main-nav .nav-item {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  .header-actions { flex-wrap: wrap; }
  .btn-header { flex: 1; justify-content: center; min-width: 140px; }
  .footer-content { grid-template-columns: 1fr; }
  .top-bar-left { flex-direction: column; gap: 5px; align-items: flex-start; }
  .loading-screen { transition-duration: 0.2s; }
  .loader { animation-duration: 0.5s; }
  .loading-screen p {  }
  .status-dot::after { animation-duration: 1s; }
  .whatsapp-pulse { animation-duration: 1.5s; }
  .badge-top { animation-duration: 1.5s; }
  .logo i, .logo h1 { animation-duration: 0.3s !important; }
  header { animation-duration: 0.3s; }
}

@media (max-width: 480px) {
  .logo h1 { font-size: 1.3rem; }
  .hero-slider { height: 240px; }
  .stats-bar { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-actions { flex-direction: column; }
  .card-actions button { width: 100%; justify-content: center; }
  .header-actions { width: 100%; justify-content: space-between; margin-top: 10px; }
  .btn-header { font-size: 0.8rem; padding: 8px 12px; min-height: 44px; }
  .hero-search-box { margin-top: -40px; padding: 20px; }
  .header-content { padding: 0 12px; }
  .container { padding: 0 12px 30px; }
  .legend-items { gap: 12px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; justify-content: center; }
}

/* Tablette & petits desktop : nav passe en dropdown */
@media (max-width: 992px) {
  .header-main { position: relative; }
  .hamburger { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    flex-direction: column;
    width: 100%;
    background: white;
    border-top: 1px solid var(--light-gray);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 100;
  }
  .main-nav.active { display: flex; }
  .nav-item {
    justify-content: flex-start;
    border-bottom: 1px solid var(--light-gray);
    border-left: 3px solid transparent;
    padding: 14px 18px;
    font-size: 0.95rem;
  }
  .nav-item:hover,
  .nav-item.active {
    border-bottom: 1px solid var(--light-gray);
    border-left: 3px solid var(--primary);
  }
}

/* Très petits écrans : Samsung Galaxy S8, Tecno Spark, etc. */
@media (max-width: 400px) {
  .logo h1 { font-size: 1.1rem; }
  .logo i { font-size: 1.5rem; }
  .hero-slider { height: 200px; }
  .stats-bar { gap: 8px; }
  .stat-item { padding: 15px; }
  .stat-item i { font-size: 1.5rem; }
  .stat-item span { font-size: 1.5rem; }
  .slide-content h2 { font-size: 1.2rem; }
  .slide-content p { font-size: 0.9rem; }
  .slide-content button { padding: 10px 20px; font-size: 0.85rem; }
  .search { padding: 15px; }
  .hero-search-box { padding: 15px; margin-top: -30px; }
  .hero-search-box h2 { font-size: 1rem; }
  .card-header { padding: 15px; }
  .card-body { padding: 12px 15px; }
  .card-actions { padding: 10px 15px; }
  .btn-header { font-size: 0.75rem; padding: 6px 10px; min-height: 40px; }
  .whatsapp-float { width: 48px; height: 48px; bottom: 20px; left: 20px; }
  .whatsapp-float i { font-size: 1.5rem; }
  .footer-content { padding: 30px 15px 20px; gap: 20px; }
  .trust-badges { gap: 15px; }
  .trust-badge { padding: 15px; }
  .trust-badge i { font-size: 2rem; }
}

/* ===== 18. TESTIMONIALS ===== */
.testimonials-section { margin: 40px 0; padding: 40px 20px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: var(--radius-lg); }
.testimonials-section h2 { color: white; text-align: center; margin-bottom: 30px; font-size: 2rem; display: flex; align-items: center; justify-content: center; gap: 10px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; }
.testimonial-card { background: white; padding: 25px; border-radius: var(--radius-md); box-shadow: var(--shadow-md); transition: var(--transition); position: relative; }
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.testimonial-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.testimonial-avatar { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #667eea, #764ba2); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; font-weight: 700; }
.testimonial-info h4 { font-size: 1rem; margin-bottom: 4px; }
.testimonial-info .rating { color: var(--warning); font-size: 0.9rem; }
.testimonial-text { color: var(--gray); font-size: 0.9rem; line-height: 1.6; font-style: italic; }
.testimonial-quote { position: absolute; top: -10px; right: 20px; font-size: 3rem; color: var(--primary); opacity: 0.2; }

/* ===== 19. WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed; bottom: 30px; left: 30px; width: 60px; height: 60px;
  background: #25d366; color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4); cursor: pointer;
  z-index: 999; transition: var(--transition); text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1) rotate(10deg); box-shadow: 0 6px 25px rgba(37,211,102,0.6); }
.whatsapp-float i { font-size: 2rem; }
.whatsapp-pulse { position: absolute; width: 100%; height: 100%; border-radius: 50%; background: #25d366;  }


/* ===== 20. NEWSLETTER ===== */
.newsletter-section { margin: 40px 0; padding: 40px 20px; background: var(--card-bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.newsletter-content { max-width: 600px; margin: 0 auto; text-align: center; }
.newsletter-content h2 { margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.newsletter-content p { color: var(--text-secondary); margin-bottom: 25px; }
.newsletter-form { display: flex; gap: 10px; margin-bottom: 15px; }
.newsletter-form input { flex: 1; padding: 14px 18px; border: 2px solid var(--light-gray); border-radius: 50px; font-size: 1rem; }
.newsletter-form button { background: var(--primary); color: white; padding: 14px 30px; border-radius: 50px; font-weight: 600; }
.newsletter-disclaimer { font-size: 0.8rem; color: var(--text-secondary); }

/* ===== 21. TRUST BADGES ===== */
.trust-section { margin: 40px 0; padding: 30px 20px; background: var(--card-bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.trust-badges { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; max-width: 1000px; margin: 0 auto; }
.trust-badge { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px; text-align: center; transition: var(--transition); }
.trust-badge:hover { transform: translateY(-5px); }
.trust-badge i { font-size: 2.5rem; color: var(--primary); margin-bottom: 5px; }
.trust-badge h4 { font-size: 0.95rem; margin-bottom: 5px; }
.trust-badge p { font-size: 0.8rem; color: var(--text-secondary); }

/* ===== 22. FAQ ===== */
.faq-section { margin: 40px 0; padding: 40px 20px; background: var(--card-bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.faq-section h2 { margin-bottom: 30px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 10px; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 15px; border: 2px solid var(--light-gray); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); }
.faq-item:hover { border-color: var(--primary); }
.faq-question { padding: 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; background: var(--card-bg); transition: var(--transition); }
.faq-question:hover { background: var(--primary-light); }
.faq-question i { transition: transform 0.3s ease; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 20px; }
.faq-item.active .faq-answer { max-height: 500px; padding: 20px; }
.faq-answer p { color: var(--text-secondary); line-height: 1.6; }

/* ===== 23. TOAST NOTIFICATIONS ===== */
.toast-container { position: fixed; top: 100px; right: 20px; z-index: 10000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: white; padding: 16px 20px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; min-width: 300px; }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--primary); }
.toast-close { background: none; border: none; cursor: pointer; color: var(--gray); font-size: 1.2rem; }

/* ===== 24. SEARCH AUTOCOMPLETE ===== */
.search-wrapper { position: relative; }
.search-autocomplete {
  position: absolute; top: 100%; left: 0; right: 0; background: white;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  max-height: 300px; overflow-y: auto; z-index: 1000; display: none;
}
.search-autocomplete.active { display: block; }
.autocomplete-item { padding: 12px 16px; cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 10px; }
.autocomplete-item:hover { background: var(--primary-light); }
.autocomplete-item i { color: var(--primary); }

/* ===== 25. DESKTOP OPTIMIZATIONS ===== */

/* Polices universelles : beau rendu sur tous les OS */
body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Grands écrans (1200px+) */
@media (min-width: 1200px) {
  .container { padding: 0 30px 50px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .hero-slider { height: 450px; }
  .stats-bar { grid-template-columns: repeat(4, 1fr); }
  .search { padding: 35px; }
  .filters-grid { grid-template-columns: repeat(3, 1fr) auto; }
  .footer-content { padding: 60px 40px 30px; }
}

/* Très grands écrans (1440px+) */
@media (min-width: 1440px) {
  .container { max-width: 1400px; padding: 0 40px 60px; }
  .header-content { max-width: 1400px; }
  .nav-item { padding: 12px 18px; font-size: 0.95rem; }
  .cards { grid-template-columns: repeat(4, 1fr); gap: 25px; }
  .hero-slider { height: 500px; }
  .hero-search-box { max-width: 1100px; }
  .card:hover { transform: translateY(-8px); }
  .stat-item:hover { transform: translateY(-8px); }
  .filters-grid { gap: 20px; }
  .footer-content { gap: 50px; }
}

/* Écrans très larges (1920px+) */
@media (min-width: 1920px) {
  .container { max-width: 1600px; padding: 0 60px 70px; }
  .header-content { max-width: 1600px; }
  .cards { grid-template-columns: repeat(5, 1fr); gap: 30px; }
  .hero-slider { height: 550px; border-radius: 20px; }
  .search { padding: 40px; }
  .footer-content { padding: 70px 60px 40px; }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Amélioration hover desktop (pas de hover fantôme sur mobile) */
@media (hover: hover) {
  .card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
  .stat-item:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
  .nav-item:hover { color: var(--primary); background: var(--primary-light); }
  .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,210,106,0.3); }
  .btn-secondary:hover { transform: translateY(-3px); }
  .btn-search:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(10,124,255,0.3); }
}

/* Optimisation du scrollbar pour desktop */
@media (hover: hover) and (pointer: fine) {
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--gray); border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--primary); }
}

/* ===== 26. ARTISAN CARDS WITH PHOTOS ===== */
.card-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.5rem; font-weight: 700;
}
.card-availability {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
}
.card-availability.available { background: rgba(0,210,106,0.1); color: var(--success); }
.card-availability.busy { background: rgba(255,193,7,0.1); color: var(--warning); }
.card-features { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.card-feature {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; background: var(--primary-light);
  border-radius: 20px; font-size: 0.85rem; color: var(--primary);
}
