/* ============================================
   FenX Landing V2 — Design System
   Spec : 2026-05-24-landing-fenx-v2-design.md
   ============================================ */

:root {
  /* Palette Cosmic Violet (NEW — replaces Lime Edge Glow) */
  --cosmic-bg: #16161c;
  --cosmic-surface: #1e1e3f;
  --cosmic-card: #1c1c2e;
  --violet-primary: #a78bfa;
  --violet-soft: #c4b5fd;
  --violet-dark: #7c3aed;
  --lavender-bright: #e9d5ff;
  --text-primary: #ede9fe;
  --text-hover: #ffffff;
  --text-muted: rgba(167, 139, 250, 0.6);
  --text-dim: rgba(167, 139, 250, 0.4);
  --border-subtle: rgba(167, 139, 250, 0.2);

  /* Aliases for backwards compat (keep references working) */
  --charcoal-bg: var(--cosmic-bg);
  --charcoal-surface: var(--cosmic-surface);
  --charcoal-card: var(--cosmic-card);
  --lime-primary: var(--violet-primary);
  --lime-soft: var(--violet-soft);
  --lime-dark: var(--violet-dark);
  --lime-gradient-top: var(--violet-soft);

  /* Spacing */
  --pad-section-desktop: 120px 32px;
  --pad-section-mobile: 64px 24px;
  --container-max: 1100px;

  /* Typography sizing (réduits — hero compact, H2 sur 1 ligne) */
  --h1-hero: clamp(2.5rem, 5.2vw, 4.5rem);
  --h1-hero-mobile: clamp(1.9rem, 8.5vw, 2.5rem);
  --h2-section: clamp(1.75rem, 3.5vw, 2.5rem);
  --h2-section-mobile: clamp(1.5rem, 5vw, 2rem);
  --body-size: 1.0625rem;
  --body-size-mobile: 1rem;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
/* Native smooth scroll — kept simple, Lenis disabled (was jittery on Firefox) */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--charcoal-bg);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Global focus-visible (a11y) — visible keyboard focus on all interactive elements */
:focus { outline: none; }
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--violet-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Container */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 768px) {
  .container { padding: 0 24px; }
}

/* Sections base */
section { padding: 120px 32px; }
@media (max-width: 768px) {
  section { padding: 64px 24px; }
}

