/* ==========================================================================
   OptiResto — site vitrine
   Direction : « tableau de bord nocturne » — bleu nuit, lumière cyan,
   accent vert performance, une ligne lumineuse comme motif signature.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --night: #020A14;
  --deep: #071426;
  --tech: #0F2540;
  --cyan: #38BDF8;
  --green: #4ADE80;
  --brand-green: #5DBB3F;
  --white: #F8FAFC;
  --grey: #94A3B8;
  --grey-soft: #8291A6;

  --line: rgba(148, 163, 184, .14);
  --line-strong: rgba(148, 163, 184, .34);
  --surface: linear-gradient(180deg, rgba(15, 37, 64, .55), rgba(7, 20, 38, .55));

  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-sm: clamp(.875rem, .85rem + .1vw, .9375rem);
  --text-base: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --text-lead: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  --text-h3: clamp(1.125rem, 1.05rem + .3vw, 1.3125rem);
  --text-h2: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  --text-hero: clamp(2.6rem, 1.6rem + 4.4vw, 5.4rem);

  --space-section: clamp(5rem, 3.5rem + 6vw, 10rem);
  --container: 1240px;
  --gutter: clamp(1rem, .5rem + 2.5vw, 2.5rem);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: .8s;
  --shadow-card: 0 1px 0 rgba(248, 250, 252, .04) inset, 0 30px 60px -30px rgba(0, 0, 0, .7);
}

@media (min-width: 2200px) {
  :root { --container: 1600px; }
  html { font-size: 118.75%; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  background: var(--night);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--white);
  background: var(--night);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.08; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(56, 189, 248, .35); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: .7rem 1rem; border-radius: var(--radius-sm);
  background: var(--white); color: var(--night); font-weight: 600;
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.text-gradient {
  background: linear-gradient(100deg, var(--cyan) 0%, #6EE7F9 40%, var(--green) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* Texture : grain très léger sur tout le site */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Boutons ---------- */
.btn {
  --btn-pad: .95rem 1.4rem;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: var(--btn-pad); min-height: 48px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: .005em;
  cursor: pointer; white-space: nowrap; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, border-color .3s, color .3s;
}
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn--sm { --btn-pad: .6rem 1.1rem; min-height: 42px; font-size: .95rem; }

