/* Baron Creation V3 — "Indigo Electric" — Polished */

/* ===== Page Transition ===== */
body {
  opacity: 1;
  transition: opacity 0.3s ease;
}
body.page-leaving {
  opacity: 0;
}

/* ===== Chiffres Glass Windows ===== */
.chiffres-glass-window {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid rgba(99,102,241,0.12);
  box-shadow: 0 8px 32px rgba(99,102,241,0.1), 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.chiffres-glass-window:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(99,102,241,0.16), 0 2px 6px rgba(0,0,0,0.06);
}
.chiffres-glass-body {
  padding: 2.5rem 1.5rem 2rem;
}
@media (min-width: 768px) {
  .chiffres-glass-body { padding: 3rem 2rem 2.5rem; }
}
.chiffres-big-number {
  font-size: 3.2rem;
  line-height: 1.1;
  word-break: break-word;
}
@media (min-width: 640px) {
  .chiffres-big-number { font-size: 4rem; }
}
@media (min-width: 768px) {
  .chiffres-big-number { font-size: 4.5rem; }
}

/* ===== Hero CTA Pulse ===== */
.btn-hero-cta {
  padding: 1.1rem 2.8rem !important;
  font-size: 1.15rem !important;
}
@media (min-width: 768px) {
  .btn-hero-cta {
    padding: 1.25rem 3.2rem !important;
    font-size: 1.25rem !important;
  }
}
.hero-pulse-wrapper {
  position: relative;
  display: inline-block;
}
.hero-pulse-wrapper .btn-hero-cta {
  position: relative;
  overflow: hidden;
}
.hero-pulse-wrapper .btn-hero-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255,255,255,0.3) 40%,
    rgba(255,255,255,0.6) 50%,
    rgba(255,255,255,0.3) 60%,
    transparent 80%
  );
  animation: hero-shine 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}
@keyframes hero-shine {
  0% { transform: translateX(-200%); }
  40% { transform: translateX(200%); }
  100% { transform: translateX(200%); }
}
.hero-pulse-wrapper:hover .btn-hero-cta {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 40px rgba(99,102,241,0.5);
}
.hero-pulse-wrapper:hover .btn-hero-cta::before {
  animation: none;
  opacity: 0;
}

/* ===== Pourquoi nous — Tabs & Panels ===== */
.pn-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 100px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748B;
  background: transparent;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.pn-tab:hover {
  color: #1e293b;
  background: rgba(99, 102, 241, 0.05);
}
.pn-tab.active {
  color: #6366F1;
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.15);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}
.pn-panel {
  flex-shrink: 0;
  overflow-y: auto;
}
@media (max-width: 640px) {
  .pn-tab {
    padding: 6px 14px;
    font-size: 0.78rem;
    gap: 4px;
  }
  .pn-tab svg {
    width: 14px;
    height: 14px;
  }
}

