/* ============================================================
   Symbioz AI — Page vitrine
   Palette : bleu profond / teal — dark, glass, motion
   ============================================================ */

:root {
  --bg: #04070d;
  --bg-2: #071120;
  --surface: rgba(13, 25, 48, 0.55);
  --surface-2: rgba(16, 30, 56, 0.7);
  --border: rgba(94, 234, 212, 0.14);
  --border-strong: rgba(94, 234, 212, 0.32);

  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --teal: #14b8a6;
  --teal-light: #2dd4bf;
  --cyan: #22d3ee;

  --text: #e6f1ff;
  --muted: #8fa3bf;
  --muted-2: #5f7391;

  --grad: linear-gradient(120deg, var(--blue-light) 0%, var(--cyan) 50%, var(--teal-light) 100%);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 18px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(45, 212, 191, 0.35); color: #fff; }

/* ---------- Fond animé ---------- */

#neural-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.orb-blue {
  width: 52vw; height: 52vw;
  max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.5), transparent 65%);
  top: -18vw; left: -14vw;
  animation: drift-a 26s var(--ease) infinite alternate;
}
.orb-teal {
  width: 46vw; height: 46vw;
  max-width: 640px; max-height: 640px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.42), transparent 65%);
  bottom: -16vw; right: -12vw;
  animation: drift-b 32s var(--ease) infinite alternate;
}
@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(9vw, 7vh) scale(1.15); }
}
@keyframes drift-b {
  from { transform: translate(0, 0) scale(1.1); }
  to   { transform: translate(-8vw, -6vh) scale(0.95); }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
}

main, header.nav, footer { position: relative; z-index: 1; }

/* ---------- Utilitaires ---------- */

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: grad-shift 6s ease infinite;
}
@keyframes grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-light);
}
.kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.section { padding: clamp(84px, 11vw, 140px) 0; }
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(10, 20, 40, 0.55) 18%, rgba(10, 20, 40, 0.55) 82%, transparent);
}

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(48px, 6vw, 72px);
  text-align: center;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 14px 0 16px;
}
.section-sub { color: var(--muted); font-size: 1.05rem; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background 0.35s var(--ease), border-color 0.35s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--grad);
  background-size: 160% 160%;
  color: #04121a;
  box-shadow: 0 8px 32px -8px rgba(45, 212, 191, 0.5);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px -8px rgba(45, 212, 191, 0.65);
  background-position: 100% 50%;
}

.btn-ghost {
  border-color: var(--border-strong);
  background: rgba(94, 234, 212, 0.06);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--teal-light);
  background: rgba(94, 234, 212, 0.12);
}

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; border-radius: 11px; }
.btn-full { width: 100%; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease), height 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  height: 60px;
  background: rgba(4, 9, 18, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
  box-shadow: 0 12px 40px -18px rgba(0, 0, 0, 0.8);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.18), rgba(45, 212, 191, 0.18));
  border: 1px solid var(--border-strong);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.logo:hover .logo-mark {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 0 28px -4px rgba(45, 212, 191, 0.5);
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.logo-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a:not(.btn) {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav-links a:not(.btn):hover {
  color: var(--text);
  background: rgba(94, 234, 212, 0.08);
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta { margin-left: 10px; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  padding: 10px;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  overflow: hidden;
}

.hero-inner { text-align: center; position: relative; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(94, 234, 212, 0.07);
  backdrop-filter: blur(10px);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-light);
}
.pulse-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-light);
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--teal-light);
  animation: pulse-ring 2.2s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.2rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 30px auto 24px;
  max-width: 18ch;
}