.btn--primary {
  color: var(--night);
  background: linear-gradient(110deg, var(--cyan), #5EEAD4 55%, var(--green));
  box-shadow: 0 10px 30px -10px rgba(56, 189, 248, .6), 0 0 0 1px rgba(248, 250, 252, .15) inset;
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(74, 222, 128, .55), 0 0 0 1px rgba(248, 250, 252, .25) inset; }
.btn--primary:hover::after { transform: translateX(120%); }

.btn--ghost {
  color: var(--white);
  background: rgba(15, 37, 64, .45);
  border-color: var(--line-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: rgba(56, 189, 248, .55); background: rgba(15, 37, 64, .8); }
.btn--ghost.is-done { border-color: rgba(74, 222, 128, .7); color: var(--green); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.75rem;
  color: var(--cyan); font-weight: 600; font-family: var(--font-display);
}
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Progression de lecture ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

/* ---------- Navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(2, 10, 20, .72);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__mark { width: 40px; height: 40px; }
.brand__word { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.02em; }
.brand__accent { color: var(--brand-green); }

.nav__panel { display: flex; align-items: center; gap: 2rem; }
.nav__links { display: flex; gap: .25rem; }
.nav__links a {
  position: relative; display: inline-block; padding: .55rem .9rem;
  color: var(--grey); font-size: .95rem; font-weight: 500;
  transition: color .25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .3rem; height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--white); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

.nav__toggle {
  display: none; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(15, 37, 64, .6); border: 1px solid var(--line-strong); cursor: pointer;
}
.nav__toggle .icon { width: 22px; height: 22px; }
.nav__toggle .icon--close { display: none; }
.nav__toggle[aria-expanded="true"] .icon--open { display: none; }
.nav__toggle[aria-expanded="true"] .icon--close { display: block; }

@media (max-width: 900px) {
  .nav__toggle { display: grid; }
  .nav__panel {
    position: fixed; inset: 76px 0 auto; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 1.25rem;
    padding: 1.25rem var(--gutter) 1.75rem;
    background: rgba(2, 10, 20, .97);
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain;
    transition: opacity .3s, transform .35s var(--ease), visibility 0s .35s;
  }
  .nav__panel.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .35s var(--ease); }
  .nav__links { flex-direction: column; }
  .nav__links a { display: block; padding: .9rem .25rem; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__links a.is-active { border-left: 3px solid var(--cyan); padding-left: .75rem; font-weight: 600; }
  .nav__panel .btn { width: 100%; }
  .site-header.is-menu-open { background: rgba(2, 10, 20, .97); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 90px;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  opacity: .55;
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(80px); }
.hero__glow--cyan { width: 46vw; height: 46vw; max-width: 780px; max-height: 780px; top: -18%; right: -8%; background: radial-gradient(circle, rgba(56, 189, 248, .26), transparent 65%); }
.hero__glow--green { width: 34vw; height: 34vw; max-width: 560px; max-height: 560px; bottom: -20%; left: -10%; background: radial-gradient(circle, rgba(74, 222, 128, .14), transparent 65%); }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 180px; z-index: -1;
  background: linear-gradient(transparent, var(--night));
}

.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center; gap: clamp(2.5rem, 5vw, 5rem);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .45rem .95rem .45rem .7rem; margin-bottom: 1.75rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(15, 37, 64, .45);
  color: var(--grey); font-size: .85rem; font-weight: 500;
}
.eyebrow__dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  animation: ping 2.4s infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } }

.hero__title { font-size: var(--text-hero); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
.hero__lead { margin-top: 1.6rem; max-width: 36rem; color: var(--grey); font-size: var(--text-lead); line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.4rem; }

/* Apparition d'intro (au chargement) */
.js [data-intro] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms + 120ms);
}
.js.is-loaded [data-intro] { opacity: 1; transform: none; }

/* Composition visuelle */
.hero__visual {
  position: relative; aspect-ratio: 1 / .92; width: 100%;
  perspective: 1400px;
}
.hero__visual > * { position: absolute; }
.hero__layer { transition: translate .6s var(--ease); }
.orbit {
  border: 1px dashed rgba(56, 189, 248, .18); border-radius: 50%;
  animation: spin 60s linear infinite;
}
.orbit--1 { inset: 4% 2%; }
.orbit--2 { inset: 18% 14%; border-style: solid; border-color: rgba(74, 222, 128, .1); animation-duration: 90s; animation-direction: reverse; }
.orbit::before {
  content: ""; position: absolute; top: 50%; left: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 14px var(--cyan);
}
.orbit--2::before { background: var(--green); box-shadow: 0 0 14px var(--green); left: auto; right: -4px; }
@keyframes spin { to { transform: rotate(360deg); } }

.panel {
  inset: 14% 4% 14% 6%;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(15, 37, 64, .92), rgba(7, 20, 38, .95));
  border: 1px solid var(--line-strong);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(56, 189, 248, .06), 0 0 80px -20px rgba(56, 189, 248, .25);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.js .panel[data-intro] { transform: translateY(26px) rotateX(10deg) rotateY(-10deg) scale(.96); }
.js.is-loaded .panel[data-intro] { transform: rotateX(6deg) rotateY(-9deg); }
.panel__bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .9rem 1.1rem; border-bottom: 1px solid var(--line);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(148, 163, 184, .3); }
.panel__bar .skeleton--title { margin-left: .8rem; }
.panel__body { flex: 1; display: grid; grid-template-rows: 1fr auto; gap: 1rem; padding: 1.1rem; min-height: 0; }
.panel__chart { position: relative; min-height: 0; border-radius: var(--radius-sm); background: rgba(2, 10, 20, .35); border: 1px solid var(--line); padding: .6rem; }
.chart { width: 100%; height: 100%; overflow: visible; }
.chart__grid path { stroke: rgba(148, 163, 184, .1); stroke-dasharray: 4 6; }
.chart__line { stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(56, 189, 248, .55)); }
.chart__area { opacity: 0; transition: opacity 1.2s ease 1.6s; }
.chart__pulse { fill: var(--green); opacity: 0; transform-box: fill-box; transform-origin: center; }
.is-loaded .chart__line { animation: draw 2.2s var(--ease) .7s forwards; }
.is-loaded .chart__area { opacity: 1; }
.is-loaded .chart__pulse { animation: appear .4s ease 2.4s forwards, pulse 2.4s ease-in-out 2.8s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .8; } }