/* ===== Loader ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #09090B;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader.skip {
  display: none !important;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.loader-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-square {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(135deg, #6366F1, #06B6D4);
  animation: loaderSpin 1.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.loader-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.loader-bar {
  width: 120px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
}

.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #6366F1, #06B6D4);
  border-radius: 10px;
  animation: loaderFill 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loaderSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes loaderPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@keyframes loaderFill {
  0% { width: 0%; }
  60% { width: 70%; }
  100% { width: 100%; }
}

/* ===== Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: #09090B;

  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

/* ===== Scroll Sequence: canvas as page background ===== */
#scroll-canvas-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* ===== Noise / Grain texture ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ===== Gradient Text ===== */
.gradient-text {
  background: linear-gradient(135deg, #6366F1, #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Floating Glass Shapes ===== */
.glass-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glass-shape {
  position: absolute;
  border-radius: 24px;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  border: 1px solid rgba(255,255,255,0.08);
  will-change: transform;
}

.glass-shape--circle {
  border-radius: 50%;
}

.glass-shape--1 {
  width: 180px;
  height: 180px;
  top: 15%;
  right: 8%;
  background: rgba(99,102,241,0.04);
  border-color: rgba(99,102,241,0.06);
}

.glass-shape--2 {
  width: 120px;
  height: 120px;
  top: 55%;
  left: 5%;
  background: rgba(6,182,212,0.03);
  border-color: rgba(6,182,212,0.05);
}

.glass-shape--3 {
  width: 90px;
  height: 140px;
  bottom: 20%;
  right: 15%;
  background: rgba(99,102,241,0.03);
  border-color: rgba(99,102,241,0.05);
}

.glass-shape--4 {
  width: 60px;
  height: 60px;
  top: 35%;
  left: 20%;
  background: rgba(6,182,212,0.04);
  border-color: rgba(6,182,212,0.06);
}

.glass-shape--5 {
  width: 100px;
  height: 100px;
  bottom: 35%;
  left: 40%;
  background: rgba(99,102,241,0.02);
  border-color: rgba(99,102,241,0.04);
}

/* ===== Gradient Mesh (breathing) ===== */
.gradient-mesh {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform, opacity;
}

.gradient-mesh--1 {
  width: 500px;
  height: 500px;
  top: -10%;
  right: -10%;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  animation: meshBreathe1 8s ease-in-out infinite;
}

.gradient-mesh--2 {
  width: 400px;
  height: 400px;
  bottom: 10%;
  left: -5%;
  background: radial-gradient(circle, rgba(6,182,212,0.06) 0%, transparent 70%);
  animation: meshBreathe2 10s ease-in-out infinite;
}

@keyframes meshBreathe1 {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.6; }
  50% { transform: scale(1.15) translate(-20px, 15px); opacity: 1; }
}

@keyframes meshBreathe2 {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.5; }
  50% { transform: scale(1.1) translate(15px, -10px); opacity: 0.8; }
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #6366F1, #06B6D4);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(99,102,241,0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255,255,255,0.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(99,102,241,0.45);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: #fff;
  color: #6366F1;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: rgba(99,102,241,0.4);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 25px rgba(99,102,241,0.12);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

/* ===== Pill Label ===== */
.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 1rem;
  background: rgba(99,102,241,0.08);
  color: #6366F1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 400;
  border-radius: 100px;
  border: 1px solid rgba(99,102,241,0.12);
  position: relative;
  overflow: hidden;
}
.pill-label::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.12), transparent);
  animation: pill-shimmer 3s ease-in-out infinite;
  pointer-events: none;
  will-change: transform;
}
@keyframes pill-shimmer {
  0% { transform: translateX(-120%); }
  50% { transform: translateX(200%); }
  100% { transform: translateX(200%); }
}

/* ===== Cards ===== */
.card, .glass-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(99,102,241,0.08);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 30px rgba(99,102,241,0.06);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.03) 0%, rgba(6,182,212,0.02) 100%);
  pointer-events: none;
}

/* Shimmer / light reflection on hover */
.card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255,255,255,0.15) 45%,
    rgba(255,255,255,0.25) 50%,
    rgba(255,255,255,0.15) 55%,
    transparent 70%
  );
  transform: translateX(-100%) rotate(0deg);
  transition: none;
  pointer-events: none;
}

.card:hover::after {
  animation: shimmer 0.8s ease forwards;
}

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

.card:hover, .glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06), 0 20px 50px rgba(99,102,241,0.14);
  border-color: rgba(99,102,241,0.2);
  background: rgba(255,255,255,0.88);
}
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.03) 0%, rgba(6,182,212,0.02) 100%);
  pointer-events: none;
}
.glass-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255,255,255,0.15) 45%,
    rgba(255,255,255,0.25) 50%,
    rgba(255,255,255,0.15) 55%,
    transparent 70%
  );
  transform: translateX(-100%) rotate(0deg);
  transition: none;
  pointer-events: none;
}
.glass-card:hover::after {
  animation: shimmer 0.8s ease forwards;
}

