/* ============================================================
   XpertVisio — refonte 2026
   Dark, orange #F8620E, Space Grotesk + Manrope
   ============================================================ */

:root {
  --orange: #F8620E;
  --orange-soft: #FF8F4F;
  --orange-dim: rgba(248, 98, 14, 0.14);
  --cyan: #00E5FF;
  --bg: #0B0C0F;
  --bg-2: #101218;
  --panel: #14161D;
  --panel-2: #181B23;
  --text: #F4F2EE;
  --muted: #9BA0AB;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --container: 1180px;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

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

::selection { background: var(--orange); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Canvas 3D ---------- */
#bg3d {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 78% 30%, rgba(248, 98, 14, 0.10), transparent 65%),
    radial-gradient(700px 500px at 12% 80%, rgba(248, 98, 14, 0.05), transparent 60%);
}

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

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.28s ease;
  border-bottom: 1px solid transparent;
  will-change: transform;
}
.site-header.nav-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}
.site-header.scrolled {
  background: rgba(11, 12, 15, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header.menu-open {
  background: rgba(11, 12, 15, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange), #d94f05);
  color: #fff;
  border-radius: 10px;
  font-size: 1.2rem;
  box-shadow: 0 4px 18px rgba(248, 98, 14, 0.35);
}
.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), #e05405);
  color: #fff;
  box-shadow: 0 8px 28px rgba(248, 98, 14, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(248, 98, 14, 0.45); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-soft); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
}
.hero-inner { width: 100%; }
.hero-copy {
  max-width: 640px;
  margin-left: clamp(44px, 7vw, 112px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-soft);
  margin-bottom: 22px;
}
.fr-flag {
  display: inline-flex;
  gap: 0;
  border-radius: 3px;
  overflow: hidden;
  width: 21px; height: 14px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.fr-flag i { flex: 1; }
.fr-flag i:nth-child(1) { background: #0055A4; }
.fr-flag i:nth-child(2) { background: #fff; }
.fr-flag i:nth-child(3) { background: #EF4135; }

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 26px;
  text-wrap: balance;
}
h1 em {
  font-style: normal;
  color: var(--orange);
  position: relative;
}

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 36px;
  text-wrap: pretty;
}
.lead strong { color: var(--text); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 0.85rem;
  color: var(--muted);
}
.hero-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-meta li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(11, 12, 15, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.scroll-cue:hover,
.scroll-cue:focus-visible {
  color: var(--orange-soft);
  border-color: rgba(248, 98, 14, 0.55);
  background: rgba(248, 98, 14, 0.12);
  transform: translateX(-50%) translateY(-3px);
}
.scroll-cue:focus-visible {
  outline: 2px solid rgba(248, 98, 14, 0.55);
  outline-offset: 4px;
}
.scroll-cue-arrow {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  animation: cue-bounce 1.45s ease-in-out infinite;
}
.scroll-cue::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(248, 98, 14, 0.28);
  border-radius: inherit;
  opacity: 0;
  animation: cue-ring 1.8s ease-out infinite;
}
.section-scroll-cue { bottom: 34px; }
.produit-scroll-cue { bottom: 30px; }
@keyframes cue-bounce {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(5px); }
}
@keyframes cue-ring {
  0% { opacity: 0.55; transform: scale(0.76); }
  70%, 100% { opacity: 0; transform: scale(1.18); }
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 56px;
}
.marquee-track span::after { content: '◆'; color: var(--orange); font-size: 0.55rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .scroll-cue-arrow,
  .scroll-cue::after { animation: none; }
}

/* ---------- Sections génériques ---------- */
section { position: relative; }
.section-pad { padding: 130px 0; }

.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head.center { margin-inline: auto; text-align: center; }
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  text-wrap: balance;
}
.section-head p { color: var(--muted); font-size: 1.05rem; text-wrap: pretty; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Piliers ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pillar {
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.pillar:hover { transform: translateY(-5px); border-color: rgba(248, 98, 14, 0.45); }
.pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 30px; right: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.pillar:hover::before { opacity: 1; }
.pillar-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--orange-dim);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--orange);
}
.pillar-icon svg { width: 26px; height: 26px; }
.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.pillar p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Produit (scrollytelling) ---------- */
.produit { height: 340vh; }
.produit-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.produit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  align-items: center;
}
.produit-steps { grid-column: 2; position: relative; min-height: 340px; }
.pstep {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.pstep.active { opacity: 1; transform: none; pointer-events: auto; }
.pstep-num {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--orange);
  margin-bottom: 16px;
}
.pstep h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  text-wrap: balance;
}
.pstep p { color: var(--muted); max-width: 460px; font-size: 1.04rem; text-wrap: pretty; }