.panel__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.tile {
  display: flex; flex-direction: column; gap: .55rem; justify-content: space-between;
  min-height: 84px; padding: .75rem; border-radius: var(--radius-sm);
  background: rgba(2, 10, 20, .35); border: 1px solid var(--line);
}
.tile__bars { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.tile__bars i { flex: 1; height: var(--h); border-radius: 3px; background: linear-gradient(180deg, var(--green), rgba(74, 222, 128, .25)); transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease) 1.3s; }
.tile__bars i:nth-child(2) { transition-delay: 1.38s; } .tile__bars i:nth-child(3) { transition-delay: 1.46s; }
.tile__bars i:nth-child(4) { transition-delay: 1.54s; } .tile__bars i:nth-child(5) { transition-delay: 1.62s; }
.is-loaded .tile__bars i { transform: scaleY(1); }
.ring { width: 40px; height: 40px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring__track { stroke: rgba(148, 163, 184, .16); }
.ring__value { stroke: var(--cyan); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s var(--ease) 1.5s; }
.is-loaded .ring__value { stroke-dashoffset: 28; }

/* La lumière qui traverse */
.panel__sweep, .mock__sweep {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(56, 189, 248, .12) 45%, rgba(248, 250, 252, .1) 50%, rgba(74, 222, 128, .08) 55%, transparent 65%);
  transform: translateX(-100%);
  animation: sweep 7s var(--ease) 1.4s infinite;
}
@keyframes sweep { 0% { transform: translateX(-100%); } 35%, 100% { transform: translateX(100%); } }

.skeleton { display: block; height: 8px; border-radius: 99px; background: rgba(148, 163, 184, .18); }
.skeleton--title { width: 34%; height: 9px; }
.skeleton--sm { width: 48%; height: 7px; }
.skeleton--line { width: 100%; height: 6px; background: rgba(148, 163, 184, .12); }
.skeleton--short { width: 62%; }

