/* =====================================================
   SKYLOOP - Site vitrine
   Direction B - Narratif technique (Stripe/Vercel-like)
   ===================================================== */

/* ============ DESIGN TOKENS ============ */
:root {
  /* Couleurs - palette logo Skyloop */
  --bg: #060B18;
  --bg-elev-1: #0A1124;
  --bg-elev-2: #0F1830;
  --bg-elev-3: #142239;
  --hairline: rgba(255,255,255,0.07);
  --hairline-strong: rgba(255,255,255,0.14);

  --ink-1: #F4F7FB;
  --ink-2: #A8B3CC;
  --ink-3: #6B7794;
  --ink-4: #4A5577;

  --blue: #3B82F6;
  --blue-2: #60A5FA;
  --blue-3: #93C5FD;
  --blue-deep: #1E3A8A;
  --coral: #FF6B47;
  --coral-2: #FF8E6B;
  --coral-deep: #C0421E;

  --success: #22C55E;
  --warning: #F59E0B;
  --danger:  #EF4444;

  /* Typographie */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;

  /* Layout */
  --container: 1180px;
  --header-h: 72px;

  /* Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Shadows (subtiles) */
  --shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 1px 2px rgba(0,0,0,0.3);
  --shadow-2: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-3: 0 24px 60px rgba(0,0,0,0.5);

  /* Glow */
  --glow-blue: 0 0 0 1px rgba(59,130,246,0.4), 0 8px 32px rgba(59,130,246,0.25);
  --glow-coral: 0 0 0 1px rgba(255,107,71,0.4), 0 8px 32px rgba(255,107,71,0.25);

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ============ RESET + BASE ============ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-1);
  background: var(--bg);
  font-feature-settings: 'cv02','cv03','cv04','cv11';
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--blue-2);
  text-decoration: none;
  transition: color 0.18s var(--ease-out);
}
a:hover { color: var(--coral); }

h1, h2, h3, h4, h5 {
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink-1);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.3rem); }
h4 { font-size: 1rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-2); }

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

::selection { background: rgba(59,130,246,0.35); color: var(--ink-1); }

/* ============ LAYOUT PRIMITIVES ============ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}
.section--tight { padding: 64px 0; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--blue-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--blue-2);
}

.section-head {
  max-width: 720px;
  margin: 0 0 56px;
}
.section-head--center { margin: 0 auto 56px; text-align: center; }

.section-head h2 .accent {
  background: linear-gradient(135deg, var(--blue-2) 0%, var(--coral-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--ink-2);
  max-width: 620px;
}

/* Background grille technique - utilisé en hero et bento */
.tech-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 80%);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-weight: 500;
  font-size: 0.95rem;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.16) inset, 0 4px 16px rgba(59,130,246,0.4);
}
.btn--primary:hover {
  background: #4F8FF5;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 8px 24px rgba(59,130,246,0.5);
}

.btn--accent {
  background: var(--coral);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.16) inset, 0 4px 16px rgba(255,107,71,0.4);
}
.btn--accent:hover {
  background: #FF7E5A;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 8px 24px rgba(255,107,71,0.5);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-1);
  border-color: var(--hairline-strong);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.22);
  color: var(--ink-1);
}

.btn--lg { padding: 14px 24px; font-size: 1rem; }
.btn--sm { padding: 8px 14px; font-size: 0.85rem; }

.btn .arrow { transition: transform 0.2s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(6,11,24,0.65);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: all 0.25s var(--ease-out);
}
.header.scrolled {
  background: rgba(6,11,24,0.92);
  border-bottom-color: var(--hairline);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  height: 100%;
}
.nav__logo img {
  height: 28px;
  width: auto;
  max-width: 160px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__menu a {
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-xs);
  transition: color 0.15s var(--ease-out);
}
.nav__menu a:hover { color: var(--ink-1); }
.nav__menu .nav__cta {
  margin-left: 12px;
  padding: 9px 16px;
  background: var(--ink-1);
  color: var(--bg) !important;
  border-radius: var(--r-sm);
  font-weight: 500;
}
.nav__menu .nav__cta:hover {
  background: white;
  color: var(--bg) !important;
  transform: translateY(-1px);
}

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  color: var(--ink-1);
  width: 40px; height: 40px;
  border-radius: var(--r-xs);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle svg { width: 22px; height: 22px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 80px) 0 100px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(59,130,246,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 50%, rgba(255,107,71,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.22);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--blue-2);
  font-weight: 500;
  margin-bottom: 24px;
}
.hero__badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  margin-bottom: 20px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--blue-2) 0%, var(--coral-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero__inline-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}
.hero__inline-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__inline-stat strong {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink-1);
  letter-spacing: -0.02em;
}
.hero__inline-stat span {
  font-size: 0.82rem;
  color: var(--ink-3);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === HERO Dashboard mockup (right column) === */
.hero__visual {
  position: relative;
  perspective: 1400px;
}

.dashboard {
  background: linear-gradient(180deg, var(--bg-elev-2) 0%, var(--bg-elev-1) 100%);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-3);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s var(--ease-out);
}
.dashboard:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }

.dashboard__topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(0,0,0,0.25);
}
.dashboard__topbar .dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.dashboard__topbar .url {
  margin-left: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-3);
  flex: 1;
  text-align: center;
  padding: 4px 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
}

.dashboard__body {
  padding: 18px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  min-height: 320px;
}

.dashboard__sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 10px;
  border-right: 1px solid var(--hairline);
}
.dashboard__sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--r-xs);
  font-size: 0.8rem;
  color: var(--ink-3);
  font-weight: 500;
}
.dashboard__sidebar-item.active {
  background: rgba(59,130,246,0.15);
  color: var(--blue-2);
}
.dashboard__sidebar-item .icn {
  width: 14px; height: 14px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.8;
}

.dashboard__main { display: flex; flex-direction: column; gap: 14px; }

.dashboard__kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.dashboard__kpi {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  opacity: 0;
  animation: kpi-in 0.6s var(--ease-out) forwards;
}
.dashboard__kpi:nth-child(1) { animation-delay: 0.2s; }
.dashboard__kpi:nth-child(2) { animation-delay: 0.4s; }
.dashboard__kpi:nth-child(3) { animation-delay: 0.6s; }

.dashboard__kpi-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.dashboard__kpi-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink-1);
  letter-spacing: -0.02em;
}
.dashboard__kpi-trend {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--success);
  font-weight: 500;
}
.dashboard__kpi-trend.down { color: var(--coral); }

@keyframes kpi-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dashboard__chart {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 14px;
  flex: 1;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: kpi-in 0.6s var(--ease-out) 0.8s forwards;
}
.dashboard__chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.dashboard__chart-title {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-2);
}
.dashboard__chart-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--success);
  padding: 2px 6px;
  background: rgba(34,197,94,0.12);
  border-radius: 4px;
}
.dashboard__chart-svg {
  width: 100%;
  height: 90px;
}
.dashboard__chart-svg path.fill { fill: url(#chartGrad); opacity: 0.6; }
.dashboard__chart-svg path.line {
  fill: none;
  stroke: var(--blue-2);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw-line 1.6s var(--ease-out) 1s forwards;
}
.dashboard__chart-svg path.line2 {
  fill: none;
  stroke: var(--coral);
  stroke-width: 1.4;
  stroke-dasharray: 4 3;
  opacity: 0.7;
  stroke-dashoffset: 600;
  animation: draw-line 1.6s var(--ease-out) 1.4s forwards;
}
@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

/* Floating annotations around dashboard */
.hero__annot {
  position: absolute;
  background: var(--bg-elev-2);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-1);
  box-shadow: var(--shadow-2);
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  animation: annot-in 0.6s var(--ease-out) forwards;
}
.hero__annot .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}
.hero__annot--1 { top: -16px; left: -24px; animation-delay: 1.6s; }
.hero__annot--1 .dot { background: var(--success); box-shadow: 0 0 8px var(--success); }
.hero__annot--2 { bottom: 32px; right: -32px; animation-delay: 1.9s; }
.hero__annot--2 .dot { background: var(--coral); box-shadow: 0 0 8px var(--coral); }

@keyframes annot-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ LOGOS / SOCIAL PROOF ============ */
.logos {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 36px 0;
  background: rgba(255,255,255,0.015);
}
.logos__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 22px;
}
.logos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 36px;
  align-items: center;
  justify-items: center;
}
.logos__item {
  color: var(--ink-3);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  font-family: var(--font-sans);
  opacity: 0.7;
  filter: grayscale(100%);
  transition: all 0.25s var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logos__item:hover { opacity: 1; filter: grayscale(0); color: var(--ink-2); }
.logos__item svg { width: 22px; height: 22px; }

/* ============ METRICS BIG NUMBERS ============ */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-elev-1);
}
.metric {
  padding: 32px 28px;
  border-right: 1px solid var(--hairline);
}
.metric:last-child { border-right: none; }

