/*
Theme Name: Barak Technologies
Theme URI: https://baraktechnologies.net
Author: Barak Technologies
Author URI: https://baraktechnologies.net
Description: Thème professionnel pour Barak Technologies - Solutions IT, Cybersécurité, Réseaux & Infrastructures à Bamako, Mali.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: barak-technologies
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Arial, sans-serif; font-size: 16px; line-height: 1.7; color: #1a1a2e; background: #ffffff; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

:root {
  --blue-dark: #050e1f; --blue-main: #1565c0; --blue-light: #42a5f5;
  --blue-pale: #E6F1FB; --text-dark: #1a1a2e; --text-mid: #4a4a6a;
  --text-light: #8888aa; --white: #ffffff; --gray-bg: #f7f8fc;
  --border: #e2e8f0; --green-bg: #E1F5EE; --green-text: #0F6E56;
  --red-bg: #FCEBEB; --red-text: #A32D2D; --purple-bg: #EEEDFE;
  --purple-text: #534AB7; --amber-bg: #FAEEDA; --amber-text: #854F0B;
  --teal-bg: #EAF3DE; --teal-text: #3B6D11;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px;
  --shadow: 0 2px 16px rgba(21,101,192,0.08);
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--gray-bg); }

.section-label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 10px; }
.section-title { font-size: 34px; font-weight: 700; color: var(--text-dark); margin-bottom: 12px; line-height: 1.2; }
.section-sub { font-size: 16px; color: var(--text-mid); max-width: 560px; line-height: 1.7; }
.section-header { margin-bottom: 52px; }
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: all .2s; }
.btn-primary { background: var(--blue-main); color: var(--white); }
.btn-primary:hover { background: #1976d2; }
.btn-outline { background: transparent; color: var(--blue-light); border-color: var(--blue-light); }
.btn-outline:hover { background: rgba(66,165,245,0.1); }
.btn-white { background: var(--white); color: var(--blue-main); }
.btn-white:hover { background: var(--blue-pale); }

.badge { display: inline-block; font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.badge-blue   { background: var(--blue-pale);   color: var(--blue-main); }
.badge-green  { background: var(--green-bg);    color: var(--green-text); }
.badge-red    { background: var(--red-bg);      color: var(--red-text); }
.badge-purple { background: var(--purple-bg);   color: var(--purple-text); }
.badge-amber  { background: var(--amber-bg);    color: var(--amber-text); }
.badge-teal   { background: var(--teal-bg);     color: var(--teal-text); }

/* NAVBAR */
.bt-navbar { position: sticky; top: 0; z-index: 1000; background: var(--blue-dark); border-bottom: 1px solid rgba(255,255,255,0.07); }
.bt-navbar .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.navbar-brand { display: flex; align-items: center; gap: 12px; }
.navbar-logo-box { width: 40px; height: 40px; background: var(--blue-main); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: var(--white); }
.navbar-name { font-size: 16px; font-weight: 600; color: var(--white); }
.navbar-nav { display: flex; align-items: center; gap: 28px; }
.navbar-nav a { font-size: 14px; color: rgba(255,255,255,0.65); transition: color .2s; }
.navbar-nav a:hover, .navbar-nav a.active { color: var(--blue-light); }
.navbar-cta { background: var(--blue-main) !important; color: var(--white) !important; padding: 9px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; }
.navbar-cta:hover { background: #1976d2 !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; display: block; }

/* DROPDOWN MENU */
.nav-item { position: relative; }
.nav-item:hover .dropdown { display: block; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--blue-dark); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); min-width: 220px; padding: 8px 0; box-shadow: 0 8px 32px rgba(0,0,0,0.4); z-index: 9999; }
.dropdown a { display: block; padding: 10px 18px; font-size: 13px; color: rgba(255,255,255,0.65) !important; transition: all .2s; border-left: 2px solid transparent; }
.dropdown a:hover { color: var(--blue-light) !important; background: rgba(255,255,255,0.05); border-left-color: var(--blue-light); }

