/* ========================================
   TechNova Solutions Bénin — Microsoft Marketplace Style
   ======================================== */

:root {
  --ms-blue: #0078d4;
  --ms-blue-dark: #005a9e;
  --ms-blue-light: #e8f4fd;
  --tn-green: #008751;
  --tn-yellow: #fccd09;
  --tn-red: #e8112d;
  --tn-navy: #1a2b4a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 8px;
  --radius-lg: 12px;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--gray-50); color: var(--gray-800); line-height: 1.6; }
a { color: var(--ms-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== NAVBAR ===== */
.navbar {
  background: var(--tn-navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.navbar-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px; height: 52px;
}
.ms-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0;
}
.ms-name { color: var(--white); font-size: 15px; font-weight: 600; }
.ms-divider { color: rgba(255,255,255,0.4); margin: 0 4px; }
.ms-marketplace { color: rgba(255,255,255,0.85); font-size: 14px; }
.navbar-center { flex: 1; max-width: 480px; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px; padding: 6px 12px;
  transition: background 0.2s;
}
.search-box:focus-within { background: rgba(255,255,255,0.2); }
.search-box svg { color: rgba(255,255,255,0.6); flex-shrink: 0; }
.search-box input {
  background: none; border: none; outline: none;
  color: var(--white); font-size: 14px; width: 100%;
}
.search-box input::placeholder { color: rgba(255,255,255,0.5); }
.navbar-right { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  color: rgba(255,255,255,0.8); font-size: 13px; padding: 6px 10px;
  border-radius: 4px; transition: all 0.2s; text-decoration: none;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white); background: rgba(255,255,255,0.12);
}
.btn-signin {
  background: var(--ms-blue); color: var(--white);
  border: none; border-radius: 4px; padding: 6px 16px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background 0.2s;
}
.btn-signin:hover { background: var(--ms-blue-dark); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  padding: 10px 24px; font-size: 13px; color: var(--gray-600);
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 6px;
}
.breadcrumb a { color: var(--ms-blue); }
.breadcrumb-sep { color: var(--gray-400); }

/* ===== HERO CARD ===== */
.hero-card {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.hero-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 32px 24px;
  display: flex; align-items: flex-start; gap: 32px;
}
.hero-logo-wrap {
  flex-shrink: 0;
  width: 140px; height: 140px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.hero-logo { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.hero-info { flex: 1; }
.partner-name {
  font-size: 28px; font-weight: 700; color: var(--gray-800);
  margin-bottom: 8px; line-height: 1.2;
}
.partner-location {
  display: flex; align-items: center; gap: 6px;
  color: var(--gray-600); font-size: 14px; margin-bottom: 16px;
}
.partner-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag {
  background: var(--ms-blue-light); color: var(--ms-blue);
  border: 1px solid #c7e0f4; border-radius: 20px;
  padding: 4px 12px; font-size: 12px; font-weight: 500;
  transition: all 0.2s; cursor: default;
}
.tag:hover { background: var(--ms-blue); color: var(--white); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-contact {
  display: flex; align-items: center; gap: 8px;
  background: var(--ms-blue); color: var(--white);
  border: none; border-radius: 4px; padding: 10px 20px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; box-shadow: var(--shadow-sm);
}
.btn-contact:hover { background: var(--ms-blue-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-website {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--ms-blue);
  border: 2px solid var(--ms-blue); border-radius: 4px; padding: 8px 20px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; text-decoration: none;
}
.btn-website:hover { background: var(--ms-blue-light); text-decoration: none; }
.hero-badges {
  display: flex; flex-direction: column; gap: 12px;
  flex-shrink: 0; align-items: flex-end;
}
.badge-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 10px 16px;
  font-size: 13px; font-weight: 500; color: var(--gray-700);
  min-width: 180px;
}
.badge-icon {
  width: 40px; height: 40px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.badge-icon.gold { background: linear-gradient(135deg, #f59e0b, #d97706); }
.badge-icon.blue { background: linear-gradient(135deg, #0078d4, #005a9e); }

/* ===== TABS ===== */
.tabs-bar {
  background: var(--white);
  border-bottom: 2px solid var(--gray-200);
  position: sticky; top: 52px; z-index: 90;
}
.tabs-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px;
  display: flex; gap: 0;
}
.tab-btn {
  background: none; border: none; cursor: pointer;
  padding: 14px 20px; font-size: 14px; font-weight: 500;
  color: var(--gray-600); border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: all 0.2s;
}
.tab-btn:hover { color: var(--ms-blue); }
.tab-btn.active { color: var(--ms-blue); border-bottom-color: var(--ms-blue); font-weight: 600; }

/* ===== MAIN CONTENT ===== */
.main-content { max-width: 1280px; margin: 0 auto; padding: 32px 24px; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.content-section { margin-bottom: 40px; }
.section-title {
  font-size: 20px; font-weight: 700; color: var(--gray-800);
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-200);
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ''; display: block; width: 4px; height: 22px;
  background: var(--tn-green); border-radius: 2px;
}

/* About text */
.about-text p { margin-bottom: 14px; color: var(--gray-600); font-size: 15px; line-height: 1.7; }
.about-text p:last-child { margin-bottom: 0; }

/* Expertise */
.expertise-section { background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.expertise-note { font-size: 12px; color: var(--gray-400); margin-bottom: 24px; font-style: italic; }
.expertise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.expertise-col {}
.col-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--gray-800);
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--tn-green);
}
.expertise-list { list-style: none; }
.expertise-list li {
  font-size: 13px; color: var(--gray-600);
  padding: 5px 0; border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; gap: 6px;
}
.expertise-list li::before {
  content: '▸'; color: var(--tn-green); font-size: 11px; flex-shrink: 0;
}

/* Stats */
.stats-section {}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px 20px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
  transition: all 0.3s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--tn-green); }
.stat-number {
  font-size: 42px; font-weight: 800;
  background: linear-gradient(135deg, var(--tn-green), var(--ms-blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 13px; color: var(--gray-600); font-weight: 500; }

/* Solutions */
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.solution-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200); transition: all 0.3s;
}
.solution-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.solution-icon {
  width: 56px; height: 56px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.solution-card h3 { font-size: 16px; font-weight: 700; color: var(--gray-800); margin-bottom: 10px; }
.solution-card p { font-size: 13px; color: var(--gray-600); line-height: 1.6; margin-bottom: 14px; }
.solution-tag {
  display: inline-block; background: var(--gray-100); color: var(--gray-600);
  border-radius: 4px; padding: 2px 8px; font-size: 11px; font-weight: 500;
  margin-right: 4px; margin-top: 4px;
}

/* Info grid */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.info-block {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
}
.info-block h3 {
  font-size: 15px; font-weight: 700; color: var(--gray-800);
  margin-bottom: 16px; padding-bottom: 8px;
  border-bottom: 2px solid var(--tn-green);
}
.info-table { width: 100%; border-collapse: collapse; }
.info-table tr { border-bottom: 1px solid var(--gray-100); }
.info-table tr:last-child { border-bottom: none; }
.info-table td { padding: 8px 4px; font-size: 13px; vertical-align: top; }
.info-label { color: var(--gray-400); font-weight: 600; width: 40%; white-space: nowrap; }
.info-table a { color: var(--ms-blue); }

/* ===== MODAL ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 1000;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-box {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px; max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); position: relative;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--gray-100); border: none; border-radius: 50%;
  width: 32px; height: 32px; cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--gray-200); }
.modal-box h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--gray-800); }
.modal-box > p { font-size: 14px; color: var(--gray-600); margin-bottom: 24px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.form-group input, .form-group select, .form-group textarea {
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 10px 12px; font-size: 14px; outline: none;
  transition: border-color 0.2s; font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--ms-blue); box-shadow: 0 0 0 3px rgba(0,120,212,0.1);
}
.btn-submit {
  background: var(--ms-blue); color: var(--white);
  border: none; border-radius: var(--radius); padding: 12px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background 0.2s; margin-top: 8px;
}
.btn-submit:hover { background: var(--ms-blue-dark); }

/* ===== FOOTER ===== */
.footer {
  background: var(--tn-navy); color: rgba(255,255,255,0.7);
  padding: 20px 24px; margin-top: 60px;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 12px; text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-inner { flex-direction: column; gap: 20px; }
  .hero-badges { flex-direction: row; align-items: flex-start; }
  .expertise-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .partner-name { font-size: 22px; }
}
