/* ─── SelfGest Landing Page ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --wa: #6366F1;
  --wa-dark: #4338CA;
  --wa-light: #E0E7FF;
  --dark: #0F172A;
  --dark-2: #1E293B;
  --dark-3: #334155;
  --accent: #8B5CF6;
  --accent-glow: rgba(99, 102, 241, 0.25);
  --text-1: #F8FAFC;
  --text-2: #CBD5E1;
  --text-3: #94A3B8;
  --border: #334155;
}

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

html {
  scroll-behavior: smooth;
}

.sg-landing {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--dark);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Navbar ── */
.sg-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.sg-nav.scrolled {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.sg-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.sg-logo-img {
  height: 32px;
  width: auto;
}

.sg-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--wa), var(--wa-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
}

.sg-logo-text {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-1);
}

.sg-nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border-radius: 9999px;
  background: var(--wa);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.sg-nav-cta:hover {
  opacity: 0.85;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border-radius: 9999px;
  background: var(--wa);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 32px var(--accent-glow);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px var(--accent-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border-radius: 9999px;
  background: transparent;
  color: var(--text-1);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background: var(--border);
  border-color: var(--wa);
}

/* ── Section commons ── */
.sg-section {
  padding: 5rem 1.5rem;
}

.sg-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.sg-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.1);
  color: var(--wa);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.2rem;
}

/* ── Hero ── */
.sg-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sg-hero-glow-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.sg-hero-glow-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  bottom: 0;
  right: -100px;
  pointer-events: none;
}

.sg-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .6) 1px, transparent 1px);
  background-size: 50px 50px;
}

.sg-wa-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--wa);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.sg-hero-editorial {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 2.8rem;
  text-align: left;
}

.editorial-accent {
  width: 3px;
  height: 38px;
  background: var(--wa);
  border-radius: 4px;
}

.editorial-content {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.editorial-tag {
  font-size: 1.05rem;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.editorial-tag strong {
  color: var(--wa);
  font-weight: 800;
}

.editorial-sub {
  font-size: 0.85rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-top: 2px;
}



.sg-wa-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wa);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .6;
    transform: scale(0.8)
  }
}

.sg-h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 1.2rem;
}

.sg-h1 .accent {
  color: var(--wa);
}

.sg-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 0.8rem;
  line-height: 1.5;
}

.sg-support {
  font-size: 0.9rem;
  color: var(--text-3);
  margin-bottom: 2.5rem;
}

.sg-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3.5rem;
}

/* Stats bar */
.sg-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.sg-stat {
  flex: 1;
  min-width: 140px;
  padding: 1.2rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.sg-stat:last-child {
  border-right: none;
}

@media(max-width: 680px) {
  .sg-stat {
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .sg-stat:last-child {
    border-bottom: none;
  }
}

.sg-stat-value {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--wa);
  line-height: 1;
}

.sg-stat-label {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Section Problème ── */
.sg-problem {
  background: var(--dark-2);
}

.sg-problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media(max-width:680px) {
  .sg-problem-grid {
    grid-template-columns: 1fr;
  }
}

.sg-problem-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
}

.sg-problem-card .tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}

.tag-excel {
  background: rgba(251, 191, 36, 0.15);
  color: #FBB724;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.tag-erp {
  background: rgba(239, 68, 68, 0.12);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.sg-problem-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.sg-problem-card .quote {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-2);
  border-left: 3px solid var(--wa);
  padding-left: 1rem;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.sg-pain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sg-pain-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-2);
}

.sg-pain-list li::before {
  content: '✗';
  color: #F87171;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ── Solution ── */
.sg-solution {
  background: var(--dark);
}

.sg-solution-headline {
  text-align: center;
  margin-bottom: 3.5rem;
}

.sg-h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 0.7rem;
}

.sg-h2 .accent {
  color: var(--wa);
}

.sg-h2-sub {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 500px;
  margin: 0 auto;
}

.sg-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media(max-width:680px) {
  .sg-steps {
    grid-template-columns: 1fr;
  }
}

.sg-step {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}

.sg-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(99, 102, 241, 0.12);
}

.sg-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wa), var(--wa-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  color: #fff;
  margin: 0 auto 1.2rem;
}

.sg-step h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.sg-step p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.5;
}

.sg-step .detail {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 0.5rem;
}

/* ── WhatsApp Demo Block ── */
.sg-wa-demo {
  margin-top: 3rem;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.sg-wa-demo-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--wa);
  text-align: center;
}