.metric__value {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--blue-2) 0%, var(--coral-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 10px;
}
.metric__label {
  font-size: 0.95rem;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.metric__hint {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============ BENTO SERVICES ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 18px;
}
.bento__card {
  position: relative;
  background: var(--bg-elev-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px;
  overflow: hidden;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.bento__card:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-2px);
}
.bento__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(59,130,246,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.bento__card--lg { grid-column: span 4; }
.bento__card--md { grid-column: span 3; }
.bento__card--sm { grid-column: span 2; }
.bento__card--full { grid-column: span 6; }

.bento__icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.22);
  color: var(--blue-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.bento__icon svg { width: 18px; height: 18px; }
.bento__card--accent .bento__icon {
  background: rgba(255,107,71,0.12);
  border-color: rgba(255,107,71,0.22);
  color: var(--coral);
}
.bento__card--accent::before {
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(255,107,71,0.06) 0%, transparent 70%);
}

.bento__card h3 { position: relative; z-index: 1; margin-bottom: 8px; }
.bento__card p { position: relative; z-index: 1; color: var(--ink-2); font-size: 0.95rem; }

.bento__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  position: relative; z-index: 1;
}
.bento__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 9px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--hairline);
  color: var(--ink-2);
  border-radius: 100px;
}

/* visualisation à droite dans les bento lg */
.bento__viz {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 55%;
  height: 55%;
  pointer-events: none;
}
.bento__viz svg { width: 100%; height: 100%; }

/* ============ STORY SCROLL ============ */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
}
.story--reverse .story__visual { order: -1; }

.story__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--blue-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  display: inline-block;
}
.story h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 18px;
}
.story p {
  font-size: 1.05rem;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.story__list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.story__list li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.story__list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2360A5FA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 2px;
}

.story__visual {
  position: relative;
  min-height: 360px;
}

/* ============ REALISATIONS (project cards with realistic mockups) ============ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.work {
  position: relative;
  background: var(--bg-elev-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.work:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-3px);
}
.work__cover {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, var(--bg-elev-2) 0%, var(--bg-elev-1) 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.work__cover svg { width: 100%; height: 100%; display: block; }

.work__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}
.work__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.work__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 9px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--hairline);
  color: var(--ink-2);
  border-radius: 100px;
}
.work h3 { font-size: 1.2rem; margin-bottom: 0; }
.work p { font-size: 0.94rem; flex: 1; margin: 0; }
.work__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--blue-2);
}
.work__link::after { content: '→'; transition: transform 0.2s var(--ease-out); }
.work__link:hover::after { transform: translateX(3px); }

/* ============ PROCESS TIMELINE ============ */
.process {
  position: relative;
  padding: 30px 0;
}
.process__line {
  position: absolute;
  top: 36px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--hairline-strong) 10%, var(--hairline-strong) 90%, transparent);
}
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}
.process__step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.process__num {
  position: relative;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--bg-elev-2);
  border: 1px solid var(--hairline-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink-2);
  align-self: flex-start;
  z-index: 1;
}
.process__step--active .process__num {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  border-color: rgba(59,130,246,0.5);
  color: white;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.15);
}
.process__step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.process__step p { font-size: 0.9rem; margin: 0; }

/* ============ PRICING ============ */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--bg-elev-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease-out);
}
.plan:hover { border-color: var(--hairline-strong); }
.plan--featured {
  background: linear-gradient(180deg, rgba(255,107,71,0.04) 0%, var(--bg-elev-1) 60%);
  border-color: rgba(255,107,71,0.3);
}
.plan--featured::after {
  content: 'Populaire';
  position: absolute;
  top: -10px;
  right: 24px;
  padding: 4px 12px;
  background: var(--coral);
  color: white;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.plan h3 { margin-bottom: 4px; font-size: 1.1rem; }
.plan__sub { color: var(--ink-3); font-size: 0.88rem; margin-bottom: 22px; }

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hairline);
}
.plan__price strong {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ink-1);
  letter-spacing: -0.025em;
}
.plan__price span { color: var(--ink-3); font-size: 0.9rem; }