/* ===== Icon Circle ===== */
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(99,102,241,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(99,102,241,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}
@media (min-width: 768px) {
  .icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }
  .icon-circle svg {
    width: 28px;
    height: 28px;
  }
}

.card:hover .icon-circle {
  transform: scale(1.08);
  background: rgba(99,102,241,0.12);
}

/* ===== Glow ===== */
.glow-indigo {
  position: relative;
}

.glow-indigo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ===== Background Orbs ===== */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-indigo {
  background: rgba(99,102,241,0.12);
}

.orb-cyan {
  background: rgba(6,182,212,0.10);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 20px rgba(99,102,241,0.06);
  border-bottom: 1px solid rgba(99,102,241,0.06);
  padding: 0.75rem 0;
}

.navbar a {
  text-decoration: none;
}

/* Animated underline for nav links */
.nav-link {
  position: relative;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.nav-link:hover {
  letter-spacing: 0.01em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366F1, #06B6D4);
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after,
.nav-link.active-link::after {
  width: 100%;
  left: 0;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: #ffffff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  padding: 2rem;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.1);
}

.mobile-menu.open {
  right: 0;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

/* ===== Section spacing ===== */
.section {
  padding: 4rem 1.5rem;
  position: relative;
}
/* Ensure first section clears fixed navbar on mobile */
@media (max-width: 767px) {
  main > section:first-child {
    padding-top: 7rem !important;
  }
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 2rem;
  }
}

/* Section depth separators */
.section + .section {
  border-top: 1px solid rgba(99,102,241,0.04);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ===== Section gradient separators ===== */
.section-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(99,102,241,0.12) 30%, rgba(6,182,212,0.12) 70%, transparent 100%);
  margin: 0;
  border: none;
  position: relative;
  z-index: 2;
}
.section-sep::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 20px;
  background: radial-gradient(ellipse at 50% 50%, rgba(99,102,241,0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== Footer ===== */
.footer {
  background: #09090B;
  color: #94A3B8;
  padding: 1.5rem 1.5rem 1rem;
  border-radius: 3rem 3rem 0 0;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #0f0f14 0%, #09090B 100%);
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.25), rgba(6,182,212,0.2), transparent);
  border-radius: 1px;
}
.footer a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s;
}
.footer a:hover {
  color: #818CF8;
  text-shadow: 0 0 12px rgba(129,140,248,0.3);
}
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 0.75rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff !important;
  white-space: nowrap;
}
.footer-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-size: 0.8rem;
  position: relative;
  padding-bottom: 2px;
}
.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #818CF8, #22D3EE);
  transition: width 0.3s ease;
}
.footer-nav a:hover::after {
  width: 100%;
}
.footer-contact { font-size: 0.8rem; white-space: nowrap; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.7rem;
  opacity: 0.7;
}
.footer-legal a { font-size: 0.7rem; }
@media (max-width: 640px) {
  .footer-main { flex-direction: column; align-items: center; text-align: center; gap: 0.6rem; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}

/* Mobile safety: avoid blank sections when scroll animations don't trigger immediately */
@media (max-width: 767px) {
  .reveal,
  #atouts-window-wrap,
  .terminal-window,
  .chiffres-stagger,
  #section-contact .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

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

/* ===== Construction page (realisations) ===== */
.gear {
  animation: spin 8s linear infinite;
  transform-origin: center;
}

.gear-reverse {
  animation: spin-reverse 6s linear infinite;
  transform-origin: center;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  100% { transform: rotate(-360deg); }
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

/* Pulse glow */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(99,102,241,0.2); }
  50% { box-shadow: 0 0 40px rgba(99,102,241,0.4); }
}

/* ===== FAQ Accordion ===== */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
}

.faq-answer.open {
  max-height: 200px;
}

.faq-toggle {
  transition: transform 0.3s ease;
}

.faq-toggle.open {
  transform: rotate(45deg);
}

.faq-item {
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(99,102,241,0.08);
  transform: translateY(-2px);
  border-color: rgba(99,102,241,0.15);
}

.faq-btn {
  transition: color 0.2s ease;
}

