/* components.css — RepackIt LP shared components (commit 2/4)
 * Stacked after /css/tokens.css?v=1, before each page's inline <style>.
 * Scope: footer (.site-footer) + language switcher (.lang-*). Identical across all 20 pages.
 * Rules in source order; @media nesting preserved. Last sync: 2026-05-21
 */
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--text-2); }
.footer-copy { font-size: 13px; color: var(--text-3); }
.lang-switcher {
  position: relative;
  display: inline-block;
}
.lang-switcher-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.lang-switcher-trigger:hover {
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.02);
}
.lang-flag {
  font-size: 16px;
  line-height: 1;
}
.lang-chevron {
  margin-left: 2px;
  transition: transform 0.2s ease;
  color: var(--text-2);
}
.lang-switcher[data-open="true"] .lang-chevron {
  transform: rotate(180deg);
}
.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.lang-switcher[data-open="true"] .lang-switcher-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.lang-switcher-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.12s ease;
}
.lang-switcher-item:hover {
  background: rgba(255,255,255,0.04);
}
.lang-switcher-item .lang-check {
  margin-left: auto;
  opacity: 0;
  color: var(--orange);
}
.lang-switcher-item.active .lang-check {
  opacity: 1;
}
.lang-switcher-mobile {
  width: 100%;
  margin-top: 8px;
}
.lang-switcher-mobile .lang-switcher-trigger {
  width: 100%;
  justify-content: space-between;
}
.lang-switcher-mobile .lang-switcher-menu {
  width: 100%;
}
@media (max-width: 768px) {
.lang-switcher-desktop { display: none; }
}
@media (min-width: 769px) {
.lang-switcher-mobile { display: none; }
}
.footer-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-2);
  margin-top: 8px;
  max-width: 360px;
  line-height: 1.5;
}
.site-footer {
  display: block;
  flex-direction: unset;
  align-items: unset;
  justify-content: unset;
  position: static;
  z-index: auto;
  padding: 64px 24px 32px;
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  text-align: left;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 48px;
}
.site-footer .footer-col-brand {
  max-width: 360px;
}
.site-footer .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-bottom: 16px;
}
.site-footer .footer-logo svg {
  width: 28px;
  height: 28px;
}
.site-footer .footer-logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.site-footer .footer-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0 0 24px 0;
  max-width: 360px;
}
.site-footer .footer-lang-switcher {
  display: inline-flex;
  gap: 8px;
}
.site-footer .footer-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  font-size: 18px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}
.site-footer .footer-flag:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);
}
.site-footer .footer-flag-active {
  border-color: var(--orange);
  background: var(--orange-dim, rgba(255,92,0,0.12));
}
.site-footer .footer-col-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 20px 0;
  letter-spacing: 0.01em;
}
.site-footer .footer-col-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-footer .footer-col-links li {
  margin: 0;
}
.site-footer .footer-col-links a {
  position: relative;
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer .footer-col-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}
.site-footer .footer-col-links a:hover {
  color: var(--text);
}
.site-footer .footer-col-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px dotted rgba(255,255,255,0.12);
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer .footer-copy {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-3);
}
.site-footer .footer-legal {
  display: flex;
  gap: 24px;
}
.site-footer .footer-legal a {
  position: relative;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer .footer-legal a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}
.site-footer .footer-legal a:hover {
  color: var(--text);
}
.site-footer .footer-legal a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
@media (max-width: 768px) {
.site-footer {
    padding: 48px 20px 24px;
  }
.site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "brand brand" "nav resources";
    gap: 32px 24px;
    margin-bottom: 32px;
  }
.site-footer .footer-grid > .footer-col-brand { grid-area: brand; }
.site-footer .footer-grid > .footer-col:nth-child(2) { grid-area: nav; }
.site-footer .footer-grid > .footer-col:nth-child(3) { grid-area: resources; }
@media (max-width: 380px) {
.site-footer .footer-grid {
      grid-template-columns: 1fr;
      grid-template-areas: "brand" "nav" "resources";
      gap: 32px;
    }
}
.site-footer .footer-col-brand {
    max-width: 100%;
  }
.site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* Nav CTA pair (PR-16): primary "Sign in"/"Se connecter" (orange filled) +
 * secondary glassy "Book a demo"/"Réserver une démo". Loaded before each page's
 * inline <style>, so the glassy override uses compound selectors + !important to
 * beat the inline base .nav-cta{background:var(--orange)}. The base .nav-cta and
 * its .nav-cta.cta-lg body variant stay untouched. */