.chip {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem .75rem .75rem; border-radius: 16px;
  background: rgba(7, 20, 38, .86);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .85);
  font-size: .85rem; line-height: 1.25;
}
.chip > * { pointer-events: none; }
.chip__inner { display: contents; }
.chip strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.chip small { color: var(--grey); font-size: .78rem; }
.chip__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; }
.chip__icon .icon { width: 19px; height: 19px; }
.chip__icon--cyan { color: var(--cyan); background: rgba(56, 189, 248, .12); box-shadow: 0 0 0 1px rgba(56, 189, 248, .25) inset; }
.chip__icon--green { color: var(--green); background: rgba(74, 222, 128, .12); box-shadow: 0 0 0 1px rgba(74, 222, 128, .25) inset; }
.chip__icon--white { color: var(--white); background: rgba(248, 250, 252, .08); box-shadow: 0 0 0 1px rgba(248, 250, 252, .18) inset; }
.chip--a { top: 4%; left: -2%; }
.chip--b { bottom: 6%; right: -3%; }
.chip--c { top: 44%; right: -6%; }
.is-loaded .chip { animation: float 7s ease-in-out 1.6s infinite; }
.is-loaded .chip--b { animation-delay: -2.5s; }
.is-loaded .chip--c { animation-delay: -4.5s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0;
  display: grid; place-items: center; width: 28px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: 99px;
}
.hero__scroll span { width: 3px; height: 8px; border-radius: 3px; background: var(--cyan); animation: scrollcue 2s ease-in-out infinite; }
@keyframes scrollcue { 0% { transform: translateY(-6px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { max-width: 620px; margin-inline: auto; }
  .hero__scroll { display: none; }
}
@media (max-width: 560px) {
  .hero { padding-top: 104px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__visual { aspect-ratio: 1 / 1; }
  .panel { inset: 12% 2% 10% 2%; }
  .panel__tiles { grid-template-columns: repeat(2, 1fr); }
  .panel__tiles .tile:last-child { display: none; }
  .chip { padding: .55rem .75rem .55rem .55rem; }
  .chip small { display: none; }
  .chip__icon { width: 32px; height: 32px; }
  .chip--a { top: 0; left: 0; }
  .chip--b { bottom: 0; right: 0; }
  .chip--c { top: 46%; right: 0; }
  .eyebrow { font-size: .8rem; }
  .eyebrow__extra { display: none; }
}

/* ---------- Sections ---------- */
.section { position: relative; isolation: isolate; padding-block: var(--space-section); }
.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem;
  color: var(--cyan); font-family: var(--font-display); font-weight: 600;
  font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, var(--cyan), var(--green)); }
.section__title { font-size: var(--text-h2); font-weight: 700; }
.section__lead { margin-top: 1.25rem; color: var(--grey); font-size: var(--text-lead); }
.section__head--center .section__lead { margin-inline: auto; }

/* Apparition au défilement */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Cartes premium */
.card {
  position: relative; isolation: isolate;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.js .card[data-reveal].is-visible {
  transition: border-color .4s, transform .5s var(--ease), box-shadow .5s var(--ease), opacity var(--dur) var(--ease);
  transition-delay: 0s;
}
.card::before {
  /* reflet qui suit le pointeur */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(56, 189, 248, .12), transparent 45%);
  transition: opacity .4s;
}
.card:hover { border-color: rgba(56, 189, 248, .35); }
.card:hover::before { opacity: 1; }

/* 2. Approche */
.approach::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(15, 37, 64, .7), transparent 70%);
}
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2.5rem); }
.steps::before {
  content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--green), transparent);
  opacity: .45;
}
.step { position: relative; text-align: center; padding-inline: .5rem; }
.step__num {
  position: relative; display: inline-grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 1.4rem; border-radius: 50%;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--cyan);
  background: var(--night); border: 1px solid rgba(56, 189, 248, .4);
  box-shadow: 0 0 0 6px var(--night), 0 0 30px -4px rgba(56, 189, 248, .5);
}
.step:nth-child(3) .step__num { color: var(--green); border-color: rgba(74, 222, 128, .45); box-shadow: 0 0 0 6px var(--night), 0 0 30px -4px rgba(74, 222, 128, .5); }
.step h3 { font-size: var(--text-h3); font-weight: 600; margin-bottom: .6rem; }
.step p { color: var(--grey); max-width: 22rem; margin-inline: auto; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 2.2rem; }
  .steps::before { top: 0; bottom: 0; left: 27px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, transparent, var(--cyan), var(--green), transparent); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 1.25rem; text-align: left; padding: 0; }
  .step__num { grid-row: span 2; margin: 0; }
  .step h3 { align-self: end; }
  .step p { margin: 0; }
}

/* 3. Piliers — composition bento */
.pillars__grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(12, 1fr); }
.pillar { grid-column: span 6; min-height: 250px; padding: clamp(1.5rem, 2.5vw, 2.25rem); overflow: hidden; }
.pillar:nth-child(1), .pillar:nth-child(4) { grid-column: span 7; }
.pillar:nth-child(2), .pillar:nth-child(3) { grid-column: span 5; }
.pillar h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); font-weight: 600; margin: 1.4rem 0 .6rem; }
.pillar p { color: var(--grey); max-width: 26rem; }
.pillar__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; }
.pillar__icon .icon { width: 24px; height: 24px; }
.pillar__icon--cyan { color: var(--cyan); background: rgba(56, 189, 248, .1); box-shadow: 0 0 0 1px rgba(56, 189, 248, .25) inset, 0 0 30px -6px rgba(56, 189, 248, .45); }
.pillar__icon--green { color: var(--green); background: rgba(74, 222, 128, .1); box-shadow: 0 0 0 1px rgba(74, 222, 128, .25) inset, 0 0 30px -6px rgba(74, 222, 128, .45); }
.pillar:hover { transform: translateY(-4px); }

