/* ══════════════════════════════════════════════
   DigitalMatis — Custom Styles
   Couleurs : Navy #1A3471 | Orange #F47920
══════════════════════════════════════════════ */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ─── Gradient text ─────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, #F47920 0%, #FF9A45 50%, #F47920 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Logo — fond blanc sur dark bg ─────────── */
.logo-wrapper {
  background: white;
  border-radius: 10px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.logo-wrapper:hover {
  box-shadow: 0 4px 20px rgba(244,121,32,0.35);
  transform: scale(1.02);
}

/* ─── Profile card (section À propos) ───────── */
.profile-card-wrap {
  background: linear-gradient(145deg, #1A3471, #0F1A35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: 0 30px 80px rgba(10,18,40,0.4);
  position: relative;
  overflow: hidden;
}
.profile-card-wrap::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(244,121,32,0.15), transparent 70%);
  pointer-events: none;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.profile-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #F47920, #FF9A45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(244,121,32,0.4);
}
.profile-stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 0.875rem;
  padding: 0.875rem;
  text-align: center;
}
.skill-tag {
  display: inline-block;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  transition: all 0.2s;
}
.skill-tag:hover {
  background: rgba(244,121,32,0.15);
  border-color: rgba(244,121,32,0.3);
  color: #FF9A45;
}
.activity-block {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #F47920;
  display: inline-block;
}

/* ─── Navbar ────────────────────────────────── */
#navbar {
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}
#navbar.scrolled {
  background: rgba(10, 18, 40, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
#navbar.scrolled .nav-link { color: rgba(255,255,255,0.85); }

.nav-link {
  position: relative;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #F47920;
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: #F47920; }

/* ─── Background Grid ───────────────────────── */
.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ─── Section helpers ───────────────────────── */
.section-badge {
  display: inline-block;
  background: rgba(244,121,32,0.1);
  border: 1px solid rgba(244,121,32,0.3);
  color: #F47920;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
}
.section-badge-dark {
  display: inline-block;
  background: rgba(244,121,32,0.12);
  border: 1px solid rgba(244,121,32,0.25);
  color: #FF9A45;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #1A3471;
  line-height: 1.2;
}
.section-sub {
  margin-top: 1rem;
  font-size: 1rem;
  color: #6B7280;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ─── Service Cards ─────────────────────────── */
.service-card {
  position: relative;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.3s ease;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #F47920, #FF9A45);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover {
  border-color: transparent;
  box-shadow: 0 20px 60px rgba(26,52,113,0.1);
  transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card-featured {
  background: linear-gradient(135deg, #1A3471 0%, #2A4A9A 100%);
  border-color: transparent;
  box-shadow: 0 20px 60px rgba(26,52,113,0.3);
  transform: translateY(-8px);
}
.service-card-featured::before {
  background: linear-gradient(90deg, #F47920, #FF9A45);
  transform: scaleX(1);
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.service-link {
  font-size: 0.875rem;
  font-weight: 700;
  transition: color 0.2s;
}

/* ─── Programme button (Academy cards) ──────── */
.programme-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1.5px dashed #CBD5E1;
  border-radius: 0.75rem;
  color: #1A3471;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s ease;
  background: transparent;
}
.programme-btn:hover {
  border-color: #F47920;
  color: #F47920;
  background: rgba(244,121,32,0.04);
}

/* ─── Value Cards (section À propos) ────────── */
.value-card {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.125rem;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 1rem;
  transition: all 0.25s ease;
  cursor: default;
}
.value-card:hover {
  border-color: transparent;
  box-shadow: 0 8px 30px rgba(26,52,113,0.1);
  transform: translateY(-2px);
}
.value-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

/* ─── Application Cards ─────────────────────── */
.app-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.35s ease;
}
.app-card:hover {
  box-shadow: 0 24px 64px rgba(26,52,113,0.13);
  transform: translateY(-6px);
  border-color: transparent;
}
.app-card-header {
  position: relative;
  height: 9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-icon {
  font-size: 3.5rem;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}
.app-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.app-feature {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.825rem;
  color: #4B5563;
  font-weight: 500;
}
.app-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.app-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.app-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

/* ─── UEMOA country badges ───────────────────── */
.uemoa-country {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #92400E;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ─── SaaS Features ─────────────────────────── */
.saas-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: all 0.3s ease;
}
.saas-feature:hover {
  background: rgba(244,121,32,0.08);
  border-color: rgba(244,121,32,0.2);
  transform: translateX(4px);
}
.saas-feature-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Academy Cards ─────────────────────────── */
.academy-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.3s ease;
}
.academy-card:hover {
  box-shadow: 0 20px 60px rgba(26,52,113,0.1);
  transform: translateY(-4px);
}
.academy-banner {
  height: 11rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* ─── Portfolio Cards ───────────────────────── */
.portfolio-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.3s ease;
}
.portfolio-card:hover {
  box-shadow: 0 20px 60px rgba(26,52,113,0.12);
  transform: translateY(-4px);
}
.portfolio-img {
  position: relative;
  height: 14rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ─── Tag Badges ────────────────────────────── */
.tag-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tag-blue   { background: rgba(59,130,246,0.1); color: #3B82F6; }
.tag-orange { background: rgba(244,121,32,0.1); color: #F47920; }
.tag-green  { background: rgba(34,197,94,0.1);  color: #22C55E; }

/* ─── Testimonials ──────────────────────────── */
.testi-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: all 0.3s ease;
}
.testi-card:hover {
  box-shadow: 0 20px 60px rgba(26,52,113,0.08);
  transform: translateY(-4px);
}

/* ─── Form ──────────────────────────────────── */
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: white;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
}
.form-input::placeholder { color: rgba(255,255,255,0.25); }
.form-input:focus {
  border-color: #F47920;
  background: rgba(244,121,32,0.05);
  box-shadow: 0 0 0 3px rgba(244,121,32,0.1);
}
.form-input option { background: #1A3471; color: white; }

/* ─── Scroll Reveal Animations ──────────────── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* ─── Counter ───────────────────────────────── */
.counter { transition: none; }

/* ─── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0A1228; }
::-webkit-scrollbar-thumb { background: #F47920; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #FF9A45; }

/* ─── Burger animation ──────────────────────── */
#burger.open .burger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#burger.open .burger-line:nth-child(2) { opacity: 0; }
#burger.open .burger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); width: 24px; }

/* ─── Responsive ────────────────────────────── */
@media (max-width: 768px) {
  .service-card-featured { transform: none; }
}