.rotator {
  display: inline-block;
  min-width: 10.5ch;
  text-align: left;
  background: var(--grad);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-shift 6s ease infinite;
}
.rotator.swap { animation: rotator-swap 0.5s var(--ease); }
@keyframes rotator-swap {
  0%   { opacity: 1; transform: translateY(0); filter: blur(0); }
  45%  { opacity: 0; transform: translateY(0.35em); filter: blur(6px); }
  55%  { opacity: 0; transform: translateY(-0.35em); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.caret {
  display: inline-block;
  width: 4px;
  height: 0.9em;
  margin-left: 6px;
  border-radius: 2px;
  background: var(--teal-light);
  vertical-align: -0.08em;
  animation: caret-blink 1.1s steps(2) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.hero-sub {
  max-width: 620px;
  margin: 0 auto 38px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}
.stat {
  padding: 18px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.stat:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.scroll-mouse {
  width: 26px; height: 42px;
  border: 2px solid var(--border-strong);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-wheel {
  width: 3px; height: 9px;
  border-radius: 3px;
  background: var(--teal-light);
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Marquee ---------- */

.marquee-section {
  position: relative;
  padding: 26px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(8, 16, 32, 0.4);
  overflow: hidden;
}
.marquee {
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 44px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.marquee-track span:hover { color: var(--teal-light); }
.marquee-track i {
  font-style: normal;
  color: var(--teal);
  opacity: 0.6;
  font-size: 0.8rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Cartes services ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
  transform-style: preserve-3d;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(45, 212, 191, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 24px 60px -24px rgba(45, 212, 191, 0.35);
}

.card-featured {
  background: linear-gradient(160deg, rgba(20, 184, 166, 0.12), var(--surface) 45%);
  border-color: rgba(45, 212, 191, 0.35);
}
.card-flag {
  position: absolute;
  top: 18px; right: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #04121a;
  background: var(--grad);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  margin-bottom: 22px;
  border-radius: 16px;
  color: var(--teal-light);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.16), rgba(45, 212, 191, 0.16));
  border: 1px solid var(--border-strong);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card-icon svg { width: 32px; height: 32px; }
.card:hover .card-icon {
  transform: translateY(-4px) rotate(-4deg) scale(1.05);
  box-shadow: 0 12px 30px -10px rgba(45, 212, 191, 0.5);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.card p { color: var(--muted); font-size: 0.95rem; flex-grow: 1; }

.card-list {
  list-style: none;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}
.card-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.88rem;
  color: var(--muted);
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 12px; height: 12px;
  border-radius: 4px;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 75% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 75% no-repeat;
}

/* ---------- Étapes plateforme ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}
.step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease);
}
.step:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.step-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 10px 0 8px;
}
.step p { font-size: 0.9rem; color: var(--muted); }
.step-line {
  align-self: center;
  height: 2px;
  margin: 0 -9px;
  z-index: -1;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  opacity: 0.35;
  border-radius: 2px;
}

/* ---------- Métriques ---------- */

.metrics-panel {
  position: relative;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid var(--border);
  background:
    radial-gradient(600px circle at 15% 0%, rgba(59, 130, 246, 0.16), transparent 55%),
    radial-gradient(600px circle at 85% 100%, rgba(20, 184, 166, 0.16), transparent 55%),
    var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}
.metrics-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.metric-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- À propos ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.about-text .section-title { text-align: left; margin-bottom: 22px; }
.about-text p { color: var(--muted); margin-bottom: 18px; }
.about-text em { color: var(--teal-light); font-style: normal; font-weight: 600; }

.values { display: grid; gap: 16px; }
.value {
  display: flex;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.value:hover { transform: translateX(6px); border-color: var(--border-strong); }
.value-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  color: var(--teal-light);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.16), rgba(45, 212, 191, 0.16));
  border: 1px solid var(--border-strong);
}
.value-icon svg { width: 22px; height: 22px; }
.value h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.value p { font-size: 0.9rem; color: var(--muted); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-text .section-title { text-align: left; margin-bottom: 20px; }
.contact-text > p { color: var(--muted); margin-bottom: 28px; }

.contact-info { display: grid; gap: 14px; }
.contact-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s var(--ease);
}
a.contact-line:hover { color: var(--teal-light); }
.contact-line svg { color: var(--teal-light); flex-shrink: 0; }

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(26px, 4vw, 40px);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-form label { display: grid; gap: 8px; }
.contact-form label span {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(4, 9, 18, 0.6);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted-2); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal-light);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
}
.form-status {
  min-height: 1.4em;
  font-size: 0.9rem;
  color: var(--teal-light);
}
.form-status.error { color: #f87171; }

/* ---------- Footer ---------- */

.footer {
  padding: 44px 0;
  border-top: 1px solid var(--border);
  background: rgba(4, 9, 18, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 6px 12px;
  border-radius: 9px;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.footer-links a:hover {
  color: var(--text);
  background: rgba(94, 234, 212, 0.08);
}
.footer-legal {
  color: var(--muted-2);
  font-size: 0.82rem;
}

/* ---------- Animations au scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .card-featured { order: -1; grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step-line { display: none; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .burger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px 5vw 26px;
    background: rgba(4, 9, 18, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.45s var(--ease), opacity 0.35s var(--ease);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a:not(.btn) { padding: 13px 16px; font-size: 1rem; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-cta { margin: 12px 0 0; }

  .hero { padding-bottom: 100px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .scroll-hint { display: none; }
}

@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
  .card-featured { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px 10px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .marquee-track { animation: none; }
  #neural-canvas { display: none; }
}
/* ============================================================
   Ajouts Portal — pricing, badges, pages de form, dashboard
   ============================================================ */

/* Badge "Bientôt" (variante discrète du card-flag) */
.card-flag.soon {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--teal-light);
}
.card-coming { opacity: 0.92; }
.card-coming .card-icon { color: var(--muted); }

/* Section "bientôt" — bandeau d'applications futures */
.soon-strip {
  margin-top: 26px;
  padding: 20px 28px;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  background: rgba(94, 234, 212, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}
.soon-strip strong { color: var(--text); font-weight: 600; }

/* Pricing */
.pricing-wrap { max-width: 520px; margin: 0 auto; }
.pricing-card {
  position: relative;
  padding: clamp(34px, 5vw, 52px);
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid rgba(45, 212, 191, 0.35);
  background:
    radial-gradient(500px circle at 50% -10%, rgba(20, 184, 166, 0.16), transparent 60%),
    var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: center;
  overflow: hidden;
}
.pricing-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
}
.pricing-amount {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.pricing-amount small {
  font-size: 1rem;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  font-weight: 400;
}
.pricing-list {
  list-style: none;
  margin: 28px 0 32px;
  display: grid;
  gap: 12px;
  text-align: left;
}
.pricing-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  font-size: 0.95rem;
}
.pricing-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35em;
  width: 16px; height: 16px;
  border-radius: 5px;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 75% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 75% no-repeat;
}
.pricing-note { margin-top: 18px; font-size: 0.8rem; color: var(--muted-2); }

/* Pages de form (login / register) */
.auth-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
}
.auth-card {
  width: min(440px, 92%);
  padding: clamp(28px, 4vw, 42px);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}
.auth-sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 26px;
}
.auth-form { display: grid; gap: 16px; }
.auth-form label { display: grid; gap: 8px; }
.auth-form label span {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.auth-form input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(4, 9, 18, 0.6);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.auth-form input::placeholder { color: var(--muted-2); }
.auth-form input:focus {
  outline: none;
  border-color: var(--teal-light);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
}
.auth-alt {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}
.alert {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
  color: #fca5a5;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

/* Dashboard */
.dash-wrap {
  min-height: calc(100vh - var(--nav-h));
  padding: calc(var(--nav-h) + 48px) 0 90px;
}
.dash-head { margin-bottom: 34px; }
.dash-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
}
.dash-head p { color: var(--muted); margin-top: 6px; }
.key-box {
  padding: 26px 28px;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-bottom: 22px;
}
.key-box label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.key-row { display: flex; gap: 12px; }
.key-row code {
  flex: 1;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(4, 9, 18, 0.6);
  color: var(--teal-light);
  font-size: 0.92rem;
  word-break: break-all;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", monospace;
}
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.dash-stats .stat { text-align: center; }
.quota-bar {
  margin-bottom: 22px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.quota-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.quota-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--violet));
  transition: width 0.6s ease;
}
.quota-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}
.dash-hint {
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--muted);
  font-size: 0.92rem;
}
.dash-hint strong { color: var(--text); }
.dash-hint code {
  background: rgba(4, 9, 18, 0.6);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--teal-light);
  font-size: 0.85rem;
  font-family: ui-monospace, "Cascadia Code", monospace;
}
@media (max-width: 640px) {
  .dash-stats { grid-template-columns: 1fr; }
  .key-row { flex-direction: column; }
  .key-row .btn { width: 100%; }
}

