* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #04152D;
}

::-webkit-scrollbar-thumb {
  background: #D99B26;
  border-radius: 3px;
}

.hero-bg {
  position: relative;
  min-height: 600px;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/hero-acceuil.jpg') center / cover no-repeat;
  transform: scaleX(-1);
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      rgba(4, 21, 45, 0.95) 0%,
      rgba(4, 21, 45, 0.88) 35%,
      rgba(4, 21, 45, 0.45) 58%,
      rgba(4, 21, 45, 0.05) 100%);
  z-index: 2;
}

.certif-bg {
  background: linear-gradient(135deg, rgba(4, 21, 45, 0.95) 0%, rgba(10, 42, 78, 0.98) 100%),
    url('https://images.unsplash.com/photo-1446776653964-20c1d3a81b06?w=800&q=80') center/cover no-repeat;
}

.text-gold-gradient {
  background: linear-gradient(135deg, #D99B26 0%, #F0C050 50%, #D99B26 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.domain-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.domain-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #D99B26 !important;
  box-shadow: 0 8px 30px rgba(217, 155, 38, 0.20), 0 4px 12px rgba(4, 21, 45, 0.15);
}

.domain-card:hover .domain-icon {
  color: #D99B26;
  transform: scale(1.15);
}

.domain-icon {
  transition: all 0.3s ease;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #04152D;
  border: 1px solid rgba(217, 155, 38, 0.3);
  border-radius: 8px;
  min-width: 220px;
  z-index: 999;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.dropdown-menu.active {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  color: #cdd9e5;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
  background: rgba(217, 155, 38, 0.12);
  color: #D99B26;
}

#mobile-drawer {
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-drawer.open {
  transform: translateX(0);
}

#drawer-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

html {
  scroll-behavior: smooth;
}

.nav-link {
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #D99B26;
  transform: scaleX(0);
  transition: transform 0.25s ease;
  transform-origin: left;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.btn-gold {
  background: #D99B26;
  color: #04152D;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-gold:hover {
  background: #E8B040;
  box-shadow: 0 4px 18px rgba(217, 155, 38, 0.45);
  transform: translateY(-1px);
}

.stat-item {
  transition: transform 0.25s ease;
}

.stat-item:hover {
  transform: scale(1.05);
}

.section-accent {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #D99B26, #F0C050);
  border-radius: 2px;
  margin: 0 auto;
}

.why-card {
  transition: background 0.25s ease;
}

.why-card:hover {
  background: rgba(217, 155, 38, 0.06);
}

.news-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Footer Dark Mode Logo Filter */
.footer-logo {
  mix-blend-mode: screen;
  filter: invert(1) hue-rotate(180deg) brightness(1.5);
}