/* HERO */
.bt-hero { background: var(--blue-dark); padding: 100px 0 80px; text-align: center; position: relative; overflow: hidden; }
.bt-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(21,101,192,0.18) 0%, transparent 70%); pointer-events: none; }
.hero-content { position: relative; z-index: 1; }
.hero-title { font-size: 52px; font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: 20px; }
.hero-title span { color: var(--blue-light); }
.hero-sub { font-size: 18px; color: rgba(255,255,255,0.6); max-width: 520px; margin: 0 auto 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust { display: flex; justify-content: center; gap: 48px; padding: 32px 0 0; margin-top: 60px; border-top: 1px solid rgba(255,255,255,0.08); flex-wrap: wrap; }
.trust-item { text-align: center; }
.trust-num { font-size: 22px; font-weight: 700; color: var(--blue-light); }
.trust-lbl { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 3px; }

/* PAGE HERO (sous-pages) */
.page-hero { background: var(--blue-dark); padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 20% 50%, rgba(21,101,192,0.2) 0%, transparent 70%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.breadcrumb a { font-size: 13px; color: rgba(255,255,255,0.45); }
.breadcrumb a:hover { color: var(--blue-light); }
.breadcrumb span { font-size: 13px; color: rgba(255,255,255,0.25); }
.breadcrumb strong { font-size: 13px; color: rgba(255,255,255,0.65); font-weight: 400; }
.page-hero-badge { display: inline-block; margin-bottom: 16px; }
.page-hero-title { font-size: 42px; font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: 16px; }
.page-hero-title span { color: var(--blue-light); }
.page-hero-sub { font-size: 17px; color: rgba(255,255,255,0.6); max-width: 580px; line-height: 1.7; margin-bottom: 28px; }
.page-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* SERVICES GRID */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px 22px; transition: border-color .2s, box-shadow .2s; }
.service-card:hover { border-color: var(--blue-main); box-shadow: var(--shadow); }
.svc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.svc-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.svc-icon svg { width: 22px; height: 22px; }
.svc-name { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.svc-desc { font-size: 14px; color: var(--text-mid); line-height: 1.65; margin-bottom: 16px; }
.svc-link { font-size: 13px; color: var(--blue-main); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; transition: gap .2s; }
.svc-link:hover { gap: 9px; }

/* SERVICE DETAIL PAGE */
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.detail-body h2 { font-size: 24px; font-weight: 700; color: var(--text-dark); margin: 32px 0 12px; }
.detail-body h2:first-child { margin-top: 0; }
.detail-body p { font-size: 15px; color: var(--text-mid); line-height: 1.8; margin-bottom: 16px; }
.detail-body ul { padding-left: 0; list-style: none; margin-bottom: 20px; }
.detail-body ul li { font-size: 15px; color: var(--text-mid); padding: 8px 0 8px 28px; border-bottom: 1px solid var(--border); position: relative; line-height: 1.6; }
.detail-body ul li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; background: var(--blue-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.detail-body ul li::after { content: '✓'; position: absolute; left: 3px; top: 50%; transform: translateY(-50%); font-size: 10px; color: var(--blue-main); font-weight: 700; }

.detail-sidebar { position: sticky; top: 88px; }
.sidebar-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; margin-bottom: 16px; }
.sidebar-card-title { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.sidebar-stat { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.sidebar-stat:last-child { border-bottom: none; }
.sidebar-stat-label { font-size: 13px; color: var(--text-light); }
.sidebar-stat-val { font-size: 13px; font-weight: 600; color: var(--blue-main); }
.sidebar-cta { background: var(--blue-dark); border-radius: var(--radius-md); padding: 24px; text-align: center; }
.sidebar-cta-title { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.sidebar-cta-sub { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.sidebar-links { display: flex; flex-direction: column; gap: 8px; }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--gray-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; color: var(--text-mid); transition: all .2s; }
.sidebar-link:hover { border-color: var(--blue-main); color: var(--blue-main); }
.sidebar-link svg { width: 16px; height: 16px; flex-shrink: 0; }

/* FEATURES GRID */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 16px; }
.feature-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px 20px; }
.feature-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature-icon svg { width: 20px; height: 20px; }
.feature-title { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.feature-text { font-size: 13px; color: var(--text-mid); line-height: 1.65; }

/* PROCESS */
.process-row { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.proc-step { padding: 28px 20px; text-align: center; border-right: 1px solid var(--border); }
.proc-step:last-child { border-right: none; }
.proc-num { font-size: 28px; font-weight: 800; color: var(--blue-main); margin-bottom: 8px; }
.proc-name { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 5px; }
.proc-sub { font-size: 13px; color: var(--text-light); }

/* WHY US */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; }
.why-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.why-icon svg { width: 20px; height: 20px; }
.why-title { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.why-text { font-size: 14px; color: var(--text-mid); line-height: 1.65; }

/* CTA BANNER */
.cta-banner { background: var(--blue-dark); border-radius: var(--radius-lg); padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-title { font-size: 24px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.cta-sub { font-size: 15px; color: rgba(255,255,255,0.5); }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; display: flex; align-items: flex-start; gap: 16px; }
.contact-ic { width: 44px; height: 44px; background: var(--blue-pale); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-ic svg { width: 20px; height: 20px; stroke: var(--blue-main); fill: none; stroke-width: 2; }
.contact-label { font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.contact-val { font-size: 15px; font-weight: 600; color: var(--text-dark); }

/* SERVICES LIST PAGE */
.services-list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-list-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 32px; display: flex; gap: 20px; align-items: flex-start; transition: border-color .2s, box-shadow .2s; }
.service-list-card:hover { border-color: var(--blue-main); box-shadow: var(--shadow); }
.svc-list-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.svc-list-icon svg { width: 26px; height: 26px; }
.svc-list-content {}
.svc-list-badge { margin-bottom: 8px; }
.svc-list-name { font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.svc-list-desc { font-size: 14px; color: var(--text-mid); line-height: 1.65; margin-bottom: 14px; }
.svc-list-link { font-size: 14px; color: var(--blue-main); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: gap .2s; }
.svc-list-link:hover { gap: 10px; }

/* FOOTER */
.bt-footer { background: var(--blue-dark); padding: 48px 0 28px; border-top: 1px solid rgba(255,255,255,0.07); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-box { width: 40px; height: 40px; background: var(--blue-main); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: var(--white); }
.footer-name { font-size: 16px; font-weight: 600; color: var(--white); }
.footer-desc { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.65; }
.footer-col-title { font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 16px; }
.footer-col-links { display: flex; flex-direction: column; gap: 10px; }
.footer-col-links a { font-size: 13px; color: rgba(255,255,255,0.45); transition: color .2s; }
.footer-col-links a:hover { color: var(--blue-light); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.07); }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.35); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,0.35); transition: color .2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .services-grid, .services-list-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 36px; }
  .page-hero-title { font-size: 32px; }
  .process-row { grid-template-columns: repeat(2, 1fr); }
  .proc-step:nth-child(2) { border-right: none; }
  .proc-step:nth-child(1), .proc-step:nth-child(2) { border-bottom: 1px solid var(--border); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
}
@media (max-width: 640px) {
  .navbar-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--blue-dark); flex-direction: column; padding: 20px 24px; gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); z-index: 999; }
  .navbar-nav.open { display: flex; }
  .dropdown { position: static; border: none; box-shadow: none; padding: 0 0 0 16px; background: transparent; }
  .hamburger { display: flex; }
  .services-grid, .services-list-grid, .why-grid, .contact-grid, .features-grid { grid-template-columns: 1fr; }
  .process-row { grid-template-columns: 1fr; }
  .proc-step { border-right: none !important; border-bottom: 1px solid var(--border); }
  .proc-step:last-child { border-bottom: none; }
  .hero-title { font-size: 28px; }
  .page-hero-title { font-size: 26px; }
  .cta-banner { flex-direction: column; text-align: center; padding: 32px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .section { padding: 56px 0; }
  .service-list-card { flex-direction: column; }
}
