/* ============================================================
   BANTOO IQ — Style principal
   Palette: #1A2B5F | #D4A843 | #0F6E56 | #F5F5F5 | #2D2D2D
   ============================================================ */

:root {
  --primary:   #1A2B5F;
  --secondary: #D4A843;
  --accent:    #0F6E56;
  --bg-light:  #F5F5F5;
  --text-dark: #2D2D2D;
  --white:     #FFFFFF;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  margin: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

.text-gold    { color: var(--secondary) !important; }
.text-teal    { color: var(--accent) !important; }
.text-primary { color: var(--primary) !important; }

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(26, 43, 95, 0.97);
  backdrop-filter: blur(8px);
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}

.navbar-brand img { height: 36px; }

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary) !important;
}

.navbar-toggler { border-color: rgba(255,255,255,0.3); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-nav {
  background: var(--secondary);
  color: var(--primary) !important;
  border-radius: 4px;
  font-weight: 700 !important;
  padding: 0.4rem 1.2rem !important;
}

.btn-nav:hover { background: #c49630; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--primary);
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 { color: var(--white); }

.hero .lead {
  color: rgba(255,255,255,0.75);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 560px;
}

.btn-primary-custom {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  padding: 0.85rem 2rem;
  font-weight: 700;
  border-radius: 4px;
  font-size: 1rem;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary-custom:hover {
  background: #c49630;
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212,168,67,0.4);
}

.btn-outline-custom {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
  padding: 0.85rem 2rem;
  font-weight: 600;
  border-radius: 4px;
  font-size: 1rem;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-outline-custom:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

/* ---------- Section ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-light); }

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary);
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  margin-bottom: 1rem;
}

.divider-gold {
  width: 48px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
  margin: 1.5rem 0;
}

/* ---------- Piliers / Cards ---------- */
.pillar-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  height: 100%;
  transition: transform 0.25s, box-shadow 0.25s;
  border-bottom: 3px solid transparent;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26,43,95,0.1);
  border-bottom-color: var(--secondary);
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.pillar-icon svg { color: var(--secondary); }

/* ---------- Stats ---------- */
.stats-bar {
  background: var(--primary);
  padding: 3rem 0;
}

.stat-item { text-align: center; }

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
}

.stat-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

/* ---------- Services Cards ---------- */
.service-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.25s;
}

.service-card:hover { box-shadow: 0 8px 32px rgba(26,43,95,0.12); }

.service-card-header {
  background: var(--primary);
  padding: 1.75rem;
}

.service-card-header h3 { color: var(--white); margin: 0; }

.service-tag {
  display: inline-block;
  background: rgba(212,168,67,0.15);
  color: var(--secondary);
  border: 1px solid var(--secondary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

.service-card-body { padding: 1.75rem; }

.service-feature {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.service-feature::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Team ---------- */
.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.team-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  color: var(--secondary);
  font-weight: 800;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border-left: 4px solid var(--secondary);
  padding: 1.75rem;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.testimonial-card blockquote {
  font-style: italic;
  font-size: 1rem;
  margin: 0 0 1rem;
  color: var(--text-dark);
}

.testimonial-author { font-weight: 700; font-size: 0.9rem; color: var(--primary); }
.testimonial-role   { font-size: 0.82rem; color: #888; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #0d1a3a 100%);
  padding: 5rem 0;
  text-align: center;
}

.cta-banner h2 { color: var(--white); }
.cta-banner p  { color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto 2rem; }

/* ---------- Contact Form ---------- */
.contact-form .form-control,
.contact-form .form-select {
  border: 1.5px solid #ddd;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(212,168,67,0.15);
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

/* ---------- Réalisations ---------- */
.realisation-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.realisation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26,43,95,0.1);
}

.realisation-card-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.realisation-card-body { padding: 1.5rem; }

.sector-badge {
  display: inline-block;
  background: var(--bg-light);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: var(--primary);
  padding: 7rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero h1 { color: var(--white); }
.page-hero .lead { color: rgba(255,255,255,0.7); }

/* ---------- Footer ---------- */
footer {
  background: #0f1d3e;
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

footer h5 {
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

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

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

.footer-logo { height: 32px; margin-bottom: 1rem; filter: brightness(0) invert(1); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.social-links { display: flex; gap: 0.75rem; margin-top: 1rem; }

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6) !important;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.social-link:hover {
  background: var(--secondary);
  color: var(--primary) !important;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb-item a { color: rgba(255,255,255,0.6); text-decoration: none; }
.breadcrumb-item.active { color: var(--secondary); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.3); }

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .hero { min-height: 85vh; }
}