.sg-chat {
  width: 100%;
  max-width: 420px;
  background: #0B1121;
  border-radius: 16px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sg-msg {
  max-width: 80%;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.45;
}

.sg-msg.user {
  background: var(--wa);
  color: #fff;
  align-self: flex-end;
  border-radius: 12px 12px 4px 12px;
}

.sg-msg.bot {
  background: var(--dark-3);
  color: #F8FAFC;
  align-self: flex-start;
  border-radius: 12px 12px 12px 4px;
}

.sg-msg .time {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
  display: block;
  text-align: right;
  margin-top: 0.3rem;
}

/* ── Modules ── */
.sg-modules {
  background: var(--dark-2);
}

.sg-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.sg-module-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.sg-module-card:hover {
  border-color: var(--wa);
  transform: translateY(-3px);
}

.sg-module-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sg-module-icon svg {
  width: 22px;
  height: 22px;
  color: var(--wa);
}

.sg-module-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-1);
}

/* ── Replace Section ── */
.sg-replace {
  background: var(--dark);
}

.sg-replace-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 600px;
  margin: 2.5rem auto 0;
}

.sg-replace-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
  border-radius: 14px;
  background: var(--dark-2);
  border: 1px solid rgba(239, 68, 68, 0.15);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-3);
  text-decoration: line-through;
  text-decoration-color: #F87171;
  transition: opacity 0.2s;
}

.sg-replace-item .x-icon {
  color: #F87171;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── Security ── */
.sg-security {
  background: var(--dark-2);
}

.sg-security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.5rem;
}

@media(max-width:680px) {
  .sg-security-grid {
    grid-template-columns: 1fr;
  }
}

.sg-security-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.8rem;
  text-align: center;
}

.sg-security-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin: 0 auto 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sg-security-card .icon-wrap svg {
  width: 26px;
  height: 26px;
  color: var(--wa);
}

.sg-security-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.sg-security-card p {
  font-size: 0.83rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* ── Usage ── */
.sg-usage {
  background: var(--dark);
}

.sg-usage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.5rem;
}

@media(max-width:680px) {
  .sg-usage-grid {
    grid-template-columns: 1fr;
  }
}

.sg-usage-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.sg-usage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px var(--accent-glow);
}

.sg-usage-card .big-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.sg-usage-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.sg-usage-card p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.5;
}

.sg-lang-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.sg-lang-badge {
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--wa);
}

/* ── CTA Final ── */
.sg-cta-final {
  background: linear-gradient(135deg, var(--dark-3) 0%, var(--dark-2) 100%);
  border-top: 1px solid var(--border);
  text-align: center;
}

.sg-cta-box {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 3.5rem 2rem;
  box-shadow: 0 0 80px rgba(99, 102, 241, 0.08);
}

.sg-cta-tagline {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-top: 1.5rem;
}

.sg-cta-tagline span {
  color: var(--text-2);
  margin: 0 0.4rem;
}

/* ── Footer ── */
.sg-footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sg-footer p {
  font-size: 0.78rem;
  color: var(--text-3);
}

.sg-footer a {
  color: var(--wa);
  text-decoration: none;
  font-size: 0.82rem;
}