.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  color: var(--ink-2);
  font-size: 0.93rem;
  align-items: flex-start;
}
.plan li::before {
  content: '';
  flex-shrink: 0;
  width: 16px; height: 16px;
  background-image: url("data:image/svg+xml,%2522%2522<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2360A5FA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2360A5FA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}
.plan--featured li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FF8E6B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.plan .btn { width: 100%; }

/* ============ FAQ ============ */
.faq {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--hairline);
}
.faq__item {
  border-bottom: 1px solid var(--hairline);
}
.faq__q {
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 22px 8px 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font: inherit;
  color: var(--ink-1);
  font-size: 1.02rem;
  font-weight: 500;
  text-align: left;
}
.faq__q .icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  transition: all 0.2s var(--ease-out);
}
.faq__item.open .faq__q .icon { transform: rotate(45deg); border-color: var(--blue); color: var(--blue-2); }
.faq__a {
  display: none;
  padding: 0 28px 22px 0;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq__item.open .faq__a { display: block; }

/* ============ CONTACT ============ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.contact__list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.contact__list li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  align-items: flex-start;
  border-bottom: 1px solid var(--hairline);
}
.contact__list li:last-child { border-bottom: none; }
.contact__list i {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: var(--r-xs);
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.22);
  color: var(--blue-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
}
.contact__list i svg { width: 16px; height: 16px; }
.contact__list strong {
  display: block;
  color: var(--ink-1);
  font-size: 0.92rem;
  font-weight: 500;
}
.contact__list span { color: var(--ink-2); font-size: 0.88rem; }

.contact__form {
  padding: 32px;
  background: var(--bg-elev-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink-1);
}
.form-group label .req { color: var(--coral); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-sm);
  color: var(--ink-1);
  font-family: inherit;
  font-size: 0.94rem;
  transition: all 0.18s var(--ease-out);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--ink-4); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
}
.form-group textarea { min-height: 120px; resize: vertical; }

.form-status {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  display: none;
}
.form-status.success {
  display: block;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.3);
  color: #4ADE80;
}
.form-status.error {
  display: block;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.3);
  color: #FCA5A5;
}

.form-disclaimer {
  font-size: 0.78rem;
  color: var(--ink-3);
  margin: 14px 0 0;
  text-align: center;
}

/* ============ CTA BANNER ============ */
.cta-banner {
  margin: 60px 0 0;
  padding: 56px 40px;
  background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(255,107,71,0.05) 100%);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 0%, transparent 80%);
  pointer-events: none;
}
.cta-banner > * { position: relative; }
.cta-banner h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  margin-bottom: 12px;
}
.cta-banner p {
  font-size: 1.02rem;
  max-width: 540px;
  margin: 0 auto 24px;
}

/* ============ FOOTER ============ */
.footer {
  margin-top: 80px;
  padding: 64px 0 30px;
  border-top: 1px solid var(--hairline);
  background: var(--bg-elev-1);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer__brand img {
  height: 28px;
  margin-bottom: 16px;
}
.footer__brand p {
  font-size: 0.93rem;
  max-width: 320px;
  margin: 0 0 16px;
  color: var(--ink-2);
}
.footer__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--success);
}
.footer__status .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 9px; }
.footer ul a {
  color: var(--ink-2);
  font-size: 0.92rem;
}
.footer ul a:hover { color: var(--ink-1); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
  font-size: 0.85rem;
  color: var(--ink-3);
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bottom a { color: var(--ink-3); }
.footer__bottom a:hover { color: var(--ink-1); }

/* ============ ANIMATIONS REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }
.reveal[data-delay="6"] { transition-delay: 0.48s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .bento__card--lg { grid-column: span 6; }
  .bento__card--md { grid-column: span 3; }
  .bento__card--sm { grid-column: span 3; }
}

@media (max-width: 880px) {
  .hero { padding: calc(var(--header-h) + 50px) 0 70px; }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .hero__visual { max-width: 540px; margin: 0 auto; }
  .dashboard { transform: none; }
  .hero__annot--1 { left: -12px; }
  .hero__annot--2 { right: -12px; }

  .story {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 0;
  }
  .story--reverse .story__visual { order: 0; }

  .contact {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }

  .nav__menu {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(6,11,24,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid var(--hairline);
    transform: translateY(-130%);
    opacity: 0;
    transition: all 0.3s var(--ease-out);
    align-items: stretch;
  }
  .nav__menu.open {
    transform: translateY(0);
    opacity: 1;
  }
  .nav__menu a { padding: 12px 16px; text-align: center; }
  .nav__menu .nav__cta { margin-left: 0; margin-top: 6px; }
  .nav__toggle { display: inline-flex; }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }

  .bento {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .bento__card { grid-column: 1 / -1 !important; min-height: 200px; }
  .bento__viz { display: none; }

  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: none; border-bottom: 1px solid var(--hairline); }
  .metric:last-child { border-bottom: none; }

  .process__grid { grid-template-columns: 1fr; gap: 24px; }
  .process__line { display: none; }

  .form-row { grid-template-columns: 1fr; }
  .contact__form { padding: 22px; }

  .footer__grid { grid-template-columns: 1fr; gap: 28px; }

  .cta-banner { padding: 36px 22px; }

  .container { padding: 0 18px; }
}

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

/* ============ INTRO OVERLAY ============ */
/* Total ~3.0s desktop / ~2.4s mobile · easing soft · micro-moments */

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  animation: intro-fadeout 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) 2.4s forwards;
}