/* Typography helpers */
.label {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(167, 139, 250, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.45);
  border-radius: 100px;
  font-size: 10px;
  color: var(--lime-soft);
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

h1.hero {
  font-size: var(--h1-hero);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* Glitch / chromatic aberration effect (RGB split style) */
.hero-glitch {
  text-shadow:
    -1.5px 0 0 rgba(167, 139, 250, 0.85),
    1.5px 0 0 rgba(96, 199, 233, 0.7);
}
@media (prefers-reduced-motion: reduce) {
  .hero-glitch { text-shadow: none; }
}
@media (max-width: 768px) {
  h1.hero { font-size: var(--h1-hero-mobile); }
}

h2.section {
  font-size: var(--h2-section);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text-primary);
}
@media (max-width: 768px) {
  h2.section { font-size: var(--h2-section-mobile); }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   Composant Bouton Primary V6 — pixel-canvas
   Spec : §3.bis amendment 2026-05-24
   ============================================ */

.btn-pill {
  position: relative;
  border: none;
  padding: 18px 28px 18px 36px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  background: transparent;
  box-shadow:
    0 6px 28px rgba(139, 92, 246, 0.25),
    inset 0 0 0 1.5px rgba(167, 139, 250, 0.55);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    color 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  isolation: isolate;
}

.btn-pill:hover,
.btn-pill:focus-visible {
  transform: translateY(-2px) scale(1.02);
  color: var(--text-hover);
  box-shadow:
    0 8px 28px rgba(139, 92, 246, 0.3),
    0 0 48px rgba(167, 139, 250, 0.15),
    inset 0 0 0 2px rgba(167, 139, 250, 0.7);
}

.btn-pill .pixel-canvas-wrapper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at center, #000 30%, transparent 90%);
  mask-image: radial-gradient(ellipse 60% 70% at center, #000 30%, transparent 90%);
}

.btn-pill .pixel-canvas-wrapper canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.btn-pill > .text,
.btn-pill > .arrow {
  position: relative;
  z-index: 2;
}

.btn-pill .arrow {
  display: inline-flex;
  align-items: center;
}

.btn-pill .arrow svg {
  overflow: visible;
}

.btn-pill .arrow .arrow-base {
  stroke: var(--violet-soft);
  transition: stroke 0.3s ease;
}

.btn-pill:hover .arrow .arrow-base {
  stroke: var(--text-hover);
}

.btn-pill .arrow .arrow-shimmer {
  stroke: var(--text-hover);
  opacity: 0;
  stroke-dasharray: 6 35;
  stroke-dashoffset: 40;
}

.btn-pill:hover .arrow .arrow-shimmer {
  animation: shimmer-flow 0.8s ease-out;
}

@keyframes shimmer-flow {
  0% { stroke-dashoffset: 40; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { stroke-dashoffset: -10; opacity: 0; }
}

/* Variante small (cards packs + footer) — moins de padding */
.btn-pill.btn-pill-small {
  padding: 16px 24px 16px 32px;
  font-size: 14px;
  align-self: stretch;
  justify-content: space-between;
}

/* Variante text-link (secondary CTA) */
.btn-text {
  color: var(--violet-soft);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1.5px solid rgba(196, 181, 253, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-text:hover {
  color: var(--text-hover);
  border-bottom-color: var(--text-hover);
}

/* ============================================
   Site Header (nav)
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  z-index: 100;
  background: rgba(20, 22, 26, 0.6);
  backdrop-filter: blur(20px);
}
.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
}
.logo span { color: var(--lime-primary); }
.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.site-nav a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--text-primary); }
.site-nav .nav-cta {
  color: var(--lime-primary);
  font-weight: 700;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--lime-primary);
  color: #0a0a0a;
  padding: 12px 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus { top: 0; }

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--cosmic-bg);
  padding: 140px 32px 100px;
}
@media (max-width: 768px) {
  .hero { padding: 100px 24px 64px; }
}

/* Hero safety net : éléments toujours visibles par défaut (GSAP override possible) */
h1.hero,
.hero-content .label,
.hero-sub,
.hero-ctas {
  opacity: 1;
}

/* Reveal cascade animation (21st.dev TimelineContent-inspired)
   Used by [hero-reveal] for at-load hero cascade.
   Pure opacity + translateY (no filter:blur on parent to avoid mid-animation label blur). */
@keyframes hero-reveal {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-reveal {
  opacity: 0;
  animation: hero-reveal 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

/* Scroll-triggered reveals (IntersectionObserver — scroll-fx.js) */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax-driven decorative elements use translate3d via scroll-fx.js — must have will-change set */
[data-parallax] {
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero-reveal {
    opacity: 1;
    animation: none;
  }
}

/* Gradient highlights on accent words in H1 (2 colors for visual contrast) */
/* Higher specificity to override existing `h1.hero span { display: block }` */
h1.hero .hero-h1-accent,
h1.hero .hero-h1-accent-2 {
  display: inline;
  font-weight: 600;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: normal;
}
h1.hero .hero-h1-accent {
  background-image: linear-gradient(135deg, var(--violet-soft) 0%, var(--violet-primary) 100%);
}
h1.hero .hero-h1-accent-2 {
  background-image: linear-gradient(135deg, var(--lavender-bright) 0%, var(--violet-soft) 100%);
}

/* Hero badge pill (21st.dev-inspired, Cosmic Violet adapted) */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--violet-primary) 0%,
    var(--violet-dark) 100%
  );
  border: 3px solid color-mix(in oklab, var(--violet-soft) 35%, transparent);
  box-shadow:
    0 6px 20px -6px rgba(167, 139, 250, 0.5),
    0 0 0 1px oklch(0.95 0.05 280 / 0.05);
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
}
.hero-badge-tag {
  background: #ffffff;
  color: #16161c;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero-badge-text {
  color: #ffffff;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.hero-badge-emph {
  font-weight: 700;
}
.hero-badge-arrow {
  width: 12px;
  height: 12px;
  color: #ffffff;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .hero-badge { font-size: 12px; padding: 3px 12px 3px 3px; gap: 6px; }
  .hero-badge-tag { font-size: 10px; padding: 4px 8px; }
}
@media (max-width: 420px) {
  .hero-badge { font-size: 11px; gap: 6px; padding: 3px 10px 3px 3px; }
  .hero-badge-tag { font-size: 9px; padding: 4px 7px; }
}

/* Hero stack : contenu centré single-column + mockup full-width below */
.hero-stack {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}
@media (max-width: 768px) {
  .hero-stack { gap: 48px; }
}

.hero-content-center {
  text-align: center;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
}
.hero-content-center .hero-sub {
  margin-left: auto;
  margin-right: auto;
}
.hero-content-center .hero-ctas {
  justify-content: center;
}

.hero-visual-below {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-content .label { align-self: flex-start; }
.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.5;
  margin: 0;
}
.hero-ctas {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Container du mockup browser frame */
.hero-visual {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 1024px) {
  .hero-visual {
    display: flex;
    aspect-ratio: 4 / 3;
    margin-top: 1rem;
  }
}

/* ============================================
   Stars Ambient (Hero background) — minimal et discret
   ============================================ */
.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.star {
  position: absolute;
  border-radius: 50%;
  background: var(--violet-soft);
  opacity: 0.35;
  animation: star-twinkle 5s ease-in-out infinite;
}

@keyframes star-twinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.55; }
}

/* ============================================
   Section Problème
   ============================================ */
.probleme {
  background: var(--cosmic-bg);
}
.probleme .label { margin-bottom: 16px; }
.probleme h2.section { margin-bottom: 12px; }
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .pain-grid { grid-template-columns: 1fr; }
}

.pain-card {
  background: var(--charcoal-card);
  border: 1px solid var(--border-subtle);
  padding: 32px;
  border-radius: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.pain-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 8px 32px rgba(167, 139, 250, 0.12);
}
.pain-icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.pain-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.pain-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================
   Section Offre — Packs
   ============================================ */
.offre {
  background: var(--cosmic-bg);
}
.offre .label { margin-bottom: 16px; }
.offre h2.section { margin-bottom: 48px; }

.packs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .packs-grid { grid-template-columns: 1fr; }
}

.pack-card {
  background: var(--charcoal-card);
  border: 1px solid var(--border-subtle);
  padding: 40px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}
.pack-card:hover {
  border-color: rgba(167, 139, 250, 0.3);
}

.pack-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(167, 139, 250, 0.12);
  color: var(--lime-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 16px;
  align-self: flex-start;
}
.pack-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.pack-price {
  font-size: 40px;
  font-weight: 900;
  color: var(--lime-primary);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  line-height: 1;
}
.pack-unit {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 500;
}
.pack-period {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.pack-features {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}
.pack-features li {
  padding: 8px 0;
  color: var(--text-primary);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pack-features li::before {
  content: "✓";
  color: var(--lime-primary);
  font-weight: 800;
  font-size: 14px;
}

/* ============================================
   Section Processus
   ============================================ */
.processus {
  background: var(--cosmic-bg);
}
.processus .label { margin-bottom: 16px; }
.processus h2.section { margin-bottom: 48px; }

.steps-flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
@media (max-width: 1024px) {
  .steps-flow { grid-template-columns: 1fr; }
}

.step-card {
  background: var(--charcoal-card);
  border: 1px solid var(--border-subtle);
  padding: 28px;
  border-radius: 12px;
  transition: border-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}
.step-card:hover {
  border-color: rgba(167, 139, 250, 0.3);
  transform: translateY(-2px);
}
.step-number {
  font-size: 32px;
  font-weight: 900;
  color: var(--lime-primary);
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  line-height: 1;
}
.step-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  min-height: 48px;
  line-height: 1.3;
}
.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--charcoal-bg);
  padding: 80px 32px 40px;
  border-top: 1px solid var(--border-subtle);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 8px;
}
.footer-col a {
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--lime-primary); }
.footer-tagline {
  color: var(--text-muted);
  font-size: 15px;
}
.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 4px;
  color: var(--violet-primary) !important;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--violet-primary) 40%, transparent);
  padding-bottom: 2px;
  transition: color 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.footer-cta:hover {
  color: var(--lavender-bright) !important;
  border-color: var(--lavender-bright);
  transform: translateX(2px);
}
.footer-address {
  color: var(--text-dim);
  font-size: 13px;
}
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p {
  color: var(--text-dim);
  font-size: 13px;
}