.pillar__deco { position: absolute; right: -10px; bottom: -10px; width: 46%; height: 60%; z-index: -1; opacity: .55; pointer-events: none; transition: opacity .5s, transform .8s var(--ease); }
.pillar:hover .pillar__deco { opacity: .9; transform: translate(-6px, -6px); }
.pillar__deco--line {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop stop-color='%2338BDF8' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%234ADE80'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 110 C40 100 60 80 90 84 S140 40 200 14' fill='none' stroke='url(%23g)' stroke-width='3'/%3E%3C/svg%3E") no-repeat right bottom / contain;
}
.pillar__deco--dots {
  background-image: radial-gradient(rgba(74, 222, 128, .5) 1.4px, transparent 1.6px);
  background-size: 16px 16px;
  mask-image: linear-gradient(135deg, transparent 20%, #000 90%); -webkit-mask-image: linear-gradient(135deg, transparent 20%, #000 90%);
}
.pillar__deco--stack {
  background:
    linear-gradient(rgba(56, 189, 248, .35), rgba(56, 189, 248, .35)) 100% 30% / 70% 1px no-repeat,
    linear-gradient(rgba(56, 189, 248, .25), rgba(56, 189, 248, .25)) 100% 55% / 85% 1px no-repeat,
    linear-gradient(rgba(74, 222, 128, .35), rgba(74, 222, 128, .35)) 100% 80% / 100% 1px no-repeat;
}
.pillar__deco--arrow {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120' fill='none' stroke='%234ADE80' stroke-width='2'%3E%3Ccircle cx='150' cy='70' r='40' stroke-opacity='.35'/%3E%3Ccircle cx='150' cy='70' r='22' stroke-opacity='.6'/%3E%3Cpath d='M20 110 L140 72' stroke='%2338BDF8'/%3E%3Ccircle cx='150' cy='70' r='4' fill='%234ADE80'/%3E%3C/svg%3E") no-repeat right bottom / contain;
}
@media (max-width: 900px) {
  .pillar, .pillar:nth-child(n) { grid-column: span 6; }
}
@media (max-width: 640px) {
  .pillar, .pillar:nth-child(n) { grid-column: 1 / -1; min-height: 0; }
}

/* 4. Profils */
.audience::before {
  content: ""; position: absolute; inset: 10% 0 auto auto; width: 50vw; height: 60%; z-index: -1;
  background: radial-gradient(ellipse at 80% 40%, rgba(15, 37, 64, .8), transparent 65%);
}
.audience__layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.audience__head { position: sticky; top: 120px; margin-bottom: 0; }
.audience__list { display: grid; gap: .9rem; }
.persona { display: flex; align-items: flex-start; gap: 1.1rem; padding: 1.35rem 1.5rem; }
.persona:hover { transform: translateX(6px); }
.persona__icon {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 13px;
  color: var(--cyan); background: rgba(56, 189, 248, .08); border: 1px solid rgba(56, 189, 248, .2);
  transition: color .3s, background-color .3s, border-color .3s;
}
.persona:hover .persona__icon { color: var(--green); background: rgba(74, 222, 128, .1); border-color: rgba(74, 222, 128, .35); }
.persona__icon .icon { width: 22px; height: 22px; }
.persona h3 { font-size: var(--text-h3); font-weight: 600; margin-bottom: .3rem; }
.persona p { color: var(--grey); font-size: var(--text-sm); }
@media (max-width: 900px) {
  .audience__layout { grid-template-columns: 1fr; }
  .audience__head { position: static; }
}

/* 5. Expérience — maquette abstraite */
.showcase { overflow: hidden; }
.showcase::before {
  content: ""; position: absolute; left: 50%; top: 45%; width: 90vw; max-width: 1400px; height: 60%; translate: -50% 0; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, .14), transparent 65%);
  filter: blur(20px);
}
.showcase__figure { margin: 0; perspective: 2000px; }
.mock {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 76px 1fr;
  aspect-ratio: 16 / 9; min-height: 340px;
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, #0C1F37, var(--deep));
  border: 1px solid var(--line-strong);
  box-shadow: 0 80px 120px -60px rgba(0, 0, 0, .95), 0 0 0 1px rgba(56, 189, 248, .08), 0 0 120px -30px rgba(56, 189, 248, .35);
  transform: rotateX(14deg) scale(.96); transform-origin: 50% 100%;
  transition: transform 1.4s var(--ease);
}
.no-js .mock, .is-visible .mock { transform: none; }
.mock__side { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; padding: 1.25rem 0; border-right: 1px solid var(--line); background: rgba(2, 10, 20, .35); }
.mock__logo { width: 38px; height: 38px; margin-bottom: .75rem; }
.mock__nav { width: 30px; height: 30px; border-radius: 9px; background: rgba(148, 163, 184, .1); }
.mock__nav.is-active { background: linear-gradient(135deg, rgba(56, 189, 248, .5), rgba(74, 222, 128, .35)); box-shadow: 0 0 20px -2px rgba(56, 189, 248, .5); }
.mock__main { display: grid; grid-template-rows: auto auto 1fr; gap: clamp(.7rem, 1.4vw, 1.25rem); padding: clamp(1rem, 2vw, 1.75rem); min-width: 0; min-height: 0; }
.mock__top { display: flex; align-items: center; gap: .7rem; }
.mock__top .skeleton--title { width: 22%; height: 11px; margin-right: auto; }
.mock__pill { width: 90px; height: 28px; border-radius: 99px; background: rgba(148, 163, 184, .1); border: 1px solid var(--line); }
.mock__pill--accent { width: 110px; background: linear-gradient(110deg, rgba(56, 189, 248, .45), rgba(74, 222, 128, .4)); border: 0; }
.mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.6rem, 1.2vw, 1rem); }
.mock__kpi { display: grid; gap: .6rem; padding: clamp(.75rem, 1.4vw, 1.1rem); border-radius: 14px; background: rgba(2, 10, 20, .35); border: 1px solid var(--line); }
.mock__kpi svg { width: 100%; height: 30px; overflow: visible; }
.mock__big { display: block; width: 58%; height: clamp(14px, 1.6vw, 22px); border-radius: 6px; background: rgba(248, 250, 252, .75); }
.mock__big--cyan { background: linear-gradient(90deg, var(--cyan), rgba(56, 189, 248, .4)); }
.mock__big--green { background: linear-gradient(90deg, var(--green), rgba(74, 222, 128, .4)); }
.spark { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.spark--cyan { stroke: var(--cyan); } .spark--green { stroke: var(--green); } .spark--white { stroke: rgba(248, 250, 252, .6); }
.mock__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(.6rem, 1.2vw, 1rem); min-height: 0; }
.mock__card { display: flex; flex-direction: column; gap: .9rem; padding: clamp(.75rem, 1.4vw, 1.1rem); border-radius: 14px; background: rgba(2, 10, 20, .35); border: 1px solid var(--line); min-height: 0; }
.mock__columns { flex: 1; display: flex; align-items: flex-end; gap: 6%; min-height: 60px; padding-top: .5rem; }
.mock__columns i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--cyan), rgba(56, 189, 248, .15)); transform-origin: bottom; transform: scaleY(.1); transition: transform 1.2s var(--ease); }
.mock__columns i:nth-child(n+8) { background: linear-gradient(180deg, var(--green), rgba(74, 222, 128, .15)); }
.no-js .mock__columns i, .is-visible .mock__columns i { transform: scaleY(1); }
.mock__columns i:nth-child(2) { transition-delay: .05s; } .mock__columns i:nth-child(3) { transition-delay: .1s; } .mock__columns i:nth-child(4) { transition-delay: .15s; }
.mock__columns i:nth-child(5) { transition-delay: .2s; } .mock__columns i:nth-child(6) { transition-delay: .25s; } .mock__columns i:nth-child(7) { transition-delay: .3s; }
.mock__columns i:nth-child(8) { transition-delay: .35s; } .mock__columns i:nth-child(9) { transition-delay: .4s; } .mock__columns i:nth-child(10) { transition-delay: .45s; }
.mock__card--donut { align-items: center; }
.mock__card--donut .skeleton { align-self: flex-start; }
.donut { width: min(100%, 130px); flex: 1; min-height: 0; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 5; }
.donut__track { stroke: rgba(148, 163, 184, .1); }
.donut__seg { stroke-dasharray: 0 100; transition: stroke-dasharray 1.4s var(--ease) .3s; }
.donut__seg--a { stroke: var(--cyan); }
.donut__seg--b { stroke: var(--green); stroke-dashoffset: -46; }
.donut__seg--c { stroke: rgba(248, 250, 252, .55); stroke-dashoffset: -78; }
.is-visible .donut__seg--a { stroke-dasharray: 44 56; }
.is-visible .donut__seg--b { stroke-dasharray: 30 70; }
.is-visible .donut__seg--c { stroke-dasharray: 20 80; }
.legend { display: flex; gap: .5rem; }
.legend span { width: 24px; height: 6px; border-radius: 99px; background: var(--cyan); }
.legend span:nth-child(2) { background: var(--green); } .legend span:nth-child(3) { background: rgba(248, 250, 252, .55); }
.mock__card--list { justify-content: flex-start; }
.row { display: flex; align-items: center; gap: .7rem; }
.row i { flex: none; width: 22px; height: 22px; border-radius: 7px; background: rgba(56, 189, 248, .18); }
.row:nth-of-type(2) i { background: rgba(74, 222, 128, .2); }
.showcase__caption { margin-top: 1.4rem; text-align: center; color: var(--grey-soft); font-size: .82rem; }