.faq-item:hover .faq-btn span:first-child {
  color: #6366F1;
}

/* ===== Form inputs ===== */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(226,232,240,0.8);
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: #09090B;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.form-input:focus {
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1), 0 4px 16px rgba(99,102,241,0.12);
  background: rgba(255,255,255,0.92);
  transform: translateY(-1px);
}

.form-input:hover:not(:focus) {
  border-color: rgba(99,102,241,0.25);
  background: rgba(255,255,255,0.75);
}

.form-input::placeholder {
  color: #94A3B8;
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* ===== Chiffres Window ===== */
.chiffres-window {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(99,102,241,0.1);
  box-shadow:
    0 8px 32px rgba(99,102,241,0.08),
    0 1px 3px rgba(0,0,0,0.04);
}
.chiffres-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: rgba(248,250,252,0.95);
  border-bottom: 1px solid rgba(99,102,241,0.07);
}
.chiffres-titlebar__title {
  font-size: 12px;
  color: #64748b;
  letter-spacing: 0.02em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.chiffres-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.chiffres-dot--close { background: #FF5F57; }
.chiffres-dot--minimize { background: #FEBC2E; }
.chiffres-dot--maximize { background: #28C840; }
.chiffres-content {
  padding: 2rem 2rem;
}
@media (min-width: 768px) {
  .chiffres-content { padding: 3rem 3.5rem; }
}
.chiffres-card {
  text-align: center;
  padding: 1.25rem 0.5rem;
  border-radius: 12px;
  transition: background 0.3s ease;
}
.chiffres-card:hover {
  background: rgba(99,102,241,0.04);
}
.chiffres-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ===== Pricing ===== */
/* Mac window bar */
.mac-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0 16px;
  margin: -2.5rem -2.5rem 1.5rem -2.5rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(99,102,241,0.08);
  background: rgba(255,255,255,0.25);
  border-radius: 20px 20px 0 0;
}
.mac-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.pricing-card {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(99,102,241,0.1);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 30px rgba(99,102,241,0.06);
  position: relative;
  overflow: hidden;
}

/* Shimmer on pricing cards too */
.pricing-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255,255,255,0.12) 45%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0.12) 55%,
    transparent 70%
  );
  transform: translateX(-100%);
  pointer-events: none;
}

.pricing-card:hover::after {
  animation: shimmer 0.8s ease forwards;
}

.pricing-card.featured {
  background: rgba(255,255,255,0.8);
  border-color: rgba(99,102,241,0.25);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06), 0 20px 60px rgba(99,102,241,0.14);
  transform: scale(1.02);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06), 0 30px 70px rgba(99,102,241,0.16);
  background: rgba(255,255,255,0.85);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-6px);
}

/* Check icon */
.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(99,102,241,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #6366F1;
  font-size: 0.75rem;
}

/* ===== Typewriter Cursor ===== */
.typewriter-cursor {
  display: inline;
  color: #6366F1;
  font-weight: 300;
  animation: cursorBlink 0.7s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes cursorFadeOut {
  to { opacity: 0; }
}

/* ===== Organic Blob Morphing ===== */
/* blobMorph CSS animations removed — GSAP handles blob movement with composited transforms */

.organic-blob path {
  will-change: d;
}

/* ===== Custom Cursor ===== */


/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .glass-shape, .gradient-mesh, .organic-blob {
    display: none;
  }

  .typewriter-cursor {
    animation: none !important;
  }
}