/* ============================================
   Reduced motion overrides
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .star {
    animation: none !important;
  }
}

/* ============================================
   Mobile nav adjustments
   ============================================ */
@media (max-width: 640px) {
  .site-header {
    padding: 16px 20px;
  }
  .site-nav {
    gap: 12px;
  }
  .site-nav a:not(.nav-cta):not([class~="logo"]) {
    display: none;
  }
  .site-nav .nav-cta {
    font-size: 13px;
  }
  .hero {
    padding: 100px 24px 80px;
  }
  .hero-ctas {
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-ctas .btn-pill {
    padding: 18px 28px 18px 36px;
    font-size: 15px;
  }
}

/* ============================================
   Hero V3 — Sector Grid (4 separate cards, 21st.dev pattern)
   ============================================ */

.sector-grid {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .sector-grid { grid-template-columns: 1fr; gap: 16px; }
}

.sector-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: oklch(0.18 0.04 280);
  border: 1px solid oklch(0.3 0.05 280 / 0.35);
  box-shadow:
    0 8px 24px -8px rgba(0, 0, 0, 0.5),
    0 0 0 1px oklch(0.95 0.05 280 / 0.04);
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 350ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 350ms cubic-bezier(0.22, 1, 0.36, 1);
}
.sector-card:hover {
  transform: translateY(-4px);
  border-color: oklch(0.5 0.08 280 / 0.5);
  box-shadow:
    0 20px 40px -12px rgba(167, 139, 250, 0.3),
    0 0 0 1px oklch(0.95 0.05 280 / 0.1);
}
@media (prefers-reduced-motion: reduce) {
  .sector-card,
  .sector-card:hover { transition: none; transform: none; }
}