@media (max-width: 900px) {
  .mock { grid-template-columns: 56px 1fr; aspect-ratio: 4 / 3; }
  .mock__grid { grid-template-columns: 1fr 1fr; }
  .mock__card--list { display: none; }
}
@media (max-width: 560px) {
  .mock { grid-template-columns: 1fr; aspect-ratio: auto; min-height: 0; }
  .mock__side { display: none; }
  .mock__kpis { grid-template-columns: 1fr 1fr; }
  .mock__kpi:nth-child(3) { display: none; }
  .mock__grid { grid-template-columns: 1fr; }
  .mock__card--donut { display: none; }
  .mock__columns { min-height: 120px; }
  .mock__pill { display: none; }
  .mock__pill--accent { display: block; width: 80px; }
}

/* 6. Ambition */
.ambition { overflow: hidden; text-align: center; }
.ambition::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(15, 37, 64, .85), transparent 75%);
}
.ambition__line { position: absolute; inset: auto 0 6%; height: 34%; z-index: -1; opacity: .55; }
.ambition__line svg { width: 100%; height: 100%; }
.ambition__path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease); filter: drop-shadow(0 0 6px rgba(56, 189, 248, .6)); }
.no-js .ambition__path, .ambition.is-in .ambition__path { stroke-dashoffset: 0; }
.ambition__inner { max-width: 62rem; }
.ambition__title { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.6rem); font-weight: 700; letter-spacing: -.035em; }
.ambition__lead { max-width: 44rem; margin: 1.75rem auto 0; color: var(--grey); font-size: var(--text-lead); }
.principles { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2.75rem; }
.principles li {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .8rem 1.2rem; border-radius: 999px;
  background: rgba(7, 20, 38, .7); border: 1px solid var(--line-strong);
  color: var(--grey); font-size: .95rem;
}
.principles .icon { color: var(--green); }
.principles strong { color: var(--white); font-family: var(--font-display); font-weight: 600; margin-right: .35rem; }