/* ---------- Identification légale en pied de page ---------- */
.legal-strip {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.legal-strip p {
  max-width: 980px;
  color: var(--muted-2);
  font-size: 0.78rem;
  line-height: 1.8;
}
.legal-strip strong {
  color: var(--muted);
  font-weight: 600;
}
.legal-strip a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.legal-strip a:hover {
  color: var(--teal-light);
  border-bottom-color: var(--teal-light);
}

/* ---------- Bibliothèque de recherche ---------- */
.pub-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.pub-toolbar-label {
  color: var(--muted-2);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-right: 4px;
}
.pub-chip {
  font: inherit;
  font-size: 0.84rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.pub-chip:hover { color: var(--text); border-color: var(--border-strong); }
.pub-chip[aria-pressed="true"] {
  color: var(--bg);
  background: var(--teal-light);
  border-color: var(--teal-light);
  font-weight: 600;
}
.pub-count { margin-left: auto; color: var(--muted-2); font-size: 0.82rem; }

.pub-list { display: grid; gap: 18px; }
.pub-item {
  position: relative;
  padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pub-item:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.pub-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--muted-2);
}
.pub-badge {
  border-radius: 999px;
  padding: 4px 11px;
  border: 1px solid var(--border-strong);
  color: var(--teal-light);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pub-badge[data-statut="a-paraitre"] { color: var(--muted); border-color: var(--border); }
.pub-item h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.35;
  margin-bottom: 8px;
}
.pub-authors { color: var(--muted); font-size: 0.87rem; margin-bottom: 12px; }
.pub-item > p.pub-abstract { color: var(--muted); margin-bottom: 16px; max-width: 74ch; }
.pub-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.pub-tag {
  font-size: 0.75rem;
  color: var(--muted-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 3px 9px;
}
.pub-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.pub-empty {
  padding: clamp(40px, 6vw, 70px) 32px;
  border-radius: calc(var(--radius) + 8px);
  border: 1px dashed var(--border-strong);
  background: var(--surface);
  text-align: center;
}
.pub-empty h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 14px; }
.pub-empty p { color: var(--muted); max-width: 62ch; margin: 0 auto 12px; }
.pub-empty p:last-child { margin-bottom: 0; }

.pub-cite {
  margin: 0;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(4, 9, 18, 0.6);
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
}
@media (max-width: 620px) {
  .pub-item { padding: 22px 20px; }
  .pub-count { margin-left: 0; width: 100%; }
}

/* ---------- Pages légales : colonne de lecture ---------- */
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal-wrap .value { display: block; }
.legal-wrap .value h3 { margin-bottom: 12px; }
.legal-wrap .value p { color: var(--muted); margin-bottom: 12px; }
.legal-wrap .value p:last-child { margin-bottom: 0; }
.legal-wrap .value a { color: var(--teal-light); }
.legal-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; }
.legal-dl dt { color: var(--muted); }
.legal-dl dd { margin: 0; font-weight: 500; }
@media (max-width: 620px) {
  .legal-dl { grid-template-columns: 1fr; gap: 2px; }
  .legal-dl dd { margin-bottom: 10px; }
}

/* ---------- Bascule de langue ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.lang-switch:hover { color: var(--teal-light); border-color: var(--border-strong); }