.sector-card-image-wrap {
  position: absolute;
  inset: 0;
}
.sector-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Bottom veil — pure gradient (no backdrop-filter for scroll perf).
   Strong dark gradient at bottom so label text reads on any image (incl. bright/white photos).
   GPU-friendly — no recomposite during scroll. */
.sector-card-blur-veil {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32%;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.85) 25%,
    rgba(0, 0, 0, 0.55) 55%,
    rgba(0, 0, 0, 0.2) 82%,
    transparent 100%
  );
}

.sector-card-label {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
  pointer-events: none;
}
.sector-card-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-primary);
  text-shadow:
    0 0 14px rgba(124, 58, 237, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.55);
}
.sector-card-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
@media (max-width: 540px) {
  .sector-card-title { font-size: 15px; }
}

/* ============================================
   (Legacy mockup browser frame CSS kept below for now — unused, will clean later)
   ============================================ */

.mockup-stage {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

/* (Note: reveal animation now only on hero content via .hero-reveal, not on mockup) */

.mockup-frame {
  width: 100%;
  background: oklch(0.18 0.04 280);
  border: 1px solid oklch(0.3 0.05 280 / 0.45);
  border-radius: 18px;
  box-shadow:
    0 1px 0 0 oklch(1 0 0 / 0.06) inset,
    0 30px 70px -20px rgba(167, 139, 250, 0.32),
    0 60px 120px -40px rgba(167, 139, 250, 0.18),
    0 0 0 1px oklch(0.95 0.05 280 / 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', system-ui, sans-serif;
  position: relative;
}

/* Browser chrome (haut) — dots macOS + URL bar */
.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: oklch(0.16 0.03 280);
  border-bottom: 1px solid oklch(0.3 0.05 280 / 0.4);
}
.mockup-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.mockup-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}
.mockup-dot-red    { background: #ff5f57; }
.mockup-dot-yellow { background: #febc2e; }
.mockup-dot-green  { background: #28c840; }

.mockup-url-bar {
  flex: 1;
  background: oklch(0.14 0.03 280);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 11px;
  color: var(--text-primary);
  display: flex;
  gap: 2px;
  font-family: 'Inter', system-ui, monospace;
  border: 1px solid oklch(0.25 0.04 280 / 0.6);
}
.mockup-url-protocol { color: var(--lavender-bright); }
.mockup-url-host { color: #ffffff; font-weight: 500; }

/* Content (interior du browser) — image full-page GPT-Image-2 generated */
.mockup-content {
  background: #0a0a0f;
  aspect-ratio: 3 / 2;
  position: relative;
  overflow: hidden;
}

/* Each generated landing page screenshot stacked, only .is-active visible */
.mockup-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
              visibility 0s linear 700ms;
  pointer-events: none;
  transform: scale(1.02);
}
.mockup-shot.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
              visibility 0s linear 0s;
}
@media (prefers-reduced-motion: reduce) {
  .mockup-shot,
  .mockup-shot.is-active {
    transition: none;
    transform: none;
  }
}

/* Progressive blur veil — fondu vers le bas pour overlay label lisible */
.mockup-blur-veil {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.55) 35%,
    rgba(0, 0, 0, 0.18) 70%,
    transparent 100%
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  mask-image: linear-gradient(to top, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 50%, transparent 100%);
}

/* Label overlay (eyebrow + title) */
.mockup-overlay {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
  z-index: 2;
}
.mockup-overlay-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-soft);
  opacity: 0.95;
}
.mockup-overlay-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
@media (max-width: 600px) {
  .mockup-overlay { left: 16px; right: 16px; bottom: 16px; }
  .mockup-overlay-title { font-size: 14px; }
}