/* ── Scroll animation ── */
.sg-fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.sg-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Navbar Menu ── */
.sg-nav-link {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.sg-nav-link:hover {
  color: var(--wa);
}

.sg-mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--dark-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.sg-mobile-menu a {
  padding: 1rem 0;
  color: var(--text-1);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.sg-mobile-menu a:last-child {
  border-bottom: none;
}

.sg-mobile-menu a.mobile-cta {
  color: var(--wa);
  font-weight: 800;
  margin-top: 0.5rem;
  border-bottom: none;
}

.desktop-only-cta {
  display: flex;
}

@media(min-width: 800px) {
  .desktop-only {
    display: flex !important;
  }

  .mobile-menu-btn {
    display: none !important;
  }
}

@media(max-width: 799px) {
  .desktop-only-cta {
    display: none !important;
  }
}

/* ── Cas d'usage ── */
.sg-flow-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 3rem auto;
  gap: 1rem;
}

.sg-flow-step {
  flex: 1;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.sg-flow-step h4 {
  color: var(--text-1);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.sg-flow-step p {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.5;
}

.sg-flow-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem;
  color: var(--wa);
}

.sg-flow-arrow {
  color: var(--border);
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

@media(max-width: 768px) {
  .sg-flow-container {
    flex-direction: column;
  }

  .sg-flow-arrow {
    transform: rotate(90deg);
    margin: 1rem 0;
  }
}

.sg-examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.sg-example-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.sg-example-card .icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--wa);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.sg-example-card .icon-wrap svg {
  width: 24px;
  height: 24px;
}

.sg-example-card h4 {
  color: var(--text-1);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.sg-example-card p.cmd {
  color: var(--text-2);
  font-style: italic;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--wa);
}

.sg-example-card p.res {
  color: #10B981;
  font-weight: 500;
}

/* ── Formulaire de Démo ── */
.sg-demo-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media(max-width: 900px) {
  .sg-demo-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.sg-demo-form-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.sg-demo-form-card h3 {
  color: var(--text-1);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.sg-form-group {
  margin-bottom: 1.2rem;
}

.sg-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sg-form-group label {
  display: block;
  color: var(--text-2);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.sg-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-1);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sg-input:focus {
  outline: none;
  border-color: var(--wa);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.sg-type-switch {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sg-type-switch__label {
  flex: 1;
  margin: 0;
  padding: 0.25rem 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.2s, font-weight 0.2s;
}

.sg-type-switch__label:first-child {
  text-align: right;
}

.sg-type-switch__label:last-child {
  text-align: left;
}

.sg-type-switch__label.is-active {
  color: var(--wa);
  font-weight: 600;
}

.sg-type-switch__label:hover:not(.is-active) {
  color: var(--text-1);
}

.sg-type-switch__track {
  flex-shrink: 0;
  width: 52px;
  height: 28px;
  padding: 3px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.sg-type-switch__track:focus-visible {
  outline: none;
  border-color: var(--wa);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.sg-type-switch__track[aria-checked="true"] {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.12);
}

.sg-type-switch__thumb {
  display: block;
  width: 20px;
  height: 20px;
  background: var(--wa);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.45);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0);
}

.sg-type-switch__thumb.is-right {
  transform: translateX(24px);
}

/* ── Mobile Form Row & Sticky CTA ── */
@media(max-width: 650px) {
  .sg-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Sticky CTA — toujours rendu, visible via JS uniquement */
.sg-mobile-sticky-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(200px);
  opacity: 0;
  pointer-events: none;
  width: calc(100% - 2.5rem);
  max-width: 340px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  padding: 1.1rem 1.5rem;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  z-index: 9999;
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.5);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  /* hidden on desktop via JS, shown on mobile */
}

.sg-mobile-sticky-cta.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sg-mobile-sticky-cta:active {
  transform: translateX(-50%) translateY(0) scale(0.96);
}

@media(min-width: 800px) {
  .sg-mobile-sticky-cta {
    display: none !important;
  }
}

@media(max-width: 799px) {
  .sg-footer {
    padding-bottom: 6rem;
  }
}

@media(min-width: 800px) {
  .sg-mobile-sticky-cta-hidden-desktop {
    display: none !important;
  }
}

/* ── Newsletter ── */
.sg-newsletter {
  padding: 5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 102, 241, 0.18) 0%, transparent 55%),
    var(--dark-2);
}

.sg-newsletter-wrap {
  text-align: center;
}

.sg-newsletter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.25rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wa-light);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.sg-newsletter-badge svg {
  color: var(--wa);
  flex-shrink: 0;
}

.sg-newsletter-title {
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 0.65rem;
  line-height: 1.2;
}

.sg-newsletter-lead {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 36rem;
  margin: 0 auto 1.75rem;
}

.sg-newsletter-form {
  text-align: left;
}

.sg-newsletter-field {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0.35rem;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 9999px;
  transition: border-color 0.25s, box-shadow 0.25s;
  cursor: text;
}

.sg-newsletter-field:focus-within {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.sg-newsletter-field-icon {
  display: flex;
  align-items: center;
  padding-left: 1rem;
  color: var(--text-3);
  flex-shrink: 0;
}

.sg-newsletter-input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 0.5rem;
  background: transparent;
  border: none;
  color: var(--text-1);
  font-family: inherit;
  font-size: 1rem;
}

.sg-newsletter-input::placeholder {
  color: var(--text-3);
}

.sg-newsletter-input:focus {
  outline: none;
}

.sg-newsletter-submit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  padding: 0.75rem 1.35rem;
  border: none;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--wa) 0%, var(--wa-dark) 100%);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.sg-newsletter-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
}

.sg-newsletter-submit:disabled {
  opacity: 0.75;
  cursor: wait;
}

.sg-newsletter-spinner {
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sg-newsletter-spin 0.7s linear infinite;
}

@keyframes sg-newsletter-spin {
  to { transform: rotate(360deg); }
}

.sg-newsletter-hint {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-3);
  letter-spacing: 0.01em;
}

.sg-newsletter-feedback {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
}

.sg-newsletter-feedback--error {
  color: #f87171;
}

.sg-newsletter-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.sg-newsletter-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.sg-newsletter-success-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.5;
}

@media (max-width: 520px) {
  .sg-newsletter-field {
    flex-direction: column;
    border-radius: 20px;
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .sg-newsletter-field-icon {
    display: none;
  }

  .sg-newsletter-input {
    padding: 0.85rem 1rem;
    text-align: center;
  }

  .sg-newsletter-submit {
    width: 100%;
    min-width: unset;
    border-radius: 14px;
    padding: 0.9rem 1rem;
  }
}