/* ============================================
   CIBNET Premium Design System
   Cabinet de conseil IT & Cybersécurité
   ============================================ */

:root {
  --c-navy:        #060d1f;
  --c-navy-mid:    #0a1628;
  --c-navy-card:   #0f1d35;
  --c-electric:    #0ea5e9;
  --c-electric-dim: rgba(14, 165, 233, 0.12);
  --c-border:      rgba(255, 255, 255, 0.07);
  --c-border-lit:  rgba(255, 255, 255, 0.13);
  --c-text-dim:    #94a3b8;
}

/* ----------------------------------------
   HEADER — Dark frosted glass
   ---------------------------------------- */
header.site-header {
  background: rgba(6, 13, 31, 0.96);
  border-bottom: 1px solid var(--c-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: none;
}

header.site-header .nav-link {
  color: #94a3b8;
}

header.site-header .nav-link:hover,
header.site-header .nav-link.active {
  color: #ffffff;
}

header.site-header .nav-link::after {
  background: var(--c-electric);
  background-image: none;
}

header.site-header #mobile-menu-button i {
  color: #94a3b8;
}

header.site-header .nav-cta {
  background: var(--c-electric);
  color: #ffffff;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s ease, transform 0.2s ease;
  border: none;
  background-image: none;
}

header.site-header .nav-cta:hover {
  background: #38bdf8;
  transform: none;
  box-shadow: none;
}

/* ----------------------------------------
   MOBILE MENU — Dark
   ---------------------------------------- */
#mobile-menu {
  background: var(--c-navy-mid);
  border-left: 1px solid var(--c-border-lit);
}

#mobile-menu .flex.justify-between {
  border-color: var(--c-border);
}

#mobile-menu nav a {
  color: #94a3b8 !important;
  border-color: var(--c-border) !important;
}

#mobile-menu nav a:hover {
  color: #ffffff !important;
}

#mobile-menu #mobile-menu-close i {
  color: #94a3b8;
}

#mobile-menu .p-4.mt-2 a {
  background: var(--c-electric);
  background-image: none;
  border-radius: 2px;
}

/* ----------------------------------------
   HERO — Dark navy with grid
   ---------------------------------------- */
.hero-premium {
  background-color: var(--c-navy);
  background-image:
    radial-gradient(ellipse at 8% 60%, rgba(14, 165, 233, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse at 88% 15%, rgba(37, 99, 235, 0.07) 0%, transparent 45%);
  position: relative;
  overflow: hidden;
}

.hero-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}

.hero-premium::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.4), transparent);
}

/* Hero CTA buttons */
.hero-premium .cta-primary {
  background: var(--c-electric);
  color: #ffffff;
  border: 1px solid var(--c-electric);
}

.hero-premium .cta-primary:hover {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #ffffff;
}

.hero-premium .cta-secondary {
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #e2e8f0 !important;
  background: transparent !important;
}

.hero-premium .cta-secondary:hover {
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

/* ----------------------------------------
   SECTION LABELS — Tech uppercase style
   ---------------------------------------- */
.label-tech {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-electric);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(14, 165, 233, 0.4);
  margin-bottom: 1.25rem;
}

/* ----------------------------------------
   ACCENT DECORATION
   ---------------------------------------- */
.accent-rule {
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--c-electric);
  margin-bottom: 1.5rem;
}

/* ----------------------------------------
   CARDS — Precision border hover
   ---------------------------------------- */
.card-premium {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.card-premium:hover {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow:
    0 0 0 1px rgba(14, 165, 233, 0.1),
    0 8px 24px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

/* ----------------------------------------
   SECTION — Subtle dot grid (light bg)
   ---------------------------------------- */
.bg-grid-light {
  background-image:
    radial-gradient(circle, #d1d5db 1px, transparent 1px);
  background-size: 28px 28px;
  background-color: #f9fafb;
}

/* ----------------------------------------
   EXPERTISE SECTION BORDER — IT divider
   ---------------------------------------- */
.expertise-divider {
  border-bottom: 1px solid #e5e7eb;
  position: relative;
}

.expertise-divider::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 3rem;
  height: 1px;
  background: var(--c-electric);
}

/* ----------------------------------------
   STATS — Accent left border
   ---------------------------------------- */
.stat-premium {
  border-left: 2px solid var(--c-electric);
  padding-left: 1.25rem;
}

/* ----------------------------------------
   FOOTER
   ---------------------------------------- */
footer {
  background: var(--c-navy) !important;
  border-top: 1px solid var(--c-border-lit);
}

footer .text-accent {
  color: var(--c-electric) !important;
}

/* ----------------------------------------
   SCROLL-TO-TOP
   ---------------------------------------- */
#scrollToTop {
  background: var(--c-electric);
  border-radius: 2px;
}

#scrollToTop:hover {
  background: #38bdf8;
}

/* ----------------------------------------
   TYPOGRAPHY — Section overline
   ---------------------------------------- */
.overline {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-electric);
  display: block;
  margin-bottom: 0.75rem;
}

/* ----------------------------------------
   MARQUEE — Scrolling tech/partners band
   ---------------------------------------- */
.marquee-wrapper {
  overflow: hidden;
  position: relative;
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 1.25rem 0;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #f8fafc, transparent);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #f8fafc, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 2.5rem;
  min-width: 140px;
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity 0.2s ease;
  filter: grayscale(1);
}

.marquee-item:hover {
  opacity: 1;
  filter: grayscale(0);
}

.marquee-item img {
  max-height: 32px;
  max-width: 110px;
  width: auto;
  object-fit: contain;
}

.marquee-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #374151;
  white-space: nowrap;
}

/* ----------------------------------------
   HDS STRIP — Certification highlight
   ---------------------------------------- */
.hds-strip {
  background: linear-gradient(135deg, #060d1f 0%, #0a1628 100%);
  border-top: 1px solid rgba(14, 165, 233, 0.2);
  border-bottom: 1px solid rgba(14, 165, 233, 0.2);
}

.hds-cert-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 4px;
  background: rgba(14, 165, 233, 0.05);
  transition: border-color 0.2s, background 0.2s;
}

.hds-cert-badge:hover {
  border-color: rgba(14, 165, 233, 0.5);
  background: rgba(14, 165, 233, 0.1);
}

.hds-cert-badge .cert-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.hds-cert-badge .cert-desc {
  font-size: 0.65rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