/* ===== Hero Browser Window ===== */
.hero-browser {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 32px 80px -12px rgba(99, 102, 241, 0.18),
    0 12px 40px -8px rgba(6, 182, 212, 0.08),
    0 0 0 1px rgba(99, 102, 241, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  will-change: transform, opacity;
}

.hero-browser-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(248, 250, 252, 0.7);
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-dot-red { background: #FF5F57; }
.hero-dot-yellow { background: #FEBC2E; }
.hero-dot-green { background: #28C840; }

.hero-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.hero-tabs::-webkit-scrollbar {
  display: none;
}

.hero-tab {
  display: flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
  max-width: 160px;
  transition: all 0.2s;
}

.hero-tab-active {
  background: rgba(255, 255, 255, 0.8);
  color: #6366F1;
  box-shadow: 0 1px 3px rgba(99, 102, 241, 0.1);
}

.hero-tab:hover:not(.hero-tab-active) {
  background: rgba(255, 255, 255, 0.4);
  color: #64748b;
}

.hero-tab-add {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 1rem;
  color: #cbd5e1;
  cursor: default;
}

/* hero-browser-addressbar removed */

.hero-browser-content {
  position: relative;
  min-height: 480px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero-browser-content {
    min-height: 520px;
  }
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* hero-terminal-cursor removed */

/* Background code snippets */
.hero-code-bg {
  position: absolute;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.7rem;
  line-height: 1.6;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}

.hero-code-bg-1 {
  top: 18%;
  right: 4%;
  transform: rotate(3deg);
  animation: heroCodeFloat1 8s ease-in-out infinite;
}

.hero-code-bg-2 {
  bottom: 12%;
  left: 3%;
  transform: rotate(-2deg);
  animation: heroCodeFloat2 10s ease-in-out infinite;
}

@keyframes heroCodeFloat1 {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-8px); }
}

@keyframes heroCodeFloat2 {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(6px); }
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .hero-browser {
    border-radius: 12px;
    margin: 0 -8px;
  }
  .hero-browser-titlebar {
    padding: 10px 12px;
  }
  .hero-dot {
    width: 10px;
    height: 10px;
  }
  .hero-tabs {
    margin: 0 8px;
  }
  .hero-tab {
    padding: 5px 10px;
    font-size: 0.65rem;
  }
  .hero-browser-content {
    min-height: 260px;
  }
  .hero-code-bg {
    display: none;
  }
}

/* ============================================================
   FEATURE 1: Stacking Mac Windows (Atouts)
   ============================================================ */
.stacking-cards {
  position: relative;
}

@media (min-width: 768px) {
  .stacking-cards {
    padding-bottom: 2rem;
  }
  .stacking-card {
    position: sticky;
    top: calc(100px + var(--card-index, 0) * 40px);
    margin-bottom: 80px;
    z-index: calc(var(--card-index, 0) + 1);
    will-change: transform;
  }
  .stacking-card:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 767px) {
  .stacking-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
}

.mac-window {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(99,102,241,0.1);
  box-shadow:
    0 8px 32px rgba(99,102,241,0.1),
    0 2px 8px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.6);
  max-width: 800px;
  margin: 0 auto;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.mac-window:hover {
  box-shadow:
    0 12px 48px rgba(99,102,241,0.16),
    0 4px 12px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.6);
  transform: translateY(-3px);
}

.mac-window--glass-1 {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
}

.mac-window--glass-2 {
  background: rgba(240,243,255,0.78);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
}

.mac-window--glass-3 {
  background: rgba(235,248,255,0.78);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
}

.mac-window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: rgba(248,250,252,0.85);
  border-bottom: 1px solid rgba(99,102,241,0.07);
}