/* 7. Contact */
.contact__card {
  position: relative; isolation: isolate; overflow: hidden;
  max-width: 980px; margin-inline: auto; text-align: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(15, 37, 64, .85), rgba(7, 20, 38, .92));
  border: 1px solid var(--line-strong);
  box-shadow: 0 60px 120px -60px rgba(0, 0, 0, .9);
}
.contact__card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, .6), transparent 35%, transparent 65%, rgba(74, 222, 128, .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.contact__glow {
  position: absolute; z-index: -1; left: 50%; top: -40%; width: 70%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, .22), transparent 60%);
  filter: blur(30px);
}
.contact .section__lead { max-width: 40rem; margin-inline: auto; }
.contact__email {
  display: inline-block; margin-top: 2.25rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.35rem, .8rem + 2.6vw, 2.6rem); letter-spacing: -.02em;
  background: linear-gradient(100deg, var(--white), var(--cyan) 60%, var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  overflow-wrap: anywhere;
  border-bottom: 1px solid rgba(56, 189, 248, .3);
  transition: border-color .3s;
}
.contact__email:hover { border-bottom-color: var(--green); }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem; margin-top: 2.25rem; }
.contact__note { margin-top: 1.5rem; color: var(--grey-soft); font-size: .85rem; }
@media (max-width: 560px) {
  .contact__actions .btn { flex: 1 1 100%; }
}