.nav-cta.nav-cta-primary { background: var(--orange) !important; color: #fff !important; }
.nav-cta.nav-cta-secondary {
  background: rgba(255,92,0,0.08) !important;
  color: #FF5C00 !important;
  border: 1px solid rgba(255,92,0,0.3) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: none !important;
}
.nav-cta.nav-cta-secondary:hover {
  background: rgba(255,92,0,0.15) !important;
  border-color: rgba(255,92,0,0.5) !important;
  box-shadow: none !important;
}
.nav-cta.nav-cta-secondary .btn-arrow-circle { background: rgba(255,92,0,0.15) !important; }
.nav-cta.nav-cta-secondary:hover .btn-arrow-circle { background: rgba(255,92,0,0.22) !important; }

/* Mobile menu CTA pair — same treatment, full .mobile-menu a... specificity to beat the base. */
.mobile-menu a.mobile-menu-cta.mobile-menu-cta-primary { background: var(--orange) !important; color: #fff !important; }
.mobile-menu a.mobile-menu-cta.mobile-menu-cta-secondary {
  background: rgba(255,92,0,0.08) !important;
  color: #FF5C00 !important;
  border: 1px solid rgba(255,92,0,0.3) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: none !important;
}
.mobile-menu a.mobile-menu-cta.mobile-menu-cta-secondary:hover {
  background: rgba(255,92,0,0.15) !important;
  color: #FF5C00 !important;
  border-color: rgba(255,92,0,0.5) !important;
}
.mobile-menu a.mobile-menu-cta.mobile-menu-cta-secondary .btn-arrow-circle { background: rgba(255,92,0,0.15) !important; }

/* Hero eyebrow (PR-22): social proof pill above the H1 on index.
 * Centered by the .hero flex column (align-items:center); position+z-index:3 match
 * .hero-title so it paints above .hero-glow / .hero-grid (both z-index:2). */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 8px 16px;
  background: rgba(255, 92, 0, 0.08);
  border: 1px solid rgba(255, 92, 0, 0.25);
  border-radius: 9999px;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 3;
}

.hero-eyebrow-avatars {
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.hero-eyebrow-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #FF5C00;
  margin-left: -12px;
  position: relative;
}

.hero-eyebrow-avatar:first-child { margin-left: 0; }
.hero-eyebrow-avatar:nth-child(1) { z-index: 4; }
.hero-eyebrow-avatar:nth-child(2) { z-index: 3; }
.hero-eyebrow-avatar:nth-child(3) { z-index: 2; }
.hero-eyebrow-avatar:nth-child(4) { z-index: 1; }

.hero-eyebrow-text {
  line-height: 1.4;
}

@media (max-width: 768px) {
  .hero-eyebrow {
    padding: 6px 12px;
    margin-bottom: 16px;
    font-size: 11px;
  }
  .hero-eyebrow-avatar {
    width: 24px;
    height: 24px;
    border-width: 1px;
    border-color: #FF5C00;
    margin-left: -10px;
  }
  .hero-eyebrow-avatars {
    margin-right: 10px;
  }
}

/* Smallest phones (≤374px, e.g. iPhone SE 320): tighten avatars + text so the
 * eyebrow stays on ONE line without horizontal overflow. */
@media (max-width: 374px) {
  .hero-eyebrow {
    padding: 6px 8px;
    font-size: 10px;
  }
  .hero-eyebrow-avatar {
    width: 20px;
    height: 20px;
    margin-left: -10px;
  }
  .hero-eyebrow-avatars {
    margin-right: 5px;
  }
}

/* ====== HERO PACKAGING MARQUEE - sharp row tucked behind the CTA (PR-28/30) ====== */
/* In-flow row pulled up so its top tucks behind the CTA's bottom edge. Content (z10) +
   hero CTA (z20 + dark halo) stay on top; cards stay 100% sharp, no overlay, no blur. */
.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.hero-waitlist .waitlist-btn {
  position: relative;
  z-index: 20;
  box-shadow: 0 8px 40px rgba(255, 92, 0, 0.45), 0 0 0 8px rgba(10, 10, 10, 0.6);
}
.hero-waitlist .waitlist-btn:hover {
  box-shadow: 0 10px 48px rgba(255, 92, 0, 0.55), 0 0 0 8px rgba(10, 10, 10, 0.6);
}
.hero-marquee-wrap {
  position: relative;
  z-index: 5;
  width: 100%;
  margin-top: -44px; /* tuck the card row up behind the CTA's bottom edge */
}
.hero-marquee-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.hero-marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: hero-marquee-scroll 38s linear infinite;
}
@keyframes hero-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 9px)); }
}
.hero-marquee-card {
  width: 270px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
}
.hero-marquee-thumb {
  width: 100%;
  height: 140px;
  border-radius: 9px;
  overflow: hidden;
  position: relative;
}
.hero-marquee-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Hardcoded, localized view-count badge (pill under the card title, right-aligned, in flow) */
.hero-marquee-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  padding: 0 2px;
}
.hero-marquee-views {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #B8B6B2;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 7px;
  white-space: nowrap;
}
.hero-marquee-title {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 500;
  margin-top: 10px;
  line-height: 1.35;
  padding: 0 2px 2px;
}
@media (max-width: 768px) {
  .hero-marquee-card { width: 200px; padding: 8px; border-radius: 12px; }
  .hero-marquee-thumb { height: 106px; }
  .hero-marquee-title { font-size: 12px; margin-top: 8px; }
  .hero-marquee-meta { margin-top: 8px; }
  .hero-marquee-views { font-size: 11.5px; padding: 3px 8px; }
  .hero-marquee-wrap { margin-top: 24px; }
  /* track gap stays 18px so the -9px loop seam stays exact */
}
@media (prefers-reduced-motion: reduce) {
  .hero-marquee-track { animation: none; }
}