.mac-window-title {
  font-size: 12px;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.mac-window-body {
  padding: 2rem 2.5rem;
}

@media (max-width: 767px) {
  .mac-window-body {
    padding: 1.5rem;
  }
}

/* ============================================================
   FEATURE 2: Terminal Window (Méthode)
   ============================================================ */
.section-terminal {
  background: #1E1E2E;
  position: relative;
  overflow: hidden;
}

.section-terminal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* Override section + section separator for dark section */
.section-terminal + .section {
  border-top: none;
}
.section + .section-terminal {
  border-top: none;
}

.terminal-window {
  border-radius: 16px;
  overflow: hidden;
  background: #282A36;
  border: 1px solid rgba(99,102,241,0.15);
  box-shadow:
    0 16px 60px rgba(0,0,0,0.4),
    0 4px 16px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(40,42,54,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-title {
  font-size: 12px;
  color: rgba(148,163,184,0.7);
  letter-spacing: 0.02em;
}

.terminal-body {
  padding: 1.5rem 2rem 2rem;
  font-size: 0.875rem;
  line-height: 2;
  min-height: 240px;
}
@media (min-width: 768px) {
  .terminal-body {
    padding: 2rem 2.5rem 2.5rem;
    font-size: 0.95rem;
    min-height: 280px;
  }
}
@media (max-width: 640px) {
  .terminal-body {
    padding: 1rem 1.25rem 1.5rem;
    font-size: 0.7rem;
    line-height: 1.9;
  }
}

.terminal-block {
  opacity: 0;
  margin-bottom: 0.75rem;
}

.terminal-block.visible {
  opacity: 1;
}

.terminal-cmd {
  color: #F8F8F2;
  white-space: nowrap;
  overflow: hidden;
}

.terminal-prompt {
  color: #28C840;
  font-weight: 700;
  user-select: none;
}

.terminal-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  max-width: 0;
  vertical-align: bottom;
}

.terminal-text.typed {
  max-width: 100%;
}

.terminal-output {
  color: #94A3B8;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  padding-left: 1.25rem;
}

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

.terminal-cursor-line {
  opacity: 0;
  color: #F8F8F2;
}

.terminal-cursor-line.visible {
  opacity: 1;
}

.terminal-blink {
  color: #28C840;
  animation: terminalBlink 1s step-end infinite;
}

@keyframes terminalBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============================================================
   FEATURE 3: Context Menu (Mobile Menu)
   ============================================================ */
.context-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

.context-menu {
  position: fixed;
  top: 60px;
  right: 16px;
  z-index: 200;
  min-width: 200px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  padding: 6px;
  box-shadow:
    0 10px 40px rgba(0,0,0,0.12),
    0 2px 8px rgba(0,0,0,0.08),
    0 0 0 1px rgba(0,0,0,0.04);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95) translateY(-4px);
  transform-origin: top right;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e293b;
  text-decoration: none;
  transition: background 0.15s ease;
  cursor: pointer;
}

.context-menu-item:hover,
.context-menu-item:focus {
  background: rgba(99,102,241,0.08);
}

.context-menu-item.active-page {
  color: #6366F1;
  background: rgba(99,102,241,0.06);
}

.context-menu-item--primary {
  color: #6366F1;
  font-weight: 600;
}

.context-menu-icon {
  flex-shrink: 0;
  opacity: 0.6;
}

.context-menu-item:hover .context-menu-icon,
.context-menu-item.active-page .context-menu-icon {
  opacity: 1;
}

.context-menu-separator {
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 4px 8px;
}

/* Hide context menu on desktop */
@media (min-width: 768px) {
  .context-menu,
  .context-overlay {
    display: none !important;
  }
}

/* ============================================================
   FEATURE 4: Glass Notifications — SUPPRIMÉ */

/* ===== Atouts Tabbed Window ===== */
#section-atouts {
  overflow: hidden;
}

.atouts-window-wrap {
  position: relative;
  overflow: visible;
  max-width: 100%;
}

/* Enhanced glassmorphism for atouts window */
#atouts-window-wrap .mac-window--glass-1 {
  overflow: hidden;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow:
    0 8px 32px rgba(99,102,241,0.12),
    0 2px 8px rgba(0,0,0,0.04),
    0 0 0 1px rgba(99,102,241,0.06),
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 -1px 0 rgba(99,102,241,0.04);
  transition: box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
#atouts-window-wrap .mac-window--glass-1:hover {
  box-shadow:
    0 20px 60px rgba(99,102,241,0.18),
    0 8px 24px rgba(0,0,0,0.08),
    0 0 0 1px rgba(99,102,241,0.1),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(99,102,241,0.06);
  transform: translateY(-4px);
}

.atout-tabs {
  display: flex;
  gap: 2px;
  width: 100%;
  padding: 8px 0 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: 4px;
  position: relative;
}