/* ---------- Footer ---------- */
.footer { position: relative; border-top: 1px solid var(--line); padding: clamp(3.5rem, 6vw, 5rem) 0 2rem; background: linear-gradient(180deg, var(--night), #01060D); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); }
.footer__brand p { margin-top: 1.1rem; max-width: 24rem; color: var(--grey); font-size: var(--text-sm); }
.footer__title { font-family: var(--font-display); font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 1.1rem; }
.footer__col ul { display: grid; gap: .65rem; }
.footer__col a { display: inline-flex; align-items: center; gap: .55rem; padding-block: .2rem; color: var(--grey); font-size: var(--text-sm); transition: color .25s; overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--white); }
.footer__col .icon { color: var(--cyan); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); color: var(--grey-soft); font-size: .85rem; }
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 80;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.25rem; border-radius: 999px; white-space: nowrap;
  background: rgba(7, 20, 38, .95); border: 1px solid rgba(74, 222, 128, .5);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .9), 0 0 30px -10px rgba(74, 222, 128, .5);
  font-weight: 500; font-size: .95rem;
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity .3s, transform .45s var(--ease);
}
.toast .icon { color: var(--green); }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Pages légales ---------- */
.legal { padding: 140px 0 var(--space-section); }
.legal .container { max-width: calc(820px + var(--gutter) * 2); }
.legal h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); font-weight: 700; margin-bottom: 1rem; }
.legal h2 { font-size: 1.35rem; font-weight: 600; margin: 2.5rem 0 .8rem; }
.legal p, .legal li { color: var(--grey); }
.legal p + p { margin-top: .8rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: .4rem; }
.legal a:not(.btn) { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.legal .todo { color: #FBBF24; font-weight: 500; }
.legal__back { margin-top: 3rem; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important;
  }
  .panel__sweep, .mock__sweep, .orbit::before, .hero__scroll { display: none; }
  .chart__line, .ambition__path { stroke-dashoffset: 0; }
  .chart__area, .chart__pulse { opacity: 1; }
}

/* ---------- Pause des animations (WCAG 2.2.2) ---------- */
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }
.motion-toggle {
  padding: .35rem .8rem; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line-strong);
  color: var(--grey); font-size: .8rem;
  transition: color .25s, border-color .25s;
}
.motion-toggle:hover { color: var(--white); border-color: rgba(56, 189, 248, .55); }
.motion-toggle[aria-pressed="true"] { color: var(--green); border-color: rgba(74, 222, 128, .55); }
.motion-off *, .motion-off *::before, .motion-off *::after { animation-play-state: paused !important; }
.motion-off .panel__sweep, .motion-off .mock__sweep { display: none; }

/* ---------- Contraste élevé Windows ---------- */
@media (forced-colors: active) {
  .text-gradient, .contact__email { background: none; color: CanvasText; -webkit-text-fill-color: currentColor; }
  .contact__email { color: LinkText; }
  .btn { border: 1px solid ButtonText; }
}

/* ---------- Impression ---------- */
@media print {
  .js [data-reveal], .js [data-intro] { opacity: 1 !important; transform: none !important; }
  .site-header, .scroll-progress, .toast, .hero__visual, .hero__scroll, body::after { display: none !important; }
}
