/* ==========================================================================
   components.css — Shared component styles used across ALL pages
   ========================================================================== */

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(245, 243, 241, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Solid vertical borders on navbar, aligned with main container */
.navbar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  pointer-events: none;
  z-index: 1;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

/* Dotted bottom border only inside the container */
.navbar-inner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(17, 25, 39, 0.18) 0, rgba(17, 25, 39, 0.18) 6px, transparent 6px, transparent 14px);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo-icon {
  height: 28px;
  width: auto;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14.5px;
  padding: 7px 14px;
  border-radius: 8px;
  transition: all 0.15s;
  font-weight: 450;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--accent-soft);
}

/* Secteurs dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14.5px;
  padding: 7px 14px;
  border-radius: 8px;
  transition: all 0.15s;
  font-weight: 450;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font-family: var(--font-body);
}

.nav-dropdown-trigger svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-trigger {
  color: var(--text-primary);
  background: var(--accent-soft);
}

.nav-dropdown:hover .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 320px;
  white-space: nowrap;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(17, 25, 39, 0.10), 0 2px 8px rgba(17, 25, 39, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(4px);
  transition: all 0.2s ease;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 450;
  transition: all 0.15s;
}

.nav-dropdown-menu a:hover {
  background: var(--accent-soft);
}

.nav-dropdown-menu a .dropdown-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-dropdown-menu a .dropdown-icon svg {
  width: 16px;
  height: 16px;
}

.nav-dropdown-menu a .dropdown-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-dropdown-menu a .dropdown-label span:last-child {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 400;
}

/* Grouped two-column dropdown variant */
.nav-dropdown-menu--grouped {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-width: 580px;
  padding: 8px 0;
  left: 0;
  transform: translateX(0) translateY(4px);
}

.nav-dropdown:hover .nav-dropdown-menu--grouped {
  transform: translateX(0) translateY(0);
}

.nav-dropdown-menu--grouped .dropdown-group {
  padding: 0 4px;
}

.nav-dropdown-menu--grouped .dropdown-group + .dropdown-group {
  border-left: 1px solid var(--border);
}

.dropdown-group-title {
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  padding: 8px 14px 6px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-right: 8px;
}

.lang-switch button {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.02em;
}

.lang-switch button.active {
  background: var(--text-primary);
  color: var(--bg);
}

.lang-switch button:hover:not(.active) {
  color: var(--text-primary);
}

/* ===== BUTTONS ===== */
.btn-ghost {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14.5px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.15s;
  font-weight: 450;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--accent-soft);
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg);
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-body);
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-secondary:hover {
  background: var(--accent-soft);
  border-color: rgba(17, 25, 39, 0.25);
}

/* ===== HERO (base shared styles) ===== */
.hero {
  padding: 152px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.hero-content { max-width: 500px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-badge span {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 400px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero-buttons .btn-primary {
  padding: 10px 22px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-buttons .btn-secondary {
  padding: 10px 22px;
  font-size: 14px;
  background: var(--bg);
}

/* ===== LOGOS SLIDER ===== */
.logos-section {
  padding: 48px 32px;
  text-align: center;
  overflow: hidden;
}

.logos-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-bottom: 28px;
}

.logos-slider-wrapper {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
}

/* Fade edges */
.logos-slider-wrapper::before,
.logos-slider-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.logos-slider-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.logos-slider-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.logos-slider-track {
  display: flex;
  align-items: center;
  gap: 56px;
  animation: slide 25s linear infinite;
  width: max-content;
}

.logo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-item svg { opacity: 0.4; }

/* Secteur logos row */
.logos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
}

.logo-item img {
  height: 22px;
  opacity: 1;
}

.logo-item img:hover {
  opacity: 1;
}

/* ===== SECTIONS COMMON ===== */
.section {
  padding: 80px 32px;
}

.section-badge {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9977ff;
  font-weight: 600;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 40px;
}

/* ===== DIVIDER ===== */
.divider {
  padding: 0;
}

.divider-line {
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(17, 25, 39, 0.18) 0, rgba(17, 25, 39, 0.18) 6px, transparent 6px, transparent 14px);
}


/* ===== FEATURE CARDS ===== */
.feature-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 28px;
  border: 1px solid var(--border);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(17, 25, 39, 0.06);
}

