/* CAURIS TECHNOLOGIE AFRIQUE - Main Stylesheet */
:root {
  --primary-emerald: #059669;
  --primary-dark: #064e3b;
  --primary-light: #10b981;
  --accent-gold: #d97706;
  --accent-gold-light: #f59e0b;
  --tech-navy: #0f172a;
  --tech-slate: #1e293b;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --radius: 12px;
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header & Navigation */
.header-topbar {
  background-color: var(--tech-navy);
  color: #94a3b8;
  font-size: 0.875rem;
  padding: 8px 0;
}

.currency-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.currency-badge:hover, .currency-badge.active {
  background: var(--accent-gold);
  color: #fff;
  border-color: var(--accent-gold);
}

.js-lang-btn {
  transition: all 0.2s ease-in-out !important;
}
.js-lang-btn:hover {
  opacity: 1 !important;
  transform: scale(1.18) !important;
}

.navbar-main {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 52px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.logo-brand:hover .logo-img {
  transform: scale(1.03);
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-emerald));
  color: var(--accent-gold-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
}

.logo-text-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--tech-navy);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.logo-text-title span {
  color: var(--primary-emerald);
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Quote Cart Icon */
.cart-button-trigger {
  position: relative;
  background: var(--tech-navy);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.cart-button-trigger:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.cart-count-badge {
  background: var(--accent-gold);
  color: #ffffff;
  font-size: 0.75rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* Hero Carousel Section */
.hero-banner {
  background: linear-gradient(135deg, var(--tech-navy) 0%, #0f2720 100%);
  color: #ffffff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 119, 6, 0.2);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold-light);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--primary-light);
}

.hero-desc {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 35px;
  max-width: 650px;
}

/* Product Cards Grid */
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.product-img-wrapper {
  height: 220px;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.06);
}

.badge-featured {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-gold);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.badge-brand {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-emerald);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tech-navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-box {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-formatted {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--tech-navy);
}

.price-currency-code {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 4px;
}

.btn-add-quote {
  background: var(--primary-emerald);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-add-quote:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Feature Boxes */
.feature-box {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(5, 150, 105, 0.1);
  color: var(--primary-emerald);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

/* Software Solution Cards */
.software-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  transition: all 0.3s ease;
}

.software-card:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-lg);
}

.software-badge {
  background: var(--accent-gold);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
}

/* Modal Drawer / Panier de Devis */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content-box {
  background: #ffffff;
  border-radius: 16px;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 30px;
  position: relative;
}

/* Contact & Regional Coverage Cards */
#contactSection .bg-navy {
  background-color: var(--tech-navy) !important;
  color: #ffffff !important;
}

#contactSection .bg-navy h6 {
  color: #ffffff !important;
}

#contactSection .bg-navy p,
#contactSection .bg-navy a,
#contactSection .bg-navy .text-muted,
#contactSection .bg-navy .text-light {
  color: #e2e8f0 !important;
}

/* Footer */
footer {
  background: var(--tech-navy);
  color: #94a3b8;
  padding-top: 60px;
  padding-bottom: 30px;
}

footer h5 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 20px;
}

footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--primary-light);
}

/* Admin Dashboard Table */
.admin-card {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

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

.table-custom th {
  background: #f8fafc;
  color: var(--tech-navy);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--border-color);
}

.table-custom td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.table-custom tr:hover {
  background: #f1f5f9;
}