/* Mockup site internals — styles génériques (le contenu varie par secteur) */
.mockup-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}
.mockup-site-logo {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.mockup-site-nav {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: #6b7280;
}

.mockup-site-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 150px;
  margin: 8px 0 4px 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
}
.mockup-site-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0.15) 100%
  );
  pointer-events: none;
}
.mockup-site-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  width: 100%;
}
.mockup-site-tagline {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.mockup-site-cta {
  align-self: flex-start;
  color: #ffffff;
  border: none;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: default;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.mockup-site-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0 4px 0;
  border-top: 1px solid #f3f4f6;
}
.mockup-site-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mockup-site-section-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mockup-site-section-items li {
  font-size: 11px;
  color: #4b5563;
  line-height: 1.4;
}

.mockup-site-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  font-size: 10px;
  color: #9ca3af;
}

/* Tabs wrapper — floating pill below the frame */
.mockup-tabs-wrap {
  display: flex;
  justify-content: center;
}
.mockup-tabs {
  position: relative;
  display: inline-flex;
  gap: 2px;
  padding: 5px;
  background: oklch(0.18 0.04 280 / 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid oklch(0.95 0.05 280 / 0.08);
  border-radius: 999px;
  box-shadow:
    0 8px 24px -8px rgba(0, 0, 0, 0.5),
    0 1px 0 0 oklch(1 0 0 / 0.06) inset;
}
.mockup-tab {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color 220ms ease;
  font-family: inherit;
  letter-spacing: -0.005em;
}
.mockup-tab:hover { color: var(--violet-soft); }
.mockup-tab.is-active { color: #ffffff; font-weight: 600; }

/* Glide indicator behind the active tab */
.mockup-tab-indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  background: linear-gradient(135deg, var(--violet-primary), var(--violet-dark));
  border-radius: 999px;
  box-shadow: 0 4px 14px -2px rgba(167, 139, 250, 0.45);
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
              width 380ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}
@media (prefers-reduced-motion: reduce) {
  .mockup-tab-indicator { transition: none; }
}

/* Responsive mobile/tablet */
@media (max-width: 1024px) {
  .mockup-frame { max-width: 480px; margin: 0 auto; }
  .mockup-content { min-height: 320px; }
}
@media (max-width: 600px) {
  .mockup-frame { max-width: 100%; }
  .mockup-content { min-height: 280px; padding: 12px 14px; }
  .mockup-site-tagline { font-size: 15px; }
}

/* ============================================
   Contact Modal (Discuter projet)
   ============================================ */

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: contact-modal-fade-in 200ms ease-out;
}
@keyframes contact-modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.contact-modal[hidden] { display: none; }

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-modal-panel {
  position: relative;
  width: 100%;
  max-width: 820px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--cosmic-bg);
  border: 1px solid oklch(0.3 0.05 280 / 0.45);
  border-radius: 18px;
  padding: 36px 36px 28px;
  box-shadow:
    0 30px 60px -20px rgba(167, 139, 250, 0.4),
    0 0 0 1px oklch(0.95 0.05 280 / 0.06);
  animation: contact-modal-slide-up 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes contact-modal-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 540px) {
  .contact-modal { padding: 12px; }
  .contact-modal-panel { padding: 28px 22px 22px; border-radius: 14px; }
}