.feature-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card-icon svg {
  width: 18px;
  height: 18px;
  color: var(--text-primary);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.feature-card h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card-visual {
  margin-top: 20px;
  border-radius: 10px;
  background: #1a1a2e;
  height: 140px;
  overflow: hidden;
  border: 1px solid rgba(17, 25, 39, 0.06);
}

.feature-card-visual-code {
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
}

.feature-card-visual-code .keyword { color: #c792ea; }
.feature-card-visual-code .string { color: #c3e88d; }
.feature-card-visual-code .func { color: #82aaff; }
.feature-card-visual-code .comment { color: rgba(255,255,255,0.2); }

/* ===== COMPARE TABLE ===== */
.compare-table {
  margin-top: 48px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.compare-table thead th {
  padding: 20px 24px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  letter-spacing: -0.01em;
}

.compare-table thead th:first-child {
  background: transparent;
  border: none;
}

.compare-table thead th:nth-child(2) {
  border-radius: 0;
  border-right: none;
}

.compare-table thead th:nth-child(3) {
  border-radius: 0;
  background: var(--text-primary);
  color: var(--bg);
  border: 2px solid var(--text-primary);
}

.compare-table tbody td {
  padding: 18px 24px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare-table tbody tr:first-child td:first-child {
  border-top: 1px solid var(--border);
}

.compare-table tbody td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14.5px;
  padding-right: 16px;
  min-width: 180px;
  background: #f5f3f1;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.compare-table tbody td:nth-child(2) {
  background: #f5f3f1;
}

.compare-table tbody td:nth-child(3) {
  background: #f5f3f1;
  border-left: 2px solid var(--text-primary);
  border-right: 2px solid var(--text-primary);
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

.compare-table tbody tr:last-child td:first-child {
  border-bottom: 1px solid var(--border);
}

.compare-table tbody tr:last-child td:nth-child(2) {
  border-radius: 0;
  border-bottom: 1px solid var(--border);
}

.compare-table tbody tr:last-child td:nth-child(3) {
  border-radius: 0;
  border-bottom: 2px solid var(--text-primary);
}

.compare-x {
  color: #ef4444;
  font-size: 16px;
  margin-right: 12px;
  font-weight: 600;
}

.compare-check {
  color: #10b981;
  font-size: 16px;
  margin-right: 12px;
  display: inline-block;
  transform: scaleX(1.1);
}

/* ===== CTA ===== */
.cta-section {
  padding: 100px 32px;
  text-align: center;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.cta-buttons .btn-primary {
  padding: 12px 28px;
  font-size: 14.5px;
}

.cta-buttons .btn-secondary {
  padding: 12px 28px;
  font-size: 14.5px;
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(17, 25, 39, 0.18) 0, rgba(17, 25, 39, 0.18) 6px, transparent 6px, transparent 14px);
}

.footer-left {
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ===== BURGER MENU ===== */
.burger-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  z-index: 201;
}

.burger-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.burger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(3.8px, 3.8px);
}

.burger-btn.active span:nth-child(2) {
  opacity: 0;
}

.burger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(3.8px, -3.8px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  height: calc(100dvh - 72px);
  background: var(--bg);
  z-index: 99;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-section {
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  margin-bottom: 4px;
}

.mobile-nav-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.mobile-nav-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 8px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  font-family: var(--font-body);
}

.mobile-nav-trigger svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
  color: var(--text-tertiary);
}

.mobile-nav-trigger.active svg {
  transform: rotate(180deg);
}

.mobile-nav-submenu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 8px 8px;
}

.mobile-nav-submenu.open {
  display: flex;
}

.mobile-nav-submenu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 450;
  transition: all 0.15s;
}

.mobile-nav-submenu a:hover {
  background: var(--accent-soft);
  color: var(--text-primary);
}

.mobile-nav-submenu .dropdown-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-nav-submenu .dropdown-icon svg {
  width: 14px;
  height: 14px;
}

.mobile-menu-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.mobile-menu-bottom .mobile-lang-switch {
  width: fit-content;
  margin: 0 0 4px;
}

.mobile-menu-bottom .mobile-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* ===== RESPONSIVE — Shared Components ===== */

/* Burger menu breakpoint */
@media (max-width: 1150px) {
  .nav-links { display: none; }
  .navbar-right { display: none; }
  .burger-btn { display: flex; }
  .mobile-menu { display: block; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 132px;
  }
  .hero-content { max-width: 100%; }
  .hero-visual { display: none; }
  .feature-grid-2,
  .feature-grid-3 {
    grid-template-columns: 1fr;
  }
  .section { padding: 60px 20px; }
  .main-container { border-left: none; border-right: none; }
  .navbar::after { display: none; }
  .main-container::before { display: none; }
  .navbar-inner { padding: 0 20px; }
  .compare-table { font-size: 13px; }
  .compare-table thead th,
  .compare-table tbody td { padding: 12px 14px; }
  .footer { flex-direction: column; gap: 16px; text-align: center; }
  .logos-row { gap: 32px; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 32px; }
}

@media (min-width: 1920px) {
  .navbar-inner,
  .navbar::after {
    max-width: 1440px;
  }
}