/* ===== Pricing comparison table (PR-34) ===== */
.cmp { max-width: 760px; margin: 0 auto 96px; padding: 0 24px; }
.cmp-title { font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: -0.5px; text-align: center; color: var(--text); margin: 0 0 12px; }
.cmp-sub { max-width: 540px; margin: 0 auto 40px; text-align: center; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.cmp-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.cmp-table th, .cmp-table td { padding: 13px 16px; vertical-align: middle; }
.cmp-table thead th { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--text); text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
.cmp-table thead th.cmp-feat-col { width: 54%; text-align: left; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-2); }
.cmp-th-price { display: block; font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--text-3); margin-top: 4px; }
.cmp-table tbody td { border-bottom: 1px solid rgba(255,255,255,0.06); color: var(--text-2); line-height: 1.45; }
.cmp-table tbody td:first-child { color: var(--text); word-wrap: break-word; }
.cmp-table tbody td:not(:first-child) { text-align: center; font-weight: 600; color: var(--text); }
.cmp-table th.cmp-pro, .cmp-table td.cmp-pro { background: rgba(255, 92, 0, 0.04); }
.cmp-group td { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--orange); padding-top: 24px; padding-bottom: 7px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.cmp-group-ico { vertical-align: middle; margin-right: 7px; position: relative; top: -1px; }
.cmp-ico { display: inline-block; vertical-align: middle; }
.cmp-soon { display: inline-block; font-style: italic; font-weight: 500; font-size: 12.5px; color: var(--text-3); }
.info-tip { position: relative; display: inline-flex; align-items: center; margin-left: 5px; color: var(--text-3); cursor: help; vertical-align: middle; }
.info-tip:hover, .info-tip:focus { color: var(--orange); outline: none; }
.info-tip-ico { display: block; }
.info-tip-bubble { position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%) translateY(5px); width: 244px; max-width: 76vw; padding: 10px 13px; background: #161616; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.55); font-size: 12.5px; font-style: normal; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-transform: none; color: var(--text); text-align: left; opacity: 0; visibility: hidden; transition: opacity 0.16s ease, transform 0.16s ease; pointer-events: none; z-index: 40; }
.info-tip:hover .info-tip-bubble, .info-tip:focus .info-tip-bubble, .info-tip:focus-within .info-tip-bubble { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.info-tip-bubble::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #161616; }
@media (max-width: 768px) {
  .cmp { padding: 0 16px; margin-bottom: 72px; }
  .cmp-title { font-size: 25px; }
  .cmp-sub { font-size: 14px; margin-bottom: 30px; }
  .cmp-table { font-size: 13px; }
  .cmp-table th, .cmp-table td { padding: 11px 10px; }
  .cmp-table thead th { font-size: 15px; }
  .info-tip-bubble { width: 210px; }
}