.contact-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}
.contact-modal-close:hover {
  color: var(--text-primary);
  border-color: var(--violet-soft);
  background: oklch(0.3 0.05 280 / 0.3);
}

.contact-modal-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}
.contact-modal-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-primary);
}
.contact-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.contact-modal-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin: 4px 0 0;
  line-height: 1.45;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Horizontal 2-col layout (desktop) — left column = name/email/tel, right column = message (full height), bottom row = error + submit */
.contact-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  grid-template-rows: auto auto;
  gap: 18px 24px;
}
.contact-form-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  grid-column: 1;
  grid-row: 1;
}
.contact-form-right {
  grid-column: 2;
  grid-row: 1;
  display: flex;
}
.contact-form-bottom {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-field-message {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.contact-field-message textarea {
  flex: 1;
  min-height: 220px;
}
@media (max-width: 720px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 16px;
  }
  .contact-form-left { grid-row: 1; grid-column: 1; }
  .contact-form-right { grid-row: 2; grid-column: 1; }
  .contact-form-bottom { grid-row: 3; grid-column: 1; }
  .contact-field-message textarea { min-height: 140px; }
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}
.contact-field label span[aria-hidden="true"] {
  color: var(--violet-primary);
}
.contact-field-optional {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 11px;
  margin-left: 4px;
}
.contact-field input,
.contact-field textarea {
  width: 100%;
  background: oklch(0.16 0.03 280);
  border: 1px solid oklch(0.3 0.05 280 / 0.55);
  border-radius: 10px;
  padding: 11px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
  font-family: inherit;
}
.contact-field textarea {
  resize: none;
  min-height: 96px;
  line-height: 1.5;
}
.contact-field input:hover,
.contact-field textarea:hover {
  border-color: oklch(0.5 0.1 280 / 0.7);
}
.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--violet-primary);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.18);
  background: oklch(0.17 0.03 280);
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--text-dim);
}

.contact-field.has-error input,
.contact-field.has-error textarea {
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.05);
}
.contact-field.has-error input:focus,
.contact-field.has-error textarea:focus {
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

.contact-field-error {
  font-size: 12px;
  color: #f87171;
  min-height: 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 180ms ease, max-height 180ms ease;
}
.contact-field-error.is-visible {
  opacity: 1;
  max-height: 40px;
  min-height: 14px;
}

.contact-form-error {
  margin: 4px 0 0;
  padding: 10px 14px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 10px;
  color: #fca5a5;
  font-size: 13px;
  line-height: 1.45;
}

.contact-form-actions {
  margin-top: 4px;
}
.contact-form-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  background: linear-gradient(135deg, var(--violet-primary), var(--violet-dark));
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, opacity 200ms ease;
  box-shadow: 0 8px 22px -8px rgba(167, 139, 250, 0.6);
}
.contact-form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px rgba(167, 139, 250, 0.75);
}
.contact-form-submit:active { transform: translateY(0); }
.contact-form-submit:disabled {
  cursor: wait;
  opacity: 0.85;
  transform: none;
}

.contact-form-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: contact-spin 700ms linear infinite;
}
@keyframes contact-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .contact-form-spinner { animation: none; }
  .contact-modal,
  .contact-modal-panel { animation: none; }
}

/* Success state */
.contact-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 20px 8px;
}
.contact-success[hidden] { display: none; }
.contact-success-icon {
  color: var(--violet-primary);
  margin-bottom: 4px;
}
.contact-success-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}
.contact-success-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  max-width: 360px;
  line-height: 1.5;
}
.contact-success-close {
  margin-top: 10px;
  padding: 10px 26px;
  background: transparent;
  color: var(--violet-soft);
  border: 1px solid var(--violet-primary);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 200ms ease, background 200ms ease;
}
.contact-success-close:hover {
  color: #ffffff;
  background: var(--violet-primary);
}