.intro-overlay__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(59,130,246,0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59,130,246,0.12) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 0%, transparent 70%);
  opacity: 0;
  animation: intro-grid-in 1.0s cubic-bezier(0.25, 0.1, 0.25, 1) 0.2s forwards;
}

.intro-overlay__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(12px);
  animation: intro-brand-in 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) 0.4s forwards;
}

.intro-overlay__logo {
  width: 220px;
  max-width: 60vw;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(59,130,246,0.25));
  animation: intro-logo-pulse 0.6s cubic-bezier(0.4, 0, 0.6, 1) 1.8s;
}

.intro-overlay__line {
  width: 200px;
  max-width: 50vw;
  height: 1px;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}
.intro-overlay__line::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, var(--blue) 40%, var(--blue-2) 50%, var(--blue) 60%, transparent 100%);
  transform: translateX(-100%);
  animation: intro-line-trace 1.0s cubic-bezier(0.25, 0.1, 0.25, 1) 0.8s forwards;
}

.intro-overlay__caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0;
  animation: intro-caption-in 0.4s cubic-bezier(0.25, 0.1, 0.25, 1) 1.2s forwards;
}

@keyframes intro-fadeout {
  from { opacity: 1; visibility: visible; }
  to   { opacity: 0; visibility: hidden; }
}
@keyframes intro-brand-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes intro-grid-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes intro-line-trace {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}
@keyframes intro-caption-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 0.8; transform: translateY(0); }
}
@keyframes intro-logo-pulse {
  0%   { filter: drop-shadow(0 0 20px rgba(59,130,246,0.25)); transform: scale(1); }
  50%  { filter: drop-shadow(0 0 40px rgba(59,130,246,0.55)); transform: scale(1.015); }
  100% { filter: drop-shadow(0 0 20px rgba(59,130,246,0.25)); transform: scale(1); }
}

/* Skip — appelé sur clic/touche : compresse tout */
.intro-overlay--skip {
  animation: intro-fadeout 0.2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards !important;
}
.intro-overlay--skip .intro-overlay__grid,
.intro-overlay--skip .intro-overlay__brand,
.intro-overlay--skip .intro-overlay__line::before,
.intro-overlay--skip .intro-overlay__caption,
.intro-overlay--skip .intro-overlay__logo {
  animation-duration: 0.1s !important;
  animation-delay: 0s !important;
}

/* Mobile : raccourci 20% (total ~2.4s) */
@media (max-width: 720px) {
  .intro-overlay { animation-delay: 1.92s; animation-duration: 0.48s; }
  .intro-overlay__grid { animation-delay: 0.16s; animation-duration: 0.8s; }
  .intro-overlay__brand { animation-delay: 0.32s; animation-duration: 0.48s; }
  .intro-overlay__line::before { animation-delay: 0.64s; animation-duration: 0.8s; }
  .intro-overlay__caption { animation-delay: 0.96s; animation-duration: 0.32s; }
  .intro-overlay__logo { animation-delay: 1.44s; animation-duration: 0.48s; width: 180px; }
}

/* Reduced motion : skip total */
@media (prefers-reduced-motion: reduce) {
  .intro-overlay { display: none !important; }
}