/* Sliding underline indicator */
.atout-tabs::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 33.333%;
  height: 2px;
  background: linear-gradient(90deg, #6366F1, #06B6D4);
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(calc(var(--atout-active, 0) * 100%));
}

.atout-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: #94a3b8;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  position: relative;
}
.atout-tab:hover {
  color: #818cf8;
  background: #ffffff;
  text-shadow: 0 0 20px rgba(99,102,241,0.3);
}
.atout-tab.active {
  color: #6366F1;
  border-bottom-color: transparent;
  background: rgba(99,102,241,0.06);
  border-radius: 6px 6px 0 0;
}
.atout-tab svg {
  flex-shrink: 0;
  opacity: 0.5;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.atout-tab.active svg {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(99,102,241,0.4));
}

.atout-panels-clip {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 100%;
}

.atout-panels-track {
  display: flex;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.atout-panel {
  min-width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 28px 24px 24px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .atout-panel {
    padding: 32px 40px 28px;
  }
}

/* Panel content animation classes */
.atout-panel .icon-circle {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.atout-panel.panel-active .icon-circle {
  animation: atoutIconPulse 2s ease-in-out infinite;
  position: relative;
}
.atout-panel.panel-active .icon-circle::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(99,102,241,0.15);
  animation: atoutIconPulse 2s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes atoutIconPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.35); opacity: 0; }
}

/* Progress bar replaces dots */
.atout-progress-wrap {
  padding: 0 24px 18px;
}
.atout-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(226,232,240,0.5);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.atout-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366F1, #06B6D4);
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 33.333%;
  box-shadow: 0 0 8px rgba(99,102,241,0.3);
}

/* Legacy dots hidden */
.atout-dots {
  display: none;
}

@media (max-width: 640px) {
  .atout-tab {
    font-size: 0.6rem;
    padding: 6px 4px;
    gap: 3px;
  }
  .atout-tab svg {
    width: 12px;
    height: 12px;
  }
  .atout-panel {
    padding: 20px 16px 16px;
  }
  .atout-progress-wrap {
    padding: 0 16px 14px;
  }
}

/* ============================================================
   FEATURE 5: macOS Dock
   ============================================================ */
.mac-dock {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mac-dock.hidden {
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  pointer-events: none;
}

.dock-container {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 18px;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.1),
    0 2px 8px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

.dock-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s ease;
  text-decoration: none;
  color: #6366F1;
}

.dock-item:hover {
  background: rgba(99,102,241,0.1);
}

.dock-item.dock-active {
  background: rgba(99,102,241,0.12);
}

.dock-item.dock-active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6366F1;
}

/* Tooltip */
.dock-item::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  padding: 4px 10px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}

.dock-item:hover::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* macOS Dock magnification effect (CSS :has) */
@media (hover: hover) {
  .dock-item {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.2s ease;
  }
  .dock-item:hover {
    transform: scale(1.45) translateY(-6px);
  }
  /* Direct neighbors */
  .dock-item:has(+ .dock-item:hover),
  .dock-item:hover + .dock-item {
    transform: scale(1.2) translateY(-3px);
  }
  /* Second neighbors */
  .dock-item:has(+ .dock-item + .dock-item:hover),
  .dock-item:hover + .dock-item + .dock-item {
    transform: scale(1.08) translateY(-1px);
  }
}

.dock-separator {
  width: 1px;
  height: 28px;
  background: rgba(99,102,241,0.15);
  margin: 0 4px;
  flex-shrink: 0;
}

