:root {
  /* Theme Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.95);
  
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;

  --accent-primary: #C19B38;
  --accent-hover: #A8862D;
  --accent-glow: rgba(193, 155, 56, 0.2);

  --border-color: #e5e7eb;

  /* Typography */
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 3vw, 2rem);
  --container-width: 1300px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: normal;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 3vw, 2rem);
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  color: var(--text-primary);
  letter-spacing: 0.5px;
  line-height: 1.25;
}

.section-title span {
  color: var(--accent-primary);
}

/* Marquee */
.marquee-container {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  padding: 1.2rem 0;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  position: relative;
  border-top: 2px solid var(--accent-primary);
  border-bottom: 2px solid var(--accent-primary);
  width: 100%;
  max-width: 100vw;
}

.marquee-content {
  display: inline-block;
  animation: marquee 25s linear infinite;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.marquee-content span {
  margin: 0 clamp(1rem, 2vw, 2rem);
  color: var(--accent-primary);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Cards */
.glass-panel {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
  transform: translateY(-4px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.9rem clamp(1.2rem, 2vw, 2.2rem);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(0.75rem, 1.5vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 0%; height: 100%;
  background-color: var(--bg-primary);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: -1;
}

.btn-primary:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.btn-primary:hover::before {
  width: 100%;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 0%; height: 100%;
  background-color: var(--text-primary);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: -1;
}

.btn-outline:hover {
  color: #fff;
}

.btn-outline:hover::before {
  width: 100%;
}

.btn-dark {
  background-color: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

.btn-dark::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 0%; height: 100%;
  background-color: var(--bg-primary);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: -1;
}

.btn-dark:hover {
  color: var(--text-primary);
  border-color: var(--bg-primary);
}

.btn-dark:hover::before {
  width: 100%;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: padding 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  background-color: var(--bg-glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
  padding: 0.85rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-family: var(--font-heading);
  flex-shrink: 0;
  z-index: 1002;
}

.logo-icon {
  color: var(--accent-primary);
  width: 32px;
  height: 32px;
}

.logo-text {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.logo-text span {
  color: var(--accent-primary);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: clamp(1.5rem, 2.5vw, 3rem);
  list-style: none;
  align-items: center;
}

.nav-links li a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-primary);
  transition: width 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--text-primary);
}

.nav-links li a.active::after,
.nav-links li a:hover::after {
  width: 100%;
}

/* Animated Hamburger Menu */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1002;
  padding: 0;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Footer */
.footer {
  background-color: #0f172a;
  color: #f8fafc;
  border-top: 1px solid #1e293b;
  padding-top: clamp(4rem, 8vw, 7rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.footer-logo, .footer-brand a {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
}

.footer-logo .logo-text, .footer-brand .logo-text {
  color: #ffffff;
}

.footer-desc {
  color: #94a3b8;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.8;
  font-weight: 300;
}

.social-links {
  display: flex;
  gap: 1.2rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-primary);
}

.footer h3 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer ul li {
  color: #94a3b8;
  font-size: 0.92rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-weight: 400;
}

.footer-links ul li a {
  color: #94a3b8;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--accent-primary);
}

.contact-icon {
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 4px;
  width: 16px;
  height: 16px;
}

.footer-bottom {
  background-color: #020617;
  padding: 1.8rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  color: #64748b;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-left.reveal-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-right.reveal-visible {
  opacity: 1;
  transform: translateX(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ==========================================================================
   BADGE PERMANENT OBSIDUS (SITE DE DÉMONSTRATION)
   ========================================================================== */
.demo-pill-badge {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0F172A;
  background-color: #FFFFFF;
  padding: 3px 9px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

#obsidus-permanent-badge {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  pointer-events: auto;
  user-select: none;
}

.obsidus-badge-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1rem;
  border-radius: 9999px;
  background-color: rgba(11, 11, 12, 0.95);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
  text-decoration: none;
}

.obsidus-badge-link:hover {
  background-color: #141416;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.65);
  transform: translateY(-2px);
}

.obsidus-shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 9999px;
}

.obsidus-shimmer-bar {
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-12deg) translateX(-150%);
  transition: transform 1s ease;
}

.obsidus-badge-link:hover .obsidus-shimmer-bar {
  transform: skewX(-12deg) translateX(300%);
}

.obsidus-logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.obsidus-logo-img {
  height: 15px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.obsidus-badge-link:hover .obsidus-logo-img {
  opacity: 1;
}

.obsidus-divider {
  width: 1px;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.2);
}

.obsidus-text-wrap {
  display: flex;
  align-items: center;
}

@media (max-width: 480px) {
  #obsidus-permanent-badge {
    bottom: 1rem;
    right: 1rem;
  }
  .obsidus-badge-link {
    padding: 0.45rem 0.75rem;
    gap: 0.5rem;
  }
  .demo-pill-badge {
    font-size: 8.5px;
    padding: 2px 7px;
  }
}

/* Responsive Overrides (Tablets & Mobile - 992px Breakpoint) */
@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(1.5rem, 3vh, 2.5rem);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-15px);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
    z-index: 1000;
    overflow-y: auto;
    padding: 5rem 2rem 2rem;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links li {
    text-align: center;
  }

  .nav-links li a {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    display: inline-block;
    padding: 0.5rem 1rem;
    letter-spacing: 2px;
  }

  .nav-links li a::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