.produit-progress {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.produit-progress i {
  width: 4px;
  height: 34px;
  border-radius: 4px;
  background: var(--line-strong);
  transition: background 0.3s ease;
}
.produit-progress i.on { background: var(--orange); }

/* ---------- Gains / chiffres ---------- */
.gains { background: linear-gradient(180deg, transparent, rgba(248, 98, 14, 0.05) 40%, transparent); }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  background: rgba(20, 22, 29, 0.72);
  backdrop-filter: blur(8px);
}
.stat {
  padding: 44px 32px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
}
.stat-value .unit { font-size: 0.5em; margin-left: 4px; color: var(--orange-soft); }
.stat h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.stat p { font-size: 0.85rem; color: var(--muted); }
.gains-note {
  margin-top: 22px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
}

/* ---------- Cas d'usage ---------- */
.usecases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.usecase {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 210px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.usecase:hover { transform: translateY(-5px); border-color: rgba(248, 98, 14, 0.45); }
.usecase-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--orange);
}
.usecase h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.usecase p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.usecase-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-soft);
  background: var(--orange-dim);
  padding: 5px 12px;
  border-radius: 999px;
}
.usecase.cta-card {
  background: linear-gradient(150deg, rgba(248, 98, 14, 0.16), rgba(248, 98, 14, 0.05));
  border-color: rgba(248, 98, 14, 0.4);
  justify-content: center;
}
.usecase.cta-card h3 { font-size: 1.4rem; }
.usecase.cta-card .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- Sécurité ---------- */
.securite-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.secu {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  background: rgba(20, 22, 29, 0.6);
}
.secu-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--orange-dim);
  color: var(--orange);
  margin-bottom: 22px;
}
.secu-icon svg { width: 22px; height: 22px; }
.secu h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.secu p { color: var(--muted); font-size: 0.93rem; }

/* ---------- CTA final ---------- */
.cta-final { text-align: center; padding: 160px 0 150px; }
.cta-final h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 760px; margin-inline: auto; }
.cta-final .lead { margin-inline: auto; margin-bottom: 40px; }
.cta-final .hero-cta { justify-content: center; margin-bottom: 28px; }
.cta-contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 34px;
  font-size: 0.92rem;
  color: var(--muted);
}
.cta-contact a { color: var(--text); font-weight: 600; transition: color 0.2s ease; }
.cta-contact a:hover { color: var(--orange-soft); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(11, 12, 15, 0.9);
  padding: 64px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-grid h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; }
.footer-grid a { color: var(--muted); transition: color 0.2s ease; }
.footer-grid a:hover { color: var(--orange-soft); }
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin-top: 14px; max-width: 260px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--text); }

/* ---------- Page démo ---------- */
.demo-page {
  padding: 160px 0 120px;
  position: relative;
  z-index: 1;
}
.demo-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}
.demo-aside .kicker { margin-bottom: 18px; }
.demo-aside h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
.demo-points { margin-top: 36px; display: flex; flex-direction: column; gap: 22px; }
.demo-point { display: flex; gap: 16px; align-items: flex-start; }
.demo-point-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--orange-dim);
  color: var(--orange);
  display: grid;
  place-items: center;
}
.demo-point-icon svg { width: 19px; height: 19px; }
.demo-point h3 { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; margin-bottom: 4px; }
.demo-point p { color: var(--muted); font-size: 0.9rem; }
.demo-direct {
  margin-top: 40px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  font-size: 0.92rem;
  color: var(--muted);
}
.demo-direct a { color: var(--orange-soft); font-weight: 600; }