/* Mobile dock — hidden (hamburger menu covers navigation) */
@media (max-width: 767px) {
  .mac-dock {
    display: none !important;
  }
  .dock-container {
    padding: 6px 10px;
    gap: 2px;
    border-radius: 14px;
  }
  .dock-item {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .dock-item svg {
    width: 18px;
    height: 18px;
  }
  .dock-item::before {
    display: none;
  }
  .dock-item:hover {
    transform: none;
  }
  .dock-separator {
    height: 22px;
    margin: 0 2px;
  }
  /* No magnification on mobile */
  .dock-item:has(+ .dock-item:hover),
  .dock-item:hover + .dock-item,
  .dock-item:has(+ .dock-item + .dock-item:hover),
  .dock-item:hover + .dock-item + .dock-item {
    transform: none;
  }
}

/* ============================================================
   FEATURE 6: Custom macOS Cursor (desktop only)
   ============================================================ */
/* Custom cursor removed */

/* ===== Footer spacing for dock ===== */
.footer {
  padding-bottom: 4rem;
}

/* ===== CLS Prevention ===== */
.hero-browser {
  min-height: 480px;
}
@media (min-width: 768px) {
  .hero-browser {
    min-height: 580px;
  }
}
.hero-browser-content h1 {
  min-height: 5rem;
}
.hero-sub {
  min-height: 1.8rem;
}
.navbar {
  height: 64px;
}
.navbar.scrolled {
  height: 56px;
}
/* Prevent layout shift from font loading */
body, .font-body {
  font-synthesis: none;
  size-adjust: 100%;
}

/* ===== Force composited animations ===== */
.chiffres-glass-window,
.mac-window,
.hero-browser,
.card,
.glass-card,
.pricing-card,
.dock-item,
.btn-primary,
.btn-secondary,
.faq-item {
  will-change: transform;
  transform: translateZ(0);
}
/* SVG blob morphing: contain paint */
.organic-blob {
  contain: layout style paint;
}
.glass-shapes {
  contain: layout style;
}

/* ===== Improved Contrast (A11y) ===== */
/* Navbar: ensure text readable on glass */
.navbar {
  background: rgba(255,255,255,0.45);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.85);
}
/* Nav links: darker for better contrast */
.nav-link {
  color: #475569 !important;
}
.nav-link:hover, .nav-link.active-link {
  color: #0f172a !important;
}
/* Terminal output: brighter for contrast */
.terminal-output {
  color: #b0bec5;
}
/* Footer text: ensure minimum contrast */
.footer {
  color: #a0aec0;
}
.footer-nav a, .footer a {
  color: #a0aec0;
}
/* Hero subtitle: darker */
.hero-sub, #hero-sub-rotate {
  color: #475569 !important;
}
/* Pill label: ensure contrast */
.pill-label {
  color: #4F46E5;
}
/* Atout panel text: ensure readable */
.atout-panel p {
  color: #475569;
}
/* Chiffres subtitle */
.chiffres-glass-body .text-slate-500 {
  color: #475569 !important;
}

/* ── Badge Reassurance ── */
.badge-reassurance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(99,102,241,0.15);
  box-shadow: 0 2px 8px rgba(99,102,241,0.08), 0 1px 3px rgba(0,0,0,0.04);
  font-size: 0.9rem;
  font-weight: 500;
  color: #1e293b;
  transition: all .3s ease;
}
.badge-reassurance:hover {
  background: #fff;
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 4px 12px rgba(99,102,241,0.12), 0 2px 4px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}
@media(max-width:640px) {
  .badge-reassurance { font-size: 0.78rem; padding: 8px 14px; }
}

/* ── Badge Highlight (Création offerte) ── */
.badge-highlight {
  background: #eef2ff !important;
  border-color: rgba(99,102,241,0.3) !important;
  font-weight: 600;
  color: #4338ca !important;
}
.badge-highlight:hover {
  background: #e0e7ff !important;
  border-color: rgba(99,102,241,0.4) !important;
}

/* Glassmorphism for hero h1 readability over video */
/* Hero overlaps the end of the scroll animation */
#section-hero {
  position: relative;
  z-index: 2;
  margin-top: -70vh;
}

#section-hero h1 {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem 2rem;
  border-radius: 24px;
  display: inline-block;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
/* Solid background for hero paragraph + pill labels */
#section-hero p.text-lg {
  background: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 20px;
  display: inline-block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.6);
}
#section-hero .pill-label {
  background: #ffffff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.15);
}