.demo-form-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 42px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-row .form-group { margin-bottom: 0; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(248, 98, 14, 0.18);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.83rem;
  color: var(--muted);
  margin-bottom: 26px;
}
.consent input { margin-top: 4px; accent-color: var(--orange); width: 16px; height: 16px; flex-shrink: 0; }
.demo-form-card .btn { width: 100%; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-copy { margin-left: 0; max-width: 620px; }
  .pillars, .usecases, .securite-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: 1fr; gap: 50px; }
  .produit-grid { grid-template-columns: 1fr; }
  .produit-sticky {
    height: 100svh;
    align-items: center;
    padding-block: 0;
  }
  .produit-grid {
    height: 100%;
    align-items: center;
  }
  .produit-steps {
    grid-column: 1;
    min-height: 0;
    height: clamp(260px, 48svh, 380px);
  }
  .pstep {
    inset: auto 0 auto 0;
    top: 50%;
    justify-content: flex-start;
    transform: translateY(calc(-50% + 34px));
  }
  .pstep.active { transform: translateY(-50%); }
  .pstep p { font-size: 0.96rem; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  body.nav-menu-open { overflow: hidden; }
  .scroll-cue { width: 38px; height: 38px; bottom: 20px; }
  .section-scroll-cue { bottom: 22px; }
  .section-pad { padding: 90px 0; }
  .pillars, .usecases, .securite-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: none; }
  .form-row { grid-template-columns: 1fr; }
  .demo-form-card { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }

  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px; left: 12px; right: 12px;
    z-index: 70;
    max-height: calc(100svh - 88px);
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(11, 12, 15, 0.99), rgba(16, 18, 24, 0.99));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 22px;
    gap: 14px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.72);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    font-size: 1.05rem;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a,
  .nav-item {
    width: 100%;
  }
  .nav-links > a,
  .nav-item > a {
    display: flex;
    min-height: 44px;
    align-items: center;
    color: var(--text);
  }
  .nav-cta .btn-ghost { display: none; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .produit { height: 300vh; }
  .produit-progress { display: none; }
}

@media (max-width: 520px) {
  .nav-cta .btn-primary { display: none; }
}

/* ============================================================
   PAGE LOADER — écran de chargement de l'expérience 3D
   ============================================================ */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(130% 90% at 50% 16%, rgba(248, 98, 14, 0.12), transparent 58%),
    radial-gradient(120% 80% at 80% 90%, rgba(0, 229, 255, 0.07), transparent 60%),
    var(--bg);
  opacity: 1;
  transition: opacity 0.6s ease;
}
#page-loader.is-hidden { opacity: 0; pointer-events: none; }
#page-loader .pl-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  transform: translateY(-3%);
}
#page-loader .pl-brand { display: flex; align-items: center; gap: 13px; }
#page-loader .pl-mark {
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px;
  border-radius: 15px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 28px; line-height: 1; color: #fff;
  background: linear-gradient(145deg, var(--orange), var(--orange-soft));
  box-shadow: 0 10px 28px rgba(248, 98, 14, 0.35);
  animation: pl-pulse 1.7s ease-in-out infinite;
}
#page-loader .pl-word {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.5rem; line-height: 1; color: var(--text);
}
#page-loader .pl-word small {
  display: block; margin-top: 5px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.62rem;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted);
}
#page-loader .pl-bar {
  position: relative;
  width: 196px; height: 3px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}
#page-loader .pl-bar i {
  position: absolute; left: 0; top: 0;
  width: 42%; height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  animation: pl-slide 1.15s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
#page-loader .pl-text {
  font-family: var(--font-body); font-size: 0.82rem;
  letter-spacing: 0.4px; color: var(--muted);
}
@keyframes pl-pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(248, 98, 14, 0.30), 0 0 0 0 rgba(248, 98, 14, 0.40); }
  50%      { box-shadow: 0 10px 28px rgba(248, 98, 14, 0.30), 0 0 0 15px rgba(248, 98, 14, 0); }
}
@keyframes pl-slide {
  0%   { transform: translateX(-130%); }
  100% { transform: translateX(360%); }
}
@media (prefers-reduced-motion: reduce) {
  #page-loader .pl-mark { animation: none; }
  #page-loader .pl-bar i { animation: none; width: 100%; opacity: 0.65; }
}
